]>
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 | |
9fd4be55 RD |
48 | #define SWIG_PackData SWIG_Python_PackData |
49 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
50 | ||
d14a1e28 RD |
51 | |
52 | /*********************************************************************** | |
53 | * common.swg for wxPython | |
54 | * | |
55 | * Include only the function prototypes and such from SWIG's common.swg, | |
56 | * but not the runtime functions themselves. This helps keep the | |
57 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
58 | * anyway. | |
59 | * | |
60 | ************************************************************************/ | |
61 | ||
62 | #include <string.h> | |
63 | ||
f0983263 RD |
64 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) |
65 | # if defined(_MSC_VER) || defined(__GNUC__) | |
66 | # if defined(STATIC_LINKED) | |
67 | # define SWIGEXPORT(a) a | |
68 | # define SWIGIMPORT(a) extern a | |
69 | # else | |
70 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
71 | # define SWIGIMPORT(a) extern a | |
72 | # endif | |
73 | # else | |
74 | # if defined(__BORLANDC__) | |
75 | # define SWIGEXPORT(a) a _export | |
76 | # define SWIGIMPORT(a) a _export | |
77 | # else | |
78 | # define SWIGEXPORT(a) a | |
79 | # define SWIGIMPORT(a) a | |
80 | # endif | |
81 | # endif | |
d14a1e28 | 82 | #else |
f0983263 RD |
83 | # define SWIGEXPORT(a) a |
84 | # define SWIGIMPORT(a) a | |
d14a1e28 RD |
85 | #endif |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
f0983263 | 88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) |
d14a1e28 | 89 | #else |
f0983263 | 90 | # define SWIGRUNTIME(a) static a |
d14a1e28 RD |
91 | #endif |
92 | ||
d14a1e28 RD |
93 | #ifdef __cplusplus |
94 | extern "C" { | |
95 | #endif | |
96 | ||
97 | typedef void *(*swig_converter_func)(void *); | |
98 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
99 | ||
100 | typedef struct swig_type_info { | |
f0983263 | 101 | const char *name; |
d14a1e28 RD |
102 | swig_converter_func converter; |
103 | const char *str; | |
f0983263 | 104 | void *clientdata; |
d14a1e28 RD |
105 | swig_dycast_func dcast; |
106 | struct swig_type_info *next; | |
107 | struct swig_type_info *prev; | |
108 | } swig_type_info; | |
109 | ||
110 | ||
111 | SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); | |
112 | SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); | |
113 | SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); | |
114 | SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); | |
115 | SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); | |
116 | SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); | |
117 | SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); | |
f0983263 RD |
118 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); |
119 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
d14a1e28 RD |
120 | |
121 | ||
122 | #ifdef __cplusplus | |
123 | } | |
423f194a | 124 | |
d14a1e28 RD |
125 | #endif |
126 | ||
f0983263 | 127 | |
d14a1e28 RD |
128 | /*********************************************************************** |
129 | * pyrun.swg for wxPython | |
130 | * | |
131 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
132 | * but not the runtime functions themselves. This helps keep the | |
133 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
134 | * anyway. | |
135 | * | |
136 | ************************************************************************/ | |
137 | ||
d14a1e28 RD |
138 | #include "Python.h" |
139 | ||
140 | #ifdef __cplusplus | |
141 | extern "C" { | |
142 | #endif | |
143 | ||
144 | #define SWIG_PY_INT 1 | |
145 | #define SWIG_PY_FLOAT 2 | |
146 | #define SWIG_PY_STRING 3 | |
147 | #define SWIG_PY_POINTER 4 | |
148 | #define SWIG_PY_BINARY 5 | |
149 | ||
150 | /* Flags for pointer conversion */ | |
151 | ||
152 | #define SWIG_POINTER_EXCEPTION 0x1 | |
153 | #define SWIG_POINTER_DISOWN 0x2 | |
154 | ||
155 | /* Exception handling in wrappers */ | |
156 | #define SWIG_fail goto fail | |
157 | ||
158 | /* Constant information structure */ | |
159 | typedef struct swig_const_info { | |
160 | int type; | |
161 | char *name; | |
162 | long lvalue; | |
163 | double dvalue; | |
164 | void *pvalue; | |
165 | swig_type_info **ptype; | |
166 | } swig_const_info; | |
167 | ||
d14a1e28 RD |
168 | /* Common SWIG API */ |
169 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
170 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
171 | #define SWIG_NewPointerObj(p, type, flags) \ | |
172 | SWIG_Python_NewPointerObj(p, type, flags) | |
173 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
174 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
175 | ||
176 | /* Python-specific SWIG API */ | |
177 | #define SWIG_newvarlink() \ | |
178 | SWIG_Python_newvarlink() | |
179 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ | |
180 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
181 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ | |
182 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
d14a1e28 RD |
183 | #define SWIG_NewPackedObj(ptr, sz, type) \ |
184 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
185 | #define SWIG_InstallConstants(d, constants) \ | |
186 | SWIG_Python_InstallConstants(d, constants) | |
187 | ||
188 | ||
f0983263 RD |
189 | SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); |
190 | SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
191 | SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
192 | SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); | |
193 | SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
194 | SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
195 | SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
196 | SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
d14a1e28 | 197 | |
d14a1e28 RD |
198 | |
199 | ||
200 | /* Contract support */ | |
201 | ||
423f194a | 202 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else |
d14a1e28 | 203 | |
d14a1e28 RD |
204 | #ifdef __cplusplus |
205 | } | |
206 | #endif | |
207 | ||
208 | ||
209 | ||
210 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
211 | ||
212 | #define SWIGTYPE_p_wxPostScriptDC swig_types[0] | |
423f194a RD |
213 | #define SWIGTYPE_p_wxBrush swig_types[1] |
214 | #define SWIGTYPE_p_wxColour swig_types[2] | |
215 | #define SWIGTYPE_p_wxDC swig_types[3] | |
216 | #define SWIGTYPE_p_wxMirrorDC swig_types[4] | |
217 | #define SWIGTYPE_p_byte swig_types[5] | |
218 | #define SWIGTYPE_p_wxPyFontEnumerator swig_types[6] | |
219 | #define SWIGTYPE_p_wxIconLocation swig_types[7] | |
220 | #define SWIGTYPE_p_wxImage swig_types[8] | |
221 | #define SWIGTYPE_p_wxMetaFileDC swig_types[9] | |
222 | #define SWIGTYPE_p_wxMask swig_types[10] | |
223 | #define SWIGTYPE_p_wxFont swig_types[11] | |
224 | #define SWIGTYPE_p_wxWindow swig_types[12] | |
225 | #define SWIGTYPE_p_wxSize swig_types[13] | |
226 | #define SWIGTYPE_p_double swig_types[14] | |
227 | #define SWIGTYPE_p_wxMemoryDC swig_types[15] | |
228 | #define SWIGTYPE_p_wxFontMapper swig_types[16] | |
229 | #define SWIGTYPE_p_wxEffects swig_types[17] | |
230 | #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[18] | |
231 | #define SWIGTYPE_p_wxPalette swig_types[19] | |
232 | #define SWIGTYPE_p_wxBitmap swig_types[20] | |
233 | #define SWIGTYPE_p_wxObject swig_types[21] | |
234 | #define SWIGTYPE_p_wxRegionIterator swig_types[22] | |
235 | #define SWIGTYPE_p_wxRect swig_types[23] | |
236 | #define SWIGTYPE_p_wxString swig_types[24] | |
237 | #define SWIGTYPE_p_wxPrinterDC swig_types[25] | |
238 | #define SWIGTYPE_p_wxIconBundle swig_types[26] | |
239 | #define SWIGTYPE_p_wxPoint swig_types[27] | |
240 | #define SWIGTYPE_p_wxDash swig_types[28] | |
241 | #define SWIGTYPE_p_wxScreenDC swig_types[29] | |
242 | #define SWIGTYPE_p_wxCursor swig_types[30] | |
243 | #define SWIGTYPE_p_wxClientDC swig_types[31] | |
244 | #define SWIGTYPE_p_wxBufferedDC swig_types[32] | |
245 | #define SWIGTYPE_p_wxImageList swig_types[33] | |
246 | #define SWIGTYPE_p_unsigned_char swig_types[34] | |
247 | #define SWIGTYPE_p_wxGDIObject swig_types[35] | |
248 | #define SWIGTYPE_p_wxLocale swig_types[36] | |
249 | #define SWIGTYPE_p_wxIcon swig_types[37] | |
250 | #define SWIGTYPE_p_wxRegion swig_types[38] | |
251 | #define SWIGTYPE_p_wxLanguageInfo swig_types[39] | |
252 | #define SWIGTYPE_p_wxConfigBase swig_types[40] | |
253 | #define SWIGTYPE_p_wxWindowDC swig_types[41] | |
254 | #define SWIGTYPE_p_wxPrintData swig_types[42] | |
255 | #define SWIGTYPE_p_wxBrushList swig_types[43] | |
256 | #define SWIGTYPE_p_wxFontList swig_types[44] | |
257 | #define SWIGTYPE_p_wxPen swig_types[45] | |
258 | #define SWIGTYPE_p_wxBufferedPaintDC swig_types[46] | |
259 | #define SWIGTYPE_p_wxPaintDC swig_types[47] | |
260 | #define SWIGTYPE_p_wxPenList swig_types[48] | |
261 | #define SWIGTYPE_p_wxPyPen swig_types[49] | |
262 | #define SWIGTYPE_p_int swig_types[50] | |
263 | #define SWIGTYPE_p_wxMetaFile swig_types[51] | |
264 | #define SWIGTYPE_p_wxNativeFontInfo swig_types[52] | |
265 | #define SWIGTYPE_p_wxEncodingConverter swig_types[53] | |
266 | #define SWIGTYPE_p_wxColourDatabase swig_types[54] | |
267 | static swig_type_info *swig_types[56]; | |
d14a1e28 RD |
268 | |
269 | /* -------- TYPES TABLE (END) -------- */ | |
270 | ||
271 | ||
272 | /*----------------------------------------------- | |
273 | @(target):= _gdi.so | |
274 | ------------------------------------------------*/ | |
275 | #define SWIG_init init_gdi | |
276 | ||
277 | #define SWIG_name "_gdi" | |
278 | ||
279 | #include "wx/wxPython/wxPython.h" | |
280 | #include "wx/wxPython/pyclasses.h" | |
281 | ||
d14a1e28 | 282 | |
d03fd34d | 283 | static const wxString wxPyEmptyString(wxEmptyString); |
d14a1e28 RD |
284 | PyObject *wxColour_Get(wxColour *self){ |
285 | PyObject* rv = PyTuple_New(3); | |
286 | int red = -1; | |
287 | int green = -1; | |
288 | int blue = -1; | |
289 | if (self->Ok()) { | |
290 | red = self->Red(); | |
291 | green = self->Green(); | |
292 | blue = self->Blue(); | |
293 | } | |
294 | PyTuple_SetItem(rv, 0, PyInt_FromLong(red)); | |
295 | PyTuple_SetItem(rv, 1, PyInt_FromLong(green)); | |
296 | PyTuple_SetItem(rv, 2, PyInt_FromLong(blue)); | |
297 | return rv; | |
298 | } | |
299 | ||
300 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
301 | PyObject* o2; | |
302 | PyObject* o3; | |
303 | ||
304 | if (!target) { | |
305 | target = o; | |
306 | } else if (target == Py_None) { | |
307 | Py_DECREF(Py_None); | |
308 | target = o; | |
309 | } else { | |
310 | if (!PyTuple_Check(target)) { | |
311 | o2 = target; | |
312 | target = PyTuple_New(1); | |
313 | PyTuple_SetItem(target, 0, o2); | |
314 | } | |
315 | o3 = PyTuple_New(1); | |
316 | PyTuple_SetItem(o3, 0, o); | |
317 | ||
318 | o2 = target; | |
319 | target = PySequence_Concat(o2, o3); | |
320 | Py_DECREF(o2); | |
321 | Py_DECREF(o3); | |
322 | } | |
323 | return target; | |
324 | } | |
325 | ||
326 | PyObject *wxPen_GetDashes(wxPen *self){ | |
327 | wxDash* dashes; | |
328 | int count = self->GetDashes(&dashes); | |
329 | wxPyBeginBlockThreads(); | |
330 | PyObject* retval = PyList_New(0); | |
331 | for (int x=0; x<count; x++) | |
332 | PyList_Append(retval, PyInt_FromLong(dashes[x])); | |
333 | wxPyEndBlockThreads(); | |
334 | return retval; | |
335 | } | |
336 | ||
337 | wxPyPen::~wxPyPen() | |
338 | { | |
339 | if (m_dash) | |
340 | delete [] m_dash; | |
341 | } | |
342 | ||
343 | void wxPyPen::SetDashes(int nb_dashes, const wxDash *dash) | |
344 | { | |
345 | if (m_dash) | |
346 | delete [] m_dash; | |
347 | m_dash = new wxDash[nb_dashes]; | |
348 | for (int i=0; i<nb_dashes; i++) { | |
349 | m_dash[i] = dash[i]; | |
350 | } | |
351 | wxPen::SetDashes(nb_dashes, m_dash); | |
352 | } | |
353 | ||
354 | ||
355 | #include <wx/image.h> | |
356 | ||
357 | static char** ConvertListOfStrings(PyObject* listOfStrings) { | |
358 | char** cArray = NULL; | |
359 | int count; | |
360 | ||
361 | if (!PyList_Check(listOfStrings)) { | |
362 | PyErr_SetString(PyExc_TypeError, "Expected a list of strings."); | |
363 | return NULL; | |
364 | } | |
365 | count = PyList_Size(listOfStrings); | |
366 | cArray = new char*[count]; | |
367 | ||
368 | for(int x=0; x<count; x++) { | |
369 | // TODO: Need some validation and error checking here | |
370 | cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x)); | |
371 | } | |
372 | return cArray; | |
373 | } | |
374 | ||
375 | ||
376 | wxBitmap *new_wxBitmap(PyObject *listOfStrings){ | |
377 | char** cArray = NULL; | |
378 | wxBitmap* bmp; | |
379 | ||
380 | cArray = ConvertListOfStrings(listOfStrings); | |
381 | if (! cArray) | |
382 | return NULL; | |
383 | bmp = new wxBitmap(cArray); | |
384 | delete [] cArray; | |
385 | return bmp; | |
386 | } | |
387 | wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){ | |
388 | char* buf; | |
389 | int length; | |
390 | PyString_AsStringAndSize(bits, &buf, &length); | |
391 | return new wxBitmap(buf, width, height, depth); | |
392 | } | |
393 | void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){ | |
394 | wxMask *mask = new wxMask(*self, colour); | |
395 | self->SetMask(mask); | |
396 | } | |
397 | ||
398 | #include <wx/iconbndl.h> | |
399 | ||
400 | wxIcon *new_wxIcon(wxBitmap const &bmp){ | |
401 | wxIcon* icon = new wxIcon(); | |
402 | icon->CopyFromBitmap(bmp); | |
403 | return icon; | |
404 | } | |
405 | wxIcon *new_wxIcon(PyObject *listOfStrings){ | |
406 | char** cArray = NULL; | |
407 | wxIcon* icon; | |
408 | ||
409 | cArray = ConvertListOfStrings(listOfStrings); | |
410 | if (! cArray) | |
411 | return NULL; | |
412 | icon = new wxIcon(cArray); | |
413 | delete [] cArray; | |
414 | return icon; | |
415 | } | |
416 | wxIconLocation *new_wxIconLocation(wxString const *filename,int num){ | |
417 | ||
418 | return new wxIconLocation(*filename, num); | |
419 | ||
420 | ||
421 | ||
422 | } | |
423 | void wxIconLocation_SetIndex(wxIconLocation *self,int num){ | |
424 | ||
425 | self->SetIndex(num); | |
426 | ||
427 | ||
428 | ||
429 | } | |
430 | int wxIconLocation_GetIndex(wxIconLocation *self){ | |
431 | ||
432 | return self->GetIndex(); | |
433 | ||
434 | ||
435 | ||
436 | } | |
437 | wxCursor *new_wxCursor(wxString const *cursorName,long flags,int hotSpotX,int hotSpotY){ | |
438 | ||
439 | ||
440 | ||
441 | ||
442 | return new wxCursor(*cursorName, flags, hotSpotX, hotSpotY); | |
443 | ||
444 | } | |
445 | wxCursor *new_wxCursor(PyObject *bits,int width,int height,int hotSpotX,int hotSpotY,PyObject *maskBits){ | |
446 | char* bitsbuf; | |
447 | char* maskbuf = NULL; | |
448 | int length; | |
449 | PyString_AsStringAndSize(bits, &bitsbuf, &length); | |
450 | if (maskBits) | |
451 | PyString_AsStringAndSize(maskBits, &maskbuf, &length); | |
452 | return new wxCursor(bitsbuf, width, height, hotSpotX, hotSpotY, maskbuf); | |
453 | } | |
454 | ||
455 | ||
456 | void wxRegionIterator_Next(wxRegionIterator *self){ | |
457 | (*self) ++; | |
458 | } | |
459 | bool wxRegionIterator___nonzero__(wxRegionIterator *self){ | |
460 | return self->operator bool(); | |
461 | } | |
462 | ||
463 | #include <wx/fontutil.h> | |
464 | #include <wx/fontmap.h> | |
465 | #include <wx/fontenum.h> | |
466 | ||
467 | wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){ | |
468 | return self->ToString(); | |
469 | } | |
470 | ||
471 | wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) | |
472 | { PyErr_SetNone(PyExc_NotImplementedError); return NULL; } | |
473 | ||
474 | bool wxTestFontEncoding(const wxNativeEncodingInfo& info) | |
423f194a | 475 | { PyErr_SetNone(PyExc_NotImplementedError); return False; } |
d14a1e28 RD |
476 | |
477 | PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){ | |
478 | wxFontEncoding alt_enc; | |
479 | if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive)) | |
480 | return PyInt_FromLong(alt_enc); | |
481 | else { | |
482 | Py_INCREF(Py_None); | |
483 | return Py_None; | |
484 | } | |
485 | } | |
486 | wxFont *new_wxFont(wxString const &info){ | |
487 | wxNativeFontInfo nfi; | |
488 | nfi.FromString(info); | |
489 | return new wxFont(nfi); | |
490 | } | |
491 | wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){ | |
492 | return wxFont::New(pointSize, family, flags, face, encoding); | |
493 | } | |
494 | ||
495 | class wxPyFontEnumerator : public wxFontEnumerator { | |
496 | public: | |
497 | wxPyFontEnumerator() {} | |
498 | ~wxPyFontEnumerator() {} | |
499 | ||
500 | DEC_PYCALLBACK_BOOL_STRING(OnFacename); | |
501 | DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding); | |
502 | ||
503 | PYPRIVATE; | |
504 | }; | |
505 | ||
506 | IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename); | |
507 | IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding); | |
508 | ||
509 | ||
510 | PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){ | |
511 | wxArrayString* arr = self->GetEncodings(); | |
512 | return wxArrayString2PyList_helper(*arr); | |
513 | } | |
514 | PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){ | |
515 | wxArrayString* arr = self->GetFacenames(); | |
516 | return wxArrayString2PyList_helper(*arr); | |
517 | } | |
518 | ||
519 | ||
520 | ||
521 | #include "wx/wxPython/pydrawxxx.h" | |
522 | ||
423f194a | 523 | wxColour wxDC_GetPixelXY(wxDC *self,int x,int y){ |
d14a1e28 RD |
524 | wxColour col; |
525 | self->GetPixel(x, y, &col); | |
526 | return col; | |
527 | } | |
528 | wxColour wxDC_GetPixel(wxDC *self,wxPoint const &pt){ | |
529 | wxColour col; | |
530 | self->GetPixel(pt, &col); | |
531 | return col; | |
532 | } | |
533 | wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){ | |
534 | wxRect rv; | |
535 | self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); | |
536 | return rv; | |
537 | } | |
538 | wxRect wxDC_GetClippingRect(wxDC *self){ | |
539 | wxRect rect; | |
540 | self->GetClippingBox(rect); | |
541 | return rect; | |
542 | } | |
543 | PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
544 | return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes); | |
545 | } | |
546 | PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
547 | return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes); | |
548 | } | |
549 | PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
550 | return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes); | |
551 | } | |
552 | PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
553 | return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes); | |
554 | } | |
555 | PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
556 | return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes); | |
557 | } | |
558 | PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){ | |
559 | return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList); | |
560 | } | |
561 | ||
562 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
563 | *x1 = dc->MinX(); | |
564 | *y1 = dc->MinY(); | |
565 | *x2 = dc->MaxX(); | |
566 | *y2 = dc->MaxY(); | |
567 | } | |
568 | ||
569 | ||
570 | #include <wx/dcps.h> | |
571 | ||
572 | ||
573 | #include <wx/metafile.h> | |
574 | ||
575 | ||
576 | ||
577 | void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){ | |
578 | self->AddColour(name, wxColour(red, green, blue)); | |
579 | } | |
580 | ||
d14a1e28 RD |
581 | #include <wx/effects.h> |
582 | ||
583 | #ifdef __cplusplus | |
584 | extern "C" { | |
585 | #endif | |
586 | static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
587 | PyObject *resultobj; | |
588 | wxGDIObject *result; | |
589 | char *kwnames[] = { | |
590 | NULL | |
591 | }; | |
592 | ||
593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail; | |
594 | { | |
595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
596 | result = (wxGDIObject *)new wxGDIObject(); | |
597 | ||
598 | wxPyEndAllowThreads(__tstate); | |
599 | if (PyErr_Occurred()) SWIG_fail; | |
600 | } | |
601 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGDIObject, 1); | |
602 | return resultobj; | |
603 | fail: | |
604 | return NULL; | |
605 | } | |
606 | ||
607 | ||
608 | static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
609 | PyObject *resultobj; | |
610 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
611 | PyObject * obj0 = 0 ; | |
612 | char *kwnames[] = { | |
613 | (char *) "self", NULL | |
614 | }; | |
615 | ||
616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail; | |
617 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
618 | { | |
619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
620 | delete arg1; | |
621 | ||
622 | wxPyEndAllowThreads(__tstate); | |
623 | if (PyErr_Occurred()) SWIG_fail; | |
624 | } | |
625 | Py_INCREF(Py_None); resultobj = Py_None; | |
626 | return resultobj; | |
627 | fail: | |
628 | return NULL; | |
629 | } | |
630 | ||
631 | ||
632 | static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
633 | PyObject *resultobj; | |
634 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
635 | bool result; | |
636 | PyObject * obj0 = 0 ; | |
637 | char *kwnames[] = { | |
638 | (char *) "self", NULL | |
639 | }; | |
640 | ||
641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail; | |
642 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
643 | { | |
644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
645 | result = (bool)(arg1)->GetVisible(); | |
646 | ||
647 | wxPyEndAllowThreads(__tstate); | |
648 | if (PyErr_Occurred()) SWIG_fail; | |
649 | } | |
650 | resultobj = PyInt_FromLong((long)result); | |
651 | return resultobj; | |
652 | fail: | |
653 | return NULL; | |
654 | } | |
655 | ||
656 | ||
657 | static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
658 | PyObject *resultobj; | |
659 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
660 | bool arg2 ; | |
661 | PyObject * obj0 = 0 ; | |
662 | PyObject * obj1 = 0 ; | |
663 | char *kwnames[] = { | |
664 | (char *) "self",(char *) "visible", NULL | |
665 | }; | |
666 | ||
667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail; | |
668 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
669 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
670 | if (PyErr_Occurred()) SWIG_fail; | |
671 | { | |
672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
673 | (arg1)->SetVisible(arg2); | |
674 | ||
675 | wxPyEndAllowThreads(__tstate); | |
676 | if (PyErr_Occurred()) SWIG_fail; | |
677 | } | |
678 | Py_INCREF(Py_None); resultobj = Py_None; | |
679 | return resultobj; | |
680 | fail: | |
681 | return NULL; | |
682 | } | |
683 | ||
684 | ||
685 | static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
686 | PyObject *resultobj; | |
687 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
688 | bool result; | |
689 | PyObject * obj0 = 0 ; | |
690 | char *kwnames[] = { | |
691 | (char *) "self", NULL | |
692 | }; | |
693 | ||
694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail; | |
695 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
696 | { | |
697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
698 | result = (bool)(arg1)->IsNull(); | |
699 | ||
700 | wxPyEndAllowThreads(__tstate); | |
701 | if (PyErr_Occurred()) SWIG_fail; | |
702 | } | |
703 | resultobj = PyInt_FromLong((long)result); | |
704 | return resultobj; | |
705 | fail: | |
706 | return NULL; | |
707 | } | |
708 | ||
709 | ||
710 | static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) { | |
711 | PyObject *obj; | |
712 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
713 | SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj); | |
714 | Py_INCREF(obj); | |
715 | return Py_BuildValue((char *)""); | |
716 | } | |
717 | static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
718 | PyObject *resultobj; | |
719 | unsigned char arg1 = (unsigned char) 0 ; | |
720 | unsigned char arg2 = (unsigned char) 0 ; | |
721 | unsigned char arg3 = (unsigned char) 0 ; | |
722 | wxColour *result; | |
723 | PyObject * obj0 = 0 ; | |
724 | PyObject * obj1 = 0 ; | |
725 | PyObject * obj2 = 0 ; | |
726 | char *kwnames[] = { | |
727 | (char *) "red",(char *) "green",(char *) "blue", NULL | |
728 | }; | |
729 | ||
730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
731 | if (obj0) { | |
732 | arg1 = (unsigned char) PyInt_AsLong(obj0); | |
733 | if (PyErr_Occurred()) SWIG_fail; | |
734 | } | |
735 | if (obj1) { | |
736 | arg2 = (unsigned char) PyInt_AsLong(obj1); | |
737 | if (PyErr_Occurred()) SWIG_fail; | |
738 | } | |
739 | if (obj2) { | |
740 | arg3 = (unsigned char) PyInt_AsLong(obj2); | |
741 | if (PyErr_Occurred()) SWIG_fail; | |
742 | } | |
743 | { | |
744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
745 | result = (wxColour *)new wxColour(arg1,arg2,arg3); | |
746 | ||
747 | wxPyEndAllowThreads(__tstate); | |
748 | if (PyErr_Occurred()) SWIG_fail; | |
749 | } | |
750 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1); | |
751 | return resultobj; | |
752 | fail: | |
753 | return NULL; | |
754 | } | |
755 | ||
756 | ||
757 | static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
758 | PyObject *resultobj; | |
759 | wxColour *arg1 = (wxColour *) 0 ; | |
760 | PyObject * obj0 = 0 ; | |
761 | char *kwnames[] = { | |
762 | (char *) "self", NULL | |
763 | }; | |
764 | ||
765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail; | |
766 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
767 | { | |
768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
769 | delete arg1; | |
770 | ||
771 | wxPyEndAllowThreads(__tstate); | |
772 | if (PyErr_Occurred()) SWIG_fail; | |
773 | } | |
774 | Py_INCREF(Py_None); resultobj = Py_None; | |
775 | return resultobj; | |
776 | fail: | |
777 | return NULL; | |
778 | } | |
779 | ||
780 | ||
781 | static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
782 | PyObject *resultobj; | |
783 | wxString *arg1 = 0 ; | |
784 | wxColour *result; | |
423f194a | 785 | bool temp1 = False ; |
d14a1e28 RD |
786 | PyObject * obj0 = 0 ; |
787 | char *kwnames[] = { | |
788 | (char *) "colorName", NULL | |
789 | }; | |
790 | ||
791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail; | |
792 | { | |
793 | arg1 = wxString_in_helper(obj0); | |
794 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 795 | temp1 = True; |
d14a1e28 RD |
796 | } |
797 | { | |
798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
799 | result = (wxColour *)new wxColour((wxString const &)*arg1); | |
800 | ||
801 | wxPyEndAllowThreads(__tstate); | |
802 | if (PyErr_Occurred()) SWIG_fail; | |
803 | } | |
804 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1); | |
805 | { | |
806 | if (temp1) | |
807 | delete arg1; | |
808 | } | |
809 | return resultobj; | |
810 | fail: | |
811 | { | |
812 | if (temp1) | |
813 | delete arg1; | |
814 | } | |
815 | return NULL; | |
816 | } | |
817 | ||
818 | ||
819 | static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
820 | PyObject *resultobj; | |
821 | unsigned long arg1 ; | |
822 | wxColour *result; | |
823 | PyObject * obj0 = 0 ; | |
824 | char *kwnames[] = { | |
825 | (char *) "colRGB", NULL | |
826 | }; | |
827 | ||
828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail; | |
829 | arg1 = (unsigned long) PyInt_AsLong(obj0); | |
830 | if (PyErr_Occurred()) SWIG_fail; | |
831 | { | |
832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
833 | result = (wxColour *)new wxColour(arg1); | |
834 | ||
835 | wxPyEndAllowThreads(__tstate); | |
836 | if (PyErr_Occurred()) SWIG_fail; | |
837 | } | |
838 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1); | |
839 | return resultobj; | |
840 | fail: | |
841 | return NULL; | |
842 | } | |
843 | ||
844 | ||
845 | static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) { | |
846 | PyObject *resultobj; | |
847 | wxColour *arg1 = (wxColour *) 0 ; | |
848 | unsigned char result; | |
849 | PyObject * obj0 = 0 ; | |
850 | char *kwnames[] = { | |
851 | (char *) "self", NULL | |
852 | }; | |
853 | ||
854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail; | |
855 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
856 | { | |
857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
858 | result = (unsigned char)(arg1)->Red(); | |
859 | ||
860 | wxPyEndAllowThreads(__tstate); | |
861 | if (PyErr_Occurred()) SWIG_fail; | |
862 | } | |
863 | resultobj = PyInt_FromLong((long)result); | |
864 | return resultobj; | |
865 | fail: | |
866 | return NULL; | |
867 | } | |
868 | ||
869 | ||
870 | static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) { | |
871 | PyObject *resultobj; | |
872 | wxColour *arg1 = (wxColour *) 0 ; | |
873 | unsigned char result; | |
874 | PyObject * obj0 = 0 ; | |
875 | char *kwnames[] = { | |
876 | (char *) "self", NULL | |
877 | }; | |
878 | ||
879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail; | |
880 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
881 | { | |
882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
883 | result = (unsigned char)(arg1)->Green(); | |
884 | ||
885 | wxPyEndAllowThreads(__tstate); | |
886 | if (PyErr_Occurred()) SWIG_fail; | |
887 | } | |
888 | resultobj = PyInt_FromLong((long)result); | |
889 | return resultobj; | |
890 | fail: | |
891 | return NULL; | |
892 | } | |
893 | ||
894 | ||
895 | static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
896 | PyObject *resultobj; | |
897 | wxColour *arg1 = (wxColour *) 0 ; | |
898 | unsigned char result; | |
899 | PyObject * obj0 = 0 ; | |
900 | char *kwnames[] = { | |
901 | (char *) "self", NULL | |
902 | }; | |
903 | ||
904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail; | |
905 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
906 | { | |
907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908 | result = (unsigned char)(arg1)->Blue(); | |
909 | ||
910 | wxPyEndAllowThreads(__tstate); | |
911 | if (PyErr_Occurred()) SWIG_fail; | |
912 | } | |
913 | resultobj = PyInt_FromLong((long)result); | |
914 | return resultobj; | |
915 | fail: | |
916 | return NULL; | |
917 | } | |
918 | ||
919 | ||
920 | static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
921 | PyObject *resultobj; | |
922 | wxColour *arg1 = (wxColour *) 0 ; | |
923 | bool result; | |
924 | PyObject * obj0 = 0 ; | |
925 | char *kwnames[] = { | |
926 | (char *) "self", NULL | |
927 | }; | |
928 | ||
929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail; | |
930 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
931 | { | |
932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
933 | result = (bool)(arg1)->Ok(); | |
934 | ||
935 | wxPyEndAllowThreads(__tstate); | |
936 | if (PyErr_Occurred()) SWIG_fail; | |
937 | } | |
938 | resultobj = PyInt_FromLong((long)result); | |
939 | return resultobj; | |
940 | fail: | |
941 | return NULL; | |
942 | } | |
943 | ||
944 | ||
945 | static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
946 | PyObject *resultobj; | |
947 | wxColour *arg1 = (wxColour *) 0 ; | |
948 | unsigned char arg2 ; | |
949 | unsigned char arg3 ; | |
950 | unsigned char arg4 ; | |
951 | PyObject * obj0 = 0 ; | |
952 | PyObject * obj1 = 0 ; | |
953 | PyObject * obj2 = 0 ; | |
954 | PyObject * obj3 = 0 ; | |
955 | char *kwnames[] = { | |
956 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
957 | }; | |
958 | ||
959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
960 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
961 | arg2 = (unsigned char) PyInt_AsLong(obj1); | |
962 | if (PyErr_Occurred()) SWIG_fail; | |
963 | arg3 = (unsigned char) PyInt_AsLong(obj2); | |
964 | if (PyErr_Occurred()) SWIG_fail; | |
965 | arg4 = (unsigned char) PyInt_AsLong(obj3); | |
966 | if (PyErr_Occurred()) SWIG_fail; | |
967 | { | |
968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
969 | (arg1)->Set(arg2,arg3,arg4); | |
970 | ||
971 | wxPyEndAllowThreads(__tstate); | |
972 | if (PyErr_Occurred()) SWIG_fail; | |
973 | } | |
974 | Py_INCREF(Py_None); resultobj = Py_None; | |
975 | return resultobj; | |
976 | fail: | |
977 | return NULL; | |
978 | } | |
979 | ||
980 | ||
9fd4be55 | 981 | static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
982 | PyObject *resultobj; |
983 | wxColour *arg1 = (wxColour *) 0 ; | |
984 | unsigned long arg2 ; | |
985 | PyObject * obj0 = 0 ; | |
986 | PyObject * obj1 = 0 ; | |
987 | char *kwnames[] = { | |
988 | (char *) "self",(char *) "colRGB", NULL | |
989 | }; | |
990 | ||
9fd4be55 | 991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
992 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
993 | arg2 = (unsigned long) PyInt_AsLong(obj1); | |
994 | if (PyErr_Occurred()) SWIG_fail; | |
995 | { | |
996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
997 | (arg1)->Set(arg2); | |
998 | ||
999 | wxPyEndAllowThreads(__tstate); | |
1000 | if (PyErr_Occurred()) SWIG_fail; | |
1001 | } | |
1002 | Py_INCREF(Py_None); resultobj = Py_None; | |
1003 | return resultobj; | |
1004 | fail: | |
1005 | return NULL; | |
1006 | } | |
1007 | ||
1008 | ||
1009 | static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1010 | PyObject *resultobj; | |
1011 | wxColour *arg1 = (wxColour *) 0 ; | |
1012 | wxColour *arg2 = 0 ; | |
1013 | bool result; | |
1014 | wxColour temp2 ; | |
1015 | PyObject * obj0 = 0 ; | |
1016 | PyObject * obj1 = 0 ; | |
1017 | char *kwnames[] = { | |
1018 | (char *) "self",(char *) "colour", NULL | |
1019 | }; | |
1020 | ||
1021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail; | |
1022 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1023 | { | |
1024 | arg2 = &temp2; | |
1025 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1026 | } | |
1027 | { | |
1028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1029 | result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2); | |
1030 | ||
1031 | wxPyEndAllowThreads(__tstate); | |
1032 | if (PyErr_Occurred()) SWIG_fail; | |
1033 | } | |
1034 | resultobj = PyInt_FromLong((long)result); | |
1035 | return resultobj; | |
1036 | fail: | |
1037 | return NULL; | |
1038 | } | |
1039 | ||
1040 | ||
1041 | static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1042 | PyObject *resultobj; | |
1043 | wxColour *arg1 = (wxColour *) 0 ; | |
1044 | wxColour *arg2 = 0 ; | |
1045 | bool result; | |
1046 | wxColour temp2 ; | |
1047 | PyObject * obj0 = 0 ; | |
1048 | PyObject * obj1 = 0 ; | |
1049 | char *kwnames[] = { | |
1050 | (char *) "self",(char *) "colour", NULL | |
1051 | }; | |
1052 | ||
1053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail; | |
1054 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1055 | { | |
1056 | arg2 = &temp2; | |
1057 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1058 | } | |
1059 | { | |
1060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1061 | result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2); | |
1062 | ||
1063 | wxPyEndAllowThreads(__tstate); | |
1064 | if (PyErr_Occurred()) SWIG_fail; | |
1065 | } | |
1066 | resultobj = PyInt_FromLong((long)result); | |
1067 | return resultobj; | |
1068 | fail: | |
1069 | return NULL; | |
1070 | } | |
1071 | ||
1072 | ||
9fd4be55 RD |
1073 | static PyObject *_wrap_Colour_InitFromName(PyObject *self, PyObject *args, PyObject *kwargs) { |
1074 | PyObject *resultobj; | |
1075 | wxColour *arg1 = (wxColour *) 0 ; | |
1076 | wxString *arg2 = 0 ; | |
1077 | bool temp2 = False ; | |
1078 | PyObject * obj0 = 0 ; | |
1079 | PyObject * obj1 = 0 ; | |
1080 | char *kwnames[] = { | |
1081 | (char *) "self",(char *) "colourName", NULL | |
1082 | }; | |
1083 | ||
1084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_InitFromName",kwnames,&obj0,&obj1)) goto fail; | |
1085 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1086 | { | |
1087 | arg2 = wxString_in_helper(obj1); | |
1088 | if (arg2 == NULL) SWIG_fail; | |
1089 | temp2 = True; | |
1090 | } | |
1091 | { | |
1092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1093 | (arg1)->InitFromName((wxString const &)*arg2); | |
1094 | ||
1095 | wxPyEndAllowThreads(__tstate); | |
1096 | if (PyErr_Occurred()) SWIG_fail; | |
1097 | } | |
1098 | Py_INCREF(Py_None); resultobj = Py_None; | |
1099 | { | |
1100 | if (temp2) | |
1101 | delete arg2; | |
1102 | } | |
1103 | return resultobj; | |
1104 | fail: | |
1105 | { | |
1106 | if (temp2) | |
1107 | delete arg2; | |
1108 | } | |
1109 | return NULL; | |
1110 | } | |
1111 | ||
1112 | ||
d14a1e28 RD |
1113 | static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
1114 | PyObject *resultobj; | |
1115 | wxColour *arg1 = (wxColour *) 0 ; | |
1116 | PyObject *result; | |
1117 | PyObject * obj0 = 0 ; | |
1118 | char *kwnames[] = { | |
1119 | (char *) "self", NULL | |
1120 | }; | |
1121 | ||
1122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail; | |
1123 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1124 | { | |
1125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1126 | result = (PyObject *)wxColour_Get(arg1); | |
1127 | ||
1128 | wxPyEndAllowThreads(__tstate); | |
1129 | if (PyErr_Occurred()) SWIG_fail; | |
1130 | } | |
1131 | resultobj = result; | |
1132 | return resultobj; | |
1133 | fail: | |
1134 | return NULL; | |
1135 | } | |
1136 | ||
1137 | ||
1138 | static PyObject * Colour_swigregister(PyObject *self, PyObject *args) { | |
1139 | PyObject *obj; | |
1140 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1141 | SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj); | |
1142 | Py_INCREF(obj); | |
1143 | return Py_BuildValue((char *)""); | |
1144 | } | |
1145 | static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1146 | PyObject *resultobj; | |
1147 | int arg1 ; | |
1148 | unsigned char *arg2 = (unsigned char *) 0 ; | |
1149 | unsigned char *arg3 = (unsigned char *) 0 ; | |
1150 | unsigned char *arg4 = (unsigned char *) 0 ; | |
1151 | wxPalette *result; | |
1152 | PyObject * obj1 = 0 ; | |
1153 | PyObject * obj2 = 0 ; | |
1154 | PyObject * obj3 = 0 ; | |
1155 | char *kwnames[] = { | |
1156 | (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1157 | }; | |
1158 | ||
1159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iOOO:new_Palette",kwnames,&arg1,&obj1,&obj2,&obj3)) goto fail; | |
1160 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1161 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1162 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1163 | { | |
1164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1165 | result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4); | |
1166 | ||
1167 | wxPyEndAllowThreads(__tstate); | |
1168 | if (PyErr_Occurred()) SWIG_fail; | |
1169 | } | |
1170 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPalette, 1); | |
1171 | return resultobj; | |
1172 | fail: | |
1173 | return NULL; | |
1174 | } | |
1175 | ||
1176 | ||
1177 | static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1178 | PyObject *resultobj; | |
1179 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1180 | PyObject * obj0 = 0 ; | |
1181 | char *kwnames[] = { | |
1182 | (char *) "self", NULL | |
1183 | }; | |
1184 | ||
1185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail; | |
1186 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1187 | { | |
1188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1189 | delete arg1; | |
1190 | ||
1191 | wxPyEndAllowThreads(__tstate); | |
1192 | if (PyErr_Occurred()) SWIG_fail; | |
1193 | } | |
1194 | Py_INCREF(Py_None); resultobj = Py_None; | |
1195 | return resultobj; | |
1196 | fail: | |
1197 | return NULL; | |
1198 | } | |
1199 | ||
1200 | ||
1201 | static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1202 | PyObject *resultobj; | |
1203 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1204 | byte arg2 ; | |
1205 | byte arg3 ; | |
1206 | byte arg4 ; | |
1207 | int result; | |
1208 | PyObject * obj0 = 0 ; | |
1209 | PyObject * obj1 = 0 ; | |
1210 | PyObject * obj2 = 0 ; | |
1211 | PyObject * obj3 = 0 ; | |
1212 | char *kwnames[] = { | |
1213 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1214 | }; | |
1215 | ||
1216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
1217 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1218 | arg2 = (byte) PyInt_AsLong(obj1); | |
1219 | if (PyErr_Occurred()) SWIG_fail; | |
1220 | arg3 = (byte) PyInt_AsLong(obj2); | |
1221 | if (PyErr_Occurred()) SWIG_fail; | |
1222 | arg4 = (byte) PyInt_AsLong(obj3); | |
1223 | if (PyErr_Occurred()) SWIG_fail; | |
1224 | { | |
1225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1226 | result = (int)(arg1)->GetPixel(arg2,arg3,arg4); | |
1227 | ||
1228 | wxPyEndAllowThreads(__tstate); | |
1229 | if (PyErr_Occurred()) SWIG_fail; | |
1230 | } | |
1231 | resultobj = PyInt_FromLong((long)result); | |
1232 | return resultobj; | |
1233 | fail: | |
1234 | return NULL; | |
1235 | } | |
1236 | ||
1237 | ||
1238 | static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1239 | PyObject *resultobj; | |
1240 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1241 | int arg2 ; | |
1242 | byte *arg3 = (byte *) 0 ; | |
1243 | byte *arg4 = (byte *) 0 ; | |
1244 | byte *arg5 = (byte *) 0 ; | |
1245 | bool result; | |
1246 | byte temp3 ; | |
1247 | byte temp4 ; | |
1248 | byte temp5 ; | |
1249 | PyObject * obj0 = 0 ; | |
1250 | char *kwnames[] = { | |
1251 | (char *) "self",(char *) "pixel", NULL | |
1252 | }; | |
1253 | ||
1254 | arg3 = &temp3; | |
1255 | arg4 = &temp4; | |
1256 | arg5 = &temp5; | |
1257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Palette_GetRGB",kwnames,&obj0,&arg2)) goto fail; | |
1258 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1259 | { | |
1260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1261 | result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5); | |
1262 | ||
1263 | wxPyEndAllowThreads(__tstate); | |
1264 | if (PyErr_Occurred()) SWIG_fail; | |
1265 | } | |
1266 | resultobj = PyInt_FromLong((long)result); | |
1267 | { | |
1268 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
1269 | resultobj = t_output_helper(resultobj,o); | |
1270 | } | |
1271 | { | |
1272 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
1273 | resultobj = t_output_helper(resultobj,o); | |
1274 | } | |
1275 | { | |
1276 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
1277 | resultobj = t_output_helper(resultobj,o); | |
1278 | } | |
1279 | return resultobj; | |
1280 | fail: | |
1281 | return NULL; | |
1282 | } | |
1283 | ||
1284 | ||
1285 | static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1286 | PyObject *resultobj; | |
1287 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1288 | bool result; | |
1289 | PyObject * obj0 = 0 ; | |
1290 | char *kwnames[] = { | |
1291 | (char *) "self", NULL | |
1292 | }; | |
1293 | ||
1294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail; | |
1295 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1296 | { | |
1297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1298 | result = (bool)(arg1)->Ok(); | |
1299 | ||
1300 | wxPyEndAllowThreads(__tstate); | |
1301 | if (PyErr_Occurred()) SWIG_fail; | |
1302 | } | |
1303 | resultobj = PyInt_FromLong((long)result); | |
1304 | return resultobj; | |
1305 | fail: | |
1306 | return NULL; | |
1307 | } | |
1308 | ||
1309 | ||
1310 | static PyObject * Palette_swigregister(PyObject *self, PyObject *args) { | |
1311 | PyObject *obj; | |
1312 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1313 | SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj); | |
1314 | Py_INCREF(obj); | |
1315 | return Py_BuildValue((char *)""); | |
1316 | } | |
1317 | static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1318 | PyObject *resultobj; | |
1319 | wxColour *arg1 = 0 ; | |
1320 | int arg2 = (int) 1 ; | |
1321 | int arg3 = (int) wxSOLID ; | |
1322 | wxPen *result; | |
1323 | wxColour temp1 ; | |
1324 | PyObject * obj0 = 0 ; | |
1325 | char *kwnames[] = { | |
1326 | (char *) "colour",(char *) "width",(char *) "style", NULL | |
1327 | }; | |
1328 | ||
1329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:new_Pen",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
1330 | { | |
1331 | arg1 = &temp1; | |
1332 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
1333 | } | |
1334 | { | |
1335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1336 | result = (wxPen *)new wxPen(*arg1,arg2,arg3); | |
1337 | ||
1338 | wxPyEndAllowThreads(__tstate); | |
1339 | if (PyErr_Occurred()) SWIG_fail; | |
1340 | } | |
1341 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 1); | |
1342 | return resultobj; | |
1343 | fail: | |
1344 | return NULL; | |
1345 | } | |
1346 | ||
1347 | ||
1348 | static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1349 | PyObject *resultobj; | |
1350 | wxPen *arg1 = (wxPen *) 0 ; | |
1351 | PyObject * obj0 = 0 ; | |
1352 | char *kwnames[] = { | |
1353 | (char *) "self", NULL | |
1354 | }; | |
1355 | ||
1356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail; | |
1357 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1358 | { | |
1359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1360 | delete arg1; | |
1361 | ||
1362 | wxPyEndAllowThreads(__tstate); | |
1363 | if (PyErr_Occurred()) SWIG_fail; | |
1364 | } | |
1365 | Py_INCREF(Py_None); resultobj = Py_None; | |
1366 | return resultobj; | |
1367 | fail: | |
1368 | return NULL; | |
1369 | } | |
1370 | ||
1371 | ||
1372 | static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1373 | PyObject *resultobj; | |
1374 | wxPen *arg1 = (wxPen *) 0 ; | |
1375 | int result; | |
1376 | PyObject * obj0 = 0 ; | |
1377 | char *kwnames[] = { | |
1378 | (char *) "self", NULL | |
1379 | }; | |
1380 | ||
1381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail; | |
1382 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1383 | { | |
1384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1385 | result = (int)(arg1)->GetCap(); | |
1386 | ||
1387 | wxPyEndAllowThreads(__tstate); | |
1388 | if (PyErr_Occurred()) SWIG_fail; | |
1389 | } | |
1390 | resultobj = PyInt_FromLong((long)result); | |
1391 | return resultobj; | |
1392 | fail: | |
1393 | return NULL; | |
1394 | } | |
1395 | ||
1396 | ||
1397 | static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1398 | PyObject *resultobj; | |
1399 | wxPen *arg1 = (wxPen *) 0 ; | |
1400 | wxColour result; | |
1401 | PyObject * obj0 = 0 ; | |
1402 | char *kwnames[] = { | |
1403 | (char *) "self", NULL | |
1404 | }; | |
1405 | ||
1406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail; | |
1407 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1408 | { | |
1409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1410 | result = (arg1)->GetColour(); | |
1411 | ||
1412 | wxPyEndAllowThreads(__tstate); | |
1413 | if (PyErr_Occurred()) SWIG_fail; | |
1414 | } | |
1415 | { | |
1416 | wxColour * resultptr; | |
1417 | resultptr = new wxColour((wxColour &) result); | |
1418 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
1419 | } | |
1420 | return resultobj; | |
1421 | fail: | |
1422 | return NULL; | |
1423 | } | |
1424 | ||
1425 | ||
1426 | static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1427 | PyObject *resultobj; | |
1428 | wxPen *arg1 = (wxPen *) 0 ; | |
1429 | int result; | |
1430 | PyObject * obj0 = 0 ; | |
1431 | char *kwnames[] = { | |
1432 | (char *) "self", NULL | |
1433 | }; | |
1434 | ||
1435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail; | |
1436 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1437 | { | |
1438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1439 | result = (int)(arg1)->GetJoin(); | |
1440 | ||
1441 | wxPyEndAllowThreads(__tstate); | |
1442 | if (PyErr_Occurred()) SWIG_fail; | |
1443 | } | |
1444 | resultobj = PyInt_FromLong((long)result); | |
1445 | return resultobj; | |
1446 | fail: | |
1447 | return NULL; | |
1448 | } | |
1449 | ||
1450 | ||
1451 | static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1452 | PyObject *resultobj; | |
1453 | wxPen *arg1 = (wxPen *) 0 ; | |
1454 | int result; | |
1455 | PyObject * obj0 = 0 ; | |
1456 | char *kwnames[] = { | |
1457 | (char *) "self", NULL | |
1458 | }; | |
1459 | ||
1460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail; | |
1461 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1462 | { | |
1463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1464 | result = (int)(arg1)->GetStyle(); | |
1465 | ||
1466 | wxPyEndAllowThreads(__tstate); | |
1467 | if (PyErr_Occurred()) SWIG_fail; | |
1468 | } | |
1469 | resultobj = PyInt_FromLong((long)result); | |
1470 | return resultobj; | |
1471 | fail: | |
1472 | return NULL; | |
1473 | } | |
1474 | ||
1475 | ||
1476 | static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1477 | PyObject *resultobj; | |
1478 | wxPen *arg1 = (wxPen *) 0 ; | |
1479 | int result; | |
1480 | PyObject * obj0 = 0 ; | |
1481 | char *kwnames[] = { | |
1482 | (char *) "self", NULL | |
1483 | }; | |
1484 | ||
1485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail; | |
1486 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1487 | { | |
1488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1489 | result = (int)(arg1)->GetWidth(); | |
1490 | ||
1491 | wxPyEndAllowThreads(__tstate); | |
1492 | if (PyErr_Occurred()) SWIG_fail; | |
1493 | } | |
1494 | resultobj = PyInt_FromLong((long)result); | |
1495 | return resultobj; | |
1496 | fail: | |
1497 | return NULL; | |
1498 | } | |
1499 | ||
1500 | ||
1501 | static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1502 | PyObject *resultobj; | |
1503 | wxPen *arg1 = (wxPen *) 0 ; | |
1504 | bool result; | |
1505 | PyObject * obj0 = 0 ; | |
1506 | char *kwnames[] = { | |
1507 | (char *) "self", NULL | |
1508 | }; | |
1509 | ||
1510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail; | |
1511 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1512 | { | |
1513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1514 | result = (bool)(arg1)->Ok(); | |
1515 | ||
1516 | wxPyEndAllowThreads(__tstate); | |
1517 | if (PyErr_Occurred()) SWIG_fail; | |
1518 | } | |
1519 | resultobj = PyInt_FromLong((long)result); | |
1520 | return resultobj; | |
1521 | fail: | |
1522 | return NULL; | |
1523 | } | |
1524 | ||
1525 | ||
1526 | static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1527 | PyObject *resultobj; | |
1528 | wxPen *arg1 = (wxPen *) 0 ; | |
1529 | int arg2 ; | |
1530 | PyObject * obj0 = 0 ; | |
1531 | char *kwnames[] = { | |
1532 | (char *) "self",(char *) "cap_style", NULL | |
1533 | }; | |
1534 | ||
1535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetCap",kwnames,&obj0,&arg2)) goto fail; | |
1536 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1537 | { | |
1538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1539 | (arg1)->SetCap(arg2); | |
1540 | ||
1541 | wxPyEndAllowThreads(__tstate); | |
1542 | if (PyErr_Occurred()) SWIG_fail; | |
1543 | } | |
1544 | Py_INCREF(Py_None); resultobj = Py_None; | |
1545 | return resultobj; | |
1546 | fail: | |
1547 | return NULL; | |
1548 | } | |
1549 | ||
1550 | ||
1551 | static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1552 | PyObject *resultobj; | |
1553 | wxPen *arg1 = (wxPen *) 0 ; | |
1554 | wxColour *arg2 = 0 ; | |
1555 | wxColour temp2 ; | |
1556 | PyObject * obj0 = 0 ; | |
1557 | PyObject * obj1 = 0 ; | |
1558 | char *kwnames[] = { | |
1559 | (char *) "self",(char *) "colour", NULL | |
1560 | }; | |
1561 | ||
1562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
1563 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1564 | { | |
1565 | arg2 = &temp2; | |
1566 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1567 | } | |
1568 | { | |
1569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1570 | (arg1)->SetColour(*arg2); | |
1571 | ||
1572 | wxPyEndAllowThreads(__tstate); | |
1573 | if (PyErr_Occurred()) SWIG_fail; | |
1574 | } | |
1575 | Py_INCREF(Py_None); resultobj = Py_None; | |
1576 | return resultobj; | |
1577 | fail: | |
1578 | return NULL; | |
1579 | } | |
1580 | ||
1581 | ||
1582 | static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1583 | PyObject *resultobj; | |
1584 | wxPen *arg1 = (wxPen *) 0 ; | |
1585 | int arg2 ; | |
1586 | PyObject * obj0 = 0 ; | |
1587 | char *kwnames[] = { | |
1588 | (char *) "self",(char *) "join_style", NULL | |
1589 | }; | |
1590 | ||
1591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetJoin",kwnames,&obj0,&arg2)) goto fail; | |
1592 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1593 | { | |
1594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1595 | (arg1)->SetJoin(arg2); | |
1596 | ||
1597 | wxPyEndAllowThreads(__tstate); | |
1598 | if (PyErr_Occurred()) SWIG_fail; | |
1599 | } | |
1600 | Py_INCREF(Py_None); resultobj = Py_None; | |
1601 | return resultobj; | |
1602 | fail: | |
1603 | return NULL; | |
1604 | } | |
1605 | ||
1606 | ||
1607 | static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1608 | PyObject *resultobj; | |
1609 | wxPen *arg1 = (wxPen *) 0 ; | |
1610 | int arg2 ; | |
1611 | PyObject * obj0 = 0 ; | |
1612 | char *kwnames[] = { | |
1613 | (char *) "self",(char *) "style", NULL | |
1614 | }; | |
1615 | ||
1616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetStyle",kwnames,&obj0,&arg2)) goto fail; | |
1617 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1618 | { | |
1619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1620 | (arg1)->SetStyle(arg2); | |
1621 | ||
1622 | wxPyEndAllowThreads(__tstate); | |
1623 | if (PyErr_Occurred()) SWIG_fail; | |
1624 | } | |
1625 | Py_INCREF(Py_None); resultobj = Py_None; | |
1626 | return resultobj; | |
1627 | fail: | |
1628 | return NULL; | |
1629 | } | |
1630 | ||
1631 | ||
1632 | static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1633 | PyObject *resultobj; | |
1634 | wxPen *arg1 = (wxPen *) 0 ; | |
1635 | int arg2 ; | |
1636 | PyObject * obj0 = 0 ; | |
1637 | char *kwnames[] = { | |
1638 | (char *) "self",(char *) "width", NULL | |
1639 | }; | |
1640 | ||
1641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetWidth",kwnames,&obj0,&arg2)) goto fail; | |
1642 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1643 | { | |
1644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1645 | (arg1)->SetWidth(arg2); | |
1646 | ||
1647 | wxPyEndAllowThreads(__tstate); | |
1648 | if (PyErr_Occurred()) SWIG_fail; | |
1649 | } | |
1650 | Py_INCREF(Py_None); resultobj = Py_None; | |
1651 | return resultobj; | |
1652 | fail: | |
1653 | return NULL; | |
1654 | } | |
1655 | ||
1656 | ||
1657 | static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1658 | PyObject *resultobj; | |
1659 | wxPen *arg1 = (wxPen *) 0 ; | |
1660 | int arg2 ; | |
1661 | wxDash *arg3 = (wxDash *) 0 ; | |
1662 | PyObject * obj0 = 0 ; | |
1663 | PyObject * obj1 = 0 ; | |
1664 | char *kwnames[] = { | |
1665 | (char *) "self",(char *) "dashes", NULL | |
1666 | }; | |
1667 | ||
1668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail; | |
1669 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1670 | { | |
1671 | arg2 = PyList_Size(obj1); | |
1672 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
1673 | if (arg3 == NULL) SWIG_fail; | |
1674 | } | |
1675 | { | |
1676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1677 | (arg1)->SetDashes(arg2,arg3); | |
1678 | ||
1679 | wxPyEndAllowThreads(__tstate); | |
1680 | if (PyErr_Occurred()) SWIG_fail; | |
1681 | } | |
1682 | Py_INCREF(Py_None); resultobj = Py_None; | |
1683 | { | |
1684 | if (arg3) delete [] arg3; | |
1685 | } | |
1686 | return resultobj; | |
1687 | fail: | |
1688 | { | |
1689 | if (arg3) delete [] arg3; | |
1690 | } | |
1691 | return NULL; | |
1692 | } | |
1693 | ||
1694 | ||
1695 | static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1696 | PyObject *resultobj; | |
1697 | wxPen *arg1 = (wxPen *) 0 ; | |
1698 | PyObject *result; | |
1699 | PyObject * obj0 = 0 ; | |
1700 | char *kwnames[] = { | |
1701 | (char *) "self", NULL | |
1702 | }; | |
1703 | ||
1704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail; | |
1705 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1706 | { | |
1707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1708 | result = (PyObject *)wxPen_GetDashes(arg1); | |
1709 | ||
1710 | wxPyEndAllowThreads(__tstate); | |
1711 | if (PyErr_Occurred()) SWIG_fail; | |
1712 | } | |
1713 | resultobj = result; | |
1714 | return resultobj; | |
1715 | fail: | |
1716 | return NULL; | |
1717 | } | |
1718 | ||
1719 | ||
9fd4be55 RD |
1720 | static PyObject *_wrap_Pen_GetDashCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
1721 | PyObject *resultobj; | |
1722 | wxPen *arg1 = (wxPen *) 0 ; | |
1723 | int result; | |
1724 | PyObject * obj0 = 0 ; | |
1725 | char *kwnames[] = { | |
1726 | (char *) "self", NULL | |
1727 | }; | |
1728 | ||
1729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail; | |
1730 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1731 | { | |
1732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1733 | result = (int)((wxPen const *)arg1)->GetDashCount(); | |
1734 | ||
1735 | wxPyEndAllowThreads(__tstate); | |
1736 | if (PyErr_Occurred()) SWIG_fail; | |
1737 | } | |
1738 | resultobj = PyInt_FromLong((long)result); | |
1739 | return resultobj; | |
1740 | fail: | |
1741 | return NULL; | |
1742 | } | |
1743 | ||
1744 | ||
d14a1e28 RD |
1745 | static PyObject *_wrap_Pen_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { |
1746 | PyObject *resultobj; | |
1747 | wxPen *arg1 = (wxPen *) 0 ; | |
1748 | wxBitmap *result; | |
1749 | PyObject * obj0 = 0 ; | |
1750 | char *kwnames[] = { | |
1751 | (char *) "self", NULL | |
1752 | }; | |
1753 | ||
1754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStipple",kwnames,&obj0)) goto fail; | |
1755 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1756 | { | |
1757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1758 | result = (wxBitmap *)(arg1)->GetStipple(); | |
1759 | ||
1760 | wxPyEndAllowThreads(__tstate); | |
1761 | if (PyErr_Occurred()) SWIG_fail; | |
1762 | } | |
1763 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
1764 | return resultobj; | |
1765 | fail: | |
1766 | return NULL; | |
1767 | } | |
1768 | ||
1769 | ||
1770 | static PyObject *_wrap_Pen_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1771 | PyObject *resultobj; | |
1772 | wxPen *arg1 = (wxPen *) 0 ; | |
1773 | wxBitmap *arg2 = 0 ; | |
1774 | PyObject * obj0 = 0 ; | |
1775 | PyObject * obj1 = 0 ; | |
1776 | char *kwnames[] = { | |
1777 | (char *) "self",(char *) "stipple", NULL | |
1778 | }; | |
1779 | ||
1780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) goto fail; | |
1781 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1782 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1783 | if (arg2 == NULL) { | |
1784 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1785 | } | |
1786 | { | |
1787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1788 | (arg1)->SetStipple(*arg2); | |
1789 | ||
1790 | wxPyEndAllowThreads(__tstate); | |
1791 | if (PyErr_Occurred()) SWIG_fail; | |
1792 | } | |
1793 | Py_INCREF(Py_None); resultobj = Py_None; | |
1794 | return resultobj; | |
1795 | fail: | |
1796 | return NULL; | |
1797 | } | |
1798 | ||
1799 | ||
1800 | static PyObject * Pen_swigregister(PyObject *self, PyObject *args) { | |
1801 | PyObject *obj; | |
1802 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1803 | SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj); | |
1804 | Py_INCREF(obj); | |
1805 | return Py_BuildValue((char *)""); | |
1806 | } | |
1807 | static PyObject *_wrap_new_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1808 | PyObject *resultobj; | |
1809 | wxColour *arg1 = 0 ; | |
1810 | int arg2 = (int) 1 ; | |
1811 | int arg3 = (int) wxSOLID ; | |
1812 | wxPyPen *result; | |
1813 | wxColour temp1 ; | |
1814 | PyObject * obj0 = 0 ; | |
1815 | char *kwnames[] = { | |
1816 | (char *) "colour",(char *) "width",(char *) "style", NULL | |
1817 | }; | |
1818 | ||
1819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:new_PyPen",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
1820 | { | |
1821 | arg1 = &temp1; | |
1822 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
1823 | } | |
1824 | { | |
1825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1826 | result = (wxPyPen *)new wxPyPen(*arg1,arg2,arg3); | |
1827 | ||
1828 | wxPyEndAllowThreads(__tstate); | |
1829 | if (PyErr_Occurred()) SWIG_fail; | |
1830 | } | |
1831 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyPen, 1); | |
1832 | return resultobj; | |
1833 | fail: | |
1834 | return NULL; | |
1835 | } | |
1836 | ||
1837 | ||
1838 | static PyObject *_wrap_delete_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1839 | PyObject *resultobj; | |
1840 | wxPyPen *arg1 = (wxPyPen *) 0 ; | |
1841 | PyObject * obj0 = 0 ; | |
1842 | char *kwnames[] = { | |
1843 | (char *) "self", NULL | |
1844 | }; | |
1845 | ||
1846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyPen",kwnames,&obj0)) goto fail; | |
1847 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1848 | { | |
1849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1850 | delete arg1; | |
1851 | ||
1852 | wxPyEndAllowThreads(__tstate); | |
1853 | if (PyErr_Occurred()) SWIG_fail; | |
1854 | } | |
1855 | Py_INCREF(Py_None); resultobj = Py_None; | |
1856 | return resultobj; | |
1857 | fail: | |
1858 | return NULL; | |
1859 | } | |
1860 | ||
1861 | ||
1862 | static PyObject *_wrap_PyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1863 | PyObject *resultobj; | |
1864 | wxPyPen *arg1 = (wxPyPen *) 0 ; | |
1865 | int arg2 ; | |
1866 | wxDash *arg3 = (wxDash *) 0 ; | |
1867 | PyObject * obj0 = 0 ; | |
1868 | PyObject * obj1 = 0 ; | |
1869 | char *kwnames[] = { | |
1870 | (char *) "self",(char *) "dashes", NULL | |
1871 | }; | |
1872 | ||
1873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPen_SetDashes",kwnames,&obj0,&obj1)) goto fail; | |
1874 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1875 | { | |
1876 | arg2 = PyList_Size(obj1); | |
1877 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
1878 | if (arg3 == NULL) SWIG_fail; | |
1879 | } | |
1880 | { | |
1881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1882 | (arg1)->SetDashes(arg2,arg3); | |
1883 | ||
1884 | wxPyEndAllowThreads(__tstate); | |
1885 | if (PyErr_Occurred()) SWIG_fail; | |
1886 | } | |
1887 | Py_INCREF(Py_None); resultobj = Py_None; | |
1888 | { | |
1889 | if (arg3) delete [] arg3; | |
1890 | } | |
1891 | return resultobj; | |
1892 | fail: | |
1893 | { | |
1894 | if (arg3) delete [] arg3; | |
1895 | } | |
1896 | return NULL; | |
1897 | } | |
1898 | ||
1899 | ||
1900 | static PyObject * PyPen_swigregister(PyObject *self, PyObject *args) { | |
1901 | PyObject *obj; | |
1902 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1903 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPen, obj); | |
1904 | Py_INCREF(obj); | |
1905 | return Py_BuildValue((char *)""); | |
1906 | } | |
1907 | static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1908 | PyObject *resultobj; | |
1909 | wxColour *arg1 = 0 ; | |
1910 | int arg2 = (int) wxSOLID ; | |
1911 | wxBrush *result; | |
1912 | wxColour temp1 ; | |
1913 | PyObject * obj0 = 0 ; | |
1914 | char *kwnames[] = { | |
1915 | (char *) "colour",(char *) "style", NULL | |
1916 | }; | |
1917 | ||
1918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_Brush",kwnames,&obj0,&arg2)) goto fail; | |
1919 | { | |
1920 | arg1 = &temp1; | |
1921 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
1922 | } | |
1923 | { | |
1924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1925 | result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2); | |
1926 | ||
1927 | wxPyEndAllowThreads(__tstate); | |
1928 | if (PyErr_Occurred()) SWIG_fail; | |
1929 | } | |
1930 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 1); | |
1931 | return resultobj; | |
1932 | fail: | |
1933 | return NULL; | |
1934 | } | |
1935 | ||
1936 | ||
1937 | static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1938 | PyObject *resultobj; | |
1939 | wxBrush *arg1 = (wxBrush *) 0 ; | |
1940 | PyObject * obj0 = 0 ; | |
1941 | char *kwnames[] = { | |
1942 | (char *) "self", NULL | |
1943 | }; | |
1944 | ||
1945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail; | |
1946 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1947 | { | |
1948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1949 | delete arg1; | |
1950 | ||
1951 | wxPyEndAllowThreads(__tstate); | |
1952 | if (PyErr_Occurred()) SWIG_fail; | |
1953 | } | |
1954 | Py_INCREF(Py_None); resultobj = Py_None; | |
1955 | return resultobj; | |
1956 | fail: | |
1957 | return NULL; | |
1958 | } | |
1959 | ||
1960 | ||
1961 | static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1962 | PyObject *resultobj; | |
1963 | wxBrush *arg1 = (wxBrush *) 0 ; | |
1964 | wxColour *arg2 = 0 ; | |
1965 | wxColour temp2 ; | |
1966 | PyObject * obj0 = 0 ; | |
1967 | PyObject * obj1 = 0 ; | |
1968 | char *kwnames[] = { | |
1969 | (char *) "self",(char *) "col", NULL | |
1970 | }; | |
1971 | ||
1972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
1973 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1974 | { | |
1975 | arg2 = &temp2; | |
1976 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1977 | } | |
1978 | { | |
1979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1980 | (arg1)->SetColour((wxColour const &)*arg2); | |
1981 | ||
1982 | wxPyEndAllowThreads(__tstate); | |
1983 | if (PyErr_Occurred()) SWIG_fail; | |
1984 | } | |
1985 | Py_INCREF(Py_None); resultobj = Py_None; | |
1986 | return resultobj; | |
1987 | fail: | |
1988 | return NULL; | |
1989 | } | |
1990 | ||
1991 | ||
1992 | static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1993 | PyObject *resultobj; | |
1994 | wxBrush *arg1 = (wxBrush *) 0 ; | |
1995 | int arg2 ; | |
1996 | PyObject * obj0 = 0 ; | |
1997 | char *kwnames[] = { | |
1998 | (char *) "self",(char *) "style", NULL | |
1999 | }; | |
2000 | ||
2001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Brush_SetStyle",kwnames,&obj0,&arg2)) goto fail; | |
2002 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2003 | { | |
2004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2005 | (arg1)->SetStyle(arg2); | |
2006 | ||
2007 | wxPyEndAllowThreads(__tstate); | |
2008 | if (PyErr_Occurred()) SWIG_fail; | |
2009 | } | |
2010 | Py_INCREF(Py_None); resultobj = Py_None; | |
2011 | return resultobj; | |
2012 | fail: | |
2013 | return NULL; | |
2014 | } | |
2015 | ||
2016 | ||
2017 | static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2018 | PyObject *resultobj; | |
2019 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2020 | wxBitmap *arg2 = 0 ; | |
2021 | PyObject * obj0 = 0 ; | |
2022 | PyObject * obj1 = 0 ; | |
2023 | char *kwnames[] = { | |
2024 | (char *) "self",(char *) "stipple", NULL | |
2025 | }; | |
2026 | ||
2027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail; | |
2028 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2029 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2030 | if (arg2 == NULL) { | |
2031 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2032 | } | |
2033 | { | |
2034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2035 | (arg1)->SetStipple((wxBitmap const &)*arg2); | |
2036 | ||
2037 | wxPyEndAllowThreads(__tstate); | |
2038 | if (PyErr_Occurred()) SWIG_fail; | |
2039 | } | |
2040 | Py_INCREF(Py_None); resultobj = Py_None; | |
2041 | return resultobj; | |
2042 | fail: | |
2043 | return NULL; | |
2044 | } | |
2045 | ||
2046 | ||
2047 | static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2048 | PyObject *resultobj; | |
2049 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2050 | wxColour result; | |
2051 | PyObject * obj0 = 0 ; | |
2052 | char *kwnames[] = { | |
2053 | (char *) "self", NULL | |
2054 | }; | |
2055 | ||
2056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail; | |
2057 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2058 | { | |
2059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2060 | result = ((wxBrush const *)arg1)->GetColour(); | |
2061 | ||
2062 | wxPyEndAllowThreads(__tstate); | |
2063 | if (PyErr_Occurred()) SWIG_fail; | |
2064 | } | |
2065 | { | |
2066 | wxColour * resultptr; | |
2067 | resultptr = new wxColour((wxColour &) result); | |
2068 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
2069 | } | |
2070 | return resultobj; | |
2071 | fail: | |
2072 | return NULL; | |
2073 | } | |
2074 | ||
2075 | ||
2076 | static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2077 | PyObject *resultobj; | |
2078 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2079 | int result; | |
2080 | PyObject * obj0 = 0 ; | |
2081 | char *kwnames[] = { | |
2082 | (char *) "self", NULL | |
2083 | }; | |
2084 | ||
2085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail; | |
2086 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2087 | { | |
2088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2089 | result = (int)((wxBrush const *)arg1)->GetStyle(); | |
2090 | ||
2091 | wxPyEndAllowThreads(__tstate); | |
2092 | if (PyErr_Occurred()) SWIG_fail; | |
2093 | } | |
2094 | resultobj = PyInt_FromLong((long)result); | |
2095 | return resultobj; | |
2096 | fail: | |
2097 | return NULL; | |
2098 | } | |
2099 | ||
2100 | ||
2101 | static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2102 | PyObject *resultobj; | |
2103 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2104 | wxBitmap *result; | |
2105 | PyObject * obj0 = 0 ; | |
2106 | char *kwnames[] = { | |
2107 | (char *) "self", NULL | |
2108 | }; | |
2109 | ||
2110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail; | |
2111 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2112 | { | |
2113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2114 | result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple(); | |
2115 | ||
2116 | wxPyEndAllowThreads(__tstate); | |
2117 | if (PyErr_Occurred()) SWIG_fail; | |
2118 | } | |
2119 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
2120 | return resultobj; | |
2121 | fail: | |
2122 | return NULL; | |
2123 | } | |
2124 | ||
2125 | ||
2126 | static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2127 | PyObject *resultobj; | |
2128 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2129 | bool result; | |
2130 | PyObject * obj0 = 0 ; | |
2131 | char *kwnames[] = { | |
2132 | (char *) "self", NULL | |
2133 | }; | |
2134 | ||
2135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail; | |
2136 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2137 | { | |
2138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2139 | result = (bool)(arg1)->Ok(); | |
2140 | ||
2141 | wxPyEndAllowThreads(__tstate); | |
2142 | if (PyErr_Occurred()) SWIG_fail; | |
2143 | } | |
2144 | resultobj = PyInt_FromLong((long)result); | |
2145 | return resultobj; | |
2146 | fail: | |
2147 | return NULL; | |
2148 | } | |
2149 | ||
2150 | ||
2151 | static PyObject * Brush_swigregister(PyObject *self, PyObject *args) { | |
2152 | PyObject *obj; | |
2153 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2154 | SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj); | |
2155 | Py_INCREF(obj); | |
2156 | return Py_BuildValue((char *)""); | |
2157 | } | |
2158 | static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2159 | PyObject *resultobj; | |
2160 | wxString *arg1 = 0 ; | |
2161 | int arg2 = (int) wxBITMAP_TYPE_ANY ; | |
2162 | wxBitmap *result; | |
423f194a | 2163 | bool temp1 = False ; |
d14a1e28 RD |
2164 | PyObject * obj0 = 0 ; |
2165 | char *kwnames[] = { | |
2166 | (char *) "name",(char *) "type", NULL | |
2167 | }; | |
2168 | ||
2169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_Bitmap",kwnames,&obj0,&arg2)) goto fail; | |
2170 | { | |
2171 | arg1 = wxString_in_helper(obj0); | |
2172 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2173 | temp1 = True; |
d14a1e28 RD |
2174 | } |
2175 | { | |
2176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2177 | result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2); | |
2178 | ||
2179 | wxPyEndAllowThreads(__tstate); | |
2180 | if (PyErr_Occurred()) SWIG_fail; | |
2181 | } | |
2182 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2183 | { | |
2184 | if (temp1) | |
2185 | delete arg1; | |
2186 | } | |
2187 | return resultobj; | |
2188 | fail: | |
2189 | { | |
2190 | if (temp1) | |
2191 | delete arg1; | |
2192 | } | |
2193 | return NULL; | |
2194 | } | |
2195 | ||
2196 | ||
2197 | static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2198 | PyObject *resultobj; | |
2199 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2200 | PyObject * obj0 = 0 ; | |
2201 | char *kwnames[] = { | |
2202 | (char *) "self", NULL | |
2203 | }; | |
2204 | ||
2205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail; | |
2206 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2207 | { | |
2208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2209 | delete arg1; | |
2210 | ||
2211 | wxPyEndAllowThreads(__tstate); | |
2212 | if (PyErr_Occurred()) SWIG_fail; | |
2213 | } | |
2214 | Py_INCREF(Py_None); resultobj = Py_None; | |
2215 | return resultobj; | |
2216 | fail: | |
2217 | return NULL; | |
2218 | } | |
2219 | ||
2220 | ||
2221 | static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2222 | PyObject *resultobj; | |
2223 | int arg1 ; | |
2224 | int arg2 ; | |
2225 | int arg3 = (int) -1 ; | |
2226 | wxBitmap *result; | |
2227 | char *kwnames[] = { | |
2228 | (char *) "width",(char *) "height",(char *) "depth", NULL | |
2229 | }; | |
2230 | ||
2231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii|i:new_EmptyBitmap",kwnames,&arg1,&arg2,&arg3)) goto fail; | |
2232 | { | |
2233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2234 | result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3); | |
2235 | ||
2236 | wxPyEndAllowThreads(__tstate); | |
2237 | if (PyErr_Occurred()) SWIG_fail; | |
2238 | } | |
2239 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2240 | return resultobj; | |
2241 | fail: | |
2242 | return NULL; | |
2243 | } | |
2244 | ||
2245 | ||
2246 | static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2247 | PyObject *resultobj; | |
2248 | wxIcon *arg1 = 0 ; | |
2249 | wxBitmap *result; | |
2250 | PyObject * obj0 = 0 ; | |
2251 | char *kwnames[] = { | |
2252 | (char *) "icon", NULL | |
2253 | }; | |
2254 | ||
2255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail; | |
2256 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2257 | if (arg1 == NULL) { | |
2258 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2259 | } | |
2260 | { | |
2261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2262 | result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1); | |
2263 | ||
2264 | wxPyEndAllowThreads(__tstate); | |
2265 | if (PyErr_Occurred()) SWIG_fail; | |
2266 | } | |
2267 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2268 | return resultobj; | |
2269 | fail: | |
2270 | return NULL; | |
2271 | } | |
2272 | ||
2273 | ||
2274 | static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2275 | PyObject *resultobj; | |
2276 | wxImage *arg1 = 0 ; | |
2277 | int arg2 = (int) -1 ; | |
2278 | wxBitmap *result; | |
2279 | PyObject * obj0 = 0 ; | |
2280 | char *kwnames[] = { | |
2281 | (char *) "image",(char *) "depth", NULL | |
2282 | }; | |
2283 | ||
2284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_BitmapFromImage",kwnames,&obj0,&arg2)) goto fail; | |
2285 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2286 | if (arg1 == NULL) { | |
2287 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2288 | } | |
2289 | { | |
2290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2291 | result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2); | |
2292 | ||
2293 | wxPyEndAllowThreads(__tstate); | |
2294 | if (PyErr_Occurred()) SWIG_fail; | |
2295 | } | |
2296 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2297 | return resultobj; | |
2298 | fail: | |
2299 | return NULL; | |
2300 | } | |
2301 | ||
2302 | ||
2303 | static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2304 | PyObject *resultobj; | |
2305 | PyObject *arg1 = (PyObject *) 0 ; | |
2306 | wxBitmap *result; | |
2307 | PyObject * obj0 = 0 ; | |
2308 | char *kwnames[] = { | |
2309 | (char *) "listOfStrings", NULL | |
2310 | }; | |
2311 | ||
2312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail; | |
2313 | arg1 = obj0; | |
2314 | { | |
2315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2316 | result = (wxBitmap *)new_wxBitmap(arg1); | |
2317 | ||
2318 | wxPyEndAllowThreads(__tstate); | |
2319 | if (PyErr_Occurred()) SWIG_fail; | |
2320 | } | |
2321 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2322 | return resultobj; | |
2323 | fail: | |
2324 | return NULL; | |
2325 | } | |
2326 | ||
2327 | ||
2328 | static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2329 | PyObject *resultobj; | |
2330 | PyObject *arg1 = (PyObject *) 0 ; | |
2331 | int arg2 ; | |
2332 | int arg3 ; | |
2333 | int arg4 = (int) 1 ; | |
2334 | wxBitmap *result; | |
2335 | PyObject * obj0 = 0 ; | |
2336 | char *kwnames[] = { | |
2337 | (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL | |
2338 | }; | |
2339 | ||
2340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|i:new_BitmapFromBits",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
2341 | arg1 = obj0; | |
2342 | { | |
2343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2344 | result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4); | |
2345 | ||
2346 | wxPyEndAllowThreads(__tstate); | |
2347 | if (PyErr_Occurred()) SWIG_fail; | |
2348 | } | |
2349 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2350 | return resultobj; | |
2351 | fail: | |
2352 | return NULL; | |
2353 | } | |
2354 | ||
2355 | ||
2356 | static PyObject *_wrap_Bitmap_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2357 | PyObject *resultobj; | |
2358 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2359 | wxPalette *arg2 = 0 ; | |
2360 | PyObject * obj0 = 0 ; | |
2361 | PyObject * obj1 = 0 ; | |
2362 | char *kwnames[] = { | |
2363 | (char *) "self",(char *) "palette", NULL | |
2364 | }; | |
2365 | ||
2366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) goto fail; | |
2367 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2368 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2369 | if (arg2 == NULL) { | |
2370 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2371 | } | |
2372 | { | |
2373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2374 | (arg1)->SetPalette(*arg2); | |
2375 | ||
2376 | wxPyEndAllowThreads(__tstate); | |
2377 | if (PyErr_Occurred()) SWIG_fail; | |
2378 | } | |
2379 | Py_INCREF(Py_None); resultobj = Py_None; | |
2380 | return resultobj; | |
2381 | fail: | |
2382 | return NULL; | |
2383 | } | |
2384 | ||
2385 | ||
2386 | static PyObject *_wrap_Bitmap_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2387 | PyObject *resultobj; | |
2388 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2389 | long result; | |
2390 | PyObject * obj0 = 0 ; | |
2391 | char *kwnames[] = { | |
2392 | (char *) "self", NULL | |
2393 | }; | |
2394 | ||
2395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHandle",kwnames,&obj0)) goto fail; | |
2396 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2397 | { | |
2398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2399 | result = (long)(arg1)->GetHandle(); | |
2400 | ||
2401 | wxPyEndAllowThreads(__tstate); | |
2402 | if (PyErr_Occurred()) SWIG_fail; | |
2403 | } | |
2404 | resultobj = PyInt_FromLong((long)result); | |
2405 | return resultobj; | |
2406 | fail: | |
2407 | return NULL; | |
2408 | } | |
2409 | ||
2410 | ||
2411 | static PyObject *_wrap_Bitmap_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2412 | PyObject *resultobj; | |
2413 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2414 | long arg2 ; | |
2415 | PyObject * obj0 = 0 ; | |
2416 | char *kwnames[] = { | |
2417 | (char *) "self",(char *) "handle", NULL | |
2418 | }; | |
2419 | ||
2420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:Bitmap_SetHandle",kwnames,&obj0,&arg2)) goto fail; | |
2421 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2422 | { | |
2423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2424 | (arg1)->SetHandle(arg2); | |
2425 | ||
2426 | wxPyEndAllowThreads(__tstate); | |
2427 | if (PyErr_Occurred()) SWIG_fail; | |
2428 | } | |
2429 | Py_INCREF(Py_None); resultobj = Py_None; | |
2430 | return resultobj; | |
2431 | fail: | |
2432 | return NULL; | |
2433 | } | |
2434 | ||
2435 | ||
2436 | static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2437 | PyObject *resultobj; | |
2438 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2439 | bool result; | |
2440 | PyObject * obj0 = 0 ; | |
2441 | char *kwnames[] = { | |
2442 | (char *) "self", NULL | |
2443 | }; | |
2444 | ||
2445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail; | |
2446 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2447 | { | |
2448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2449 | result = (bool)(arg1)->Ok(); | |
2450 | ||
2451 | wxPyEndAllowThreads(__tstate); | |
2452 | if (PyErr_Occurred()) SWIG_fail; | |
2453 | } | |
2454 | resultobj = PyInt_FromLong((long)result); | |
2455 | return resultobj; | |
2456 | fail: | |
2457 | return NULL; | |
2458 | } | |
2459 | ||
2460 | ||
2461 | static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2462 | PyObject *resultobj; | |
2463 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2464 | int result; | |
2465 | PyObject * obj0 = 0 ; | |
2466 | char *kwnames[] = { | |
2467 | (char *) "self", NULL | |
2468 | }; | |
2469 | ||
2470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail; | |
2471 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2472 | { | |
2473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2474 | result = (int)(arg1)->GetWidth(); | |
2475 | ||
2476 | wxPyEndAllowThreads(__tstate); | |
2477 | if (PyErr_Occurred()) SWIG_fail; | |
2478 | } | |
2479 | resultobj = PyInt_FromLong((long)result); | |
2480 | return resultobj; | |
2481 | fail: | |
2482 | return NULL; | |
2483 | } | |
2484 | ||
2485 | ||
2486 | static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2487 | PyObject *resultobj; | |
2488 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2489 | int result; | |
2490 | PyObject * obj0 = 0 ; | |
2491 | char *kwnames[] = { | |
2492 | (char *) "self", NULL | |
2493 | }; | |
2494 | ||
2495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail; | |
2496 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2497 | { | |
2498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2499 | result = (int)(arg1)->GetHeight(); | |
2500 | ||
2501 | wxPyEndAllowThreads(__tstate); | |
2502 | if (PyErr_Occurred()) SWIG_fail; | |
2503 | } | |
2504 | resultobj = PyInt_FromLong((long)result); | |
2505 | return resultobj; | |
2506 | fail: | |
2507 | return NULL; | |
2508 | } | |
2509 | ||
2510 | ||
2511 | static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2512 | PyObject *resultobj; | |
2513 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2514 | int result; | |
2515 | PyObject * obj0 = 0 ; | |
2516 | char *kwnames[] = { | |
2517 | (char *) "self", NULL | |
2518 | }; | |
2519 | ||
2520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail; | |
2521 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2522 | { | |
2523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2524 | result = (int)(arg1)->GetDepth(); | |
2525 | ||
2526 | wxPyEndAllowThreads(__tstate); | |
2527 | if (PyErr_Occurred()) SWIG_fail; | |
2528 | } | |
2529 | resultobj = PyInt_FromLong((long)result); | |
2530 | return resultobj; | |
2531 | fail: | |
2532 | return NULL; | |
2533 | } | |
2534 | ||
2535 | ||
2536 | static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2537 | PyObject *resultobj; | |
2538 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2539 | SwigValueWrapper< wxImage > result; | |
2540 | PyObject * obj0 = 0 ; | |
2541 | char *kwnames[] = { | |
2542 | (char *) "self", NULL | |
2543 | }; | |
2544 | ||
2545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail; | |
2546 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2547 | { | |
2548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2549 | result = ((wxBitmap const *)arg1)->ConvertToImage(); | |
2550 | ||
2551 | wxPyEndAllowThreads(__tstate); | |
2552 | if (PyErr_Occurred()) SWIG_fail; | |
2553 | } | |
2554 | { | |
2555 | wxImage * resultptr; | |
2556 | resultptr = new wxImage((wxImage &) result); | |
2557 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
2558 | } | |
2559 | return resultobj; | |
2560 | fail: | |
2561 | return NULL; | |
2562 | } | |
2563 | ||
2564 | ||
2565 | static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2566 | PyObject *resultobj; | |
2567 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2568 | wxMask *result; | |
2569 | PyObject * obj0 = 0 ; | |
2570 | char *kwnames[] = { | |
2571 | (char *) "self", NULL | |
2572 | }; | |
2573 | ||
2574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail; | |
2575 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2576 | { | |
2577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2578 | result = (wxMask *)((wxBitmap const *)arg1)->GetMask(); | |
2579 | ||
2580 | wxPyEndAllowThreads(__tstate); | |
2581 | if (PyErr_Occurred()) SWIG_fail; | |
2582 | } | |
2583 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 0); | |
2584 | return resultobj; | |
2585 | fail: | |
2586 | return NULL; | |
2587 | } | |
2588 | ||
2589 | ||
2590 | static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2591 | PyObject *resultobj; | |
2592 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2593 | wxMask *arg2 = (wxMask *) 0 ; | |
2594 | PyObject * obj0 = 0 ; | |
2595 | PyObject * obj1 = 0 ; | |
2596 | char *kwnames[] = { | |
2597 | (char *) "self",(char *) "mask", NULL | |
2598 | }; | |
2599 | ||
2600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
2601 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2602 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2603 | { | |
2604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2605 | (arg1)->SetMask(arg2); | |
2606 | ||
2607 | wxPyEndAllowThreads(__tstate); | |
2608 | if (PyErr_Occurred()) SWIG_fail; | |
2609 | } | |
2610 | Py_INCREF(Py_None); resultobj = Py_None; | |
2611 | return resultobj; | |
2612 | fail: | |
2613 | return NULL; | |
2614 | } | |
2615 | ||
2616 | ||
2617 | static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2618 | PyObject *resultobj; | |
2619 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2620 | wxColour *arg2 = 0 ; | |
2621 | wxColour temp2 ; | |
2622 | PyObject * obj0 = 0 ; | |
2623 | PyObject * obj1 = 0 ; | |
2624 | char *kwnames[] = { | |
2625 | (char *) "self",(char *) "colour", NULL | |
2626 | }; | |
2627 | ||
2628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail; | |
2629 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2630 | { | |
2631 | arg2 = &temp2; | |
2632 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
2633 | } | |
2634 | { | |
2635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2636 | wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2); | |
2637 | ||
2638 | wxPyEndAllowThreads(__tstate); | |
2639 | if (PyErr_Occurred()) SWIG_fail; | |
2640 | } | |
2641 | Py_INCREF(Py_None); resultobj = Py_None; | |
2642 | return resultobj; | |
2643 | fail: | |
2644 | return NULL; | |
2645 | } | |
2646 | ||
2647 | ||
2648 | static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2649 | PyObject *resultobj; | |
2650 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2651 | wxRect *arg2 = 0 ; | |
2652 | SwigValueWrapper< wxBitmap > result; | |
2653 | wxRect temp2 ; | |
2654 | PyObject * obj0 = 0 ; | |
2655 | PyObject * obj1 = 0 ; | |
2656 | char *kwnames[] = { | |
2657 | (char *) "self",(char *) "rect", NULL | |
2658 | }; | |
2659 | ||
2660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail; | |
2661 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2662 | { | |
2663 | arg2 = &temp2; | |
2664 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
2665 | } | |
2666 | { | |
2667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2668 | result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2); | |
2669 | ||
2670 | wxPyEndAllowThreads(__tstate); | |
2671 | if (PyErr_Occurred()) SWIG_fail; | |
2672 | } | |
2673 | { | |
2674 | wxBitmap * resultptr; | |
2675 | resultptr = new wxBitmap((wxBitmap &) result); | |
2676 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
2677 | } | |
2678 | return resultobj; | |
2679 | fail: | |
2680 | return NULL; | |
2681 | } | |
2682 | ||
2683 | ||
2684 | static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2685 | PyObject *resultobj; | |
2686 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2687 | wxString *arg2 = 0 ; | |
2688 | int arg3 ; | |
2689 | wxPalette *arg4 = (wxPalette *) (wxPalette *) NULL ; | |
2690 | bool result; | |
423f194a | 2691 | bool temp2 = False ; |
d14a1e28 RD |
2692 | PyObject * obj0 = 0 ; |
2693 | PyObject * obj1 = 0 ; | |
2694 | PyObject * obj3 = 0 ; | |
2695 | char *kwnames[] = { | |
2696 | (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL | |
2697 | }; | |
2698 | ||
2699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&arg3,&obj3)) goto fail; | |
2700 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2701 | { | |
2702 | arg2 = wxString_in_helper(obj1); | |
2703 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2704 | temp2 = True; |
d14a1e28 RD |
2705 | } |
2706 | if (obj3) { | |
2707 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2708 | } | |
2709 | { | |
2710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2711 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4); | |
2712 | ||
2713 | wxPyEndAllowThreads(__tstate); | |
2714 | if (PyErr_Occurred()) SWIG_fail; | |
2715 | } | |
2716 | resultobj = PyInt_FromLong((long)result); | |
2717 | { | |
2718 | if (temp2) | |
2719 | delete arg2; | |
2720 | } | |
2721 | return resultobj; | |
2722 | fail: | |
2723 | { | |
2724 | if (temp2) | |
2725 | delete arg2; | |
2726 | } | |
2727 | return NULL; | |
2728 | } | |
2729 | ||
2730 | ||
2731 | static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2732 | PyObject *resultobj; | |
2733 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2734 | wxString *arg2 = 0 ; | |
2735 | int arg3 ; | |
2736 | bool result; | |
423f194a | 2737 | bool temp2 = False ; |
d14a1e28 RD |
2738 | PyObject * obj0 = 0 ; |
2739 | PyObject * obj1 = 0 ; | |
2740 | char *kwnames[] = { | |
2741 | (char *) "self",(char *) "name",(char *) "type", NULL | |
2742 | }; | |
2743 | ||
2744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:Bitmap_LoadFile",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
2745 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2746 | { | |
2747 | arg2 = wxString_in_helper(obj1); | |
2748 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2749 | temp2 = True; |
d14a1e28 RD |
2750 | } |
2751 | { | |
2752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2753 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3); | |
2754 | ||
2755 | wxPyEndAllowThreads(__tstate); | |
2756 | if (PyErr_Occurred()) SWIG_fail; | |
2757 | } | |
2758 | resultobj = PyInt_FromLong((long)result); | |
2759 | { | |
2760 | if (temp2) | |
2761 | delete arg2; | |
2762 | } | |
2763 | return resultobj; | |
2764 | fail: | |
2765 | { | |
2766 | if (temp2) | |
2767 | delete arg2; | |
2768 | } | |
2769 | return NULL; | |
2770 | } | |
2771 | ||
2772 | ||
2773 | static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2774 | PyObject *resultobj; | |
2775 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2776 | wxIcon *arg2 = 0 ; | |
2777 | bool result; | |
2778 | PyObject * obj0 = 0 ; | |
2779 | PyObject * obj1 = 0 ; | |
2780 | char *kwnames[] = { | |
2781 | (char *) "self",(char *) "icon", NULL | |
2782 | }; | |
2783 | ||
2784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail; | |
2785 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2786 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2787 | if (arg2 == NULL) { | |
2788 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2789 | } | |
2790 | { | |
2791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2792 | result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2); | |
2793 | ||
2794 | wxPyEndAllowThreads(__tstate); | |
2795 | if (PyErr_Occurred()) SWIG_fail; | |
2796 | } | |
2797 | resultobj = PyInt_FromLong((long)result); | |
2798 | return resultobj; | |
2799 | fail: | |
2800 | return NULL; | |
2801 | } | |
2802 | ||
2803 | ||
2804 | static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2805 | PyObject *resultobj; | |
2806 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2807 | int arg2 ; | |
2808 | PyObject * obj0 = 0 ; | |
2809 | char *kwnames[] = { | |
2810 | (char *) "self",(char *) "height", NULL | |
2811 | }; | |
2812 | ||
2813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Bitmap_SetHeight",kwnames,&obj0,&arg2)) goto fail; | |
2814 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2815 | { | |
2816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2817 | (arg1)->SetHeight(arg2); | |
2818 | ||
2819 | wxPyEndAllowThreads(__tstate); | |
2820 | if (PyErr_Occurred()) SWIG_fail; | |
2821 | } | |
2822 | Py_INCREF(Py_None); resultobj = Py_None; | |
2823 | return resultobj; | |
2824 | fail: | |
2825 | return NULL; | |
2826 | } | |
2827 | ||
2828 | ||
2829 | static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2830 | PyObject *resultobj; | |
2831 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2832 | int arg2 ; | |
2833 | PyObject * obj0 = 0 ; | |
2834 | char *kwnames[] = { | |
2835 | (char *) "self",(char *) "width", NULL | |
2836 | }; | |
2837 | ||
2838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Bitmap_SetWidth",kwnames,&obj0,&arg2)) goto fail; | |
2839 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2840 | { | |
2841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2842 | (arg1)->SetWidth(arg2); | |
2843 | ||
2844 | wxPyEndAllowThreads(__tstate); | |
2845 | if (PyErr_Occurred()) SWIG_fail; | |
2846 | } | |
2847 | Py_INCREF(Py_None); resultobj = Py_None; | |
2848 | return resultobj; | |
2849 | fail: | |
2850 | return NULL; | |
2851 | } | |
2852 | ||
2853 | ||
2854 | static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2855 | PyObject *resultobj; | |
2856 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2857 | int arg2 ; | |
2858 | PyObject * obj0 = 0 ; | |
2859 | char *kwnames[] = { | |
2860 | (char *) "self",(char *) "depth", NULL | |
2861 | }; | |
2862 | ||
2863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Bitmap_SetDepth",kwnames,&obj0,&arg2)) goto fail; | |
2864 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2865 | { | |
2866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2867 | (arg1)->SetDepth(arg2); | |
2868 | ||
2869 | wxPyEndAllowThreads(__tstate); | |
2870 | if (PyErr_Occurred()) SWIG_fail; | |
2871 | } | |
2872 | Py_INCREF(Py_None); resultobj = Py_None; | |
2873 | return resultobj; | |
2874 | fail: | |
2875 | return NULL; | |
2876 | } | |
2877 | ||
2878 | ||
2879 | static PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2880 | PyObject *resultobj; | |
2881 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2882 | wxCursor *arg2 = 0 ; | |
2883 | bool result; | |
2884 | PyObject * obj0 = 0 ; | |
2885 | PyObject * obj1 = 0 ; | |
2886 | char *kwnames[] = { | |
2887 | (char *) "self",(char *) "cursor", NULL | |
2888 | }; | |
2889 | ||
2890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) goto fail; | |
2891 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2892 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2893 | if (arg2 == NULL) { | |
2894 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2895 | } | |
2896 | { | |
2897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2898 | result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2); | |
2899 | ||
2900 | wxPyEndAllowThreads(__tstate); | |
2901 | if (PyErr_Occurred()) SWIG_fail; | |
2902 | } | |
2903 | resultobj = PyInt_FromLong((long)result); | |
2904 | return resultobj; | |
2905 | fail: | |
2906 | return NULL; | |
2907 | } | |
2908 | ||
2909 | ||
2910 | static PyObject *_wrap_Bitmap_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2911 | PyObject *resultobj; | |
2912 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2913 | int result; | |
2914 | PyObject * obj0 = 0 ; | |
2915 | char *kwnames[] = { | |
2916 | (char *) "self", NULL | |
2917 | }; | |
2918 | ||
2919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetQuality",kwnames,&obj0)) goto fail; | |
2920 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2921 | { | |
2922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2923 | result = (int)(arg1)->GetQuality(); | |
2924 | ||
2925 | wxPyEndAllowThreads(__tstate); | |
2926 | if (PyErr_Occurred()) SWIG_fail; | |
2927 | } | |
2928 | resultobj = PyInt_FromLong((long)result); | |
2929 | return resultobj; | |
2930 | fail: | |
2931 | return NULL; | |
2932 | } | |
2933 | ||
2934 | ||
2935 | static PyObject *_wrap_Bitmap_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2936 | PyObject *resultobj; | |
2937 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2938 | int arg2 ; | |
2939 | PyObject * obj0 = 0 ; | |
2940 | char *kwnames[] = { | |
2941 | (char *) "self",(char *) "q", NULL | |
2942 | }; | |
2943 | ||
2944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Bitmap_SetQuality",kwnames,&obj0,&arg2)) goto fail; | |
2945 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2946 | { | |
2947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2948 | (arg1)->SetQuality(arg2); | |
2949 | ||
2950 | wxPyEndAllowThreads(__tstate); | |
2951 | if (PyErr_Occurred()) SWIG_fail; | |
2952 | } | |
2953 | Py_INCREF(Py_None); resultobj = Py_None; | |
2954 | return resultobj; | |
2955 | fail: | |
2956 | return NULL; | |
2957 | } | |
2958 | ||
2959 | ||
2960 | static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) { | |
2961 | PyObject *obj; | |
2962 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2963 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj); | |
2964 | Py_INCREF(obj); | |
2965 | return Py_BuildValue((char *)""); | |
2966 | } | |
2967 | static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2968 | PyObject *resultobj; | |
2969 | wxBitmap *arg1 = 0 ; | |
2970 | wxMask *result; | |
2971 | PyObject * obj0 = 0 ; | |
2972 | char *kwnames[] = { | |
2973 | (char *) "bitmap", NULL | |
2974 | }; | |
2975 | ||
2976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Mask",kwnames,&obj0)) goto fail; | |
2977 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2978 | if (arg1 == NULL) { | |
2979 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2980 | } | |
2981 | { | |
2982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2983 | result = (wxMask *)new wxMask((wxBitmap const &)*arg1); | |
2984 | ||
2985 | wxPyEndAllowThreads(__tstate); | |
2986 | if (PyErr_Occurred()) SWIG_fail; | |
2987 | } | |
2988 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1); | |
2989 | return resultobj; | |
2990 | fail: | |
2991 | return NULL; | |
2992 | } | |
2993 | ||
2994 | ||
2995 | static PyObject *_wrap_new_MaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2996 | PyObject *resultobj; | |
2997 | wxBitmap *arg1 = 0 ; | |
2998 | wxColour *arg2 = 0 ; | |
2999 | wxMask *result; | |
3000 | wxColour temp2 ; | |
3001 | PyObject * obj0 = 0 ; | |
3002 | PyObject * obj1 = 0 ; | |
3003 | char *kwnames[] = { | |
3004 | (char *) "bitmap",(char *) "colour", NULL | |
3005 | }; | |
3006 | ||
3007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MaskColour",kwnames,&obj0,&obj1)) goto fail; | |
3008 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3009 | if (arg1 == NULL) { | |
3010 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3011 | } | |
3012 | { | |
3013 | arg2 = &temp2; | |
3014 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3015 | } | |
3016 | { | |
3017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3018 | result = (wxMask *)new wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2); | |
3019 | ||
3020 | wxPyEndAllowThreads(__tstate); | |
3021 | if (PyErr_Occurred()) SWIG_fail; | |
3022 | } | |
3023 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1); | |
3024 | return resultobj; | |
3025 | fail: | |
3026 | return NULL; | |
3027 | } | |
3028 | ||
3029 | ||
3030 | static PyObject * Mask_swigregister(PyObject *self, PyObject *args) { | |
3031 | PyObject *obj; | |
3032 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3033 | SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj); | |
3034 | Py_INCREF(obj); | |
3035 | return Py_BuildValue((char *)""); | |
3036 | } | |
3037 | static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3038 | PyObject *resultobj; | |
3039 | wxString *arg1 = 0 ; | |
3040 | long arg2 ; | |
3041 | int arg3 = (int) -1 ; | |
3042 | int arg4 = (int) -1 ; | |
3043 | wxIcon *result; | |
423f194a | 3044 | bool temp1 = False ; |
d14a1e28 RD |
3045 | PyObject * obj0 = 0 ; |
3046 | char *kwnames[] = { | |
3047 | (char *) "name",(char *) "flags",(char *) "desiredWidth",(char *) "desiredHeight", NULL | |
3048 | }; | |
3049 | ||
3050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|ii:new_Icon",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
3051 | { | |
3052 | arg1 = wxString_in_helper(obj0); | |
3053 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 3054 | temp1 = True; |
d14a1e28 RD |
3055 | } |
3056 | { | |
3057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3058 | result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4); | |
3059 | ||
3060 | wxPyEndAllowThreads(__tstate); | |
3061 | if (PyErr_Occurred()) SWIG_fail; | |
3062 | } | |
3063 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
3064 | { | |
3065 | if (temp1) | |
3066 | delete arg1; | |
3067 | } | |
3068 | return resultobj; | |
3069 | fail: | |
3070 | { | |
3071 | if (temp1) | |
3072 | delete arg1; | |
3073 | } | |
3074 | return NULL; | |
3075 | } | |
3076 | ||
3077 | ||
3078 | static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3079 | PyObject *resultobj; | |
3080 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3081 | PyObject * obj0 = 0 ; | |
3082 | char *kwnames[] = { | |
3083 | (char *) "self", NULL | |
3084 | }; | |
3085 | ||
3086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail; | |
3087 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3088 | { | |
3089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3090 | delete arg1; | |
3091 | ||
3092 | wxPyEndAllowThreads(__tstate); | |
3093 | if (PyErr_Occurred()) SWIG_fail; | |
3094 | } | |
3095 | Py_INCREF(Py_None); resultobj = Py_None; | |
3096 | return resultobj; | |
3097 | fail: | |
3098 | return NULL; | |
3099 | } | |
3100 | ||
3101 | ||
3102 | static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3103 | PyObject *resultobj; | |
3104 | wxIcon *result; | |
3105 | char *kwnames[] = { | |
3106 | NULL | |
3107 | }; | |
3108 | ||
3109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail; | |
3110 | { | |
3111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3112 | result = (wxIcon *)new wxIcon(); | |
3113 | ||
3114 | wxPyEndAllowThreads(__tstate); | |
3115 | if (PyErr_Occurred()) SWIG_fail; | |
3116 | } | |
3117 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
3118 | return resultobj; | |
3119 | fail: | |
3120 | return NULL; | |
3121 | } | |
3122 | ||
3123 | ||
3124 | static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3125 | PyObject *resultobj; | |
3126 | wxIconLocation *arg1 = 0 ; | |
3127 | wxIcon *result; | |
3128 | PyObject * obj0 = 0 ; | |
3129 | char *kwnames[] = { | |
3130 | (char *) "loc", NULL | |
3131 | }; | |
3132 | ||
3133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail; | |
3134 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3135 | if (arg1 == NULL) { | |
3136 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3137 | } | |
3138 | { | |
3139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3140 | result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1); | |
3141 | ||
3142 | wxPyEndAllowThreads(__tstate); | |
3143 | if (PyErr_Occurred()) SWIG_fail; | |
3144 | } | |
3145 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
3146 | return resultobj; | |
3147 | fail: | |
3148 | return NULL; | |
3149 | } | |
3150 | ||
3151 | ||
3152 | static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3153 | PyObject *resultobj; | |
3154 | wxBitmap *arg1 = 0 ; | |
3155 | wxIcon *result; | |
3156 | PyObject * obj0 = 0 ; | |
3157 | char *kwnames[] = { | |
3158 | (char *) "bmp", NULL | |
3159 | }; | |
3160 | ||
3161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail; | |
3162 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3163 | if (arg1 == NULL) { | |
3164 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3165 | } | |
3166 | { | |
3167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3168 | result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1); | |
3169 | ||
3170 | wxPyEndAllowThreads(__tstate); | |
3171 | if (PyErr_Occurred()) SWIG_fail; | |
3172 | } | |
3173 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
3174 | return resultobj; | |
3175 | fail: | |
3176 | return NULL; | |
3177 | } | |
3178 | ||
3179 | ||
3180 | static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3181 | PyObject *resultobj; | |
3182 | PyObject *arg1 = (PyObject *) 0 ; | |
3183 | wxIcon *result; | |
3184 | PyObject * obj0 = 0 ; | |
3185 | char *kwnames[] = { | |
3186 | (char *) "listOfStrings", NULL | |
3187 | }; | |
3188 | ||
3189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail; | |
3190 | arg1 = obj0; | |
3191 | { | |
3192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3193 | result = (wxIcon *)new_wxIcon(arg1); | |
3194 | ||
3195 | wxPyEndAllowThreads(__tstate); | |
3196 | if (PyErr_Occurred()) SWIG_fail; | |
3197 | } | |
3198 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
3199 | return resultobj; | |
3200 | fail: | |
3201 | return NULL; | |
3202 | } | |
3203 | ||
3204 | ||
3205 | static PyObject *_wrap_Icon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3206 | PyObject *resultobj; | |
3207 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3208 | wxString *arg2 = 0 ; | |
3209 | long arg3 ; | |
3210 | bool result; | |
423f194a | 3211 | bool temp2 = False ; |
d14a1e28 RD |
3212 | PyObject * obj0 = 0 ; |
3213 | PyObject * obj1 = 0 ; | |
3214 | char *kwnames[] = { | |
3215 | (char *) "self",(char *) "name",(char *) "flags", NULL | |
3216 | }; | |
3217 | ||
3218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOl:Icon_LoadFile",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
3219 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3220 | { | |
3221 | arg2 = wxString_in_helper(obj1); | |
3222 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3223 | temp2 = True; |
d14a1e28 RD |
3224 | } |
3225 | { | |
3226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3227 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3); | |
3228 | ||
3229 | wxPyEndAllowThreads(__tstate); | |
3230 | if (PyErr_Occurred()) SWIG_fail; | |
3231 | } | |
3232 | resultobj = PyInt_FromLong((long)result); | |
3233 | { | |
3234 | if (temp2) | |
3235 | delete arg2; | |
3236 | } | |
3237 | return resultobj; | |
3238 | fail: | |
3239 | { | |
3240 | if (temp2) | |
3241 | delete arg2; | |
3242 | } | |
3243 | return NULL; | |
3244 | } | |
3245 | ||
3246 | ||
3247 | static PyObject *_wrap_Icon_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3248 | PyObject *resultobj; | |
3249 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3250 | long result; | |
3251 | PyObject * obj0 = 0 ; | |
3252 | char *kwnames[] = { | |
3253 | (char *) "self", NULL | |
3254 | }; | |
3255 | ||
3256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHandle",kwnames,&obj0)) goto fail; | |
3257 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3258 | { | |
3259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3260 | result = (long)(arg1)->GetHandle(); | |
3261 | ||
3262 | wxPyEndAllowThreads(__tstate); | |
3263 | if (PyErr_Occurred()) SWIG_fail; | |
3264 | } | |
3265 | resultobj = PyInt_FromLong((long)result); | |
3266 | return resultobj; | |
3267 | fail: | |
3268 | return NULL; | |
3269 | } | |
3270 | ||
3271 | ||
3272 | static PyObject *_wrap_Icon_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3273 | PyObject *resultobj; | |
3274 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3275 | long arg2 ; | |
3276 | PyObject * obj0 = 0 ; | |
3277 | char *kwnames[] = { | |
3278 | (char *) "self",(char *) "handle", NULL | |
3279 | }; | |
3280 | ||
3281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:Icon_SetHandle",kwnames,&obj0,&arg2)) goto fail; | |
3282 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3283 | { | |
3284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3285 | (arg1)->SetHandle(arg2); | |
3286 | ||
3287 | wxPyEndAllowThreads(__tstate); | |
3288 | if (PyErr_Occurred()) SWIG_fail; | |
3289 | } | |
3290 | Py_INCREF(Py_None); resultobj = Py_None; | |
3291 | return resultobj; | |
3292 | fail: | |
3293 | return NULL; | |
3294 | } | |
3295 | ||
3296 | ||
3297 | static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3298 | PyObject *resultobj; | |
3299 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3300 | bool result; | |
3301 | PyObject * obj0 = 0 ; | |
3302 | char *kwnames[] = { | |
3303 | (char *) "self", NULL | |
3304 | }; | |
3305 | ||
3306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail; | |
3307 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3308 | { | |
3309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3310 | result = (bool)(arg1)->Ok(); | |
3311 | ||
3312 | wxPyEndAllowThreads(__tstate); | |
3313 | if (PyErr_Occurred()) SWIG_fail; | |
3314 | } | |
3315 | resultobj = PyInt_FromLong((long)result); | |
3316 | return resultobj; | |
3317 | fail: | |
3318 | return NULL; | |
3319 | } | |
3320 | ||
3321 | ||
3322 | static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3323 | PyObject *resultobj; | |
3324 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3325 | int result; | |
3326 | PyObject * obj0 = 0 ; | |
3327 | char *kwnames[] = { | |
3328 | (char *) "self", NULL | |
3329 | }; | |
3330 | ||
3331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail; | |
3332 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3333 | { | |
3334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3335 | result = (int)(arg1)->GetWidth(); | |
3336 | ||
3337 | wxPyEndAllowThreads(__tstate); | |
3338 | if (PyErr_Occurred()) SWIG_fail; | |
3339 | } | |
3340 | resultobj = PyInt_FromLong((long)result); | |
3341 | return resultobj; | |
3342 | fail: | |
3343 | return NULL; | |
3344 | } | |
3345 | ||
3346 | ||
3347 | static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3348 | PyObject *resultobj; | |
3349 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3350 | int result; | |
3351 | PyObject * obj0 = 0 ; | |
3352 | char *kwnames[] = { | |
3353 | (char *) "self", NULL | |
3354 | }; | |
3355 | ||
3356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail; | |
3357 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3358 | { | |
3359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3360 | result = (int)(arg1)->GetHeight(); | |
3361 | ||
3362 | wxPyEndAllowThreads(__tstate); | |
3363 | if (PyErr_Occurred()) SWIG_fail; | |
3364 | } | |
3365 | resultobj = PyInt_FromLong((long)result); | |
3366 | return resultobj; | |
3367 | fail: | |
3368 | return NULL; | |
3369 | } | |
3370 | ||
3371 | ||
3372 | static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3373 | PyObject *resultobj; | |
3374 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3375 | int result; | |
3376 | PyObject * obj0 = 0 ; | |
3377 | char *kwnames[] = { | |
3378 | (char *) "self", NULL | |
3379 | }; | |
3380 | ||
3381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail; | |
3382 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3383 | { | |
3384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3385 | result = (int)(arg1)->GetDepth(); | |
3386 | ||
3387 | wxPyEndAllowThreads(__tstate); | |
3388 | if (PyErr_Occurred()) SWIG_fail; | |
3389 | } | |
3390 | resultobj = PyInt_FromLong((long)result); | |
3391 | return resultobj; | |
3392 | fail: | |
3393 | return NULL; | |
3394 | } | |
3395 | ||
3396 | ||
3397 | static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3398 | PyObject *resultobj; | |
3399 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3400 | int arg2 ; | |
3401 | PyObject * obj0 = 0 ; | |
3402 | char *kwnames[] = { | |
3403 | (char *) "self",(char *) "w", NULL | |
3404 | }; | |
3405 | ||
3406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Icon_SetWidth",kwnames,&obj0,&arg2)) goto fail; | |
3407 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3408 | { | |
3409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3410 | (arg1)->SetWidth(arg2); | |
3411 | ||
3412 | wxPyEndAllowThreads(__tstate); | |
3413 | if (PyErr_Occurred()) SWIG_fail; | |
3414 | } | |
3415 | Py_INCREF(Py_None); resultobj = Py_None; | |
3416 | return resultobj; | |
3417 | fail: | |
3418 | return NULL; | |
3419 | } | |
3420 | ||
3421 | ||
3422 | static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3423 | PyObject *resultobj; | |
3424 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3425 | int arg2 ; | |
3426 | PyObject * obj0 = 0 ; | |
3427 | char *kwnames[] = { | |
3428 | (char *) "self",(char *) "h", NULL | |
3429 | }; | |
3430 | ||
3431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Icon_SetHeight",kwnames,&obj0,&arg2)) goto fail; | |
3432 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3433 | { | |
3434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3435 | (arg1)->SetHeight(arg2); | |
3436 | ||
3437 | wxPyEndAllowThreads(__tstate); | |
3438 | if (PyErr_Occurred()) SWIG_fail; | |
3439 | } | |
3440 | Py_INCREF(Py_None); resultobj = Py_None; | |
3441 | return resultobj; | |
3442 | fail: | |
3443 | return NULL; | |
3444 | } | |
3445 | ||
3446 | ||
3447 | static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3448 | PyObject *resultobj; | |
3449 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3450 | int arg2 ; | |
3451 | PyObject * obj0 = 0 ; | |
3452 | char *kwnames[] = { | |
3453 | (char *) "self",(char *) "d", NULL | |
3454 | }; | |
3455 | ||
3456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Icon_SetDepth",kwnames,&obj0,&arg2)) goto fail; | |
3457 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3458 | { | |
3459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3460 | (arg1)->SetDepth(arg2); | |
3461 | ||
3462 | wxPyEndAllowThreads(__tstate); | |
3463 | if (PyErr_Occurred()) SWIG_fail; | |
3464 | } | |
3465 | Py_INCREF(Py_None); resultobj = Py_None; | |
3466 | return resultobj; | |
3467 | fail: | |
3468 | return NULL; | |
3469 | } | |
3470 | ||
3471 | ||
3472 | static PyObject *_wrap_Icon_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3473 | PyObject *resultobj; | |
3474 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3475 | wxSize *arg2 = 0 ; | |
3476 | wxSize temp2 ; | |
3477 | PyObject * obj0 = 0 ; | |
3478 | PyObject * obj1 = 0 ; | |
3479 | char *kwnames[] = { | |
3480 | (char *) "self",(char *) "size", NULL | |
3481 | }; | |
3482 | ||
3483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
3484 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3485 | { | |
3486 | arg2 = &temp2; | |
3487 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3488 | } | |
3489 | { | |
3490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3491 | (arg1)->SetSize((wxSize const &)*arg2); | |
3492 | ||
3493 | wxPyEndAllowThreads(__tstate); | |
3494 | if (PyErr_Occurred()) SWIG_fail; | |
3495 | } | |
3496 | Py_INCREF(Py_None); resultobj = Py_None; | |
3497 | return resultobj; | |
3498 | fail: | |
3499 | return NULL; | |
3500 | } | |
3501 | ||
3502 | ||
3503 | static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3504 | PyObject *resultobj; | |
3505 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3506 | wxBitmap *arg2 = 0 ; | |
3507 | PyObject * obj0 = 0 ; | |
3508 | PyObject * obj1 = 0 ; | |
3509 | char *kwnames[] = { | |
3510 | (char *) "self",(char *) "bmp", NULL | |
3511 | }; | |
3512 | ||
3513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail; | |
3514 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3515 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3516 | if (arg2 == NULL) { | |
3517 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3518 | } | |
3519 | { | |
3520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3521 | (arg1)->CopyFromBitmap((wxBitmap const &)*arg2); | |
3522 | ||
3523 | wxPyEndAllowThreads(__tstate); | |
3524 | if (PyErr_Occurred()) SWIG_fail; | |
3525 | } | |
3526 | Py_INCREF(Py_None); resultobj = Py_None; | |
3527 | return resultobj; | |
3528 | fail: | |
3529 | return NULL; | |
3530 | } | |
3531 | ||
3532 | ||
3533 | static PyObject * Icon_swigregister(PyObject *self, PyObject *args) { | |
3534 | PyObject *obj; | |
3535 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3536 | SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj); | |
3537 | Py_INCREF(obj); | |
3538 | return Py_BuildValue((char *)""); | |
3539 | } | |
3540 | static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3541 | PyObject *resultobj; | |
3542 | wxString *arg1 = (wxString *) &wxPyEmptyString ; | |
3543 | int arg2 = (int) 0 ; | |
3544 | wxIconLocation *result; | |
3545 | PyObject * obj0 = 0 ; | |
3546 | char *kwnames[] = { | |
3547 | (char *) "filename",(char *) "num", NULL | |
3548 | }; | |
3549 | ||
3550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|Oi:new_IconLocation",kwnames,&obj0,&arg2)) goto fail; | |
3551 | if (obj0) { | |
3552 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3553 | } | |
3554 | { | |
3555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3556 | result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2); | |
3557 | ||
3558 | wxPyEndAllowThreads(__tstate); | |
3559 | if (PyErr_Occurred()) SWIG_fail; | |
3560 | } | |
3561 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconLocation, 1); | |
3562 | return resultobj; | |
3563 | fail: | |
3564 | return NULL; | |
3565 | } | |
3566 | ||
3567 | ||
3568 | static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3569 | PyObject *resultobj; | |
3570 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3571 | PyObject * obj0 = 0 ; | |
3572 | char *kwnames[] = { | |
3573 | (char *) "self", NULL | |
3574 | }; | |
3575 | ||
3576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail; | |
3577 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3578 | { | |
3579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3580 | delete arg1; | |
3581 | ||
3582 | wxPyEndAllowThreads(__tstate); | |
3583 | if (PyErr_Occurred()) SWIG_fail; | |
3584 | } | |
3585 | Py_INCREF(Py_None); resultobj = Py_None; | |
3586 | return resultobj; | |
3587 | fail: | |
3588 | return NULL; | |
3589 | } | |
3590 | ||
3591 | ||
3592 | static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3593 | PyObject *resultobj; | |
3594 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3595 | bool result; | |
3596 | PyObject * obj0 = 0 ; | |
3597 | char *kwnames[] = { | |
3598 | (char *) "self", NULL | |
3599 | }; | |
3600 | ||
3601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail; | |
3602 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3603 | { | |
3604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3605 | result = (bool)((wxIconLocation const *)arg1)->IsOk(); | |
3606 | ||
3607 | wxPyEndAllowThreads(__tstate); | |
3608 | if (PyErr_Occurred()) SWIG_fail; | |
3609 | } | |
3610 | resultobj = PyInt_FromLong((long)result); | |
3611 | return resultobj; | |
3612 | fail: | |
3613 | return NULL; | |
3614 | } | |
3615 | ||
3616 | ||
3617 | static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3618 | PyObject *resultobj; | |
3619 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3620 | wxString *arg2 = 0 ; | |
423f194a | 3621 | bool temp2 = False ; |
d14a1e28 RD |
3622 | PyObject * obj0 = 0 ; |
3623 | PyObject * obj1 = 0 ; | |
3624 | char *kwnames[] = { | |
3625 | (char *) "self",(char *) "filename", NULL | |
3626 | }; | |
3627 | ||
3628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail; | |
3629 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3630 | { | |
3631 | arg2 = wxString_in_helper(obj1); | |
3632 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3633 | temp2 = True; |
d14a1e28 RD |
3634 | } |
3635 | { | |
3636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3637 | (arg1)->SetFileName((wxString const &)*arg2); | |
3638 | ||
3639 | wxPyEndAllowThreads(__tstate); | |
3640 | if (PyErr_Occurred()) SWIG_fail; | |
3641 | } | |
3642 | Py_INCREF(Py_None); resultobj = Py_None; | |
3643 | { | |
3644 | if (temp2) | |
3645 | delete arg2; | |
3646 | } | |
3647 | return resultobj; | |
3648 | fail: | |
3649 | { | |
3650 | if (temp2) | |
3651 | delete arg2; | |
3652 | } | |
3653 | return NULL; | |
3654 | } | |
3655 | ||
3656 | ||
3657 | static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3658 | PyObject *resultobj; | |
3659 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3660 | wxString *result; | |
3661 | PyObject * obj0 = 0 ; | |
3662 | char *kwnames[] = { | |
3663 | (char *) "self", NULL | |
3664 | }; | |
3665 | ||
3666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail; | |
3667 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3668 | { | |
3669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3670 | { | |
3671 | wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName(); | |
3672 | result = (wxString *) &_result_ref; | |
3673 | } | |
3674 | ||
3675 | wxPyEndAllowThreads(__tstate); | |
3676 | if (PyErr_Occurred()) SWIG_fail; | |
3677 | } | |
f0983263 RD |
3678 | { |
3679 | #if wxUSE_UNICODE | |
3680 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
3681 | #else | |
3682 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
3683 | #endif | |
3684 | } | |
d14a1e28 RD |
3685 | return resultobj; |
3686 | fail: | |
3687 | return NULL; | |
3688 | } | |
3689 | ||
3690 | ||
3691 | static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3692 | PyObject *resultobj; | |
3693 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3694 | int arg2 ; | |
3695 | PyObject * obj0 = 0 ; | |
3696 | char *kwnames[] = { | |
3697 | (char *) "self",(char *) "num", NULL | |
3698 | }; | |
3699 | ||
3700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:IconLocation_SetIndex",kwnames,&obj0,&arg2)) goto fail; | |
3701 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3702 | { | |
3703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3704 | wxIconLocation_SetIndex(arg1,arg2); | |
3705 | ||
3706 | wxPyEndAllowThreads(__tstate); | |
3707 | if (PyErr_Occurred()) SWIG_fail; | |
3708 | } | |
3709 | Py_INCREF(Py_None); resultobj = Py_None; | |
3710 | return resultobj; | |
3711 | fail: | |
3712 | return NULL; | |
3713 | } | |
3714 | ||
3715 | ||
3716 | static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3717 | PyObject *resultobj; | |
3718 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3719 | int result; | |
3720 | PyObject * obj0 = 0 ; | |
3721 | char *kwnames[] = { | |
3722 | (char *) "self", NULL | |
3723 | }; | |
3724 | ||
3725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail; | |
3726 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3727 | { | |
3728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3729 | result = (int)wxIconLocation_GetIndex(arg1); | |
3730 | ||
3731 | wxPyEndAllowThreads(__tstate); | |
3732 | if (PyErr_Occurred()) SWIG_fail; | |
3733 | } | |
3734 | resultobj = PyInt_FromLong((long)result); | |
3735 | return resultobj; | |
3736 | fail: | |
3737 | return NULL; | |
3738 | } | |
3739 | ||
3740 | ||
3741 | static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) { | |
3742 | PyObject *obj; | |
3743 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3744 | SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj); | |
3745 | Py_INCREF(obj); | |
3746 | return Py_BuildValue((char *)""); | |
3747 | } | |
3748 | static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3749 | PyObject *resultobj; | |
3750 | wxIconBundle *result; | |
3751 | char *kwnames[] = { | |
3752 | NULL | |
3753 | }; | |
3754 | ||
3755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail; | |
3756 | { | |
3757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3758 | result = (wxIconBundle *)new wxIconBundle(); | |
3759 | ||
3760 | wxPyEndAllowThreads(__tstate); | |
3761 | if (PyErr_Occurred()) SWIG_fail; | |
3762 | } | |
3763 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1); | |
3764 | return resultobj; | |
3765 | fail: | |
3766 | return NULL; | |
3767 | } | |
3768 | ||
3769 | ||
3770 | static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3771 | PyObject *resultobj; | |
3772 | wxString *arg1 = 0 ; | |
3773 | long arg2 ; | |
3774 | wxIconBundle *result; | |
423f194a | 3775 | bool temp1 = False ; |
d14a1e28 RD |
3776 | PyObject * obj0 = 0 ; |
3777 | char *kwnames[] = { | |
3778 | (char *) "file",(char *) "type", NULL | |
3779 | }; | |
3780 | ||
3781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:new_IconBundleFromFile",kwnames,&obj0,&arg2)) goto fail; | |
3782 | { | |
3783 | arg1 = wxString_in_helper(obj0); | |
3784 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 3785 | temp1 = True; |
d14a1e28 RD |
3786 | } |
3787 | { | |
3788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3789 | result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2); | |
3790 | ||
3791 | wxPyEndAllowThreads(__tstate); | |
3792 | if (PyErr_Occurred()) SWIG_fail; | |
3793 | } | |
3794 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1); | |
3795 | { | |
3796 | if (temp1) | |
3797 | delete arg1; | |
3798 | } | |
3799 | return resultobj; | |
3800 | fail: | |
3801 | { | |
3802 | if (temp1) | |
3803 | delete arg1; | |
3804 | } | |
3805 | return NULL; | |
3806 | } | |
3807 | ||
3808 | ||
3809 | static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3810 | PyObject *resultobj; | |
3811 | wxIcon *arg1 = 0 ; | |
3812 | wxIconBundle *result; | |
3813 | PyObject * obj0 = 0 ; | |
3814 | char *kwnames[] = { | |
3815 | (char *) "icon", NULL | |
3816 | }; | |
3817 | ||
3818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail; | |
3819 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3820 | if (arg1 == NULL) { | |
3821 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3822 | } | |
3823 | { | |
3824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3825 | result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1); | |
3826 | ||
3827 | wxPyEndAllowThreads(__tstate); | |
3828 | if (PyErr_Occurred()) SWIG_fail; | |
3829 | } | |
3830 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1); | |
3831 | return resultobj; | |
3832 | fail: | |
3833 | return NULL; | |
3834 | } | |
3835 | ||
3836 | ||
3837 | static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3838 | PyObject *resultobj; | |
3839 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
3840 | PyObject * obj0 = 0 ; | |
3841 | char *kwnames[] = { | |
3842 | (char *) "self", NULL | |
3843 | }; | |
3844 | ||
3845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail; | |
3846 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3847 | { | |
3848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3849 | delete arg1; | |
3850 | ||
3851 | wxPyEndAllowThreads(__tstate); | |
3852 | if (PyErr_Occurred()) SWIG_fail; | |
3853 | } | |
3854 | Py_INCREF(Py_None); resultobj = Py_None; | |
3855 | return resultobj; | |
3856 | fail: | |
3857 | return NULL; | |
3858 | } | |
3859 | ||
3860 | ||
3861 | static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3862 | PyObject *resultobj; | |
3863 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
3864 | wxIcon *arg2 = 0 ; | |
3865 | PyObject * obj0 = 0 ; | |
3866 | PyObject * obj1 = 0 ; | |
3867 | char *kwnames[] = { | |
3868 | (char *) "self",(char *) "icon", NULL | |
3869 | }; | |
3870 | ||
3871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail; | |
3872 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3873 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3874 | if (arg2 == NULL) { | |
3875 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3876 | } | |
3877 | { | |
3878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3879 | (arg1)->AddIcon((wxIcon const &)*arg2); | |
3880 | ||
3881 | wxPyEndAllowThreads(__tstate); | |
3882 | if (PyErr_Occurred()) SWIG_fail; | |
3883 | } | |
3884 | Py_INCREF(Py_None); resultobj = Py_None; | |
3885 | return resultobj; | |
3886 | fail: | |
3887 | return NULL; | |
3888 | } | |
3889 | ||
3890 | ||
3891 | static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3892 | PyObject *resultobj; | |
3893 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
3894 | wxString *arg2 = 0 ; | |
3895 | long arg3 ; | |
423f194a | 3896 | bool temp2 = False ; |
d14a1e28 RD |
3897 | PyObject * obj0 = 0 ; |
3898 | PyObject * obj1 = 0 ; | |
3899 | char *kwnames[] = { | |
3900 | (char *) "self",(char *) "file",(char *) "type", NULL | |
3901 | }; | |
3902 | ||
3903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOl:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
3904 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3905 | { | |
3906 | arg2 = wxString_in_helper(obj1); | |
3907 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3908 | temp2 = True; |
d14a1e28 RD |
3909 | } |
3910 | { | |
3911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3912 | (arg1)->AddIcon((wxString const &)*arg2,arg3); | |
3913 | ||
3914 | wxPyEndAllowThreads(__tstate); | |
3915 | if (PyErr_Occurred()) SWIG_fail; | |
3916 | } | |
3917 | Py_INCREF(Py_None); resultobj = Py_None; | |
3918 | { | |
3919 | if (temp2) | |
3920 | delete arg2; | |
3921 | } | |
3922 | return resultobj; | |
3923 | fail: | |
3924 | { | |
3925 | if (temp2) | |
3926 | delete arg2; | |
3927 | } | |
3928 | return NULL; | |
3929 | } | |
3930 | ||
3931 | ||
3932 | static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3933 | PyObject *resultobj; | |
3934 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
3935 | wxSize *arg2 = 0 ; | |
3936 | wxIcon *result; | |
3937 | wxSize temp2 ; | |
3938 | PyObject * obj0 = 0 ; | |
3939 | PyObject * obj1 = 0 ; | |
3940 | char *kwnames[] = { | |
3941 | (char *) "self",(char *) "size", NULL | |
3942 | }; | |
3943 | ||
3944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail; | |
3945 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3946 | { | |
3947 | arg2 = &temp2; | |
3948 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3949 | } | |
3950 | { | |
3951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3952 | { | |
3953 | wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2); | |
3954 | result = (wxIcon *) &_result_ref; | |
3955 | } | |
3956 | ||
3957 | wxPyEndAllowThreads(__tstate); | |
3958 | if (PyErr_Occurred()) SWIG_fail; | |
3959 | } | |
3960 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 0); | |
3961 | return resultobj; | |
3962 | fail: | |
3963 | return NULL; | |
3964 | } | |
3965 | ||
3966 | ||
3967 | static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) { | |
3968 | PyObject *obj; | |
3969 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3970 | SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj); | |
3971 | Py_INCREF(obj); | |
3972 | return Py_BuildValue((char *)""); | |
3973 | } | |
3974 | static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3975 | PyObject *resultobj; | |
3976 | wxString *arg1 = (wxString *) 0 ; | |
3977 | long arg2 ; | |
3978 | int arg3 = (int) 0 ; | |
3979 | int arg4 = (int) 0 ; | |
3980 | wxCursor *result; | |
3981 | PyObject * obj0 = 0 ; | |
3982 | char *kwnames[] = { | |
3983 | (char *) "cursorName",(char *) "flags",(char *) "hotSpotX",(char *) "hotSpotY", NULL | |
3984 | }; | |
3985 | ||
3986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|ii:new_Cursor",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
3987 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3988 | { | |
3989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3990 | result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4); | |
3991 | ||
3992 | wxPyEndAllowThreads(__tstate); | |
3993 | if (PyErr_Occurred()) SWIG_fail; | |
3994 | } | |
3995 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1); | |
3996 | return resultobj; | |
3997 | fail: | |
3998 | return NULL; | |
3999 | } | |
4000 | ||
4001 | ||
4002 | static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4003 | PyObject *resultobj; | |
4004 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4005 | PyObject * obj0 = 0 ; | |
4006 | char *kwnames[] = { | |
4007 | (char *) "self", NULL | |
4008 | }; | |
4009 | ||
4010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail; | |
4011 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4012 | { | |
4013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4014 | delete arg1; | |
4015 | ||
4016 | wxPyEndAllowThreads(__tstate); | |
4017 | if (PyErr_Occurred()) SWIG_fail; | |
4018 | } | |
4019 | Py_INCREF(Py_None); resultobj = Py_None; | |
4020 | return resultobj; | |
4021 | fail: | |
4022 | return NULL; | |
4023 | } | |
4024 | ||
4025 | ||
4026 | static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4027 | PyObject *resultobj; | |
4028 | int arg1 ; | |
4029 | wxCursor *result; | |
4030 | char *kwnames[] = { | |
4031 | (char *) "id", NULL | |
4032 | }; | |
4033 | ||
4034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:new_StockCursor",kwnames,&arg1)) goto fail; | |
4035 | { | |
4036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4037 | result = (wxCursor *)new wxCursor(arg1); | |
4038 | ||
4039 | wxPyEndAllowThreads(__tstate); | |
4040 | if (PyErr_Occurred()) SWIG_fail; | |
4041 | } | |
4042 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1); | |
4043 | return resultobj; | |
4044 | fail: | |
4045 | return NULL; | |
4046 | } | |
4047 | ||
4048 | ||
4049 | static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4050 | PyObject *resultobj; | |
4051 | wxImage *arg1 = 0 ; | |
4052 | wxCursor *result; | |
4053 | PyObject * obj0 = 0 ; | |
4054 | char *kwnames[] = { | |
4055 | (char *) "image", NULL | |
4056 | }; | |
4057 | ||
4058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail; | |
4059 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4060 | if (arg1 == NULL) { | |
4061 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4062 | } | |
4063 | { | |
4064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4065 | result = (wxCursor *)new wxCursor((wxImage const &)*arg1); | |
4066 | ||
4067 | wxPyEndAllowThreads(__tstate); | |
4068 | if (PyErr_Occurred()) SWIG_fail; | |
4069 | } | |
4070 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1); | |
4071 | return resultobj; | |
4072 | fail: | |
4073 | return NULL; | |
4074 | } | |
4075 | ||
4076 | ||
4077 | static PyObject *_wrap_new_CursorFromBits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4078 | PyObject *resultobj; | |
4079 | PyObject *arg1 = (PyObject *) 0 ; | |
4080 | int arg2 ; | |
4081 | int arg3 ; | |
4082 | int arg4 = (int) -1 ; | |
4083 | int arg5 = (int) -1 ; | |
4084 | PyObject *arg6 = (PyObject *) 0 ; | |
4085 | wxCursor *result; | |
4086 | PyObject * obj0 = 0 ; | |
4087 | PyObject * obj5 = 0 ; | |
4088 | char *kwnames[] = { | |
4089 | (char *) "bits",(char *) "width",(char *) "height",(char *) "hotSpotX",(char *) "hotSpotY",(char *) "maskBits", NULL | |
4090 | }; | |
4091 | ||
4092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|iiO:new_CursorFromBits",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5)) goto fail; | |
4093 | arg1 = obj0; | |
4094 | if (obj5) { | |
4095 | arg6 = obj5; | |
4096 | } | |
4097 | { | |
4098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4099 | result = (wxCursor *)new_wxCursor(arg1,arg2,arg3,arg4,arg5,arg6); | |
4100 | ||
4101 | wxPyEndAllowThreads(__tstate); | |
4102 | if (PyErr_Occurred()) SWIG_fail; | |
4103 | } | |
4104 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1); | |
4105 | return resultobj; | |
4106 | fail: | |
4107 | return NULL; | |
4108 | } | |
4109 | ||
4110 | ||
4111 | static PyObject *_wrap_Cursor_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4112 | PyObject *resultobj; | |
4113 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4114 | long result; | |
4115 | PyObject * obj0 = 0 ; | |
4116 | char *kwnames[] = { | |
4117 | (char *) "self", NULL | |
4118 | }; | |
4119 | ||
4120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHandle",kwnames,&obj0)) goto fail; | |
4121 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4122 | { | |
4123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4124 | result = (long)(arg1)->GetHandle(); | |
4125 | ||
4126 | wxPyEndAllowThreads(__tstate); | |
4127 | if (PyErr_Occurred()) SWIG_fail; | |
4128 | } | |
4129 | resultobj = PyInt_FromLong((long)result); | |
4130 | return resultobj; | |
4131 | fail: | |
4132 | return NULL; | |
4133 | } | |
4134 | ||
4135 | ||
4136 | static PyObject *_wrap_Cursor_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4137 | PyObject *resultobj; | |
4138 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4139 | long arg2 ; | |
4140 | PyObject * obj0 = 0 ; | |
4141 | char *kwnames[] = { | |
4142 | (char *) "self",(char *) "handle", NULL | |
4143 | }; | |
4144 | ||
4145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:Cursor_SetHandle",kwnames,&obj0,&arg2)) goto fail; | |
4146 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4147 | { | |
4148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4149 | (arg1)->SetHandle(arg2); | |
4150 | ||
4151 | wxPyEndAllowThreads(__tstate); | |
4152 | if (PyErr_Occurred()) SWIG_fail; | |
4153 | } | |
4154 | Py_INCREF(Py_None); resultobj = Py_None; | |
4155 | return resultobj; | |
4156 | fail: | |
4157 | return NULL; | |
4158 | } | |
4159 | ||
4160 | ||
4161 | static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4162 | PyObject *resultobj; | |
4163 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4164 | bool result; | |
4165 | PyObject * obj0 = 0 ; | |
4166 | char *kwnames[] = { | |
4167 | (char *) "self", NULL | |
4168 | }; | |
4169 | ||
4170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail; | |
4171 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4172 | { | |
4173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4174 | result = (bool)(arg1)->Ok(); | |
4175 | ||
4176 | wxPyEndAllowThreads(__tstate); | |
4177 | if (PyErr_Occurred()) SWIG_fail; | |
4178 | } | |
4179 | resultobj = PyInt_FromLong((long)result); | |
4180 | return resultobj; | |
4181 | fail: | |
4182 | return NULL; | |
4183 | } | |
4184 | ||
4185 | ||
4186 | static PyObject *_wrap_Cursor_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4187 | PyObject *resultobj; | |
4188 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4189 | int result; | |
4190 | PyObject * obj0 = 0 ; | |
4191 | char *kwnames[] = { | |
4192 | (char *) "self", NULL | |
4193 | }; | |
4194 | ||
4195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetWidth",kwnames,&obj0)) goto fail; | |
4196 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4197 | { | |
4198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4199 | result = (int)(arg1)->GetWidth(); | |
4200 | ||
4201 | wxPyEndAllowThreads(__tstate); | |
4202 | if (PyErr_Occurred()) SWIG_fail; | |
4203 | } | |
4204 | resultobj = PyInt_FromLong((long)result); | |
4205 | return resultobj; | |
4206 | fail: | |
4207 | return NULL; | |
4208 | } | |
4209 | ||
4210 | ||
4211 | static PyObject *_wrap_Cursor_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4212 | PyObject *resultobj; | |
4213 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4214 | int result; | |
4215 | PyObject * obj0 = 0 ; | |
4216 | char *kwnames[] = { | |
4217 | (char *) "self", NULL | |
4218 | }; | |
4219 | ||
4220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHeight",kwnames,&obj0)) goto fail; | |
4221 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4222 | { | |
4223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4224 | result = (int)(arg1)->GetHeight(); | |
4225 | ||
4226 | wxPyEndAllowThreads(__tstate); | |
4227 | if (PyErr_Occurred()) SWIG_fail; | |
4228 | } | |
4229 | resultobj = PyInt_FromLong((long)result); | |
4230 | return resultobj; | |
4231 | fail: | |
4232 | return NULL; | |
4233 | } | |
4234 | ||
4235 | ||
4236 | static PyObject *_wrap_Cursor_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4237 | PyObject *resultobj; | |
4238 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4239 | int result; | |
4240 | PyObject * obj0 = 0 ; | |
4241 | char *kwnames[] = { | |
4242 | (char *) "self", NULL | |
4243 | }; | |
4244 | ||
4245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetDepth",kwnames,&obj0)) goto fail; | |
4246 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4247 | { | |
4248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4249 | result = (int)(arg1)->GetDepth(); | |
4250 | ||
4251 | wxPyEndAllowThreads(__tstate); | |
4252 | if (PyErr_Occurred()) SWIG_fail; | |
4253 | } | |
4254 | resultobj = PyInt_FromLong((long)result); | |
4255 | return resultobj; | |
4256 | fail: | |
4257 | return NULL; | |
4258 | } | |
4259 | ||
4260 | ||
4261 | static PyObject *_wrap_Cursor_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4262 | PyObject *resultobj; | |
4263 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4264 | int arg2 ; | |
4265 | PyObject * obj0 = 0 ; | |
4266 | char *kwnames[] = { | |
4267 | (char *) "self",(char *) "w", NULL | |
4268 | }; | |
4269 | ||
4270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Cursor_SetWidth",kwnames,&obj0,&arg2)) goto fail; | |
4271 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4272 | { | |
4273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4274 | (arg1)->SetWidth(arg2); | |
4275 | ||
4276 | wxPyEndAllowThreads(__tstate); | |
4277 | if (PyErr_Occurred()) SWIG_fail; | |
4278 | } | |
4279 | Py_INCREF(Py_None); resultobj = Py_None; | |
4280 | return resultobj; | |
4281 | fail: | |
4282 | return NULL; | |
4283 | } | |
4284 | ||
4285 | ||
4286 | static PyObject *_wrap_Cursor_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4287 | PyObject *resultobj; | |
4288 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4289 | int arg2 ; | |
4290 | PyObject * obj0 = 0 ; | |
4291 | char *kwnames[] = { | |
4292 | (char *) "self",(char *) "h", NULL | |
4293 | }; | |
4294 | ||
4295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Cursor_SetHeight",kwnames,&obj0,&arg2)) goto fail; | |
4296 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4297 | { | |
4298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4299 | (arg1)->SetHeight(arg2); | |
4300 | ||
4301 | wxPyEndAllowThreads(__tstate); | |
4302 | if (PyErr_Occurred()) SWIG_fail; | |
4303 | } | |
4304 | Py_INCREF(Py_None); resultobj = Py_None; | |
4305 | return resultobj; | |
4306 | fail: | |
4307 | return NULL; | |
4308 | } | |
4309 | ||
4310 | ||
4311 | static PyObject *_wrap_Cursor_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4312 | PyObject *resultobj; | |
4313 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4314 | int arg2 ; | |
4315 | PyObject * obj0 = 0 ; | |
4316 | char *kwnames[] = { | |
4317 | (char *) "self",(char *) "d", NULL | |
4318 | }; | |
4319 | ||
4320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Cursor_SetDepth",kwnames,&obj0,&arg2)) goto fail; | |
4321 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4322 | { | |
4323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4324 | (arg1)->SetDepth(arg2); | |
4325 | ||
4326 | wxPyEndAllowThreads(__tstate); | |
4327 | if (PyErr_Occurred()) SWIG_fail; | |
4328 | } | |
4329 | Py_INCREF(Py_None); resultobj = Py_None; | |
4330 | return resultobj; | |
4331 | fail: | |
4332 | return NULL; | |
4333 | } | |
4334 | ||
4335 | ||
4336 | static PyObject *_wrap_Cursor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4337 | PyObject *resultobj; | |
4338 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4339 | wxSize *arg2 = 0 ; | |
4340 | wxSize temp2 ; | |
4341 | PyObject * obj0 = 0 ; | |
4342 | PyObject * obj1 = 0 ; | |
4343 | char *kwnames[] = { | |
4344 | (char *) "self",(char *) "size", NULL | |
4345 | }; | |
4346 | ||
4347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
4348 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4349 | { | |
4350 | arg2 = &temp2; | |
4351 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4352 | } | |
4353 | { | |
4354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4355 | (arg1)->SetSize((wxSize const &)*arg2); | |
4356 | ||
4357 | wxPyEndAllowThreads(__tstate); | |
4358 | if (PyErr_Occurred()) SWIG_fail; | |
4359 | } | |
4360 | Py_INCREF(Py_None); resultobj = Py_None; | |
4361 | return resultobj; | |
4362 | fail: | |
4363 | return NULL; | |
4364 | } | |
4365 | ||
4366 | ||
4367 | static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) { | |
4368 | PyObject *obj; | |
4369 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4370 | SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj); | |
4371 | Py_INCREF(obj); | |
4372 | return Py_BuildValue((char *)""); | |
4373 | } | |
4374 | static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4375 | PyObject *resultobj; | |
423f194a RD |
4376 | int arg1 = (int) 0 ; |
4377 | int arg2 = (int) 0 ; | |
4378 | int arg3 = (int) 0 ; | |
4379 | int arg4 = (int) 0 ; | |
d14a1e28 RD |
4380 | wxRegion *result; |
4381 | char *kwnames[] = { | |
4382 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4383 | }; | |
4384 | ||
4385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_Region",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
4386 | { | |
4387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4388 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4); | |
4389 | ||
4390 | wxPyEndAllowThreads(__tstate); | |
4391 | if (PyErr_Occurred()) SWIG_fail; | |
4392 | } | |
4393 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1); | |
4394 | return resultobj; | |
4395 | fail: | |
4396 | return NULL; | |
4397 | } | |
4398 | ||
4399 | ||
4400 | static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4401 | PyObject *resultobj; | |
4402 | wxBitmap *arg1 = 0 ; | |
4403 | wxColour const &arg2_defvalue = wxNullColour ; | |
4404 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
4405 | int arg3 = (int) 0 ; | |
4406 | wxRegion *result; | |
4407 | wxColour temp2 ; | |
4408 | PyObject * obj0 = 0 ; | |
4409 | PyObject * obj1 = 0 ; | |
4410 | char *kwnames[] = { | |
4411 | (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
4412 | }; | |
4413 | ||
4414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|Oi:new_RegionFromBitmap",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
4415 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4416 | if (arg1 == NULL) { | |
4417 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4418 | } | |
4419 | if (obj1) { | |
4420 | { | |
4421 | arg2 = &temp2; | |
4422 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
4423 | } | |
4424 | } | |
4425 | { | |
4426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4427 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3); | |
4428 | ||
4429 | wxPyEndAllowThreads(__tstate); | |
4430 | if (PyErr_Occurred()) SWIG_fail; | |
4431 | } | |
4432 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1); | |
4433 | return resultobj; | |
4434 | fail: | |
4435 | return NULL; | |
4436 | } | |
4437 | ||
4438 | ||
4439 | static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4440 | PyObject *resultobj; | |
4441 | int arg1 ; | |
4442 | wxPoint *arg2 = (wxPoint *) 0 ; | |
4443 | int arg3 = (int) wxWINDING_RULE ; | |
4444 | wxRegion *result; | |
4445 | PyObject * obj0 = 0 ; | |
4446 | char *kwnames[] = { | |
4447 | (char *) "points",(char *) "fillStyle", NULL | |
4448 | }; | |
4449 | ||
4450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_RegionFromPoints",kwnames,&obj0,&arg3)) goto fail; | |
4451 | { | |
4452 | arg2 = wxPoint_LIST_helper(obj0, &arg1); | |
4453 | if (arg2 == NULL) SWIG_fail; | |
4454 | } | |
4455 | { | |
4456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4457 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3); | |
4458 | ||
4459 | wxPyEndAllowThreads(__tstate); | |
4460 | if (PyErr_Occurred()) SWIG_fail; | |
4461 | } | |
4462 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1); | |
4463 | { | |
4464 | if (arg2) delete [] arg2; | |
4465 | } | |
4466 | return resultobj; | |
4467 | fail: | |
4468 | { | |
4469 | if (arg2) delete [] arg2; | |
4470 | } | |
4471 | return NULL; | |
4472 | } | |
4473 | ||
4474 | ||
4475 | static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4476 | PyObject *resultobj; | |
4477 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4478 | PyObject * obj0 = 0 ; | |
4479 | char *kwnames[] = { | |
4480 | (char *) "self", NULL | |
4481 | }; | |
4482 | ||
4483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail; | |
4484 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4485 | { | |
4486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4487 | delete arg1; | |
4488 | ||
4489 | wxPyEndAllowThreads(__tstate); | |
4490 | if (PyErr_Occurred()) SWIG_fail; | |
4491 | } | |
4492 | Py_INCREF(Py_None); resultobj = Py_None; | |
4493 | return resultobj; | |
4494 | fail: | |
4495 | return NULL; | |
4496 | } | |
4497 | ||
4498 | ||
4499 | static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4500 | PyObject *resultobj; | |
4501 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4502 | PyObject * obj0 = 0 ; | |
4503 | char *kwnames[] = { | |
4504 | (char *) "self", NULL | |
4505 | }; | |
4506 | ||
4507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail; | |
4508 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4509 | { | |
4510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4511 | (arg1)->Clear(); | |
4512 | ||
4513 | wxPyEndAllowThreads(__tstate); | |
4514 | if (PyErr_Occurred()) SWIG_fail; | |
4515 | } | |
4516 | Py_INCREF(Py_None); resultobj = Py_None; | |
4517 | return resultobj; | |
4518 | fail: | |
4519 | return NULL; | |
4520 | } | |
4521 | ||
4522 | ||
4523 | static PyObject *_wrap_Region_Offset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4524 | PyObject *resultobj; | |
4525 | wxRegion *arg1 = (wxRegion *) 0 ; | |
423f194a RD |
4526 | int arg2 ; |
4527 | int arg3 ; | |
d14a1e28 RD |
4528 | bool result; |
4529 | PyObject * obj0 = 0 ; | |
4530 | char *kwnames[] = { | |
4531 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4532 | }; | |
4533 | ||
4534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Region_Offset",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
4535 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4536 | { | |
4537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4538 | result = (bool)(arg1)->Offset(arg2,arg3); | |
4539 | ||
4540 | wxPyEndAllowThreads(__tstate); | |
4541 | if (PyErr_Occurred()) SWIG_fail; | |
4542 | } | |
4543 | resultobj = PyInt_FromLong((long)result); | |
4544 | return resultobj; | |
4545 | fail: | |
4546 | return NULL; | |
4547 | } | |
4548 | ||
4549 | ||
4550 | static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4551 | PyObject *resultobj; | |
4552 | wxRegion *arg1 = (wxRegion *) 0 ; | |
423f194a RD |
4553 | int arg2 ; |
4554 | int arg3 ; | |
d14a1e28 RD |
4555 | int result; |
4556 | PyObject * obj0 = 0 ; | |
4557 | char *kwnames[] = { | |
4558 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4559 | }; | |
4560 | ||
4561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Region_Contains",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
4562 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4563 | { | |
4564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4565 | result = (int)(arg1)->Contains(arg2,arg3); | |
4566 | ||
4567 | wxPyEndAllowThreads(__tstate); | |
4568 | if (PyErr_Occurred()) SWIG_fail; | |
4569 | } | |
4570 | resultobj = PyInt_FromLong((long)result); | |
4571 | return resultobj; | |
4572 | fail: | |
4573 | return NULL; | |
4574 | } | |
4575 | ||
4576 | ||
4577 | static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4578 | PyObject *resultobj; | |
4579 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4580 | wxPoint *arg2 = 0 ; | |
4581 | int result; | |
4582 | wxPoint temp2 ; | |
4583 | PyObject * obj0 = 0 ; | |
4584 | PyObject * obj1 = 0 ; | |
4585 | char *kwnames[] = { | |
4586 | (char *) "self",(char *) "pt", NULL | |
4587 | }; | |
4588 | ||
4589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail; | |
4590 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4591 | { | |
4592 | arg2 = &temp2; | |
4593 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4594 | } | |
4595 | { | |
4596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4597 | result = (int)(arg1)->Contains((wxPoint const &)*arg2); | |
4598 | ||
4599 | wxPyEndAllowThreads(__tstate); | |
4600 | if (PyErr_Occurred()) SWIG_fail; | |
4601 | } | |
4602 | resultobj = PyInt_FromLong((long)result); | |
4603 | return resultobj; | |
4604 | fail: | |
4605 | return NULL; | |
4606 | } | |
4607 | ||
4608 | ||
4609 | static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4610 | PyObject *resultobj; | |
4611 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4612 | wxRect *arg2 = 0 ; | |
4613 | int result; | |
4614 | wxRect temp2 ; | |
4615 | PyObject * obj0 = 0 ; | |
4616 | PyObject * obj1 = 0 ; | |
4617 | char *kwnames[] = { | |
4618 | (char *) "self",(char *) "rect", NULL | |
4619 | }; | |
4620 | ||
4621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail; | |
4622 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4623 | { | |
4624 | arg2 = &temp2; | |
4625 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4626 | } | |
4627 | { | |
4628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4629 | result = (int)(arg1)->Contains((wxRect const &)*arg2); | |
4630 | ||
4631 | wxPyEndAllowThreads(__tstate); | |
4632 | if (PyErr_Occurred()) SWIG_fail; | |
4633 | } | |
4634 | resultobj = PyInt_FromLong((long)result); | |
4635 | return resultobj; | |
4636 | fail: | |
4637 | return NULL; | |
4638 | } | |
4639 | ||
4640 | ||
4641 | static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4642 | PyObject *resultobj; | |
4643 | wxRegion *arg1 = (wxRegion *) 0 ; | |
423f194a RD |
4644 | int arg2 ; |
4645 | int arg3 ; | |
4646 | int arg4 ; | |
4647 | int arg5 ; | |
d14a1e28 RD |
4648 | int result; |
4649 | PyObject * obj0 = 0 ; | |
4650 | char *kwnames[] = { | |
4651 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
4652 | }; | |
4653 | ||
4654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_ContainsRectDim",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
4655 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4656 | { | |
4657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4658 | result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5); | |
4659 | ||
4660 | wxPyEndAllowThreads(__tstate); | |
4661 | if (PyErr_Occurred()) SWIG_fail; | |
4662 | } | |
4663 | resultobj = PyInt_FromLong((long)result); | |
4664 | return resultobj; | |
4665 | fail: | |
4666 | return NULL; | |
4667 | } | |
4668 | ||
4669 | ||
4670 | static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4671 | PyObject *resultobj; | |
4672 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4673 | wxRect result; | |
4674 | PyObject * obj0 = 0 ; | |
4675 | char *kwnames[] = { | |
4676 | (char *) "self", NULL | |
4677 | }; | |
4678 | ||
4679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail; | |
4680 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4681 | { | |
4682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4683 | result = (arg1)->GetBox(); | |
4684 | ||
4685 | wxPyEndAllowThreads(__tstate); | |
4686 | if (PyErr_Occurred()) SWIG_fail; | |
4687 | } | |
4688 | { | |
4689 | wxRect * resultptr; | |
4690 | resultptr = new wxRect((wxRect &) result); | |
4691 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
4692 | } | |
4693 | return resultobj; | |
4694 | fail: | |
4695 | return NULL; | |
4696 | } | |
4697 | ||
4698 | ||
4699 | static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4700 | PyObject *resultobj; | |
4701 | wxRegion *arg1 = (wxRegion *) 0 ; | |
423f194a RD |
4702 | int arg2 ; |
4703 | int arg3 ; | |
4704 | int arg4 ; | |
4705 | int arg5 ; | |
d14a1e28 RD |
4706 | bool result; |
4707 | PyObject * obj0 = 0 ; | |
4708 | char *kwnames[] = { | |
4709 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4710 | }; | |
4711 | ||
4712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Intersect",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
4713 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4714 | { | |
4715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4716 | result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5); | |
4717 | ||
4718 | wxPyEndAllowThreads(__tstate); | |
4719 | if (PyErr_Occurred()) SWIG_fail; | |
4720 | } | |
4721 | resultobj = PyInt_FromLong((long)result); | |
4722 | return resultobj; | |
4723 | fail: | |
4724 | return NULL; | |
4725 | } | |
4726 | ||
4727 | ||
4728 | static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4729 | PyObject *resultobj; | |
4730 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4731 | wxRect *arg2 = 0 ; | |
4732 | bool result; | |
4733 | wxRect temp2 ; | |
4734 | PyObject * obj0 = 0 ; | |
4735 | PyObject * obj1 = 0 ; | |
4736 | char *kwnames[] = { | |
4737 | (char *) "self",(char *) "rect", NULL | |
4738 | }; | |
4739 | ||
4740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail; | |
4741 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4742 | { | |
4743 | arg2 = &temp2; | |
4744 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4745 | } | |
4746 | { | |
4747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4748 | result = (bool)(arg1)->Intersect((wxRect const &)*arg2); | |
4749 | ||
4750 | wxPyEndAllowThreads(__tstate); | |
4751 | if (PyErr_Occurred()) SWIG_fail; | |
4752 | } | |
4753 | resultobj = PyInt_FromLong((long)result); | |
4754 | return resultobj; | |
4755 | fail: | |
4756 | return NULL; | |
4757 | } | |
4758 | ||
4759 | ||
4760 | static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4761 | PyObject *resultobj; | |
4762 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4763 | wxRegion *arg2 = 0 ; | |
4764 | bool result; | |
4765 | PyObject * obj0 = 0 ; | |
4766 | PyObject * obj1 = 0 ; | |
4767 | char *kwnames[] = { | |
4768 | (char *) "self",(char *) "region", NULL | |
4769 | }; | |
4770 | ||
4771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail; | |
4772 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4773 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4774 | if (arg2 == NULL) { | |
4775 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4776 | } | |
4777 | { | |
4778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4779 | result = (bool)(arg1)->Intersect((wxRegion const &)*arg2); | |
4780 | ||
4781 | wxPyEndAllowThreads(__tstate); | |
4782 | if (PyErr_Occurred()) SWIG_fail; | |
4783 | } | |
4784 | resultobj = PyInt_FromLong((long)result); | |
4785 | return resultobj; | |
4786 | fail: | |
4787 | return NULL; | |
4788 | } | |
4789 | ||
4790 | ||
4791 | static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4792 | PyObject *resultobj; | |
4793 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4794 | bool result; | |
4795 | PyObject * obj0 = 0 ; | |
4796 | char *kwnames[] = { | |
4797 | (char *) "self", NULL | |
4798 | }; | |
4799 | ||
4800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail; | |
4801 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4802 | { | |
4803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4804 | result = (bool)(arg1)->IsEmpty(); | |
4805 | ||
4806 | wxPyEndAllowThreads(__tstate); | |
4807 | if (PyErr_Occurred()) SWIG_fail; | |
4808 | } | |
4809 | resultobj = PyInt_FromLong((long)result); | |
4810 | return resultobj; | |
4811 | fail: | |
4812 | return NULL; | |
4813 | } | |
4814 | ||
4815 | ||
4816 | static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4817 | PyObject *resultobj; | |
4818 | wxRegion *arg1 = (wxRegion *) 0 ; | |
423f194a RD |
4819 | int arg2 ; |
4820 | int arg3 ; | |
4821 | int arg4 ; | |
4822 | int arg5 ; | |
d14a1e28 RD |
4823 | bool result; |
4824 | PyObject * obj0 = 0 ; | |
4825 | char *kwnames[] = { | |
4826 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4827 | }; | |
4828 | ||
4829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Union",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
4830 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4831 | { | |
4832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4833 | result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5); | |
4834 | ||
4835 | wxPyEndAllowThreads(__tstate); | |
4836 | if (PyErr_Occurred()) SWIG_fail; | |
4837 | } | |
4838 | resultobj = PyInt_FromLong((long)result); | |
4839 | return resultobj; | |
4840 | fail: | |
4841 | return NULL; | |
4842 | } | |
4843 | ||
4844 | ||
4845 | static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4846 | PyObject *resultobj; | |
4847 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4848 | wxRect *arg2 = 0 ; | |
4849 | bool result; | |
4850 | wxRect temp2 ; | |
4851 | PyObject * obj0 = 0 ; | |
4852 | PyObject * obj1 = 0 ; | |
4853 | char *kwnames[] = { | |
4854 | (char *) "self",(char *) "rect", NULL | |
4855 | }; | |
4856 | ||
4857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail; | |
4858 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4859 | { | |
4860 | arg2 = &temp2; | |
4861 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4862 | } | |
4863 | { | |
4864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4865 | result = (bool)(arg1)->Union((wxRect const &)*arg2); | |
4866 | ||
4867 | wxPyEndAllowThreads(__tstate); | |
4868 | if (PyErr_Occurred()) SWIG_fail; | |
4869 | } | |
4870 | resultobj = PyInt_FromLong((long)result); | |
4871 | return resultobj; | |
4872 | fail: | |
4873 | return NULL; | |
4874 | } | |
4875 | ||
4876 | ||
4877 | static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4878 | PyObject *resultobj; | |
4879 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4880 | wxRegion *arg2 = 0 ; | |
4881 | bool result; | |
4882 | PyObject * obj0 = 0 ; | |
4883 | PyObject * obj1 = 0 ; | |
4884 | char *kwnames[] = { | |
4885 | (char *) "self",(char *) "region", NULL | |
4886 | }; | |
4887 | ||
4888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail; | |
4889 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4890 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4891 | if (arg2 == NULL) { | |
4892 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4893 | } | |
4894 | { | |
4895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4896 | result = (bool)(arg1)->Union((wxRegion const &)*arg2); | |
4897 | ||
4898 | wxPyEndAllowThreads(__tstate); | |
4899 | if (PyErr_Occurred()) SWIG_fail; | |
4900 | } | |
4901 | resultobj = PyInt_FromLong((long)result); | |
4902 | return resultobj; | |
4903 | fail: | |
4904 | return NULL; | |
4905 | } | |
4906 | ||
4907 | ||
4908 | static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4909 | PyObject *resultobj; | |
4910 | wxRegion *arg1 = (wxRegion *) 0 ; | |
423f194a RD |
4911 | int arg2 ; |
4912 | int arg3 ; | |
4913 | int arg4 ; | |
4914 | int arg5 ; | |
d14a1e28 RD |
4915 | bool result; |
4916 | PyObject * obj0 = 0 ; | |
4917 | char *kwnames[] = { | |
4918 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4919 | }; | |
4920 | ||
4921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Subtract",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
4922 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4923 | { | |
4924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4925 | result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5); | |
4926 | ||
4927 | wxPyEndAllowThreads(__tstate); | |
4928 | if (PyErr_Occurred()) SWIG_fail; | |
4929 | } | |
4930 | resultobj = PyInt_FromLong((long)result); | |
4931 | return resultobj; | |
4932 | fail: | |
4933 | return NULL; | |
4934 | } | |
4935 | ||
4936 | ||
4937 | static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4938 | PyObject *resultobj; | |
4939 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4940 | wxRect *arg2 = 0 ; | |
4941 | bool result; | |
4942 | wxRect temp2 ; | |
4943 | PyObject * obj0 = 0 ; | |
4944 | PyObject * obj1 = 0 ; | |
4945 | char *kwnames[] = { | |
4946 | (char *) "self",(char *) "rect", NULL | |
4947 | }; | |
4948 | ||
4949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail; | |
4950 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4951 | { | |
4952 | arg2 = &temp2; | |
4953 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4954 | } | |
4955 | { | |
4956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4957 | result = (bool)(arg1)->Subtract((wxRect const &)*arg2); | |
4958 | ||
4959 | wxPyEndAllowThreads(__tstate); | |
4960 | if (PyErr_Occurred()) SWIG_fail; | |
4961 | } | |
4962 | resultobj = PyInt_FromLong((long)result); | |
4963 | return resultobj; | |
4964 | fail: | |
4965 | return NULL; | |
4966 | } | |
4967 | ||
4968 | ||
4969 | static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4970 | PyObject *resultobj; | |
4971 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4972 | wxRegion *arg2 = 0 ; | |
4973 | bool result; | |
4974 | PyObject * obj0 = 0 ; | |
4975 | PyObject * obj1 = 0 ; | |
4976 | char *kwnames[] = { | |
4977 | (char *) "self",(char *) "region", NULL | |
4978 | }; | |
4979 | ||
4980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail; | |
4981 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4982 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4983 | if (arg2 == NULL) { | |
4984 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4985 | } | |
4986 | { | |
4987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4988 | result = (bool)(arg1)->Subtract((wxRegion const &)*arg2); | |
4989 | ||
4990 | wxPyEndAllowThreads(__tstate); | |
4991 | if (PyErr_Occurred()) SWIG_fail; | |
4992 | } | |
4993 | resultobj = PyInt_FromLong((long)result); | |
4994 | return resultobj; | |
4995 | fail: | |
4996 | return NULL; | |
4997 | } | |
4998 | ||
4999 | ||
5000 | static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5001 | PyObject *resultobj; | |
5002 | wxRegion *arg1 = (wxRegion *) 0 ; | |
423f194a RD |
5003 | int arg2 ; |
5004 | int arg3 ; | |
5005 | int arg4 ; | |
5006 | int arg5 ; | |
d14a1e28 RD |
5007 | bool result; |
5008 | PyObject * obj0 = 0 ; | |
5009 | char *kwnames[] = { | |
5010 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5011 | }; | |
5012 | ||
5013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Xor",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
5014 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5015 | { | |
5016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5017 | result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5); | |
5018 | ||
5019 | wxPyEndAllowThreads(__tstate); | |
5020 | if (PyErr_Occurred()) SWIG_fail; | |
5021 | } | |
5022 | resultobj = PyInt_FromLong((long)result); | |
5023 | return resultobj; | |
5024 | fail: | |
5025 | return NULL; | |
5026 | } | |
5027 | ||
5028 | ||
5029 | static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5030 | PyObject *resultobj; | |
5031 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5032 | wxRect *arg2 = 0 ; | |
5033 | bool result; | |
5034 | wxRect temp2 ; | |
5035 | PyObject * obj0 = 0 ; | |
5036 | PyObject * obj1 = 0 ; | |
5037 | char *kwnames[] = { | |
5038 | (char *) "self",(char *) "rect", NULL | |
5039 | }; | |
5040 | ||
5041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail; | |
5042 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5043 | { | |
5044 | arg2 = &temp2; | |
5045 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5046 | } | |
5047 | { | |
5048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5049 | result = (bool)(arg1)->Xor((wxRect const &)*arg2); | |
5050 | ||
5051 | wxPyEndAllowThreads(__tstate); | |
5052 | if (PyErr_Occurred()) SWIG_fail; | |
5053 | } | |
5054 | resultobj = PyInt_FromLong((long)result); | |
5055 | return resultobj; | |
5056 | fail: | |
5057 | return NULL; | |
5058 | } | |
5059 | ||
5060 | ||
5061 | static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5062 | PyObject *resultobj; | |
5063 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5064 | wxRegion *arg2 = 0 ; | |
5065 | bool result; | |
5066 | PyObject * obj0 = 0 ; | |
5067 | PyObject * obj1 = 0 ; | |
5068 | char *kwnames[] = { | |
5069 | (char *) "self",(char *) "region", NULL | |
5070 | }; | |
5071 | ||
5072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail; | |
5073 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5074 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5075 | if (arg2 == NULL) { | |
5076 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5077 | } | |
5078 | { | |
5079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5080 | result = (bool)(arg1)->Xor((wxRegion const &)*arg2); | |
5081 | ||
5082 | wxPyEndAllowThreads(__tstate); | |
5083 | if (PyErr_Occurred()) SWIG_fail; | |
5084 | } | |
5085 | resultobj = PyInt_FromLong((long)result); | |
5086 | return resultobj; | |
5087 | fail: | |
5088 | return NULL; | |
5089 | } | |
5090 | ||
5091 | ||
5092 | static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5093 | PyObject *resultobj; | |
5094 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5095 | SwigValueWrapper< wxBitmap > result; | |
5096 | PyObject * obj0 = 0 ; | |
5097 | char *kwnames[] = { | |
5098 | (char *) "self", NULL | |
5099 | }; | |
5100 | ||
5101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail; | |
5102 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5103 | { | |
5104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5105 | result = (arg1)->ConvertToBitmap(); | |
5106 | ||
5107 | wxPyEndAllowThreads(__tstate); | |
5108 | if (PyErr_Occurred()) SWIG_fail; | |
5109 | } | |
5110 | { | |
5111 | wxBitmap * resultptr; | |
5112 | resultptr = new wxBitmap((wxBitmap &) result); | |
5113 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
5114 | } | |
5115 | return resultobj; | |
5116 | fail: | |
5117 | return NULL; | |
5118 | } | |
5119 | ||
5120 | ||
5121 | static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5122 | PyObject *resultobj; | |
5123 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5124 | wxBitmap *arg2 = 0 ; | |
5125 | wxColour const &arg3_defvalue = wxNullColour ; | |
5126 | wxColour *arg3 = (wxColour *) &arg3_defvalue ; | |
5127 | int arg4 = (int) 0 ; | |
5128 | bool result; | |
5129 | wxColour temp3 ; | |
5130 | PyObject * obj0 = 0 ; | |
5131 | PyObject * obj1 = 0 ; | |
5132 | PyObject * obj2 = 0 ; | |
5133 | char *kwnames[] = { | |
5134 | (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
5135 | }; | |
5136 | ||
5137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|Oi:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail; | |
5138 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5139 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5140 | if (arg2 == NULL) { | |
5141 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5142 | } | |
5143 | if (obj2) { | |
5144 | { | |
5145 | arg3 = &temp3; | |
5146 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
5147 | } | |
5148 | } | |
5149 | { | |
5150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5151 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4); | |
5152 | ||
5153 | wxPyEndAllowThreads(__tstate); | |
5154 | if (PyErr_Occurred()) SWIG_fail; | |
5155 | } | |
5156 | resultobj = PyInt_FromLong((long)result); | |
5157 | return resultobj; | |
5158 | fail: | |
5159 | return NULL; | |
5160 | } | |
5161 | ||
5162 | ||
5163 | static PyObject * Region_swigregister(PyObject *self, PyObject *args) { | |
5164 | PyObject *obj; | |
5165 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5166 | SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj); | |
5167 | Py_INCREF(obj); | |
5168 | return Py_BuildValue((char *)""); | |
5169 | } | |
5170 | static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5171 | PyObject *resultobj; | |
5172 | wxRegion *arg1 = 0 ; | |
5173 | wxRegionIterator *result; | |
5174 | PyObject * obj0 = 0 ; | |
5175 | char *kwnames[] = { | |
5176 | (char *) "region", NULL | |
5177 | }; | |
5178 | ||
5179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail; | |
5180 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5181 | if (arg1 == NULL) { | |
5182 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5183 | } | |
5184 | { | |
5185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5186 | result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1); | |
5187 | ||
5188 | wxPyEndAllowThreads(__tstate); | |
5189 | if (PyErr_Occurred()) SWIG_fail; | |
5190 | } | |
5191 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegionIterator, 1); | |
5192 | return resultobj; | |
5193 | fail: | |
5194 | return NULL; | |
5195 | } | |
5196 | ||
5197 | ||
5198 | static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5199 | PyObject *resultobj; | |
5200 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5201 | PyObject * obj0 = 0 ; | |
5202 | char *kwnames[] = { | |
5203 | (char *) "self", NULL | |
5204 | }; | |
5205 | ||
5206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail; | |
5207 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5208 | { | |
5209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5210 | delete arg1; | |
5211 | ||
5212 | wxPyEndAllowThreads(__tstate); | |
5213 | if (PyErr_Occurred()) SWIG_fail; | |
5214 | } | |
5215 | Py_INCREF(Py_None); resultobj = Py_None; | |
5216 | return resultobj; | |
5217 | fail: | |
5218 | return NULL; | |
5219 | } | |
5220 | ||
5221 | ||
5222 | static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5223 | PyObject *resultobj; | |
5224 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
423f194a | 5225 | int result; |
d14a1e28 RD |
5226 | PyObject * obj0 = 0 ; |
5227 | char *kwnames[] = { | |
5228 | (char *) "self", NULL | |
5229 | }; | |
5230 | ||
5231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail; | |
5232 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5233 | { | |
5234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 5235 | result = (int)(arg1)->GetX(); |
d14a1e28 RD |
5236 | |
5237 | wxPyEndAllowThreads(__tstate); | |
5238 | if (PyErr_Occurred()) SWIG_fail; | |
5239 | } | |
5240 | resultobj = PyInt_FromLong((long)result); | |
5241 | return resultobj; | |
5242 | fail: | |
5243 | return NULL; | |
5244 | } | |
5245 | ||
5246 | ||
5247 | static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5248 | PyObject *resultobj; | |
5249 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
423f194a | 5250 | int result; |
d14a1e28 RD |
5251 | PyObject * obj0 = 0 ; |
5252 | char *kwnames[] = { | |
5253 | (char *) "self", NULL | |
5254 | }; | |
5255 | ||
5256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail; | |
5257 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5258 | { | |
5259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 5260 | result = (int)(arg1)->GetY(); |
d14a1e28 RD |
5261 | |
5262 | wxPyEndAllowThreads(__tstate); | |
5263 | if (PyErr_Occurred()) SWIG_fail; | |
5264 | } | |
5265 | resultobj = PyInt_FromLong((long)result); | |
5266 | return resultobj; | |
5267 | fail: | |
5268 | return NULL; | |
5269 | } | |
5270 | ||
5271 | ||
5272 | static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5273 | PyObject *resultobj; | |
5274 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
423f194a | 5275 | int result; |
d14a1e28 RD |
5276 | PyObject * obj0 = 0 ; |
5277 | char *kwnames[] = { | |
5278 | (char *) "self", NULL | |
5279 | }; | |
5280 | ||
5281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail; | |
5282 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5283 | { | |
5284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 5285 | result = (int)(arg1)->GetW(); |
d14a1e28 RD |
5286 | |
5287 | wxPyEndAllowThreads(__tstate); | |
5288 | if (PyErr_Occurred()) SWIG_fail; | |
5289 | } | |
5290 | resultobj = PyInt_FromLong((long)result); | |
5291 | return resultobj; | |
5292 | fail: | |
5293 | return NULL; | |
5294 | } | |
5295 | ||
5296 | ||
5297 | static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5298 | PyObject *resultobj; | |
5299 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
423f194a | 5300 | int result; |
d14a1e28 RD |
5301 | PyObject * obj0 = 0 ; |
5302 | char *kwnames[] = { | |
5303 | (char *) "self", NULL | |
5304 | }; | |
5305 | ||
5306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail; | |
5307 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5308 | { | |
5309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 5310 | result = (int)(arg1)->GetWidth(); |
d14a1e28 RD |
5311 | |
5312 | wxPyEndAllowThreads(__tstate); | |
5313 | if (PyErr_Occurred()) SWIG_fail; | |
5314 | } | |
5315 | resultobj = PyInt_FromLong((long)result); | |
5316 | return resultobj; | |
5317 | fail: | |
5318 | return NULL; | |
5319 | } | |
5320 | ||
5321 | ||
5322 | static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5323 | PyObject *resultobj; | |
5324 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
423f194a | 5325 | int result; |
d14a1e28 RD |
5326 | PyObject * obj0 = 0 ; |
5327 | char *kwnames[] = { | |
5328 | (char *) "self", NULL | |
5329 | }; | |
5330 | ||
5331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail; | |
5332 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5333 | { | |
5334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 5335 | result = (int)(arg1)->GetH(); |
d14a1e28 RD |
5336 | |
5337 | wxPyEndAllowThreads(__tstate); | |
5338 | if (PyErr_Occurred()) SWIG_fail; | |
5339 | } | |
5340 | resultobj = PyInt_FromLong((long)result); | |
5341 | return resultobj; | |
5342 | fail: | |
5343 | return NULL; | |
5344 | } | |
5345 | ||
5346 | ||
5347 | static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5348 | PyObject *resultobj; | |
5349 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
423f194a | 5350 | int result; |
d14a1e28 RD |
5351 | PyObject * obj0 = 0 ; |
5352 | char *kwnames[] = { | |
5353 | (char *) "self", NULL | |
5354 | }; | |
5355 | ||
5356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail; | |
5357 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5358 | { | |
5359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 5360 | result = (int)(arg1)->GetHeight(); |
d14a1e28 RD |
5361 | |
5362 | wxPyEndAllowThreads(__tstate); | |
5363 | if (PyErr_Occurred()) SWIG_fail; | |
5364 | } | |
5365 | resultobj = PyInt_FromLong((long)result); | |
5366 | return resultobj; | |
5367 | fail: | |
5368 | return NULL; | |
5369 | } | |
5370 | ||
5371 | ||
5372 | static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5373 | PyObject *resultobj; | |
5374 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5375 | wxRect result; | |
5376 | PyObject * obj0 = 0 ; | |
5377 | char *kwnames[] = { | |
5378 | (char *) "self", NULL | |
5379 | }; | |
5380 | ||
5381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail; | |
5382 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5383 | { | |
5384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5385 | result = (arg1)->GetRect(); | |
5386 | ||
5387 | wxPyEndAllowThreads(__tstate); | |
5388 | if (PyErr_Occurred()) SWIG_fail; | |
5389 | } | |
5390 | { | |
5391 | wxRect * resultptr; | |
5392 | resultptr = new wxRect((wxRect &) result); | |
5393 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
5394 | } | |
5395 | return resultobj; | |
5396 | fail: | |
5397 | return NULL; | |
5398 | } | |
5399 | ||
5400 | ||
5401 | static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5402 | PyObject *resultobj; | |
5403 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5404 | bool result; | |
5405 | PyObject * obj0 = 0 ; | |
5406 | char *kwnames[] = { | |
5407 | (char *) "self", NULL | |
5408 | }; | |
5409 | ||
5410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail; | |
5411 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5412 | { | |
5413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5414 | result = (bool)(arg1)->HaveRects(); | |
5415 | ||
5416 | wxPyEndAllowThreads(__tstate); | |
5417 | if (PyErr_Occurred()) SWIG_fail; | |
5418 | } | |
5419 | resultobj = PyInt_FromLong((long)result); | |
5420 | return resultobj; | |
5421 | fail: | |
5422 | return NULL; | |
5423 | } | |
5424 | ||
5425 | ||
5426 | static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5427 | PyObject *resultobj; | |
5428 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5429 | PyObject * obj0 = 0 ; | |
5430 | char *kwnames[] = { | |
5431 | (char *) "self", NULL | |
5432 | }; | |
5433 | ||
5434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail; | |
5435 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5436 | { | |
5437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5438 | (arg1)->Reset(); | |
5439 | ||
5440 | wxPyEndAllowThreads(__tstate); | |
5441 | if (PyErr_Occurred()) SWIG_fail; | |
5442 | } | |
5443 | Py_INCREF(Py_None); resultobj = Py_None; | |
5444 | return resultobj; | |
5445 | fail: | |
5446 | return NULL; | |
5447 | } | |
5448 | ||
5449 | ||
5450 | static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5451 | PyObject *resultobj; | |
5452 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5453 | PyObject * obj0 = 0 ; | |
5454 | char *kwnames[] = { | |
5455 | (char *) "self", NULL | |
5456 | }; | |
5457 | ||
5458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail; | |
5459 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5460 | { | |
5461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5462 | wxRegionIterator_Next(arg1); | |
5463 | ||
5464 | wxPyEndAllowThreads(__tstate); | |
5465 | if (PyErr_Occurred()) SWIG_fail; | |
5466 | } | |
5467 | Py_INCREF(Py_None); resultobj = Py_None; | |
5468 | return resultobj; | |
5469 | fail: | |
5470 | return NULL; | |
5471 | } | |
5472 | ||
5473 | ||
5474 | static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5475 | PyObject *resultobj; | |
5476 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5477 | bool result; | |
5478 | PyObject * obj0 = 0 ; | |
5479 | char *kwnames[] = { | |
5480 | (char *) "self", NULL | |
5481 | }; | |
5482 | ||
5483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail; | |
5484 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5485 | { | |
5486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5487 | result = (bool)wxRegionIterator___nonzero__(arg1); | |
5488 | ||
5489 | wxPyEndAllowThreads(__tstate); | |
5490 | if (PyErr_Occurred()) SWIG_fail; | |
5491 | } | |
5492 | resultobj = PyInt_FromLong((long)result); | |
5493 | return resultobj; | |
5494 | fail: | |
5495 | return NULL; | |
5496 | } | |
5497 | ||
5498 | ||
5499 | static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) { | |
5500 | PyObject *obj; | |
5501 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5502 | SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj); | |
5503 | Py_INCREF(obj); | |
5504 | return Py_BuildValue((char *)""); | |
5505 | } | |
5506 | static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5507 | PyObject *resultobj; | |
5508 | wxNativeFontInfo *result; | |
5509 | char *kwnames[] = { | |
5510 | NULL | |
5511 | }; | |
5512 | ||
5513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail; | |
5514 | { | |
5515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5516 | result = (wxNativeFontInfo *)new wxNativeFontInfo(); | |
5517 | ||
5518 | wxPyEndAllowThreads(__tstate); | |
5519 | if (PyErr_Occurred()) SWIG_fail; | |
5520 | } | |
5521 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 1); | |
5522 | return resultobj; | |
5523 | fail: | |
5524 | return NULL; | |
5525 | } | |
5526 | ||
5527 | ||
5528 | static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5529 | PyObject *resultobj; | |
5530 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5531 | PyObject * obj0 = 0 ; | |
5532 | char *kwnames[] = { | |
5533 | (char *) "self", NULL | |
5534 | }; | |
5535 | ||
5536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail; | |
5537 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5538 | { | |
5539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5540 | delete arg1; | |
5541 | ||
5542 | wxPyEndAllowThreads(__tstate); | |
5543 | if (PyErr_Occurred()) SWIG_fail; | |
5544 | } | |
5545 | Py_INCREF(Py_None); resultobj = Py_None; | |
5546 | return resultobj; | |
5547 | fail: | |
5548 | return NULL; | |
5549 | } | |
5550 | ||
5551 | ||
5552 | static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5553 | PyObject *resultobj; | |
5554 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5555 | PyObject * obj0 = 0 ; | |
5556 | char *kwnames[] = { | |
5557 | (char *) "self", NULL | |
5558 | }; | |
5559 | ||
5560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail; | |
5561 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5562 | { | |
5563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5564 | (arg1)->Init(); | |
5565 | ||
5566 | wxPyEndAllowThreads(__tstate); | |
5567 | if (PyErr_Occurred()) SWIG_fail; | |
5568 | } | |
5569 | Py_INCREF(Py_None); resultobj = Py_None; | |
5570 | return resultobj; | |
5571 | fail: | |
5572 | return NULL; | |
5573 | } | |
5574 | ||
5575 | ||
5576 | static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5577 | PyObject *resultobj; | |
5578 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5579 | wxFont *arg2 = 0 ; | |
5580 | PyObject * obj0 = 0 ; | |
5581 | PyObject * obj1 = 0 ; | |
5582 | char *kwnames[] = { | |
5583 | (char *) "self",(char *) "font", NULL | |
5584 | }; | |
5585 | ||
5586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail; | |
5587 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5588 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5589 | if (arg2 == NULL) { | |
5590 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5591 | } | |
5592 | { | |
5593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5594 | (arg1)->InitFromFont((wxFont const &)*arg2); | |
5595 | ||
5596 | wxPyEndAllowThreads(__tstate); | |
5597 | if (PyErr_Occurred()) SWIG_fail; | |
5598 | } | |
5599 | Py_INCREF(Py_None); resultobj = Py_None; | |
5600 | return resultobj; | |
5601 | fail: | |
5602 | return NULL; | |
5603 | } | |
5604 | ||
5605 | ||
5606 | static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5607 | PyObject *resultobj; | |
5608 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5609 | int result; | |
5610 | PyObject * obj0 = 0 ; | |
5611 | char *kwnames[] = { | |
5612 | (char *) "self", NULL | |
5613 | }; | |
5614 | ||
5615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail; | |
5616 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5617 | { | |
5618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5619 | result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize(); | |
5620 | ||
5621 | wxPyEndAllowThreads(__tstate); | |
5622 | if (PyErr_Occurred()) SWIG_fail; | |
5623 | } | |
5624 | resultobj = PyInt_FromLong((long)result); | |
5625 | return resultobj; | |
5626 | fail: | |
5627 | return NULL; | |
5628 | } | |
5629 | ||
5630 | ||
5631 | static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5632 | PyObject *resultobj; | |
5633 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5634 | int result; | |
5635 | PyObject * obj0 = 0 ; | |
5636 | char *kwnames[] = { | |
5637 | (char *) "self", NULL | |
5638 | }; | |
5639 | ||
5640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail; | |
5641 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5642 | { | |
5643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5644 | result = (int)((wxNativeFontInfo const *)arg1)->GetStyle(); | |
5645 | ||
5646 | wxPyEndAllowThreads(__tstate); | |
5647 | if (PyErr_Occurred()) SWIG_fail; | |
5648 | } | |
5649 | resultobj = PyInt_FromLong((long)result); | |
5650 | return resultobj; | |
5651 | fail: | |
5652 | return NULL; | |
5653 | } | |
5654 | ||
5655 | ||
5656 | static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5657 | PyObject *resultobj; | |
5658 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5659 | int result; | |
5660 | PyObject * obj0 = 0 ; | |
5661 | char *kwnames[] = { | |
5662 | (char *) "self", NULL | |
5663 | }; | |
5664 | ||
5665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail; | |
5666 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5667 | { | |
5668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5669 | result = (int)((wxNativeFontInfo const *)arg1)->GetWeight(); | |
5670 | ||
5671 | wxPyEndAllowThreads(__tstate); | |
5672 | if (PyErr_Occurred()) SWIG_fail; | |
5673 | } | |
5674 | resultobj = PyInt_FromLong((long)result); | |
5675 | return resultobj; | |
5676 | fail: | |
5677 | return NULL; | |
5678 | } | |
5679 | ||
5680 | ||
5681 | static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5682 | PyObject *resultobj; | |
5683 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5684 | bool result; | |
5685 | PyObject * obj0 = 0 ; | |
5686 | char *kwnames[] = { | |
5687 | (char *) "self", NULL | |
5688 | }; | |
5689 | ||
5690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail; | |
5691 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5692 | { | |
5693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5694 | result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined(); | |
5695 | ||
5696 | wxPyEndAllowThreads(__tstate); | |
5697 | if (PyErr_Occurred()) SWIG_fail; | |
5698 | } | |
5699 | resultobj = PyInt_FromLong((long)result); | |
5700 | return resultobj; | |
5701 | fail: | |
5702 | return NULL; | |
5703 | } | |
5704 | ||
5705 | ||
5706 | static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5707 | PyObject *resultobj; | |
5708 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5709 | wxString result; | |
5710 | PyObject * obj0 = 0 ; | |
5711 | char *kwnames[] = { | |
5712 | (char *) "self", NULL | |
5713 | }; | |
5714 | ||
5715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail; | |
5716 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5717 | { | |
5718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5719 | result = ((wxNativeFontInfo const *)arg1)->GetFaceName(); | |
5720 | ||
5721 | wxPyEndAllowThreads(__tstate); | |
5722 | if (PyErr_Occurred()) SWIG_fail; | |
5723 | } | |
5724 | { | |
5725 | #if wxUSE_UNICODE | |
5726 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5727 | #else | |
5728 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5729 | #endif | |
5730 | } | |
5731 | return resultobj; | |
5732 | fail: | |
5733 | return NULL; | |
5734 | } | |
5735 | ||
5736 | ||
5737 | static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5738 | PyObject *resultobj; | |
5739 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5740 | int result; | |
5741 | PyObject * obj0 = 0 ; | |
5742 | char *kwnames[] = { | |
5743 | (char *) "self", NULL | |
5744 | }; | |
5745 | ||
5746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail; | |
5747 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5748 | { | |
5749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5750 | result = (int)((wxNativeFontInfo const *)arg1)->GetFamily(); | |
5751 | ||
5752 | wxPyEndAllowThreads(__tstate); | |
5753 | if (PyErr_Occurred()) SWIG_fail; | |
5754 | } | |
5755 | resultobj = PyInt_FromLong((long)result); | |
5756 | return resultobj; | |
5757 | fail: | |
5758 | return NULL; | |
5759 | } | |
5760 | ||
5761 | ||
5762 | static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5763 | PyObject *resultobj; | |
5764 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5765 | int result; | |
5766 | PyObject * obj0 = 0 ; | |
5767 | char *kwnames[] = { | |
5768 | (char *) "self", NULL | |
5769 | }; | |
5770 | ||
5771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail; | |
5772 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5773 | { | |
5774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5775 | result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding(); | |
5776 | ||
5777 | wxPyEndAllowThreads(__tstate); | |
5778 | if (PyErr_Occurred()) SWIG_fail; | |
5779 | } | |
5780 | resultobj = PyInt_FromLong((long)result); | |
5781 | return resultobj; | |
5782 | fail: | |
5783 | return NULL; | |
5784 | } | |
5785 | ||
5786 | ||
5787 | static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5788 | PyObject *resultobj; | |
5789 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5790 | int arg2 ; | |
5791 | PyObject * obj0 = 0 ; | |
5792 | char *kwnames[] = { | |
5793 | (char *) "self",(char *) "pointsize", NULL | |
5794 | }; | |
5795 | ||
5796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetPointSize",kwnames,&obj0,&arg2)) goto fail; | |
5797 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5798 | { | |
5799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5800 | (arg1)->SetPointSize(arg2); | |
5801 | ||
5802 | wxPyEndAllowThreads(__tstate); | |
5803 | if (PyErr_Occurred()) SWIG_fail; | |
5804 | } | |
5805 | Py_INCREF(Py_None); resultobj = Py_None; | |
5806 | return resultobj; | |
5807 | fail: | |
5808 | return NULL; | |
5809 | } | |
5810 | ||
5811 | ||
5812 | static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5813 | PyObject *resultobj; | |
5814 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5815 | int arg2 ; | |
5816 | PyObject * obj0 = 0 ; | |
5817 | char *kwnames[] = { | |
5818 | (char *) "self",(char *) "style", NULL | |
5819 | }; | |
5820 | ||
5821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetStyle",kwnames,&obj0,&arg2)) goto fail; | |
5822 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5823 | { | |
5824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5825 | (arg1)->SetStyle((wxFontStyle )arg2); | |
5826 | ||
5827 | wxPyEndAllowThreads(__tstate); | |
5828 | if (PyErr_Occurred()) SWIG_fail; | |
5829 | } | |
5830 | Py_INCREF(Py_None); resultobj = Py_None; | |
5831 | return resultobj; | |
5832 | fail: | |
5833 | return NULL; | |
5834 | } | |
5835 | ||
5836 | ||
5837 | static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5838 | PyObject *resultobj; | |
5839 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5840 | int arg2 ; | |
5841 | PyObject * obj0 = 0 ; | |
5842 | char *kwnames[] = { | |
5843 | (char *) "self",(char *) "weight", NULL | |
5844 | }; | |
5845 | ||
5846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetWeight",kwnames,&obj0,&arg2)) goto fail; | |
5847 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5848 | { | |
5849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5850 | (arg1)->SetWeight((wxFontWeight )arg2); | |
5851 | ||
5852 | wxPyEndAllowThreads(__tstate); | |
5853 | if (PyErr_Occurred()) SWIG_fail; | |
5854 | } | |
5855 | Py_INCREF(Py_None); resultobj = Py_None; | |
5856 | return resultobj; | |
5857 | fail: | |
5858 | return NULL; | |
5859 | } | |
5860 | ||
5861 | ||
5862 | static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5863 | PyObject *resultobj; | |
5864 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5865 | bool arg2 ; | |
5866 | PyObject * obj0 = 0 ; | |
5867 | PyObject * obj1 = 0 ; | |
5868 | char *kwnames[] = { | |
5869 | (char *) "self",(char *) "underlined", NULL | |
5870 | }; | |
5871 | ||
5872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; | |
5873 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5874 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
5875 | if (PyErr_Occurred()) SWIG_fail; | |
5876 | { | |
5877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5878 | (arg1)->SetUnderlined(arg2); | |
5879 | ||
5880 | wxPyEndAllowThreads(__tstate); | |
5881 | if (PyErr_Occurred()) SWIG_fail; | |
5882 | } | |
5883 | Py_INCREF(Py_None); resultobj = Py_None; | |
5884 | return resultobj; | |
5885 | fail: | |
5886 | return NULL; | |
5887 | } | |
5888 | ||
5889 | ||
5890 | static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5891 | PyObject *resultobj; | |
5892 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5893 | wxString arg2 ; | |
d14a1e28 RD |
5894 | PyObject * obj0 = 0 ; |
5895 | PyObject * obj1 = 0 ; | |
5896 | char *kwnames[] = { | |
5897 | (char *) "self",(char *) "facename", NULL | |
5898 | }; | |
5899 | ||
5900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail; | |
5901 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
423f194a RD |
5902 | { |
5903 | wxString* sptr = wxString_in_helper(obj1); | |
5904 | if (sptr == NULL) SWIG_fail; | |
5905 | arg2 = *sptr; | |
5906 | delete sptr; | |
5907 | } | |
d14a1e28 RD |
5908 | { |
5909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5910 | (arg1)->SetFaceName(arg2); | |
5911 | ||
5912 | wxPyEndAllowThreads(__tstate); | |
5913 | if (PyErr_Occurred()) SWIG_fail; | |
5914 | } | |
5915 | Py_INCREF(Py_None); resultobj = Py_None; | |
5916 | return resultobj; | |
5917 | fail: | |
5918 | return NULL; | |
5919 | } | |
5920 | ||
5921 | ||
5922 | static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5923 | PyObject *resultobj; | |
5924 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5925 | int arg2 ; | |
5926 | PyObject * obj0 = 0 ; | |
5927 | char *kwnames[] = { | |
5928 | (char *) "self",(char *) "family", NULL | |
5929 | }; | |
5930 | ||
5931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetFamily",kwnames,&obj0,&arg2)) goto fail; | |
5932 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5933 | { | |
5934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5935 | (arg1)->SetFamily((wxFontFamily )arg2); | |
5936 | ||
5937 | wxPyEndAllowThreads(__tstate); | |
5938 | if (PyErr_Occurred()) SWIG_fail; | |
5939 | } | |
5940 | Py_INCREF(Py_None); resultobj = Py_None; | |
5941 | return resultobj; | |
5942 | fail: | |
5943 | return NULL; | |
5944 | } | |
5945 | ||
5946 | ||
5947 | static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5948 | PyObject *resultobj; | |
5949 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5950 | int arg2 ; | |
5951 | PyObject * obj0 = 0 ; | |
5952 | char *kwnames[] = { | |
5953 | (char *) "self",(char *) "encoding", NULL | |
5954 | }; | |
5955 | ||
5956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetEncoding",kwnames,&obj0,&arg2)) 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 | (arg1)->SetEncoding((wxFontEncoding )arg2); | |
5961 | ||
5962 | wxPyEndAllowThreads(__tstate); | |
5963 | if (PyErr_Occurred()) SWIG_fail; | |
5964 | } | |
5965 | Py_INCREF(Py_None); resultobj = Py_None; | |
5966 | return resultobj; | |
5967 | fail: | |
5968 | return NULL; | |
5969 | } | |
5970 | ||
5971 | ||
5972 | static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5973 | PyObject *resultobj; | |
5974 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5975 | wxString *arg2 = 0 ; | |
5976 | bool result; | |
423f194a | 5977 | bool temp2 = False ; |
d14a1e28 RD |
5978 | PyObject * obj0 = 0 ; |
5979 | PyObject * obj1 = 0 ; | |
5980 | char *kwnames[] = { | |
5981 | (char *) "self",(char *) "s", NULL | |
5982 | }; | |
5983 | ||
5984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail; | |
5985 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5986 | { | |
5987 | arg2 = wxString_in_helper(obj1); | |
5988 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5989 | temp2 = True; |
d14a1e28 RD |
5990 | } |
5991 | { | |
5992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5993 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
5994 | ||
5995 | wxPyEndAllowThreads(__tstate); | |
5996 | if (PyErr_Occurred()) SWIG_fail; | |
5997 | } | |
5998 | resultobj = PyInt_FromLong((long)result); | |
5999 | { | |
6000 | if (temp2) | |
6001 | delete arg2; | |
6002 | } | |
6003 | return resultobj; | |
6004 | fail: | |
6005 | { | |
6006 | if (temp2) | |
6007 | delete arg2; | |
6008 | } | |
6009 | return NULL; | |
6010 | } | |
6011 | ||
6012 | ||
6013 | static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6014 | PyObject *resultobj; | |
6015 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6016 | wxString result; | |
6017 | PyObject * obj0 = 0 ; | |
6018 | char *kwnames[] = { | |
6019 | (char *) "self", NULL | |
6020 | }; | |
6021 | ||
6022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail; | |
6023 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6024 | { | |
6025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6026 | result = ((wxNativeFontInfo const *)arg1)->ToString(); | |
6027 | ||
6028 | wxPyEndAllowThreads(__tstate); | |
6029 | if (PyErr_Occurred()) SWIG_fail; | |
6030 | } | |
6031 | { | |
6032 | #if wxUSE_UNICODE | |
6033 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6034 | #else | |
6035 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6036 | #endif | |
6037 | } | |
6038 | return resultobj; | |
6039 | fail: | |
6040 | return NULL; | |
6041 | } | |
6042 | ||
6043 | ||
6044 | static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6045 | PyObject *resultobj; | |
6046 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6047 | wxString result; | |
6048 | PyObject * obj0 = 0 ; | |
6049 | char *kwnames[] = { | |
6050 | (char *) "self", NULL | |
6051 | }; | |
6052 | ||
6053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail; | |
6054 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6055 | { | |
6056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6057 | result = wxNativeFontInfo___str__(arg1); | |
6058 | ||
6059 | wxPyEndAllowThreads(__tstate); | |
6060 | if (PyErr_Occurred()) SWIG_fail; | |
6061 | } | |
6062 | { | |
6063 | #if wxUSE_UNICODE | |
6064 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6065 | #else | |
6066 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6067 | #endif | |
6068 | } | |
6069 | return resultobj; | |
6070 | fail: | |
6071 | return NULL; | |
6072 | } | |
6073 | ||
6074 | ||
6075 | static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6076 | PyObject *resultobj; | |
6077 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6078 | wxString *arg2 = 0 ; | |
6079 | bool result; | |
423f194a | 6080 | bool temp2 = False ; |
d14a1e28 RD |
6081 | PyObject * obj0 = 0 ; |
6082 | PyObject * obj1 = 0 ; | |
6083 | char *kwnames[] = { | |
6084 | (char *) "self",(char *) "s", NULL | |
6085 | }; | |
6086 | ||
6087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail; | |
6088 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6089 | { | |
6090 | arg2 = wxString_in_helper(obj1); | |
6091 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6092 | temp2 = True; |
d14a1e28 RD |
6093 | } |
6094 | { | |
6095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6096 | result = (bool)(arg1)->FromUserString((wxString const &)*arg2); | |
6097 | ||
6098 | wxPyEndAllowThreads(__tstate); | |
6099 | if (PyErr_Occurred()) SWIG_fail; | |
6100 | } | |
6101 | resultobj = PyInt_FromLong((long)result); | |
6102 | { | |
6103 | if (temp2) | |
6104 | delete arg2; | |
6105 | } | |
6106 | return resultobj; | |
6107 | fail: | |
6108 | { | |
6109 | if (temp2) | |
6110 | delete arg2; | |
6111 | } | |
6112 | return NULL; | |
6113 | } | |
6114 | ||
6115 | ||
6116 | static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6117 | PyObject *resultobj; | |
6118 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6119 | wxString result; | |
6120 | PyObject * obj0 = 0 ; | |
6121 | char *kwnames[] = { | |
6122 | (char *) "self", NULL | |
6123 | }; | |
6124 | ||
6125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail; | |
6126 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6127 | { | |
6128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6129 | result = ((wxNativeFontInfo const *)arg1)->ToUserString(); | |
6130 | ||
6131 | wxPyEndAllowThreads(__tstate); | |
6132 | if (PyErr_Occurred()) SWIG_fail; | |
6133 | } | |
6134 | { | |
6135 | #if wxUSE_UNICODE | |
6136 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6137 | #else | |
6138 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6139 | #endif | |
6140 | } | |
6141 | return resultobj; | |
6142 | fail: | |
6143 | return NULL; | |
6144 | } | |
6145 | ||
6146 | ||
6147 | static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) { | |
6148 | PyObject *obj; | |
6149 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6150 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj); | |
6151 | Py_INCREF(obj); | |
6152 | return Py_BuildValue((char *)""); | |
6153 | } | |
6154 | static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6155 | PyObject *resultobj; | |
6156 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
d03fd34d | 6157 | wxString *arg2 = (wxString *) 0 ; |
d14a1e28 RD |
6158 | PyObject * obj0 = 0 ; |
6159 | PyObject * obj1 = 0 ; | |
6160 | char *kwnames[] = { | |
6161 | (char *) "self",(char *) "facename", NULL | |
6162 | }; | |
6163 | ||
6164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail; | |
6165 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d03fd34d RD |
6166 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6167 | if (arg1) (arg1)->facename = *arg2; | |
d14a1e28 RD |
6168 | |
6169 | Py_INCREF(Py_None); resultobj = Py_None; | |
6170 | return resultobj; | |
6171 | fail: | |
6172 | return NULL; | |
6173 | } | |
6174 | ||
6175 | ||
6176 | static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6177 | PyObject *resultobj; | |
6178 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
d03fd34d | 6179 | wxString *result; |
d14a1e28 RD |
6180 | PyObject * obj0 = 0 ; |
6181 | char *kwnames[] = { | |
6182 | (char *) "self", NULL | |
6183 | }; | |
6184 | ||
6185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail; | |
6186 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d03fd34d | 6187 | result = (wxString *)& ((arg1)->facename); |
d14a1e28 RD |
6188 | |
6189 | { | |
6190 | #if wxUSE_UNICODE | |
d03fd34d | 6191 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 6192 | #else |
d03fd34d | 6193 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
6194 | #endif |
6195 | } | |
6196 | return resultobj; | |
6197 | fail: | |
6198 | return NULL; | |
6199 | } | |
6200 | ||
6201 | ||
6202 | static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6203 | PyObject *resultobj; | |
6204 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6205 | int arg2 ; | |
6206 | PyObject * obj0 = 0 ; | |
6207 | char *kwnames[] = { | |
6208 | (char *) "self",(char *) "encoding", NULL | |
6209 | }; | |
6210 | ||
6211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeEncodingInfo_encoding_set",kwnames,&obj0,&arg2)) goto fail; | |
6212 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6213 | if (arg1) (arg1)->encoding = (wxFontEncoding )arg2; | |
6214 | ||
6215 | Py_INCREF(Py_None); resultobj = Py_None; | |
6216 | return resultobj; | |
6217 | fail: | |
6218 | return NULL; | |
6219 | } | |
6220 | ||
6221 | ||
6222 | static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6223 | PyObject *resultobj; | |
6224 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6225 | int result; | |
6226 | PyObject * obj0 = 0 ; | |
6227 | char *kwnames[] = { | |
6228 | (char *) "self", NULL | |
6229 | }; | |
6230 | ||
6231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail; | |
6232 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6233 | result = (int) ((arg1)->encoding); | |
6234 | ||
6235 | resultobj = PyInt_FromLong((long)result); | |
6236 | return resultobj; | |
6237 | fail: | |
6238 | return NULL; | |
6239 | } | |
6240 | ||
6241 | ||
6242 | static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6243 | PyObject *resultobj; | |
6244 | wxNativeEncodingInfo *result; | |
6245 | char *kwnames[] = { | |
6246 | NULL | |
6247 | }; | |
6248 | ||
6249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail; | |
6250 | { | |
6251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6252 | result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo(); | |
6253 | ||
6254 | wxPyEndAllowThreads(__tstate); | |
6255 | if (PyErr_Occurred()) SWIG_fail; | |
6256 | } | |
6257 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 1); | |
6258 | return resultobj; | |
6259 | fail: | |
6260 | return NULL; | |
6261 | } | |
6262 | ||
6263 | ||
6264 | static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6265 | PyObject *resultobj; | |
6266 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6267 | PyObject * obj0 = 0 ; | |
6268 | char *kwnames[] = { | |
6269 | (char *) "self", NULL | |
6270 | }; | |
6271 | ||
6272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail; | |
6273 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6274 | { | |
6275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6276 | delete arg1; | |
6277 | ||
6278 | wxPyEndAllowThreads(__tstate); | |
6279 | if (PyErr_Occurred()) SWIG_fail; | |
6280 | } | |
6281 | Py_INCREF(Py_None); resultobj = Py_None; | |
6282 | return resultobj; | |
6283 | fail: | |
6284 | return NULL; | |
6285 | } | |
6286 | ||
6287 | ||
6288 | static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6289 | PyObject *resultobj; | |
6290 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6291 | wxString *arg2 = 0 ; | |
6292 | bool result; | |
423f194a | 6293 | bool temp2 = False ; |
d14a1e28 RD |
6294 | PyObject * obj0 = 0 ; |
6295 | PyObject * obj1 = 0 ; | |
6296 | char *kwnames[] = { | |
6297 | (char *) "self",(char *) "s", NULL | |
6298 | }; | |
6299 | ||
6300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail; | |
6301 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6302 | { | |
6303 | arg2 = wxString_in_helper(obj1); | |
6304 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6305 | temp2 = True; |
d14a1e28 RD |
6306 | } |
6307 | { | |
6308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6309 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
6310 | ||
6311 | wxPyEndAllowThreads(__tstate); | |
6312 | if (PyErr_Occurred()) SWIG_fail; | |
6313 | } | |
6314 | resultobj = PyInt_FromLong((long)result); | |
6315 | { | |
6316 | if (temp2) | |
6317 | delete arg2; | |
6318 | } | |
6319 | return resultobj; | |
6320 | fail: | |
6321 | { | |
6322 | if (temp2) | |
6323 | delete arg2; | |
6324 | } | |
6325 | return NULL; | |
6326 | } | |
6327 | ||
6328 | ||
6329 | static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6330 | PyObject *resultobj; | |
6331 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6332 | wxString result; | |
6333 | PyObject * obj0 = 0 ; | |
6334 | char *kwnames[] = { | |
6335 | (char *) "self", NULL | |
6336 | }; | |
6337 | ||
6338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail; | |
6339 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6340 | { | |
6341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6342 | result = ((wxNativeEncodingInfo const *)arg1)->ToString(); | |
6343 | ||
6344 | wxPyEndAllowThreads(__tstate); | |
6345 | if (PyErr_Occurred()) SWIG_fail; | |
6346 | } | |
6347 | { | |
6348 | #if wxUSE_UNICODE | |
6349 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6350 | #else | |
6351 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6352 | #endif | |
6353 | } | |
6354 | return resultobj; | |
6355 | fail: | |
6356 | return NULL; | |
6357 | } | |
6358 | ||
6359 | ||
6360 | static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) { | |
6361 | PyObject *obj; | |
6362 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6363 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj); | |
6364 | Py_INCREF(obj); | |
6365 | return Py_BuildValue((char *)""); | |
6366 | } | |
6367 | static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6368 | PyObject *resultobj; | |
6369 | int arg1 ; | |
6370 | wxNativeEncodingInfo *result; | |
6371 | char *kwnames[] = { | |
6372 | (char *) "encoding", NULL | |
6373 | }; | |
6374 | ||
6375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:GetNativeFontEncoding",kwnames,&arg1)) goto fail; | |
6376 | { | |
6377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6378 | result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1); | |
6379 | ||
6380 | wxPyEndAllowThreads(__tstate); | |
6381 | if (PyErr_Occurred()) SWIG_fail; | |
6382 | } | |
6383 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 0); | |
6384 | return resultobj; | |
6385 | fail: | |
6386 | return NULL; | |
6387 | } | |
6388 | ||
6389 | ||
6390 | static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6391 | PyObject *resultobj; | |
6392 | wxNativeEncodingInfo *arg1 = 0 ; | |
6393 | bool result; | |
6394 | PyObject * obj0 = 0 ; | |
6395 | char *kwnames[] = { | |
6396 | (char *) "info", NULL | |
6397 | }; | |
6398 | ||
6399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail; | |
6400 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6401 | if (arg1 == NULL) { | |
6402 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6403 | } | |
6404 | { | |
6405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6406 | result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1); | |
6407 | ||
6408 | wxPyEndAllowThreads(__tstate); | |
6409 | if (PyErr_Occurred()) SWIG_fail; | |
6410 | } | |
6411 | resultobj = PyInt_FromLong((long)result); | |
6412 | return resultobj; | |
6413 | fail: | |
6414 | return NULL; | |
6415 | } | |
6416 | ||
6417 | ||
6418 | static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6419 | PyObject *resultobj; | |
6420 | wxFontMapper *result; | |
6421 | char *kwnames[] = { | |
6422 | NULL | |
6423 | }; | |
6424 | ||
6425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail; | |
6426 | { | |
6427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6428 | result = (wxFontMapper *)new wxFontMapper(); | |
6429 | ||
6430 | wxPyEndAllowThreads(__tstate); | |
6431 | if (PyErr_Occurred()) SWIG_fail; | |
6432 | } | |
6433 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 1); | |
6434 | return resultobj; | |
6435 | fail: | |
6436 | return NULL; | |
6437 | } | |
6438 | ||
6439 | ||
6440 | static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6441 | PyObject *resultobj; | |
6442 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6443 | PyObject * obj0 = 0 ; | |
6444 | char *kwnames[] = { | |
6445 | (char *) "self", NULL | |
6446 | }; | |
6447 | ||
6448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail; | |
6449 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6450 | { | |
6451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6452 | delete arg1; | |
6453 | ||
6454 | wxPyEndAllowThreads(__tstate); | |
6455 | if (PyErr_Occurred()) SWIG_fail; | |
6456 | } | |
6457 | Py_INCREF(Py_None); resultobj = Py_None; | |
6458 | return resultobj; | |
6459 | fail: | |
6460 | return NULL; | |
6461 | } | |
6462 | ||
6463 | ||
6464 | static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6465 | PyObject *resultobj; | |
6466 | wxFontMapper *result; | |
6467 | char *kwnames[] = { | |
6468 | NULL | |
6469 | }; | |
6470 | ||
6471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail; | |
6472 | { | |
6473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6474 | result = (wxFontMapper *)wxFontMapper::Get(); | |
6475 | ||
6476 | wxPyEndAllowThreads(__tstate); | |
6477 | if (PyErr_Occurred()) SWIG_fail; | |
6478 | } | |
6479 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0); | |
6480 | return resultobj; | |
6481 | fail: | |
6482 | return NULL; | |
6483 | } | |
6484 | ||
6485 | ||
6486 | static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6487 | PyObject *resultobj; | |
6488 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6489 | wxFontMapper *result; | |
6490 | PyObject * obj0 = 0 ; | |
6491 | char *kwnames[] = { | |
6492 | (char *) "mapper", NULL | |
6493 | }; | |
6494 | ||
6495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail; | |
6496 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6497 | { | |
6498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6499 | result = (wxFontMapper *)wxFontMapper::Set(arg1); | |
6500 | ||
6501 | wxPyEndAllowThreads(__tstate); | |
6502 | if (PyErr_Occurred()) SWIG_fail; | |
6503 | } | |
6504 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0); | |
6505 | return resultobj; | |
6506 | fail: | |
6507 | return NULL; | |
6508 | } | |
6509 | ||
6510 | ||
6511 | static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6512 | PyObject *resultobj; | |
6513 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6514 | wxString *arg2 = 0 ; | |
423f194a | 6515 | bool arg3 = (bool) True ; |
d14a1e28 | 6516 | int result; |
423f194a | 6517 | bool temp2 = False ; |
d14a1e28 RD |
6518 | PyObject * obj0 = 0 ; |
6519 | PyObject * obj1 = 0 ; | |
6520 | PyObject * obj2 = 0 ; | |
6521 | char *kwnames[] = { | |
6522 | (char *) "self",(char *) "charset",(char *) "interactive", NULL | |
6523 | }; | |
6524 | ||
6525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6526 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6527 | { | |
6528 | arg2 = wxString_in_helper(obj1); | |
6529 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6530 | temp2 = True; |
d14a1e28 RD |
6531 | } |
6532 | if (obj2) { | |
6533 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
6534 | if (PyErr_Occurred()) SWIG_fail; | |
6535 | } | |
6536 | { | |
6537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6538 | result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3); | |
6539 | ||
6540 | wxPyEndAllowThreads(__tstate); | |
6541 | if (PyErr_Occurred()) SWIG_fail; | |
6542 | } | |
6543 | resultobj = PyInt_FromLong((long)result); | |
6544 | { | |
6545 | if (temp2) | |
6546 | delete arg2; | |
6547 | } | |
6548 | return resultobj; | |
6549 | fail: | |
6550 | { | |
6551 | if (temp2) | |
6552 | delete arg2; | |
6553 | } | |
6554 | return NULL; | |
6555 | } | |
6556 | ||
6557 | ||
6558 | static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6559 | PyObject *resultobj; | |
6560 | size_t result; | |
6561 | char *kwnames[] = { | |
6562 | NULL | |
6563 | }; | |
6564 | ||
6565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail; | |
6566 | { | |
6567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6568 | result = (size_t)wxFontMapper::GetSupportedEncodingsCount(); | |
6569 | ||
6570 | wxPyEndAllowThreads(__tstate); | |
6571 | if (PyErr_Occurred()) SWIG_fail; | |
6572 | } | |
6573 | resultobj = PyInt_FromLong((long)result); | |
6574 | return resultobj; | |
6575 | fail: | |
6576 | return NULL; | |
6577 | } | |
6578 | ||
6579 | ||
6580 | static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6581 | PyObject *resultobj; | |
6582 | size_t arg1 ; | |
6583 | int result; | |
6584 | PyObject * obj0 = 0 ; | |
6585 | char *kwnames[] = { | |
6586 | (char *) "n", NULL | |
6587 | }; | |
6588 | ||
6589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail; | |
6590 | arg1 = (size_t) PyInt_AsLong(obj0); | |
6591 | if (PyErr_Occurred()) SWIG_fail; | |
6592 | { | |
6593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6594 | result = (int)wxFontMapper::GetEncoding(arg1); | |
6595 | ||
6596 | wxPyEndAllowThreads(__tstate); | |
6597 | if (PyErr_Occurred()) SWIG_fail; | |
6598 | } | |
6599 | resultobj = PyInt_FromLong((long)result); | |
6600 | return resultobj; | |
6601 | fail: | |
6602 | return NULL; | |
6603 | } | |
6604 | ||
6605 | ||
6606 | static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6607 | PyObject *resultobj; | |
6608 | int arg1 ; | |
6609 | wxString result; | |
6610 | char *kwnames[] = { | |
6611 | (char *) "encoding", NULL | |
6612 | }; | |
6613 | ||
6614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:FontMapper_GetEncodingName",kwnames,&arg1)) goto fail; | |
6615 | { | |
6616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6617 | result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1); | |
6618 | ||
6619 | wxPyEndAllowThreads(__tstate); | |
6620 | if (PyErr_Occurred()) SWIG_fail; | |
6621 | } | |
6622 | { | |
6623 | #if wxUSE_UNICODE | |
6624 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6625 | #else | |
6626 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6627 | #endif | |
6628 | } | |
6629 | return resultobj; | |
6630 | fail: | |
6631 | return NULL; | |
6632 | } | |
6633 | ||
6634 | ||
6635 | static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6636 | PyObject *resultobj; | |
6637 | int arg1 ; | |
6638 | wxString result; | |
6639 | char *kwnames[] = { | |
6640 | (char *) "encoding", NULL | |
6641 | }; | |
6642 | ||
6643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:FontMapper_GetEncodingDescription",kwnames,&arg1)) goto fail; | |
6644 | { | |
6645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6646 | result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1); | |
6647 | ||
6648 | wxPyEndAllowThreads(__tstate); | |
6649 | if (PyErr_Occurred()) SWIG_fail; | |
6650 | } | |
6651 | { | |
6652 | #if wxUSE_UNICODE | |
6653 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6654 | #else | |
6655 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6656 | #endif | |
6657 | } | |
6658 | return resultobj; | |
6659 | fail: | |
6660 | return NULL; | |
6661 | } | |
6662 | ||
6663 | ||
6664 | static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6665 | PyObject *resultobj; | |
6666 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6667 | wxConfigBase *arg2 = (wxConfigBase *) 0 ; | |
6668 | PyObject * obj0 = 0 ; | |
6669 | PyObject * obj1 = 0 ; | |
6670 | char *kwnames[] = { | |
6671 | (char *) "self",(char *) "config", NULL | |
6672 | }; | |
6673 | ||
6674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail; | |
6675 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6676 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6677 | { | |
6678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6679 | (arg1)->SetConfig(arg2); | |
6680 | ||
6681 | wxPyEndAllowThreads(__tstate); | |
6682 | if (PyErr_Occurred()) SWIG_fail; | |
6683 | } | |
6684 | Py_INCREF(Py_None); resultobj = Py_None; | |
6685 | return resultobj; | |
6686 | fail: | |
6687 | return NULL; | |
6688 | } | |
6689 | ||
6690 | ||
6691 | static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6692 | PyObject *resultobj; | |
6693 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6694 | wxString *arg2 = 0 ; | |
423f194a | 6695 | bool temp2 = False ; |
d14a1e28 RD |
6696 | PyObject * obj0 = 0 ; |
6697 | PyObject * obj1 = 0 ; | |
6698 | char *kwnames[] = { | |
6699 | (char *) "self",(char *) "prefix", NULL | |
6700 | }; | |
6701 | ||
6702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail; | |
6703 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6704 | { | |
6705 | arg2 = wxString_in_helper(obj1); | |
6706 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6707 | temp2 = True; |
d14a1e28 RD |
6708 | } |
6709 | { | |
6710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6711 | (arg1)->SetConfigPath((wxString const &)*arg2); | |
6712 | ||
6713 | wxPyEndAllowThreads(__tstate); | |
6714 | if (PyErr_Occurred()) SWIG_fail; | |
6715 | } | |
6716 | Py_INCREF(Py_None); resultobj = Py_None; | |
6717 | { | |
6718 | if (temp2) | |
6719 | delete arg2; | |
6720 | } | |
6721 | return resultobj; | |
6722 | fail: | |
6723 | { | |
6724 | if (temp2) | |
6725 | delete arg2; | |
6726 | } | |
6727 | return NULL; | |
6728 | } | |
6729 | ||
6730 | ||
6731 | static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6732 | PyObject *resultobj; | |
6733 | wxString result; | |
6734 | char *kwnames[] = { | |
6735 | NULL | |
6736 | }; | |
6737 | ||
6738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail; | |
6739 | { | |
6740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6741 | result = wxFontMapper::GetDefaultConfigPath(); | |
6742 | ||
6743 | wxPyEndAllowThreads(__tstate); | |
6744 | if (PyErr_Occurred()) SWIG_fail; | |
6745 | } | |
6746 | { | |
6747 | #if wxUSE_UNICODE | |
6748 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6749 | #else | |
6750 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6751 | #endif | |
6752 | } | |
6753 | return resultobj; | |
6754 | fail: | |
6755 | return NULL; | |
6756 | } | |
6757 | ||
6758 | ||
6759 | static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6760 | PyObject *resultobj; | |
6761 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6762 | int arg2 ; | |
6763 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
6764 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
423f194a | 6765 | bool arg4 = (bool) True ; |
d14a1e28 | 6766 | PyObject *result; |
423f194a | 6767 | bool temp3 = False ; |
d14a1e28 RD |
6768 | PyObject * obj0 = 0 ; |
6769 | PyObject * obj2 = 0 ; | |
6770 | PyObject * obj3 = 0 ; | |
6771 | char *kwnames[] = { | |
6772 | (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL | |
6773 | }; | |
6774 | ||
6775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&arg2,&obj2,&obj3)) goto fail; | |
6776 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6777 | if (obj2) { | |
6778 | { | |
6779 | arg3 = wxString_in_helper(obj2); | |
6780 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 6781 | temp3 = True; |
d14a1e28 RD |
6782 | } |
6783 | } | |
6784 | if (obj3) { | |
6785 | arg4 = PyInt_AsLong(obj3) ? true : false; | |
6786 | if (PyErr_Occurred()) SWIG_fail; | |
6787 | } | |
6788 | { | |
6789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6790 | result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4); | |
6791 | ||
6792 | wxPyEndAllowThreads(__tstate); | |
6793 | if (PyErr_Occurred()) SWIG_fail; | |
6794 | } | |
6795 | resultobj = result; | |
6796 | { | |
6797 | if (temp3) | |
6798 | delete arg3; | |
6799 | } | |
6800 | return resultobj; | |
6801 | fail: | |
6802 | { | |
6803 | if (temp3) | |
6804 | delete arg3; | |
6805 | } | |
6806 | return NULL; | |
6807 | } | |
6808 | ||
6809 | ||
6810 | static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6811 | PyObject *resultobj; | |
6812 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6813 | int arg2 ; | |
6814 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
6815 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
6816 | bool result; | |
423f194a | 6817 | bool temp3 = False ; |
d14a1e28 RD |
6818 | PyObject * obj0 = 0 ; |
6819 | PyObject * obj2 = 0 ; | |
6820 | char *kwnames[] = { | |
6821 | (char *) "self",(char *) "encoding",(char *) "facename", NULL | |
6822 | }; | |
6823 | ||
6824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
6825 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6826 | if (obj2) { | |
6827 | { | |
6828 | arg3 = wxString_in_helper(obj2); | |
6829 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 6830 | temp3 = True; |
d14a1e28 RD |
6831 | } |
6832 | } | |
6833 | { | |
6834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6835 | result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3); | |
6836 | ||
6837 | wxPyEndAllowThreads(__tstate); | |
6838 | if (PyErr_Occurred()) SWIG_fail; | |
6839 | } | |
6840 | resultobj = PyInt_FromLong((long)result); | |
6841 | { | |
6842 | if (temp3) | |
6843 | delete arg3; | |
6844 | } | |
6845 | return resultobj; | |
6846 | fail: | |
6847 | { | |
6848 | if (temp3) | |
6849 | delete arg3; | |
6850 | } | |
6851 | return NULL; | |
6852 | } | |
6853 | ||
6854 | ||
6855 | static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6856 | PyObject *resultobj; | |
6857 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6858 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6859 | PyObject * obj0 = 0 ; | |
6860 | PyObject * obj1 = 0 ; | |
6861 | char *kwnames[] = { | |
6862 | (char *) "self",(char *) "parent", NULL | |
6863 | }; | |
6864 | ||
6865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail; | |
6866 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6867 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6868 | { | |
6869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6870 | (arg1)->SetDialogParent(arg2); | |
6871 | ||
6872 | wxPyEndAllowThreads(__tstate); | |
6873 | if (PyErr_Occurred()) SWIG_fail; | |
6874 | } | |
6875 | Py_INCREF(Py_None); resultobj = Py_None; | |
6876 | return resultobj; | |
6877 | fail: | |
6878 | return NULL; | |
6879 | } | |
6880 | ||
6881 | ||
6882 | static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6883 | PyObject *resultobj; | |
6884 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6885 | wxString *arg2 = 0 ; | |
423f194a | 6886 | bool temp2 = False ; |
d14a1e28 RD |
6887 | PyObject * obj0 = 0 ; |
6888 | PyObject * obj1 = 0 ; | |
6889 | char *kwnames[] = { | |
6890 | (char *) "self",(char *) "title", NULL | |
6891 | }; | |
6892 | ||
6893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail; | |
6894 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6895 | { | |
6896 | arg2 = wxString_in_helper(obj1); | |
6897 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6898 | temp2 = True; |
d14a1e28 RD |
6899 | } |
6900 | { | |
6901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6902 | (arg1)->SetDialogTitle((wxString const &)*arg2); | |
6903 | ||
6904 | wxPyEndAllowThreads(__tstate); | |
6905 | if (PyErr_Occurred()) SWIG_fail; | |
6906 | } | |
6907 | Py_INCREF(Py_None); resultobj = Py_None; | |
6908 | { | |
6909 | if (temp2) | |
6910 | delete arg2; | |
6911 | } | |
6912 | return resultobj; | |
6913 | fail: | |
6914 | { | |
6915 | if (temp2) | |
6916 | delete arg2; | |
6917 | } | |
6918 | return NULL; | |
6919 | } | |
6920 | ||
6921 | ||
6922 | static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) { | |
6923 | PyObject *obj; | |
6924 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6925 | SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj); | |
6926 | Py_INCREF(obj); | |
6927 | return Py_BuildValue((char *)""); | |
6928 | } | |
6929 | static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6930 | PyObject *resultobj; | |
6931 | int arg1 ; | |
6932 | int arg2 ; | |
6933 | int arg3 ; | |
6934 | int arg4 ; | |
423f194a | 6935 | bool arg5 = (bool) False ; |
d14a1e28 RD |
6936 | wxString const &arg6_defvalue = wxPyEmptyString ; |
6937 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
6938 | int arg7 = (int) wxFONTENCODING_DEFAULT ; | |
6939 | wxFont *result; | |
423f194a | 6940 | bool temp6 = False ; |
d14a1e28 RD |
6941 | PyObject * obj4 = 0 ; |
6942 | PyObject * obj5 = 0 ; | |
6943 | char *kwnames[] = { | |
6944 | (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL | |
6945 | }; | |
6946 | ||
6947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iiii|OOi:new_Font",kwnames,&arg1,&arg2,&arg3,&arg4,&obj4,&obj5,&arg7)) goto fail; | |
6948 | if (obj4) { | |
6949 | arg5 = PyInt_AsLong(obj4) ? true : false; | |
6950 | if (PyErr_Occurred()) SWIG_fail; | |
6951 | } | |
6952 | if (obj5) { | |
6953 | { | |
6954 | arg6 = wxString_in_helper(obj5); | |
6955 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 6956 | temp6 = True; |
d14a1e28 RD |
6957 | } |
6958 | } | |
6959 | { | |
6960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6961 | result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7); | |
6962 | ||
6963 | wxPyEndAllowThreads(__tstate); | |
6964 | if (PyErr_Occurred()) SWIG_fail; | |
6965 | } | |
6966 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1); | |
6967 | { | |
6968 | if (temp6) | |
6969 | delete arg6; | |
6970 | } | |
6971 | return resultobj; | |
6972 | fail: | |
6973 | { | |
6974 | if (temp6) | |
6975 | delete arg6; | |
6976 | } | |
6977 | return NULL; | |
6978 | } | |
6979 | ||
6980 | ||
6981 | static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6982 | PyObject *resultobj; | |
6983 | wxFont *arg1 = (wxFont *) 0 ; | |
6984 | PyObject * obj0 = 0 ; | |
6985 | char *kwnames[] = { | |
6986 | (char *) "self", NULL | |
6987 | }; | |
6988 | ||
6989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail; | |
6990 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6991 | { | |
6992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6993 | delete arg1; | |
6994 | ||
6995 | wxPyEndAllowThreads(__tstate); | |
6996 | if (PyErr_Occurred()) SWIG_fail; | |
6997 | } | |
6998 | Py_INCREF(Py_None); resultobj = Py_None; | |
6999 | return resultobj; | |
7000 | fail: | |
7001 | return NULL; | |
7002 | } | |
7003 | ||
7004 | ||
7005 | static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7006 | PyObject *resultobj; | |
7007 | wxNativeFontInfo *arg1 = 0 ; | |
7008 | wxFont *result; | |
7009 | PyObject * obj0 = 0 ; | |
7010 | char *kwnames[] = { | |
7011 | (char *) "info", NULL | |
7012 | }; | |
7013 | ||
7014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail; | |
7015 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7016 | if (arg1 == NULL) { | |
7017 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7018 | } | |
7019 | { | |
7020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7021 | result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1); | |
7022 | ||
7023 | wxPyEndAllowThreads(__tstate); | |
7024 | if (PyErr_Occurred()) SWIG_fail; | |
7025 | } | |
7026 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1); | |
7027 | return resultobj; | |
7028 | fail: | |
7029 | return NULL; | |
7030 | } | |
7031 | ||
7032 | ||
7033 | static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7034 | PyObject *resultobj; | |
7035 | wxString *arg1 = 0 ; | |
7036 | wxFont *result; | |
423f194a | 7037 | bool temp1 = False ; |
d14a1e28 RD |
7038 | PyObject * obj0 = 0 ; |
7039 | char *kwnames[] = { | |
7040 | (char *) "info", NULL | |
7041 | }; | |
7042 | ||
7043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail; | |
7044 | { | |
7045 | arg1 = wxString_in_helper(obj0); | |
7046 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7047 | temp1 = True; |
d14a1e28 RD |
7048 | } |
7049 | { | |
7050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7051 | result = (wxFont *)new_wxFont((wxString const &)*arg1); | |
7052 | ||
7053 | wxPyEndAllowThreads(__tstate); | |
7054 | if (PyErr_Occurred()) SWIG_fail; | |
7055 | } | |
7056 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1); | |
7057 | { | |
7058 | if (temp1) | |
7059 | delete arg1; | |
7060 | } | |
7061 | return resultobj; | |
7062 | fail: | |
7063 | { | |
7064 | if (temp1) | |
7065 | delete arg1; | |
7066 | } | |
7067 | return NULL; | |
7068 | } | |
7069 | ||
7070 | ||
7071 | static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7072 | PyObject *resultobj; | |
7073 | int arg1 ; | |
7074 | int arg2 ; | |
7075 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
7076 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
7077 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
7078 | int arg5 = (int) wxFONTENCODING_DEFAULT ; | |
7079 | wxFont *result; | |
423f194a | 7080 | bool temp4 = False ; |
d14a1e28 RD |
7081 | PyObject * obj3 = 0 ; |
7082 | char *kwnames[] = { | |
7083 | (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
7084 | }; | |
7085 | ||
7086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii|iOi:new_Font2",kwnames,&arg1,&arg2,&arg3,&obj3,&arg5)) goto fail; | |
7087 | if (obj3) { | |
7088 | { | |
7089 | arg4 = wxString_in_helper(obj3); | |
7090 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 7091 | temp4 = True; |
d14a1e28 RD |
7092 | } |
7093 | } | |
7094 | { | |
7095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7096 | result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5); | |
7097 | ||
7098 | wxPyEndAllowThreads(__tstate); | |
7099 | if (PyErr_Occurred()) SWIG_fail; | |
7100 | } | |
7101 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1); | |
7102 | { | |
7103 | if (temp4) | |
7104 | delete arg4; | |
7105 | } | |
7106 | return resultobj; | |
7107 | fail: | |
7108 | { | |
7109 | if (temp4) | |
7110 | delete arg4; | |
7111 | } | |
7112 | return NULL; | |
7113 | } | |
7114 | ||
7115 | ||
7116 | static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7117 | PyObject *resultobj; | |
7118 | wxFont *arg1 = (wxFont *) 0 ; | |
7119 | bool result; | |
7120 | PyObject * obj0 = 0 ; | |
7121 | char *kwnames[] = { | |
7122 | (char *) "self", NULL | |
7123 | }; | |
7124 | ||
7125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail; | |
7126 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7127 | { | |
7128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7129 | result = (bool)((wxFont const *)arg1)->Ok(); | |
7130 | ||
7131 | wxPyEndAllowThreads(__tstate); | |
7132 | if (PyErr_Occurred()) SWIG_fail; | |
7133 | } | |
7134 | resultobj = PyInt_FromLong((long)result); | |
7135 | return resultobj; | |
7136 | fail: | |
7137 | return NULL; | |
7138 | } | |
7139 | ||
7140 | ||
7141 | static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7142 | PyObject *resultobj; | |
7143 | wxFont *arg1 = (wxFont *) 0 ; | |
7144 | wxFont *arg2 = 0 ; | |
7145 | bool result; | |
7146 | PyObject * obj0 = 0 ; | |
7147 | PyObject * obj1 = 0 ; | |
7148 | char *kwnames[] = { | |
7149 | (char *) "self",(char *) "font", NULL | |
7150 | }; | |
7151 | ||
7152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail; | |
7153 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7154 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7155 | if (arg2 == NULL) { | |
7156 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7157 | } | |
7158 | { | |
7159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7160 | result = (bool)((wxFont const *)arg1)->operator ==((wxFont const &)*arg2); | |
7161 | ||
7162 | wxPyEndAllowThreads(__tstate); | |
7163 | if (PyErr_Occurred()) SWIG_fail; | |
7164 | } | |
7165 | resultobj = PyInt_FromLong((long)result); | |
7166 | return resultobj; | |
7167 | fail: | |
7168 | return NULL; | |
7169 | } | |
7170 | ||
7171 | ||
7172 | static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7173 | PyObject *resultobj; | |
7174 | wxFont *arg1 = (wxFont *) 0 ; | |
7175 | wxFont *arg2 = 0 ; | |
7176 | bool result; | |
7177 | PyObject * obj0 = 0 ; | |
7178 | PyObject * obj1 = 0 ; | |
7179 | char *kwnames[] = { | |
7180 | (char *) "self",(char *) "font", NULL | |
7181 | }; | |
7182 | ||
7183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail; | |
7184 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7185 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7186 | if (arg2 == NULL) { | |
7187 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7188 | } | |
7189 | { | |
7190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7191 | result = (bool)((wxFont const *)arg1)->operator !=((wxFont const &)*arg2); | |
7192 | ||
7193 | wxPyEndAllowThreads(__tstate); | |
7194 | if (PyErr_Occurred()) SWIG_fail; | |
7195 | } | |
7196 | resultobj = PyInt_FromLong((long)result); | |
7197 | return resultobj; | |
7198 | fail: | |
7199 | return NULL; | |
7200 | } | |
7201 | ||
7202 | ||
7203 | static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7204 | PyObject *resultobj; | |
7205 | wxFont *arg1 = (wxFont *) 0 ; | |
7206 | int result; | |
7207 | PyObject * obj0 = 0 ; | |
7208 | char *kwnames[] = { | |
7209 | (char *) "self", NULL | |
7210 | }; | |
7211 | ||
7212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail; | |
7213 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7214 | { | |
7215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7216 | result = (int)((wxFont const *)arg1)->GetPointSize(); | |
7217 | ||
7218 | wxPyEndAllowThreads(__tstate); | |
7219 | if (PyErr_Occurred()) SWIG_fail; | |
7220 | } | |
7221 | resultobj = PyInt_FromLong((long)result); | |
7222 | return resultobj; | |
7223 | fail: | |
7224 | return NULL; | |
7225 | } | |
7226 | ||
7227 | ||
7228 | static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7229 | PyObject *resultobj; | |
7230 | wxFont *arg1 = (wxFont *) 0 ; | |
7231 | int result; | |
7232 | PyObject * obj0 = 0 ; | |
7233 | char *kwnames[] = { | |
7234 | (char *) "self", NULL | |
7235 | }; | |
7236 | ||
7237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail; | |
7238 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7239 | { | |
7240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7241 | result = (int)((wxFont const *)arg1)->GetFamily(); | |
7242 | ||
7243 | wxPyEndAllowThreads(__tstate); | |
7244 | if (PyErr_Occurred()) SWIG_fail; | |
7245 | } | |
7246 | resultobj = PyInt_FromLong((long)result); | |
7247 | return resultobj; | |
7248 | fail: | |
7249 | return NULL; | |
7250 | } | |
7251 | ||
7252 | ||
7253 | static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7254 | PyObject *resultobj; | |
7255 | wxFont *arg1 = (wxFont *) 0 ; | |
7256 | int result; | |
7257 | PyObject * obj0 = 0 ; | |
7258 | char *kwnames[] = { | |
7259 | (char *) "self", NULL | |
7260 | }; | |
7261 | ||
7262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail; | |
7263 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7264 | { | |
7265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7266 | result = (int)((wxFont const *)arg1)->GetStyle(); | |
7267 | ||
7268 | wxPyEndAllowThreads(__tstate); | |
7269 | if (PyErr_Occurred()) SWIG_fail; | |
7270 | } | |
7271 | resultobj = PyInt_FromLong((long)result); | |
7272 | return resultobj; | |
7273 | fail: | |
7274 | return NULL; | |
7275 | } | |
7276 | ||
7277 | ||
7278 | static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7279 | PyObject *resultobj; | |
7280 | wxFont *arg1 = (wxFont *) 0 ; | |
7281 | int result; | |
7282 | PyObject * obj0 = 0 ; | |
7283 | char *kwnames[] = { | |
7284 | (char *) "self", NULL | |
7285 | }; | |
7286 | ||
7287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail; | |
7288 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7289 | { | |
7290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7291 | result = (int)((wxFont const *)arg1)->GetWeight(); | |
7292 | ||
7293 | wxPyEndAllowThreads(__tstate); | |
7294 | if (PyErr_Occurred()) SWIG_fail; | |
7295 | } | |
7296 | resultobj = PyInt_FromLong((long)result); | |
7297 | return resultobj; | |
7298 | fail: | |
7299 | return NULL; | |
7300 | } | |
7301 | ||
7302 | ||
7303 | static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7304 | PyObject *resultobj; | |
7305 | wxFont *arg1 = (wxFont *) 0 ; | |
7306 | bool result; | |
7307 | PyObject * obj0 = 0 ; | |
7308 | char *kwnames[] = { | |
7309 | (char *) "self", NULL | |
7310 | }; | |
7311 | ||
7312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail; | |
7313 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7314 | { | |
7315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7316 | result = (bool)((wxFont const *)arg1)->GetUnderlined(); | |
7317 | ||
7318 | wxPyEndAllowThreads(__tstate); | |
7319 | if (PyErr_Occurred()) SWIG_fail; | |
7320 | } | |
7321 | resultobj = PyInt_FromLong((long)result); | |
7322 | return resultobj; | |
7323 | fail: | |
7324 | return NULL; | |
7325 | } | |
7326 | ||
7327 | ||
7328 | static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7329 | PyObject *resultobj; | |
7330 | wxFont *arg1 = (wxFont *) 0 ; | |
7331 | wxString result; | |
7332 | PyObject * obj0 = 0 ; | |
7333 | char *kwnames[] = { | |
7334 | (char *) "self", NULL | |
7335 | }; | |
7336 | ||
7337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail; | |
7338 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7339 | { | |
7340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7341 | result = ((wxFont const *)arg1)->GetFaceName(); | |
7342 | ||
7343 | wxPyEndAllowThreads(__tstate); | |
7344 | if (PyErr_Occurred()) SWIG_fail; | |
7345 | } | |
7346 | { | |
7347 | #if wxUSE_UNICODE | |
7348 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7349 | #else | |
7350 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7351 | #endif | |
7352 | } | |
7353 | return resultobj; | |
7354 | fail: | |
7355 | return NULL; | |
7356 | } | |
7357 | ||
7358 | ||
7359 | static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7360 | PyObject *resultobj; | |
7361 | wxFont *arg1 = (wxFont *) 0 ; | |
7362 | int result; | |
7363 | PyObject * obj0 = 0 ; | |
7364 | char *kwnames[] = { | |
7365 | (char *) "self", NULL | |
7366 | }; | |
7367 | ||
7368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail; | |
7369 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7370 | { | |
7371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7372 | result = (int)((wxFont const *)arg1)->GetEncoding(); | |
7373 | ||
7374 | wxPyEndAllowThreads(__tstate); | |
7375 | if (PyErr_Occurred()) SWIG_fail; | |
7376 | } | |
7377 | resultobj = PyInt_FromLong((long)result); | |
7378 | return resultobj; | |
7379 | fail: | |
7380 | return NULL; | |
7381 | } | |
7382 | ||
7383 | ||
7384 | static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7385 | PyObject *resultobj; | |
7386 | wxFont *arg1 = (wxFont *) 0 ; | |
7387 | wxNativeFontInfo *result; | |
7388 | PyObject * obj0 = 0 ; | |
7389 | char *kwnames[] = { | |
7390 | (char *) "self", NULL | |
7391 | }; | |
7392 | ||
7393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail; | |
7394 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7395 | { | |
7396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7397 | result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo(); | |
7398 | ||
7399 | wxPyEndAllowThreads(__tstate); | |
7400 | if (PyErr_Occurred()) SWIG_fail; | |
7401 | } | |
7402 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 0); | |
7403 | return resultobj; | |
7404 | fail: | |
7405 | return NULL; | |
7406 | } | |
7407 | ||
7408 | ||
7409 | static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7410 | PyObject *resultobj; | |
7411 | wxFont *arg1 = (wxFont *) 0 ; | |
7412 | bool result; | |
7413 | PyObject * obj0 = 0 ; | |
7414 | char *kwnames[] = { | |
7415 | (char *) "self", NULL | |
7416 | }; | |
7417 | ||
7418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail; | |
7419 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7420 | { | |
7421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7422 | result = (bool)((wxFont const *)arg1)->IsFixedWidth(); | |
7423 | ||
7424 | wxPyEndAllowThreads(__tstate); | |
7425 | if (PyErr_Occurred()) SWIG_fail; | |
7426 | } | |
7427 | resultobj = PyInt_FromLong((long)result); | |
7428 | return resultobj; | |
7429 | fail: | |
7430 | return NULL; | |
7431 | } | |
7432 | ||
7433 | ||
7434 | static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7435 | PyObject *resultobj; | |
7436 | wxFont *arg1 = (wxFont *) 0 ; | |
7437 | wxString result; | |
7438 | PyObject * obj0 = 0 ; | |
7439 | char *kwnames[] = { | |
7440 | (char *) "self", NULL | |
7441 | }; | |
7442 | ||
7443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail; | |
7444 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7445 | { | |
7446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7447 | result = ((wxFont const *)arg1)->GetNativeFontInfoDesc(); | |
7448 | ||
7449 | wxPyEndAllowThreads(__tstate); | |
7450 | if (PyErr_Occurred()) SWIG_fail; | |
7451 | } | |
7452 | { | |
7453 | #if wxUSE_UNICODE | |
7454 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7455 | #else | |
7456 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7457 | #endif | |
7458 | } | |
7459 | return resultobj; | |
7460 | fail: | |
7461 | return NULL; | |
7462 | } | |
7463 | ||
7464 | ||
7465 | static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7466 | PyObject *resultobj; | |
7467 | wxFont *arg1 = (wxFont *) 0 ; | |
7468 | wxString result; | |
7469 | PyObject * obj0 = 0 ; | |
7470 | char *kwnames[] = { | |
7471 | (char *) "self", NULL | |
7472 | }; | |
7473 | ||
7474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail; | |
7475 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7476 | { | |
7477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7478 | result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc(); | |
7479 | ||
7480 | wxPyEndAllowThreads(__tstate); | |
7481 | if (PyErr_Occurred()) SWIG_fail; | |
7482 | } | |
7483 | { | |
7484 | #if wxUSE_UNICODE | |
7485 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7486 | #else | |
7487 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7488 | #endif | |
7489 | } | |
7490 | return resultobj; | |
7491 | fail: | |
7492 | return NULL; | |
7493 | } | |
7494 | ||
7495 | ||
7496 | static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7497 | PyObject *resultobj; | |
7498 | wxFont *arg1 = (wxFont *) 0 ; | |
7499 | int arg2 ; | |
7500 | PyObject * obj0 = 0 ; | |
7501 | char *kwnames[] = { | |
7502 | (char *) "self",(char *) "pointSize", NULL | |
7503 | }; | |
7504 | ||
7505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetPointSize",kwnames,&obj0,&arg2)) goto fail; | |
7506 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7507 | { | |
7508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7509 | (arg1)->SetPointSize(arg2); | |
7510 | ||
7511 | wxPyEndAllowThreads(__tstate); | |
7512 | if (PyErr_Occurred()) SWIG_fail; | |
7513 | } | |
7514 | Py_INCREF(Py_None); resultobj = Py_None; | |
7515 | return resultobj; | |
7516 | fail: | |
7517 | return NULL; | |
7518 | } | |
7519 | ||
7520 | ||
7521 | static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7522 | PyObject *resultobj; | |
7523 | wxFont *arg1 = (wxFont *) 0 ; | |
7524 | int arg2 ; | |
7525 | PyObject * obj0 = 0 ; | |
7526 | char *kwnames[] = { | |
7527 | (char *) "self",(char *) "family", NULL | |
7528 | }; | |
7529 | ||
7530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetFamily",kwnames,&obj0,&arg2)) goto fail; | |
7531 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7532 | { | |
7533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7534 | (arg1)->SetFamily(arg2); | |
7535 | ||
7536 | wxPyEndAllowThreads(__tstate); | |
7537 | if (PyErr_Occurred()) SWIG_fail; | |
7538 | } | |
7539 | Py_INCREF(Py_None); resultobj = Py_None; | |
7540 | return resultobj; | |
7541 | fail: | |
7542 | return NULL; | |
7543 | } | |
7544 | ||
7545 | ||
7546 | static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7547 | PyObject *resultobj; | |
7548 | wxFont *arg1 = (wxFont *) 0 ; | |
7549 | int arg2 ; | |
7550 | PyObject * obj0 = 0 ; | |
7551 | char *kwnames[] = { | |
7552 | (char *) "self",(char *) "style", NULL | |
7553 | }; | |
7554 | ||
7555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetStyle",kwnames,&obj0,&arg2)) goto fail; | |
7556 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7557 | { | |
7558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7559 | (arg1)->SetStyle(arg2); | |
7560 | ||
7561 | wxPyEndAllowThreads(__tstate); | |
7562 | if (PyErr_Occurred()) SWIG_fail; | |
7563 | } | |
7564 | Py_INCREF(Py_None); resultobj = Py_None; | |
7565 | return resultobj; | |
7566 | fail: | |
7567 | return NULL; | |
7568 | } | |
7569 | ||
7570 | ||
7571 | static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7572 | PyObject *resultobj; | |
7573 | wxFont *arg1 = (wxFont *) 0 ; | |
7574 | int arg2 ; | |
7575 | PyObject * obj0 = 0 ; | |
7576 | char *kwnames[] = { | |
7577 | (char *) "self",(char *) "weight", NULL | |
7578 | }; | |
7579 | ||
7580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetWeight",kwnames,&obj0,&arg2)) goto fail; | |
7581 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7582 | { | |
7583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7584 | (arg1)->SetWeight(arg2); | |
7585 | ||
7586 | wxPyEndAllowThreads(__tstate); | |
7587 | if (PyErr_Occurred()) SWIG_fail; | |
7588 | } | |
7589 | Py_INCREF(Py_None); resultobj = Py_None; | |
7590 | return resultobj; | |
7591 | fail: | |
7592 | return NULL; | |
7593 | } | |
7594 | ||
7595 | ||
7596 | static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7597 | PyObject *resultobj; | |
7598 | wxFont *arg1 = (wxFont *) 0 ; | |
7599 | wxString *arg2 = 0 ; | |
423f194a | 7600 | bool temp2 = False ; |
d14a1e28 RD |
7601 | PyObject * obj0 = 0 ; |
7602 | PyObject * obj1 = 0 ; | |
7603 | char *kwnames[] = { | |
7604 | (char *) "self",(char *) "faceName", NULL | |
7605 | }; | |
7606 | ||
7607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail; | |
7608 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7609 | { | |
7610 | arg2 = wxString_in_helper(obj1); | |
7611 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7612 | temp2 = True; |
d14a1e28 RD |
7613 | } |
7614 | { | |
7615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7616 | (arg1)->SetFaceName((wxString const &)*arg2); | |
7617 | ||
7618 | wxPyEndAllowThreads(__tstate); | |
7619 | if (PyErr_Occurred()) SWIG_fail; | |
7620 | } | |
7621 | Py_INCREF(Py_None); resultobj = Py_None; | |
7622 | { | |
7623 | if (temp2) | |
7624 | delete arg2; | |
7625 | } | |
7626 | return resultobj; | |
7627 | fail: | |
7628 | { | |
7629 | if (temp2) | |
7630 | delete arg2; | |
7631 | } | |
7632 | return NULL; | |
7633 | } | |
7634 | ||
7635 | ||
7636 | static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7637 | PyObject *resultobj; | |
7638 | wxFont *arg1 = (wxFont *) 0 ; | |
7639 | bool arg2 ; | |
7640 | PyObject * obj0 = 0 ; | |
7641 | PyObject * obj1 = 0 ; | |
7642 | char *kwnames[] = { | |
7643 | (char *) "self",(char *) "underlined", NULL | |
7644 | }; | |
7645 | ||
7646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; | |
7647 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7648 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
7649 | if (PyErr_Occurred()) SWIG_fail; | |
7650 | { | |
7651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7652 | (arg1)->SetUnderlined(arg2); | |
7653 | ||
7654 | wxPyEndAllowThreads(__tstate); | |
7655 | if (PyErr_Occurred()) SWIG_fail; | |
7656 | } | |
7657 | Py_INCREF(Py_None); resultobj = Py_None; | |
7658 | return resultobj; | |
7659 | fail: | |
7660 | return NULL; | |
7661 | } | |
7662 | ||
7663 | ||
7664 | static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7665 | PyObject *resultobj; | |
7666 | wxFont *arg1 = (wxFont *) 0 ; | |
7667 | int arg2 ; | |
7668 | PyObject * obj0 = 0 ; | |
7669 | char *kwnames[] = { | |
7670 | (char *) "self",(char *) "encoding", NULL | |
7671 | }; | |
7672 | ||
7673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetEncoding",kwnames,&obj0,&arg2)) goto fail; | |
7674 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7675 | { | |
7676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7677 | (arg1)->SetEncoding((wxFontEncoding )arg2); | |
7678 | ||
7679 | wxPyEndAllowThreads(__tstate); | |
7680 | if (PyErr_Occurred()) SWIG_fail; | |
7681 | } | |
7682 | Py_INCREF(Py_None); resultobj = Py_None; | |
7683 | return resultobj; | |
7684 | fail: | |
7685 | return NULL; | |
7686 | } | |
7687 | ||
7688 | ||
7689 | static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7690 | PyObject *resultobj; | |
7691 | wxFont *arg1 = (wxFont *) 0 ; | |
7692 | wxNativeFontInfo *arg2 = 0 ; | |
7693 | PyObject * obj0 = 0 ; | |
7694 | PyObject * obj1 = 0 ; | |
7695 | char *kwnames[] = { | |
7696 | (char *) "self",(char *) "info", NULL | |
7697 | }; | |
7698 | ||
7699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail; | |
7700 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7701 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7702 | if (arg2 == NULL) { | |
7703 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7704 | } | |
7705 | { | |
7706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7707 | (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2); | |
7708 | ||
7709 | wxPyEndAllowThreads(__tstate); | |
7710 | if (PyErr_Occurred()) SWIG_fail; | |
7711 | } | |
7712 | Py_INCREF(Py_None); resultobj = Py_None; | |
7713 | return resultobj; | |
7714 | fail: | |
7715 | return NULL; | |
7716 | } | |
7717 | ||
7718 | ||
7719 | static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7720 | PyObject *resultobj; | |
7721 | wxFont *arg1 = (wxFont *) 0 ; | |
7722 | wxString *arg2 = 0 ; | |
423f194a | 7723 | bool temp2 = False ; |
d14a1e28 RD |
7724 | PyObject * obj0 = 0 ; |
7725 | PyObject * obj1 = 0 ; | |
7726 | char *kwnames[] = { | |
7727 | (char *) "self",(char *) "info", NULL | |
7728 | }; | |
7729 | ||
7730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail; | |
7731 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7732 | { | |
7733 | arg2 = wxString_in_helper(obj1); | |
7734 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7735 | temp2 = True; |
d14a1e28 RD |
7736 | } |
7737 | { | |
7738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7739 | (arg1)->SetNativeFontInfo((wxString const &)*arg2); | |
7740 | ||
7741 | wxPyEndAllowThreads(__tstate); | |
7742 | if (PyErr_Occurred()) SWIG_fail; | |
7743 | } | |
7744 | Py_INCREF(Py_None); resultobj = Py_None; | |
7745 | { | |
7746 | if (temp2) | |
7747 | delete arg2; | |
7748 | } | |
7749 | return resultobj; | |
7750 | fail: | |
7751 | { | |
7752 | if (temp2) | |
7753 | delete arg2; | |
7754 | } | |
7755 | return NULL; | |
7756 | } | |
7757 | ||
7758 | ||
7759 | static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7760 | PyObject *resultobj; | |
7761 | wxFont *arg1 = (wxFont *) 0 ; | |
7762 | wxString *arg2 = 0 ; | |
423f194a | 7763 | bool temp2 = False ; |
d14a1e28 RD |
7764 | PyObject * obj0 = 0 ; |
7765 | PyObject * obj1 = 0 ; | |
7766 | char *kwnames[] = { | |
7767 | (char *) "self",(char *) "info", NULL | |
7768 | }; | |
7769 | ||
7770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail; | |
7771 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7772 | { | |
7773 | arg2 = wxString_in_helper(obj1); | |
7774 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7775 | temp2 = True; |
d14a1e28 RD |
7776 | } |
7777 | { | |
7778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7779 | (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2); | |
7780 | ||
7781 | wxPyEndAllowThreads(__tstate); | |
7782 | if (PyErr_Occurred()) SWIG_fail; | |
7783 | } | |
7784 | Py_INCREF(Py_None); resultobj = Py_None; | |
7785 | { | |
7786 | if (temp2) | |
7787 | delete arg2; | |
7788 | } | |
7789 | return resultobj; | |
7790 | fail: | |
7791 | { | |
7792 | if (temp2) | |
7793 | delete arg2; | |
7794 | } | |
7795 | return NULL; | |
7796 | } | |
7797 | ||
7798 | ||
7799 | static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7800 | PyObject *resultobj; | |
7801 | wxFont *arg1 = (wxFont *) 0 ; | |
7802 | wxString result; | |
7803 | PyObject * obj0 = 0 ; | |
7804 | char *kwnames[] = { | |
7805 | (char *) "self", NULL | |
7806 | }; | |
7807 | ||
7808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail; | |
7809 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7810 | { | |
7811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7812 | result = ((wxFont const *)arg1)->GetFamilyString(); | |
7813 | ||
7814 | wxPyEndAllowThreads(__tstate); | |
7815 | if (PyErr_Occurred()) SWIG_fail; | |
7816 | } | |
7817 | { | |
7818 | #if wxUSE_UNICODE | |
7819 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7820 | #else | |
7821 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7822 | #endif | |
7823 | } | |
7824 | return resultobj; | |
7825 | fail: | |
7826 | return NULL; | |
7827 | } | |
7828 | ||
7829 | ||
7830 | static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7831 | PyObject *resultobj; | |
7832 | wxFont *arg1 = (wxFont *) 0 ; | |
7833 | wxString result; | |
7834 | PyObject * obj0 = 0 ; | |
7835 | char *kwnames[] = { | |
7836 | (char *) "self", NULL | |
7837 | }; | |
7838 | ||
7839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail; | |
7840 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7841 | { | |
7842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7843 | result = ((wxFont const *)arg1)->GetStyleString(); | |
7844 | ||
7845 | wxPyEndAllowThreads(__tstate); | |
7846 | if (PyErr_Occurred()) SWIG_fail; | |
7847 | } | |
7848 | { | |
7849 | #if wxUSE_UNICODE | |
7850 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7851 | #else | |
7852 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7853 | #endif | |
7854 | } | |
7855 | return resultobj; | |
7856 | fail: | |
7857 | return NULL; | |
7858 | } | |
7859 | ||
7860 | ||
7861 | static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7862 | PyObject *resultobj; | |
7863 | wxFont *arg1 = (wxFont *) 0 ; | |
7864 | wxString result; | |
7865 | PyObject * obj0 = 0 ; | |
7866 | char *kwnames[] = { | |
7867 | (char *) "self", NULL | |
7868 | }; | |
7869 | ||
7870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",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 = ((wxFont const *)arg1)->GetWeightString(); | |
7875 | ||
7876 | wxPyEndAllowThreads(__tstate); | |
7877 | if (PyErr_Occurred()) SWIG_fail; | |
7878 | } | |
7879 | { | |
7880 | #if wxUSE_UNICODE | |
7881 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7882 | #else | |
7883 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7884 | #endif | |
7885 | } | |
7886 | return resultobj; | |
7887 | fail: | |
7888 | return NULL; | |
7889 | } | |
7890 | ||
7891 | ||
7892 | static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7893 | PyObject *resultobj; | |
7894 | wxFont *arg1 = (wxFont *) 0 ; | |
423f194a | 7895 | bool arg2 = (bool) True ; |
d14a1e28 RD |
7896 | PyObject * obj0 = 0 ; |
7897 | PyObject * obj1 = 0 ; | |
7898 | char *kwnames[] = { | |
7899 | (char *) "self",(char *) "no", NULL | |
7900 | }; | |
7901 | ||
7902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail; | |
7903 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7904 | if (obj1) { | |
7905 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
7906 | if (PyErr_Occurred()) SWIG_fail; | |
7907 | } | |
7908 | { | |
7909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7910 | (arg1)->SetNoAntiAliasing(arg2); | |
7911 | ||
7912 | wxPyEndAllowThreads(__tstate); | |
7913 | if (PyErr_Occurred()) SWIG_fail; | |
7914 | } | |
7915 | Py_INCREF(Py_None); resultobj = Py_None; | |
7916 | return resultobj; | |
7917 | fail: | |
7918 | return NULL; | |
7919 | } | |
7920 | ||
7921 | ||
7922 | static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7923 | PyObject *resultobj; | |
7924 | wxFont *arg1 = (wxFont *) 0 ; | |
7925 | bool result; | |
7926 | PyObject * obj0 = 0 ; | |
7927 | char *kwnames[] = { | |
7928 | (char *) "self", NULL | |
7929 | }; | |
7930 | ||
7931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail; | |
7932 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7933 | { | |
7934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7935 | result = (bool)(arg1)->GetNoAntiAliasing(); | |
7936 | ||
7937 | wxPyEndAllowThreads(__tstate); | |
7938 | if (PyErr_Occurred()) SWIG_fail; | |
7939 | } | |
7940 | resultobj = PyInt_FromLong((long)result); | |
7941 | return resultobj; | |
7942 | fail: | |
7943 | return NULL; | |
7944 | } | |
7945 | ||
7946 | ||
7947 | static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7948 | PyObject *resultobj; | |
7949 | int result; | |
7950 | char *kwnames[] = { | |
7951 | NULL | |
7952 | }; | |
7953 | ||
7954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail; | |
7955 | { | |
7956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7957 | result = (int)wxFont::GetDefaultEncoding(); | |
7958 | ||
7959 | wxPyEndAllowThreads(__tstate); | |
7960 | if (PyErr_Occurred()) SWIG_fail; | |
7961 | } | |
7962 | resultobj = PyInt_FromLong((long)result); | |
7963 | return resultobj; | |
7964 | fail: | |
7965 | return NULL; | |
7966 | } | |
7967 | ||
7968 | ||
7969 | static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7970 | PyObject *resultobj; | |
7971 | int arg1 ; | |
7972 | char *kwnames[] = { | |
7973 | (char *) "encoding", NULL | |
7974 | }; | |
7975 | ||
7976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Font_SetDefaultEncoding",kwnames,&arg1)) goto fail; | |
7977 | { | |
7978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7979 | wxFont::SetDefaultEncoding((wxFontEncoding )arg1); | |
7980 | ||
7981 | wxPyEndAllowThreads(__tstate); | |
7982 | if (PyErr_Occurred()) SWIG_fail; | |
7983 | } | |
7984 | Py_INCREF(Py_None); resultobj = Py_None; | |
7985 | return resultobj; | |
7986 | fail: | |
7987 | return NULL; | |
7988 | } | |
7989 | ||
7990 | ||
7991 | static PyObject * Font_swigregister(PyObject *self, PyObject *args) { | |
7992 | PyObject *obj; | |
7993 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7994 | SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj); | |
7995 | Py_INCREF(obj); | |
7996 | return Py_BuildValue((char *)""); | |
7997 | } | |
7998 | static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7999 | PyObject *resultobj; | |
8000 | wxPyFontEnumerator *result; | |
8001 | char *kwnames[] = { | |
8002 | NULL | |
8003 | }; | |
8004 | ||
8005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail; | |
8006 | { | |
8007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8008 | result = (wxPyFontEnumerator *)new wxPyFontEnumerator(); | |
8009 | ||
8010 | wxPyEndAllowThreads(__tstate); | |
8011 | if (PyErr_Occurred()) SWIG_fail; | |
8012 | } | |
8013 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFontEnumerator, 1); | |
8014 | return resultobj; | |
8015 | fail: | |
8016 | return NULL; | |
8017 | } | |
8018 | ||
8019 | ||
8020 | static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8021 | PyObject *resultobj; | |
8022 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8023 | PyObject * obj0 = 0 ; | |
8024 | char *kwnames[] = { | |
8025 | (char *) "self", NULL | |
8026 | }; | |
8027 | ||
8028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail; | |
8029 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8030 | { | |
8031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8032 | delete arg1; | |
8033 | ||
8034 | wxPyEndAllowThreads(__tstate); | |
8035 | if (PyErr_Occurred()) SWIG_fail; | |
8036 | } | |
8037 | Py_INCREF(Py_None); resultobj = Py_None; | |
8038 | return resultobj; | |
8039 | fail: | |
8040 | return NULL; | |
8041 | } | |
8042 | ||
8043 | ||
8044 | static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8045 | PyObject *resultobj; | |
8046 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8047 | PyObject *arg2 = (PyObject *) 0 ; | |
8048 | PyObject *arg3 = (PyObject *) 0 ; | |
8049 | bool arg4 ; | |
8050 | PyObject * obj0 = 0 ; | |
8051 | PyObject * obj1 = 0 ; | |
8052 | PyObject * obj2 = 0 ; | |
8053 | PyObject * obj3 = 0 ; | |
8054 | char *kwnames[] = { | |
8055 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
8056 | }; | |
8057 | ||
8058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8059 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8060 | arg2 = obj1; | |
8061 | arg3 = obj2; | |
8062 | arg4 = PyInt_AsLong(obj3) ? true : false; | |
8063 | if (PyErr_Occurred()) SWIG_fail; | |
8064 | { | |
8065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8066 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
8067 | ||
8068 | wxPyEndAllowThreads(__tstate); | |
8069 | if (PyErr_Occurred()) SWIG_fail; | |
8070 | } | |
8071 | Py_INCREF(Py_None); resultobj = Py_None; | |
8072 | return resultobj; | |
8073 | fail: | |
8074 | return NULL; | |
8075 | } | |
8076 | ||
8077 | ||
8078 | static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8079 | PyObject *resultobj; | |
8080 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8081 | int arg2 = (int) wxFONTENCODING_SYSTEM ; | |
423f194a | 8082 | bool arg3 = (bool) False ; |
d14a1e28 RD |
8083 | bool result; |
8084 | PyObject * obj0 = 0 ; | |
8085 | PyObject * obj2 = 0 ; | |
8086 | char *kwnames[] = { | |
8087 | (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL | |
8088 | }; | |
8089 | ||
8090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
8091 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8092 | if (obj2) { | |
8093 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
8094 | if (PyErr_Occurred()) SWIG_fail; | |
8095 | } | |
8096 | { | |
8097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8098 | result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3); | |
8099 | ||
8100 | wxPyEndAllowThreads(__tstate); | |
8101 | if (PyErr_Occurred()) SWIG_fail; | |
8102 | } | |
8103 | resultobj = PyInt_FromLong((long)result); | |
8104 | return resultobj; | |
8105 | fail: | |
8106 | return NULL; | |
8107 | } | |
8108 | ||
8109 | ||
8110 | static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8111 | PyObject *resultobj; | |
8112 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8113 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
8114 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
8115 | bool result; | |
423f194a | 8116 | bool temp2 = False ; |
d14a1e28 RD |
8117 | PyObject * obj0 = 0 ; |
8118 | PyObject * obj1 = 0 ; | |
8119 | char *kwnames[] = { | |
8120 | (char *) "self",(char *) "facename", NULL | |
8121 | }; | |
8122 | ||
8123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail; | |
8124 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8125 | if (obj1) { | |
8126 | { | |
8127 | arg2 = wxString_in_helper(obj1); | |
8128 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8129 | temp2 = True; |
d14a1e28 RD |
8130 | } |
8131 | } | |
8132 | { | |
8133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8134 | result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2); | |
8135 | ||
8136 | wxPyEndAllowThreads(__tstate); | |
8137 | if (PyErr_Occurred()) SWIG_fail; | |
8138 | } | |
8139 | resultobj = PyInt_FromLong((long)result); | |
8140 | { | |
8141 | if (temp2) | |
8142 | delete arg2; | |
8143 | } | |
8144 | return resultobj; | |
8145 | fail: | |
8146 | { | |
8147 | if (temp2) | |
8148 | delete arg2; | |
8149 | } | |
8150 | return NULL; | |
8151 | } | |
8152 | ||
8153 | ||
8154 | static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8155 | PyObject *resultobj; | |
8156 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8157 | PyObject *result; | |
8158 | PyObject * obj0 = 0 ; | |
8159 | char *kwnames[] = { | |
8160 | (char *) "self", NULL | |
8161 | }; | |
8162 | ||
8163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail; | |
8164 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8165 | { | |
8166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8167 | result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1); | |
8168 | ||
8169 | wxPyEndAllowThreads(__tstate); | |
8170 | if (PyErr_Occurred()) SWIG_fail; | |
8171 | } | |
8172 | resultobj = result; | |
8173 | return resultobj; | |
8174 | fail: | |
8175 | return NULL; | |
8176 | } | |
8177 | ||
8178 | ||
8179 | static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8180 | PyObject *resultobj; | |
8181 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8182 | PyObject *result; | |
8183 | PyObject * obj0 = 0 ; | |
8184 | char *kwnames[] = { | |
8185 | (char *) "self", NULL | |
8186 | }; | |
8187 | ||
8188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail; | |
8189 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8190 | { | |
8191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8192 | result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1); | |
8193 | ||
8194 | wxPyEndAllowThreads(__tstate); | |
8195 | if (PyErr_Occurred()) SWIG_fail; | |
8196 | } | |
8197 | resultobj = result; | |
8198 | return resultobj; | |
8199 | fail: | |
8200 | return NULL; | |
8201 | } | |
8202 | ||
8203 | ||
8204 | static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) { | |
8205 | PyObject *obj; | |
8206 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8207 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj); | |
8208 | Py_INCREF(obj); | |
8209 | return Py_BuildValue((char *)""); | |
8210 | } | |
8211 | static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8212 | PyObject *resultobj; | |
8213 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
8214 | int arg2 ; | |
8215 | PyObject * obj0 = 0 ; | |
8216 | char *kwnames[] = { | |
8217 | (char *) "self",(char *) "Language", NULL | |
8218 | }; | |
8219 | ||
8220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:LanguageInfo_Language_set",kwnames,&obj0,&arg2)) goto fail; | |
8221 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8222 | if (arg1) (arg1)->Language = arg2; | |
8223 | ||
8224 | Py_INCREF(Py_None); resultobj = Py_None; | |
8225 | return resultobj; | |
8226 | fail: | |
8227 | return NULL; | |
8228 | } | |
8229 | ||
8230 | ||
8231 | static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8232 | PyObject *resultobj; | |
8233 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
8234 | int result; | |
8235 | PyObject * obj0 = 0 ; | |
8236 | char *kwnames[] = { | |
8237 | (char *) "self", NULL | |
8238 | }; | |
8239 | ||
8240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail; | |
8241 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8242 | result = (int) ((arg1)->Language); | |
8243 | ||
8244 | resultobj = PyInt_FromLong((long)result); | |
8245 | return resultobj; | |
8246 | fail: | |
8247 | return NULL; | |
8248 | } | |
8249 | ||
8250 | ||
8251 | static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8252 | PyObject *resultobj; | |
8253 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
d03fd34d | 8254 | wxString *arg2 = (wxString *) 0 ; |
d14a1e28 RD |
8255 | PyObject * obj0 = 0 ; |
8256 | PyObject * obj1 = 0 ; | |
8257 | char *kwnames[] = { | |
8258 | (char *) "self",(char *) "CanonicalName", NULL | |
8259 | }; | |
8260 | ||
8261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail; | |
8262 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d03fd34d RD |
8263 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8264 | if (arg1) (arg1)->CanonicalName = *arg2; | |
d14a1e28 RD |
8265 | |
8266 | Py_INCREF(Py_None); resultobj = Py_None; | |
8267 | return resultobj; | |
8268 | fail: | |
8269 | return NULL; | |
8270 | } | |
8271 | ||
8272 | ||
8273 | static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8274 | PyObject *resultobj; | |
8275 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
d03fd34d | 8276 | wxString *result; |
d14a1e28 RD |
8277 | PyObject * obj0 = 0 ; |
8278 | char *kwnames[] = { | |
8279 | (char *) "self", NULL | |
8280 | }; | |
8281 | ||
8282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail; | |
8283 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d03fd34d | 8284 | result = (wxString *)& ((arg1)->CanonicalName); |
d14a1e28 RD |
8285 | |
8286 | { | |
8287 | #if wxUSE_UNICODE | |
d03fd34d | 8288 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 8289 | #else |
d03fd34d | 8290 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
8291 | #endif |
8292 | } | |
8293 | return resultobj; | |
8294 | fail: | |
8295 | return NULL; | |
8296 | } | |
8297 | ||
8298 | ||
8299 | static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8300 | PyObject *resultobj; | |
8301 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
d03fd34d | 8302 | wxString *arg2 = (wxString *) 0 ; |
d14a1e28 RD |
8303 | PyObject * obj0 = 0 ; |
8304 | PyObject * obj1 = 0 ; | |
8305 | char *kwnames[] = { | |
8306 | (char *) "self",(char *) "Description", NULL | |
8307 | }; | |
8308 | ||
8309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail; | |
8310 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d03fd34d RD |
8311 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8312 | if (arg1) (arg1)->Description = *arg2; | |
d14a1e28 RD |
8313 | |
8314 | Py_INCREF(Py_None); resultobj = Py_None; | |
8315 | return resultobj; | |
8316 | fail: | |
8317 | return NULL; | |
8318 | } | |
8319 | ||
8320 | ||
8321 | static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8322 | PyObject *resultobj; | |
8323 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
d03fd34d | 8324 | wxString *result; |
d14a1e28 RD |
8325 | PyObject * obj0 = 0 ; |
8326 | char *kwnames[] = { | |
8327 | (char *) "self", NULL | |
8328 | }; | |
8329 | ||
8330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail; | |
8331 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d03fd34d | 8332 | result = (wxString *)& ((arg1)->Description); |
d14a1e28 RD |
8333 | |
8334 | { | |
8335 | #if wxUSE_UNICODE | |
d03fd34d | 8336 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 8337 | #else |
d03fd34d | 8338 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
8339 | #endif |
8340 | } | |
8341 | return resultobj; | |
8342 | fail: | |
8343 | return NULL; | |
8344 | } | |
8345 | ||
8346 | ||
8347 | static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) { | |
8348 | PyObject *obj; | |
8349 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8350 | SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj); | |
8351 | Py_INCREF(obj); | |
8352 | return Py_BuildValue((char *)""); | |
8353 | } | |
8354 | static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8355 | PyObject *resultobj; | |
8356 | int arg1 = (int) wxLANGUAGE_DEFAULT ; | |
8357 | int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
8358 | wxLocale *result; | |
8359 | char *kwnames[] = { | |
8360 | (char *) "language",(char *) "flags", NULL | |
8361 | }; | |
8362 | ||
8363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_Locale",kwnames,&arg1,&arg2)) goto fail; | |
8364 | { | |
8365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8366 | result = (wxLocale *)new wxLocale(arg1,arg2); | |
8367 | ||
8368 | wxPyEndAllowThreads(__tstate); | |
8369 | if (PyErr_Occurred()) SWIG_fail; | |
8370 | } | |
8371 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 1); | |
8372 | return resultobj; | |
8373 | fail: | |
8374 | return NULL; | |
8375 | } | |
8376 | ||
8377 | ||
8378 | static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8379 | PyObject *resultobj; | |
8380 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8381 | PyObject * obj0 = 0 ; | |
8382 | char *kwnames[] = { | |
8383 | (char *) "self", NULL | |
8384 | }; | |
8385 | ||
8386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail; | |
8387 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8388 | { | |
8389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8390 | delete arg1; | |
8391 | ||
8392 | wxPyEndAllowThreads(__tstate); | |
8393 | if (PyErr_Occurred()) SWIG_fail; | |
8394 | } | |
8395 | Py_INCREF(Py_None); resultobj = Py_None; | |
8396 | return resultobj; | |
8397 | fail: | |
8398 | return NULL; | |
8399 | } | |
8400 | ||
8401 | ||
8402 | static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8403 | PyObject *resultobj; | |
8404 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8405 | wxString *arg2 = 0 ; | |
8406 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
8407 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
8408 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
8409 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
423f194a RD |
8410 | bool arg5 = (bool) True ; |
8411 | bool arg6 = (bool) False ; | |
d14a1e28 | 8412 | bool result; |
423f194a RD |
8413 | bool temp2 = False ; |
8414 | bool temp3 = False ; | |
8415 | bool temp4 = False ; | |
d14a1e28 RD |
8416 | PyObject * obj0 = 0 ; |
8417 | PyObject * obj1 = 0 ; | |
8418 | PyObject * obj2 = 0 ; | |
8419 | PyObject * obj3 = 0 ; | |
8420 | PyObject * obj4 = 0 ; | |
8421 | PyObject * obj5 = 0 ; | |
8422 | char *kwnames[] = { | |
8423 | (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL | |
8424 | }; | |
8425 | ||
8426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
8427 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8428 | { | |
8429 | arg2 = wxString_in_helper(obj1); | |
8430 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8431 | temp2 = True; |
d14a1e28 RD |
8432 | } |
8433 | if (obj2) { | |
8434 | { | |
8435 | arg3 = wxString_in_helper(obj2); | |
8436 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 8437 | temp3 = True; |
d14a1e28 RD |
8438 | } |
8439 | } | |
8440 | if (obj3) { | |
8441 | { | |
8442 | arg4 = wxString_in_helper(obj3); | |
8443 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 8444 | temp4 = True; |
d14a1e28 RD |
8445 | } |
8446 | } | |
8447 | if (obj4) { | |
8448 | arg5 = PyInt_AsLong(obj4) ? true : false; | |
8449 | if (PyErr_Occurred()) SWIG_fail; | |
8450 | } | |
8451 | if (obj5) { | |
8452 | arg6 = PyInt_AsLong(obj5) ? true : false; | |
8453 | if (PyErr_Occurred()) SWIG_fail; | |
8454 | } | |
8455 | { | |
8456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8457 | result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6); | |
8458 | ||
8459 | wxPyEndAllowThreads(__tstate); | |
8460 | if (PyErr_Occurred()) SWIG_fail; | |
8461 | } | |
8462 | resultobj = PyInt_FromLong((long)result); | |
8463 | { | |
8464 | if (temp2) | |
8465 | delete arg2; | |
8466 | } | |
8467 | { | |
8468 | if (temp3) | |
8469 | delete arg3; | |
8470 | } | |
8471 | { | |
8472 | if (temp4) | |
8473 | delete arg4; | |
8474 | } | |
8475 | return resultobj; | |
8476 | fail: | |
8477 | { | |
8478 | if (temp2) | |
8479 | delete arg2; | |
8480 | } | |
8481 | { | |
8482 | if (temp3) | |
8483 | delete arg3; | |
8484 | } | |
8485 | { | |
8486 | if (temp4) | |
8487 | delete arg4; | |
8488 | } | |
8489 | return NULL; | |
8490 | } | |
8491 | ||
8492 | ||
8493 | static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8494 | PyObject *resultobj; | |
8495 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8496 | int arg2 = (int) wxLANGUAGE_DEFAULT ; | |
8497 | int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
8498 | bool result; | |
8499 | PyObject * obj0 = 0 ; | |
8500 | char *kwnames[] = { | |
8501 | (char *) "self",(char *) "language",(char *) "flags", NULL | |
8502 | }; | |
8503 | ||
8504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:Locale_Init2",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
8505 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8506 | { | |
8507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8508 | result = (bool)(arg1)->Init(arg2,arg3); | |
8509 | ||
8510 | wxPyEndAllowThreads(__tstate); | |
8511 | if (PyErr_Occurred()) SWIG_fail; | |
8512 | } | |
8513 | resultobj = PyInt_FromLong((long)result); | |
8514 | return resultobj; | |
8515 | fail: | |
8516 | return NULL; | |
8517 | } | |
8518 | ||
8519 | ||
8520 | static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8521 | PyObject *resultobj; | |
8522 | int result; | |
8523 | char *kwnames[] = { | |
8524 | NULL | |
8525 | }; | |
8526 | ||
8527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail; | |
8528 | { | |
8529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8530 | result = (int)wxLocale::GetSystemLanguage(); | |
8531 | ||
8532 | wxPyEndAllowThreads(__tstate); | |
8533 | if (PyErr_Occurred()) SWIG_fail; | |
8534 | } | |
8535 | resultobj = PyInt_FromLong((long)result); | |
8536 | return resultobj; | |
8537 | fail: | |
8538 | return NULL; | |
8539 | } | |
8540 | ||
8541 | ||
8542 | static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8543 | PyObject *resultobj; | |
8544 | int result; | |
8545 | char *kwnames[] = { | |
8546 | NULL | |
8547 | }; | |
8548 | ||
8549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail; | |
8550 | { | |
8551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8552 | result = (int)wxLocale::GetSystemEncoding(); | |
8553 | ||
8554 | wxPyEndAllowThreads(__tstate); | |
8555 | if (PyErr_Occurred()) SWIG_fail; | |
8556 | } | |
8557 | resultobj = PyInt_FromLong((long)result); | |
8558 | return resultobj; | |
8559 | fail: | |
8560 | return NULL; | |
8561 | } | |
8562 | ||
8563 | ||
8564 | static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8565 | PyObject *resultobj; | |
8566 | wxString result; | |
8567 | char *kwnames[] = { | |
8568 | NULL | |
8569 | }; | |
8570 | ||
8571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail; | |
8572 | { | |
8573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8574 | result = wxLocale::GetSystemEncodingName(); | |
8575 | ||
8576 | wxPyEndAllowThreads(__tstate); | |
8577 | if (PyErr_Occurred()) SWIG_fail; | |
8578 | } | |
8579 | { | |
8580 | #if wxUSE_UNICODE | |
8581 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8582 | #else | |
8583 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8584 | #endif | |
8585 | } | |
8586 | return resultobj; | |
8587 | fail: | |
8588 | return NULL; | |
8589 | } | |
8590 | ||
8591 | ||
8592 | static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8593 | PyObject *resultobj; | |
8594 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8595 | bool result; | |
8596 | PyObject * obj0 = 0 ; | |
8597 | char *kwnames[] = { | |
8598 | (char *) "self", NULL | |
8599 | }; | |
8600 | ||
8601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail; | |
8602 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8603 | { | |
8604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8605 | result = (bool)((wxLocale const *)arg1)->IsOk(); | |
8606 | ||
8607 | wxPyEndAllowThreads(__tstate); | |
8608 | if (PyErr_Occurred()) SWIG_fail; | |
8609 | } | |
8610 | resultobj = PyInt_FromLong((long)result); | |
8611 | return resultobj; | |
8612 | fail: | |
8613 | return NULL; | |
8614 | } | |
8615 | ||
8616 | ||
8617 | static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8618 | PyObject *resultobj; | |
8619 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8620 | wxString result; | |
8621 | PyObject * obj0 = 0 ; | |
8622 | char *kwnames[] = { | |
8623 | (char *) "self", NULL | |
8624 | }; | |
8625 | ||
8626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail; | |
8627 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8628 | { | |
8629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8630 | result = ((wxLocale const *)arg1)->GetLocale(); | |
8631 | ||
8632 | wxPyEndAllowThreads(__tstate); | |
8633 | if (PyErr_Occurred()) SWIG_fail; | |
8634 | } | |
8635 | { | |
8636 | #if wxUSE_UNICODE | |
8637 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8638 | #else | |
8639 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8640 | #endif | |
8641 | } | |
8642 | return resultobj; | |
8643 | fail: | |
8644 | return NULL; | |
8645 | } | |
8646 | ||
8647 | ||
8648 | static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8649 | PyObject *resultobj; | |
8650 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8651 | int result; | |
8652 | PyObject * obj0 = 0 ; | |
8653 | char *kwnames[] = { | |
8654 | (char *) "self", NULL | |
8655 | }; | |
8656 | ||
8657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail; | |
8658 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8659 | { | |
8660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8661 | result = (int)((wxLocale const *)arg1)->GetLanguage(); | |
8662 | ||
8663 | wxPyEndAllowThreads(__tstate); | |
8664 | if (PyErr_Occurred()) SWIG_fail; | |
8665 | } | |
8666 | resultobj = PyInt_FromLong((long)result); | |
8667 | return resultobj; | |
8668 | fail: | |
8669 | return NULL; | |
8670 | } | |
8671 | ||
8672 | ||
8673 | static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8674 | PyObject *resultobj; | |
8675 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8676 | wxString result; | |
8677 | PyObject * obj0 = 0 ; | |
8678 | char *kwnames[] = { | |
8679 | (char *) "self", NULL | |
8680 | }; | |
8681 | ||
8682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail; | |
8683 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8684 | { | |
8685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8686 | result = ((wxLocale const *)arg1)->GetSysName(); | |
8687 | ||
8688 | wxPyEndAllowThreads(__tstate); | |
8689 | if (PyErr_Occurred()) SWIG_fail; | |
8690 | } | |
8691 | { | |
8692 | #if wxUSE_UNICODE | |
8693 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8694 | #else | |
8695 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8696 | #endif | |
8697 | } | |
8698 | return resultobj; | |
8699 | fail: | |
8700 | return NULL; | |
8701 | } | |
8702 | ||
8703 | ||
8704 | static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8705 | PyObject *resultobj; | |
8706 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8707 | wxString result; | |
8708 | PyObject * obj0 = 0 ; | |
8709 | char *kwnames[] = { | |
8710 | (char *) "self", NULL | |
8711 | }; | |
8712 | ||
8713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail; | |
8714 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8715 | { | |
8716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8717 | result = ((wxLocale const *)arg1)->GetCanonicalName(); | |
8718 | ||
8719 | wxPyEndAllowThreads(__tstate); | |
8720 | if (PyErr_Occurred()) SWIG_fail; | |
8721 | } | |
8722 | { | |
8723 | #if wxUSE_UNICODE | |
8724 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8725 | #else | |
8726 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8727 | #endif | |
8728 | } | |
8729 | return resultobj; | |
8730 | fail: | |
8731 | return NULL; | |
8732 | } | |
8733 | ||
8734 | ||
8735 | static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8736 | PyObject *resultobj; | |
8737 | wxString *arg1 = 0 ; | |
423f194a | 8738 | bool temp1 = False ; |
d14a1e28 RD |
8739 | PyObject * obj0 = 0 ; |
8740 | char *kwnames[] = { | |
8741 | (char *) "prefix", NULL | |
8742 | }; | |
8743 | ||
8744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail; | |
8745 | { | |
8746 | arg1 = wxString_in_helper(obj0); | |
8747 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 8748 | temp1 = True; |
d14a1e28 RD |
8749 | } |
8750 | { | |
8751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8752 | wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1); | |
8753 | ||
8754 | wxPyEndAllowThreads(__tstate); | |
8755 | if (PyErr_Occurred()) SWIG_fail; | |
8756 | } | |
8757 | Py_INCREF(Py_None); resultobj = Py_None; | |
8758 | { | |
8759 | if (temp1) | |
8760 | delete arg1; | |
8761 | } | |
8762 | return resultobj; | |
8763 | fail: | |
8764 | { | |
8765 | if (temp1) | |
8766 | delete arg1; | |
8767 | } | |
8768 | return NULL; | |
8769 | } | |
8770 | ||
8771 | ||
8772 | static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8773 | PyObject *resultobj; | |
8774 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8775 | wxString *arg2 = 0 ; | |
8776 | bool result; | |
423f194a | 8777 | bool temp2 = False ; |
d14a1e28 RD |
8778 | PyObject * obj0 = 0 ; |
8779 | PyObject * obj1 = 0 ; | |
8780 | char *kwnames[] = { | |
8781 | (char *) "self",(char *) "szDomain", NULL | |
8782 | }; | |
8783 | ||
8784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail; | |
8785 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8786 | { | |
8787 | arg2 = wxString_in_helper(obj1); | |
8788 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8789 | temp2 = True; |
d14a1e28 RD |
8790 | } |
8791 | { | |
8792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8793 | result = (bool)(arg1)->AddCatalog((wxString const &)*arg2); | |
8794 | ||
8795 | wxPyEndAllowThreads(__tstate); | |
8796 | if (PyErr_Occurred()) SWIG_fail; | |
8797 | } | |
8798 | resultobj = PyInt_FromLong((long)result); | |
8799 | { | |
8800 | if (temp2) | |
8801 | delete arg2; | |
8802 | } | |
8803 | return resultobj; | |
8804 | fail: | |
8805 | { | |
8806 | if (temp2) | |
8807 | delete arg2; | |
8808 | } | |
8809 | return NULL; | |
8810 | } | |
8811 | ||
8812 | ||
8813 | static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8814 | PyObject *resultobj; | |
8815 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8816 | wxString *arg2 = 0 ; | |
8817 | bool result; | |
423f194a | 8818 | bool temp2 = False ; |
d14a1e28 RD |
8819 | PyObject * obj0 = 0 ; |
8820 | PyObject * obj1 = 0 ; | |
8821 | char *kwnames[] = { | |
8822 | (char *) "self",(char *) "szDomain", NULL | |
8823 | }; | |
8824 | ||
8825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail; | |
8826 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8827 | { | |
8828 | arg2 = wxString_in_helper(obj1); | |
8829 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8830 | temp2 = True; |
d14a1e28 RD |
8831 | } |
8832 | { | |
8833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8834 | result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2); | |
8835 | ||
8836 | wxPyEndAllowThreads(__tstate); | |
8837 | if (PyErr_Occurred()) SWIG_fail; | |
8838 | } | |
8839 | resultobj = PyInt_FromLong((long)result); | |
8840 | { | |
8841 | if (temp2) | |
8842 | delete arg2; | |
8843 | } | |
8844 | return resultobj; | |
8845 | fail: | |
8846 | { | |
8847 | if (temp2) | |
8848 | delete arg2; | |
8849 | } | |
8850 | return NULL; | |
8851 | } | |
8852 | ||
8853 | ||
8854 | static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8855 | PyObject *resultobj; | |
8856 | int arg1 ; | |
8857 | wxLanguageInfo *result; | |
8858 | char *kwnames[] = { | |
8859 | (char *) "lang", NULL | |
8860 | }; | |
8861 | ||
8862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Locale_GetLanguageInfo",kwnames,&arg1)) goto fail; | |
8863 | { | |
8864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8865 | result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1); | |
8866 | ||
8867 | wxPyEndAllowThreads(__tstate); | |
8868 | if (PyErr_Occurred()) SWIG_fail; | |
8869 | } | |
8870 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0); | |
8871 | return resultobj; | |
8872 | fail: | |
8873 | return NULL; | |
8874 | } | |
8875 | ||
8876 | ||
8877 | static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8878 | PyObject *resultobj; | |
8879 | int arg1 ; | |
8880 | wxString result; | |
8881 | char *kwnames[] = { | |
8882 | (char *) "lang", NULL | |
8883 | }; | |
8884 | ||
8885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Locale_GetLanguageName",kwnames,&arg1)) goto fail; | |
8886 | { | |
8887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8888 | result = wxLocale::GetLanguageName(arg1); | |
8889 | ||
8890 | wxPyEndAllowThreads(__tstate); | |
8891 | if (PyErr_Occurred()) SWIG_fail; | |
8892 | } | |
8893 | { | |
8894 | #if wxUSE_UNICODE | |
8895 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8896 | #else | |
8897 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8898 | #endif | |
8899 | } | |
8900 | return resultobj; | |
8901 | fail: | |
8902 | return NULL; | |
8903 | } | |
8904 | ||
8905 | ||
8906 | static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8907 | PyObject *resultobj; | |
8908 | wxString *arg1 = 0 ; | |
8909 | wxLanguageInfo *result; | |
423f194a | 8910 | bool temp1 = False ; |
d14a1e28 RD |
8911 | PyObject * obj0 = 0 ; |
8912 | char *kwnames[] = { | |
8913 | (char *) "locale", NULL | |
8914 | }; | |
8915 | ||
8916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail; | |
8917 | { | |
8918 | arg1 = wxString_in_helper(obj0); | |
8919 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 8920 | temp1 = True; |
d14a1e28 RD |
8921 | } |
8922 | { | |
8923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8924 | result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1); | |
8925 | ||
8926 | wxPyEndAllowThreads(__tstate); | |
8927 | if (PyErr_Occurred()) SWIG_fail; | |
8928 | } | |
8929 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0); | |
8930 | { | |
8931 | if (temp1) | |
8932 | delete arg1; | |
8933 | } | |
8934 | return resultobj; | |
8935 | fail: | |
8936 | { | |
8937 | if (temp1) | |
8938 | delete arg1; | |
8939 | } | |
8940 | return NULL; | |
8941 | } | |
8942 | ||
8943 | ||
8944 | static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8945 | PyObject *resultobj; | |
8946 | wxLanguageInfo *arg1 = 0 ; | |
8947 | PyObject * obj0 = 0 ; | |
8948 | char *kwnames[] = { | |
8949 | (char *) "info", NULL | |
8950 | }; | |
8951 | ||
8952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail; | |
8953 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8954 | if (arg1 == NULL) { | |
8955 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8956 | } | |
8957 | { | |
8958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8959 | wxLocale::AddLanguage((wxLanguageInfo const &)*arg1); | |
8960 | ||
8961 | wxPyEndAllowThreads(__tstate); | |
8962 | if (PyErr_Occurred()) SWIG_fail; | |
8963 | } | |
8964 | Py_INCREF(Py_None); resultobj = Py_None; | |
8965 | return resultobj; | |
8966 | fail: | |
8967 | return NULL; | |
8968 | } | |
8969 | ||
8970 | ||
8971 | static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8972 | PyObject *resultobj; | |
8973 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8974 | wxString *arg2 = 0 ; | |
8975 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
8976 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
8977 | wxString result; | |
423f194a RD |
8978 | bool temp2 = False ; |
8979 | bool temp3 = False ; | |
d14a1e28 RD |
8980 | PyObject * obj0 = 0 ; |
8981 | PyObject * obj1 = 0 ; | |
8982 | PyObject * obj2 = 0 ; | |
8983 | char *kwnames[] = { | |
8984 | (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL | |
8985 | }; | |
8986 | ||
8987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8988 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8989 | { | |
8990 | arg2 = wxString_in_helper(obj1); | |
8991 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8992 | temp2 = True; |
d14a1e28 RD |
8993 | } |
8994 | if (obj2) { | |
8995 | { | |
8996 | arg3 = wxString_in_helper(obj2); | |
8997 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 8998 | temp3 = True; |
d14a1e28 RD |
8999 | } |
9000 | } | |
9001 | { | |
9002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9003 | result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3); | |
9004 | ||
9005 | wxPyEndAllowThreads(__tstate); | |
9006 | if (PyErr_Occurred()) SWIG_fail; | |
9007 | } | |
9008 | { | |
9009 | #if wxUSE_UNICODE | |
9010 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9011 | #else | |
9012 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9013 | #endif | |
9014 | } | |
9015 | { | |
9016 | if (temp2) | |
9017 | delete arg2; | |
9018 | } | |
9019 | { | |
9020 | if (temp3) | |
9021 | delete arg3; | |
9022 | } | |
9023 | return resultobj; | |
9024 | fail: | |
9025 | { | |
9026 | if (temp2) | |
9027 | delete arg2; | |
9028 | } | |
9029 | { | |
9030 | if (temp3) | |
9031 | delete arg3; | |
9032 | } | |
9033 | return NULL; | |
9034 | } | |
9035 | ||
9036 | ||
9037 | static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9038 | PyObject *resultobj; | |
9039 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9040 | wxString *result; | |
9041 | PyObject * obj0 = 0 ; | |
9042 | char *kwnames[] = { | |
9043 | (char *) "self", NULL | |
9044 | }; | |
9045 | ||
9046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail; | |
9047 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9048 | { | |
9049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9050 | { | |
9051 | wxString const &_result_ref = ((wxLocale const *)arg1)->GetName(); | |
9052 | result = (wxString *) &_result_ref; | |
9053 | } | |
9054 | ||
9055 | wxPyEndAllowThreads(__tstate); | |
9056 | if (PyErr_Occurred()) SWIG_fail; | |
9057 | } | |
f0983263 RD |
9058 | { |
9059 | #if wxUSE_UNICODE | |
9060 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
9061 | #else | |
9062 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
9063 | #endif | |
9064 | } | |
d14a1e28 RD |
9065 | return resultobj; |
9066 | fail: | |
9067 | return NULL; | |
9068 | } | |
9069 | ||
9070 | ||
9071 | static PyObject * Locale_swigregister(PyObject *self, PyObject *args) { | |
9072 | PyObject *obj; | |
9073 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9074 | SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj); | |
9075 | Py_INCREF(obj); | |
9076 | return Py_BuildValue((char *)""); | |
9077 | } | |
9078 | static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9079 | PyObject *resultobj; | |
9080 | wxLocale *result; | |
9081 | char *kwnames[] = { | |
9082 | NULL | |
9083 | }; | |
9084 | ||
9085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail; | |
9086 | { | |
9087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9088 | result = (wxLocale *)wxGetLocale(); | |
9089 | ||
9090 | wxPyEndAllowThreads(__tstate); | |
9091 | if (PyErr_Occurred()) SWIG_fail; | |
9092 | } | |
9093 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 0); | |
9094 | return resultobj; | |
9095 | fail: | |
9096 | return NULL; | |
9097 | } | |
9098 | ||
9099 | ||
9100 | static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) { | |
9101 | PyObject *resultobj; | |
9102 | wxString *arg1 = 0 ; | |
9103 | wxString result; | |
423f194a | 9104 | bool temp1 = False ; |
d14a1e28 RD |
9105 | PyObject * obj0 = 0 ; |
9106 | ||
9107 | if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail; | |
9108 | { | |
9109 | arg1 = wxString_in_helper(obj0); | |
9110 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 9111 | temp1 = True; |
d14a1e28 RD |
9112 | } |
9113 | { | |
9114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9115 | result = wxGetTranslation((wxString const &)*arg1); | |
9116 | ||
9117 | wxPyEndAllowThreads(__tstate); | |
9118 | if (PyErr_Occurred()) SWIG_fail; | |
9119 | } | |
9120 | { | |
9121 | #if wxUSE_UNICODE | |
9122 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9123 | #else | |
9124 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9125 | #endif | |
9126 | } | |
9127 | { | |
9128 | if (temp1) | |
9129 | delete arg1; | |
9130 | } | |
9131 | return resultobj; | |
9132 | fail: | |
9133 | { | |
9134 | if (temp1) | |
9135 | delete arg1; | |
9136 | } | |
9137 | return NULL; | |
9138 | } | |
9139 | ||
9140 | ||
9141 | static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) { | |
9142 | PyObject *resultobj; | |
9143 | wxString *arg1 = 0 ; | |
9144 | wxString *arg2 = 0 ; | |
9145 | size_t arg3 ; | |
9146 | wxString result; | |
423f194a RD |
9147 | bool temp1 = False ; |
9148 | bool temp2 = False ; | |
d14a1e28 RD |
9149 | PyObject * obj0 = 0 ; |
9150 | PyObject * obj1 = 0 ; | |
9151 | PyObject * obj2 = 0 ; | |
9152 | ||
9153 | if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail; | |
9154 | { | |
9155 | arg1 = wxString_in_helper(obj0); | |
9156 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 9157 | temp1 = True; |
d14a1e28 RD |
9158 | } |
9159 | { | |
9160 | arg2 = wxString_in_helper(obj1); | |
9161 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9162 | temp2 = True; |
d14a1e28 RD |
9163 | } |
9164 | arg3 = (size_t) PyInt_AsLong(obj2); | |
9165 | if (PyErr_Occurred()) SWIG_fail; | |
9166 | { | |
9167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9168 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
9169 | ||
9170 | wxPyEndAllowThreads(__tstate); | |
9171 | if (PyErr_Occurred()) SWIG_fail; | |
9172 | } | |
9173 | { | |
9174 | #if wxUSE_UNICODE | |
9175 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9176 | #else | |
9177 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9178 | #endif | |
9179 | } | |
9180 | { | |
9181 | if (temp1) | |
9182 | delete arg1; | |
9183 | } | |
9184 | { | |
9185 | if (temp2) | |
9186 | delete arg2; | |
9187 | } | |
9188 | return resultobj; | |
9189 | fail: | |
9190 | { | |
9191 | if (temp1) | |
9192 | delete arg1; | |
9193 | } | |
9194 | { | |
9195 | if (temp2) | |
9196 | delete arg2; | |
9197 | } | |
9198 | return NULL; | |
9199 | } | |
9200 | ||
9201 | ||
9202 | static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) { | |
9203 | int argc; | |
9204 | PyObject *argv[4]; | |
9205 | int ii; | |
9206 | ||
9207 | argc = PyObject_Length(args); | |
9208 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
9209 | argv[ii] = PyTuple_GetItem(args,ii); | |
9210 | } | |
9211 | if (argc == 1) { | |
9212 | int _v; | |
9213 | { | |
9214 | void *ptr; | |
9215 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) { | |
9216 | _v = 0; | |
9217 | PyErr_Clear(); | |
9218 | } else { | |
9219 | _v = 1; | |
9220 | } | |
9221 | } | |
9222 | if (_v) { | |
9223 | return _wrap_GetTranslation__SWIG_0(self,args); | |
9224 | } | |
9225 | } | |
9226 | if (argc == 3) { | |
9227 | int _v; | |
9228 | { | |
9229 | void *ptr; | |
9230 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) { | |
9231 | _v = 0; | |
9232 | PyErr_Clear(); | |
9233 | } else { | |
9234 | _v = 1; | |
9235 | } | |
9236 | } | |
9237 | if (_v) { | |
9238 | { | |
9239 | void *ptr; | |
9240 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) { | |
9241 | _v = 0; | |
9242 | PyErr_Clear(); | |
9243 | } else { | |
9244 | _v = 1; | |
9245 | } | |
9246 | } | |
9247 | if (_v) { | |
9248 | { | |
9249 | _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0; | |
9250 | } | |
9251 | if (_v) { | |
9252 | return _wrap_GetTranslation__SWIG_1(self,args); | |
9253 | } | |
9254 | } | |
9255 | } | |
9256 | } | |
9257 | ||
9258 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'"); | |
9259 | return NULL; | |
9260 | } | |
9261 | ||
9262 | ||
9263 | static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9264 | PyObject *resultobj; | |
9265 | wxEncodingConverter *result; | |
9266 | char *kwnames[] = { | |
9267 | NULL | |
9268 | }; | |
9269 | ||
9270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail; | |
9271 | { | |
9272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9273 | result = (wxEncodingConverter *)new wxEncodingConverter(); | |
9274 | ||
9275 | wxPyEndAllowThreads(__tstate); | |
9276 | if (PyErr_Occurred()) SWIG_fail; | |
9277 | } | |
9278 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEncodingConverter, 1); | |
9279 | return resultobj; | |
9280 | fail: | |
9281 | return NULL; | |
9282 | } | |
9283 | ||
9284 | ||
9285 | static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9286 | PyObject *resultobj; | |
9287 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
9288 | PyObject * obj0 = 0 ; | |
9289 | char *kwnames[] = { | |
9290 | (char *) "self", NULL | |
9291 | }; | |
9292 | ||
9293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail; | |
9294 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9295 | { | |
9296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9297 | delete arg1; | |
9298 | ||
9299 | wxPyEndAllowThreads(__tstate); | |
9300 | if (PyErr_Occurred()) SWIG_fail; | |
9301 | } | |
9302 | Py_INCREF(Py_None); resultobj = Py_None; | |
9303 | return resultobj; | |
9304 | fail: | |
9305 | return NULL; | |
9306 | } | |
9307 | ||
9308 | ||
9309 | static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9310 | PyObject *resultobj; | |
9311 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
9312 | int arg2 ; | |
9313 | int arg3 ; | |
9314 | int arg4 = (int) wxCONVERT_STRICT ; | |
9315 | bool result; | |
9316 | PyObject * obj0 = 0 ; | |
9317 | char *kwnames[] = { | |
9318 | (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL | |
9319 | }; | |
9320 | ||
9321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|i:EncodingConverter_Init",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
9322 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9323 | { | |
9324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9325 | result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4); | |
9326 | ||
9327 | wxPyEndAllowThreads(__tstate); | |
9328 | if (PyErr_Occurred()) SWIG_fail; | |
9329 | } | |
9330 | resultobj = PyInt_FromLong((long)result); | |
9331 | return resultobj; | |
9332 | fail: | |
9333 | return NULL; | |
9334 | } | |
9335 | ||
9336 | ||
9337 | static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9338 | PyObject *resultobj; | |
9339 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
9340 | wxString *arg2 = 0 ; | |
9341 | wxString result; | |
423f194a | 9342 | bool temp2 = False ; |
d14a1e28 RD |
9343 | PyObject * obj0 = 0 ; |
9344 | PyObject * obj1 = 0 ; | |
9345 | char *kwnames[] = { | |
9346 | (char *) "self",(char *) "input", NULL | |
9347 | }; | |
9348 | ||
9349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail; | |
9350 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9351 | { | |
9352 | arg2 = wxString_in_helper(obj1); | |
9353 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9354 | temp2 = True; |
d14a1e28 RD |
9355 | } |
9356 | { | |
9357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9358 | result = (arg1)->Convert((wxString const &)*arg2); | |
9359 | ||
9360 | wxPyEndAllowThreads(__tstate); | |
9361 | if (PyErr_Occurred()) SWIG_fail; | |
9362 | } | |
9363 | { | |
9364 | #if wxUSE_UNICODE | |
9365 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9366 | #else | |
9367 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9368 | #endif | |
9369 | } | |
9370 | { | |
9371 | if (temp2) | |
9372 | delete arg2; | |
9373 | } | |
9374 | return resultobj; | |
9375 | fail: | |
9376 | { | |
9377 | if (temp2) | |
9378 | delete arg2; | |
9379 | } | |
9380 | return NULL; | |
9381 | } | |
9382 | ||
9383 | ||
9384 | static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9385 | PyObject *resultobj; | |
9386 | int arg1 ; | |
9387 | int arg2 = (int) wxPLATFORM_CURRENT ; | |
9388 | wxFontEncodingArray result; | |
9389 | char *kwnames[] = { | |
9390 | (char *) "enc",(char *) "platform", NULL | |
9391 | }; | |
9392 | ||
9393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|i:EncodingConverter_GetPlatformEquivalents",kwnames,&arg1,&arg2)) goto fail; | |
9394 | { | |
9395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9396 | result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2); | |
9397 | ||
9398 | wxPyEndAllowThreads(__tstate); | |
9399 | if (PyErr_Occurred()) SWIG_fail; | |
9400 | } | |
9401 | { | |
9402 | resultobj = PyList_New(0); | |
9403 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
9404 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
9405 | PyList_Append(resultobj, number); | |
9406 | Py_DECREF(number); | |
9407 | } | |
9408 | } | |
9409 | return resultobj; | |
9410 | fail: | |
9411 | return NULL; | |
9412 | } | |
9413 | ||
9414 | ||
9415 | static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9416 | PyObject *resultobj; | |
9417 | int arg1 ; | |
9418 | wxFontEncodingArray result; | |
9419 | char *kwnames[] = { | |
9420 | (char *) "enc", NULL | |
9421 | }; | |
9422 | ||
9423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:EncodingConverter_GetAllEquivalents",kwnames,&arg1)) goto fail; | |
9424 | { | |
9425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9426 | result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1); | |
9427 | ||
9428 | wxPyEndAllowThreads(__tstate); | |
9429 | if (PyErr_Occurred()) SWIG_fail; | |
9430 | } | |
9431 | { | |
9432 | resultobj = PyList_New(0); | |
9433 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
9434 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
9435 | PyList_Append(resultobj, number); | |
9436 | Py_DECREF(number); | |
9437 | } | |
9438 | } | |
9439 | return resultobj; | |
9440 | fail: | |
9441 | return NULL; | |
9442 | } | |
9443 | ||
9444 | ||
9445 | static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9446 | PyObject *resultobj; | |
9447 | int arg1 ; | |
9448 | int arg2 ; | |
9449 | bool result; | |
9450 | char *kwnames[] = { | |
9451 | (char *) "encIn",(char *) "encOut", NULL | |
9452 | }; | |
9453 | ||
9454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii:EncodingConverter_CanConvert",kwnames,&arg1,&arg2)) goto fail; | |
9455 | { | |
9456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9457 | result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2); | |
9458 | ||
9459 | wxPyEndAllowThreads(__tstate); | |
9460 | if (PyErr_Occurred()) SWIG_fail; | |
9461 | } | |
9462 | resultobj = PyInt_FromLong((long)result); | |
9463 | return resultobj; | |
9464 | fail: | |
9465 | return NULL; | |
9466 | } | |
9467 | ||
9468 | ||
9469 | static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) { | |
9470 | PyObject *obj; | |
9471 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9472 | SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj); | |
9473 | Py_INCREF(obj); | |
9474 | return Py_BuildValue((char *)""); | |
9475 | } | |
9476 | static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9477 | PyObject *resultobj; | |
9478 | wxDC *arg1 = (wxDC *) 0 ; | |
9479 | PyObject * obj0 = 0 ; | |
9480 | char *kwnames[] = { | |
9481 | (char *) "self", NULL | |
9482 | }; | |
9483 | ||
9484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail; | |
9485 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9486 | { | |
9487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9488 | delete arg1; | |
9489 | ||
9490 | wxPyEndAllowThreads(__tstate); | |
9491 | if (PyErr_Occurred()) SWIG_fail; | |
9492 | } | |
9493 | Py_INCREF(Py_None); resultobj = Py_None; | |
9494 | return resultobj; | |
9495 | fail: | |
9496 | return NULL; | |
9497 | } | |
9498 | ||
9499 | ||
9500 | static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9501 | PyObject *resultobj; | |
9502 | wxDC *arg1 = (wxDC *) 0 ; | |
9503 | PyObject * obj0 = 0 ; | |
9504 | char *kwnames[] = { | |
9505 | (char *) "self", NULL | |
9506 | }; | |
9507 | ||
9508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail; | |
9509 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9510 | { | |
9511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9512 | (arg1)->BeginDrawing(); | |
9513 | ||
9514 | wxPyEndAllowThreads(__tstate); | |
9515 | if (PyErr_Occurred()) SWIG_fail; | |
9516 | } | |
9517 | Py_INCREF(Py_None); resultobj = Py_None; | |
9518 | return resultobj; | |
9519 | fail: | |
9520 | return NULL; | |
9521 | } | |
9522 | ||
9523 | ||
9524 | static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9525 | PyObject *resultobj; | |
9526 | wxDC *arg1 = (wxDC *) 0 ; | |
9527 | PyObject * obj0 = 0 ; | |
9528 | char *kwnames[] = { | |
9529 | (char *) "self", NULL | |
9530 | }; | |
9531 | ||
9532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail; | |
9533 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9534 | { | |
9535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9536 | (arg1)->EndDrawing(); | |
9537 | ||
9538 | wxPyEndAllowThreads(__tstate); | |
9539 | if (PyErr_Occurred()) SWIG_fail; | |
9540 | } | |
9541 | Py_INCREF(Py_None); resultobj = Py_None; | |
9542 | return resultobj; | |
9543 | fail: | |
9544 | return NULL; | |
9545 | } | |
9546 | ||
9547 | ||
9548 | static PyObject *_wrap_DC_FloodFillXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9549 | PyObject *resultobj; | |
9550 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
9551 | int arg2 ; |
9552 | int arg3 ; | |
d14a1e28 RD |
9553 | wxColour *arg4 = 0 ; |
9554 | int arg5 = (int) wxFLOOD_SURFACE ; | |
9555 | bool result; | |
9556 | wxColour temp4 ; | |
9557 | PyObject * obj0 = 0 ; | |
9558 | PyObject * obj3 = 0 ; | |
9559 | char *kwnames[] = { | |
9560 | (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL | |
9561 | }; | |
9562 | ||
9563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO|i:DC_FloodFillXY",kwnames,&obj0,&arg2,&arg3,&obj3,&arg5)) goto fail; | |
9564 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9565 | { | |
9566 | arg4 = &temp4; | |
9567 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
9568 | } | |
9569 | { | |
9570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9571 | result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); | |
9572 | ||
9573 | wxPyEndAllowThreads(__tstate); | |
9574 | if (PyErr_Occurred()) SWIG_fail; | |
9575 | } | |
9576 | resultobj = PyInt_FromLong((long)result); | |
9577 | return resultobj; | |
9578 | fail: | |
9579 | return NULL; | |
9580 | } | |
9581 | ||
9582 | ||
9583 | static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9584 | PyObject *resultobj; | |
9585 | wxDC *arg1 = (wxDC *) 0 ; | |
9586 | wxPoint *arg2 = 0 ; | |
9587 | wxColour *arg3 = 0 ; | |
9588 | int arg4 = (int) wxFLOOD_SURFACE ; | |
9589 | bool result; | |
9590 | wxPoint temp2 ; | |
9591 | wxColour temp3 ; | |
9592 | PyObject * obj0 = 0 ; | |
9593 | PyObject * obj1 = 0 ; | |
9594 | PyObject * obj2 = 0 ; | |
9595 | char *kwnames[] = { | |
9596 | (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL | |
9597 | }; | |
9598 | ||
9599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|i:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail; | |
9600 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9601 | { | |
9602 | arg2 = &temp2; | |
9603 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9604 | } | |
9605 | { | |
9606 | arg3 = &temp3; | |
9607 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
9608 | } | |
9609 | { | |
9610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9611 | result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); | |
9612 | ||
9613 | wxPyEndAllowThreads(__tstate); | |
9614 | if (PyErr_Occurred()) SWIG_fail; | |
9615 | } | |
9616 | resultobj = PyInt_FromLong((long)result); | |
9617 | return resultobj; | |
9618 | fail: | |
9619 | return NULL; | |
9620 | } | |
9621 | ||
9622 | ||
9623 | static PyObject *_wrap_DC_GetPixelXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9624 | PyObject *resultobj; | |
9625 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
9626 | int arg2 ; |
9627 | int arg3 ; | |
d14a1e28 RD |
9628 | wxColour result; |
9629 | PyObject * obj0 = 0 ; | |
9630 | char *kwnames[] = { | |
9631 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9632 | }; | |
9633 | ||
9634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_GetPixelXY",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
9635 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9636 | { | |
9637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9638 | result = wxDC_GetPixelXY(arg1,arg2,arg3); | |
9639 | ||
9640 | wxPyEndAllowThreads(__tstate); | |
9641 | if (PyErr_Occurred()) SWIG_fail; | |
9642 | } | |
9643 | { | |
9644 | wxColour * resultptr; | |
9645 | resultptr = new wxColour((wxColour &) result); | |
9646 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
9647 | } | |
9648 | return resultobj; | |
9649 | fail: | |
9650 | return NULL; | |
9651 | } | |
9652 | ||
9653 | ||
9654 | static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9655 | PyObject *resultobj; | |
9656 | wxDC *arg1 = (wxDC *) 0 ; | |
9657 | wxPoint *arg2 = 0 ; | |
9658 | wxColour result; | |
9659 | wxPoint temp2 ; | |
9660 | PyObject * obj0 = 0 ; | |
9661 | PyObject * obj1 = 0 ; | |
9662 | char *kwnames[] = { | |
9663 | (char *) "self",(char *) "pt", NULL | |
9664 | }; | |
9665 | ||
9666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail; | |
9667 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9668 | { | |
9669 | arg2 = &temp2; | |
9670 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9671 | } | |
9672 | { | |
9673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9674 | result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2); | |
9675 | ||
9676 | wxPyEndAllowThreads(__tstate); | |
9677 | if (PyErr_Occurred()) SWIG_fail; | |
9678 | } | |
9679 | { | |
9680 | wxColour * resultptr; | |
9681 | resultptr = new wxColour((wxColour &) result); | |
9682 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
9683 | } | |
9684 | return resultobj; | |
9685 | fail: | |
9686 | return NULL; | |
9687 | } | |
9688 | ||
9689 | ||
9690 | static PyObject *_wrap_DC_DrawLineXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9691 | PyObject *resultobj; | |
9692 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
9693 | int arg2 ; |
9694 | int arg3 ; | |
9695 | int arg4 ; | |
9696 | int arg5 ; | |
d14a1e28 RD |
9697 | PyObject * obj0 = 0 ; |
9698 | char *kwnames[] = { | |
9699 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
9700 | }; | |
9701 | ||
9702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawLineXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
9703 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9704 | { | |
9705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9706 | (arg1)->DrawLine(arg2,arg3,arg4,arg5); | |
9707 | ||
9708 | wxPyEndAllowThreads(__tstate); | |
9709 | if (PyErr_Occurred()) SWIG_fail; | |
9710 | } | |
9711 | Py_INCREF(Py_None); resultobj = Py_None; | |
9712 | return resultobj; | |
9713 | fail: | |
9714 | return NULL; | |
9715 | } | |
9716 | ||
9717 | ||
9718 | static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9719 | PyObject *resultobj; | |
9720 | wxDC *arg1 = (wxDC *) 0 ; | |
9721 | wxPoint *arg2 = 0 ; | |
9722 | wxPoint *arg3 = 0 ; | |
9723 | wxPoint temp2 ; | |
9724 | wxPoint temp3 ; | |
9725 | PyObject * obj0 = 0 ; | |
9726 | PyObject * obj1 = 0 ; | |
9727 | PyObject * obj2 = 0 ; | |
9728 | char *kwnames[] = { | |
9729 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL | |
9730 | }; | |
9731 | ||
9732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9733 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9734 | { | |
9735 | arg2 = &temp2; | |
9736 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9737 | } | |
9738 | { | |
9739 | arg3 = &temp3; | |
9740 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
9741 | } | |
9742 | { | |
9743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9744 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
9745 | ||
9746 | wxPyEndAllowThreads(__tstate); | |
9747 | if (PyErr_Occurred()) SWIG_fail; | |
9748 | } | |
9749 | Py_INCREF(Py_None); resultobj = Py_None; | |
9750 | return resultobj; | |
9751 | fail: | |
9752 | return NULL; | |
9753 | } | |
9754 | ||
9755 | ||
9756 | static PyObject *_wrap_DC_CrossHairXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9757 | PyObject *resultobj; | |
9758 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
9759 | int arg2 ; |
9760 | int arg3 ; | |
d14a1e28 RD |
9761 | PyObject * obj0 = 0 ; |
9762 | char *kwnames[] = { | |
9763 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9764 | }; | |
9765 | ||
9766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_CrossHairXY",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
9767 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9768 | { | |
9769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9770 | (arg1)->CrossHair(arg2,arg3); | |
9771 | ||
9772 | wxPyEndAllowThreads(__tstate); | |
9773 | if (PyErr_Occurred()) SWIG_fail; | |
9774 | } | |
9775 | Py_INCREF(Py_None); resultobj = Py_None; | |
9776 | return resultobj; | |
9777 | fail: | |
9778 | return NULL; | |
9779 | } | |
9780 | ||
9781 | ||
9782 | static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9783 | PyObject *resultobj; | |
9784 | wxDC *arg1 = (wxDC *) 0 ; | |
9785 | wxPoint *arg2 = 0 ; | |
9786 | wxPoint temp2 ; | |
9787 | PyObject * obj0 = 0 ; | |
9788 | PyObject * obj1 = 0 ; | |
9789 | char *kwnames[] = { | |
9790 | (char *) "self",(char *) "pt", NULL | |
9791 | }; | |
9792 | ||
9793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail; | |
9794 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9795 | { | |
9796 | arg2 = &temp2; | |
9797 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9798 | } | |
9799 | { | |
9800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9801 | (arg1)->CrossHair((wxPoint const &)*arg2); | |
9802 | ||
9803 | wxPyEndAllowThreads(__tstate); | |
9804 | if (PyErr_Occurred()) SWIG_fail; | |
9805 | } | |
9806 | Py_INCREF(Py_None); resultobj = Py_None; | |
9807 | return resultobj; | |
9808 | fail: | |
9809 | return NULL; | |
9810 | } | |
9811 | ||
9812 | ||
9813 | static PyObject *_wrap_DC_DrawArcXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9814 | PyObject *resultobj; | |
9815 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
9816 | int arg2 ; |
9817 | int arg3 ; | |
9818 | int arg4 ; | |
9819 | int arg5 ; | |
9820 | int arg6 ; | |
9821 | int arg7 ; | |
d14a1e28 RD |
9822 | PyObject * obj0 = 0 ; |
9823 | char *kwnames[] = { | |
9824 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL | |
9825 | }; | |
9826 | ||
9827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiiiii:DC_DrawArcXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7)) goto fail; | |
9828 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9829 | { | |
9830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9831 | (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
9832 | ||
9833 | wxPyEndAllowThreads(__tstate); | |
9834 | if (PyErr_Occurred()) SWIG_fail; | |
9835 | } | |
9836 | Py_INCREF(Py_None); resultobj = Py_None; | |
9837 | return resultobj; | |
9838 | fail: | |
9839 | return NULL; | |
9840 | } | |
9841 | ||
9842 | ||
9843 | static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9844 | PyObject *resultobj; | |
9845 | wxDC *arg1 = (wxDC *) 0 ; | |
9846 | wxPoint *arg2 = 0 ; | |
9847 | wxPoint *arg3 = 0 ; | |
9848 | wxPoint *arg4 = 0 ; | |
9849 | wxPoint temp2 ; | |
9850 | wxPoint temp3 ; | |
9851 | wxPoint temp4 ; | |
9852 | PyObject * obj0 = 0 ; | |
9853 | PyObject * obj1 = 0 ; | |
9854 | PyObject * obj2 = 0 ; | |
9855 | PyObject * obj3 = 0 ; | |
9856 | char *kwnames[] = { | |
9857 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL | |
9858 | }; | |
9859 | ||
9860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9861 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9862 | { | |
9863 | arg2 = &temp2; | |
9864 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9865 | } | |
9866 | { | |
9867 | arg3 = &temp3; | |
9868 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
9869 | } | |
9870 | { | |
9871 | arg4 = &temp4; | |
9872 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9873 | } | |
9874 | { | |
9875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9876 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
9877 | ||
9878 | wxPyEndAllowThreads(__tstate); | |
9879 | if (PyErr_Occurred()) SWIG_fail; | |
9880 | } | |
9881 | Py_INCREF(Py_None); resultobj = Py_None; | |
9882 | return resultobj; | |
9883 | fail: | |
9884 | return NULL; | |
9885 | } | |
9886 | ||
9887 | ||
9888 | static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9889 | PyObject *resultobj; | |
9890 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
9891 | int arg2 ; |
9892 | int arg3 ; | |
9893 | int arg4 ; | |
9894 | int arg5 ; | |
d14a1e28 RD |
9895 | PyObject * obj0 = 0 ; |
9896 | char *kwnames[] = { | |
9897 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
9898 | }; | |
9899 | ||
9900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawCheckMarkXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
9901 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9902 | { | |
9903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9904 | (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); | |
9905 | ||
9906 | wxPyEndAllowThreads(__tstate); | |
9907 | if (PyErr_Occurred()) SWIG_fail; | |
9908 | } | |
9909 | Py_INCREF(Py_None); resultobj = Py_None; | |
9910 | return resultobj; | |
9911 | fail: | |
9912 | return NULL; | |
9913 | } | |
9914 | ||
9915 | ||
9916 | static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9917 | PyObject *resultobj; | |
9918 | wxDC *arg1 = (wxDC *) 0 ; | |
9919 | wxRect *arg2 = 0 ; | |
9920 | wxRect temp2 ; | |
9921 | PyObject * obj0 = 0 ; | |
9922 | PyObject * obj1 = 0 ; | |
9923 | char *kwnames[] = { | |
9924 | (char *) "self",(char *) "rect", NULL | |
9925 | }; | |
9926 | ||
9927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail; | |
9928 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9929 | { | |
9930 | arg2 = &temp2; | |
9931 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
9932 | } | |
9933 | { | |
9934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9935 | (arg1)->DrawCheckMark((wxRect const &)*arg2); | |
9936 | ||
9937 | wxPyEndAllowThreads(__tstate); | |
9938 | if (PyErr_Occurred()) SWIG_fail; | |
9939 | } | |
9940 | Py_INCREF(Py_None); resultobj = Py_None; | |
9941 | return resultobj; | |
9942 | fail: | |
9943 | return NULL; | |
9944 | } | |
9945 | ||
9946 | ||
9947 | static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9948 | PyObject *resultobj; | |
9949 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
9950 | int arg2 ; |
9951 | int arg3 ; | |
9952 | int arg4 ; | |
9953 | int arg5 ; | |
d14a1e28 RD |
9954 | double arg6 ; |
9955 | double arg7 ; | |
9956 | PyObject * obj0 = 0 ; | |
9957 | char *kwnames[] = { | |
9958 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL | |
9959 | }; | |
9960 | ||
9961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiiidd:DC_DrawEllipticArcXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7)) goto fail; | |
9962 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9963 | { | |
9964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9965 | (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
9966 | ||
9967 | wxPyEndAllowThreads(__tstate); | |
9968 | if (PyErr_Occurred()) SWIG_fail; | |
9969 | } | |
9970 | Py_INCREF(Py_None); resultobj = Py_None; | |
9971 | return resultobj; | |
9972 | fail: | |
9973 | return NULL; | |
9974 | } | |
9975 | ||
9976 | ||
9977 | static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9978 | PyObject *resultobj; | |
9979 | wxDC *arg1 = (wxDC *) 0 ; | |
9980 | wxPoint *arg2 = 0 ; | |
9981 | wxSize *arg3 = 0 ; | |
9982 | double arg4 ; | |
9983 | double arg5 ; | |
9984 | wxPoint temp2 ; | |
9985 | wxSize temp3 ; | |
9986 | PyObject * obj0 = 0 ; | |
9987 | PyObject * obj1 = 0 ; | |
9988 | PyObject * obj2 = 0 ; | |
9989 | char *kwnames[] = { | |
9990 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL | |
9991 | }; | |
9992 | ||
9993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOdd:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5)) goto fail; | |
9994 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9995 | { | |
9996 | arg2 = &temp2; | |
9997 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9998 | } | |
9999 | { | |
10000 | arg3 = &temp3; | |
10001 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
10002 | } | |
10003 | { | |
10004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10005 | (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); | |
10006 | ||
10007 | wxPyEndAllowThreads(__tstate); | |
10008 | if (PyErr_Occurred()) SWIG_fail; | |
10009 | } | |
10010 | Py_INCREF(Py_None); resultobj = Py_None; | |
10011 | return resultobj; | |
10012 | fail: | |
10013 | return NULL; | |
10014 | } | |
10015 | ||
10016 | ||
10017 | static PyObject *_wrap_DC_DrawPointXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10018 | PyObject *resultobj; | |
10019 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
10020 | int arg2 ; |
10021 | int arg3 ; | |
d14a1e28 RD |
10022 | PyObject * obj0 = 0 ; |
10023 | char *kwnames[] = { | |
10024 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10025 | }; | |
10026 | ||
10027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_DrawPointXY",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
10028 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10029 | { | |
10030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10031 | (arg1)->DrawPoint(arg2,arg3); | |
10032 | ||
10033 | wxPyEndAllowThreads(__tstate); | |
10034 | if (PyErr_Occurred()) SWIG_fail; | |
10035 | } | |
10036 | Py_INCREF(Py_None); resultobj = Py_None; | |
10037 | return resultobj; | |
10038 | fail: | |
10039 | return NULL; | |
10040 | } | |
10041 | ||
10042 | ||
10043 | static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10044 | PyObject *resultobj; | |
10045 | wxDC *arg1 = (wxDC *) 0 ; | |
10046 | wxPoint *arg2 = 0 ; | |
10047 | wxPoint temp2 ; | |
10048 | PyObject * obj0 = 0 ; | |
10049 | PyObject * obj1 = 0 ; | |
10050 | char *kwnames[] = { | |
10051 | (char *) "self",(char *) "pt", NULL | |
10052 | }; | |
10053 | ||
10054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",kwnames,&obj0,&obj1)) goto fail; | |
10055 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10056 | { | |
10057 | arg2 = &temp2; | |
10058 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10059 | } | |
10060 | { | |
10061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10062 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
10063 | ||
10064 | wxPyEndAllowThreads(__tstate); | |
10065 | if (PyErr_Occurred()) SWIG_fail; | |
10066 | } | |
10067 | Py_INCREF(Py_None); resultobj = Py_None; | |
10068 | return resultobj; | |
10069 | fail: | |
10070 | return NULL; | |
10071 | } | |
10072 | ||
10073 | ||
10074 | static PyObject *_wrap_DC_DrawRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10075 | PyObject *resultobj; | |
10076 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
10077 | int arg2 ; |
10078 | int arg3 ; | |
10079 | int arg4 ; | |
10080 | int arg5 ; | |
d14a1e28 RD |
10081 | PyObject * obj0 = 0 ; |
10082 | char *kwnames[] = { | |
10083 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
10084 | }; | |
10085 | ||
10086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawRectangleXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
10087 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10088 | { | |
10089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10090 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
10091 | ||
10092 | wxPyEndAllowThreads(__tstate); | |
10093 | if (PyErr_Occurred()) SWIG_fail; | |
10094 | } | |
10095 | Py_INCREF(Py_None); resultobj = Py_None; | |
10096 | return resultobj; | |
10097 | fail: | |
10098 | return NULL; | |
10099 | } | |
10100 | ||
10101 | ||
10102 | static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10103 | PyObject *resultobj; | |
10104 | wxDC *arg1 = (wxDC *) 0 ; | |
10105 | wxPoint *arg2 = 0 ; | |
10106 | wxSize *arg3 = 0 ; | |
10107 | wxPoint temp2 ; | |
10108 | wxSize temp3 ; | |
10109 | PyObject * obj0 = 0 ; | |
10110 | PyObject * obj1 = 0 ; | |
10111 | PyObject * obj2 = 0 ; | |
10112 | char *kwnames[] = { | |
10113 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
10114 | }; | |
10115 | ||
10116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10117 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10118 | { | |
10119 | arg2 = &temp2; | |
10120 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10121 | } | |
10122 | { | |
10123 | arg3 = &temp3; | |
10124 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
10125 | } | |
10126 | { | |
10127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10128 | (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
10129 | ||
10130 | wxPyEndAllowThreads(__tstate); | |
10131 | if (PyErr_Occurred()) SWIG_fail; | |
10132 | } | |
10133 | Py_INCREF(Py_None); resultobj = Py_None; | |
10134 | return resultobj; | |
10135 | fail: | |
10136 | return NULL; | |
10137 | } | |
10138 | ||
10139 | ||
10140 | static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10141 | PyObject *resultobj; | |
10142 | wxDC *arg1 = (wxDC *) 0 ; | |
10143 | wxRect *arg2 = 0 ; | |
10144 | wxRect temp2 ; | |
10145 | PyObject * obj0 = 0 ; | |
10146 | PyObject * obj1 = 0 ; | |
10147 | char *kwnames[] = { | |
10148 | (char *) "self",(char *) "rect", NULL | |
10149 | }; | |
10150 | ||
10151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail; | |
10152 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10153 | { | |
10154 | arg2 = &temp2; | |
10155 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10156 | } | |
10157 | { | |
10158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10159 | (arg1)->DrawRectangle((wxRect const &)*arg2); | |
10160 | ||
10161 | wxPyEndAllowThreads(__tstate); | |
10162 | if (PyErr_Occurred()) SWIG_fail; | |
10163 | } | |
10164 | Py_INCREF(Py_None); resultobj = Py_None; | |
10165 | return resultobj; | |
10166 | fail: | |
10167 | return NULL; | |
10168 | } | |
10169 | ||
10170 | ||
10171 | static PyObject *_wrap_DC_DrawRoundedRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10172 | PyObject *resultobj; | |
10173 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
10174 | int arg2 ; |
10175 | int arg3 ; | |
10176 | int arg4 ; | |
10177 | int arg5 ; | |
d14a1e28 RD |
10178 | double arg6 ; |
10179 | PyObject * obj0 = 0 ; | |
10180 | char *kwnames[] = { | |
10181 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL | |
10182 | }; | |
10183 | ||
10184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiiid:DC_DrawRoundedRectangleXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
10185 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10186 | { | |
10187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10188 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); | |
10189 | ||
10190 | wxPyEndAllowThreads(__tstate); | |
10191 | if (PyErr_Occurred()) SWIG_fail; | |
10192 | } | |
10193 | Py_INCREF(Py_None); resultobj = Py_None; | |
10194 | return resultobj; | |
10195 | fail: | |
10196 | return NULL; | |
10197 | } | |
10198 | ||
10199 | ||
10200 | static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10201 | PyObject *resultobj; | |
10202 | wxDC *arg1 = (wxDC *) 0 ; | |
10203 | wxPoint *arg2 = 0 ; | |
10204 | wxSize *arg3 = 0 ; | |
10205 | double arg4 ; | |
10206 | wxPoint temp2 ; | |
10207 | wxSize temp3 ; | |
10208 | PyObject * obj0 = 0 ; | |
10209 | PyObject * obj1 = 0 ; | |
10210 | PyObject * obj2 = 0 ; | |
10211 | char *kwnames[] = { | |
10212 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL | |
10213 | }; | |
10214 | ||
10215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOd:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail; | |
10216 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10217 | { | |
10218 | arg2 = &temp2; | |
10219 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10220 | } | |
10221 | { | |
10222 | arg3 = &temp3; | |
10223 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
10224 | } | |
10225 | { | |
10226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10227 | (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); | |
10228 | ||
10229 | wxPyEndAllowThreads(__tstate); | |
10230 | if (PyErr_Occurred()) SWIG_fail; | |
10231 | } | |
10232 | Py_INCREF(Py_None); resultobj = Py_None; | |
10233 | return resultobj; | |
10234 | fail: | |
10235 | return NULL; | |
10236 | } | |
10237 | ||
10238 | ||
10239 | static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10240 | PyObject *resultobj; | |
10241 | wxDC *arg1 = (wxDC *) 0 ; | |
10242 | wxRect *arg2 = 0 ; | |
10243 | double arg3 ; | |
10244 | wxRect temp2 ; | |
10245 | PyObject * obj0 = 0 ; | |
10246 | PyObject * obj1 = 0 ; | |
10247 | char *kwnames[] = { | |
10248 | (char *) "self",(char *) "r",(char *) "radius", NULL | |
10249 | }; | |
10250 | ||
10251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOd:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
10252 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10253 | { | |
10254 | arg2 = &temp2; | |
10255 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10256 | } | |
10257 | { | |
10258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10259 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); | |
10260 | ||
10261 | wxPyEndAllowThreads(__tstate); | |
10262 | if (PyErr_Occurred()) SWIG_fail; | |
10263 | } | |
10264 | Py_INCREF(Py_None); resultobj = Py_None; | |
10265 | return resultobj; | |
10266 | fail: | |
10267 | return NULL; | |
10268 | } | |
10269 | ||
10270 | ||
10271 | static PyObject *_wrap_DC_DrawCircleXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10272 | PyObject *resultobj; | |
10273 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
10274 | int arg2 ; |
10275 | int arg3 ; | |
10276 | int arg4 ; | |
d14a1e28 RD |
10277 | PyObject * obj0 = 0 ; |
10278 | char *kwnames[] = { | |
10279 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL | |
10280 | }; | |
10281 | ||
10282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:DC_DrawCircleXY",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
10283 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10284 | { | |
10285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10286 | (arg1)->DrawCircle(arg2,arg3,arg4); | |
10287 | ||
10288 | wxPyEndAllowThreads(__tstate); | |
10289 | if (PyErr_Occurred()) SWIG_fail; | |
10290 | } | |
10291 | Py_INCREF(Py_None); resultobj = Py_None; | |
10292 | return resultobj; | |
10293 | fail: | |
10294 | return NULL; | |
10295 | } | |
10296 | ||
10297 | ||
10298 | static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10299 | PyObject *resultobj; | |
10300 | wxDC *arg1 = (wxDC *) 0 ; | |
10301 | wxPoint *arg2 = 0 ; | |
423f194a | 10302 | int arg3 ; |
d14a1e28 RD |
10303 | wxPoint temp2 ; |
10304 | PyObject * obj0 = 0 ; | |
10305 | PyObject * obj1 = 0 ; | |
10306 | char *kwnames[] = { | |
10307 | (char *) "self",(char *) "pt",(char *) "radius", NULL | |
10308 | }; | |
10309 | ||
10310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:DC_DrawCircle",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
10311 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10312 | { | |
10313 | arg2 = &temp2; | |
10314 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10315 | } | |
10316 | { | |
10317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10318 | (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); | |
10319 | ||
10320 | wxPyEndAllowThreads(__tstate); | |
10321 | if (PyErr_Occurred()) SWIG_fail; | |
10322 | } | |
10323 | Py_INCREF(Py_None); resultobj = Py_None; | |
10324 | return resultobj; | |
10325 | fail: | |
10326 | return NULL; | |
10327 | } | |
10328 | ||
10329 | ||
10330 | static PyObject *_wrap_DC_DrawEllipseXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10331 | PyObject *resultobj; | |
10332 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
10333 | int arg2 ; |
10334 | int arg3 ; | |
10335 | int arg4 ; | |
10336 | int arg5 ; | |
d14a1e28 RD |
10337 | PyObject * obj0 = 0 ; |
10338 | char *kwnames[] = { | |
10339 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
10340 | }; | |
10341 | ||
10342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawEllipseXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
10343 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10344 | { | |
10345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10346 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); | |
10347 | ||
10348 | wxPyEndAllowThreads(__tstate); | |
10349 | if (PyErr_Occurred()) SWIG_fail; | |
10350 | } | |
10351 | Py_INCREF(Py_None); resultobj = Py_None; | |
10352 | return resultobj; | |
10353 | fail: | |
10354 | return NULL; | |
10355 | } | |
10356 | ||
10357 | ||
10358 | static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10359 | PyObject *resultobj; | |
10360 | wxDC *arg1 = (wxDC *) 0 ; | |
10361 | wxPoint *arg2 = 0 ; | |
10362 | wxSize *arg3 = 0 ; | |
10363 | wxPoint temp2 ; | |
10364 | wxSize temp3 ; | |
10365 | PyObject * obj0 = 0 ; | |
10366 | PyObject * obj1 = 0 ; | |
10367 | PyObject * obj2 = 0 ; | |
10368 | char *kwnames[] = { | |
10369 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
10370 | }; | |
10371 | ||
10372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10373 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10374 | { | |
10375 | arg2 = &temp2; | |
10376 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10377 | } | |
10378 | { | |
10379 | arg3 = &temp3; | |
10380 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
10381 | } | |
10382 | { | |
10383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10384 | (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
10385 | ||
10386 | wxPyEndAllowThreads(__tstate); | |
10387 | if (PyErr_Occurred()) SWIG_fail; | |
10388 | } | |
10389 | Py_INCREF(Py_None); resultobj = Py_None; | |
10390 | return resultobj; | |
10391 | fail: | |
10392 | return NULL; | |
10393 | } | |
10394 | ||
10395 | ||
10396 | static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10397 | PyObject *resultobj; | |
10398 | wxDC *arg1 = (wxDC *) 0 ; | |
10399 | wxRect *arg2 = 0 ; | |
10400 | wxRect temp2 ; | |
10401 | PyObject * obj0 = 0 ; | |
10402 | PyObject * obj1 = 0 ; | |
10403 | char *kwnames[] = { | |
10404 | (char *) "self",(char *) "rect", NULL | |
10405 | }; | |
10406 | ||
10407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail; | |
10408 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10409 | { | |
10410 | arg2 = &temp2; | |
10411 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10412 | } | |
10413 | { | |
10414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10415 | (arg1)->DrawEllipse((wxRect const &)*arg2); | |
10416 | ||
10417 | wxPyEndAllowThreads(__tstate); | |
10418 | if (PyErr_Occurred()) SWIG_fail; | |
10419 | } | |
10420 | Py_INCREF(Py_None); resultobj = Py_None; | |
10421 | return resultobj; | |
10422 | fail: | |
10423 | return NULL; | |
10424 | } | |
10425 | ||
10426 | ||
10427 | static PyObject *_wrap_DC_DrawIconXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10428 | PyObject *resultobj; | |
10429 | wxDC *arg1 = (wxDC *) 0 ; | |
10430 | wxIcon *arg2 = 0 ; | |
423f194a RD |
10431 | int arg3 ; |
10432 | int arg4 ; | |
d14a1e28 RD |
10433 | PyObject * obj0 = 0 ; |
10434 | PyObject * obj1 = 0 ; | |
10435 | char *kwnames[] = { | |
10436 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL | |
10437 | }; | |
10438 | ||
10439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:DC_DrawIconXY",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail; | |
10440 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10441 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10442 | if (arg2 == NULL) { | |
10443 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10444 | } | |
10445 | { | |
10446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10447 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); | |
10448 | ||
10449 | wxPyEndAllowThreads(__tstate); | |
10450 | if (PyErr_Occurred()) SWIG_fail; | |
10451 | } | |
10452 | Py_INCREF(Py_None); resultobj = Py_None; | |
10453 | return resultobj; | |
10454 | fail: | |
10455 | return NULL; | |
10456 | } | |
10457 | ||
10458 | ||
10459 | static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10460 | PyObject *resultobj; | |
10461 | wxDC *arg1 = (wxDC *) 0 ; | |
10462 | wxIcon *arg2 = 0 ; | |
10463 | wxPoint *arg3 = 0 ; | |
10464 | wxPoint temp3 ; | |
10465 | PyObject * obj0 = 0 ; | |
10466 | PyObject * obj1 = 0 ; | |
10467 | PyObject * obj2 = 0 ; | |
10468 | char *kwnames[] = { | |
10469 | (char *) "self",(char *) "icon",(char *) "pt", NULL | |
10470 | }; | |
10471 | ||
10472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10473 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10474 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10475 | if (arg2 == NULL) { | |
10476 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10477 | } | |
10478 | { | |
10479 | arg3 = &temp3; | |
10480 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10481 | } | |
10482 | { | |
10483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10484 | (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); | |
10485 | ||
10486 | wxPyEndAllowThreads(__tstate); | |
10487 | if (PyErr_Occurred()) SWIG_fail; | |
10488 | } | |
10489 | Py_INCREF(Py_None); resultobj = Py_None; | |
10490 | return resultobj; | |
10491 | fail: | |
10492 | return NULL; | |
10493 | } | |
10494 | ||
10495 | ||
10496 | static PyObject *_wrap_DC_DrawBitmapXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10497 | PyObject *resultobj; | |
10498 | wxDC *arg1 = (wxDC *) 0 ; | |
10499 | wxBitmap *arg2 = 0 ; | |
423f194a RD |
10500 | int arg3 ; |
10501 | int arg4 ; | |
10502 | bool arg5 = (bool) False ; | |
d14a1e28 RD |
10503 | PyObject * obj0 = 0 ; |
10504 | PyObject * obj1 = 0 ; | |
10505 | PyObject * obj4 = 0 ; | |
10506 | char *kwnames[] = { | |
10507 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL | |
10508 | }; | |
10509 | ||
10510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii|O:DC_DrawBitmapXY",kwnames,&obj0,&obj1,&arg3,&arg4,&obj4)) goto fail; | |
10511 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10512 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10513 | if (arg2 == NULL) { | |
10514 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10515 | } | |
10516 | if (obj4) { | |
10517 | arg5 = PyInt_AsLong(obj4) ? true : false; | |
10518 | if (PyErr_Occurred()) SWIG_fail; | |
10519 | } | |
10520 | { | |
10521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10522 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); | |
10523 | ||
10524 | wxPyEndAllowThreads(__tstate); | |
10525 | if (PyErr_Occurred()) SWIG_fail; | |
10526 | } | |
10527 | Py_INCREF(Py_None); resultobj = Py_None; | |
10528 | return resultobj; | |
10529 | fail: | |
10530 | return NULL; | |
10531 | } | |
10532 | ||
10533 | ||
10534 | static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10535 | PyObject *resultobj; | |
10536 | wxDC *arg1 = (wxDC *) 0 ; | |
10537 | wxBitmap *arg2 = 0 ; | |
10538 | wxPoint *arg3 = 0 ; | |
423f194a | 10539 | bool arg4 = (bool) False ; |
d14a1e28 RD |
10540 | wxPoint temp3 ; |
10541 | PyObject * obj0 = 0 ; | |
10542 | PyObject * obj1 = 0 ; | |
10543 | PyObject * obj2 = 0 ; | |
10544 | PyObject * obj3 = 0 ; | |
10545 | char *kwnames[] = { | |
10546 | (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL | |
10547 | }; | |
10548 | ||
10549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10550 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10551 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10552 | if (arg2 == NULL) { | |
10553 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10554 | } | |
10555 | { | |
10556 | arg3 = &temp3; | |
10557 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10558 | } | |
10559 | if (obj3) { | |
10560 | arg4 = PyInt_AsLong(obj3) ? true : false; | |
10561 | if (PyErr_Occurred()) SWIG_fail; | |
10562 | } | |
10563 | { | |
10564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10565 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); | |
10566 | ||
10567 | wxPyEndAllowThreads(__tstate); | |
10568 | if (PyErr_Occurred()) SWIG_fail; | |
10569 | } | |
10570 | Py_INCREF(Py_None); resultobj = Py_None; | |
10571 | return resultobj; | |
10572 | fail: | |
10573 | return NULL; | |
10574 | } | |
10575 | ||
10576 | ||
10577 | static PyObject *_wrap_DC_DrawTextXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10578 | PyObject *resultobj; | |
10579 | wxDC *arg1 = (wxDC *) 0 ; | |
10580 | wxString *arg2 = 0 ; | |
423f194a RD |
10581 | int arg3 ; |
10582 | int arg4 ; | |
10583 | bool temp2 = False ; | |
d14a1e28 RD |
10584 | PyObject * obj0 = 0 ; |
10585 | PyObject * obj1 = 0 ; | |
10586 | char *kwnames[] = { | |
10587 | (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL | |
10588 | }; | |
10589 | ||
10590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:DC_DrawTextXY",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail; | |
10591 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10592 | { | |
10593 | arg2 = wxString_in_helper(obj1); | |
10594 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10595 | temp2 = True; |
d14a1e28 RD |
10596 | } |
10597 | { | |
10598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10599 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); | |
10600 | ||
10601 | wxPyEndAllowThreads(__tstate); | |
10602 | if (PyErr_Occurred()) SWIG_fail; | |
10603 | } | |
10604 | Py_INCREF(Py_None); resultobj = Py_None; | |
10605 | { | |
10606 | if (temp2) | |
10607 | delete arg2; | |
10608 | } | |
10609 | return resultobj; | |
10610 | fail: | |
10611 | { | |
10612 | if (temp2) | |
10613 | delete arg2; | |
10614 | } | |
10615 | return NULL; | |
10616 | } | |
10617 | ||
10618 | ||
10619 | static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10620 | PyObject *resultobj; | |
10621 | wxDC *arg1 = (wxDC *) 0 ; | |
10622 | wxString *arg2 = 0 ; | |
10623 | wxPoint *arg3 = 0 ; | |
423f194a | 10624 | bool temp2 = False ; |
d14a1e28 RD |
10625 | wxPoint temp3 ; |
10626 | PyObject * obj0 = 0 ; | |
10627 | PyObject * obj1 = 0 ; | |
10628 | PyObject * obj2 = 0 ; | |
10629 | char *kwnames[] = { | |
10630 | (char *) "self",(char *) "text",(char *) "pt", NULL | |
10631 | }; | |
10632 | ||
10633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10634 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10635 | { | |
10636 | arg2 = wxString_in_helper(obj1); | |
10637 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10638 | temp2 = True; |
d14a1e28 RD |
10639 | } |
10640 | { | |
10641 | arg3 = &temp3; | |
10642 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10643 | } | |
10644 | { | |
10645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10646 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
10647 | ||
10648 | wxPyEndAllowThreads(__tstate); | |
10649 | if (PyErr_Occurred()) SWIG_fail; | |
10650 | } | |
10651 | Py_INCREF(Py_None); resultobj = Py_None; | |
10652 | { | |
10653 | if (temp2) | |
10654 | delete arg2; | |
10655 | } | |
10656 | return resultobj; | |
10657 | fail: | |
10658 | { | |
10659 | if (temp2) | |
10660 | delete arg2; | |
10661 | } | |
10662 | return NULL; | |
10663 | } | |
10664 | ||
10665 | ||
10666 | static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10667 | PyObject *resultobj; | |
10668 | wxDC *arg1 = (wxDC *) 0 ; | |
10669 | wxString *arg2 = 0 ; | |
423f194a RD |
10670 | int arg3 ; |
10671 | int arg4 ; | |
d14a1e28 | 10672 | double arg5 ; |
423f194a | 10673 | bool temp2 = False ; |
d14a1e28 RD |
10674 | PyObject * obj0 = 0 ; |
10675 | PyObject * obj1 = 0 ; | |
10676 | char *kwnames[] = { | |
10677 | (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL | |
10678 | }; | |
10679 | ||
10680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiid:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5)) goto fail; | |
10681 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10682 | { | |
10683 | arg2 = wxString_in_helper(obj1); | |
10684 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10685 | temp2 = True; |
d14a1e28 RD |
10686 | } |
10687 | { | |
10688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10689 | (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); | |
10690 | ||
10691 | wxPyEndAllowThreads(__tstate); | |
10692 | if (PyErr_Occurred()) SWIG_fail; | |
10693 | } | |
10694 | Py_INCREF(Py_None); resultobj = Py_None; | |
10695 | { | |
10696 | if (temp2) | |
10697 | delete arg2; | |
10698 | } | |
10699 | return resultobj; | |
10700 | fail: | |
10701 | { | |
10702 | if (temp2) | |
10703 | delete arg2; | |
10704 | } | |
10705 | return NULL; | |
10706 | } | |
10707 | ||
10708 | ||
10709 | static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10710 | PyObject *resultobj; | |
10711 | wxDC *arg1 = (wxDC *) 0 ; | |
10712 | wxString *arg2 = 0 ; | |
10713 | wxPoint *arg3 = 0 ; | |
10714 | double arg4 ; | |
423f194a | 10715 | bool temp2 = False ; |
d14a1e28 RD |
10716 | wxPoint temp3 ; |
10717 | PyObject * obj0 = 0 ; | |
10718 | PyObject * obj1 = 0 ; | |
10719 | PyObject * obj2 = 0 ; | |
10720 | char *kwnames[] = { | |
10721 | (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL | |
10722 | }; | |
10723 | ||
10724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOd:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail; | |
10725 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10726 | { | |
10727 | arg2 = wxString_in_helper(obj1); | |
10728 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10729 | temp2 = True; |
d14a1e28 RD |
10730 | } |
10731 | { | |
10732 | arg3 = &temp3; | |
10733 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10734 | } | |
10735 | { | |
10736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10737 | (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); | |
10738 | ||
10739 | wxPyEndAllowThreads(__tstate); | |
10740 | if (PyErr_Occurred()) SWIG_fail; | |
10741 | } | |
10742 | Py_INCREF(Py_None); resultobj = Py_None; | |
10743 | { | |
10744 | if (temp2) | |
10745 | delete arg2; | |
10746 | } | |
10747 | return resultobj; | |
10748 | fail: | |
10749 | { | |
10750 | if (temp2) | |
10751 | delete arg2; | |
10752 | } | |
10753 | return NULL; | |
10754 | } | |
10755 | ||
10756 | ||
10757 | static PyObject *_wrap_DC_BlitXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10758 | PyObject *resultobj; | |
10759 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
10760 | int arg2 ; |
10761 | int arg3 ; | |
10762 | int arg4 ; | |
10763 | int arg5 ; | |
d14a1e28 | 10764 | wxDC *arg6 = (wxDC *) 0 ; |
423f194a RD |
10765 | int arg7 ; |
10766 | int arg8 ; | |
d14a1e28 | 10767 | int arg9 = (int) wxCOPY ; |
423f194a RD |
10768 | bool arg10 = (bool) False ; |
10769 | int arg11 = (int) -1 ; | |
10770 | int arg12 = (int) -1 ; | |
d14a1e28 RD |
10771 | bool result; |
10772 | PyObject * obj0 = 0 ; | |
10773 | PyObject * obj5 = 0 ; | |
10774 | PyObject * obj9 = 0 ; | |
10775 | char *kwnames[] = { | |
10776 | (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 | |
10777 | }; | |
10778 | ||
10779 | 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; | |
10780 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10781 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10782 | if (obj9) { | |
10783 | arg10 = PyInt_AsLong(obj9) ? true : false; | |
10784 | if (PyErr_Occurred()) SWIG_fail; | |
10785 | } | |
10786 | { | |
10787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10788 | result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); | |
10789 | ||
10790 | wxPyEndAllowThreads(__tstate); | |
10791 | if (PyErr_Occurred()) SWIG_fail; | |
10792 | } | |
10793 | resultobj = PyInt_FromLong((long)result); | |
10794 | return resultobj; | |
10795 | fail: | |
10796 | return NULL; | |
10797 | } | |
10798 | ||
10799 | ||
10800 | static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10801 | PyObject *resultobj; | |
10802 | wxDC *arg1 = (wxDC *) 0 ; | |
10803 | wxPoint *arg2 = 0 ; | |
10804 | wxSize *arg3 = 0 ; | |
10805 | wxDC *arg4 = (wxDC *) 0 ; | |
10806 | wxPoint *arg5 = 0 ; | |
10807 | int arg6 = (int) wxCOPY ; | |
423f194a | 10808 | bool arg7 = (bool) False ; |
d14a1e28 RD |
10809 | wxPoint const &arg8_defvalue = wxDefaultPosition ; |
10810 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
10811 | bool result; | |
10812 | wxPoint temp2 ; | |
10813 | wxSize temp3 ; | |
10814 | wxPoint temp5 ; | |
10815 | wxPoint temp8 ; | |
10816 | PyObject * obj0 = 0 ; | |
10817 | PyObject * obj1 = 0 ; | |
10818 | PyObject * obj2 = 0 ; | |
10819 | PyObject * obj3 = 0 ; | |
10820 | PyObject * obj4 = 0 ; | |
10821 | PyObject * obj6 = 0 ; | |
10822 | PyObject * obj7 = 0 ; | |
10823 | char *kwnames[] = { | |
10824 | (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL | |
10825 | }; | |
10826 | ||
10827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|iOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
10828 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10829 | { | |
10830 | arg2 = &temp2; | |
10831 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10832 | } | |
10833 | { | |
10834 | arg3 = &temp3; | |
10835 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
10836 | } | |
10837 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10838 | { | |
10839 | arg5 = &temp5; | |
10840 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
10841 | } | |
10842 | if (obj6) { | |
10843 | arg7 = PyInt_AsLong(obj6) ? true : false; | |
10844 | if (PyErr_Occurred()) SWIG_fail; | |
10845 | } | |
10846 | if (obj7) { | |
10847 | { | |
10848 | arg8 = &temp8; | |
10849 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
10850 | } | |
10851 | } | |
10852 | { | |
10853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10854 | result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8); | |
10855 | ||
10856 | wxPyEndAllowThreads(__tstate); | |
10857 | if (PyErr_Occurred()) SWIG_fail; | |
10858 | } | |
10859 | resultobj = PyInt_FromLong((long)result); | |
10860 | return resultobj; | |
10861 | fail: | |
10862 | return NULL; | |
10863 | } | |
10864 | ||
10865 | ||
10866 | static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10867 | PyObject *resultobj; | |
10868 | wxDC *arg1 = (wxDC *) 0 ; | |
10869 | int arg2 ; | |
10870 | wxPoint *arg3 = (wxPoint *) 0 ; | |
423f194a RD |
10871 | int arg4 = (int) 0 ; |
10872 | int arg5 = (int) 0 ; | |
d14a1e28 RD |
10873 | PyObject * obj0 = 0 ; |
10874 | PyObject * obj1 = 0 ; | |
10875 | char *kwnames[] = { | |
10876 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL | |
10877 | }; | |
10878 | ||
10879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|ii:DC_DrawLines",kwnames,&obj0,&obj1,&arg4,&arg5)) goto fail; | |
10880 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10881 | { | |
10882 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
10883 | if (arg3 == NULL) SWIG_fail; | |
10884 | } | |
10885 | { | |
10886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10887 | (arg1)->DrawLines(arg2,arg3,arg4,arg5); | |
10888 | ||
10889 | wxPyEndAllowThreads(__tstate); | |
10890 | if (PyErr_Occurred()) SWIG_fail; | |
10891 | } | |
10892 | Py_INCREF(Py_None); resultobj = Py_None; | |
10893 | { | |
10894 | if (arg3) delete [] arg3; | |
10895 | } | |
10896 | return resultobj; | |
10897 | fail: | |
10898 | { | |
10899 | if (arg3) delete [] arg3; | |
10900 | } | |
10901 | return NULL; | |
10902 | } | |
10903 | ||
10904 | ||
10905 | static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10906 | PyObject *resultobj; | |
10907 | wxDC *arg1 = (wxDC *) 0 ; | |
10908 | int arg2 ; | |
10909 | wxPoint *arg3 = (wxPoint *) 0 ; | |
423f194a RD |
10910 | int arg4 = (int) 0 ; |
10911 | int arg5 = (int) 0 ; | |
d14a1e28 RD |
10912 | int arg6 = (int) wxODDEVEN_RULE ; |
10913 | PyObject * obj0 = 0 ; | |
10914 | PyObject * obj1 = 0 ; | |
10915 | char *kwnames[] = { | |
10916 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL | |
10917 | }; | |
10918 | ||
10919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iii:DC_DrawPolygon",kwnames,&obj0,&obj1,&arg4,&arg5,&arg6)) goto fail; | |
10920 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10921 | { | |
10922 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
10923 | if (arg3 == NULL) SWIG_fail; | |
10924 | } | |
10925 | { | |
10926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10927 | (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); | |
10928 | ||
10929 | wxPyEndAllowThreads(__tstate); | |
10930 | if (PyErr_Occurred()) SWIG_fail; | |
10931 | } | |
10932 | Py_INCREF(Py_None); resultobj = Py_None; | |
10933 | { | |
10934 | if (arg3) delete [] arg3; | |
10935 | } | |
10936 | return resultobj; | |
10937 | fail: | |
10938 | { | |
10939 | if (arg3) delete [] arg3; | |
10940 | } | |
10941 | return NULL; | |
10942 | } | |
10943 | ||
10944 | ||
10945 | static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10946 | PyObject *resultobj; | |
10947 | wxDC *arg1 = (wxDC *) 0 ; | |
10948 | wxString *arg2 = 0 ; | |
10949 | wxRect *arg3 = 0 ; | |
10950 | int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
10951 | int arg5 = (int) -1 ; | |
423f194a | 10952 | bool temp2 = False ; |
d14a1e28 RD |
10953 | wxRect temp3 ; |
10954 | PyObject * obj0 = 0 ; | |
10955 | PyObject * obj1 = 0 ; | |
10956 | PyObject * obj2 = 0 ; | |
10957 | char *kwnames[] = { | |
10958 | (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
10959 | }; | |
10960 | ||
10961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|ii:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5)) goto fail; | |
10962 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10963 | { | |
10964 | arg2 = wxString_in_helper(obj1); | |
10965 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10966 | temp2 = True; |
d14a1e28 RD |
10967 | } |
10968 | { | |
10969 | arg3 = &temp3; | |
10970 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
10971 | } | |
10972 | { | |
10973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10974 | (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); | |
10975 | ||
10976 | wxPyEndAllowThreads(__tstate); | |
10977 | if (PyErr_Occurred()) SWIG_fail; | |
10978 | } | |
10979 | Py_INCREF(Py_None); resultobj = Py_None; | |
10980 | { | |
10981 | if (temp2) | |
10982 | delete arg2; | |
10983 | } | |
10984 | return resultobj; | |
10985 | fail: | |
10986 | { | |
10987 | if (temp2) | |
10988 | delete arg2; | |
10989 | } | |
10990 | return NULL; | |
10991 | } | |
10992 | ||
10993 | ||
10994 | static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10995 | PyObject *resultobj; | |
10996 | wxDC *arg1 = (wxDC *) 0 ; | |
10997 | wxString *arg2 = 0 ; | |
10998 | wxBitmap *arg3 = 0 ; | |
10999 | wxRect *arg4 = 0 ; | |
11000 | int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
11001 | int arg6 = (int) -1 ; | |
11002 | wxRect result; | |
423f194a | 11003 | bool temp2 = False ; |
d14a1e28 RD |
11004 | wxRect temp4 ; |
11005 | PyObject * obj0 = 0 ; | |
11006 | PyObject * obj1 = 0 ; | |
11007 | PyObject * obj2 = 0 ; | |
11008 | PyObject * obj3 = 0 ; | |
11009 | char *kwnames[] = { | |
11010 | (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
11011 | }; | |
11012 | ||
11013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|ii:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5,&arg6)) goto fail; | |
11014 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11015 | { | |
11016 | arg2 = wxString_in_helper(obj1); | |
11017 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11018 | temp2 = True; |
d14a1e28 RD |
11019 | } |
11020 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11021 | if (arg3 == NULL) { | |
11022 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11023 | } | |
11024 | { | |
11025 | arg4 = &temp4; | |
11026 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
11027 | } | |
11028 | { | |
11029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11030 | result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); | |
11031 | ||
11032 | wxPyEndAllowThreads(__tstate); | |
11033 | if (PyErr_Occurred()) SWIG_fail; | |
11034 | } | |
11035 | { | |
11036 | wxRect * resultptr; | |
11037 | resultptr = new wxRect((wxRect &) result); | |
11038 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
11039 | } | |
11040 | { | |
11041 | if (temp2) | |
11042 | delete arg2; | |
11043 | } | |
11044 | return resultobj; | |
11045 | fail: | |
11046 | { | |
11047 | if (temp2) | |
11048 | delete arg2; | |
11049 | } | |
11050 | return NULL; | |
11051 | } | |
11052 | ||
11053 | ||
11054 | static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11055 | PyObject *resultobj; | |
11056 | wxDC *arg1 = (wxDC *) 0 ; | |
11057 | int arg2 ; | |
11058 | wxPoint *arg3 = (wxPoint *) 0 ; | |
11059 | PyObject * obj0 = 0 ; | |
11060 | PyObject * obj1 = 0 ; | |
11061 | char *kwnames[] = { | |
11062 | (char *) "self",(char *) "points", NULL | |
11063 | }; | |
11064 | ||
11065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail; | |
11066 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11067 | { | |
11068 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
11069 | if (arg3 == NULL) SWIG_fail; | |
11070 | } | |
11071 | { | |
11072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11073 | (arg1)->DrawSpline(arg2,arg3); | |
11074 | ||
11075 | wxPyEndAllowThreads(__tstate); | |
11076 | if (PyErr_Occurred()) SWIG_fail; | |
11077 | } | |
11078 | Py_INCREF(Py_None); resultobj = Py_None; | |
11079 | { | |
11080 | if (arg3) delete [] arg3; | |
11081 | } | |
11082 | return resultobj; | |
11083 | fail: | |
11084 | { | |
11085 | if (arg3) delete [] arg3; | |
11086 | } | |
11087 | return NULL; | |
11088 | } | |
11089 | ||
11090 | ||
11091 | static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11092 | PyObject *resultobj; | |
11093 | wxDC *arg1 = (wxDC *) 0 ; | |
11094 | PyObject * obj0 = 0 ; | |
11095 | char *kwnames[] = { | |
11096 | (char *) "self", NULL | |
11097 | }; | |
11098 | ||
11099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail; | |
11100 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11101 | { | |
11102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11103 | (arg1)->Clear(); | |
11104 | ||
11105 | wxPyEndAllowThreads(__tstate); | |
11106 | if (PyErr_Occurred()) SWIG_fail; | |
11107 | } | |
11108 | Py_INCREF(Py_None); resultobj = Py_None; | |
11109 | return resultobj; | |
11110 | fail: | |
11111 | return NULL; | |
11112 | } | |
11113 | ||
11114 | ||
11115 | static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11116 | PyObject *resultobj; | |
11117 | wxDC *arg1 = (wxDC *) 0 ; | |
11118 | wxString *arg2 = 0 ; | |
11119 | bool result; | |
423f194a | 11120 | bool temp2 = False ; |
d14a1e28 RD |
11121 | PyObject * obj0 = 0 ; |
11122 | PyObject * obj1 = 0 ; | |
11123 | char *kwnames[] = { | |
11124 | (char *) "self",(char *) "message", NULL | |
11125 | }; | |
11126 | ||
11127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail; | |
11128 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11129 | { | |
11130 | arg2 = wxString_in_helper(obj1); | |
11131 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11132 | temp2 = True; |
d14a1e28 RD |
11133 | } |
11134 | { | |
11135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11136 | result = (bool)(arg1)->StartDoc((wxString const &)*arg2); | |
11137 | ||
11138 | wxPyEndAllowThreads(__tstate); | |
11139 | if (PyErr_Occurred()) SWIG_fail; | |
11140 | } | |
11141 | resultobj = PyInt_FromLong((long)result); | |
11142 | { | |
11143 | if (temp2) | |
11144 | delete arg2; | |
11145 | } | |
11146 | return resultobj; | |
11147 | fail: | |
11148 | { | |
11149 | if (temp2) | |
11150 | delete arg2; | |
11151 | } | |
11152 | return NULL; | |
11153 | } | |
11154 | ||
11155 | ||
11156 | static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11157 | PyObject *resultobj; | |
11158 | wxDC *arg1 = (wxDC *) 0 ; | |
11159 | PyObject * obj0 = 0 ; | |
11160 | char *kwnames[] = { | |
11161 | (char *) "self", NULL | |
11162 | }; | |
11163 | ||
11164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail; | |
11165 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11166 | { | |
11167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11168 | (arg1)->EndDoc(); | |
11169 | ||
11170 | wxPyEndAllowThreads(__tstate); | |
11171 | if (PyErr_Occurred()) SWIG_fail; | |
11172 | } | |
11173 | Py_INCREF(Py_None); resultobj = Py_None; | |
11174 | return resultobj; | |
11175 | fail: | |
11176 | return NULL; | |
11177 | } | |
11178 | ||
11179 | ||
11180 | static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11181 | PyObject *resultobj; | |
11182 | wxDC *arg1 = (wxDC *) 0 ; | |
11183 | PyObject * obj0 = 0 ; | |
11184 | char *kwnames[] = { | |
11185 | (char *) "self", NULL | |
11186 | }; | |
11187 | ||
11188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail; | |
11189 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11190 | { | |
11191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11192 | (arg1)->StartPage(); | |
11193 | ||
11194 | wxPyEndAllowThreads(__tstate); | |
11195 | if (PyErr_Occurred()) SWIG_fail; | |
11196 | } | |
11197 | Py_INCREF(Py_None); resultobj = Py_None; | |
11198 | return resultobj; | |
11199 | fail: | |
11200 | return NULL; | |
11201 | } | |
11202 | ||
11203 | ||
11204 | static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11205 | PyObject *resultobj; | |
11206 | wxDC *arg1 = (wxDC *) 0 ; | |
11207 | PyObject * obj0 = 0 ; | |
11208 | char *kwnames[] = { | |
11209 | (char *) "self", NULL | |
11210 | }; | |
11211 | ||
11212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail; | |
11213 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11214 | { | |
11215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11216 | (arg1)->EndPage(); | |
11217 | ||
11218 | wxPyEndAllowThreads(__tstate); | |
11219 | if (PyErr_Occurred()) SWIG_fail; | |
11220 | } | |
11221 | Py_INCREF(Py_None); resultobj = Py_None; | |
11222 | return resultobj; | |
11223 | fail: | |
11224 | return NULL; | |
11225 | } | |
11226 | ||
11227 | ||
11228 | static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11229 | PyObject *resultobj; | |
11230 | wxDC *arg1 = (wxDC *) 0 ; | |
11231 | wxFont *arg2 = 0 ; | |
11232 | PyObject * obj0 = 0 ; | |
11233 | PyObject * obj1 = 0 ; | |
11234 | char *kwnames[] = { | |
11235 | (char *) "self",(char *) "font", NULL | |
11236 | }; | |
11237 | ||
11238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
11239 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11240 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11241 | if (arg2 == NULL) { | |
11242 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11243 | } | |
11244 | { | |
11245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11246 | (arg1)->SetFont((wxFont const &)*arg2); | |
11247 | ||
11248 | wxPyEndAllowThreads(__tstate); | |
11249 | if (PyErr_Occurred()) SWIG_fail; | |
11250 | } | |
11251 | Py_INCREF(Py_None); resultobj = Py_None; | |
11252 | return resultobj; | |
11253 | fail: | |
11254 | return NULL; | |
11255 | } | |
11256 | ||
11257 | ||
11258 | static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11259 | PyObject *resultobj; | |
11260 | wxDC *arg1 = (wxDC *) 0 ; | |
11261 | wxPen *arg2 = 0 ; | |
11262 | PyObject * obj0 = 0 ; | |
11263 | PyObject * obj1 = 0 ; | |
11264 | char *kwnames[] = { | |
11265 | (char *) "self",(char *) "pen", NULL | |
11266 | }; | |
11267 | ||
11268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail; | |
11269 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11270 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11271 | if (arg2 == NULL) { | |
11272 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11273 | } | |
11274 | { | |
11275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11276 | (arg1)->SetPen((wxPen const &)*arg2); | |
11277 | ||
11278 | wxPyEndAllowThreads(__tstate); | |
11279 | if (PyErr_Occurred()) SWIG_fail; | |
11280 | } | |
11281 | Py_INCREF(Py_None); resultobj = Py_None; | |
11282 | return resultobj; | |
11283 | fail: | |
11284 | return NULL; | |
11285 | } | |
11286 | ||
11287 | ||
11288 | static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11289 | PyObject *resultobj; | |
11290 | wxDC *arg1 = (wxDC *) 0 ; | |
11291 | wxBrush *arg2 = 0 ; | |
11292 | PyObject * obj0 = 0 ; | |
11293 | PyObject * obj1 = 0 ; | |
11294 | char *kwnames[] = { | |
11295 | (char *) "self",(char *) "brush", NULL | |
11296 | }; | |
11297 | ||
11298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail; | |
11299 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11300 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11301 | if (arg2 == NULL) { | |
11302 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11303 | } | |
11304 | { | |
11305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11306 | (arg1)->SetBrush((wxBrush const &)*arg2); | |
11307 | ||
11308 | wxPyEndAllowThreads(__tstate); | |
11309 | if (PyErr_Occurred()) SWIG_fail; | |
11310 | } | |
11311 | Py_INCREF(Py_None); resultobj = Py_None; | |
11312 | return resultobj; | |
11313 | fail: | |
11314 | return NULL; | |
11315 | } | |
11316 | ||
11317 | ||
11318 | static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11319 | PyObject *resultobj; | |
11320 | wxDC *arg1 = (wxDC *) 0 ; | |
11321 | wxBrush *arg2 = 0 ; | |
11322 | PyObject * obj0 = 0 ; | |
11323 | PyObject * obj1 = 0 ; | |
11324 | char *kwnames[] = { | |
11325 | (char *) "self",(char *) "brush", NULL | |
11326 | }; | |
11327 | ||
11328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail; | |
11329 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11330 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11331 | if (arg2 == NULL) { | |
11332 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11333 | } | |
11334 | { | |
11335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11336 | (arg1)->SetBackground((wxBrush const &)*arg2); | |
11337 | ||
11338 | wxPyEndAllowThreads(__tstate); | |
11339 | if (PyErr_Occurred()) SWIG_fail; | |
11340 | } | |
11341 | Py_INCREF(Py_None); resultobj = Py_None; | |
11342 | return resultobj; | |
11343 | fail: | |
11344 | return NULL; | |
11345 | } | |
11346 | ||
11347 | ||
11348 | static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11349 | PyObject *resultobj; | |
11350 | wxDC *arg1 = (wxDC *) 0 ; | |
11351 | int arg2 ; | |
11352 | PyObject * obj0 = 0 ; | |
11353 | char *kwnames[] = { | |
11354 | (char *) "self",(char *) "mode", NULL | |
11355 | }; | |
11356 | ||
11357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_SetBackgroundMode",kwnames,&obj0,&arg2)) goto fail; | |
11358 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11359 | { | |
11360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11361 | (arg1)->SetBackgroundMode(arg2); | |
11362 | ||
11363 | wxPyEndAllowThreads(__tstate); | |
11364 | if (PyErr_Occurred()) SWIG_fail; | |
11365 | } | |
11366 | Py_INCREF(Py_None); resultobj = Py_None; | |
11367 | return resultobj; | |
11368 | fail: | |
11369 | return NULL; | |
11370 | } | |
11371 | ||
11372 | ||
11373 | static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11374 | PyObject *resultobj; | |
11375 | wxDC *arg1 = (wxDC *) 0 ; | |
11376 | wxPalette *arg2 = 0 ; | |
11377 | PyObject * obj0 = 0 ; | |
11378 | PyObject * obj1 = 0 ; | |
11379 | char *kwnames[] = { | |
11380 | (char *) "self",(char *) "palette", NULL | |
11381 | }; | |
11382 | ||
11383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail; | |
11384 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11385 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11386 | if (arg2 == NULL) { | |
11387 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11388 | } | |
11389 | { | |
11390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11391 | (arg1)->SetPalette((wxPalette const &)*arg2); | |
11392 | ||
11393 | wxPyEndAllowThreads(__tstate); | |
11394 | if (PyErr_Occurred()) SWIG_fail; | |
11395 | } | |
11396 | Py_INCREF(Py_None); resultobj = Py_None; | |
11397 | return resultobj; | |
11398 | fail: | |
11399 | return NULL; | |
11400 | } | |
11401 | ||
11402 | ||
f0983263 | 11403 | static PyObject *_wrap_DC_SetClippingRegionXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11404 | PyObject *resultobj; |
11405 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
11406 | int arg2 ; |
11407 | int arg3 ; | |
11408 | int arg4 ; | |
11409 | int arg5 ; | |
d14a1e28 RD |
11410 | PyObject * obj0 = 0 ; |
11411 | char *kwnames[] = { | |
11412 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11413 | }; | |
11414 | ||
f0983263 | 11415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_SetClippingRegionXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; |
d14a1e28 RD |
11416 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11417 | { | |
11418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11419 | (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5); | |
11420 | ||
11421 | wxPyEndAllowThreads(__tstate); | |
11422 | if (PyErr_Occurred()) SWIG_fail; | |
11423 | } | |
11424 | Py_INCREF(Py_None); resultobj = Py_None; | |
11425 | return resultobj; | |
11426 | fail: | |
11427 | return NULL; | |
11428 | } | |
11429 | ||
11430 | ||
f0983263 RD |
11431 | static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
11432 | PyObject *resultobj; | |
11433 | wxDC *arg1 = (wxDC *) 0 ; | |
11434 | wxPoint *arg2 = 0 ; | |
11435 | wxSize *arg3 = 0 ; | |
11436 | wxPoint temp2 ; | |
11437 | wxSize temp3 ; | |
11438 | PyObject * obj0 = 0 ; | |
11439 | PyObject * obj1 = 0 ; | |
11440 | PyObject * obj2 = 0 ; | |
11441 | char *kwnames[] = { | |
11442 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
11443 | }; | |
11444 | ||
11445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11446 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11447 | { | |
11448 | arg2 = &temp2; | |
11449 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11450 | } | |
11451 | { | |
11452 | arg3 = &temp3; | |
11453 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
11454 | } | |
11455 | { | |
11456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11457 | (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
11458 | ||
11459 | wxPyEndAllowThreads(__tstate); | |
11460 | if (PyErr_Occurred()) SWIG_fail; | |
11461 | } | |
11462 | Py_INCREF(Py_None); resultobj = Py_None; | |
11463 | return resultobj; | |
11464 | fail: | |
11465 | return NULL; | |
11466 | } | |
11467 | ||
11468 | ||
d14a1e28 RD |
11469 | static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
11470 | PyObject *resultobj; | |
11471 | wxDC *arg1 = (wxDC *) 0 ; | |
11472 | wxRect *arg2 = 0 ; | |
11473 | wxRect temp2 ; | |
11474 | PyObject * obj0 = 0 ; | |
11475 | PyObject * obj1 = 0 ; | |
11476 | char *kwnames[] = { | |
11477 | (char *) "self",(char *) "rect", NULL | |
11478 | }; | |
11479 | ||
11480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail; | |
11481 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11482 | { | |
11483 | arg2 = &temp2; | |
11484 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11485 | } | |
11486 | { | |
11487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11488 | (arg1)->SetClippingRegion((wxRect const &)*arg2); | |
11489 | ||
11490 | wxPyEndAllowThreads(__tstate); | |
11491 | if (PyErr_Occurred()) SWIG_fail; | |
11492 | } | |
11493 | Py_INCREF(Py_None); resultobj = Py_None; | |
11494 | return resultobj; | |
11495 | fail: | |
11496 | return NULL; | |
11497 | } | |
11498 | ||
11499 | ||
11500 | static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11501 | PyObject *resultobj; | |
11502 | wxDC *arg1 = (wxDC *) 0 ; | |
11503 | wxRegion *arg2 = 0 ; | |
11504 | PyObject * obj0 = 0 ; | |
11505 | PyObject * obj1 = 0 ; | |
11506 | char *kwnames[] = { | |
11507 | (char *) "self",(char *) "region", NULL | |
11508 | }; | |
11509 | ||
11510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail; | |
11511 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11512 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11513 | if (arg2 == NULL) { | |
11514 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11515 | } | |
11516 | { | |
11517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11518 | (arg1)->SetClippingRegion((wxRegion const &)*arg2); | |
11519 | ||
11520 | wxPyEndAllowThreads(__tstate); | |
11521 | if (PyErr_Occurred()) SWIG_fail; | |
11522 | } | |
11523 | Py_INCREF(Py_None); resultobj = Py_None; | |
11524 | return resultobj; | |
11525 | fail: | |
11526 | return NULL; | |
11527 | } | |
11528 | ||
11529 | ||
11530 | static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11531 | PyObject *resultobj; | |
11532 | wxDC *arg1 = (wxDC *) 0 ; | |
11533 | PyObject * obj0 = 0 ; | |
11534 | char *kwnames[] = { | |
11535 | (char *) "self", NULL | |
11536 | }; | |
11537 | ||
11538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail; | |
11539 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11540 | { | |
11541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11542 | (arg1)->DestroyClippingRegion(); | |
11543 | ||
11544 | wxPyEndAllowThreads(__tstate); | |
11545 | if (PyErr_Occurred()) SWIG_fail; | |
11546 | } | |
11547 | Py_INCREF(Py_None); resultobj = Py_None; | |
11548 | return resultobj; | |
11549 | fail: | |
11550 | return NULL; | |
11551 | } | |
11552 | ||
11553 | ||
11554 | static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11555 | PyObject *resultobj; | |
11556 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
11557 | int *arg2 = (int *) 0 ; |
11558 | int *arg3 = (int *) 0 ; | |
11559 | int *arg4 = (int *) 0 ; | |
11560 | int *arg5 = (int *) 0 ; | |
11561 | int temp2 ; | |
11562 | int temp3 ; | |
11563 | int temp4 ; | |
11564 | int temp5 ; | |
d14a1e28 RD |
11565 | PyObject * obj0 = 0 ; |
11566 | char *kwnames[] = { | |
11567 | (char *) "self", NULL | |
11568 | }; | |
11569 | ||
11570 | arg2 = &temp2; | |
11571 | arg3 = &temp3; | |
11572 | arg4 = &temp4; | |
11573 | arg5 = &temp5; | |
11574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail; | |
11575 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11576 | { | |
11577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11578 | ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5); | |
11579 | ||
11580 | wxPyEndAllowThreads(__tstate); | |
11581 | if (PyErr_Occurred()) SWIG_fail; | |
11582 | } | |
11583 | Py_INCREF(Py_None); resultobj = Py_None; | |
11584 | { | |
11585 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
11586 | resultobj = t_output_helper(resultobj,o); | |
11587 | } | |
11588 | { | |
11589 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
11590 | resultobj = t_output_helper(resultobj,o); | |
11591 | } | |
11592 | { | |
11593 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
11594 | resultobj = t_output_helper(resultobj,o); | |
11595 | } | |
11596 | { | |
11597 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
11598 | resultobj = t_output_helper(resultobj,o); | |
11599 | } | |
11600 | return resultobj; | |
11601 | fail: | |
11602 | return NULL; | |
11603 | } | |
11604 | ||
11605 | ||
11606 | static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11607 | PyObject *resultobj; | |
11608 | wxDC *arg1 = (wxDC *) 0 ; | |
11609 | wxRect result; | |
11610 | PyObject * obj0 = 0 ; | |
11611 | char *kwnames[] = { | |
11612 | (char *) "self", NULL | |
11613 | }; | |
11614 | ||
11615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail; | |
11616 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11617 | { | |
11618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11619 | result = wxDC_GetClippingRect(arg1); | |
11620 | ||
11621 | wxPyEndAllowThreads(__tstate); | |
11622 | if (PyErr_Occurred()) SWIG_fail; | |
11623 | } | |
11624 | { | |
11625 | wxRect * resultptr; | |
11626 | resultptr = new wxRect((wxRect &) result); | |
11627 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
11628 | } | |
11629 | return resultobj; | |
11630 | fail: | |
11631 | return NULL; | |
11632 | } | |
11633 | ||
11634 | ||
11635 | static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11636 | PyObject *resultobj; | |
11637 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a | 11638 | int result; |
d14a1e28 RD |
11639 | PyObject * obj0 = 0 ; |
11640 | char *kwnames[] = { | |
11641 | (char *) "self", NULL | |
11642 | }; | |
11643 | ||
11644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail; | |
11645 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11646 | { | |
11647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 11648 | result = (int)((wxDC const *)arg1)->GetCharHeight(); |
d14a1e28 RD |
11649 | |
11650 | wxPyEndAllowThreads(__tstate); | |
11651 | if (PyErr_Occurred()) SWIG_fail; | |
11652 | } | |
11653 | resultobj = PyInt_FromLong((long)result); | |
11654 | return resultobj; | |
11655 | fail: | |
11656 | return NULL; | |
11657 | } | |
11658 | ||
11659 | ||
11660 | static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11661 | PyObject *resultobj; | |
11662 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a | 11663 | int result; |
d14a1e28 RD |
11664 | PyObject * obj0 = 0 ; |
11665 | char *kwnames[] = { | |
11666 | (char *) "self", NULL | |
11667 | }; | |
11668 | ||
11669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail; | |
11670 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11671 | { | |
11672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 11673 | result = (int)((wxDC const *)arg1)->GetCharWidth(); |
d14a1e28 RD |
11674 | |
11675 | wxPyEndAllowThreads(__tstate); | |
11676 | if (PyErr_Occurred()) SWIG_fail; | |
11677 | } | |
11678 | resultobj = PyInt_FromLong((long)result); | |
11679 | return resultobj; | |
11680 | fail: | |
11681 | return NULL; | |
11682 | } | |
11683 | ||
11684 | ||
11685 | static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11686 | PyObject *resultobj; | |
11687 | wxDC *arg1 = (wxDC *) 0 ; | |
11688 | wxString *arg2 = 0 ; | |
423f194a RD |
11689 | int *arg3 = (int *) 0 ; |
11690 | int *arg4 = (int *) 0 ; | |
11691 | bool temp2 = False ; | |
11692 | int temp3 ; | |
11693 | int temp4 ; | |
d14a1e28 RD |
11694 | PyObject * obj0 = 0 ; |
11695 | PyObject * obj1 = 0 ; | |
11696 | char *kwnames[] = { | |
11697 | (char *) "self",(char *) "string", NULL | |
11698 | }; | |
11699 | ||
11700 | arg3 = &temp3; | |
11701 | arg4 = &temp4; | |
11702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; | |
11703 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11704 | { | |
11705 | arg2 = wxString_in_helper(obj1); | |
11706 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11707 | temp2 = True; |
d14a1e28 RD |
11708 | } |
11709 | { | |
11710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11711 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
11712 | ||
11713 | wxPyEndAllowThreads(__tstate); | |
11714 | if (PyErr_Occurred()) SWIG_fail; | |
11715 | } | |
11716 | Py_INCREF(Py_None); resultobj = Py_None; | |
11717 | { | |
11718 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
11719 | resultobj = t_output_helper(resultobj,o); | |
11720 | } | |
11721 | { | |
11722 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
11723 | resultobj = t_output_helper(resultobj,o); | |
11724 | } | |
11725 | { | |
11726 | if (temp2) | |
11727 | delete arg2; | |
11728 | } | |
11729 | return resultobj; | |
11730 | fail: | |
11731 | { | |
11732 | if (temp2) | |
11733 | delete arg2; | |
11734 | } | |
11735 | return NULL; | |
11736 | } | |
11737 | ||
11738 | ||
11739 | static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11740 | PyObject *resultobj; | |
11741 | wxDC *arg1 = (wxDC *) 0 ; | |
11742 | wxString *arg2 = 0 ; | |
423f194a RD |
11743 | int *arg3 = (int *) 0 ; |
11744 | int *arg4 = (int *) 0 ; | |
11745 | int *arg5 = (int *) 0 ; | |
11746 | int *arg6 = (int *) 0 ; | |
d14a1e28 | 11747 | wxFont *arg7 = (wxFont *) NULL ; |
423f194a RD |
11748 | bool temp2 = False ; |
11749 | int temp3 ; | |
11750 | int temp4 ; | |
11751 | int temp5 ; | |
11752 | int temp6 ; | |
d14a1e28 RD |
11753 | PyObject * obj0 = 0 ; |
11754 | PyObject * obj1 = 0 ; | |
11755 | PyObject * obj2 = 0 ; | |
11756 | char *kwnames[] = { | |
11757 | (char *) "self",(char *) "string",(char *) "font", NULL | |
11758 | }; | |
11759 | ||
11760 | arg3 = &temp3; | |
11761 | arg4 = &temp4; | |
11762 | arg5 = &temp5; | |
11763 | arg6 = &temp6; | |
11764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11765 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11766 | { | |
11767 | arg2 = wxString_in_helper(obj1); | |
11768 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11769 | temp2 = True; |
d14a1e28 RD |
11770 | } |
11771 | if (obj2) { | |
11772 | if ((SWIG_ConvertPtr(obj2,(void **) &arg7, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11773 | } | |
11774 | { | |
11775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11776 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7); | |
11777 | ||
11778 | wxPyEndAllowThreads(__tstate); | |
11779 | if (PyErr_Occurred()) SWIG_fail; | |
11780 | } | |
11781 | Py_INCREF(Py_None); resultobj = Py_None; | |
11782 | { | |
11783 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
11784 | resultobj = t_output_helper(resultobj,o); | |
11785 | } | |
11786 | { | |
11787 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
11788 | resultobj = t_output_helper(resultobj,o); | |
11789 | } | |
11790 | { | |
11791 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
11792 | resultobj = t_output_helper(resultobj,o); | |
11793 | } | |
11794 | { | |
11795 | PyObject *o = PyInt_FromLong((long) (*arg6)); | |
11796 | resultobj = t_output_helper(resultobj,o); | |
11797 | } | |
11798 | { | |
11799 | if (temp2) | |
11800 | delete arg2; | |
11801 | } | |
11802 | return resultobj; | |
11803 | fail: | |
11804 | { | |
11805 | if (temp2) | |
11806 | delete arg2; | |
11807 | } | |
11808 | return NULL; | |
11809 | } | |
11810 | ||
11811 | ||
11812 | static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11813 | PyObject *resultobj; | |
11814 | wxDC *arg1 = (wxDC *) 0 ; | |
11815 | wxString *arg2 = 0 ; | |
423f194a RD |
11816 | int *arg3 = (int *) 0 ; |
11817 | int *arg4 = (int *) 0 ; | |
11818 | int *arg5 = (int *) 0 ; | |
d14a1e28 | 11819 | wxFont *arg6 = (wxFont *) NULL ; |
423f194a RD |
11820 | bool temp2 = False ; |
11821 | int temp3 ; | |
11822 | int temp4 ; | |
11823 | int temp5 ; | |
d14a1e28 RD |
11824 | PyObject * obj0 = 0 ; |
11825 | PyObject * obj1 = 0 ; | |
11826 | PyObject * obj2 = 0 ; | |
11827 | char *kwnames[] = { | |
11828 | (char *) "self",(char *) "text",(char *) "font", NULL | |
11829 | }; | |
11830 | ||
11831 | arg3 = &temp3; | |
11832 | arg4 = &temp4; | |
11833 | arg5 = &temp5; | |
11834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11835 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11836 | { | |
11837 | arg2 = wxString_in_helper(obj1); | |
11838 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11839 | temp2 = True; |
d14a1e28 RD |
11840 | } |
11841 | if (obj2) { | |
11842 | if ((SWIG_ConvertPtr(obj2,(void **) &arg6, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11843 | } | |
11844 | { | |
11845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11846 | (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
11847 | ||
11848 | wxPyEndAllowThreads(__tstate); | |
11849 | if (PyErr_Occurred()) SWIG_fail; | |
11850 | } | |
11851 | Py_INCREF(Py_None); resultobj = Py_None; | |
11852 | { | |
11853 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
11854 | resultobj = t_output_helper(resultobj,o); | |
11855 | } | |
11856 | { | |
11857 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
11858 | resultobj = t_output_helper(resultobj,o); | |
11859 | } | |
11860 | { | |
11861 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
11862 | resultobj = t_output_helper(resultobj,o); | |
11863 | } | |
11864 | { | |
11865 | if (temp2) | |
11866 | delete arg2; | |
11867 | } | |
11868 | return resultobj; | |
11869 | fail: | |
11870 | { | |
11871 | if (temp2) | |
11872 | delete arg2; | |
11873 | } | |
11874 | return NULL; | |
11875 | } | |
11876 | ||
11877 | ||
44127b65 RD |
11878 | static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
11879 | PyObject *resultobj; | |
11880 | wxDC *arg1 = (wxDC *) 0 ; | |
11881 | wxSize result; | |
11882 | PyObject * obj0 = 0 ; | |
11883 | char *kwnames[] = { | |
11884 | (char *) "self", NULL | |
11885 | }; | |
11886 | ||
11887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail; | |
11888 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11889 | { | |
11890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11891 | result = (arg1)->GetSize(); | |
11892 | ||
11893 | wxPyEndAllowThreads(__tstate); | |
11894 | if (PyErr_Occurred()) SWIG_fail; | |
11895 | } | |
11896 | { | |
11897 | wxSize * resultptr; | |
11898 | resultptr = new wxSize((wxSize &) result); | |
11899 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
11900 | } | |
11901 | return resultobj; | |
11902 | fail: | |
11903 | return NULL; | |
11904 | } | |
11905 | ||
11906 | ||
d14a1e28 RD |
11907 | static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
11908 | PyObject *resultobj; | |
11909 | wxDC *arg1 = (wxDC *) 0 ; | |
11910 | int *arg2 = (int *) 0 ; | |
11911 | int *arg3 = (int *) 0 ; | |
11912 | int temp2 ; | |
11913 | int temp3 ; | |
11914 | PyObject * obj0 = 0 ; | |
11915 | char *kwnames[] = { | |
11916 | (char *) "self", NULL | |
11917 | }; | |
11918 | ||
11919 | arg2 = &temp2; | |
11920 | arg3 = &temp3; | |
11921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail; | |
11922 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11923 | { | |
11924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11925 | (arg1)->GetSize(arg2,arg3); | |
11926 | ||
11927 | wxPyEndAllowThreads(__tstate); | |
11928 | if (PyErr_Occurred()) SWIG_fail; | |
11929 | } | |
11930 | Py_INCREF(Py_None); resultobj = Py_None; | |
11931 | { | |
11932 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
11933 | resultobj = t_output_helper(resultobj,o); | |
11934 | } | |
11935 | { | |
11936 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
11937 | resultobj = t_output_helper(resultobj,o); | |
11938 | } | |
11939 | return resultobj; | |
11940 | fail: | |
11941 | return NULL; | |
11942 | } | |
11943 | ||
11944 | ||
44127b65 | 11945 | static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11946 | PyObject *resultobj; |
11947 | wxDC *arg1 = (wxDC *) 0 ; | |
11948 | wxSize result; | |
11949 | PyObject * obj0 = 0 ; | |
11950 | char *kwnames[] = { | |
11951 | (char *) "self", NULL | |
11952 | }; | |
11953 | ||
44127b65 | 11954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
11955 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11956 | { | |
11957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 11958 | result = ((wxDC const *)arg1)->GetSizeMM(); |
d14a1e28 RD |
11959 | |
11960 | wxPyEndAllowThreads(__tstate); | |
11961 | if (PyErr_Occurred()) SWIG_fail; | |
11962 | } | |
11963 | { | |
11964 | wxSize * resultptr; | |
11965 | resultptr = new wxSize((wxSize &) result); | |
11966 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
11967 | } | |
11968 | return resultobj; | |
11969 | fail: | |
11970 | return NULL; | |
11971 | } | |
11972 | ||
11973 | ||
44127b65 | 11974 | static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11975 | PyObject *resultobj; |
11976 | wxDC *arg1 = (wxDC *) 0 ; | |
11977 | int *arg2 = (int *) 0 ; | |
11978 | int *arg3 = (int *) 0 ; | |
11979 | int temp2 ; | |
11980 | int temp3 ; | |
11981 | PyObject * obj0 = 0 ; | |
11982 | char *kwnames[] = { | |
11983 | (char *) "self", NULL | |
11984 | }; | |
11985 | ||
11986 | arg2 = &temp2; | |
11987 | arg3 = &temp3; | |
44127b65 | 11988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
11989 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11990 | { | |
11991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11992 | ((wxDC const *)arg1)->GetSizeMM(arg2,arg3); | |
11993 | ||
11994 | wxPyEndAllowThreads(__tstate); | |
11995 | if (PyErr_Occurred()) SWIG_fail; | |
11996 | } | |
11997 | Py_INCREF(Py_None); resultobj = Py_None; | |
11998 | { | |
11999 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
12000 | resultobj = t_output_helper(resultobj,o); | |
12001 | } | |
12002 | { | |
12003 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12004 | resultobj = t_output_helper(resultobj,o); | |
12005 | } | |
12006 | return resultobj; | |
12007 | fail: | |
12008 | return NULL; | |
12009 | } | |
12010 | ||
12011 | ||
d14a1e28 RD |
12012 | static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) { |
12013 | PyObject *resultobj; | |
12014 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
12015 | int arg2 ; |
12016 | int result; | |
d14a1e28 RD |
12017 | PyObject * obj0 = 0 ; |
12018 | char *kwnames[] = { | |
12019 | (char *) "self",(char *) "x", NULL | |
12020 | }; | |
12021 | ||
12022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalX",kwnames,&obj0,&arg2)) goto fail; | |
12023 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12024 | { | |
12025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 12026 | result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2); |
d14a1e28 RD |
12027 | |
12028 | wxPyEndAllowThreads(__tstate); | |
12029 | if (PyErr_Occurred()) SWIG_fail; | |
12030 | } | |
12031 | resultobj = PyInt_FromLong((long)result); | |
12032 | return resultobj; | |
12033 | fail: | |
12034 | return NULL; | |
12035 | } | |
12036 | ||
12037 | ||
12038 | static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12039 | PyObject *resultobj; | |
12040 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
12041 | int arg2 ; |
12042 | int result; | |
d14a1e28 RD |
12043 | PyObject * obj0 = 0 ; |
12044 | char *kwnames[] = { | |
12045 | (char *) "self",(char *) "y", NULL | |
12046 | }; | |
12047 | ||
12048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalY",kwnames,&obj0,&arg2)) goto fail; | |
12049 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12050 | { | |
12051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 12052 | result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2); |
d14a1e28 RD |
12053 | |
12054 | wxPyEndAllowThreads(__tstate); | |
12055 | if (PyErr_Occurred()) SWIG_fail; | |
12056 | } | |
12057 | resultobj = PyInt_FromLong((long)result); | |
12058 | return resultobj; | |
12059 | fail: | |
12060 | return NULL; | |
12061 | } | |
12062 | ||
12063 | ||
12064 | static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12065 | PyObject *resultobj; | |
12066 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
12067 | int arg2 ; |
12068 | int result; | |
d14a1e28 RD |
12069 | PyObject * obj0 = 0 ; |
12070 | char *kwnames[] = { | |
12071 | (char *) "self",(char *) "x", NULL | |
12072 | }; | |
12073 | ||
12074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalXRel",kwnames,&obj0,&arg2)) goto fail; | |
12075 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12076 | { | |
12077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 12078 | result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2); |
d14a1e28 RD |
12079 | |
12080 | wxPyEndAllowThreads(__tstate); | |
12081 | if (PyErr_Occurred()) SWIG_fail; | |
12082 | } | |
12083 | resultobj = PyInt_FromLong((long)result); | |
12084 | return resultobj; | |
12085 | fail: | |
12086 | return NULL; | |
12087 | } | |
12088 | ||
12089 | ||
12090 | static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12091 | PyObject *resultobj; | |
12092 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
12093 | int arg2 ; |
12094 | int result; | |
d14a1e28 RD |
12095 | PyObject * obj0 = 0 ; |
12096 | char *kwnames[] = { | |
12097 | (char *) "self",(char *) "y", NULL | |
12098 | }; | |
12099 | ||
12100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalYRel",kwnames,&obj0,&arg2)) goto fail; | |
12101 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12102 | { | |
12103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 12104 | result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2); |
d14a1e28 RD |
12105 | |
12106 | wxPyEndAllowThreads(__tstate); | |
12107 | if (PyErr_Occurred()) SWIG_fail; | |
12108 | } | |
12109 | resultobj = PyInt_FromLong((long)result); | |
12110 | return resultobj; | |
12111 | fail: | |
12112 | return NULL; | |
12113 | } | |
12114 | ||
12115 | ||
12116 | static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12117 | PyObject *resultobj; | |
12118 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
12119 | int arg2 ; |
12120 | int result; | |
d14a1e28 RD |
12121 | PyObject * obj0 = 0 ; |
12122 | char *kwnames[] = { | |
12123 | (char *) "self",(char *) "x", NULL | |
12124 | }; | |
12125 | ||
12126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceX",kwnames,&obj0,&arg2)) goto fail; | |
12127 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12128 | { | |
12129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 12130 | result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2); |
d14a1e28 RD |
12131 | |
12132 | wxPyEndAllowThreads(__tstate); | |
12133 | if (PyErr_Occurred()) SWIG_fail; | |
12134 | } | |
12135 | resultobj = PyInt_FromLong((long)result); | |
12136 | return resultobj; | |
12137 | fail: | |
12138 | return NULL; | |
12139 | } | |
12140 | ||
12141 | ||
12142 | static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12143 | PyObject *resultobj; | |
12144 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
12145 | int arg2 ; |
12146 | int result; | |
d14a1e28 RD |
12147 | PyObject * obj0 = 0 ; |
12148 | char *kwnames[] = { | |
12149 | (char *) "self",(char *) "y", NULL | |
12150 | }; | |
12151 | ||
12152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceY",kwnames,&obj0,&arg2)) goto fail; | |
12153 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12154 | { | |
12155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 12156 | result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2); |
d14a1e28 RD |
12157 | |
12158 | wxPyEndAllowThreads(__tstate); | |
12159 | if (PyErr_Occurred()) SWIG_fail; | |
12160 | } | |
12161 | resultobj = PyInt_FromLong((long)result); | |
12162 | return resultobj; | |
12163 | fail: | |
12164 | return NULL; | |
12165 | } | |
12166 | ||
12167 | ||
12168 | static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12169 | PyObject *resultobj; | |
12170 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
12171 | int arg2 ; |
12172 | int result; | |
d14a1e28 RD |
12173 | PyObject * obj0 = 0 ; |
12174 | char *kwnames[] = { | |
12175 | (char *) "self",(char *) "x", NULL | |
12176 | }; | |
12177 | ||
12178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceXRel",kwnames,&obj0,&arg2)) goto fail; | |
12179 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12180 | { | |
12181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 12182 | result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2); |
d14a1e28 RD |
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_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12195 | PyObject *resultobj; | |
12196 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
12197 | int arg2 ; |
12198 | int result; | |
d14a1e28 RD |
12199 | PyObject * obj0 = 0 ; |
12200 | char *kwnames[] = { | |
12201 | (char *) "self",(char *) "y", NULL | |
12202 | }; | |
12203 | ||
12204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceYRel",kwnames,&obj0,&arg2)) goto fail; | |
12205 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12206 | { | |
12207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 12208 | result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2); |
d14a1e28 RD |
12209 | |
12210 | wxPyEndAllowThreads(__tstate); | |
12211 | if (PyErr_Occurred()) SWIG_fail; | |
12212 | } | |
12213 | resultobj = PyInt_FromLong((long)result); | |
12214 | return resultobj; | |
12215 | fail: | |
12216 | return NULL; | |
12217 | } | |
12218 | ||
12219 | ||
12220 | static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12221 | PyObject *resultobj; | |
12222 | wxDC *arg1 = (wxDC *) 0 ; | |
12223 | bool result; | |
12224 | PyObject * obj0 = 0 ; | |
12225 | char *kwnames[] = { | |
12226 | (char *) "self", NULL | |
12227 | }; | |
12228 | ||
12229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail; | |
12230 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12231 | { | |
12232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12233 | result = (bool)((wxDC const *)arg1)->CanDrawBitmap(); | |
12234 | ||
12235 | wxPyEndAllowThreads(__tstate); | |
12236 | if (PyErr_Occurred()) SWIG_fail; | |
12237 | } | |
12238 | resultobj = PyInt_FromLong((long)result); | |
12239 | return resultobj; | |
12240 | fail: | |
12241 | return NULL; | |
12242 | } | |
12243 | ||
12244 | ||
12245 | static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12246 | PyObject *resultobj; | |
12247 | wxDC *arg1 = (wxDC *) 0 ; | |
12248 | bool result; | |
12249 | PyObject * obj0 = 0 ; | |
12250 | char *kwnames[] = { | |
12251 | (char *) "self", NULL | |
12252 | }; | |
12253 | ||
12254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail; | |
12255 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12256 | { | |
12257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12258 | result = (bool)((wxDC const *)arg1)->CanGetTextExtent(); | |
12259 | ||
12260 | wxPyEndAllowThreads(__tstate); | |
12261 | if (PyErr_Occurred()) SWIG_fail; | |
12262 | } | |
12263 | resultobj = PyInt_FromLong((long)result); | |
12264 | return resultobj; | |
12265 | fail: | |
12266 | return NULL; | |
12267 | } | |
12268 | ||
12269 | ||
12270 | static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12271 | PyObject *resultobj; | |
12272 | wxDC *arg1 = (wxDC *) 0 ; | |
12273 | int result; | |
12274 | PyObject * obj0 = 0 ; | |
12275 | char *kwnames[] = { | |
12276 | (char *) "self", NULL | |
12277 | }; | |
12278 | ||
12279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail; | |
12280 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12281 | { | |
12282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12283 | result = (int)((wxDC const *)arg1)->GetDepth(); | |
12284 | ||
12285 | wxPyEndAllowThreads(__tstate); | |
12286 | if (PyErr_Occurred()) SWIG_fail; | |
12287 | } | |
12288 | resultobj = PyInt_FromLong((long)result); | |
12289 | return resultobj; | |
12290 | fail: | |
12291 | return NULL; | |
12292 | } | |
12293 | ||
12294 | ||
12295 | static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12296 | PyObject *resultobj; | |
12297 | wxDC *arg1 = (wxDC *) 0 ; | |
12298 | wxSize result; | |
12299 | PyObject * obj0 = 0 ; | |
12300 | char *kwnames[] = { | |
12301 | (char *) "self", NULL | |
12302 | }; | |
12303 | ||
12304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail; | |
12305 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12306 | { | |
12307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12308 | result = ((wxDC const *)arg1)->GetPPI(); | |
12309 | ||
12310 | wxPyEndAllowThreads(__tstate); | |
12311 | if (PyErr_Occurred()) SWIG_fail; | |
12312 | } | |
12313 | { | |
12314 | wxSize * resultptr; | |
12315 | resultptr = new wxSize((wxSize &) result); | |
12316 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
12317 | } | |
12318 | return resultobj; | |
12319 | fail: | |
12320 | return NULL; | |
12321 | } | |
12322 | ||
12323 | ||
12324 | static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12325 | PyObject *resultobj; | |
12326 | wxDC *arg1 = (wxDC *) 0 ; | |
12327 | bool result; | |
12328 | PyObject * obj0 = 0 ; | |
12329 | char *kwnames[] = { | |
12330 | (char *) "self", NULL | |
12331 | }; | |
12332 | ||
12333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail; | |
12334 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12335 | { | |
12336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12337 | result = (bool)((wxDC const *)arg1)->Ok(); | |
12338 | ||
12339 | wxPyEndAllowThreads(__tstate); | |
12340 | if (PyErr_Occurred()) SWIG_fail; | |
12341 | } | |
12342 | resultobj = PyInt_FromLong((long)result); | |
12343 | return resultobj; | |
12344 | fail: | |
12345 | return NULL; | |
12346 | } | |
12347 | ||
12348 | ||
12349 | static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12350 | PyObject *resultobj; | |
12351 | wxDC *arg1 = (wxDC *) 0 ; | |
12352 | int result; | |
12353 | PyObject * obj0 = 0 ; | |
12354 | char *kwnames[] = { | |
12355 | (char *) "self", NULL | |
12356 | }; | |
12357 | ||
12358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail; | |
12359 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12360 | { | |
12361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12362 | result = (int)((wxDC const *)arg1)->GetBackgroundMode(); | |
12363 | ||
12364 | wxPyEndAllowThreads(__tstate); | |
12365 | if (PyErr_Occurred()) SWIG_fail; | |
12366 | } | |
12367 | resultobj = PyInt_FromLong((long)result); | |
12368 | return resultobj; | |
12369 | fail: | |
12370 | return NULL; | |
12371 | } | |
12372 | ||
12373 | ||
12374 | static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12375 | PyObject *resultobj; | |
12376 | wxDC *arg1 = (wxDC *) 0 ; | |
12377 | wxBrush *result; | |
12378 | PyObject * obj0 = 0 ; | |
12379 | char *kwnames[] = { | |
12380 | (char *) "self", NULL | |
12381 | }; | |
12382 | ||
12383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail; | |
12384 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12385 | { | |
12386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12387 | { | |
12388 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground(); | |
12389 | result = (wxBrush *) &_result_ref; | |
12390 | } | |
12391 | ||
12392 | wxPyEndAllowThreads(__tstate); | |
12393 | if (PyErr_Occurred()) SWIG_fail; | |
12394 | } | |
12395 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0); | |
12396 | return resultobj; | |
12397 | fail: | |
12398 | return NULL; | |
12399 | } | |
12400 | ||
12401 | ||
12402 | static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12403 | PyObject *resultobj; | |
12404 | wxDC *arg1 = (wxDC *) 0 ; | |
12405 | wxBrush *result; | |
12406 | PyObject * obj0 = 0 ; | |
12407 | char *kwnames[] = { | |
12408 | (char *) "self", NULL | |
12409 | }; | |
12410 | ||
12411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail; | |
12412 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12413 | { | |
12414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12415 | { | |
12416 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush(); | |
12417 | result = (wxBrush *) &_result_ref; | |
12418 | } | |
12419 | ||
12420 | wxPyEndAllowThreads(__tstate); | |
12421 | if (PyErr_Occurred()) SWIG_fail; | |
12422 | } | |
12423 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0); | |
12424 | return resultobj; | |
12425 | fail: | |
12426 | return NULL; | |
12427 | } | |
12428 | ||
12429 | ||
12430 | static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12431 | PyObject *resultobj; | |
12432 | wxDC *arg1 = (wxDC *) 0 ; | |
12433 | wxFont *result; | |
12434 | PyObject * obj0 = 0 ; | |
12435 | char *kwnames[] = { | |
12436 | (char *) "self", NULL | |
12437 | }; | |
12438 | ||
12439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail; | |
12440 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12441 | { | |
12442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12443 | { | |
12444 | wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont(); | |
12445 | result = (wxFont *) &_result_ref; | |
12446 | } | |
12447 | ||
12448 | wxPyEndAllowThreads(__tstate); | |
12449 | if (PyErr_Occurred()) SWIG_fail; | |
12450 | } | |
12451 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0); | |
12452 | return resultobj; | |
12453 | fail: | |
12454 | return NULL; | |
12455 | } | |
12456 | ||
12457 | ||
12458 | static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12459 | PyObject *resultobj; | |
12460 | wxDC *arg1 = (wxDC *) 0 ; | |
12461 | wxPen *result; | |
12462 | PyObject * obj0 = 0 ; | |
12463 | char *kwnames[] = { | |
12464 | (char *) "self", NULL | |
12465 | }; | |
12466 | ||
12467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail; | |
12468 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12469 | { | |
12470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12471 | { | |
12472 | wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen(); | |
12473 | result = (wxPen *) &_result_ref; | |
12474 | } | |
12475 | ||
12476 | wxPyEndAllowThreads(__tstate); | |
12477 | if (PyErr_Occurred()) SWIG_fail; | |
12478 | } | |
12479 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0); | |
12480 | return resultobj; | |
12481 | fail: | |
12482 | return NULL; | |
12483 | } | |
12484 | ||
12485 | ||
12486 | static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12487 | PyObject *resultobj; | |
12488 | wxDC *arg1 = (wxDC *) 0 ; | |
12489 | wxColour *result; | |
12490 | PyObject * obj0 = 0 ; | |
12491 | char *kwnames[] = { | |
12492 | (char *) "self", NULL | |
12493 | }; | |
12494 | ||
12495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail; | |
12496 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12497 | { | |
12498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12499 | { | |
12500 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground(); | |
12501 | result = (wxColour *) &_result_ref; | |
12502 | } | |
12503 | ||
12504 | wxPyEndAllowThreads(__tstate); | |
12505 | if (PyErr_Occurred()) SWIG_fail; | |
12506 | } | |
12507 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0); | |
12508 | return resultobj; | |
12509 | fail: | |
12510 | return NULL; | |
12511 | } | |
12512 | ||
12513 | ||
12514 | static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12515 | PyObject *resultobj; | |
12516 | wxDC *arg1 = (wxDC *) 0 ; | |
12517 | wxColour *result; | |
12518 | PyObject * obj0 = 0 ; | |
12519 | char *kwnames[] = { | |
12520 | (char *) "self", NULL | |
12521 | }; | |
12522 | ||
12523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail; | |
12524 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12525 | { | |
12526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12527 | { | |
12528 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground(); | |
12529 | result = (wxColour *) &_result_ref; | |
12530 | } | |
12531 | ||
12532 | wxPyEndAllowThreads(__tstate); | |
12533 | if (PyErr_Occurred()) SWIG_fail; | |
12534 | } | |
12535 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0); | |
12536 | return resultobj; | |
12537 | fail: | |
12538 | return NULL; | |
12539 | } | |
12540 | ||
12541 | ||
12542 | static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12543 | PyObject *resultobj; | |
12544 | wxDC *arg1 = (wxDC *) 0 ; | |
12545 | wxColour *arg2 = 0 ; | |
12546 | wxColour temp2 ; | |
12547 | PyObject * obj0 = 0 ; | |
12548 | PyObject * obj1 = 0 ; | |
12549 | char *kwnames[] = { | |
12550 | (char *) "self",(char *) "colour", NULL | |
12551 | }; | |
12552 | ||
12553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail; | |
12554 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12555 | { | |
12556 | arg2 = &temp2; | |
12557 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
12558 | } | |
12559 | { | |
12560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12561 | (arg1)->SetTextForeground((wxColour const &)*arg2); | |
12562 | ||
12563 | wxPyEndAllowThreads(__tstate); | |
12564 | if (PyErr_Occurred()) SWIG_fail; | |
12565 | } | |
12566 | Py_INCREF(Py_None); resultobj = Py_None; | |
12567 | return resultobj; | |
12568 | fail: | |
12569 | return NULL; | |
12570 | } | |
12571 | ||
12572 | ||
12573 | static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12574 | PyObject *resultobj; | |
12575 | wxDC *arg1 = (wxDC *) 0 ; | |
12576 | wxColour *arg2 = 0 ; | |
12577 | wxColour temp2 ; | |
12578 | PyObject * obj0 = 0 ; | |
12579 | PyObject * obj1 = 0 ; | |
12580 | char *kwnames[] = { | |
12581 | (char *) "self",(char *) "colour", NULL | |
12582 | }; | |
12583 | ||
12584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail; | |
12585 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12586 | { | |
12587 | arg2 = &temp2; | |
12588 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
12589 | } | |
12590 | { | |
12591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12592 | (arg1)->SetTextBackground((wxColour const &)*arg2); | |
12593 | ||
12594 | wxPyEndAllowThreads(__tstate); | |
12595 | if (PyErr_Occurred()) SWIG_fail; | |
12596 | } | |
12597 | Py_INCREF(Py_None); resultobj = Py_None; | |
12598 | return resultobj; | |
12599 | fail: | |
12600 | return NULL; | |
12601 | } | |
12602 | ||
12603 | ||
12604 | static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12605 | PyObject *resultobj; | |
12606 | wxDC *arg1 = (wxDC *) 0 ; | |
12607 | int result; | |
12608 | PyObject * obj0 = 0 ; | |
12609 | char *kwnames[] = { | |
12610 | (char *) "self", NULL | |
12611 | }; | |
12612 | ||
12613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail; | |
12614 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12615 | { | |
12616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12617 | result = (int)((wxDC const *)arg1)->GetMapMode(); | |
12618 | ||
12619 | wxPyEndAllowThreads(__tstate); | |
12620 | if (PyErr_Occurred()) SWIG_fail; | |
12621 | } | |
12622 | resultobj = PyInt_FromLong((long)result); | |
12623 | return resultobj; | |
12624 | fail: | |
12625 | return NULL; | |
12626 | } | |
12627 | ||
12628 | ||
12629 | static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12630 | PyObject *resultobj; | |
12631 | wxDC *arg1 = (wxDC *) 0 ; | |
12632 | int arg2 ; | |
12633 | PyObject * obj0 = 0 ; | |
12634 | char *kwnames[] = { | |
12635 | (char *) "self",(char *) "mode", NULL | |
12636 | }; | |
12637 | ||
12638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_SetMapMode",kwnames,&obj0,&arg2)) goto fail; | |
12639 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12640 | { | |
12641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12642 | (arg1)->SetMapMode(arg2); | |
12643 | ||
12644 | wxPyEndAllowThreads(__tstate); | |
12645 | if (PyErr_Occurred()) SWIG_fail; | |
12646 | } | |
12647 | Py_INCREF(Py_None); resultobj = Py_None; | |
12648 | return resultobj; | |
12649 | fail: | |
12650 | return NULL; | |
12651 | } | |
12652 | ||
12653 | ||
12654 | static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12655 | PyObject *resultobj; | |
12656 | wxDC *arg1 = (wxDC *) 0 ; | |
12657 | double *arg2 = (double *) 0 ; | |
12658 | double *arg3 = (double *) 0 ; | |
12659 | double temp2 ; | |
12660 | double temp3 ; | |
12661 | PyObject * obj0 = 0 ; | |
12662 | char *kwnames[] = { | |
12663 | (char *) "self", NULL | |
12664 | }; | |
12665 | ||
12666 | arg2 = &temp2; | |
12667 | arg3 = &temp3; | |
12668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail; | |
12669 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12670 | { | |
12671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12672 | ((wxDC const *)arg1)->GetUserScale(arg2,arg3); | |
12673 | ||
12674 | wxPyEndAllowThreads(__tstate); | |
12675 | if (PyErr_Occurred()) SWIG_fail; | |
12676 | } | |
12677 | Py_INCREF(Py_None); resultobj = Py_None; | |
12678 | { | |
12679 | PyObject *o = PyFloat_FromDouble((double) (*arg2)); | |
12680 | resultobj = t_output_helper(resultobj,o); | |
12681 | } | |
12682 | { | |
12683 | PyObject *o = PyFloat_FromDouble((double) (*arg3)); | |
12684 | resultobj = t_output_helper(resultobj,o); | |
12685 | } | |
12686 | return resultobj; | |
12687 | fail: | |
12688 | return NULL; | |
12689 | } | |
12690 | ||
12691 | ||
12692 | static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12693 | PyObject *resultobj; | |
12694 | wxDC *arg1 = (wxDC *) 0 ; | |
12695 | double arg2 ; | |
12696 | double arg3 ; | |
12697 | PyObject * obj0 = 0 ; | |
12698 | char *kwnames[] = { | |
12699 | (char *) "self",(char *) "x",(char *) "y", NULL | |
12700 | }; | |
12701 | ||
12702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:DC_SetUserScale",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
12703 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12704 | { | |
12705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12706 | (arg1)->SetUserScale(arg2,arg3); | |
12707 | ||
12708 | wxPyEndAllowThreads(__tstate); | |
12709 | if (PyErr_Occurred()) SWIG_fail; | |
12710 | } | |
12711 | Py_INCREF(Py_None); resultobj = Py_None; | |
12712 | return resultobj; | |
12713 | fail: | |
12714 | return NULL; | |
12715 | } | |
12716 | ||
12717 | ||
12718 | static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12719 | PyObject *resultobj; | |
12720 | wxDC *arg1 = (wxDC *) 0 ; | |
12721 | double *arg2 = (double *) 0 ; | |
12722 | double *arg3 = (double *) 0 ; | |
12723 | double temp2 ; | |
12724 | double temp3 ; | |
12725 | PyObject * obj0 = 0 ; | |
12726 | char *kwnames[] = { | |
12727 | (char *) "self", NULL | |
12728 | }; | |
12729 | ||
12730 | arg2 = &temp2; | |
12731 | arg3 = &temp3; | |
12732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail; | |
12733 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12734 | { | |
12735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12736 | (arg1)->GetLogicalScale(arg2,arg3); | |
12737 | ||
12738 | wxPyEndAllowThreads(__tstate); | |
12739 | if (PyErr_Occurred()) SWIG_fail; | |
12740 | } | |
12741 | Py_INCREF(Py_None); resultobj = Py_None; | |
12742 | { | |
12743 | PyObject *o = PyFloat_FromDouble((double) (*arg2)); | |
12744 | resultobj = t_output_helper(resultobj,o); | |
12745 | } | |
12746 | { | |
12747 | PyObject *o = PyFloat_FromDouble((double) (*arg3)); | |
12748 | resultobj = t_output_helper(resultobj,o); | |
12749 | } | |
12750 | return resultobj; | |
12751 | fail: | |
12752 | return NULL; | |
12753 | } | |
12754 | ||
12755 | ||
12756 | static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12757 | PyObject *resultobj; | |
12758 | wxDC *arg1 = (wxDC *) 0 ; | |
12759 | double arg2 ; | |
12760 | double arg3 ; | |
12761 | PyObject * obj0 = 0 ; | |
12762 | char *kwnames[] = { | |
12763 | (char *) "self",(char *) "x",(char *) "y", NULL | |
12764 | }; | |
12765 | ||
12766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:DC_SetLogicalScale",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
12767 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12768 | { | |
12769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12770 | (arg1)->SetLogicalScale(arg2,arg3); | |
12771 | ||
12772 | wxPyEndAllowThreads(__tstate); | |
12773 | if (PyErr_Occurred()) SWIG_fail; | |
12774 | } | |
12775 | Py_INCREF(Py_None); resultobj = Py_None; | |
12776 | return resultobj; | |
12777 | fail: | |
12778 | return NULL; | |
12779 | } | |
12780 | ||
12781 | ||
44127b65 | 12782 | static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12783 | PyObject *resultobj; |
12784 | wxDC *arg1 = (wxDC *) 0 ; | |
44127b65 | 12785 | wxPoint result; |
d14a1e28 RD |
12786 | PyObject * obj0 = 0 ; |
12787 | char *kwnames[] = { | |
12788 | (char *) "self", NULL | |
12789 | }; | |
12790 | ||
44127b65 | 12791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
12792 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
12793 | { | |
12794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 12795 | result = ((wxDC const *)arg1)->GetLogicalOrigin(); |
d14a1e28 RD |
12796 | |
12797 | wxPyEndAllowThreads(__tstate); | |
12798 | if (PyErr_Occurred()) SWIG_fail; | |
12799 | } | |
d14a1e28 | 12800 | { |
44127b65 RD |
12801 | wxPoint * resultptr; |
12802 | resultptr = new wxPoint((wxPoint &) result); | |
12803 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
d14a1e28 RD |
12804 | } |
12805 | return resultobj; | |
12806 | fail: | |
12807 | return NULL; | |
12808 | } | |
12809 | ||
12810 | ||
44127b65 | 12811 | static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12812 | PyObject *resultobj; |
12813 | wxDC *arg1 = (wxDC *) 0 ; | |
44127b65 RD |
12814 | int *arg2 = (int *) 0 ; |
12815 | int *arg3 = (int *) 0 ; | |
12816 | int temp2 ; | |
12817 | int temp3 ; | |
d14a1e28 RD |
12818 | PyObject * obj0 = 0 ; |
12819 | char *kwnames[] = { | |
12820 | (char *) "self", NULL | |
12821 | }; | |
12822 | ||
44127b65 RD |
12823 | arg2 = &temp2; |
12824 | arg3 = &temp3; | |
12825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail; | |
d14a1e28 RD |
12826 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
12827 | { | |
12828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 12829 | ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3); |
d14a1e28 RD |
12830 | |
12831 | wxPyEndAllowThreads(__tstate); | |
12832 | if (PyErr_Occurred()) SWIG_fail; | |
12833 | } | |
44127b65 | 12834 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 | 12835 | { |
44127b65 RD |
12836 | PyObject *o = PyInt_FromLong((long) (*arg2)); |
12837 | resultobj = t_output_helper(resultobj,o); | |
12838 | } | |
12839 | { | |
12840 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12841 | resultobj = t_output_helper(resultobj,o); | |
d14a1e28 RD |
12842 | } |
12843 | return resultobj; | |
12844 | fail: | |
12845 | return NULL; | |
12846 | } | |
12847 | ||
12848 | ||
12849 | static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12850 | PyObject *resultobj; | |
12851 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
12852 | int arg2 ; |
12853 | int arg3 ; | |
d14a1e28 RD |
12854 | PyObject * obj0 = 0 ; |
12855 | char *kwnames[] = { | |
12856 | (char *) "self",(char *) "x",(char *) "y", NULL | |
12857 | }; | |
12858 | ||
12859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_SetLogicalOrigin",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
12860 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12861 | { | |
12862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12863 | (arg1)->SetLogicalOrigin(arg2,arg3); | |
12864 | ||
12865 | wxPyEndAllowThreads(__tstate); | |
12866 | if (PyErr_Occurred()) SWIG_fail; | |
12867 | } | |
12868 | Py_INCREF(Py_None); resultobj = Py_None; | |
12869 | return resultobj; | |
12870 | fail: | |
12871 | return NULL; | |
12872 | } | |
12873 | ||
12874 | ||
44127b65 | 12875 | static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12876 | PyObject *resultobj; |
12877 | wxDC *arg1 = (wxDC *) 0 ; | |
44127b65 | 12878 | wxPoint result; |
d14a1e28 RD |
12879 | PyObject * obj0 = 0 ; |
12880 | char *kwnames[] = { | |
12881 | (char *) "self", NULL | |
12882 | }; | |
12883 | ||
44127b65 | 12884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
12885 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
12886 | { | |
12887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 12888 | result = ((wxDC const *)arg1)->GetDeviceOrigin(); |
d14a1e28 RD |
12889 | |
12890 | wxPyEndAllowThreads(__tstate); | |
12891 | if (PyErr_Occurred()) SWIG_fail; | |
12892 | } | |
d14a1e28 | 12893 | { |
44127b65 RD |
12894 | wxPoint * resultptr; |
12895 | resultptr = new wxPoint((wxPoint &) result); | |
12896 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
d14a1e28 RD |
12897 | } |
12898 | return resultobj; | |
12899 | fail: | |
12900 | return NULL; | |
12901 | } | |
12902 | ||
12903 | ||
44127b65 | 12904 | static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12905 | PyObject *resultobj; |
12906 | wxDC *arg1 = (wxDC *) 0 ; | |
44127b65 RD |
12907 | int *arg2 = (int *) 0 ; |
12908 | int *arg3 = (int *) 0 ; | |
12909 | int temp2 ; | |
12910 | int temp3 ; | |
d14a1e28 RD |
12911 | PyObject * obj0 = 0 ; |
12912 | char *kwnames[] = { | |
12913 | (char *) "self", NULL | |
12914 | }; | |
12915 | ||
44127b65 RD |
12916 | arg2 = &temp2; |
12917 | arg3 = &temp3; | |
12918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail; | |
d14a1e28 RD |
12919 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
12920 | { | |
12921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 12922 | ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3); |
d14a1e28 RD |
12923 | |
12924 | wxPyEndAllowThreads(__tstate); | |
12925 | if (PyErr_Occurred()) SWIG_fail; | |
12926 | } | |
44127b65 | 12927 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 | 12928 | { |
44127b65 RD |
12929 | PyObject *o = PyInt_FromLong((long) (*arg2)); |
12930 | resultobj = t_output_helper(resultobj,o); | |
12931 | } | |
12932 | { | |
12933 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12934 | resultobj = t_output_helper(resultobj,o); | |
d14a1e28 RD |
12935 | } |
12936 | return resultobj; | |
12937 | fail: | |
12938 | return NULL; | |
12939 | } | |
12940 | ||
12941 | ||
12942 | static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12943 | PyObject *resultobj; | |
12944 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
12945 | int arg2 ; |
12946 | int arg3 ; | |
d14a1e28 RD |
12947 | PyObject * obj0 = 0 ; |
12948 | char *kwnames[] = { | |
12949 | (char *) "self",(char *) "x",(char *) "y", NULL | |
12950 | }; | |
12951 | ||
12952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_SetDeviceOrigin",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
12953 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12954 | { | |
12955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12956 | (arg1)->SetDeviceOrigin(arg2,arg3); | |
12957 | ||
12958 | wxPyEndAllowThreads(__tstate); | |
12959 | if (PyErr_Occurred()) SWIG_fail; | |
12960 | } | |
12961 | Py_INCREF(Py_None); resultobj = Py_None; | |
12962 | return resultobj; | |
12963 | fail: | |
12964 | return NULL; | |
12965 | } | |
12966 | ||
12967 | ||
12968 | static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12969 | PyObject *resultobj; | |
12970 | wxDC *arg1 = (wxDC *) 0 ; | |
12971 | bool arg2 ; | |
12972 | bool arg3 ; | |
12973 | PyObject * obj0 = 0 ; | |
12974 | PyObject * obj1 = 0 ; | |
12975 | PyObject * obj2 = 0 ; | |
12976 | char *kwnames[] = { | |
12977 | (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL | |
12978 | }; | |
12979 | ||
12980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12981 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12982 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
12983 | if (PyErr_Occurred()) SWIG_fail; | |
12984 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
12985 | if (PyErr_Occurred()) SWIG_fail; | |
12986 | { | |
12987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12988 | (arg1)->SetAxisOrientation(arg2,arg3); | |
12989 | ||
12990 | wxPyEndAllowThreads(__tstate); | |
12991 | if (PyErr_Occurred()) SWIG_fail; | |
12992 | } | |
12993 | Py_INCREF(Py_None); resultobj = Py_None; | |
12994 | return resultobj; | |
12995 | fail: | |
12996 | return NULL; | |
12997 | } | |
12998 | ||
12999 | ||
13000 | static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13001 | PyObject *resultobj; | |
13002 | wxDC *arg1 = (wxDC *) 0 ; | |
13003 | int result; | |
13004 | PyObject * obj0 = 0 ; | |
13005 | char *kwnames[] = { | |
13006 | (char *) "self", NULL | |
13007 | }; | |
13008 | ||
13009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail; | |
13010 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13011 | { | |
13012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13013 | result = (int)((wxDC const *)arg1)->GetLogicalFunction(); | |
13014 | ||
13015 | wxPyEndAllowThreads(__tstate); | |
13016 | if (PyErr_Occurred()) SWIG_fail; | |
13017 | } | |
13018 | resultobj = PyInt_FromLong((long)result); | |
13019 | return resultobj; | |
13020 | fail: | |
13021 | return NULL; | |
13022 | } | |
13023 | ||
13024 | ||
13025 | static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13026 | PyObject *resultobj; | |
13027 | wxDC *arg1 = (wxDC *) 0 ; | |
13028 | int arg2 ; | |
13029 | PyObject * obj0 = 0 ; | |
13030 | char *kwnames[] = { | |
13031 | (char *) "self",(char *) "function", NULL | |
13032 | }; | |
13033 | ||
13034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_SetLogicalFunction",kwnames,&obj0,&arg2)) goto fail; | |
13035 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13036 | { | |
13037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13038 | (arg1)->SetLogicalFunction(arg2); | |
13039 | ||
13040 | wxPyEndAllowThreads(__tstate); | |
13041 | if (PyErr_Occurred()) SWIG_fail; | |
13042 | } | |
13043 | Py_INCREF(Py_None); resultobj = Py_None; | |
13044 | return resultobj; | |
13045 | fail: | |
13046 | return NULL; | |
13047 | } | |
13048 | ||
13049 | ||
13050 | static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13051 | PyObject *resultobj; | |
13052 | wxDC *arg1 = (wxDC *) 0 ; | |
13053 | bool arg2 ; | |
13054 | PyObject * obj0 = 0 ; | |
13055 | PyObject * obj1 = 0 ; | |
13056 | char *kwnames[] = { | |
13057 | (char *) "self",(char *) "opt", NULL | |
13058 | }; | |
13059 | ||
13060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail; | |
13061 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13062 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
13063 | if (PyErr_Occurred()) SWIG_fail; | |
13064 | { | |
13065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13066 | (arg1)->SetOptimization(arg2); | |
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_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13079 | PyObject *resultobj; | |
13080 | wxDC *arg1 = (wxDC *) 0 ; | |
13081 | bool result; | |
13082 | PyObject * obj0 = 0 ; | |
13083 | char *kwnames[] = { | |
13084 | (char *) "self", NULL | |
13085 | }; | |
13086 | ||
13087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail; | |
13088 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13089 | { | |
13090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13091 | result = (bool)(arg1)->GetOptimization(); | |
13092 | ||
13093 | wxPyEndAllowThreads(__tstate); | |
13094 | if (PyErr_Occurred()) SWIG_fail; | |
13095 | } | |
13096 | resultobj = PyInt_FromLong((long)result); | |
13097 | return resultobj; | |
13098 | fail: | |
13099 | return NULL; | |
13100 | } | |
13101 | ||
13102 | ||
13103 | static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13104 | PyObject *resultobj; | |
13105 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
13106 | int arg2 ; |
13107 | int arg3 ; | |
d14a1e28 RD |
13108 | PyObject * obj0 = 0 ; |
13109 | char *kwnames[] = { | |
13110 | (char *) "self",(char *) "x",(char *) "y", NULL | |
13111 | }; | |
13112 | ||
13113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_CalcBoundingBox",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
13114 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13115 | { | |
13116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13117 | (arg1)->CalcBoundingBox(arg2,arg3); | |
13118 | ||
13119 | wxPyEndAllowThreads(__tstate); | |
13120 | if (PyErr_Occurred()) SWIG_fail; | |
13121 | } | |
13122 | Py_INCREF(Py_None); resultobj = Py_None; | |
13123 | return resultobj; | |
13124 | fail: | |
13125 | return NULL; | |
13126 | } | |
13127 | ||
13128 | ||
13129 | static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13130 | PyObject *resultobj; | |
13131 | wxDC *arg1 = (wxDC *) 0 ; | |
13132 | PyObject * obj0 = 0 ; | |
13133 | char *kwnames[] = { | |
13134 | (char *) "self", NULL | |
13135 | }; | |
13136 | ||
13137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail; | |
13138 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13139 | { | |
13140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13141 | (arg1)->ResetBoundingBox(); | |
13142 | ||
13143 | wxPyEndAllowThreads(__tstate); | |
13144 | if (PyErr_Occurred()) SWIG_fail; | |
13145 | } | |
13146 | Py_INCREF(Py_None); resultobj = Py_None; | |
13147 | return resultobj; | |
13148 | fail: | |
13149 | return NULL; | |
13150 | } | |
13151 | ||
13152 | ||
13153 | static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13154 | PyObject *resultobj; | |
13155 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a | 13156 | int result; |
d14a1e28 RD |
13157 | PyObject * obj0 = 0 ; |
13158 | char *kwnames[] = { | |
13159 | (char *) "self", NULL | |
13160 | }; | |
13161 | ||
13162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail; | |
13163 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13164 | { | |
13165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13166 | result = (int)((wxDC const *)arg1)->MinX(); |
d14a1e28 RD |
13167 | |
13168 | wxPyEndAllowThreads(__tstate); | |
13169 | if (PyErr_Occurred()) SWIG_fail; | |
13170 | } | |
13171 | resultobj = PyInt_FromLong((long)result); | |
13172 | return resultobj; | |
13173 | fail: | |
13174 | return NULL; | |
13175 | } | |
13176 | ||
13177 | ||
13178 | static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13179 | PyObject *resultobj; | |
13180 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a | 13181 | int result; |
d14a1e28 RD |
13182 | PyObject * obj0 = 0 ; |
13183 | char *kwnames[] = { | |
13184 | (char *) "self", NULL | |
13185 | }; | |
13186 | ||
13187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail; | |
13188 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13189 | { | |
13190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13191 | result = (int)((wxDC const *)arg1)->MaxX(); |
d14a1e28 RD |
13192 | |
13193 | wxPyEndAllowThreads(__tstate); | |
13194 | if (PyErr_Occurred()) SWIG_fail; | |
13195 | } | |
13196 | resultobj = PyInt_FromLong((long)result); | |
13197 | return resultobj; | |
13198 | fail: | |
13199 | return NULL; | |
13200 | } | |
13201 | ||
13202 | ||
13203 | static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13204 | PyObject *resultobj; | |
13205 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a | 13206 | int result; |
d14a1e28 RD |
13207 | PyObject * obj0 = 0 ; |
13208 | char *kwnames[] = { | |
13209 | (char *) "self", NULL | |
13210 | }; | |
13211 | ||
13212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail; | |
13213 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13214 | { | |
13215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13216 | result = (int)((wxDC const *)arg1)->MinY(); |
d14a1e28 RD |
13217 | |
13218 | wxPyEndAllowThreads(__tstate); | |
13219 | if (PyErr_Occurred()) SWIG_fail; | |
13220 | } | |
13221 | resultobj = PyInt_FromLong((long)result); | |
13222 | return resultobj; | |
13223 | fail: | |
13224 | return NULL; | |
13225 | } | |
13226 | ||
13227 | ||
13228 | static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13229 | PyObject *resultobj; | |
13230 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a | 13231 | int result; |
d14a1e28 RD |
13232 | PyObject * obj0 = 0 ; |
13233 | char *kwnames[] = { | |
13234 | (char *) "self", NULL | |
13235 | }; | |
13236 | ||
13237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail; | |
13238 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13239 | { | |
13240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13241 | result = (int)((wxDC const *)arg1)->MaxY(); |
d14a1e28 RD |
13242 | |
13243 | wxPyEndAllowThreads(__tstate); | |
13244 | if (PyErr_Occurred()) SWIG_fail; | |
13245 | } | |
13246 | resultobj = PyInt_FromLong((long)result); | |
13247 | return resultobj; | |
13248 | fail: | |
13249 | return NULL; | |
13250 | } | |
13251 | ||
13252 | ||
13253 | static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13254 | PyObject *resultobj; | |
13255 | wxDC *arg1 = (wxDC *) 0 ; | |
13256 | int *arg2 = (int *) 0 ; | |
13257 | int *arg3 = (int *) 0 ; | |
13258 | int *arg4 = (int *) 0 ; | |
13259 | int *arg5 = (int *) 0 ; | |
13260 | int temp2 ; | |
13261 | int temp3 ; | |
13262 | int temp4 ; | |
13263 | int temp5 ; | |
13264 | PyObject * obj0 = 0 ; | |
13265 | char *kwnames[] = { | |
13266 | (char *) "self", NULL | |
13267 | }; | |
13268 | ||
13269 | arg2 = &temp2; | |
13270 | arg3 = &temp3; | |
13271 | arg4 = &temp4; | |
13272 | arg5 = &temp5; | |
13273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail; | |
13274 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13275 | { | |
13276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13277 | wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5); | |
13278 | ||
13279 | wxPyEndAllowThreads(__tstate); | |
13280 | if (PyErr_Occurred()) SWIG_fail; | |
13281 | } | |
13282 | Py_INCREF(Py_None); resultobj = Py_None; | |
13283 | { | |
13284 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
13285 | resultobj = t_output_helper(resultobj,o); | |
13286 | } | |
13287 | { | |
13288 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13289 | resultobj = t_output_helper(resultobj,o); | |
13290 | } | |
13291 | { | |
13292 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
13293 | resultobj = t_output_helper(resultobj,o); | |
13294 | } | |
13295 | { | |
13296 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
13297 | resultobj = t_output_helper(resultobj,o); | |
13298 | } | |
13299 | return resultobj; | |
13300 | fail: | |
13301 | return NULL; | |
13302 | } | |
13303 | ||
13304 | ||
13305 | static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13306 | PyObject *resultobj; | |
13307 | wxDC *arg1 = (wxDC *) 0 ; | |
13308 | PyObject *arg2 = (PyObject *) 0 ; | |
13309 | PyObject *arg3 = (PyObject *) 0 ; | |
13310 | PyObject *arg4 = (PyObject *) 0 ; | |
13311 | PyObject *result; | |
13312 | PyObject * obj0 = 0 ; | |
13313 | PyObject * obj1 = 0 ; | |
13314 | PyObject * obj2 = 0 ; | |
13315 | PyObject * obj3 = 0 ; | |
13316 | char *kwnames[] = { | |
13317 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
13318 | }; | |
13319 | ||
13320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13321 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13322 | arg2 = obj1; | |
13323 | arg3 = obj2; | |
13324 | arg4 = obj3; | |
13325 | { | |
13326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13327 | result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4); | |
13328 | ||
13329 | wxPyEndAllowThreads(__tstate); | |
13330 | if (PyErr_Occurred()) SWIG_fail; | |
13331 | } | |
13332 | resultobj = result; | |
13333 | return resultobj; | |
13334 | fail: | |
13335 | return NULL; | |
13336 | } | |
13337 | ||
13338 | ||
13339 | static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13340 | PyObject *resultobj; | |
13341 | wxDC *arg1 = (wxDC *) 0 ; | |
13342 | PyObject *arg2 = (PyObject *) 0 ; | |
13343 | PyObject *arg3 = (PyObject *) 0 ; | |
13344 | PyObject *arg4 = (PyObject *) 0 ; | |
13345 | PyObject *result; | |
13346 | PyObject * obj0 = 0 ; | |
13347 | PyObject * obj1 = 0 ; | |
13348 | PyObject * obj2 = 0 ; | |
13349 | PyObject * obj3 = 0 ; | |
13350 | char *kwnames[] = { | |
13351 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
13352 | }; | |
13353 | ||
13354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13355 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13356 | arg2 = obj1; | |
13357 | arg3 = obj2; | |
13358 | arg4 = obj3; | |
13359 | { | |
13360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13361 | result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4); | |
13362 | ||
13363 | wxPyEndAllowThreads(__tstate); | |
13364 | if (PyErr_Occurred()) SWIG_fail; | |
13365 | } | |
13366 | resultobj = result; | |
13367 | return resultobj; | |
13368 | fail: | |
13369 | return NULL; | |
13370 | } | |
13371 | ||
13372 | ||
13373 | static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13374 | PyObject *resultobj; | |
13375 | wxDC *arg1 = (wxDC *) 0 ; | |
13376 | PyObject *arg2 = (PyObject *) 0 ; | |
13377 | PyObject *arg3 = (PyObject *) 0 ; | |
13378 | PyObject *arg4 = (PyObject *) 0 ; | |
13379 | PyObject *result; | |
13380 | PyObject * obj0 = 0 ; | |
13381 | PyObject * obj1 = 0 ; | |
13382 | PyObject * obj2 = 0 ; | |
13383 | PyObject * obj3 = 0 ; | |
13384 | char *kwnames[] = { | |
13385 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
13386 | }; | |
13387 | ||
13388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13389 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13390 | arg2 = obj1; | |
13391 | arg3 = obj2; | |
13392 | arg4 = obj3; | |
13393 | { | |
13394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13395 | result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4); | |
13396 | ||
13397 | wxPyEndAllowThreads(__tstate); | |
13398 | if (PyErr_Occurred()) SWIG_fail; | |
13399 | } | |
13400 | resultobj = result; | |
13401 | return resultobj; | |
13402 | fail: | |
13403 | return NULL; | |
13404 | } | |
13405 | ||
13406 | ||
13407 | static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13408 | PyObject *resultobj; | |
13409 | wxDC *arg1 = (wxDC *) 0 ; | |
13410 | PyObject *arg2 = (PyObject *) 0 ; | |
13411 | PyObject *arg3 = (PyObject *) 0 ; | |
13412 | PyObject *arg4 = (PyObject *) 0 ; | |
13413 | PyObject *result; | |
13414 | PyObject * obj0 = 0 ; | |
13415 | PyObject * obj1 = 0 ; | |
13416 | PyObject * obj2 = 0 ; | |
13417 | PyObject * obj3 = 0 ; | |
13418 | char *kwnames[] = { | |
13419 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
13420 | }; | |
13421 | ||
13422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13423 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13424 | arg2 = obj1; | |
13425 | arg3 = obj2; | |
13426 | arg4 = obj3; | |
13427 | { | |
13428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13429 | result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4); | |
13430 | ||
13431 | wxPyEndAllowThreads(__tstate); | |
13432 | if (PyErr_Occurred()) SWIG_fail; | |
13433 | } | |
13434 | resultobj = result; | |
13435 | return resultobj; | |
13436 | fail: | |
13437 | return NULL; | |
13438 | } | |
13439 | ||
13440 | ||
13441 | static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13442 | PyObject *resultobj; | |
13443 | wxDC *arg1 = (wxDC *) 0 ; | |
13444 | PyObject *arg2 = (PyObject *) 0 ; | |
13445 | PyObject *arg3 = (PyObject *) 0 ; | |
13446 | PyObject *arg4 = (PyObject *) 0 ; | |
13447 | PyObject *result; | |
13448 | PyObject * obj0 = 0 ; | |
13449 | PyObject * obj1 = 0 ; | |
13450 | PyObject * obj2 = 0 ; | |
13451 | PyObject * obj3 = 0 ; | |
13452 | char *kwnames[] = { | |
13453 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
13454 | }; | |
13455 | ||
13456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13457 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13458 | arg2 = obj1; | |
13459 | arg3 = obj2; | |
13460 | arg4 = obj3; | |
13461 | { | |
13462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13463 | result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4); | |
13464 | ||
13465 | wxPyEndAllowThreads(__tstate); | |
13466 | if (PyErr_Occurred()) SWIG_fail; | |
13467 | } | |
13468 | resultobj = result; | |
13469 | return resultobj; | |
13470 | fail: | |
13471 | return NULL; | |
13472 | } | |
13473 | ||
13474 | ||
13475 | static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13476 | PyObject *resultobj; | |
13477 | wxDC *arg1 = (wxDC *) 0 ; | |
13478 | PyObject *arg2 = (PyObject *) 0 ; | |
13479 | PyObject *arg3 = (PyObject *) 0 ; | |
13480 | PyObject *arg4 = (PyObject *) 0 ; | |
13481 | PyObject *arg5 = (PyObject *) 0 ; | |
13482 | PyObject *result; | |
13483 | PyObject * obj0 = 0 ; | |
13484 | PyObject * obj1 = 0 ; | |
13485 | PyObject * obj2 = 0 ; | |
13486 | PyObject * obj3 = 0 ; | |
13487 | PyObject * obj4 = 0 ; | |
13488 | char *kwnames[] = { | |
13489 | (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL | |
13490 | }; | |
13491 | ||
13492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
13493 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13494 | arg2 = obj1; | |
13495 | arg3 = obj2; | |
13496 | arg4 = obj3; | |
13497 | arg5 = obj4; | |
13498 | { | |
13499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13500 | result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5); | |
13501 | ||
13502 | wxPyEndAllowThreads(__tstate); | |
13503 | if (PyErr_Occurred()) SWIG_fail; | |
13504 | } | |
13505 | resultobj = result; | |
13506 | return resultobj; | |
13507 | fail: | |
13508 | return NULL; | |
13509 | } | |
13510 | ||
13511 | ||
13512 | static PyObject * DC_swigregister(PyObject *self, PyObject *args) { | |
13513 | PyObject *obj; | |
13514 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13515 | SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj); | |
13516 | Py_INCREF(obj); | |
13517 | return Py_BuildValue((char *)""); | |
13518 | } | |
13519 | static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13520 | PyObject *resultobj; | |
13521 | wxMemoryDC *result; | |
13522 | char *kwnames[] = { | |
13523 | NULL | |
13524 | }; | |
13525 | ||
13526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail; | |
13527 | { | |
13528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13529 | result = (wxMemoryDC *)new wxMemoryDC(); | |
13530 | ||
13531 | wxPyEndAllowThreads(__tstate); | |
13532 | if (PyErr_Occurred()) SWIG_fail; | |
13533 | } | |
13534 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1); | |
13535 | return resultobj; | |
13536 | fail: | |
13537 | return NULL; | |
13538 | } | |
13539 | ||
13540 | ||
13541 | static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13542 | PyObject *resultobj; | |
13543 | wxDC *arg1 = (wxDC *) 0 ; | |
13544 | wxMemoryDC *result; | |
13545 | PyObject * obj0 = 0 ; | |
13546 | char *kwnames[] = { | |
13547 | (char *) "oldDC", NULL | |
13548 | }; | |
13549 | ||
13550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail; | |
13551 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13552 | { | |
13553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13554 | result = (wxMemoryDC *)new wxMemoryDC(arg1); | |
13555 | ||
13556 | wxPyEndAllowThreads(__tstate); | |
13557 | if (PyErr_Occurred()) SWIG_fail; | |
13558 | } | |
13559 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1); | |
13560 | return resultobj; | |
13561 | fail: | |
13562 | return NULL; | |
13563 | } | |
13564 | ||
13565 | ||
13566 | static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13567 | PyObject *resultobj; | |
13568 | wxMemoryDC *arg1 = (wxMemoryDC *) 0 ; | |
13569 | wxBitmap *arg2 = 0 ; | |
13570 | PyObject * obj0 = 0 ; | |
13571 | PyObject * obj1 = 0 ; | |
13572 | char *kwnames[] = { | |
13573 | (char *) "self",(char *) "bitmap", NULL | |
13574 | }; | |
13575 | ||
13576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail; | |
13577 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13578 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13579 | if (arg2 == NULL) { | |
13580 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13581 | } | |
13582 | { | |
13583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13584 | (arg1)->SelectObject((wxBitmap const &)*arg2); | |
13585 | ||
13586 | wxPyEndAllowThreads(__tstate); | |
13587 | if (PyErr_Occurred()) SWIG_fail; | |
13588 | } | |
13589 | Py_INCREF(Py_None); resultobj = Py_None; | |
13590 | return resultobj; | |
13591 | fail: | |
13592 | return NULL; | |
13593 | } | |
13594 | ||
13595 | ||
13596 | static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) { | |
13597 | PyObject *obj; | |
13598 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13599 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj); | |
13600 | Py_INCREF(obj); | |
13601 | return Py_BuildValue((char *)""); | |
13602 | } | |
13603 | static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13604 | PyObject *resultobj; | |
13605 | wxDC *arg1 = (wxDC *) 0 ; | |
13606 | wxBitmap *arg2 = 0 ; | |
13607 | wxBufferedDC *result; | |
13608 | PyObject * obj0 = 0 ; | |
13609 | PyObject * obj1 = 0 ; | |
13610 | char *kwnames[] = { | |
13611 | (char *) "dc",(char *) "buffer", NULL | |
13612 | }; | |
13613 | ||
13614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_BufferedDC",kwnames,&obj0,&obj1)) goto fail; | |
13615 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13616 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13617 | if (arg2 == NULL) { | |
13618 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13619 | } | |
13620 | { | |
13621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13622 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2); | |
13623 | ||
13624 | wxPyEndAllowThreads(__tstate); | |
13625 | if (PyErr_Occurred()) SWIG_fail; | |
13626 | } | |
13627 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1); | |
13628 | return resultobj; | |
13629 | fail: | |
13630 | return NULL; | |
13631 | } | |
13632 | ||
13633 | ||
13634 | static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13635 | PyObject *resultobj; | |
13636 | wxDC *arg1 = (wxDC *) 0 ; | |
13637 | wxSize *arg2 = 0 ; | |
13638 | wxBufferedDC *result; | |
13639 | wxSize temp2 ; | |
13640 | PyObject * obj0 = 0 ; | |
13641 | PyObject * obj1 = 0 ; | |
13642 | char *kwnames[] = { | |
13643 | (char *) "dc",(char *) "area", NULL | |
13644 | }; | |
13645 | ||
13646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_BufferedDCInternalBuffer",kwnames,&obj0,&obj1)) goto fail; | |
13647 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13648 | { | |
13649 | arg2 = &temp2; | |
13650 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
13651 | } | |
13652 | { | |
13653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13654 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2); | |
13655 | ||
13656 | wxPyEndAllowThreads(__tstate); | |
13657 | if (PyErr_Occurred()) SWIG_fail; | |
13658 | } | |
13659 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1); | |
13660 | return resultobj; | |
13661 | fail: | |
13662 | return NULL; | |
13663 | } | |
13664 | ||
13665 | ||
13666 | static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13667 | PyObject *resultobj; | |
13668 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
13669 | PyObject * obj0 = 0 ; | |
13670 | char *kwnames[] = { | |
13671 | (char *) "self", NULL | |
13672 | }; | |
13673 | ||
13674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail; | |
13675 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBufferedDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13676 | { | |
13677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13678 | (arg1)->UnMask(); | |
13679 | ||
13680 | wxPyEndAllowThreads(__tstate); | |
13681 | if (PyErr_Occurred()) SWIG_fail; | |
13682 | } | |
13683 | Py_INCREF(Py_None); resultobj = Py_None; | |
13684 | return resultobj; | |
13685 | fail: | |
13686 | return NULL; | |
13687 | } | |
13688 | ||
13689 | ||
13690 | static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) { | |
13691 | PyObject *obj; | |
13692 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13693 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj); | |
13694 | Py_INCREF(obj); | |
13695 | return Py_BuildValue((char *)""); | |
13696 | } | |
13697 | static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13698 | PyObject *resultobj; | |
13699 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13700 | wxBitmap const &arg2_defvalue = wxNullBitmap ; | |
13701 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; | |
13702 | wxBufferedPaintDC *result; | |
13703 | PyObject * obj0 = 0 ; | |
13704 | PyObject * obj1 = 0 ; | |
13705 | char *kwnames[] = { | |
13706 | (char *) "window",(char *) "buffer", NULL | |
13707 | }; | |
13708 | ||
13709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail; | |
13710 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13711 | if (obj1) { | |
13712 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13713 | if (arg2 == NULL) { | |
13714 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13715 | } | |
13716 | } | |
13717 | { | |
13718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13719 | result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2); | |
13720 | ||
13721 | wxPyEndAllowThreads(__tstate); | |
13722 | if (PyErr_Occurred()) SWIG_fail; | |
13723 | } | |
13724 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedPaintDC, 1); | |
13725 | return resultobj; | |
13726 | fail: | |
13727 | return NULL; | |
13728 | } | |
13729 | ||
13730 | ||
13731 | static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) { | |
13732 | PyObject *obj; | |
13733 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13734 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj); | |
13735 | Py_INCREF(obj); | |
13736 | return Py_BuildValue((char *)""); | |
13737 | } | |
13738 | static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13739 | PyObject *resultobj; | |
13740 | wxScreenDC *result; | |
13741 | char *kwnames[] = { | |
13742 | NULL | |
13743 | }; | |
13744 | ||
13745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail; | |
13746 | { | |
13747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13748 | result = (wxScreenDC *)new wxScreenDC(); | |
13749 | ||
13750 | wxPyEndAllowThreads(__tstate); | |
13751 | if (PyErr_Occurred()) SWIG_fail; | |
13752 | } | |
13753 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScreenDC, 1); | |
13754 | return resultobj; | |
13755 | fail: | |
13756 | return NULL; | |
13757 | } | |
13758 | ||
13759 | ||
13760 | static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13761 | PyObject *resultobj; | |
13762 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
13763 | wxWindow *arg2 = (wxWindow *) 0 ; | |
13764 | bool result; | |
13765 | PyObject * obj0 = 0 ; | |
13766 | PyObject * obj1 = 0 ; | |
13767 | char *kwnames[] = { | |
13768 | (char *) "self",(char *) "window", NULL | |
13769 | }; | |
13770 | ||
13771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail; | |
13772 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13773 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13774 | { | |
13775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13776 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
13777 | ||
13778 | wxPyEndAllowThreads(__tstate); | |
13779 | if (PyErr_Occurred()) SWIG_fail; | |
13780 | } | |
13781 | resultobj = PyInt_FromLong((long)result); | |
13782 | return resultobj; | |
13783 | fail: | |
13784 | return NULL; | |
13785 | } | |
13786 | ||
13787 | ||
13788 | static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13789 | PyObject *resultobj; | |
13790 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
13791 | wxRect *arg2 = (wxRect *) NULL ; | |
13792 | bool result; | |
13793 | PyObject * obj0 = 0 ; | |
13794 | PyObject * obj1 = 0 ; | |
13795 | char *kwnames[] = { | |
13796 | (char *) "self",(char *) "rect", NULL | |
13797 | }; | |
13798 | ||
13799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail; | |
13800 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13801 | if (obj1) { | |
13802 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13803 | } | |
13804 | { | |
13805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13806 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
13807 | ||
13808 | wxPyEndAllowThreads(__tstate); | |
13809 | if (PyErr_Occurred()) SWIG_fail; | |
13810 | } | |
13811 | resultobj = PyInt_FromLong((long)result); | |
13812 | return resultobj; | |
13813 | fail: | |
13814 | return NULL; | |
13815 | } | |
13816 | ||
13817 | ||
13818 | static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13819 | PyObject *resultobj; | |
13820 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
13821 | bool result; | |
13822 | PyObject * obj0 = 0 ; | |
13823 | char *kwnames[] = { | |
13824 | (char *) "self", NULL | |
13825 | }; | |
13826 | ||
13827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail; | |
13828 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13829 | { | |
13830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13831 | result = (bool)(arg1)->EndDrawingOnTop(); | |
13832 | ||
13833 | wxPyEndAllowThreads(__tstate); | |
13834 | if (PyErr_Occurred()) SWIG_fail; | |
13835 | } | |
13836 | resultobj = PyInt_FromLong((long)result); | |
13837 | return resultobj; | |
13838 | fail: | |
13839 | return NULL; | |
13840 | } | |
13841 | ||
13842 | ||
13843 | static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) { | |
13844 | PyObject *obj; | |
13845 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13846 | SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj); | |
13847 | Py_INCREF(obj); | |
13848 | return Py_BuildValue((char *)""); | |
13849 | } | |
13850 | static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13851 | PyObject *resultobj; | |
13852 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13853 | wxClientDC *result; | |
13854 | PyObject * obj0 = 0 ; | |
13855 | char *kwnames[] = { | |
13856 | (char *) "win", NULL | |
13857 | }; | |
13858 | ||
13859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail; | |
13860 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13861 | { | |
13862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13863 | result = (wxClientDC *)new wxClientDC(arg1); | |
13864 | ||
13865 | wxPyEndAllowThreads(__tstate); | |
13866 | if (PyErr_Occurred()) SWIG_fail; | |
13867 | } | |
13868 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClientDC, 1); | |
13869 | return resultobj; | |
13870 | fail: | |
13871 | return NULL; | |
13872 | } | |
13873 | ||
13874 | ||
13875 | static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) { | |
13876 | PyObject *obj; | |
13877 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13878 | SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj); | |
13879 | Py_INCREF(obj); | |
13880 | return Py_BuildValue((char *)""); | |
13881 | } | |
13882 | static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13883 | PyObject *resultobj; | |
13884 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13885 | wxPaintDC *result; | |
13886 | PyObject * obj0 = 0 ; | |
13887 | char *kwnames[] = { | |
13888 | (char *) "win", NULL | |
13889 | }; | |
13890 | ||
13891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail; | |
13892 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13893 | { | |
13894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13895 | result = (wxPaintDC *)new wxPaintDC(arg1); | |
13896 | ||
13897 | wxPyEndAllowThreads(__tstate); | |
13898 | if (PyErr_Occurred()) SWIG_fail; | |
13899 | } | |
13900 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPaintDC, 1); | |
13901 | return resultobj; | |
13902 | fail: | |
13903 | return NULL; | |
13904 | } | |
13905 | ||
13906 | ||
13907 | static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) { | |
13908 | PyObject *obj; | |
13909 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13910 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj); | |
13911 | Py_INCREF(obj); | |
13912 | return Py_BuildValue((char *)""); | |
13913 | } | |
13914 | static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13915 | PyObject *resultobj; | |
13916 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13917 | wxWindowDC *result; | |
13918 | PyObject * obj0 = 0 ; | |
13919 | char *kwnames[] = { | |
13920 | (char *) "win", NULL | |
13921 | }; | |
13922 | ||
13923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail; | |
13924 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13925 | { | |
13926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13927 | result = (wxWindowDC *)new wxWindowDC(arg1); | |
13928 | ||
13929 | wxPyEndAllowThreads(__tstate); | |
13930 | if (PyErr_Occurred()) SWIG_fail; | |
13931 | } | |
13932 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDC, 1); | |
13933 | return resultobj; | |
13934 | fail: | |
13935 | return NULL; | |
13936 | } | |
13937 | ||
13938 | ||
13939 | static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) { | |
13940 | PyObject *obj; | |
13941 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13942 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj); | |
13943 | Py_INCREF(obj); | |
13944 | return Py_BuildValue((char *)""); | |
13945 | } | |
13946 | static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13947 | PyObject *resultobj; | |
13948 | wxDC *arg1 = 0 ; | |
13949 | bool arg2 ; | |
13950 | wxMirrorDC *result; | |
13951 | PyObject * obj0 = 0 ; | |
13952 | PyObject * obj1 = 0 ; | |
13953 | char *kwnames[] = { | |
13954 | (char *) "dc",(char *) "mirror", NULL | |
13955 | }; | |
13956 | ||
13957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail; | |
13958 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13959 | if (arg1 == NULL) { | |
13960 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13961 | } | |
13962 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
13963 | if (PyErr_Occurred()) SWIG_fail; | |
13964 | { | |
13965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13966 | result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2); | |
13967 | ||
13968 | wxPyEndAllowThreads(__tstate); | |
13969 | if (PyErr_Occurred()) SWIG_fail; | |
13970 | } | |
13971 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMirrorDC, 1); | |
13972 | return resultobj; | |
13973 | fail: | |
13974 | return NULL; | |
13975 | } | |
13976 | ||
13977 | ||
13978 | static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) { | |
13979 | PyObject *obj; | |
13980 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13981 | SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj); | |
13982 | Py_INCREF(obj); | |
13983 | return Py_BuildValue((char *)""); | |
13984 | } | |
13985 | static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13986 | PyObject *resultobj; | |
13987 | wxPrintData *arg1 = 0 ; | |
13988 | wxPostScriptDC *result; | |
13989 | PyObject * obj0 = 0 ; | |
13990 | char *kwnames[] = { | |
13991 | (char *) "printData", NULL | |
13992 | }; | |
13993 | ||
13994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail; | |
13995 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13996 | if (arg1 == NULL) { | |
13997 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13998 | } | |
13999 | { | |
14000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14001 | result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1); | |
14002 | ||
14003 | wxPyEndAllowThreads(__tstate); | |
14004 | if (PyErr_Occurred()) SWIG_fail; | |
14005 | } | |
14006 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPostScriptDC, 1); | |
14007 | return resultobj; | |
14008 | fail: | |
14009 | return NULL; | |
14010 | } | |
14011 | ||
14012 | ||
14013 | static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14014 | PyObject *resultobj; | |
14015 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
14016 | wxPrintData *result; | |
14017 | PyObject * obj0 = 0 ; | |
14018 | char *kwnames[] = { | |
14019 | (char *) "self", NULL | |
14020 | }; | |
14021 | ||
14022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail; | |
14023 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14024 | { | |
14025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14026 | { | |
14027 | wxPrintData &_result_ref = (arg1)->GetPrintData(); | |
14028 | result = (wxPrintData *) &_result_ref; | |
14029 | } | |
14030 | ||
14031 | wxPyEndAllowThreads(__tstate); | |
14032 | if (PyErr_Occurred()) SWIG_fail; | |
14033 | } | |
14034 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrintData, 0); | |
14035 | return resultobj; | |
14036 | fail: | |
14037 | return NULL; | |
14038 | } | |
14039 | ||
14040 | ||
14041 | static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14042 | PyObject *resultobj; | |
14043 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
14044 | wxPrintData *arg2 = 0 ; | |
14045 | PyObject * obj0 = 0 ; | |
14046 | PyObject * obj1 = 0 ; | |
14047 | char *kwnames[] = { | |
14048 | (char *) "self",(char *) "data", NULL | |
14049 | }; | |
14050 | ||
14051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail; | |
14052 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14053 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14054 | if (arg2 == NULL) { | |
14055 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14056 | } | |
14057 | { | |
14058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14059 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
14060 | ||
14061 | wxPyEndAllowThreads(__tstate); | |
14062 | if (PyErr_Occurred()) SWIG_fail; | |
14063 | } | |
14064 | Py_INCREF(Py_None); resultobj = Py_None; | |
14065 | return resultobj; | |
14066 | fail: | |
14067 | return NULL; | |
14068 | } | |
14069 | ||
14070 | ||
14071 | static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14072 | PyObject *resultobj; | |
14073 | int arg1 ; | |
14074 | char *kwnames[] = { | |
14075 | (char *) "ppi", NULL | |
14076 | }; | |
14077 | ||
14078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:PostScriptDC_SetResolution",kwnames,&arg1)) goto fail; | |
14079 | { | |
14080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14081 | wxPostScriptDC::SetResolution(arg1); | |
14082 | ||
14083 | wxPyEndAllowThreads(__tstate); | |
14084 | if (PyErr_Occurred()) SWIG_fail; | |
14085 | } | |
14086 | Py_INCREF(Py_None); resultobj = Py_None; | |
14087 | return resultobj; | |
14088 | fail: | |
14089 | return NULL; | |
14090 | } | |
14091 | ||
14092 | ||
14093 | static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14094 | PyObject *resultobj; | |
14095 | int result; | |
14096 | char *kwnames[] = { | |
14097 | NULL | |
14098 | }; | |
14099 | ||
14100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail; | |
14101 | { | |
14102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14103 | result = (int)wxPostScriptDC::GetResolution(); | |
14104 | ||
14105 | wxPyEndAllowThreads(__tstate); | |
14106 | if (PyErr_Occurred()) SWIG_fail; | |
14107 | } | |
14108 | resultobj = PyInt_FromLong((long)result); | |
14109 | return resultobj; | |
14110 | fail: | |
14111 | return NULL; | |
14112 | } | |
14113 | ||
14114 | ||
14115 | static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) { | |
14116 | PyObject *obj; | |
14117 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14118 | SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj); | |
14119 | Py_INCREF(obj); | |
14120 | return Py_BuildValue((char *)""); | |
14121 | } | |
14122 | static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14123 | PyObject *resultobj; | |
14124 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
14125 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
14126 | wxMetaFile *result; | |
423f194a | 14127 | bool temp1 = False ; |
d14a1e28 RD |
14128 | PyObject * obj0 = 0 ; |
14129 | char *kwnames[] = { | |
14130 | (char *) "filename", NULL | |
14131 | }; | |
14132 | ||
14133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail; | |
14134 | if (obj0) { | |
14135 | { | |
14136 | arg1 = wxString_in_helper(obj0); | |
14137 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 14138 | temp1 = True; |
d14a1e28 RD |
14139 | } |
14140 | } | |
14141 | { | |
14142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14143 | result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1); | |
14144 | ||
14145 | wxPyEndAllowThreads(__tstate); | |
14146 | if (PyErr_Occurred()) SWIG_fail; | |
14147 | } | |
14148 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFile, 1); | |
14149 | { | |
14150 | if (temp1) | |
14151 | delete arg1; | |
14152 | } | |
14153 | return resultobj; | |
14154 | fail: | |
14155 | { | |
14156 | if (temp1) | |
14157 | delete arg1; | |
14158 | } | |
14159 | return NULL; | |
14160 | } | |
14161 | ||
14162 | ||
14163 | static PyObject *_wrap_delete_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14164 | PyObject *resultobj; | |
14165 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
14166 | PyObject * obj0 = 0 ; | |
14167 | char *kwnames[] = { | |
14168 | (char *) "self", NULL | |
14169 | }; | |
14170 | ||
14171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail; | |
14172 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14173 | { | |
14174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14175 | delete arg1; | |
14176 | ||
14177 | wxPyEndAllowThreads(__tstate); | |
14178 | if (PyErr_Occurred()) SWIG_fail; | |
14179 | } | |
14180 | Py_INCREF(Py_None); resultobj = Py_None; | |
14181 | return resultobj; | |
14182 | fail: | |
14183 | return NULL; | |
14184 | } | |
14185 | ||
14186 | ||
14187 | static PyObject *_wrap_MetaFile_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14188 | PyObject *resultobj; | |
14189 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
14190 | bool result; | |
14191 | PyObject * obj0 = 0 ; | |
14192 | char *kwnames[] = { | |
14193 | (char *) "self", NULL | |
14194 | }; | |
14195 | ||
14196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail; | |
14197 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14198 | { | |
14199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14200 | result = (bool)(arg1)->Ok(); | |
14201 | ||
14202 | wxPyEndAllowThreads(__tstate); | |
14203 | if (PyErr_Occurred()) SWIG_fail; | |
14204 | } | |
14205 | resultobj = PyInt_FromLong((long)result); | |
14206 | return resultobj; | |
14207 | fail: | |
14208 | return NULL; | |
14209 | } | |
14210 | ||
14211 | ||
14212 | static PyObject *_wrap_MetaFile_SetClipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14213 | PyObject *resultobj; | |
14214 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
14215 | int arg2 = (int) 0 ; | |
14216 | int arg3 = (int) 0 ; | |
14217 | bool result; | |
14218 | PyObject * obj0 = 0 ; | |
14219 | char *kwnames[] = { | |
14220 | (char *) "self",(char *) "width",(char *) "height", NULL | |
14221 | }; | |
14222 | ||
14223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:MetaFile_SetClipboard",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
14224 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14225 | { | |
14226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14227 | result = (bool)(arg1)->SetClipboard(arg2,arg3); | |
14228 | ||
14229 | wxPyEndAllowThreads(__tstate); | |
14230 | if (PyErr_Occurred()) SWIG_fail; | |
14231 | } | |
14232 | resultobj = PyInt_FromLong((long)result); | |
14233 | return resultobj; | |
14234 | fail: | |
14235 | return NULL; | |
14236 | } | |
14237 | ||
14238 | ||
14239 | static PyObject *_wrap_MetaFile_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14240 | PyObject *resultobj; | |
14241 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
14242 | wxSize result; | |
14243 | PyObject * obj0 = 0 ; | |
14244 | char *kwnames[] = { | |
14245 | (char *) "self", NULL | |
14246 | }; | |
14247 | ||
14248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail; | |
14249 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14250 | { | |
14251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14252 | result = (arg1)->GetSize(); | |
14253 | ||
14254 | wxPyEndAllowThreads(__tstate); | |
14255 | if (PyErr_Occurred()) SWIG_fail; | |
14256 | } | |
14257 | { | |
14258 | wxSize * resultptr; | |
14259 | resultptr = new wxSize((wxSize &) result); | |
14260 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
14261 | } | |
14262 | return resultobj; | |
14263 | fail: | |
14264 | return NULL; | |
14265 | } | |
14266 | ||
14267 | ||
14268 | static PyObject *_wrap_MetaFile_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14269 | PyObject *resultobj; | |
14270 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
14271 | int result; | |
14272 | PyObject * obj0 = 0 ; | |
14273 | char *kwnames[] = { | |
14274 | (char *) "self", NULL | |
14275 | }; | |
14276 | ||
14277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail; | |
14278 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14279 | { | |
14280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14281 | result = (int)(arg1)->GetWidth(); | |
14282 | ||
14283 | wxPyEndAllowThreads(__tstate); | |
14284 | if (PyErr_Occurred()) SWIG_fail; | |
14285 | } | |
14286 | resultobj = PyInt_FromLong((long)result); | |
14287 | return resultobj; | |
14288 | fail: | |
14289 | return NULL; | |
14290 | } | |
14291 | ||
14292 | ||
14293 | static PyObject *_wrap_MetaFile_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14294 | PyObject *resultobj; | |
14295 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
14296 | int result; | |
14297 | PyObject * obj0 = 0 ; | |
14298 | char *kwnames[] = { | |
14299 | (char *) "self", NULL | |
14300 | }; | |
14301 | ||
14302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail; | |
14303 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14304 | { | |
14305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14306 | result = (int)(arg1)->GetHeight(); | |
14307 | ||
14308 | wxPyEndAllowThreads(__tstate); | |
14309 | if (PyErr_Occurred()) SWIG_fail; | |
14310 | } | |
14311 | resultobj = PyInt_FromLong((long)result); | |
14312 | return resultobj; | |
14313 | fail: | |
14314 | return NULL; | |
14315 | } | |
14316 | ||
14317 | ||
14318 | static PyObject *_wrap_MetaFile_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14319 | PyObject *resultobj; | |
14320 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
14321 | wxString *result; | |
14322 | PyObject * obj0 = 0 ; | |
14323 | char *kwnames[] = { | |
14324 | (char *) "self", NULL | |
14325 | }; | |
14326 | ||
14327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetFileName",kwnames,&obj0)) goto fail; | |
14328 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14329 | { | |
14330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14331 | { | |
14332 | wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName(); | |
14333 | result = (wxString *) &_result_ref; | |
14334 | } | |
14335 | ||
14336 | wxPyEndAllowThreads(__tstate); | |
14337 | if (PyErr_Occurred()) SWIG_fail; | |
14338 | } | |
f0983263 RD |
14339 | { |
14340 | #if wxUSE_UNICODE | |
14341 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
14342 | #else | |
14343 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
14344 | #endif | |
14345 | } | |
d14a1e28 RD |
14346 | return resultobj; |
14347 | fail: | |
14348 | return NULL; | |
14349 | } | |
14350 | ||
14351 | ||
14352 | static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) { | |
14353 | PyObject *obj; | |
14354 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14355 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj); | |
14356 | Py_INCREF(obj); | |
14357 | return Py_BuildValue((char *)""); | |
14358 | } | |
14359 | static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14360 | PyObject *resultobj; | |
14361 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
14362 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
14363 | int arg2 = (int) 0 ; | |
14364 | int arg3 = (int) 0 ; | |
14365 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
14366 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
14367 | wxMetaFileDC *result; | |
423f194a RD |
14368 | bool temp1 = False ; |
14369 | bool temp4 = False ; | |
d14a1e28 RD |
14370 | PyObject * obj0 = 0 ; |
14371 | PyObject * obj3 = 0 ; | |
14372 | char *kwnames[] = { | |
14373 | (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL | |
14374 | }; | |
14375 | ||
14376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OiiO:new_MetaFileDC",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail; | |
14377 | if (obj0) { | |
14378 | { | |
14379 | arg1 = wxString_in_helper(obj0); | |
14380 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 14381 | temp1 = True; |
d14a1e28 RD |
14382 | } |
14383 | } | |
14384 | if (obj3) { | |
14385 | { | |
14386 | arg4 = wxString_in_helper(obj3); | |
14387 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 14388 | temp4 = True; |
d14a1e28 RD |
14389 | } |
14390 | } | |
14391 | { | |
14392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14393 | result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4); | |
14394 | ||
14395 | wxPyEndAllowThreads(__tstate); | |
14396 | if (PyErr_Occurred()) SWIG_fail; | |
14397 | } | |
14398 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFileDC, 1); | |
14399 | { | |
14400 | if (temp1) | |
14401 | delete arg1; | |
14402 | } | |
14403 | { | |
14404 | if (temp4) | |
14405 | delete arg4; | |
14406 | } | |
14407 | return resultobj; | |
14408 | fail: | |
14409 | { | |
14410 | if (temp1) | |
14411 | delete arg1; | |
14412 | } | |
14413 | { | |
14414 | if (temp4) | |
14415 | delete arg4; | |
14416 | } | |
14417 | return NULL; | |
14418 | } | |
14419 | ||
14420 | ||
14421 | static PyObject *_wrap_MetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14422 | PyObject *resultobj; | |
14423 | wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ; | |
14424 | wxMetaFile *result; | |
14425 | PyObject * obj0 = 0 ; | |
14426 | char *kwnames[] = { | |
14427 | (char *) "self", NULL | |
14428 | }; | |
14429 | ||
14430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail; | |
14431 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFileDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14432 | { | |
14433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14434 | result = (wxMetaFile *)(arg1)->Close(); | |
14435 | ||
14436 | wxPyEndAllowThreads(__tstate); | |
14437 | if (PyErr_Occurred()) SWIG_fail; | |
14438 | } | |
14439 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFile, 0); | |
14440 | return resultobj; | |
14441 | fail: | |
14442 | return NULL; | |
14443 | } | |
14444 | ||
14445 | ||
14446 | static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) { | |
14447 | PyObject *obj; | |
14448 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14449 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj); | |
14450 | Py_INCREF(obj); | |
14451 | return Py_BuildValue((char *)""); | |
14452 | } | |
14453 | static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14454 | PyObject *resultobj; | |
14455 | wxPrintData *arg1 = 0 ; | |
14456 | wxPrinterDC *result; | |
14457 | PyObject * obj0 = 0 ; | |
14458 | char *kwnames[] = { | |
14459 | (char *) "printData", NULL | |
14460 | }; | |
14461 | ||
14462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail; | |
14463 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14464 | if (arg1 == NULL) { | |
14465 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14466 | } | |
14467 | { | |
14468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14469 | result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1); | |
14470 | ||
14471 | wxPyEndAllowThreads(__tstate); | |
14472 | if (PyErr_Occurred()) SWIG_fail; | |
14473 | } | |
14474 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrinterDC, 1); | |
14475 | return resultobj; | |
14476 | fail: | |
14477 | return NULL; | |
14478 | } | |
14479 | ||
14480 | ||
14481 | static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) { | |
14482 | PyObject *obj; | |
14483 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14484 | SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj); | |
14485 | Py_INCREF(obj); | |
14486 | return Py_BuildValue((char *)""); | |
14487 | } | |
14488 | static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14489 | PyObject *resultobj; | |
14490 | int arg1 ; | |
14491 | int arg2 ; | |
423f194a | 14492 | int arg3 = (int) True ; |
d14a1e28 RD |
14493 | int arg4 = (int) 1 ; |
14494 | wxImageList *result; | |
14495 | char *kwnames[] = { | |
14496 | (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL | |
14497 | }; | |
14498 | ||
14499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii|ii:new_ImageList",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
14500 | { | |
14501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14502 | result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4); | |
14503 | ||
14504 | wxPyEndAllowThreads(__tstate); | |
14505 | if (PyErr_Occurred()) SWIG_fail; | |
14506 | } | |
14507 | { | |
14508 | resultobj = wxPyMake_wxObject(result); | |
14509 | } | |
14510 | return resultobj; | |
14511 | fail: | |
14512 | return NULL; | |
14513 | } | |
14514 | ||
14515 | ||
14516 | static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14517 | PyObject *resultobj; | |
14518 | wxImageList *arg1 = (wxImageList *) 0 ; | |
14519 | PyObject * obj0 = 0 ; | |
14520 | char *kwnames[] = { | |
14521 | (char *) "self", NULL | |
14522 | }; | |
14523 | ||
14524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail; | |
14525 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14526 | { | |
14527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14528 | delete arg1; | |
14529 | ||
14530 | wxPyEndAllowThreads(__tstate); | |
14531 | if (PyErr_Occurred()) SWIG_fail; | |
14532 | } | |
14533 | Py_INCREF(Py_None); resultobj = Py_None; | |
14534 | return resultobj; | |
14535 | fail: | |
14536 | return NULL; | |
14537 | } | |
14538 | ||
14539 | ||
14540 | static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14541 | PyObject *resultobj; | |
14542 | wxImageList *arg1 = (wxImageList *) 0 ; | |
14543 | wxBitmap *arg2 = 0 ; | |
14544 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
14545 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
14546 | int result; | |
14547 | PyObject * obj0 = 0 ; | |
14548 | PyObject * obj1 = 0 ; | |
14549 | PyObject * obj2 = 0 ; | |
14550 | char *kwnames[] = { | |
14551 | (char *) "self",(char *) "bitmap",(char *) "mask", NULL | |
14552 | }; | |
14553 | ||
14554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14555 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14556 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14557 | if (arg2 == NULL) { | |
14558 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14559 | } | |
14560 | if (obj2) { | |
14561 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14562 | if (arg3 == NULL) { | |
14563 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14564 | } | |
14565 | } | |
14566 | { | |
14567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14568 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
14569 | ||
14570 | wxPyEndAllowThreads(__tstate); | |
14571 | if (PyErr_Occurred()) SWIG_fail; | |
14572 | } | |
14573 | resultobj = PyInt_FromLong((long)result); | |
14574 | return resultobj; | |
14575 | fail: | |
14576 | return NULL; | |
14577 | } | |
14578 | ||
14579 | ||
14580 | static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14581 | PyObject *resultobj; | |
14582 | wxImageList *arg1 = (wxImageList *) 0 ; | |
14583 | wxBitmap *arg2 = 0 ; | |
14584 | wxColour *arg3 = 0 ; | |
14585 | int result; | |
14586 | wxColour temp3 ; | |
14587 | PyObject * obj0 = 0 ; | |
14588 | PyObject * obj1 = 0 ; | |
14589 | PyObject * obj2 = 0 ; | |
14590 | char *kwnames[] = { | |
14591 | (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL | |
14592 | }; | |
14593 | ||
14594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14595 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14596 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14597 | if (arg2 == NULL) { | |
14598 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14599 | } | |
14600 | { | |
14601 | arg3 = &temp3; | |
14602 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
14603 | } | |
14604 | { | |
14605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14606 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3); | |
14607 | ||
14608 | wxPyEndAllowThreads(__tstate); | |
14609 | if (PyErr_Occurred()) SWIG_fail; | |
14610 | } | |
14611 | resultobj = PyInt_FromLong((long)result); | |
14612 | return resultobj; | |
14613 | fail: | |
14614 | return NULL; | |
14615 | } | |
14616 | ||
14617 | ||
14618 | static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14619 | PyObject *resultobj; | |
14620 | wxImageList *arg1 = (wxImageList *) 0 ; | |
14621 | wxIcon *arg2 = 0 ; | |
14622 | int result; | |
14623 | PyObject * obj0 = 0 ; | |
14624 | PyObject * obj1 = 0 ; | |
14625 | char *kwnames[] = { | |
14626 | (char *) "self",(char *) "icon", NULL | |
14627 | }; | |
14628 | ||
14629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail; | |
14630 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14631 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14632 | if (arg2 == NULL) { | |
14633 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14634 | } | |
14635 | { | |
14636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14637 | result = (int)(arg1)->Add((wxIcon const &)*arg2); | |
14638 | ||
14639 | wxPyEndAllowThreads(__tstate); | |
14640 | if (PyErr_Occurred()) SWIG_fail; | |
14641 | } | |
14642 | resultobj = PyInt_FromLong((long)result); | |
14643 | return resultobj; | |
14644 | fail: | |
14645 | return NULL; | |
14646 | } | |
14647 | ||
14648 | ||
14649 | static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14650 | PyObject *resultobj; | |
14651 | wxImageList *arg1 = (wxImageList *) 0 ; | |
14652 | int arg2 ; | |
14653 | wxBitmap *arg3 = 0 ; | |
14654 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
14655 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
14656 | bool result; | |
14657 | PyObject * obj0 = 0 ; | |
14658 | PyObject * obj2 = 0 ; | |
14659 | PyObject * obj3 = 0 ; | |
14660 | char *kwnames[] = { | |
14661 | (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL | |
14662 | }; | |
14663 | ||
14664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|O:ImageList_Replace",kwnames,&obj0,&arg2,&obj2,&obj3)) goto fail; | |
14665 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14666 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14667 | if (arg3 == NULL) { | |
14668 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14669 | } | |
14670 | if (obj3) { | |
14671 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14672 | if (arg4 == NULL) { | |
14673 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14674 | } | |
14675 | } | |
14676 | { | |
14677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14678 | result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4); | |
14679 | ||
14680 | wxPyEndAllowThreads(__tstate); | |
14681 | if (PyErr_Occurred()) SWIG_fail; | |
14682 | } | |
14683 | resultobj = PyInt_FromLong((long)result); | |
14684 | return resultobj; | |
14685 | fail: | |
14686 | return NULL; | |
14687 | } | |
14688 | ||
14689 | ||
14690 | static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14691 | PyObject *resultobj; | |
14692 | wxImageList *arg1 = (wxImageList *) 0 ; | |
14693 | int arg2 ; | |
14694 | wxDC *arg3 = 0 ; | |
14695 | int arg4 ; | |
14696 | int arg5 ; | |
14697 | int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ; | |
423f194a | 14698 | bool arg7 = (bool) (bool)False ; |
d14a1e28 RD |
14699 | bool result; |
14700 | PyObject * obj0 = 0 ; | |
14701 | PyObject * obj2 = 0 ; | |
14702 | PyObject * obj6 = 0 ; | |
14703 | char *kwnames[] = { | |
14704 | (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL | |
14705 | }; | |
14706 | ||
14707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiOii|iO:ImageList_Draw",kwnames,&obj0,&arg2,&obj2,&arg4,&arg5,&arg6,&obj6)) goto fail; | |
14708 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14709 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14710 | if (arg3 == NULL) { | |
14711 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14712 | } | |
14713 | if (obj6) { | |
14714 | arg7 = PyInt_AsLong(obj6) ? true : false; | |
14715 | if (PyErr_Occurred()) SWIG_fail; | |
14716 | } | |
14717 | { | |
14718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14719 | result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7); | |
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_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14732 | PyObject *resultobj; | |
14733 | wxImageList *arg1 = (wxImageList *) 0 ; | |
14734 | int result; | |
14735 | PyObject * obj0 = 0 ; | |
14736 | char *kwnames[] = { | |
14737 | (char *) "self", NULL | |
14738 | }; | |
14739 | ||
14740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",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 = (int)(arg1)->GetImageCount(); | |
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_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14757 | PyObject *resultobj; | |
14758 | wxImageList *arg1 = (wxImageList *) 0 ; | |
14759 | int arg2 ; | |
14760 | bool result; | |
14761 | PyObject * obj0 = 0 ; | |
14762 | char *kwnames[] = { | |
14763 | (char *) "self",(char *) "index", NULL | |
14764 | }; | |
14765 | ||
14766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ImageList_Remove",kwnames,&obj0,&arg2)) goto fail; | |
14767 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14768 | { | |
14769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14770 | result = (bool)(arg1)->Remove(arg2); | |
14771 | ||
14772 | wxPyEndAllowThreads(__tstate); | |
14773 | if (PyErr_Occurred()) SWIG_fail; | |
14774 | } | |
14775 | resultobj = PyInt_FromLong((long)result); | |
14776 | return resultobj; | |
14777 | fail: | |
14778 | return NULL; | |
14779 | } | |
14780 | ||
14781 | ||
14782 | static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14783 | PyObject *resultobj; | |
14784 | wxImageList *arg1 = (wxImageList *) 0 ; | |
14785 | bool result; | |
14786 | PyObject * obj0 = 0 ; | |
14787 | char *kwnames[] = { | |
14788 | (char *) "self", NULL | |
14789 | }; | |
14790 | ||
14791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail; | |
14792 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14793 | { | |
14794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14795 | result = (bool)(arg1)->RemoveAll(); | |
14796 | ||
14797 | wxPyEndAllowThreads(__tstate); | |
14798 | if (PyErr_Occurred()) SWIG_fail; | |
14799 | } | |
14800 | resultobj = PyInt_FromLong((long)result); | |
14801 | return resultobj; | |
14802 | fail: | |
14803 | return NULL; | |
14804 | } | |
14805 | ||
14806 | ||
14807 | static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14808 | PyObject *resultobj; | |
14809 | wxImageList *arg1 = (wxImageList *) 0 ; | |
14810 | int arg2 ; | |
14811 | int *arg3 = 0 ; | |
14812 | int *arg4 = 0 ; | |
14813 | int temp3 ; | |
14814 | int temp4 ; | |
14815 | PyObject * obj0 = 0 ; | |
14816 | char *kwnames[] = { | |
14817 | (char *) "self",(char *) "index", NULL | |
14818 | }; | |
14819 | ||
14820 | arg3 = &temp3; | |
14821 | arg4 = &temp4; | |
14822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ImageList_GetSize",kwnames,&obj0,&arg2)) goto fail; | |
14823 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14824 | { | |
14825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14826 | (arg1)->GetSize(arg2,*arg3,*arg4); | |
14827 | ||
14828 | wxPyEndAllowThreads(__tstate); | |
14829 | if (PyErr_Occurred()) SWIG_fail; | |
14830 | } | |
14831 | Py_INCREF(Py_None); resultobj = Py_None; | |
14832 | { | |
14833 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14834 | resultobj = t_output_helper(resultobj,o); | |
14835 | } | |
14836 | { | |
14837 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
14838 | resultobj = t_output_helper(resultobj,o); | |
14839 | } | |
14840 | return resultobj; | |
14841 | fail: | |
14842 | return NULL; | |
14843 | } | |
14844 | ||
14845 | ||
14846 | static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) { | |
14847 | PyObject *obj; | |
14848 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14849 | SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj); | |
14850 | Py_INCREF(obj); | |
14851 | return Py_BuildValue((char *)""); | |
14852 | } | |
14853 | static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14854 | PyObject *resultobj; | |
14855 | wxPenList *arg1 = (wxPenList *) 0 ; | |
14856 | wxPen *arg2 = (wxPen *) 0 ; | |
14857 | PyObject * obj0 = 0 ; | |
14858 | PyObject * obj1 = 0 ; | |
14859 | char *kwnames[] = { | |
14860 | (char *) "self",(char *) "pen", NULL | |
14861 | }; | |
14862 | ||
14863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail; | |
14864 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14865 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14866 | { | |
14867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14868 | (arg1)->AddPen(arg2); | |
14869 | ||
14870 | wxPyEndAllowThreads(__tstate); | |
14871 | if (PyErr_Occurred()) SWIG_fail; | |
14872 | } | |
14873 | Py_INCREF(Py_None); resultobj = Py_None; | |
14874 | return resultobj; | |
14875 | fail: | |
14876 | return NULL; | |
14877 | } | |
14878 | ||
14879 | ||
14880 | static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14881 | PyObject *resultobj; | |
14882 | wxPenList *arg1 = (wxPenList *) 0 ; | |
14883 | wxColour *arg2 = 0 ; | |
14884 | int arg3 ; | |
14885 | int arg4 ; | |
14886 | wxPen *result; | |
14887 | wxColour temp2 ; | |
14888 | PyObject * obj0 = 0 ; | |
14889 | PyObject * obj1 = 0 ; | |
14890 | char *kwnames[] = { | |
14891 | (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL | |
14892 | }; | |
14893 | ||
14894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail; | |
14895 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14896 | { | |
14897 | arg2 = &temp2; | |
14898 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
14899 | } | |
14900 | { | |
14901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14902 | result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4); | |
14903 | ||
14904 | wxPyEndAllowThreads(__tstate); | |
14905 | if (PyErr_Occurred()) SWIG_fail; | |
14906 | } | |
14907 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0); | |
14908 | return resultobj; | |
14909 | fail: | |
14910 | return NULL; | |
14911 | } | |
14912 | ||
14913 | ||
14914 | static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14915 | PyObject *resultobj; | |
14916 | wxPenList *arg1 = (wxPenList *) 0 ; | |
14917 | wxPen *arg2 = (wxPen *) 0 ; | |
14918 | PyObject * obj0 = 0 ; | |
14919 | PyObject * obj1 = 0 ; | |
14920 | char *kwnames[] = { | |
14921 | (char *) "self",(char *) "pen", NULL | |
14922 | }; | |
14923 | ||
14924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail; | |
14925 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14926 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14927 | { | |
14928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14929 | (arg1)->RemovePen(arg2); | |
14930 | ||
14931 | wxPyEndAllowThreads(__tstate); | |
14932 | if (PyErr_Occurred()) SWIG_fail; | |
14933 | } | |
14934 | Py_INCREF(Py_None); resultobj = Py_None; | |
14935 | return resultobj; | |
14936 | fail: | |
14937 | return NULL; | |
14938 | } | |
14939 | ||
14940 | ||
14941 | static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14942 | PyObject *resultobj; | |
14943 | wxPenList *arg1 = (wxPenList *) 0 ; | |
14944 | int result; | |
14945 | PyObject * obj0 = 0 ; | |
14946 | char *kwnames[] = { | |
14947 | (char *) "self", NULL | |
14948 | }; | |
14949 | ||
14950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail; | |
14951 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14952 | { | |
14953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14954 | result = (int)(arg1)->GetCount(); | |
14955 | ||
14956 | wxPyEndAllowThreads(__tstate); | |
14957 | if (PyErr_Occurred()) SWIG_fail; | |
14958 | } | |
14959 | resultobj = PyInt_FromLong((long)result); | |
14960 | return resultobj; | |
14961 | fail: | |
14962 | return NULL; | |
14963 | } | |
14964 | ||
14965 | ||
14966 | static PyObject * PenList_swigregister(PyObject *self, PyObject *args) { | |
14967 | PyObject *obj; | |
14968 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14969 | SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj); | |
14970 | Py_INCREF(obj); | |
14971 | return Py_BuildValue((char *)""); | |
14972 | } | |
14973 | static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14974 | PyObject *resultobj; | |
14975 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
14976 | wxBrush *arg2 = (wxBrush *) 0 ; | |
14977 | PyObject * obj0 = 0 ; | |
14978 | PyObject * obj1 = 0 ; | |
14979 | char *kwnames[] = { | |
14980 | (char *) "self",(char *) "brush", NULL | |
14981 | }; | |
14982 | ||
14983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail; | |
14984 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14985 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14986 | { | |
14987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14988 | (arg1)->AddBrush(arg2); | |
14989 | ||
14990 | wxPyEndAllowThreads(__tstate); | |
14991 | if (PyErr_Occurred()) SWIG_fail; | |
14992 | } | |
14993 | Py_INCREF(Py_None); resultobj = Py_None; | |
14994 | return resultobj; | |
14995 | fail: | |
14996 | return NULL; | |
14997 | } | |
14998 | ||
14999 | ||
15000 | static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15001 | PyObject *resultobj; | |
15002 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
15003 | wxColour *arg2 = 0 ; | |
15004 | int arg3 ; | |
15005 | wxBrush *result; | |
15006 | wxColour temp2 ; | |
15007 | PyObject * obj0 = 0 ; | |
15008 | PyObject * obj1 = 0 ; | |
15009 | char *kwnames[] = { | |
15010 | (char *) "self",(char *) "colour",(char *) "style", NULL | |
15011 | }; | |
15012 | ||
15013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
15014 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15015 | { | |
15016 | arg2 = &temp2; | |
15017 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
15018 | } | |
15019 | { | |
15020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15021 | result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3); | |
15022 | ||
15023 | wxPyEndAllowThreads(__tstate); | |
15024 | if (PyErr_Occurred()) SWIG_fail; | |
15025 | } | |
15026 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0); | |
15027 | return resultobj; | |
15028 | fail: | |
15029 | return NULL; | |
15030 | } | |
15031 | ||
15032 | ||
15033 | static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15034 | PyObject *resultobj; | |
15035 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
15036 | wxBrush *arg2 = (wxBrush *) 0 ; | |
15037 | PyObject * obj0 = 0 ; | |
15038 | PyObject * obj1 = 0 ; | |
15039 | char *kwnames[] = { | |
15040 | (char *) "self",(char *) "brush", NULL | |
15041 | }; | |
15042 | ||
15043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail; | |
15044 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15045 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15046 | { | |
15047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15048 | (arg1)->RemoveBrush(arg2); | |
15049 | ||
15050 | wxPyEndAllowThreads(__tstate); | |
15051 | if (PyErr_Occurred()) SWIG_fail; | |
15052 | } | |
15053 | Py_INCREF(Py_None); resultobj = Py_None; | |
15054 | return resultobj; | |
15055 | fail: | |
15056 | return NULL; | |
15057 | } | |
15058 | ||
15059 | ||
15060 | static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15061 | PyObject *resultobj; | |
15062 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
15063 | int result; | |
15064 | PyObject * obj0 = 0 ; | |
15065 | char *kwnames[] = { | |
15066 | (char *) "self", NULL | |
15067 | }; | |
15068 | ||
15069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail; | |
15070 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15071 | { | |
15072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15073 | result = (int)(arg1)->GetCount(); | |
15074 | ||
15075 | wxPyEndAllowThreads(__tstate); | |
15076 | if (PyErr_Occurred()) SWIG_fail; | |
15077 | } | |
15078 | resultobj = PyInt_FromLong((long)result); | |
15079 | return resultobj; | |
15080 | fail: | |
15081 | return NULL; | |
15082 | } | |
15083 | ||
15084 | ||
15085 | static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) { | |
15086 | PyObject *obj; | |
15087 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15088 | SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj); | |
15089 | Py_INCREF(obj); | |
15090 | return Py_BuildValue((char *)""); | |
15091 | } | |
15092 | static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15093 | PyObject *resultobj; | |
15094 | wxColourDatabase *result; | |
15095 | char *kwnames[] = { | |
15096 | NULL | |
15097 | }; | |
15098 | ||
15099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail; | |
15100 | { | |
15101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15102 | result = (wxColourDatabase *)new wxColourDatabase(); | |
15103 | ||
15104 | wxPyEndAllowThreads(__tstate); | |
15105 | if (PyErr_Occurred()) SWIG_fail; | |
15106 | } | |
15107 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColourDatabase, 1); | |
15108 | return resultobj; | |
15109 | fail: | |
15110 | return NULL; | |
15111 | } | |
15112 | ||
15113 | ||
15114 | static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15115 | PyObject *resultobj; | |
15116 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
15117 | PyObject * obj0 = 0 ; | |
15118 | char *kwnames[] = { | |
15119 | (char *) "self", NULL | |
15120 | }; | |
15121 | ||
15122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail; | |
15123 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15124 | { | |
15125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15126 | delete arg1; | |
15127 | ||
15128 | wxPyEndAllowThreads(__tstate); | |
15129 | if (PyErr_Occurred()) SWIG_fail; | |
15130 | } | |
15131 | Py_INCREF(Py_None); resultobj = Py_None; | |
15132 | return resultobj; | |
15133 | fail: | |
15134 | return NULL; | |
15135 | } | |
15136 | ||
15137 | ||
15138 | static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15139 | PyObject *resultobj; | |
15140 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
15141 | wxString *arg2 = 0 ; | |
15142 | wxColour result; | |
423f194a | 15143 | bool temp2 = False ; |
d14a1e28 RD |
15144 | PyObject * obj0 = 0 ; |
15145 | PyObject * obj1 = 0 ; | |
15146 | char *kwnames[] = { | |
15147 | (char *) "self",(char *) "name", NULL | |
15148 | }; | |
15149 | ||
15150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail; | |
15151 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15152 | { | |
15153 | arg2 = wxString_in_helper(obj1); | |
15154 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15155 | temp2 = True; |
d14a1e28 RD |
15156 | } |
15157 | { | |
15158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15159 | result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2); | |
15160 | ||
15161 | wxPyEndAllowThreads(__tstate); | |
15162 | if (PyErr_Occurred()) SWIG_fail; | |
15163 | } | |
15164 | { | |
15165 | wxColour * resultptr; | |
15166 | resultptr = new wxColour((wxColour &) result); | |
15167 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
15168 | } | |
15169 | { | |
15170 | if (temp2) | |
15171 | delete arg2; | |
15172 | } | |
15173 | return resultobj; | |
15174 | fail: | |
15175 | { | |
15176 | if (temp2) | |
15177 | delete arg2; | |
15178 | } | |
15179 | return NULL; | |
15180 | } | |
15181 | ||
15182 | ||
15183 | static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15184 | PyObject *resultobj; | |
15185 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
15186 | wxColour *arg2 = 0 ; | |
15187 | wxString result; | |
15188 | wxColour temp2 ; | |
15189 | PyObject * obj0 = 0 ; | |
15190 | PyObject * obj1 = 0 ; | |
15191 | char *kwnames[] = { | |
15192 | (char *) "self",(char *) "colour", NULL | |
15193 | }; | |
15194 | ||
15195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail; | |
15196 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15197 | { | |
15198 | arg2 = &temp2; | |
15199 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
15200 | } | |
15201 | { | |
15202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15203 | result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2); | |
15204 | ||
15205 | wxPyEndAllowThreads(__tstate); | |
15206 | if (PyErr_Occurred()) SWIG_fail; | |
15207 | } | |
15208 | { | |
15209 | #if wxUSE_UNICODE | |
15210 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15211 | #else | |
15212 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15213 | #endif | |
15214 | } | |
15215 | return resultobj; | |
15216 | fail: | |
15217 | return NULL; | |
15218 | } | |
15219 | ||
15220 | ||
15221 | static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15222 | PyObject *resultobj; | |
15223 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
15224 | wxString *arg2 = 0 ; | |
15225 | wxColour *arg3 = 0 ; | |
423f194a | 15226 | bool temp2 = False ; |
d14a1e28 RD |
15227 | wxColour temp3 ; |
15228 | PyObject * obj0 = 0 ; | |
15229 | PyObject * obj1 = 0 ; | |
15230 | PyObject * obj2 = 0 ; | |
15231 | char *kwnames[] = { | |
15232 | (char *) "self",(char *) "name",(char *) "colour", NULL | |
15233 | }; | |
15234 | ||
15235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15236 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15237 | { | |
15238 | arg2 = wxString_in_helper(obj1); | |
15239 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15240 | temp2 = True; |
d14a1e28 RD |
15241 | } |
15242 | { | |
15243 | arg3 = &temp3; | |
15244 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
15245 | } | |
15246 | { | |
15247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15248 | (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3); | |
15249 | ||
15250 | wxPyEndAllowThreads(__tstate); | |
15251 | if (PyErr_Occurred()) SWIG_fail; | |
15252 | } | |
15253 | Py_INCREF(Py_None); resultobj = Py_None; | |
15254 | { | |
15255 | if (temp2) | |
15256 | delete arg2; | |
15257 | } | |
15258 | return resultobj; | |
15259 | fail: | |
15260 | { | |
15261 | if (temp2) | |
15262 | delete arg2; | |
15263 | } | |
15264 | return NULL; | |
15265 | } | |
15266 | ||
15267 | ||
15268 | static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15269 | PyObject *resultobj; | |
15270 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
15271 | wxString *arg2 = 0 ; | |
15272 | int arg3 ; | |
15273 | int arg4 ; | |
15274 | int arg5 ; | |
423f194a | 15275 | bool temp2 = False ; |
d14a1e28 RD |
15276 | PyObject * obj0 = 0 ; |
15277 | PyObject * obj1 = 0 ; | |
15278 | char *kwnames[] = { | |
15279 | (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL | |
15280 | }; | |
15281 | ||
15282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiii:ColourDatabase_Append",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5)) goto fail; | |
15283 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15284 | { | |
15285 | arg2 = wxString_in_helper(obj1); | |
15286 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15287 | temp2 = True; |
d14a1e28 RD |
15288 | } |
15289 | { | |
15290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15291 | wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5); | |
15292 | ||
15293 | wxPyEndAllowThreads(__tstate); | |
15294 | if (PyErr_Occurred()) SWIG_fail; | |
15295 | } | |
15296 | Py_INCREF(Py_None); resultobj = Py_None; | |
15297 | { | |
15298 | if (temp2) | |
15299 | delete arg2; | |
15300 | } | |
15301 | return resultobj; | |
15302 | fail: | |
15303 | { | |
15304 | if (temp2) | |
15305 | delete arg2; | |
15306 | } | |
15307 | return NULL; | |
15308 | } | |
15309 | ||
15310 | ||
15311 | static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) { | |
15312 | PyObject *obj; | |
15313 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15314 | SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj); | |
15315 | Py_INCREF(obj); | |
15316 | return Py_BuildValue((char *)""); | |
15317 | } | |
15318 | static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15319 | PyObject *resultobj; | |
15320 | wxFontList *arg1 = (wxFontList *) 0 ; | |
15321 | wxFont *arg2 = (wxFont *) 0 ; | |
15322 | PyObject * obj0 = 0 ; | |
15323 | PyObject * obj1 = 0 ; | |
15324 | char *kwnames[] = { | |
15325 | (char *) "self",(char *) "font", NULL | |
15326 | }; | |
15327 | ||
15328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail; | |
15329 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15330 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15331 | { | |
15332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15333 | (arg1)->AddFont(arg2); | |
15334 | ||
15335 | wxPyEndAllowThreads(__tstate); | |
15336 | if (PyErr_Occurred()) SWIG_fail; | |
15337 | } | |
15338 | Py_INCREF(Py_None); resultobj = Py_None; | |
15339 | return resultobj; | |
15340 | fail: | |
15341 | return NULL; | |
15342 | } | |
15343 | ||
15344 | ||
15345 | static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15346 | PyObject *resultobj; | |
15347 | wxFontList *arg1 = (wxFontList *) 0 ; | |
15348 | int arg2 ; | |
15349 | int arg3 ; | |
15350 | int arg4 ; | |
15351 | int arg5 ; | |
423f194a | 15352 | bool arg6 = (bool) False ; |
d14a1e28 RD |
15353 | wxString const &arg7_defvalue = wxPyEmptyString ; |
15354 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
15355 | int arg8 = (int) wxFONTENCODING_DEFAULT ; | |
15356 | wxFont *result; | |
423f194a | 15357 | bool temp7 = False ; |
d14a1e28 RD |
15358 | PyObject * obj0 = 0 ; |
15359 | PyObject * obj5 = 0 ; | |
15360 | PyObject * obj6 = 0 ; | |
15361 | char *kwnames[] = { | |
15362 | (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL | |
15363 | }; | |
15364 | ||
15365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii|OOi:FontList_FindOrCreateFont",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5,&obj6,&arg8)) goto fail; | |
15366 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15367 | if (obj5) { | |
15368 | arg6 = PyInt_AsLong(obj5) ? true : false; | |
15369 | if (PyErr_Occurred()) SWIG_fail; | |
15370 | } | |
15371 | if (obj6) { | |
15372 | { | |
15373 | arg7 = wxString_in_helper(obj6); | |
15374 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 15375 | temp7 = True; |
d14a1e28 RD |
15376 | } |
15377 | } | |
15378 | { | |
15379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15380 | result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8); | |
15381 | ||
15382 | wxPyEndAllowThreads(__tstate); | |
15383 | if (PyErr_Occurred()) SWIG_fail; | |
15384 | } | |
15385 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0); | |
15386 | { | |
15387 | if (temp7) | |
15388 | delete arg7; | |
15389 | } | |
15390 | return resultobj; | |
15391 | fail: | |
15392 | { | |
15393 | if (temp7) | |
15394 | delete arg7; | |
15395 | } | |
15396 | return NULL; | |
15397 | } | |
15398 | ||
15399 | ||
15400 | static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15401 | PyObject *resultobj; | |
15402 | wxFontList *arg1 = (wxFontList *) 0 ; | |
15403 | wxFont *arg2 = (wxFont *) 0 ; | |
15404 | PyObject * obj0 = 0 ; | |
15405 | PyObject * obj1 = 0 ; | |
15406 | char *kwnames[] = { | |
15407 | (char *) "self",(char *) "font", NULL | |
15408 | }; | |
15409 | ||
15410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail; | |
15411 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15412 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15413 | { | |
15414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15415 | (arg1)->RemoveFont(arg2); | |
15416 | ||
15417 | wxPyEndAllowThreads(__tstate); | |
15418 | if (PyErr_Occurred()) SWIG_fail; | |
15419 | } | |
15420 | Py_INCREF(Py_None); resultobj = Py_None; | |
15421 | return resultobj; | |
15422 | fail: | |
15423 | return NULL; | |
15424 | } | |
15425 | ||
15426 | ||
15427 | static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15428 | PyObject *resultobj; | |
15429 | wxFontList *arg1 = (wxFontList *) 0 ; | |
15430 | int result; | |
15431 | PyObject * obj0 = 0 ; | |
15432 | char *kwnames[] = { | |
15433 | (char *) "self", NULL | |
15434 | }; | |
15435 | ||
15436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail; | |
15437 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15438 | { | |
15439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15440 | result = (int)(arg1)->GetCount(); | |
15441 | ||
15442 | wxPyEndAllowThreads(__tstate); | |
15443 | if (PyErr_Occurred()) SWIG_fail; | |
15444 | } | |
15445 | resultobj = PyInt_FromLong((long)result); | |
15446 | return resultobj; | |
15447 | fail: | |
15448 | return NULL; | |
15449 | } | |
15450 | ||
15451 | ||
15452 | static PyObject * FontList_swigregister(PyObject *self, PyObject *args) { | |
15453 | PyObject *obj; | |
15454 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15455 | SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj); | |
15456 | Py_INCREF(obj); | |
15457 | return Py_BuildValue((char *)""); | |
15458 | } | |
15459 | static int _wrap_NORMAL_FONT_set(PyObject *_val) { | |
15460 | PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only."); | |
15461 | return 1; | |
15462 | } | |
15463 | ||
15464 | ||
15465 | static PyObject *_wrap_NORMAL_FONT_get() { | |
15466 | PyObject *pyobj; | |
15467 | ||
15468 | pyobj = SWIG_NewPointerObj((void *) wxNORMAL_FONT, SWIGTYPE_p_wxFont, 0); | |
15469 | return pyobj; | |
15470 | } | |
15471 | ||
15472 | ||
15473 | static int _wrap_SMALL_FONT_set(PyObject *_val) { | |
15474 | PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only."); | |
15475 | return 1; | |
15476 | } | |
15477 | ||
15478 | ||
15479 | static PyObject *_wrap_SMALL_FONT_get() { | |
15480 | PyObject *pyobj; | |
15481 | ||
15482 | pyobj = SWIG_NewPointerObj((void *) wxSMALL_FONT, SWIGTYPE_p_wxFont, 0); | |
15483 | return pyobj; | |
15484 | } | |
15485 | ||
15486 | ||
15487 | static int _wrap_ITALIC_FONT_set(PyObject *_val) { | |
15488 | PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only."); | |
15489 | return 1; | |
15490 | } | |
15491 | ||
15492 | ||
15493 | static PyObject *_wrap_ITALIC_FONT_get() { | |
15494 | PyObject *pyobj; | |
15495 | ||
15496 | pyobj = SWIG_NewPointerObj((void *) wxITALIC_FONT, SWIGTYPE_p_wxFont, 0); | |
15497 | return pyobj; | |
15498 | } | |
15499 | ||
15500 | ||
15501 | static int _wrap_SWISS_FONT_set(PyObject *_val) { | |
15502 | PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only."); | |
15503 | return 1; | |
15504 | } | |
15505 | ||
15506 | ||
15507 | static PyObject *_wrap_SWISS_FONT_get() { | |
15508 | PyObject *pyobj; | |
15509 | ||
15510 | pyobj = SWIG_NewPointerObj((void *) wxSWISS_FONT, SWIGTYPE_p_wxFont, 0); | |
15511 | return pyobj; | |
15512 | } | |
15513 | ||
15514 | ||
15515 | static int _wrap_RED_PEN_set(PyObject *_val) { | |
15516 | PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only."); | |
15517 | return 1; | |
15518 | } | |
15519 | ||
15520 | ||
15521 | static PyObject *_wrap_RED_PEN_get() { | |
15522 | PyObject *pyobj; | |
15523 | ||
15524 | pyobj = SWIG_NewPointerObj((void *) wxRED_PEN, SWIGTYPE_p_wxPen, 0); | |
15525 | return pyobj; | |
15526 | } | |
15527 | ||
15528 | ||
15529 | static int _wrap_CYAN_PEN_set(PyObject *_val) { | |
15530 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only."); | |
15531 | return 1; | |
15532 | } | |
15533 | ||
15534 | ||
15535 | static PyObject *_wrap_CYAN_PEN_get() { | |
15536 | PyObject *pyobj; | |
15537 | ||
15538 | pyobj = SWIG_NewPointerObj((void *) wxCYAN_PEN, SWIGTYPE_p_wxPen, 0); | |
15539 | return pyobj; | |
15540 | } | |
15541 | ||
15542 | ||
15543 | static int _wrap_GREEN_PEN_set(PyObject *_val) { | |
15544 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only."); | |
15545 | return 1; | |
15546 | } | |
15547 | ||
15548 | ||
15549 | static PyObject *_wrap_GREEN_PEN_get() { | |
15550 | PyObject *pyobj; | |
15551 | ||
15552 | pyobj = SWIG_NewPointerObj((void *) wxGREEN_PEN, SWIGTYPE_p_wxPen, 0); | |
15553 | return pyobj; | |
15554 | } | |
15555 | ||
15556 | ||
15557 | static int _wrap_BLACK_PEN_set(PyObject *_val) { | |
15558 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only."); | |
15559 | return 1; | |
15560 | } | |
15561 | ||
15562 | ||
15563 | static PyObject *_wrap_BLACK_PEN_get() { | |
15564 | PyObject *pyobj; | |
15565 | ||
15566 | pyobj = SWIG_NewPointerObj((void *) wxBLACK_PEN, SWIGTYPE_p_wxPen, 0); | |
15567 | return pyobj; | |
15568 | } | |
15569 | ||
15570 | ||
15571 | static int _wrap_WHITE_PEN_set(PyObject *_val) { | |
15572 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only."); | |
15573 | return 1; | |
15574 | } | |
15575 | ||
15576 | ||
15577 | static PyObject *_wrap_WHITE_PEN_get() { | |
15578 | PyObject *pyobj; | |
15579 | ||
15580 | pyobj = SWIG_NewPointerObj((void *) wxWHITE_PEN, SWIGTYPE_p_wxPen, 0); | |
15581 | return pyobj; | |
15582 | } | |
15583 | ||
15584 | ||
15585 | static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) { | |
15586 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only."); | |
15587 | return 1; | |
15588 | } | |
15589 | ||
15590 | ||
15591 | static PyObject *_wrap_TRANSPARENT_PEN_get() { | |
15592 | PyObject *pyobj; | |
15593 | ||
15594 | pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_PEN, SWIGTYPE_p_wxPen, 0); | |
15595 | return pyobj; | |
15596 | } | |
15597 | ||
15598 | ||
15599 | static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) { | |
15600 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only."); | |
15601 | return 1; | |
15602 | } | |
15603 | ||
15604 | ||
15605 | static PyObject *_wrap_BLACK_DASHED_PEN_get() { | |
15606 | PyObject *pyobj; | |
15607 | ||
15608 | pyobj = SWIG_NewPointerObj((void *) wxBLACK_DASHED_PEN, SWIGTYPE_p_wxPen, 0); | |
15609 | return pyobj; | |
15610 | } | |
15611 | ||
15612 | ||
15613 | static int _wrap_GREY_PEN_set(PyObject *_val) { | |
15614 | PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only."); | |
15615 | return 1; | |
15616 | } | |
15617 | ||
15618 | ||
15619 | static PyObject *_wrap_GREY_PEN_get() { | |
15620 | PyObject *pyobj; | |
15621 | ||
15622 | pyobj = SWIG_NewPointerObj((void *) wxGREY_PEN, SWIGTYPE_p_wxPen, 0); | |
15623 | return pyobj; | |
15624 | } | |
15625 | ||
15626 | ||
15627 | static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) { | |
15628 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only."); | |
15629 | return 1; | |
15630 | } | |
15631 | ||
15632 | ||
15633 | static PyObject *_wrap_MEDIUM_GREY_PEN_get() { | |
15634 | PyObject *pyobj; | |
15635 | ||
15636 | pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_PEN, SWIGTYPE_p_wxPen, 0); | |
15637 | return pyobj; | |
15638 | } | |
15639 | ||
15640 | ||
15641 | static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) { | |
15642 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only."); | |
15643 | return 1; | |
15644 | } | |
15645 | ||
15646 | ||
15647 | static PyObject *_wrap_LIGHT_GREY_PEN_get() { | |
15648 | PyObject *pyobj; | |
15649 | ||
15650 | pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_PEN, SWIGTYPE_p_wxPen, 0); | |
15651 | return pyobj; | |
15652 | } | |
15653 | ||
15654 | ||
15655 | static int _wrap_BLUE_BRUSH_set(PyObject *_val) { | |
15656 | PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only."); | |
15657 | return 1; | |
15658 | } | |
15659 | ||
15660 | ||
15661 | static PyObject *_wrap_BLUE_BRUSH_get() { | |
15662 | PyObject *pyobj; | |
15663 | ||
15664 | pyobj = SWIG_NewPointerObj((void *) wxBLUE_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
15665 | return pyobj; | |
15666 | } | |
15667 | ||
15668 | ||
15669 | static int _wrap_GREEN_BRUSH_set(PyObject *_val) { | |
15670 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only."); | |
15671 | return 1; | |
15672 | } | |
15673 | ||
15674 | ||
15675 | static PyObject *_wrap_GREEN_BRUSH_get() { | |
15676 | PyObject *pyobj; | |
15677 | ||
15678 | pyobj = SWIG_NewPointerObj((void *) wxGREEN_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
15679 | return pyobj; | |
15680 | } | |
15681 | ||
15682 | ||
15683 | static int _wrap_WHITE_BRUSH_set(PyObject *_val) { | |
15684 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only."); | |
15685 | return 1; | |
15686 | } | |
15687 | ||
15688 | ||
15689 | static PyObject *_wrap_WHITE_BRUSH_get() { | |
15690 | PyObject *pyobj; | |
15691 | ||
15692 | pyobj = SWIG_NewPointerObj((void *) wxWHITE_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
15693 | return pyobj; | |
15694 | } | |
15695 | ||
15696 | ||
15697 | static int _wrap_BLACK_BRUSH_set(PyObject *_val) { | |
15698 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only."); | |
15699 | return 1; | |
15700 | } | |
15701 | ||
15702 | ||
15703 | static PyObject *_wrap_BLACK_BRUSH_get() { | |
15704 | PyObject *pyobj; | |
15705 | ||
15706 | pyobj = SWIG_NewPointerObj((void *) wxBLACK_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
15707 | return pyobj; | |
15708 | } | |
15709 | ||
15710 | ||
15711 | static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) { | |
15712 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only."); | |
15713 | return 1; | |
15714 | } | |
15715 | ||
15716 | ||
15717 | static PyObject *_wrap_TRANSPARENT_BRUSH_get() { | |
15718 | PyObject *pyobj; | |
15719 | ||
15720 | pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
15721 | return pyobj; | |
15722 | } | |
15723 | ||
15724 | ||
15725 | static int _wrap_CYAN_BRUSH_set(PyObject *_val) { | |
15726 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only."); | |
15727 | return 1; | |
15728 | } | |
15729 | ||
15730 | ||
15731 | static PyObject *_wrap_CYAN_BRUSH_get() { | |
15732 | PyObject *pyobj; | |
15733 | ||
15734 | pyobj = SWIG_NewPointerObj((void *) wxCYAN_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
15735 | return pyobj; | |
15736 | } | |
15737 | ||
15738 | ||
15739 | static int _wrap_RED_BRUSH_set(PyObject *_val) { | |
15740 | PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only."); | |
15741 | return 1; | |
15742 | } | |
15743 | ||
15744 | ||
15745 | static PyObject *_wrap_RED_BRUSH_get() { | |
15746 | PyObject *pyobj; | |
15747 | ||
15748 | pyobj = SWIG_NewPointerObj((void *) wxRED_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
15749 | return pyobj; | |
15750 | } | |
15751 | ||
15752 | ||
15753 | static int _wrap_GREY_BRUSH_set(PyObject *_val) { | |
15754 | PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only."); | |
15755 | return 1; | |
15756 | } | |
15757 | ||
15758 | ||
15759 | static PyObject *_wrap_GREY_BRUSH_get() { | |
15760 | PyObject *pyobj; | |
15761 | ||
15762 | pyobj = SWIG_NewPointerObj((void *) wxGREY_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
15763 | return pyobj; | |
15764 | } | |
15765 | ||
15766 | ||
15767 | static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) { | |
15768 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only."); | |
15769 | return 1; | |
15770 | } | |
15771 | ||
15772 | ||
15773 | static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() { | |
15774 | PyObject *pyobj; | |
15775 | ||
15776 | pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
15777 | return pyobj; | |
15778 | } | |
15779 | ||
15780 | ||
15781 | static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) { | |
15782 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only."); | |
15783 | return 1; | |
15784 | } | |
15785 | ||
15786 | ||
15787 | static PyObject *_wrap_LIGHT_GREY_BRUSH_get() { | |
15788 | PyObject *pyobj; | |
15789 | ||
15790 | pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
15791 | return pyobj; | |
15792 | } | |
15793 | ||
15794 | ||
15795 | static int _wrap_BLACK_set(PyObject *_val) { | |
15796 | PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only."); | |
15797 | return 1; | |
15798 | } | |
15799 | ||
15800 | ||
15801 | static PyObject *_wrap_BLACK_get() { | |
15802 | PyObject *pyobj; | |
15803 | ||
15804 | pyobj = SWIG_NewPointerObj((void *) wxBLACK, SWIGTYPE_p_wxColour, 0); | |
15805 | return pyobj; | |
15806 | } | |
15807 | ||
15808 | ||
15809 | static int _wrap_WHITE_set(PyObject *_val) { | |
15810 | PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only."); | |
15811 | return 1; | |
15812 | } | |
15813 | ||
15814 | ||
15815 | static PyObject *_wrap_WHITE_get() { | |
15816 | PyObject *pyobj; | |
15817 | ||
15818 | pyobj = SWIG_NewPointerObj((void *) wxWHITE, SWIGTYPE_p_wxColour, 0); | |
15819 | return pyobj; | |
15820 | } | |
15821 | ||
15822 | ||
15823 | static int _wrap_RED_set(PyObject *_val) { | |
15824 | PyErr_SetString(PyExc_TypeError,"Variable RED is read-only."); | |
15825 | return 1; | |
15826 | } | |
15827 | ||
15828 | ||
15829 | static PyObject *_wrap_RED_get() { | |
15830 | PyObject *pyobj; | |
15831 | ||
15832 | pyobj = SWIG_NewPointerObj((void *) wxRED, SWIGTYPE_p_wxColour, 0); | |
15833 | return pyobj; | |
15834 | } | |
15835 | ||
15836 | ||
15837 | static int _wrap_BLUE_set(PyObject *_val) { | |
15838 | PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only."); | |
15839 | return 1; | |
15840 | } | |
15841 | ||
15842 | ||
15843 | static PyObject *_wrap_BLUE_get() { | |
15844 | PyObject *pyobj; | |
15845 | ||
15846 | pyobj = SWIG_NewPointerObj((void *) wxBLUE, SWIGTYPE_p_wxColour, 0); | |
15847 | return pyobj; | |
15848 | } | |
15849 | ||
15850 | ||
15851 | static int _wrap_GREEN_set(PyObject *_val) { | |
15852 | PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only."); | |
15853 | return 1; | |
15854 | } | |
15855 | ||
15856 | ||
15857 | static PyObject *_wrap_GREEN_get() { | |
15858 | PyObject *pyobj; | |
15859 | ||
15860 | pyobj = SWIG_NewPointerObj((void *) wxGREEN, SWIGTYPE_p_wxColour, 0); | |
15861 | return pyobj; | |
15862 | } | |
15863 | ||
15864 | ||
15865 | static int _wrap_CYAN_set(PyObject *_val) { | |
15866 | PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only."); | |
15867 | return 1; | |
15868 | } | |
15869 | ||
15870 | ||
15871 | static PyObject *_wrap_CYAN_get() { | |
15872 | PyObject *pyobj; | |
15873 | ||
15874 | pyobj = SWIG_NewPointerObj((void *) wxCYAN, SWIGTYPE_p_wxColour, 0); | |
15875 | return pyobj; | |
15876 | } | |
15877 | ||
15878 | ||
15879 | static int _wrap_LIGHT_GREY_set(PyObject *_val) { | |
15880 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only."); | |
15881 | return 1; | |
15882 | } | |
15883 | ||
15884 | ||
15885 | static PyObject *_wrap_LIGHT_GREY_get() { | |
15886 | PyObject *pyobj; | |
15887 | ||
15888 | pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY, SWIGTYPE_p_wxColour, 0); | |
15889 | return pyobj; | |
15890 | } | |
15891 | ||
15892 | ||
15893 | static int _wrap_STANDARD_CURSOR_set(PyObject *_val) { | |
15894 | PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only."); | |
15895 | return 1; | |
15896 | } | |
15897 | ||
15898 | ||
15899 | static PyObject *_wrap_STANDARD_CURSOR_get() { | |
15900 | PyObject *pyobj; | |
15901 | ||
15902 | pyobj = SWIG_NewPointerObj((void *) wxSTANDARD_CURSOR, SWIGTYPE_p_wxCursor, 0); | |
15903 | return pyobj; | |
15904 | } | |
15905 | ||
15906 | ||
15907 | static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) { | |
15908 | PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only."); | |
15909 | return 1; | |
15910 | } | |
15911 | ||
15912 | ||
15913 | static PyObject *_wrap_HOURGLASS_CURSOR_get() { | |
15914 | PyObject *pyobj; | |
15915 | ||
15916 | pyobj = SWIG_NewPointerObj((void *) wxHOURGLASS_CURSOR, SWIGTYPE_p_wxCursor, 0); | |
15917 | return pyobj; | |
15918 | } | |
15919 | ||
15920 | ||
15921 | static int _wrap_CROSS_CURSOR_set(PyObject *_val) { | |
15922 | PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only."); | |
15923 | return 1; | |
15924 | } | |
15925 | ||
15926 | ||
15927 | static PyObject *_wrap_CROSS_CURSOR_get() { | |
15928 | PyObject *pyobj; | |
15929 | ||
15930 | pyobj = SWIG_NewPointerObj((void *) wxCROSS_CURSOR, SWIGTYPE_p_wxCursor, 0); | |
15931 | return pyobj; | |
15932 | } | |
15933 | ||
15934 | ||
15935 | static int _wrap_NullBitmap_set(PyObject *_val) { | |
15936 | PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only."); | |
15937 | return 1; | |
15938 | } | |
15939 | ||
15940 | ||
15941 | static PyObject *_wrap_NullBitmap_get() { | |
15942 | PyObject *pyobj; | |
15943 | ||
15944 | pyobj = SWIG_NewPointerObj((void *) &wxNullBitmap, SWIGTYPE_p_wxBitmap, 0); | |
15945 | return pyobj; | |
15946 | } | |
15947 | ||
15948 | ||
15949 | static int _wrap_NullIcon_set(PyObject *_val) { | |
15950 | PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only."); | |
15951 | return 1; | |
15952 | } | |
15953 | ||
15954 | ||
15955 | static PyObject *_wrap_NullIcon_get() { | |
15956 | PyObject *pyobj; | |
15957 | ||
15958 | pyobj = SWIG_NewPointerObj((void *) &wxNullIcon, SWIGTYPE_p_wxIcon, 0); | |
15959 | return pyobj; | |
15960 | } | |
15961 | ||
15962 | ||
15963 | static int _wrap_NullCursor_set(PyObject *_val) { | |
15964 | PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only."); | |
15965 | return 1; | |
15966 | } | |
15967 | ||
15968 | ||
15969 | static PyObject *_wrap_NullCursor_get() { | |
15970 | PyObject *pyobj; | |
15971 | ||
15972 | pyobj = SWIG_NewPointerObj((void *) &wxNullCursor, SWIGTYPE_p_wxCursor, 0); | |
15973 | return pyobj; | |
15974 | } | |
15975 | ||
15976 | ||
15977 | static int _wrap_NullPen_set(PyObject *_val) { | |
15978 | PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only."); | |
15979 | return 1; | |
15980 | } | |
15981 | ||
15982 | ||
15983 | static PyObject *_wrap_NullPen_get() { | |
15984 | PyObject *pyobj; | |
15985 | ||
15986 | pyobj = SWIG_NewPointerObj((void *) &wxNullPen, SWIGTYPE_p_wxPen, 0); | |
15987 | return pyobj; | |
15988 | } | |
15989 | ||
15990 | ||
15991 | static int _wrap_NullBrush_set(PyObject *_val) { | |
15992 | PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only."); | |
15993 | return 1; | |
15994 | } | |
15995 | ||
15996 | ||
15997 | static PyObject *_wrap_NullBrush_get() { | |
15998 | PyObject *pyobj; | |
15999 | ||
16000 | pyobj = SWIG_NewPointerObj((void *) &wxNullBrush, SWIGTYPE_p_wxBrush, 0); | |
16001 | return pyobj; | |
16002 | } | |
16003 | ||
16004 | ||
16005 | static int _wrap_NullPalette_set(PyObject *_val) { | |
16006 | PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only."); | |
16007 | return 1; | |
16008 | } | |
16009 | ||
16010 | ||
16011 | static PyObject *_wrap_NullPalette_get() { | |
16012 | PyObject *pyobj; | |
16013 | ||
16014 | pyobj = SWIG_NewPointerObj((void *) &wxNullPalette, SWIGTYPE_p_wxPalette, 0); | |
16015 | return pyobj; | |
16016 | } | |
16017 | ||
16018 | ||
16019 | static int _wrap_NullFont_set(PyObject *_val) { | |
16020 | PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only."); | |
16021 | return 1; | |
16022 | } | |
16023 | ||
16024 | ||
16025 | static PyObject *_wrap_NullFont_get() { | |
16026 | PyObject *pyobj; | |
16027 | ||
16028 | pyobj = SWIG_NewPointerObj((void *) &wxNullFont, SWIGTYPE_p_wxFont, 0); | |
16029 | return pyobj; | |
16030 | } | |
16031 | ||
16032 | ||
16033 | static int _wrap_NullColour_set(PyObject *_val) { | |
16034 | PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only."); | |
16035 | return 1; | |
16036 | } | |
16037 | ||
16038 | ||
16039 | static PyObject *_wrap_NullColour_get() { | |
16040 | PyObject *pyobj; | |
16041 | ||
16042 | pyobj = SWIG_NewPointerObj((void *) &wxNullColour, SWIGTYPE_p_wxColour, 0); | |
16043 | return pyobj; | |
16044 | } | |
16045 | ||
16046 | ||
16047 | static int _wrap_TheFontList_set(PyObject *_val) { | |
16048 | PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only."); | |
16049 | return 1; | |
16050 | } | |
16051 | ||
16052 | ||
16053 | static PyObject *_wrap_TheFontList_get() { | |
16054 | PyObject *pyobj; | |
16055 | ||
16056 | pyobj = SWIG_NewPointerObj((void *) wxTheFontList, SWIGTYPE_p_wxFontList, 0); | |
16057 | return pyobj; | |
16058 | } | |
16059 | ||
16060 | ||
16061 | static int _wrap_ThePenList_set(PyObject *_val) { | |
16062 | PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only."); | |
16063 | return 1; | |
16064 | } | |
16065 | ||
16066 | ||
16067 | static PyObject *_wrap_ThePenList_get() { | |
16068 | PyObject *pyobj; | |
16069 | ||
16070 | pyobj = SWIG_NewPointerObj((void *) wxThePenList, SWIGTYPE_p_wxPenList, 0); | |
16071 | return pyobj; | |
16072 | } | |
16073 | ||
16074 | ||
16075 | static int _wrap_TheBrushList_set(PyObject *_val) { | |
16076 | PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only."); | |
16077 | return 1; | |
16078 | } | |
16079 | ||
16080 | ||
16081 | static PyObject *_wrap_TheBrushList_get() { | |
16082 | PyObject *pyobj; | |
16083 | ||
16084 | pyobj = SWIG_NewPointerObj((void *) wxTheBrushList, SWIGTYPE_p_wxBrushList, 0); | |
16085 | return pyobj; | |
16086 | } | |
16087 | ||
16088 | ||
16089 | static int _wrap_TheColourDatabase_set(PyObject *_val) { | |
16090 | PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only."); | |
16091 | return 1; | |
16092 | } | |
16093 | ||
16094 | ||
16095 | static PyObject *_wrap_TheColourDatabase_get() { | |
16096 | PyObject *pyobj; | |
16097 | ||
16098 | pyobj = SWIG_NewPointerObj((void *) wxTheColourDatabase, SWIGTYPE_p_wxColourDatabase, 0); | |
16099 | return pyobj; | |
16100 | } | |
16101 | ||
16102 | ||
423f194a | 16103 | static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16104 | PyObject *resultobj; |
423f194a | 16105 | wxEffects *result; |
d14a1e28 | 16106 | char *kwnames[] = { |
423f194a | 16107 | NULL |
d14a1e28 RD |
16108 | }; |
16109 | ||
423f194a | 16110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail; |
d14a1e28 RD |
16111 | { |
16112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 16113 | result = (wxEffects *)new wxEffects(); |
d14a1e28 RD |
16114 | |
16115 | wxPyEndAllowThreads(__tstate); | |
16116 | if (PyErr_Occurred()) SWIG_fail; | |
16117 | } | |
423f194a | 16118 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEffects, 1); |
d14a1e28 RD |
16119 | return resultobj; |
16120 | fail: | |
16121 | return NULL; | |
16122 | } | |
16123 | ||
16124 | ||
423f194a | 16125 | static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16126 | PyObject *resultobj; |
423f194a RD |
16127 | wxEffects *arg1 = (wxEffects *) 0 ; |
16128 | wxColour result; | |
d14a1e28 | 16129 | PyObject * obj0 = 0 ; |
d14a1e28 | 16130 | char *kwnames[] = { |
423f194a | 16131 | (char *) "self", NULL |
d14a1e28 RD |
16132 | }; |
16133 | ||
423f194a RD |
16134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail; |
16135 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d14a1e28 RD |
16136 | { |
16137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 16138 | result = ((wxEffects const *)arg1)->GetHighlightColour(); |
d14a1e28 RD |
16139 | |
16140 | wxPyEndAllowThreads(__tstate); | |
16141 | if (PyErr_Occurred()) SWIG_fail; | |
16142 | } | |
423f194a RD |
16143 | { |
16144 | wxColour * resultptr; | |
16145 | resultptr = new wxColour((wxColour &) result); | |
16146 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
16147 | } | |
d14a1e28 RD |
16148 | return resultobj; |
16149 | fail: | |
16150 | return NULL; | |
16151 | } | |
16152 | ||
16153 | ||
423f194a | 16154 | static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16155 | PyObject *resultobj; |
423f194a RD |
16156 | wxEffects *arg1 = (wxEffects *) 0 ; |
16157 | wxColour result; | |
d14a1e28 | 16158 | PyObject * obj0 = 0 ; |
d14a1e28 | 16159 | char *kwnames[] = { |
423f194a | 16160 | (char *) "self", NULL |
d14a1e28 RD |
16161 | }; |
16162 | ||
423f194a RD |
16163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail; |
16164 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d14a1e28 RD |
16165 | { |
16166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 16167 | result = ((wxEffects const *)arg1)->GetLightShadow(); |
d14a1e28 RD |
16168 | |
16169 | wxPyEndAllowThreads(__tstate); | |
16170 | if (PyErr_Occurred()) SWIG_fail; | |
16171 | } | |
d14a1e28 | 16172 | { |
423f194a RD |
16173 | wxColour * resultptr; |
16174 | resultptr = new wxColour((wxColour &) result); | |
16175 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
d14a1e28 RD |
16176 | } |
16177 | return resultobj; | |
16178 | fail: | |
d14a1e28 RD |
16179 | return NULL; |
16180 | } | |
16181 | ||
16182 | ||
423f194a | 16183 | static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16184 | PyObject *resultobj; |
423f194a RD |
16185 | wxEffects *arg1 = (wxEffects *) 0 ; |
16186 | wxColour result; | |
d14a1e28 | 16187 | PyObject * obj0 = 0 ; |
d14a1e28 | 16188 | char *kwnames[] = { |
423f194a | 16189 | (char *) "self", NULL |
d14a1e28 RD |
16190 | }; |
16191 | ||
423f194a RD |
16192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail; |
16193 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d14a1e28 RD |
16194 | { |
16195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 16196 | result = ((wxEffects const *)arg1)->GetFaceColour(); |
d14a1e28 RD |
16197 | |
16198 | wxPyEndAllowThreads(__tstate); | |
16199 | if (PyErr_Occurred()) SWIG_fail; | |
16200 | } | |
423f194a RD |
16201 | { |
16202 | wxColour * resultptr; | |
16203 | resultptr = new wxColour((wxColour &) result); | |
16204 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
16205 | } | |
d14a1e28 RD |
16206 | return resultobj; |
16207 | fail: | |
16208 | return NULL; | |
16209 | } | |
16210 | ||
16211 | ||
423f194a | 16212 | static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16213 | PyObject *resultobj; |
423f194a RD |
16214 | wxEffects *arg1 = (wxEffects *) 0 ; |
16215 | wxColour result; | |
d14a1e28 RD |
16216 | PyObject * obj0 = 0 ; |
16217 | char *kwnames[] = { | |
16218 | (char *) "self", NULL | |
16219 | }; | |
16220 | ||
16221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail; | |
16222 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16223 | { | |
16224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16225 | result = ((wxEffects const *)arg1)->GetMediumShadow(); | |
16226 | ||
16227 | wxPyEndAllowThreads(__tstate); | |
16228 | if (PyErr_Occurred()) SWIG_fail; | |
16229 | } | |
16230 | { | |
16231 | wxColour * resultptr; | |
16232 | resultptr = new wxColour((wxColour &) result); | |
16233 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
16234 | } | |
16235 | return resultobj; | |
16236 | fail: | |
16237 | return NULL; | |
16238 | } | |
16239 | ||
16240 | ||
16241 | static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16242 | PyObject *resultobj; | |
16243 | wxEffects *arg1 = (wxEffects *) 0 ; | |
16244 | wxColour result; | |
16245 | PyObject * obj0 = 0 ; | |
16246 | char *kwnames[] = { | |
16247 | (char *) "self", NULL | |
16248 | }; | |
16249 | ||
16250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail; | |
16251 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16252 | { | |
16253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16254 | result = ((wxEffects const *)arg1)->GetDarkShadow(); | |
16255 | ||
16256 | wxPyEndAllowThreads(__tstate); | |
16257 | if (PyErr_Occurred()) SWIG_fail; | |
16258 | } | |
16259 | { | |
16260 | wxColour * resultptr; | |
16261 | resultptr = new wxColour((wxColour &) result); | |
16262 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
16263 | } | |
16264 | return resultobj; | |
16265 | fail: | |
16266 | return NULL; | |
16267 | } | |
16268 | ||
16269 | ||
16270 | static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16271 | PyObject *resultobj; | |
16272 | wxEffects *arg1 = (wxEffects *) 0 ; | |
16273 | wxColour *arg2 = 0 ; | |
16274 | wxColour temp2 ; | |
16275 | PyObject * obj0 = 0 ; | |
16276 | PyObject * obj1 = 0 ; | |
16277 | char *kwnames[] = { | |
16278 | (char *) "self",(char *) "c", NULL | |
16279 | }; | |
16280 | ||
16281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail; | |
16282 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16283 | { | |
16284 | arg2 = &temp2; | |
16285 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16286 | } | |
16287 | { | |
16288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16289 | (arg1)->SetHighlightColour((wxColour const &)*arg2); | |
16290 | ||
16291 | wxPyEndAllowThreads(__tstate); | |
16292 | if (PyErr_Occurred()) SWIG_fail; | |
16293 | } | |
16294 | Py_INCREF(Py_None); resultobj = Py_None; | |
16295 | return resultobj; | |
16296 | fail: | |
16297 | return NULL; | |
16298 | } | |
16299 | ||
16300 | ||
16301 | static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16302 | PyObject *resultobj; | |
16303 | wxEffects *arg1 = (wxEffects *) 0 ; | |
16304 | wxColour *arg2 = 0 ; | |
16305 | wxColour temp2 ; | |
16306 | PyObject * obj0 = 0 ; | |
16307 | PyObject * obj1 = 0 ; | |
16308 | char *kwnames[] = { | |
16309 | (char *) "self",(char *) "c", NULL | |
16310 | }; | |
16311 | ||
16312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail; | |
16313 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16314 | { | |
16315 | arg2 = &temp2; | |
16316 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16317 | } | |
16318 | { | |
16319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16320 | (arg1)->SetLightShadow((wxColour const &)*arg2); | |
16321 | ||
16322 | wxPyEndAllowThreads(__tstate); | |
16323 | if (PyErr_Occurred()) SWIG_fail; | |
16324 | } | |
16325 | Py_INCREF(Py_None); resultobj = Py_None; | |
16326 | return resultobj; | |
16327 | fail: | |
16328 | return NULL; | |
16329 | } | |
16330 | ||
16331 | ||
16332 | static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16333 | PyObject *resultobj; | |
16334 | wxEffects *arg1 = (wxEffects *) 0 ; | |
16335 | wxColour *arg2 = 0 ; | |
16336 | wxColour temp2 ; | |
16337 | PyObject * obj0 = 0 ; | |
16338 | PyObject * obj1 = 0 ; | |
16339 | char *kwnames[] = { | |
16340 | (char *) "self",(char *) "c", NULL | |
16341 | }; | |
16342 | ||
16343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail; | |
16344 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16345 | { | |
16346 | arg2 = &temp2; | |
16347 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16348 | } | |
16349 | { | |
16350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16351 | (arg1)->SetFaceColour((wxColour const &)*arg2); | |
16352 | ||
16353 | wxPyEndAllowThreads(__tstate); | |
16354 | if (PyErr_Occurred()) SWIG_fail; | |
16355 | } | |
16356 | Py_INCREF(Py_None); resultobj = Py_None; | |
16357 | return resultobj; | |
16358 | fail: | |
16359 | return NULL; | |
16360 | } | |
16361 | ||
16362 | ||
16363 | static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16364 | PyObject *resultobj; | |
16365 | wxEffects *arg1 = (wxEffects *) 0 ; | |
16366 | wxColour *arg2 = 0 ; | |
16367 | wxColour temp2 ; | |
16368 | PyObject * obj0 = 0 ; | |
16369 | PyObject * obj1 = 0 ; | |
16370 | char *kwnames[] = { | |
16371 | (char *) "self",(char *) "c", NULL | |
16372 | }; | |
16373 | ||
16374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail; | |
16375 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16376 | { | |
16377 | arg2 = &temp2; | |
16378 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16379 | } | |
16380 | { | |
16381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16382 | (arg1)->SetMediumShadow((wxColour const &)*arg2); | |
16383 | ||
16384 | wxPyEndAllowThreads(__tstate); | |
16385 | if (PyErr_Occurred()) SWIG_fail; | |
16386 | } | |
16387 | Py_INCREF(Py_None); resultobj = Py_None; | |
16388 | return resultobj; | |
16389 | fail: | |
16390 | return NULL; | |
16391 | } | |
16392 | ||
16393 | ||
16394 | static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16395 | PyObject *resultobj; | |
16396 | wxEffects *arg1 = (wxEffects *) 0 ; | |
16397 | wxColour *arg2 = 0 ; | |
16398 | wxColour temp2 ; | |
16399 | PyObject * obj0 = 0 ; | |
16400 | PyObject * obj1 = 0 ; | |
16401 | char *kwnames[] = { | |
16402 | (char *) "self",(char *) "c", NULL | |
16403 | }; | |
16404 | ||
16405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail; | |
16406 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16407 | { | |
16408 | arg2 = &temp2; | |
16409 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16410 | } | |
16411 | { | |
16412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16413 | (arg1)->SetDarkShadow((wxColour const &)*arg2); | |
16414 | ||
16415 | wxPyEndAllowThreads(__tstate); | |
16416 | if (PyErr_Occurred()) SWIG_fail; | |
16417 | } | |
16418 | Py_INCREF(Py_None); resultobj = Py_None; | |
16419 | return resultobj; | |
16420 | fail: | |
16421 | return NULL; | |
16422 | } | |
16423 | ||
16424 | ||
16425 | static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16426 | PyObject *resultobj; | |
16427 | wxEffects *arg1 = (wxEffects *) 0 ; | |
16428 | wxColour *arg2 = 0 ; | |
16429 | wxColour *arg3 = 0 ; | |
16430 | wxColour *arg4 = 0 ; | |
16431 | wxColour *arg5 = 0 ; | |
16432 | wxColour *arg6 = 0 ; | |
16433 | wxColour temp2 ; | |
16434 | wxColour temp3 ; | |
16435 | wxColour temp4 ; | |
16436 | wxColour temp5 ; | |
16437 | wxColour temp6 ; | |
16438 | PyObject * obj0 = 0 ; | |
16439 | PyObject * obj1 = 0 ; | |
16440 | PyObject * obj2 = 0 ; | |
16441 | PyObject * obj3 = 0 ; | |
16442 | PyObject * obj4 = 0 ; | |
16443 | PyObject * obj5 = 0 ; | |
16444 | char *kwnames[] = { | |
16445 | (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL | |
16446 | }; | |
16447 | ||
16448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
16449 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16450 | { | |
16451 | arg2 = &temp2; | |
16452 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16453 | } | |
16454 | { | |
16455 | arg3 = &temp3; | |
16456 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
16457 | } | |
16458 | { | |
16459 | arg4 = &temp4; | |
16460 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
16461 | } | |
16462 | { | |
16463 | arg5 = &temp5; | |
16464 | if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail; | |
16465 | } | |
16466 | { | |
16467 | arg6 = &temp6; | |
16468 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
16469 | } | |
16470 | { | |
16471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16472 | (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6); | |
16473 | ||
16474 | wxPyEndAllowThreads(__tstate); | |
16475 | if (PyErr_Occurred()) SWIG_fail; | |
16476 | } | |
16477 | Py_INCREF(Py_None); resultobj = Py_None; | |
16478 | return resultobj; | |
16479 | fail: | |
16480 | return NULL; | |
16481 | } | |
16482 | ||
16483 | ||
16484 | static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16485 | PyObject *resultobj; | |
16486 | wxEffects *arg1 = (wxEffects *) 0 ; | |
16487 | wxDC *arg2 = 0 ; | |
16488 | wxRect *arg3 = 0 ; | |
16489 | int arg4 = (int) 1 ; | |
16490 | wxRect temp3 ; | |
16491 | PyObject * obj0 = 0 ; | |
16492 | PyObject * obj1 = 0 ; | |
16493 | PyObject * obj2 = 0 ; | |
16494 | char *kwnames[] = { | |
16495 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL | |
16496 | }; | |
16497 | ||
16498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|i:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail; | |
16499 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16500 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16501 | if (arg2 == NULL) { | |
16502 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
16503 | } | |
16504 | { | |
16505 | arg3 = &temp3; | |
16506 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
16507 | } | |
16508 | { | |
16509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16510 | (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4); | |
16511 | ||
16512 | wxPyEndAllowThreads(__tstate); | |
16513 | if (PyErr_Occurred()) SWIG_fail; | |
16514 | } | |
16515 | Py_INCREF(Py_None); resultobj = Py_None; | |
16516 | return resultobj; | |
16517 | fail: | |
16518 | return NULL; | |
16519 | } | |
16520 | ||
16521 | ||
16522 | static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16523 | PyObject *resultobj; | |
16524 | wxEffects *arg1 = (wxEffects *) 0 ; | |
16525 | wxRect *arg2 = 0 ; | |
16526 | wxDC *arg3 = 0 ; | |
16527 | wxBitmap *arg4 = 0 ; | |
16528 | bool result; | |
16529 | wxRect temp2 ; | |
16530 | PyObject * obj0 = 0 ; | |
16531 | PyObject * obj1 = 0 ; | |
16532 | PyObject * obj2 = 0 ; | |
16533 | PyObject * obj3 = 0 ; | |
16534 | char *kwnames[] = { | |
16535 | (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL | |
16536 | }; | |
16537 | ||
16538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
16539 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16540 | { | |
16541 | arg2 = &temp2; | |
16542 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
16543 | } | |
16544 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16545 | if (arg3 == NULL) { | |
16546 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
16547 | } | |
16548 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16549 | if (arg4 == NULL) { | |
16550 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
16551 | } | |
16552 | { | |
16553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16554 | result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4); | |
16555 | ||
16556 | wxPyEndAllowThreads(__tstate); | |
16557 | if (PyErr_Occurred()) SWIG_fail; | |
16558 | } | |
16559 | resultobj = PyInt_FromLong((long)result); | |
16560 | return resultobj; | |
16561 | fail: | |
16562 | return NULL; | |
16563 | } | |
16564 | ||
16565 | ||
16566 | static PyObject * Effects_swigregister(PyObject *self, PyObject *args) { | |
16567 | PyObject *obj; | |
16568 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16569 | SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj); | |
16570 | Py_INCREF(obj); | |
16571 | return Py_BuildValue((char *)""); | |
16572 | } | |
16573 | static PyMethodDef SwigMethods[] = { | |
16574 | { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS }, | |
16575 | { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS }, | |
16576 | { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS }, | |
16577 | { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS }, | |
16578 | { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS }, | |
16579 | { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS }, | |
16580 | { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS }, | |
16581 | { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS }, | |
16582 | { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS }, | |
16583 | { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS }, | |
16584 | { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS }, | |
16585 | { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS }, | |
16586 | { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS }, | |
16587 | { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS }, | |
16588 | { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS }, | |
9fd4be55 | 16589 | { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
16590 | { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS }, |
16591 | { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS }, | |
9fd4be55 | 16592 | { (char *)"Colour_InitFromName", (PyCFunction) _wrap_Colour_InitFromName, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
16593 | { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS }, |
16594 | { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS }, | |
16595 | { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS }, | |
16596 | { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS }, | |
16597 | { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
16598 | { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS }, | |
16599 | { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS }, | |
16600 | { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS }, | |
16601 | { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS }, | |
16602 | { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS }, | |
16603 | { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS }, | |
16604 | { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
16605 | { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS }, | |
16606 | { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
16607 | { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
16608 | { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS }, | |
16609 | { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS }, | |
16610 | { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
16611 | { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS }, | |
16612 | { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
16613 | { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
16614 | { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS }, | |
16615 | { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS }, | |
9fd4be55 | 16616 | { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
16617 | { (char *)"Pen_GetStipple", (PyCFunction) _wrap_Pen_GetStipple, METH_VARARGS | METH_KEYWORDS }, |
16618 | { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS }, | |
16619 | { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS }, | |
16620 | { (char *)"new_PyPen", (PyCFunction) _wrap_new_PyPen, METH_VARARGS | METH_KEYWORDS }, | |
16621 | { (char *)"delete_PyPen", (PyCFunction) _wrap_delete_PyPen, METH_VARARGS | METH_KEYWORDS }, | |
16622 | { (char *)"PyPen_SetDashes", (PyCFunction) _wrap_PyPen_SetDashes, METH_VARARGS | METH_KEYWORDS }, | |
16623 | { (char *)"PyPen_swigregister", PyPen_swigregister, METH_VARARGS }, | |
16624 | { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS }, | |
16625 | { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS }, | |
16626 | { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
16627 | { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
16628 | { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS }, | |
16629 | { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
16630 | { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
16631 | { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS }, | |
16632 | { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS }, | |
16633 | { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS }, | |
16634 | { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS }, | |
16635 | { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS }, | |
16636 | { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS }, | |
16637 | { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
16638 | { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS }, | |
16639 | { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
16640 | { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS }, | |
16641 | { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS }, | |
16642 | { (char *)"Bitmap_GetHandle", (PyCFunction) _wrap_Bitmap_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
16643 | { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS }, | |
16644 | { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS }, | |
16645 | { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
16646 | { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
16647 | { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
16648 | { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS }, | |
16649 | { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
16650 | { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
16651 | { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS }, | |
16652 | { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS }, | |
16653 | { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
16654 | { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
16655 | { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
16656 | { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
16657 | { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
16658 | { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
16659 | { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS }, | |
16660 | { (char *)"Bitmap_GetQuality", (PyCFunction) _wrap_Bitmap_GetQuality, METH_VARARGS | METH_KEYWORDS }, | |
16661 | { (char *)"Bitmap_SetQuality", (PyCFunction) _wrap_Bitmap_SetQuality, METH_VARARGS | METH_KEYWORDS }, | |
16662 | { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS }, | |
16663 | { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS }, | |
16664 | { (char *)"new_MaskColour", (PyCFunction) _wrap_new_MaskColour, METH_VARARGS | METH_KEYWORDS }, | |
16665 | { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS }, | |
16666 | { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS }, | |
16667 | { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS }, | |
16668 | { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS }, | |
16669 | { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS }, | |
16670 | { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
16671 | { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
16672 | { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
16673 | { (char *)"Icon_GetHandle", (PyCFunction) _wrap_Icon_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
16674 | { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS }, | |
16675 | { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS }, | |
16676 | { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
16677 | { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
16678 | { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
16679 | { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
16680 | { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
16681 | { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
16682 | { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
16683 | { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
16684 | { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS }, | |
16685 | { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS }, | |
16686 | { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS }, | |
16687 | { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
16688 | { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS }, | |
16689 | { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS }, | |
16690 | { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS }, | |
16691 | { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
16692 | { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS }, | |
16693 | { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS }, | |
16694 | { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS }, | |
16695 | { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
16696 | { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS }, | |
16697 | { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
16698 | { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS }, | |
16699 | { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
16700 | { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS }, | |
16701 | { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS }, | |
16702 | { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS }, | |
16703 | { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS }, | |
16704 | { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS }, | |
16705 | { (char *)"new_CursorFromBits", (PyCFunction) _wrap_new_CursorFromBits, METH_VARARGS | METH_KEYWORDS }, | |
16706 | { (char *)"Cursor_GetHandle", (PyCFunction) _wrap_Cursor_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
16707 | { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS }, | |
16708 | { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS }, | |
16709 | { (char *)"Cursor_GetWidth", (PyCFunction) _wrap_Cursor_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
16710 | { (char *)"Cursor_GetHeight", (PyCFunction) _wrap_Cursor_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
16711 | { (char *)"Cursor_GetDepth", (PyCFunction) _wrap_Cursor_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
16712 | { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
16713 | { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
16714 | { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
16715 | { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
16716 | { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS }, | |
16717 | { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS }, | |
16718 | { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
16719 | { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS }, | |
16720 | { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS }, | |
16721 | { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS }, | |
16722 | { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS }, | |
16723 | { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS }, | |
16724 | { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS }, | |
16725 | { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS }, | |
16726 | { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS }, | |
16727 | { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS }, | |
16728 | { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
16729 | { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
16730 | { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS }, | |
16731 | { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
16732 | { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS }, | |
16733 | { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS }, | |
16734 | { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS }, | |
16735 | { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
16736 | { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS }, | |
16737 | { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS }, | |
16738 | { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS }, | |
16739 | { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS }, | |
16740 | { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS }, | |
16741 | { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS }, | |
16742 | { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS }, | |
16743 | { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS }, | |
16744 | { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
16745 | { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
16746 | { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS }, | |
16747 | { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS }, | |
16748 | { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS }, | |
16749 | { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
16750 | { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS }, | |
16751 | { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
16752 | { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
16753 | { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS }, | |
16754 | { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS }, | |
16755 | { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS }, | |
16756 | { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS }, | |
16757 | { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS }, | |
16758 | { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
16759 | { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
16760 | { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS }, | |
16761 | { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS }, | |
16762 | { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
16763 | { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
16764 | { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS }, | |
16765 | { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
16766 | { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
16767 | { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS }, | |
16768 | { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
16769 | { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
16770 | { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
16771 | { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
16772 | { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
16773 | { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
16774 | { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS }, | |
16775 | { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
16776 | { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS }, | |
16777 | { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS }, | |
16778 | { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS }, | |
16779 | { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS }, | |
16780 | { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS }, | |
16781 | { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS }, | |
16782 | { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS }, | |
16783 | { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS }, | |
16784 | { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS }, | |
16785 | { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS }, | |
16786 | { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS }, | |
16787 | { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS }, | |
16788 | { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS }, | |
16789 | { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS }, | |
16790 | { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS }, | |
16791 | { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS }, | |
16792 | { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS }, | |
16793 | { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS }, | |
16794 | { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS }, | |
16795 | { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS }, | |
16796 | { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS }, | |
16797 | { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS }, | |
16798 | { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS }, | |
16799 | { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
16800 | { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS }, | |
16801 | { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS }, | |
16802 | { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS }, | |
16803 | { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS }, | |
16804 | { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS }, | |
16805 | { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS }, | |
16806 | { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS }, | |
16807 | { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS }, | |
16808 | { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS }, | |
16809 | { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS }, | |
16810 | { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS }, | |
16811 | { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS }, | |
16812 | { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS }, | |
16813 | { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS }, | |
16814 | { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS }, | |
16815 | { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS }, | |
16816 | { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS }, | |
16817 | { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS }, | |
16818 | { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
16819 | { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS }, | |
16820 | { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
16821 | { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS }, | |
16822 | { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
16823 | { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
16824 | { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
16825 | { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
16826 | { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS }, | |
16827 | { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS }, | |
16828 | { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, | |
16829 | { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
16830 | { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS }, | |
16831 | { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
16832 | { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
16833 | { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
16834 | { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
16835 | { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
16836 | { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
16837 | { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS }, | |
16838 | { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, | |
16839 | { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS }, | |
16840 | { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS }, | |
16841 | { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS }, | |
16842 | { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS }, | |
16843 | { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS }, | |
16844 | { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
16845 | { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
16846 | { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS }, | |
16847 | { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS }, | |
16848 | { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS }, | |
16849 | { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
16850 | { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS }, | |
16851 | { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS }, | |
16852 | { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS }, | |
16853 | { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS }, | |
16854 | { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS }, | |
16855 | { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS }, | |
16856 | { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS }, | |
16857 | { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS }, | |
16858 | { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS }, | |
16859 | { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS }, | |
16860 | { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS }, | |
16861 | { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS }, | |
16862 | { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS }, | |
16863 | { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS }, | |
16864 | { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS }, | |
16865 | { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS }, | |
16866 | { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS }, | |
16867 | { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS }, | |
16868 | { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS }, | |
16869 | { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
16870 | { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS }, | |
16871 | { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS }, | |
16872 | { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS }, | |
16873 | { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS }, | |
16874 | { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS }, | |
16875 | { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS }, | |
16876 | { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS }, | |
16877 | { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS }, | |
16878 | { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS }, | |
16879 | { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS }, | |
16880 | { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS }, | |
16881 | { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS }, | |
16882 | { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS }, | |
16883 | { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS }, | |
16884 | { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS }, | |
16885 | { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS }, | |
16886 | { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS }, | |
16887 | { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS }, | |
16888 | { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS }, | |
16889 | { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS }, | |
16890 | { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS }, | |
16891 | { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS }, | |
16892 | { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS }, | |
16893 | { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS }, | |
16894 | { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS }, | |
16895 | { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS }, | |
16896 | { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS }, | |
16897 | { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS }, | |
16898 | { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS }, | |
16899 | { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS }, | |
16900 | { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
16901 | { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS }, | |
16902 | { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS }, | |
16903 | { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS }, | |
16904 | { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS }, | |
16905 | { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS }, | |
16906 | { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS }, | |
16907 | { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS }, | |
16908 | { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS }, | |
16909 | { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS }, | |
16910 | { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS }, | |
16911 | { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS }, | |
16912 | { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS }, | |
16913 | { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS }, | |
16914 | { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS }, | |
16915 | { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS }, | |
16916 | { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS }, | |
16917 | { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS }, | |
16918 | { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS }, | |
16919 | { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS }, | |
16920 | { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS }, | |
16921 | { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS }, | |
16922 | { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS }, | |
16923 | { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS }, | |
16924 | { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS }, | |
16925 | { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS }, | |
16926 | { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS }, | |
16927 | { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
16928 | { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS }, | |
16929 | { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS }, | |
16930 | { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS }, | |
16931 | { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS }, | |
16932 | { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS }, | |
16933 | { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS }, | |
16934 | { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS }, | |
16935 | { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS }, | |
16936 | { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS }, | |
16937 | { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS }, | |
16938 | { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS }, | |
16939 | { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS }, | |
16940 | { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS }, | |
16941 | { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS }, | |
16942 | { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS }, | |
16943 | { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS }, | |
16944 | { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
16945 | { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS }, | |
16946 | { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS }, | |
16947 | { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS }, | |
16948 | { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
16949 | { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS }, | |
f0983263 | 16950 | { (char *)"DC_SetClippingRegionXY", (PyCFunction) _wrap_DC_SetClippingRegionXY, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
16951 | { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS }, |
16952 | { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS }, | |
16953 | { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS }, | |
16954 | { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS }, | |
16955 | { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS }, | |
16956 | { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS }, | |
16957 | { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
16958 | { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
16959 | { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
16960 | { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
16961 | { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 16962 | { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS }, |
44127b65 | 16963 | { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 16964 | { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS }, |
44127b65 | 16965 | { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
16966 | { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS }, |
16967 | { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS }, | |
16968 | { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS }, | |
16969 | { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS }, | |
16970 | { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS }, | |
16971 | { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS }, | |
16972 | { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS }, | |
16973 | { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS }, | |
16974 | { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
16975 | { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
16976 | { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
16977 | { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS }, | |
16978 | { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS }, | |
16979 | { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
16980 | { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS }, | |
16981 | { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS }, | |
16982 | { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
16983 | { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS }, | |
16984 | { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
16985 | { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
16986 | { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
16987 | { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
16988 | { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
16989 | { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
16990 | { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
16991 | { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
16992 | { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS }, | |
16993 | { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 16994 | { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, |
44127b65 | 16995 | { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 16996 | { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 16997 | { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, |
44127b65 | 16998 | { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
16999 | { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, |
17000 | { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS }, | |
17001 | { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, | |
17002 | { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, | |
17003 | { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
17004 | { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
17005 | { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
17006 | { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
17007 | { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS }, | |
17008 | { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS }, | |
17009 | { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS }, | |
17010 | { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS }, | |
17011 | { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
17012 | { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS }, | |
17013 | { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS }, | |
17014 | { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS }, | |
17015 | { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS }, | |
17016 | { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS }, | |
17017 | { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS }, | |
17018 | { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS }, | |
17019 | { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS }, | |
17020 | { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS }, | |
17021 | { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS }, | |
17022 | { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS }, | |
17023 | { (char *)"new_BufferedDC", (PyCFunction) _wrap_new_BufferedDC, METH_VARARGS | METH_KEYWORDS }, | |
17024 | { (char *)"new_BufferedDCInternalBuffer", (PyCFunction) _wrap_new_BufferedDCInternalBuffer, METH_VARARGS | METH_KEYWORDS }, | |
17025 | { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS }, | |
17026 | { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS }, | |
17027 | { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS }, | |
17028 | { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS }, | |
17029 | { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS }, | |
17030 | { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS }, | |
17031 | { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
17032 | { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
17033 | { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS }, | |
17034 | { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS }, | |
17035 | { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS }, | |
17036 | { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS }, | |
17037 | { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS }, | |
17038 | { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS }, | |
17039 | { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS }, | |
17040 | { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS }, | |
17041 | { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS }, | |
17042 | { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS }, | |
17043 | { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
17044 | { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
17045 | { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS }, | |
17046 | { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS }, | |
17047 | { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS }, | |
17048 | { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS }, | |
17049 | { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS }, | |
17050 | { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17051 | { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS }, | |
17052 | { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
17053 | { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17054 | { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
17055 | { (char *)"MetaFile_GetFileName", (PyCFunction) _wrap_MetaFile_GetFileName, METH_VARARGS | METH_KEYWORDS }, | |
17056 | { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS }, | |
17057 | { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS }, | |
17058 | { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS }, | |
17059 | { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS }, | |
17060 | { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS }, | |
17061 | { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS }, | |
17062 | { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS }, | |
17063 | { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS }, | |
17064 | { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS }, | |
17065 | { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS }, | |
17066 | { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
17067 | { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS }, | |
17068 | { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS }, | |
17069 | { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
17070 | { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS }, | |
17071 | { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS }, | |
17072 | { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
17073 | { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS }, | |
17074 | { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS }, | |
17075 | { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS }, | |
17076 | { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS }, | |
17077 | { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
17078 | { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS }, | |
17079 | { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS }, | |
17080 | { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS }, | |
17081 | { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS }, | |
17082 | { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
17083 | { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS }, | |
17084 | { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS }, | |
17085 | { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS }, | |
17086 | { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS }, | |
17087 | { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS }, | |
17088 | { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS }, | |
17089 | { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS }, | |
17090 | { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS }, | |
17091 | { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS }, | |
17092 | { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS }, | |
17093 | { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS }, | |
17094 | { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
17095 | { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
17096 | { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS }, |
17097 | { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS }, | |
17098 | { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS }, | |
17099 | { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS }, | |
17100 | { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS }, | |
17101 | { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS }, | |
17102 | { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS }, | |
17103 | { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS }, | |
17104 | { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS }, | |
17105 | { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS }, | |
17106 | { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS }, | |
17107 | { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS }, | |
17108 | { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS }, | |
17109 | { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17110 | { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS }, | |
17111 | { NULL, NULL } | |
17112 | }; | |
17113 | ||
17114 | ||
17115 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
17116 | ||
423f194a RD |
17117 | static void *_p_wxControlTo_p_wxWindow(void *x) { |
17118 | return (void *)((wxWindow *) ((wxControl *) x)); | |
17119 | } | |
17120 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
17121 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
17122 | } | |
17123 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
17124 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
17125 | } | |
d14a1e28 RD |
17126 | static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) { |
17127 | return (void *)((wxMemoryDC *) ((wxBufferedDC *) x)); | |
17128 | } | |
17129 | static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) { | |
17130 | return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
17131 | } | |
d14a1e28 RD |
17132 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { |
17133 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
17134 | } | |
17135 | static void *_p_wxPenTo_p_wxObject(void *x) { | |
17136 | return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x)); | |
17137 | } | |
17138 | static void *_p_wxRegionIteratorTo_p_wxObject(void *x) { | |
17139 | return (void *)((wxObject *) ((wxRegionIterator *) x)); | |
17140 | } | |
17141 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
17142 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
17143 | } | |
17144 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
17145 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
17146 | } | |
17147 | static void *_p_wxColourDatabaseTo_p_wxObject(void *x) { | |
17148 | return (void *)((wxObject *) ((wxColourDatabase *) x)); | |
17149 | } | |
17150 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
17151 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
17152 | } | |
17153 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
17154 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
17155 | } | |
17156 | static void *_p_wxIconTo_p_wxObject(void *x) { | |
17157 | return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x)); | |
17158 | } | |
17159 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
17160 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
17161 | } | |
17162 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
17163 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
17164 | } | |
17165 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
17166 | return (void *)((wxObject *) ((wxSizer *) x)); | |
17167 | } | |
17168 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
17169 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
17170 | } | |
17171 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
17172 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
17173 | } | |
17174 | static void *_p_wxPenListTo_p_wxObject(void *x) { | |
17175 | return (void *)((wxObject *) ((wxPenList *) x)); | |
17176 | } | |
17177 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
17178 | return (void *)((wxObject *) ((wxEvent *) x)); | |
17179 | } | |
17180 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
17181 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
17182 | } | |
17183 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
17184 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
17185 | } | |
17186 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
17187 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
17188 | } | |
17189 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
17190 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
17191 | } | |
17192 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
17193 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
17194 | } | |
17195 | static void *_p_wxDCTo_p_wxObject(void *x) { | |
17196 | return (void *)((wxObject *) ((wxDC *) x)); | |
17197 | } | |
17198 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
17199 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
17200 | } | |
17201 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
17202 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
17203 | } | |
17204 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
17205 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
17206 | } | |
17207 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
17208 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
17209 | } | |
17210 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
17211 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
17212 | } | |
17213 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
17214 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
17215 | } | |
17216 | static void *_p_wxClientDCTo_p_wxObject(void *x) { | |
17217 | return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x)); | |
17218 | } | |
17219 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
17220 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
17221 | } | |
17222 | static void *_p_wxMemoryDCTo_p_wxObject(void *x) { | |
17223 | return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x)); | |
17224 | } | |
17225 | static void *_p_wxRegionTo_p_wxObject(void *x) { | |
17226 | return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x)); | |
17227 | } | |
17228 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
17229 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
17230 | } | |
17231 | static void *_p_wxWindowDCTo_p_wxObject(void *x) { | |
17232 | return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x)); | |
17233 | } | |
17234 | static void *_p_wxGDIObjectTo_p_wxObject(void *x) { | |
17235 | return (void *)((wxObject *) ((wxGDIObject *) x)); | |
17236 | } | |
17237 | static void *_p_wxEffectsTo_p_wxObject(void *x) { | |
17238 | return (void *)((wxObject *) ((wxEffects *) x)); | |
17239 | } | |
17240 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
17241 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
17242 | } | |
17243 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
17244 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
17245 | } | |
17246 | static void *_p_wxPostScriptDCTo_p_wxObject(void *x) { | |
17247 | return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x)); | |
17248 | } | |
17249 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
17250 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
17251 | } | |
17252 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
17253 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
17254 | } | |
17255 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
17256 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
17257 | } | |
17258 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
17259 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
17260 | } | |
17261 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
17262 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
17263 | } | |
17264 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
17265 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
17266 | } | |
17267 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
17268 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
17269 | } | |
17270 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
17271 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
17272 | } | |
17273 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
17274 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
17275 | } | |
17276 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
17277 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
17278 | } | |
17279 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
17280 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
17281 | } | |
17282 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
17283 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
17284 | } | |
17285 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
17286 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
17287 | } | |
17288 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
17289 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
17290 | } | |
17291 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
17292 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
17293 | } | |
17294 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
17295 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
17296 | } | |
17297 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
17298 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
17299 | } | |
17300 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
17301 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
17302 | } | |
17303 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
17304 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
17305 | } | |
17306 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
17307 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
17308 | } | |
17309 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
17310 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
17311 | } | |
17312 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
17313 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
17314 | } | |
17315 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
17316 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
17317 | } | |
17318 | static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) { | |
17319 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
17320 | } | |
17321 | static void *_p_wxPaintDCTo_p_wxObject(void *x) { | |
17322 | return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x)); | |
17323 | } | |
17324 | static void *_p_wxPrinterDCTo_p_wxObject(void *x) { | |
17325 | return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x)); | |
17326 | } | |
17327 | static void *_p_wxScreenDCTo_p_wxObject(void *x) { | |
17328 | return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x)); | |
17329 | } | |
41f1cec7 RD |
17330 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
17331 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
17332 | } | |
d14a1e28 RD |
17333 | static void *_p_wxImageTo_p_wxObject(void *x) { |
17334 | return (void *)((wxObject *) ((wxImage *) x)); | |
17335 | } | |
17336 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
17337 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
17338 | } | |
d14a1e28 RD |
17339 | static void *_p_wxPaletteTo_p_wxObject(void *x) { |
17340 | return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x)); | |
17341 | } | |
17342 | static void *_p_wxBufferedDCTo_p_wxObject(void *x) { | |
17343 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x)); | |
17344 | } | |
17345 | static void *_p_wxImageListTo_p_wxObject(void *x) { | |
17346 | return (void *)((wxObject *) ((wxImageList *) x)); | |
17347 | } | |
17348 | static void *_p_wxCursorTo_p_wxObject(void *x) { | |
17349 | return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x)); | |
17350 | } | |
17351 | static void *_p_wxEncodingConverterTo_p_wxObject(void *x) { | |
17352 | return (void *)((wxObject *) ((wxEncodingConverter *) x)); | |
17353 | } | |
17354 | static void *_p_wxMirrorDCTo_p_wxObject(void *x) { | |
17355 | return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x)); | |
17356 | } | |
17357 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
17358 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
17359 | } | |
17360 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
17361 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
17362 | } | |
17363 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
17364 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
17365 | } | |
17366 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
17367 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
17368 | } | |
17369 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
17370 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
17371 | } | |
17372 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
17373 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
17374 | } | |
17375 | static void *_p_wxMetaFileDCTo_p_wxObject(void *x) { | |
17376 | return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x)); | |
17377 | } | |
17378 | static void *_p_wxBrushListTo_p_wxObject(void *x) { | |
17379 | return (void *)((wxObject *) ((wxBrushList *) x)); | |
17380 | } | |
17381 | static void *_p_wxPyPenTo_p_wxObject(void *x) { | |
17382 | return (void *)((wxObject *) (wxGDIObject *)(wxPen *) ((wxPyPen *) x)); | |
17383 | } | |
17384 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
17385 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
17386 | } | |
17387 | static void *_p_wxBitmapTo_p_wxObject(void *x) { | |
17388 | return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x)); | |
17389 | } | |
17390 | static void *_p_wxMaskTo_p_wxObject(void *x) { | |
17391 | return (void *)((wxObject *) ((wxMask *) x)); | |
17392 | } | |
17393 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
17394 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
17395 | } | |
17396 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
17397 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
17398 | } | |
17399 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
17400 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
17401 | } | |
17402 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
17403 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
17404 | } | |
17405 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
17406 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
17407 | } | |
17408 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
17409 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
17410 | } | |
17411 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
17412 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
17413 | } | |
17414 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
17415 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
17416 | } | |
17417 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
17418 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
17419 | } | |
17420 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
17421 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
17422 | } | |
17423 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
17424 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
17425 | } | |
17426 | static void *_p_wxFontTo_p_wxObject(void *x) { | |
17427 | return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x)); | |
17428 | } | |
17429 | static void *_p_wxBrushTo_p_wxObject(void *x) { | |
17430 | return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x)); | |
17431 | } | |
17432 | static void *_p_wxMetaFileTo_p_wxObject(void *x) { | |
17433 | return (void *)((wxObject *) ((wxMetaFile *) x)); | |
17434 | } | |
17435 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
17436 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
17437 | } | |
17438 | static void *_p_wxColourTo_p_wxObject(void *x) { | |
17439 | return (void *)((wxObject *) ((wxColour *) x)); | |
17440 | } | |
17441 | static void *_p_wxFontListTo_p_wxObject(void *x) { | |
17442 | return (void *)((wxObject *) ((wxFontList *) x)); | |
17443 | } | |
17444 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
17445 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
17446 | } | |
17447 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
17448 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
17449 | } | |
423f194a RD |
17450 | static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) { |
17451 | return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
d14a1e28 | 17452 | } |
423f194a RD |
17453 | static void *_p_wxBufferedDCTo_p_wxDC(void *x) { |
17454 | return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x)); | |
d14a1e28 | 17455 | } |
423f194a RD |
17456 | static void *_p_wxScreenDCTo_p_wxDC(void *x) { |
17457 | return (void *)((wxDC *) ((wxScreenDC *) x)); | |
17458 | } | |
17459 | static void *_p_wxMirrorDCTo_p_wxDC(void *x) { | |
17460 | return (void *)((wxDC *) ((wxMirrorDC *) x)); | |
17461 | } | |
17462 | static void *_p_wxMemoryDCTo_p_wxDC(void *x) { | |
17463 | return (void *)((wxDC *) ((wxMemoryDC *) x)); | |
17464 | } | |
17465 | static void *_p_wxWindowDCTo_p_wxDC(void *x) { | |
17466 | return (void *)((wxDC *) ((wxWindowDC *) x)); | |
17467 | } | |
17468 | static void *_p_wxMetaFileDCTo_p_wxDC(void *x) { | |
17469 | return (void *)((wxDC *) ((wxMetaFileDC *) x)); | |
17470 | } | |
17471 | static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) { | |
17472 | return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
17473 | } | |
17474 | static void *_p_wxClientDCTo_p_wxDC(void *x) { | |
17475 | return (void *)((wxDC *) ((wxClientDC *) x)); | |
17476 | } | |
17477 | static void *_p_wxPaintDCTo_p_wxDC(void *x) { | |
17478 | return (void *)((wxDC *) ((wxPaintDC *) x)); | |
17479 | } | |
17480 | static void *_p_wxPostScriptDCTo_p_wxDC(void *x) { | |
17481 | return (void *)((wxDC *) ((wxPostScriptDC *) x)); | |
17482 | } | |
17483 | static void *_p_wxPrinterDCTo_p_wxDC(void *x) { | |
17484 | return (void *)((wxDC *) ((wxPrinterDC *) x)); | |
17485 | } | |
17486 | static void *_p_wxPyPenTo_p_wxGDIObject(void *x) { | |
17487 | return (void *)((wxGDIObject *) (wxPen *) ((wxPyPen *) x)); | |
17488 | } | |
17489 | static void *_p_wxIconTo_p_wxGDIObject(void *x) { | |
17490 | return (void *)((wxGDIObject *) ((wxIcon *) x)); | |
17491 | } | |
17492 | static void *_p_wxPaletteTo_p_wxGDIObject(void *x) { | |
17493 | return (void *)((wxGDIObject *) ((wxPalette *) x)); | |
17494 | } | |
17495 | static void *_p_wxPenTo_p_wxGDIObject(void *x) { | |
17496 | return (void *)((wxGDIObject *) ((wxPen *) x)); | |
17497 | } | |
17498 | static void *_p_wxFontTo_p_wxGDIObject(void *x) { | |
17499 | return (void *)((wxGDIObject *) ((wxFont *) x)); | |
17500 | } | |
17501 | static void *_p_wxCursorTo_p_wxGDIObject(void *x) { | |
17502 | return (void *)((wxGDIObject *) ((wxCursor *) x)); | |
17503 | } | |
17504 | static void *_p_wxBitmapTo_p_wxGDIObject(void *x) { | |
17505 | return (void *)((wxGDIObject *) ((wxBitmap *) x)); | |
17506 | } | |
17507 | static void *_p_wxRegionTo_p_wxGDIObject(void *x) { | |
17508 | return (void *)((wxGDIObject *) ((wxRegion *) x)); | |
17509 | } | |
17510 | static void *_p_wxBrushTo_p_wxGDIObject(void *x) { | |
17511 | return (void *)((wxGDIObject *) ((wxBrush *) x)); | |
17512 | } | |
17513 | static void *_p_wxPyPenTo_p_wxPen(void *x) { | |
17514 | return (void *)((wxPen *) ((wxPyPen *) x)); | |
d14a1e28 RD |
17515 | } |
17516 | static swig_type_info _swigt__p_wxPostScriptDC[] = {{"_p_wxPostScriptDC", 0, "wxPostScriptDC *", 0},{"_p_wxPostScriptDC"},{0}}; | |
d14a1e28 RD |
17517 | static swig_type_info _swigt__p_wxBrush[] = {{"_p_wxBrush", 0, "wxBrush *", 0},{"_p_wxBrush"},{0}}; |
17518 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}}; | |
d14a1e28 RD |
17519 | 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}}; |
17520 | static swig_type_info _swigt__p_wxMirrorDC[] = {{"_p_wxMirrorDC", 0, "wxMirrorDC *", 0},{"_p_wxMirrorDC"},{0}}; | |
17521 | static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "byte *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}}; | |
17522 | static swig_type_info _swigt__p_wxPyFontEnumerator[] = {{"_p_wxPyFontEnumerator", 0, "wxPyFontEnumerator *", 0},{"_p_wxPyFontEnumerator"},{0}}; | |
17523 | static swig_type_info _swigt__p_wxIconLocation[] = {{"_p_wxIconLocation", 0, "wxIconLocation *", 0},{"_p_wxIconLocation"},{0}}; | |
17524 | static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0},{"_p_wxImage"},{0}}; | |
17525 | static swig_type_info _swigt__p_wxMetaFileDC[] = {{"_p_wxMetaFileDC", 0, "wxMetaFileDC *", 0},{"_p_wxMetaFileDC"},{0}}; | |
17526 | static swig_type_info _swigt__p_wxMask[] = {{"_p_wxMask", 0, "wxMask *", 0},{"_p_wxMask"},{0}}; | |
17527 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}}; | |
17528 | 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}}; | |
17529 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}}; | |
17530 | static swig_type_info _swigt__p_double[] = {{"_p_double", 0, "double *", 0},{"_p_double"},{0}}; | |
17531 | 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}}; | |
17532 | static swig_type_info _swigt__p_wxFontMapper[] = {{"_p_wxFontMapper", 0, "wxFontMapper *", 0},{"_p_wxFontMapper"},{0}}; | |
d14a1e28 RD |
17533 | static swig_type_info _swigt__p_wxEffects[] = {{"_p_wxEffects", 0, "wxEffects *", 0},{"_p_wxEffects"},{0}}; |
17534 | static swig_type_info _swigt__p_wxNativeEncodingInfo[] = {{"_p_wxNativeEncodingInfo", 0, "wxNativeEncodingInfo *", 0},{"_p_wxNativeEncodingInfo"},{0}}; | |
17535 | static swig_type_info _swigt__p_wxPalette[] = {{"_p_wxPalette", 0, "wxPalette *", 0},{"_p_wxPalette"},{0}}; | |
17536 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}}; | |
41f1cec7 | 17537 | 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 |
17538 | static swig_type_info _swigt__p_wxRegionIterator[] = {{"_p_wxRegionIterator", 0, "wxRegionIterator *", 0},{"_p_wxRegionIterator"},{0}}; |
17539 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}}; | |
17540 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}}; | |
17541 | static swig_type_info _swigt__p_wxPrinterDC[] = {{"_p_wxPrinterDC", 0, "wxPrinterDC *", 0},{"_p_wxPrinterDC"},{0}}; | |
17542 | static swig_type_info _swigt__p_wxIconBundle[] = {{"_p_wxIconBundle", 0, "wxIconBundle *", 0},{"_p_wxIconBundle"},{0}}; | |
17543 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}}; | |
17544 | static swig_type_info _swigt__p_wxDash[] = {{"_p_wxDash", 0, "wxDash *", 0},{"_p_wxDash"},{0}}; | |
17545 | static swig_type_info _swigt__p_wxScreenDC[] = {{"_p_wxScreenDC", 0, "wxScreenDC *", 0},{"_p_wxScreenDC"},{0}}; | |
17546 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}}; | |
17547 | static swig_type_info _swigt__p_wxClientDC[] = {{"_p_wxClientDC", 0, "wxClientDC *", 0},{"_p_wxClientDC"},{0}}; | |
d14a1e28 RD |
17548 | static swig_type_info _swigt__p_wxBufferedDC[] = {{"_p_wxBufferedDC", 0, "wxBufferedDC *", 0},{"_p_wxBufferedDC"},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxBufferedDC},{0}}; |
17549 | static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0},{"_p_wxImageList"},{0}}; | |
17550 | static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}}; | |
17551 | 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}}; | |
17552 | static swig_type_info _swigt__p_wxLocale[] = {{"_p_wxLocale", 0, "wxLocale *", 0},{"_p_wxLocale"},{0}}; | |
17553 | static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}}; | |
17554 | static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0},{"_p_wxRegion"},{0}}; | |
17555 | static swig_type_info _swigt__p_wxLanguageInfo[] = {{"_p_wxLanguageInfo", 0, "wxLanguageInfo *", 0},{"_p_wxLanguageInfo"},{0}}; | |
17556 | static swig_type_info _swigt__p_wxConfigBase[] = {{"_p_wxConfigBase", 0, "wxConfigBase *", 0},{"_p_wxConfigBase"},{0}}; | |
17557 | static swig_type_info _swigt__p_wxWindowDC[] = {{"_p_wxWindowDC", 0, "wxWindowDC *", 0},{"_p_wxWindowDC"},{0}}; | |
17558 | static swig_type_info _swigt__p_wxPrintData[] = {{"_p_wxPrintData", 0, "wxPrintData *", 0},{"_p_wxPrintData"},{0}}; | |
17559 | static swig_type_info _swigt__p_wxBrushList[] = {{"_p_wxBrushList", 0, "wxBrushList *", 0},{"_p_wxBrushList"},{0}}; | |
17560 | static swig_type_info _swigt__p_wxFontList[] = {{"_p_wxFontList", 0, "wxFontList *", 0},{"_p_wxFontList"},{0}}; | |
17561 | static swig_type_info _swigt__p_wxPen[] = {{"_p_wxPen", 0, "wxPen *", 0},{"_p_wxPyPen", _p_wxPyPenTo_p_wxPen},{"_p_wxPen"},{0}}; | |
17562 | static swig_type_info _swigt__p_wxBufferedPaintDC[] = {{"_p_wxBufferedPaintDC", 0, "wxBufferedPaintDC *", 0},{"_p_wxBufferedPaintDC"},{0}}; | |
17563 | static swig_type_info _swigt__p_wxPaintDC[] = {{"_p_wxPaintDC", 0, "wxPaintDC *", 0},{"_p_wxPaintDC"},{0}}; | |
17564 | static swig_type_info _swigt__p_wxPenList[] = {{"_p_wxPenList", 0, "wxPenList *", 0},{"_p_wxPenList"},{0}}; | |
d14a1e28 | 17565 | static swig_type_info _swigt__p_wxPyPen[] = {{"_p_wxPyPen", 0, "wxPyPen *", 0},{"_p_wxPyPen"},{0}}; |
423f194a | 17566 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}}; |
d14a1e28 RD |
17567 | static swig_type_info _swigt__p_wxMetaFile[] = {{"_p_wxMetaFile", 0, "wxMetaFile *", 0},{"_p_wxMetaFile"},{0}}; |
17568 | static swig_type_info _swigt__p_wxNativeFontInfo[] = {{"_p_wxNativeFontInfo", 0, "wxNativeFontInfo *", 0},{"_p_wxNativeFontInfo"},{0}}; | |
17569 | static swig_type_info _swigt__p_wxEncodingConverter[] = {{"_p_wxEncodingConverter", 0, "wxEncodingConverter *", 0},{"_p_wxEncodingConverter"},{0}}; | |
17570 | static swig_type_info _swigt__p_wxColourDatabase[] = {{"_p_wxColourDatabase", 0, "wxColourDatabase *", 0},{"_p_wxColourDatabase"},{0}}; | |
17571 | ||
17572 | static swig_type_info *swig_types_initial[] = { | |
17573 | _swigt__p_wxPostScriptDC, | |
d14a1e28 RD |
17574 | _swigt__p_wxBrush, |
17575 | _swigt__p_wxColour, | |
d14a1e28 RD |
17576 | _swigt__p_wxDC, |
17577 | _swigt__p_wxMirrorDC, | |
17578 | _swigt__p_byte, | |
17579 | _swigt__p_wxPyFontEnumerator, | |
17580 | _swigt__p_wxIconLocation, | |
17581 | _swigt__p_wxImage, | |
17582 | _swigt__p_wxMetaFileDC, | |
17583 | _swigt__p_wxMask, | |
17584 | _swigt__p_wxFont, | |
17585 | _swigt__p_wxWindow, | |
17586 | _swigt__p_wxSize, | |
17587 | _swigt__p_double, | |
17588 | _swigt__p_wxMemoryDC, | |
17589 | _swigt__p_wxFontMapper, | |
d14a1e28 RD |
17590 | _swigt__p_wxEffects, |
17591 | _swigt__p_wxNativeEncodingInfo, | |
17592 | _swigt__p_wxPalette, | |
17593 | _swigt__p_wxBitmap, | |
17594 | _swigt__p_wxObject, | |
17595 | _swigt__p_wxRegionIterator, | |
17596 | _swigt__p_wxRect, | |
17597 | _swigt__p_wxString, | |
17598 | _swigt__p_wxPrinterDC, | |
17599 | _swigt__p_wxIconBundle, | |
17600 | _swigt__p_wxPoint, | |
17601 | _swigt__p_wxDash, | |
17602 | _swigt__p_wxScreenDC, | |
17603 | _swigt__p_wxCursor, | |
17604 | _swigt__p_wxClientDC, | |
d14a1e28 RD |
17605 | _swigt__p_wxBufferedDC, |
17606 | _swigt__p_wxImageList, | |
17607 | _swigt__p_unsigned_char, | |
17608 | _swigt__p_wxGDIObject, | |
17609 | _swigt__p_wxLocale, | |
17610 | _swigt__p_wxIcon, | |
17611 | _swigt__p_wxRegion, | |
17612 | _swigt__p_wxLanguageInfo, | |
17613 | _swigt__p_wxConfigBase, | |
17614 | _swigt__p_wxWindowDC, | |
17615 | _swigt__p_wxPrintData, | |
17616 | _swigt__p_wxBrushList, | |
17617 | _swigt__p_wxFontList, | |
17618 | _swigt__p_wxPen, | |
17619 | _swigt__p_wxBufferedPaintDC, | |
17620 | _swigt__p_wxPaintDC, | |
17621 | _swigt__p_wxPenList, | |
d14a1e28 RD |
17622 | _swigt__p_wxPyPen, |
17623 | _swigt__p_int, | |
17624 | _swigt__p_wxMetaFile, | |
17625 | _swigt__p_wxNativeFontInfo, | |
17626 | _swigt__p_wxEncodingConverter, | |
17627 | _swigt__p_wxColourDatabase, | |
17628 | 0 | |
17629 | }; | |
17630 | ||
17631 | ||
17632 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
17633 | ||
17634 | static swig_const_info swig_const_table[] = { | |
17635 | { SWIG_PY_INT, (char *)"OutRegion", (long) wxOutRegion, 0, 0, 0}, | |
17636 | { SWIG_PY_INT, (char *)"PartRegion", (long) wxPartRegion, 0, 0, 0}, | |
17637 | { SWIG_PY_INT, (char *)"InRegion", (long) wxInRegion, 0, 0, 0}, | |
17638 | { SWIG_PY_INT, (char *)"FONTFAMILY_DEFAULT", (long) wxFONTFAMILY_DEFAULT, 0, 0, 0}, | |
17639 | { SWIG_PY_INT, (char *)"FONTFAMILY_DECORATIVE", (long) wxFONTFAMILY_DECORATIVE, 0, 0, 0}, | |
17640 | { SWIG_PY_INT, (char *)"FONTFAMILY_ROMAN", (long) wxFONTFAMILY_ROMAN, 0, 0, 0}, | |
17641 | { SWIG_PY_INT, (char *)"FONTFAMILY_SCRIPT", (long) wxFONTFAMILY_SCRIPT, 0, 0, 0}, | |
17642 | { SWIG_PY_INT, (char *)"FONTFAMILY_SWISS", (long) wxFONTFAMILY_SWISS, 0, 0, 0}, | |
17643 | { SWIG_PY_INT, (char *)"FONTFAMILY_MODERN", (long) wxFONTFAMILY_MODERN, 0, 0, 0}, | |
17644 | { SWIG_PY_INT, (char *)"FONTFAMILY_TELETYPE", (long) wxFONTFAMILY_TELETYPE, 0, 0, 0}, | |
17645 | { SWIG_PY_INT, (char *)"FONTFAMILY_MAX", (long) wxFONTFAMILY_MAX, 0, 0, 0}, | |
17646 | { SWIG_PY_INT, (char *)"FONTFAMILY_UNKNOWN", (long) wxFONTFAMILY_UNKNOWN, 0, 0, 0}, | |
17647 | { SWIG_PY_INT, (char *)"FONTSTYLE_NORMAL", (long) wxFONTSTYLE_NORMAL, 0, 0, 0}, | |
17648 | { SWIG_PY_INT, (char *)"FONTSTYLE_ITALIC", (long) wxFONTSTYLE_ITALIC, 0, 0, 0}, | |
17649 | { SWIG_PY_INT, (char *)"FONTSTYLE_SLANT", (long) wxFONTSTYLE_SLANT, 0, 0, 0}, | |
17650 | { SWIG_PY_INT, (char *)"FONTSTYLE_MAX", (long) wxFONTSTYLE_MAX, 0, 0, 0}, | |
17651 | { SWIG_PY_INT, (char *)"FONTWEIGHT_NORMAL", (long) wxFONTWEIGHT_NORMAL, 0, 0, 0}, | |
17652 | { SWIG_PY_INT, (char *)"FONTWEIGHT_LIGHT", (long) wxFONTWEIGHT_LIGHT, 0, 0, 0}, | |
17653 | { SWIG_PY_INT, (char *)"FONTWEIGHT_BOLD", (long) wxFONTWEIGHT_BOLD, 0, 0, 0}, | |
17654 | { SWIG_PY_INT, (char *)"FONTWEIGHT_MAX", (long) wxFONTWEIGHT_MAX, 0, 0, 0}, | |
17655 | { SWIG_PY_INT, (char *)"FONTFLAG_DEFAULT", (long) wxFONTFLAG_DEFAULT, 0, 0, 0}, | |
17656 | { SWIG_PY_INT, (char *)"FONTFLAG_ITALIC", (long) wxFONTFLAG_ITALIC, 0, 0, 0}, | |
17657 | { SWIG_PY_INT, (char *)"FONTFLAG_SLANT", (long) wxFONTFLAG_SLANT, 0, 0, 0}, | |
17658 | { SWIG_PY_INT, (char *)"FONTFLAG_LIGHT", (long) wxFONTFLAG_LIGHT, 0, 0, 0}, | |
17659 | { SWIG_PY_INT, (char *)"FONTFLAG_BOLD", (long) wxFONTFLAG_BOLD, 0, 0, 0}, | |
17660 | { SWIG_PY_INT, (char *)"FONTFLAG_ANTIALIASED", (long) wxFONTFLAG_ANTIALIASED, 0, 0, 0}, | |
17661 | { SWIG_PY_INT, (char *)"FONTFLAG_NOT_ANTIALIASED", (long) wxFONTFLAG_NOT_ANTIALIASED, 0, 0, 0}, | |
17662 | { SWIG_PY_INT, (char *)"FONTFLAG_UNDERLINED", (long) wxFONTFLAG_UNDERLINED, 0, 0, 0}, | |
17663 | { SWIG_PY_INT, (char *)"FONTFLAG_STRIKETHROUGH", (long) wxFONTFLAG_STRIKETHROUGH, 0, 0, 0}, | |
17664 | { SWIG_PY_INT, (char *)"FONTFLAG_MASK", (long) wxFONTFLAG_MASK, 0, 0, 0}, | |
17665 | { SWIG_PY_INT, (char *)"FONTENCODING_SYSTEM", (long) wxFONTENCODING_SYSTEM, 0, 0, 0}, | |
17666 | { SWIG_PY_INT, (char *)"FONTENCODING_DEFAULT", (long) wxFONTENCODING_DEFAULT, 0, 0, 0}, | |
17667 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_1", (long) wxFONTENCODING_ISO8859_1, 0, 0, 0}, | |
17668 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_2", (long) wxFONTENCODING_ISO8859_2, 0, 0, 0}, | |
17669 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_3", (long) wxFONTENCODING_ISO8859_3, 0, 0, 0}, | |
17670 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_4", (long) wxFONTENCODING_ISO8859_4, 0, 0, 0}, | |
17671 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_5", (long) wxFONTENCODING_ISO8859_5, 0, 0, 0}, | |
17672 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_6", (long) wxFONTENCODING_ISO8859_6, 0, 0, 0}, | |
17673 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_7", (long) wxFONTENCODING_ISO8859_7, 0, 0, 0}, | |
17674 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_8", (long) wxFONTENCODING_ISO8859_8, 0, 0, 0}, | |
17675 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_9", (long) wxFONTENCODING_ISO8859_9, 0, 0, 0}, | |
17676 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_10", (long) wxFONTENCODING_ISO8859_10, 0, 0, 0}, | |
17677 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_11", (long) wxFONTENCODING_ISO8859_11, 0, 0, 0}, | |
17678 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_12", (long) wxFONTENCODING_ISO8859_12, 0, 0, 0}, | |
17679 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_13", (long) wxFONTENCODING_ISO8859_13, 0, 0, 0}, | |
17680 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_14", (long) wxFONTENCODING_ISO8859_14, 0, 0, 0}, | |
17681 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_15", (long) wxFONTENCODING_ISO8859_15, 0, 0, 0}, | |
17682 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_MAX", (long) wxFONTENCODING_ISO8859_MAX, 0, 0, 0}, | |
17683 | { SWIG_PY_INT, (char *)"FONTENCODING_KOI8", (long) wxFONTENCODING_KOI8, 0, 0, 0}, | |
17684 | { SWIG_PY_INT, (char *)"FONTENCODING_ALTERNATIVE", (long) wxFONTENCODING_ALTERNATIVE, 0, 0, 0}, | |
17685 | { SWIG_PY_INT, (char *)"FONTENCODING_BULGARIAN", (long) wxFONTENCODING_BULGARIAN, 0, 0, 0}, | |
17686 | { SWIG_PY_INT, (char *)"FONTENCODING_CP437", (long) wxFONTENCODING_CP437, 0, 0, 0}, | |
17687 | { SWIG_PY_INT, (char *)"FONTENCODING_CP850", (long) wxFONTENCODING_CP850, 0, 0, 0}, | |
17688 | { SWIG_PY_INT, (char *)"FONTENCODING_CP852", (long) wxFONTENCODING_CP852, 0, 0, 0}, | |
17689 | { SWIG_PY_INT, (char *)"FONTENCODING_CP855", (long) wxFONTENCODING_CP855, 0, 0, 0}, | |
17690 | { SWIG_PY_INT, (char *)"FONTENCODING_CP866", (long) wxFONTENCODING_CP866, 0, 0, 0}, | |
17691 | { SWIG_PY_INT, (char *)"FONTENCODING_CP874", (long) wxFONTENCODING_CP874, 0, 0, 0}, | |
17692 | { SWIG_PY_INT, (char *)"FONTENCODING_CP932", (long) wxFONTENCODING_CP932, 0, 0, 0}, | |
17693 | { SWIG_PY_INT, (char *)"FONTENCODING_CP936", (long) wxFONTENCODING_CP936, 0, 0, 0}, | |
17694 | { SWIG_PY_INT, (char *)"FONTENCODING_CP949", (long) wxFONTENCODING_CP949, 0, 0, 0}, | |
17695 | { SWIG_PY_INT, (char *)"FONTENCODING_CP950", (long) wxFONTENCODING_CP950, 0, 0, 0}, | |
17696 | { SWIG_PY_INT, (char *)"FONTENCODING_CP1250", (long) wxFONTENCODING_CP1250, 0, 0, 0}, | |
17697 | { SWIG_PY_INT, (char *)"FONTENCODING_CP1251", (long) wxFONTENCODING_CP1251, 0, 0, 0}, | |
17698 | { SWIG_PY_INT, (char *)"FONTENCODING_CP1252", (long) wxFONTENCODING_CP1252, 0, 0, 0}, | |
17699 | { SWIG_PY_INT, (char *)"FONTENCODING_CP1253", (long) wxFONTENCODING_CP1253, 0, 0, 0}, | |
17700 | { SWIG_PY_INT, (char *)"FONTENCODING_CP1254", (long) wxFONTENCODING_CP1254, 0, 0, 0}, | |
17701 | { SWIG_PY_INT, (char *)"FONTENCODING_CP1255", (long) wxFONTENCODING_CP1255, 0, 0, 0}, | |
17702 | { SWIG_PY_INT, (char *)"FONTENCODING_CP1256", (long) wxFONTENCODING_CP1256, 0, 0, 0}, | |
17703 | { SWIG_PY_INT, (char *)"FONTENCODING_CP1257", (long) wxFONTENCODING_CP1257, 0, 0, 0}, | |
17704 | { SWIG_PY_INT, (char *)"FONTENCODING_CP12_MAX", (long) wxFONTENCODING_CP12_MAX, 0, 0, 0}, | |
17705 | { SWIG_PY_INT, (char *)"FONTENCODING_UTF7", (long) wxFONTENCODING_UTF7, 0, 0, 0}, | |
17706 | { SWIG_PY_INT, (char *)"FONTENCODING_UTF8", (long) wxFONTENCODING_UTF8, 0, 0, 0}, | |
17707 | { SWIG_PY_INT, (char *)"FONTENCODING_EUC_JP", (long) wxFONTENCODING_EUC_JP, 0, 0, 0}, | |
17708 | { SWIG_PY_INT, (char *)"FONTENCODING_UTF16BE", (long) wxFONTENCODING_UTF16BE, 0, 0, 0}, | |
17709 | { SWIG_PY_INT, (char *)"FONTENCODING_UTF16LE", (long) wxFONTENCODING_UTF16LE, 0, 0, 0}, | |
17710 | { SWIG_PY_INT, (char *)"FONTENCODING_UTF32BE", (long) wxFONTENCODING_UTF32BE, 0, 0, 0}, | |
17711 | { SWIG_PY_INT, (char *)"FONTENCODING_UTF32LE", (long) wxFONTENCODING_UTF32LE, 0, 0, 0}, | |
17712 | { SWIG_PY_INT, (char *)"FONTENCODING_MAX", (long) wxFONTENCODING_MAX, 0, 0, 0}, | |
17713 | { SWIG_PY_INT, (char *)"FONTENCODING_UTF16", (long) wxFONTENCODING_UTF16, 0, 0, 0}, | |
17714 | { SWIG_PY_INT, (char *)"FONTENCODING_UTF32", (long) wxFONTENCODING_UTF32, 0, 0, 0}, | |
17715 | { SWIG_PY_INT, (char *)"FONTENCODING_UNICODE", (long) wxFONTENCODING_UNICODE, 0, 0, 0}, | |
17716 | { SWIG_PY_INT, (char *)"FONTENCODING_GB2312", (long) wxFONTENCODING_GB2312, 0, 0, 0}, | |
17717 | { SWIG_PY_INT, (char *)"FONTENCODING_BIG5", (long) wxFONTENCODING_BIG5, 0, 0, 0}, | |
17718 | { SWIG_PY_INT, (char *)"FONTENCODING_SHIFT_JIS", (long) wxFONTENCODING_SHIFT_JIS, 0, 0, 0}, | |
17719 | { SWIG_PY_INT, (char *)"LANGUAGE_DEFAULT", (long) wxLANGUAGE_DEFAULT, 0, 0, 0}, | |
17720 | { SWIG_PY_INT, (char *)"LANGUAGE_UNKNOWN", (long) wxLANGUAGE_UNKNOWN, 0, 0, 0}, | |
17721 | { SWIG_PY_INT, (char *)"LANGUAGE_ABKHAZIAN", (long) wxLANGUAGE_ABKHAZIAN, 0, 0, 0}, | |
17722 | { SWIG_PY_INT, (char *)"LANGUAGE_AFAR", (long) wxLANGUAGE_AFAR, 0, 0, 0}, | |
17723 | { SWIG_PY_INT, (char *)"LANGUAGE_AFRIKAANS", (long) wxLANGUAGE_AFRIKAANS, 0, 0, 0}, | |
17724 | { SWIG_PY_INT, (char *)"LANGUAGE_ALBANIAN", (long) wxLANGUAGE_ALBANIAN, 0, 0, 0}, | |
17725 | { SWIG_PY_INT, (char *)"LANGUAGE_AMHARIC", (long) wxLANGUAGE_AMHARIC, 0, 0, 0}, | |
17726 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC", (long) wxLANGUAGE_ARABIC, 0, 0, 0}, | |
17727 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_ALGERIA", (long) wxLANGUAGE_ARABIC_ALGERIA, 0, 0, 0}, | |
17728 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_BAHRAIN", (long) wxLANGUAGE_ARABIC_BAHRAIN, 0, 0, 0}, | |
17729 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_EGYPT", (long) wxLANGUAGE_ARABIC_EGYPT, 0, 0, 0}, | |
17730 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_IRAQ", (long) wxLANGUAGE_ARABIC_IRAQ, 0, 0, 0}, | |
17731 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_JORDAN", (long) wxLANGUAGE_ARABIC_JORDAN, 0, 0, 0}, | |
17732 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_KUWAIT", (long) wxLANGUAGE_ARABIC_KUWAIT, 0, 0, 0}, | |
17733 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_LEBANON", (long) wxLANGUAGE_ARABIC_LEBANON, 0, 0, 0}, | |
17734 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_LIBYA", (long) wxLANGUAGE_ARABIC_LIBYA, 0, 0, 0}, | |
17735 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_MOROCCO", (long) wxLANGUAGE_ARABIC_MOROCCO, 0, 0, 0}, | |
17736 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_OMAN", (long) wxLANGUAGE_ARABIC_OMAN, 0, 0, 0}, | |
17737 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_QATAR", (long) wxLANGUAGE_ARABIC_QATAR, 0, 0, 0}, | |
17738 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_SAUDI_ARABIA", (long) wxLANGUAGE_ARABIC_SAUDI_ARABIA, 0, 0, 0}, | |
17739 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_SUDAN", (long) wxLANGUAGE_ARABIC_SUDAN, 0, 0, 0}, | |
17740 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_SYRIA", (long) wxLANGUAGE_ARABIC_SYRIA, 0, 0, 0}, | |
17741 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_TUNISIA", (long) wxLANGUAGE_ARABIC_TUNISIA, 0, 0, 0}, | |
17742 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_UAE", (long) wxLANGUAGE_ARABIC_UAE, 0, 0, 0}, | |
17743 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_YEMEN", (long) wxLANGUAGE_ARABIC_YEMEN, 0, 0, 0}, | |
17744 | { SWIG_PY_INT, (char *)"LANGUAGE_ARMENIAN", (long) wxLANGUAGE_ARMENIAN, 0, 0, 0}, | |
17745 | { SWIG_PY_INT, (char *)"LANGUAGE_ASSAMESE", (long) wxLANGUAGE_ASSAMESE, 0, 0, 0}, | |
17746 | { SWIG_PY_INT, (char *)"LANGUAGE_AYMARA", (long) wxLANGUAGE_AYMARA, 0, 0, 0}, | |
17747 | { SWIG_PY_INT, (char *)"LANGUAGE_AZERI", (long) wxLANGUAGE_AZERI, 0, 0, 0}, | |
17748 | { SWIG_PY_INT, (char *)"LANGUAGE_AZERI_CYRILLIC", (long) wxLANGUAGE_AZERI_CYRILLIC, 0, 0, 0}, | |
17749 | { SWIG_PY_INT, (char *)"LANGUAGE_AZERI_LATIN", (long) wxLANGUAGE_AZERI_LATIN, 0, 0, 0}, | |
17750 | { SWIG_PY_INT, (char *)"LANGUAGE_BASHKIR", (long) wxLANGUAGE_BASHKIR, 0, 0, 0}, | |
17751 | { SWIG_PY_INT, (char *)"LANGUAGE_BASQUE", (long) wxLANGUAGE_BASQUE, 0, 0, 0}, | |
17752 | { SWIG_PY_INT, (char *)"LANGUAGE_BELARUSIAN", (long) wxLANGUAGE_BELARUSIAN, 0, 0, 0}, | |
17753 | { SWIG_PY_INT, (char *)"LANGUAGE_BENGALI", (long) wxLANGUAGE_BENGALI, 0, 0, 0}, | |
17754 | { SWIG_PY_INT, (char *)"LANGUAGE_BHUTANI", (long) wxLANGUAGE_BHUTANI, 0, 0, 0}, | |
17755 | { SWIG_PY_INT, (char *)"LANGUAGE_BIHARI", (long) wxLANGUAGE_BIHARI, 0, 0, 0}, | |
17756 | { SWIG_PY_INT, (char *)"LANGUAGE_BISLAMA", (long) wxLANGUAGE_BISLAMA, 0, 0, 0}, | |
17757 | { SWIG_PY_INT, (char *)"LANGUAGE_BRETON", (long) wxLANGUAGE_BRETON, 0, 0, 0}, | |
17758 | { SWIG_PY_INT, (char *)"LANGUAGE_BULGARIAN", (long) wxLANGUAGE_BULGARIAN, 0, 0, 0}, | |
17759 | { SWIG_PY_INT, (char *)"LANGUAGE_BURMESE", (long) wxLANGUAGE_BURMESE, 0, 0, 0}, | |
17760 | { SWIG_PY_INT, (char *)"LANGUAGE_CAMBODIAN", (long) wxLANGUAGE_CAMBODIAN, 0, 0, 0}, | |
17761 | { SWIG_PY_INT, (char *)"LANGUAGE_CATALAN", (long) wxLANGUAGE_CATALAN, 0, 0, 0}, | |
17762 | { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE", (long) wxLANGUAGE_CHINESE, 0, 0, 0}, | |
17763 | { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_SIMPLIFIED", (long) wxLANGUAGE_CHINESE_SIMPLIFIED, 0, 0, 0}, | |
17764 | { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_TRADITIONAL", (long) wxLANGUAGE_CHINESE_TRADITIONAL, 0, 0, 0}, | |
17765 | { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_HONGKONG", (long) wxLANGUAGE_CHINESE_HONGKONG, 0, 0, 0}, | |
17766 | { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_MACAU", (long) wxLANGUAGE_CHINESE_MACAU, 0, 0, 0}, | |
17767 | { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_SINGAPORE", (long) wxLANGUAGE_CHINESE_SINGAPORE, 0, 0, 0}, | |
17768 | { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_TAIWAN", (long) wxLANGUAGE_CHINESE_TAIWAN, 0, 0, 0}, | |
17769 | { SWIG_PY_INT, (char *)"LANGUAGE_CORSICAN", (long) wxLANGUAGE_CORSICAN, 0, 0, 0}, | |
17770 | { SWIG_PY_INT, (char *)"LANGUAGE_CROATIAN", (long) wxLANGUAGE_CROATIAN, 0, 0, 0}, | |
17771 | { SWIG_PY_INT, (char *)"LANGUAGE_CZECH", (long) wxLANGUAGE_CZECH, 0, 0, 0}, | |
17772 | { SWIG_PY_INT, (char *)"LANGUAGE_DANISH", (long) wxLANGUAGE_DANISH, 0, 0, 0}, | |
17773 | { SWIG_PY_INT, (char *)"LANGUAGE_DUTCH", (long) wxLANGUAGE_DUTCH, 0, 0, 0}, | |
17774 | { SWIG_PY_INT, (char *)"LANGUAGE_DUTCH_BELGIAN", (long) wxLANGUAGE_DUTCH_BELGIAN, 0, 0, 0}, | |
17775 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH", (long) wxLANGUAGE_ENGLISH, 0, 0, 0}, | |
17776 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_UK", (long) wxLANGUAGE_ENGLISH_UK, 0, 0, 0}, | |
17777 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_US", (long) wxLANGUAGE_ENGLISH_US, 0, 0, 0}, | |
17778 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_AUSTRALIA", (long) wxLANGUAGE_ENGLISH_AUSTRALIA, 0, 0, 0}, | |
17779 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_BELIZE", (long) wxLANGUAGE_ENGLISH_BELIZE, 0, 0, 0}, | |
17780 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_BOTSWANA", (long) wxLANGUAGE_ENGLISH_BOTSWANA, 0, 0, 0}, | |
17781 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_CANADA", (long) wxLANGUAGE_ENGLISH_CANADA, 0, 0, 0}, | |
17782 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_CARIBBEAN", (long) wxLANGUAGE_ENGLISH_CARIBBEAN, 0, 0, 0}, | |
17783 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_DENMARK", (long) wxLANGUAGE_ENGLISH_DENMARK, 0, 0, 0}, | |
17784 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_EIRE", (long) wxLANGUAGE_ENGLISH_EIRE, 0, 0, 0}, | |
17785 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_JAMAICA", (long) wxLANGUAGE_ENGLISH_JAMAICA, 0, 0, 0}, | |
17786 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_NEW_ZEALAND", (long) wxLANGUAGE_ENGLISH_NEW_ZEALAND, 0, 0, 0}, | |
17787 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_PHILIPPINES", (long) wxLANGUAGE_ENGLISH_PHILIPPINES, 0, 0, 0}, | |
17788 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_SOUTH_AFRICA", (long) wxLANGUAGE_ENGLISH_SOUTH_AFRICA, 0, 0, 0}, | |
17789 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_TRINIDAD", (long) wxLANGUAGE_ENGLISH_TRINIDAD, 0, 0, 0}, | |
17790 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_ZIMBABWE", (long) wxLANGUAGE_ENGLISH_ZIMBABWE, 0, 0, 0}, | |
17791 | { SWIG_PY_INT, (char *)"LANGUAGE_ESPERANTO", (long) wxLANGUAGE_ESPERANTO, 0, 0, 0}, | |
17792 | { SWIG_PY_INT, (char *)"LANGUAGE_ESTONIAN", (long) wxLANGUAGE_ESTONIAN, 0, 0, 0}, | |
17793 | { SWIG_PY_INT, (char *)"LANGUAGE_FAEROESE", (long) wxLANGUAGE_FAEROESE, 0, 0, 0}, | |
17794 | { SWIG_PY_INT, (char *)"LANGUAGE_FARSI", (long) wxLANGUAGE_FARSI, 0, 0, 0}, | |
17795 | { SWIG_PY_INT, (char *)"LANGUAGE_FIJI", (long) wxLANGUAGE_FIJI, 0, 0, 0}, | |
17796 | { SWIG_PY_INT, (char *)"LANGUAGE_FINNISH", (long) wxLANGUAGE_FINNISH, 0, 0, 0}, | |
17797 | { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH", (long) wxLANGUAGE_FRENCH, 0, 0, 0}, | |
17798 | { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_BELGIAN", (long) wxLANGUAGE_FRENCH_BELGIAN, 0, 0, 0}, | |
17799 | { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_CANADIAN", (long) wxLANGUAGE_FRENCH_CANADIAN, 0, 0, 0}, | |
17800 | { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_LUXEMBOURG", (long) wxLANGUAGE_FRENCH_LUXEMBOURG, 0, 0, 0}, | |
17801 | { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_MONACO", (long) wxLANGUAGE_FRENCH_MONACO, 0, 0, 0}, | |
17802 | { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_SWISS", (long) wxLANGUAGE_FRENCH_SWISS, 0, 0, 0}, | |
17803 | { SWIG_PY_INT, (char *)"LANGUAGE_FRISIAN", (long) wxLANGUAGE_FRISIAN, 0, 0, 0}, | |
17804 | { SWIG_PY_INT, (char *)"LANGUAGE_GALICIAN", (long) wxLANGUAGE_GALICIAN, 0, 0, 0}, | |
17805 | { SWIG_PY_INT, (char *)"LANGUAGE_GEORGIAN", (long) wxLANGUAGE_GEORGIAN, 0, 0, 0}, | |
17806 | { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN", (long) wxLANGUAGE_GERMAN, 0, 0, 0}, | |
17807 | { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_AUSTRIAN", (long) wxLANGUAGE_GERMAN_AUSTRIAN, 0, 0, 0}, | |
17808 | { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_BELGIUM", (long) wxLANGUAGE_GERMAN_BELGIUM, 0, 0, 0}, | |
17809 | { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_LIECHTENSTEIN", (long) wxLANGUAGE_GERMAN_LIECHTENSTEIN, 0, 0, 0}, | |
17810 | { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_LUXEMBOURG", (long) wxLANGUAGE_GERMAN_LUXEMBOURG, 0, 0, 0}, | |
17811 | { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_SWISS", (long) wxLANGUAGE_GERMAN_SWISS, 0, 0, 0}, | |
17812 | { SWIG_PY_INT, (char *)"LANGUAGE_GREEK", (long) wxLANGUAGE_GREEK, 0, 0, 0}, | |
17813 | { SWIG_PY_INT, (char *)"LANGUAGE_GREENLANDIC", (long) wxLANGUAGE_GREENLANDIC, 0, 0, 0}, | |
17814 | { SWIG_PY_INT, (char *)"LANGUAGE_GUARANI", (long) wxLANGUAGE_GUARANI, 0, 0, 0}, | |
17815 | { SWIG_PY_INT, (char *)"LANGUAGE_GUJARATI", (long) wxLANGUAGE_GUJARATI, 0, 0, 0}, | |
17816 | { SWIG_PY_INT, (char *)"LANGUAGE_HAUSA", (long) wxLANGUAGE_HAUSA, 0, 0, 0}, | |
17817 | { SWIG_PY_INT, (char *)"LANGUAGE_HEBREW", (long) wxLANGUAGE_HEBREW, 0, 0, 0}, | |
17818 | { SWIG_PY_INT, (char *)"LANGUAGE_HINDI", (long) wxLANGUAGE_HINDI, 0, 0, 0}, | |
17819 | { SWIG_PY_INT, (char *)"LANGUAGE_HUNGARIAN", (long) wxLANGUAGE_HUNGARIAN, 0, 0, 0}, | |
17820 | { SWIG_PY_INT, (char *)"LANGUAGE_ICELANDIC", (long) wxLANGUAGE_ICELANDIC, 0, 0, 0}, | |
17821 | { SWIG_PY_INT, (char *)"LANGUAGE_INDONESIAN", (long) wxLANGUAGE_INDONESIAN, 0, 0, 0}, | |
17822 | { SWIG_PY_INT, (char *)"LANGUAGE_INTERLINGUA", (long) wxLANGUAGE_INTERLINGUA, 0, 0, 0}, | |
17823 | { SWIG_PY_INT, (char *)"LANGUAGE_INTERLINGUE", (long) wxLANGUAGE_INTERLINGUE, 0, 0, 0}, | |
17824 | { SWIG_PY_INT, (char *)"LANGUAGE_INUKTITUT", (long) wxLANGUAGE_INUKTITUT, 0, 0, 0}, | |
17825 | { SWIG_PY_INT, (char *)"LANGUAGE_INUPIAK", (long) wxLANGUAGE_INUPIAK, 0, 0, 0}, | |
17826 | { SWIG_PY_INT, (char *)"LANGUAGE_IRISH", (long) wxLANGUAGE_IRISH, 0, 0, 0}, | |
17827 | { SWIG_PY_INT, (char *)"LANGUAGE_ITALIAN", (long) wxLANGUAGE_ITALIAN, 0, 0, 0}, | |
17828 | { SWIG_PY_INT, (char *)"LANGUAGE_ITALIAN_SWISS", (long) wxLANGUAGE_ITALIAN_SWISS, 0, 0, 0}, | |
17829 | { SWIG_PY_INT, (char *)"LANGUAGE_JAPANESE", (long) wxLANGUAGE_JAPANESE, 0, 0, 0}, | |
17830 | { SWIG_PY_INT, (char *)"LANGUAGE_JAVANESE", (long) wxLANGUAGE_JAVANESE, 0, 0, 0}, | |
17831 | { SWIG_PY_INT, (char *)"LANGUAGE_KANNADA", (long) wxLANGUAGE_KANNADA, 0, 0, 0}, | |
17832 | { SWIG_PY_INT, (char *)"LANGUAGE_KASHMIRI", (long) wxLANGUAGE_KASHMIRI, 0, 0, 0}, | |
17833 | { SWIG_PY_INT, (char *)"LANGUAGE_KASHMIRI_INDIA", (long) wxLANGUAGE_KASHMIRI_INDIA, 0, 0, 0}, | |
17834 | { SWIG_PY_INT, (char *)"LANGUAGE_KAZAKH", (long) wxLANGUAGE_KAZAKH, 0, 0, 0}, | |
17835 | { SWIG_PY_INT, (char *)"LANGUAGE_KERNEWEK", (long) wxLANGUAGE_KERNEWEK, 0, 0, 0}, | |
17836 | { SWIG_PY_INT, (char *)"LANGUAGE_KINYARWANDA", (long) wxLANGUAGE_KINYARWANDA, 0, 0, 0}, | |
17837 | { SWIG_PY_INT, (char *)"LANGUAGE_KIRGHIZ", (long) wxLANGUAGE_KIRGHIZ, 0, 0, 0}, | |
17838 | { SWIG_PY_INT, (char *)"LANGUAGE_KIRUNDI", (long) wxLANGUAGE_KIRUNDI, 0, 0, 0}, | |
17839 | { SWIG_PY_INT, (char *)"LANGUAGE_KONKANI", (long) wxLANGUAGE_KONKANI, 0, 0, 0}, | |
17840 | { SWIG_PY_INT, (char *)"LANGUAGE_KOREAN", (long) wxLANGUAGE_KOREAN, 0, 0, 0}, | |
17841 | { SWIG_PY_INT, (char *)"LANGUAGE_KURDISH", (long) wxLANGUAGE_KURDISH, 0, 0, 0}, | |
17842 | { SWIG_PY_INT, (char *)"LANGUAGE_LAOTHIAN", (long) wxLANGUAGE_LAOTHIAN, 0, 0, 0}, | |
17843 | { SWIG_PY_INT, (char *)"LANGUAGE_LATIN", (long) wxLANGUAGE_LATIN, 0, 0, 0}, | |
17844 | { SWIG_PY_INT, (char *)"LANGUAGE_LATVIAN", (long) wxLANGUAGE_LATVIAN, 0, 0, 0}, | |
17845 | { SWIG_PY_INT, (char *)"LANGUAGE_LINGALA", (long) wxLANGUAGE_LINGALA, 0, 0, 0}, | |
17846 | { SWIG_PY_INT, (char *)"LANGUAGE_LITHUANIAN", (long) wxLANGUAGE_LITHUANIAN, 0, 0, 0}, | |
17847 | { SWIG_PY_INT, (char *)"LANGUAGE_MACEDONIAN", (long) wxLANGUAGE_MACEDONIAN, 0, 0, 0}, | |
17848 | { SWIG_PY_INT, (char *)"LANGUAGE_MALAGASY", (long) wxLANGUAGE_MALAGASY, 0, 0, 0}, | |
17849 | { SWIG_PY_INT, (char *)"LANGUAGE_MALAY", (long) wxLANGUAGE_MALAY, 0, 0, 0}, | |
17850 | { SWIG_PY_INT, (char *)"LANGUAGE_MALAYALAM", (long) wxLANGUAGE_MALAYALAM, 0, 0, 0}, | |
17851 | { SWIG_PY_INT, (char *)"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", (long) wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM, 0, 0, 0}, | |
17852 | { SWIG_PY_INT, (char *)"LANGUAGE_MALAY_MALAYSIA", (long) wxLANGUAGE_MALAY_MALAYSIA, 0, 0, 0}, | |
17853 | { SWIG_PY_INT, (char *)"LANGUAGE_MALTESE", (long) wxLANGUAGE_MALTESE, 0, 0, 0}, | |
17854 | { SWIG_PY_INT, (char *)"LANGUAGE_MANIPURI", (long) wxLANGUAGE_MANIPURI, 0, 0, 0}, | |
17855 | { SWIG_PY_INT, (char *)"LANGUAGE_MAORI", (long) wxLANGUAGE_MAORI, 0, 0, 0}, | |
17856 | { SWIG_PY_INT, (char *)"LANGUAGE_MARATHI", (long) wxLANGUAGE_MARATHI, 0, 0, 0}, | |
17857 | { SWIG_PY_INT, (char *)"LANGUAGE_MOLDAVIAN", (long) wxLANGUAGE_MOLDAVIAN, 0, 0, 0}, | |
17858 | { SWIG_PY_INT, (char *)"LANGUAGE_MONGOLIAN", (long) wxLANGUAGE_MONGOLIAN, 0, 0, 0}, | |
17859 | { SWIG_PY_INT, (char *)"LANGUAGE_NAURU", (long) wxLANGUAGE_NAURU, 0, 0, 0}, | |
17860 | { SWIG_PY_INT, (char *)"LANGUAGE_NEPALI", (long) wxLANGUAGE_NEPALI, 0, 0, 0}, | |
17861 | { SWIG_PY_INT, (char *)"LANGUAGE_NEPALI_INDIA", (long) wxLANGUAGE_NEPALI_INDIA, 0, 0, 0}, | |
17862 | { SWIG_PY_INT, (char *)"LANGUAGE_NORWEGIAN_BOKMAL", (long) wxLANGUAGE_NORWEGIAN_BOKMAL, 0, 0, 0}, | |
17863 | { SWIG_PY_INT, (char *)"LANGUAGE_NORWEGIAN_NYNORSK", (long) wxLANGUAGE_NORWEGIAN_NYNORSK, 0, 0, 0}, | |
17864 | { SWIG_PY_INT, (char *)"LANGUAGE_OCCITAN", (long) wxLANGUAGE_OCCITAN, 0, 0, 0}, | |
17865 | { SWIG_PY_INT, (char *)"LANGUAGE_ORIYA", (long) wxLANGUAGE_ORIYA, 0, 0, 0}, | |
17866 | { SWIG_PY_INT, (char *)"LANGUAGE_OROMO", (long) wxLANGUAGE_OROMO, 0, 0, 0}, | |
17867 | { SWIG_PY_INT, (char *)"LANGUAGE_PASHTO", (long) wxLANGUAGE_PASHTO, 0, 0, 0}, | |
17868 | { SWIG_PY_INT, (char *)"LANGUAGE_POLISH", (long) wxLANGUAGE_POLISH, 0, 0, 0}, | |
17869 | { SWIG_PY_INT, (char *)"LANGUAGE_PORTUGUESE", (long) wxLANGUAGE_PORTUGUESE, 0, 0, 0}, | |
17870 | { SWIG_PY_INT, (char *)"LANGUAGE_PORTUGUESE_BRAZILIAN", (long) wxLANGUAGE_PORTUGUESE_BRAZILIAN, 0, 0, 0}, | |
17871 | { SWIG_PY_INT, (char *)"LANGUAGE_PUNJABI", (long) wxLANGUAGE_PUNJABI, 0, 0, 0}, | |
17872 | { SWIG_PY_INT, (char *)"LANGUAGE_QUECHUA", (long) wxLANGUAGE_QUECHUA, 0, 0, 0}, | |
17873 | { SWIG_PY_INT, (char *)"LANGUAGE_RHAETO_ROMANCE", (long) wxLANGUAGE_RHAETO_ROMANCE, 0, 0, 0}, | |
17874 | { SWIG_PY_INT, (char *)"LANGUAGE_ROMANIAN", (long) wxLANGUAGE_ROMANIAN, 0, 0, 0}, | |
17875 | { SWIG_PY_INT, (char *)"LANGUAGE_RUSSIAN", (long) wxLANGUAGE_RUSSIAN, 0, 0, 0}, | |
17876 | { SWIG_PY_INT, (char *)"LANGUAGE_RUSSIAN_UKRAINE", (long) wxLANGUAGE_RUSSIAN_UKRAINE, 0, 0, 0}, | |
17877 | { SWIG_PY_INT, (char *)"LANGUAGE_SAMOAN", (long) wxLANGUAGE_SAMOAN, 0, 0, 0}, | |
17878 | { SWIG_PY_INT, (char *)"LANGUAGE_SANGHO", (long) wxLANGUAGE_SANGHO, 0, 0, 0}, | |
17879 | { SWIG_PY_INT, (char *)"LANGUAGE_SANSKRIT", (long) wxLANGUAGE_SANSKRIT, 0, 0, 0}, | |
17880 | { SWIG_PY_INT, (char *)"LANGUAGE_SCOTS_GAELIC", (long) wxLANGUAGE_SCOTS_GAELIC, 0, 0, 0}, | |
17881 | { SWIG_PY_INT, (char *)"LANGUAGE_SERBIAN", (long) wxLANGUAGE_SERBIAN, 0, 0, 0}, | |
17882 | { SWIG_PY_INT, (char *)"LANGUAGE_SERBIAN_CYRILLIC", (long) wxLANGUAGE_SERBIAN_CYRILLIC, 0, 0, 0}, | |
17883 | { SWIG_PY_INT, (char *)"LANGUAGE_SERBIAN_LATIN", (long) wxLANGUAGE_SERBIAN_LATIN, 0, 0, 0}, | |
17884 | { SWIG_PY_INT, (char *)"LANGUAGE_SERBO_CROATIAN", (long) wxLANGUAGE_SERBO_CROATIAN, 0, 0, 0}, | |
17885 | { SWIG_PY_INT, (char *)"LANGUAGE_SESOTHO", (long) wxLANGUAGE_SESOTHO, 0, 0, 0}, | |
17886 | { SWIG_PY_INT, (char *)"LANGUAGE_SETSWANA", (long) wxLANGUAGE_SETSWANA, 0, 0, 0}, | |
17887 | { SWIG_PY_INT, (char *)"LANGUAGE_SHONA", (long) wxLANGUAGE_SHONA, 0, 0, 0}, | |
17888 | { SWIG_PY_INT, (char *)"LANGUAGE_SINDHI", (long) wxLANGUAGE_SINDHI, 0, 0, 0}, | |
17889 | { SWIG_PY_INT, (char *)"LANGUAGE_SINHALESE", (long) wxLANGUAGE_SINHALESE, 0, 0, 0}, | |
17890 | { SWIG_PY_INT, (char *)"LANGUAGE_SISWATI", (long) wxLANGUAGE_SISWATI, 0, 0, 0}, | |
17891 | { SWIG_PY_INT, (char *)"LANGUAGE_SLOVAK", (long) wxLANGUAGE_SLOVAK, 0, 0, 0}, | |
17892 | { SWIG_PY_INT, (char *)"LANGUAGE_SLOVENIAN", (long) wxLANGUAGE_SLOVENIAN, 0, 0, 0}, | |
17893 | { SWIG_PY_INT, (char *)"LANGUAGE_SOMALI", (long) wxLANGUAGE_SOMALI, 0, 0, 0}, | |
17894 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH", (long) wxLANGUAGE_SPANISH, 0, 0, 0}, | |
17895 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_ARGENTINA", (long) wxLANGUAGE_SPANISH_ARGENTINA, 0, 0, 0}, | |
17896 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_BOLIVIA", (long) wxLANGUAGE_SPANISH_BOLIVIA, 0, 0, 0}, | |
17897 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_CHILE", (long) wxLANGUAGE_SPANISH_CHILE, 0, 0, 0}, | |
17898 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_COLOMBIA", (long) wxLANGUAGE_SPANISH_COLOMBIA, 0, 0, 0}, | |
17899 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_COSTA_RICA", (long) wxLANGUAGE_SPANISH_COSTA_RICA, 0, 0, 0}, | |
17900 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", (long) wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC, 0, 0, 0}, | |
17901 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_ECUADOR", (long) wxLANGUAGE_SPANISH_ECUADOR, 0, 0, 0}, | |
17902 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_EL_SALVADOR", (long) wxLANGUAGE_SPANISH_EL_SALVADOR, 0, 0, 0}, | |
17903 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_GUATEMALA", (long) wxLANGUAGE_SPANISH_GUATEMALA, 0, 0, 0}, | |
17904 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_HONDURAS", (long) wxLANGUAGE_SPANISH_HONDURAS, 0, 0, 0}, | |
17905 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_MEXICAN", (long) wxLANGUAGE_SPANISH_MEXICAN, 0, 0, 0}, | |
17906 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_MODERN", (long) wxLANGUAGE_SPANISH_MODERN, 0, 0, 0}, | |
17907 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_NICARAGUA", (long) wxLANGUAGE_SPANISH_NICARAGUA, 0, 0, 0}, | |
17908 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PANAMA", (long) wxLANGUAGE_SPANISH_PANAMA, 0, 0, 0}, | |
17909 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PARAGUAY", (long) wxLANGUAGE_SPANISH_PARAGUAY, 0, 0, 0}, | |
17910 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PERU", (long) wxLANGUAGE_SPANISH_PERU, 0, 0, 0}, | |
17911 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PUERTO_RICO", (long) wxLANGUAGE_SPANISH_PUERTO_RICO, 0, 0, 0}, | |
17912 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_URUGUAY", (long) wxLANGUAGE_SPANISH_URUGUAY, 0, 0, 0}, | |
17913 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_US", (long) wxLANGUAGE_SPANISH_US, 0, 0, 0}, | |
17914 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_VENEZUELA", (long) wxLANGUAGE_SPANISH_VENEZUELA, 0, 0, 0}, | |
17915 | { SWIG_PY_INT, (char *)"LANGUAGE_SUNDANESE", (long) wxLANGUAGE_SUNDANESE, 0, 0, 0}, | |
17916 | { SWIG_PY_INT, (char *)"LANGUAGE_SWAHILI", (long) wxLANGUAGE_SWAHILI, 0, 0, 0}, | |
17917 | { SWIG_PY_INT, (char *)"LANGUAGE_SWEDISH", (long) wxLANGUAGE_SWEDISH, 0, 0, 0}, | |
17918 | { SWIG_PY_INT, (char *)"LANGUAGE_SWEDISH_FINLAND", (long) wxLANGUAGE_SWEDISH_FINLAND, 0, 0, 0}, | |
17919 | { SWIG_PY_INT, (char *)"LANGUAGE_TAGALOG", (long) wxLANGUAGE_TAGALOG, 0, 0, 0}, | |
17920 | { SWIG_PY_INT, (char *)"LANGUAGE_TAJIK", (long) wxLANGUAGE_TAJIK, 0, 0, 0}, | |
17921 | { SWIG_PY_INT, (char *)"LANGUAGE_TAMIL", (long) wxLANGUAGE_TAMIL, 0, 0, 0}, | |
17922 | { SWIG_PY_INT, (char *)"LANGUAGE_TATAR", (long) wxLANGUAGE_TATAR, 0, 0, 0}, | |
17923 | { SWIG_PY_INT, (char *)"LANGUAGE_TELUGU", (long) wxLANGUAGE_TELUGU, 0, 0, 0}, | |
17924 | { SWIG_PY_INT, (char *)"LANGUAGE_THAI", (long) wxLANGUAGE_THAI, 0, 0, 0}, | |
17925 | { SWIG_PY_INT, (char *)"LANGUAGE_TIBETAN", (long) wxLANGUAGE_TIBETAN, 0, 0, 0}, | |
17926 | { SWIG_PY_INT, (char *)"LANGUAGE_TIGRINYA", (long) wxLANGUAGE_TIGRINYA, 0, 0, 0}, | |
17927 | { SWIG_PY_INT, (char *)"LANGUAGE_TONGA", (long) wxLANGUAGE_TONGA, 0, 0, 0}, | |
17928 | { SWIG_PY_INT, (char *)"LANGUAGE_TSONGA", (long) wxLANGUAGE_TSONGA, 0, 0, 0}, | |
17929 | { SWIG_PY_INT, (char *)"LANGUAGE_TURKISH", (long) wxLANGUAGE_TURKISH, 0, 0, 0}, | |
17930 | { SWIG_PY_INT, (char *)"LANGUAGE_TURKMEN", (long) wxLANGUAGE_TURKMEN, 0, 0, 0}, | |
17931 | { SWIG_PY_INT, (char *)"LANGUAGE_TWI", (long) wxLANGUAGE_TWI, 0, 0, 0}, | |
17932 | { SWIG_PY_INT, (char *)"LANGUAGE_UIGHUR", (long) wxLANGUAGE_UIGHUR, 0, 0, 0}, | |
17933 | { SWIG_PY_INT, (char *)"LANGUAGE_UKRAINIAN", (long) wxLANGUAGE_UKRAINIAN, 0, 0, 0}, | |
17934 | { SWIG_PY_INT, (char *)"LANGUAGE_URDU", (long) wxLANGUAGE_URDU, 0, 0, 0}, | |
17935 | { SWIG_PY_INT, (char *)"LANGUAGE_URDU_INDIA", (long) wxLANGUAGE_URDU_INDIA, 0, 0, 0}, | |
17936 | { SWIG_PY_INT, (char *)"LANGUAGE_URDU_PAKISTAN", (long) wxLANGUAGE_URDU_PAKISTAN, 0, 0, 0}, | |
17937 | { SWIG_PY_INT, (char *)"LANGUAGE_UZBEK", (long) wxLANGUAGE_UZBEK, 0, 0, 0}, | |
17938 | { SWIG_PY_INT, (char *)"LANGUAGE_UZBEK_CYRILLIC", (long) wxLANGUAGE_UZBEK_CYRILLIC, 0, 0, 0}, | |
17939 | { SWIG_PY_INT, (char *)"LANGUAGE_UZBEK_LATIN", (long) wxLANGUAGE_UZBEK_LATIN, 0, 0, 0}, | |
17940 | { SWIG_PY_INT, (char *)"LANGUAGE_VIETNAMESE", (long) wxLANGUAGE_VIETNAMESE, 0, 0, 0}, | |
17941 | { SWIG_PY_INT, (char *)"LANGUAGE_VOLAPUK", (long) wxLANGUAGE_VOLAPUK, 0, 0, 0}, | |
17942 | { SWIG_PY_INT, (char *)"LANGUAGE_WELSH", (long) wxLANGUAGE_WELSH, 0, 0, 0}, | |
17943 | { SWIG_PY_INT, (char *)"LANGUAGE_WOLOF", (long) wxLANGUAGE_WOLOF, 0, 0, 0}, | |
17944 | { SWIG_PY_INT, (char *)"LANGUAGE_XHOSA", (long) wxLANGUAGE_XHOSA, 0, 0, 0}, | |
17945 | { SWIG_PY_INT, (char *)"LANGUAGE_YIDDISH", (long) wxLANGUAGE_YIDDISH, 0, 0, 0}, | |
17946 | { SWIG_PY_INT, (char *)"LANGUAGE_YORUBA", (long) wxLANGUAGE_YORUBA, 0, 0, 0}, | |
17947 | { SWIG_PY_INT, (char *)"LANGUAGE_ZHUANG", (long) wxLANGUAGE_ZHUANG, 0, 0, 0}, | |
17948 | { SWIG_PY_INT, (char *)"LANGUAGE_ZULU", (long) wxLANGUAGE_ZULU, 0, 0, 0}, | |
17949 | { SWIG_PY_INT, (char *)"LANGUAGE_USER_DEFINED", (long) wxLANGUAGE_USER_DEFINED, 0, 0, 0}, | |
17950 | { SWIG_PY_INT, (char *)"LOCALE_CAT_NUMBER", (long) wxLOCALE_CAT_NUMBER, 0, 0, 0}, | |
17951 | { SWIG_PY_INT, (char *)"LOCALE_CAT_DATE", (long) wxLOCALE_CAT_DATE, 0, 0, 0}, | |
17952 | { SWIG_PY_INT, (char *)"LOCALE_CAT_MONEY", (long) wxLOCALE_CAT_MONEY, 0, 0, 0}, | |
17953 | { SWIG_PY_INT, (char *)"LOCALE_CAT_MAX", (long) wxLOCALE_CAT_MAX, 0, 0, 0}, | |
17954 | { SWIG_PY_INT, (char *)"LOCALE_THOUSANDS_SEP", (long) wxLOCALE_THOUSANDS_SEP, 0, 0, 0}, | |
17955 | { SWIG_PY_INT, (char *)"LOCALE_DECIMAL_POINT", (long) wxLOCALE_DECIMAL_POINT, 0, 0, 0}, | |
17956 | { SWIG_PY_INT, (char *)"LOCALE_LOAD_DEFAULT", (long) wxLOCALE_LOAD_DEFAULT, 0, 0, 0}, | |
17957 | { SWIG_PY_INT, (char *)"LOCALE_CONV_ENCODING", (long) wxLOCALE_CONV_ENCODING, 0, 0, 0}, | |
17958 | { SWIG_PY_INT, (char *)"CONVERT_STRICT", (long) wxCONVERT_STRICT, 0, 0, 0}, | |
17959 | { SWIG_PY_INT, (char *)"CONVERT_SUBSTITUTE", (long) wxCONVERT_SUBSTITUTE, 0, 0, 0}, | |
17960 | { SWIG_PY_INT, (char *)"PLATFORM_CURRENT", (long) wxPLATFORM_CURRENT, 0, 0, 0}, | |
17961 | { SWIG_PY_INT, (char *)"PLATFORM_UNIX", (long) wxPLATFORM_UNIX, 0, 0, 0}, | |
17962 | { SWIG_PY_INT, (char *)"PLATFORM_WINDOWS", (long) wxPLATFORM_WINDOWS, 0, 0, 0}, | |
17963 | { SWIG_PY_INT, (char *)"PLATFORM_OS2", (long) wxPLATFORM_OS2, 0, 0, 0}, | |
17964 | { SWIG_PY_INT, (char *)"PLATFORM_MAC", (long) wxPLATFORM_MAC, 0, 0, 0}, | |
17965 | { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_NORMAL", (long) wxIMAGELIST_DRAW_NORMAL, 0, 0, 0}, | |
17966 | { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_TRANSPARENT", (long) wxIMAGELIST_DRAW_TRANSPARENT, 0, 0, 0}, | |
17967 | { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_SELECTED", (long) wxIMAGELIST_DRAW_SELECTED, 0, 0, 0}, | |
17968 | { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_FOCUSED", (long) wxIMAGELIST_DRAW_FOCUSED, 0, 0, 0}, | |
17969 | { SWIG_PY_INT, (char *)"IMAGE_LIST_NORMAL", (long) wxIMAGE_LIST_NORMAL, 0, 0, 0}, | |
17970 | { SWIG_PY_INT, (char *)"IMAGE_LIST_SMALL", (long) wxIMAGE_LIST_SMALL, 0, 0, 0}, | |
17971 | { SWIG_PY_INT, (char *)"IMAGE_LIST_STATE", (long) wxIMAGE_LIST_STATE, 0, 0, 0}, | |
17972 | {0}}; | |
17973 | ||
17974 | #ifdef __cplusplus | |
17975 | } | |
17976 | #endif | |
17977 | ||
17978 | #ifdef __cplusplus | |
17979 | extern "C" | |
17980 | #endif | |
17981 | SWIGEXPORT(void) SWIG_init(void) { | |
17982 | static PyObject *SWIG_globals = 0; | |
17983 | static int typeinit = 0; | |
17984 | PyObject *m, *d; | |
17985 | int i; | |
17986 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
17987 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
17988 | d = PyModule_GetDict(m); | |
17989 | ||
17990 | if (!typeinit) { | |
17991 | for (i = 0; swig_types_initial[i]; i++) { | |
17992 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
17993 | } | |
17994 | typeinit = 1; | |
17995 | } | |
17996 | SWIG_InstallConstants(d,swig_const_table); | |
17997 | ||
17998 | ||
17999 | wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator"); | |
18000 | ||
18001 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
18002 | SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set); | |
18003 | SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set); | |
18004 | SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set); | |
18005 | SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set); | |
18006 | SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set); | |
18007 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set); | |
18008 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set); | |
18009 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set); | |
18010 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set); | |
18011 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set); | |
18012 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set); | |
18013 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set); | |
18014 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set); | |
18015 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set); | |
18016 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set); | |
18017 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set); | |
18018 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set); | |
18019 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set); | |
18020 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set); | |
18021 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set); | |
18022 | SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set); | |
18023 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set); | |
18024 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set); | |
18025 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set); | |
18026 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set); | |
18027 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set); | |
18028 | SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set); | |
18029 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set); | |
18030 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set); | |
18031 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set); | |
18032 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set); | |
18033 | SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set); | |
18034 | SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set); | |
18035 | SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set); | |
18036 | SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set); | |
18037 | SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set); | |
18038 | SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set); | |
18039 | SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set); | |
18040 | SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set); | |
18041 | SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set); | |
18042 | SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set); | |
18043 | SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set); | |
18044 | SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set); | |
18045 | SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set); | |
18046 | SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set); | |
18047 | SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set); | |
44127b65 RD |
18048 | |
18049 | // Work around a chicken/egg problem in drawlist.cpp | |
18050 | wxPyDrawList_SetAPIPtr(); | |
18051 | ||
d14a1e28 RD |
18052 | } |
18053 |