]>
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 | |
0f774bef RD |
48 | #define SWIG_PackData SWIG_Python_PackData |
49 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
d14a1e28 RD |
50 | |
51 | /*********************************************************************** | |
52 | * common.swg for wxPython | |
53 | * | |
54 | * Include only the function prototypes and such from SWIG's common.swg, | |
55 | * but not the runtime functions themselves. This helps keep the | |
56 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
57 | * anyway. | |
58 | * | |
59 | ************************************************************************/ | |
60 | ||
61 | #include <string.h> | |
62 | ||
0f774bef RD |
63 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) |
64 | # if defined(_MSC_VER) || defined(__GNUC__) | |
65 | # if defined(STATIC_LINKED) | |
66 | # define SWIGEXPORT(a) a | |
67 | # define SWIGIMPORT(a) extern a | |
68 | # else | |
69 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
70 | # define SWIGIMPORT(a) extern a | |
71 | # endif | |
72 | # else | |
73 | # if defined(__BORLANDC__) | |
74 | # define SWIGEXPORT(a) a _export | |
75 | # define SWIGIMPORT(a) a _export | |
76 | # else | |
77 | # define SWIGEXPORT(a) a | |
78 | # define SWIGIMPORT(a) a | |
79 | # endif | |
80 | # endif | |
d14a1e28 | 81 | #else |
0f774bef RD |
82 | # define SWIGEXPORT(a) a |
83 | # define SWIGIMPORT(a) a | |
d14a1e28 RD |
84 | #endif |
85 | ||
86 | #ifdef SWIG_GLOBAL | |
0f774bef | 87 | # define SWIGRUNTIME(a) SWIGEXPORT(a) |
d14a1e28 | 88 | #else |
0f774bef | 89 | # define SWIGRUNTIME(a) static a |
d14a1e28 RD |
90 | #endif |
91 | ||
d14a1e28 RD |
92 | #ifdef __cplusplus |
93 | extern "C" { | |
94 | #endif | |
95 | ||
96 | typedef void *(*swig_converter_func)(void *); | |
97 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
98 | ||
99 | typedef struct swig_type_info { | |
0f774bef | 100 | const char *name; |
d14a1e28 RD |
101 | swig_converter_func converter; |
102 | const char *str; | |
0f774bef | 103 | void *clientdata; |
d14a1e28 RD |
104 | swig_dycast_func dcast; |
105 | struct swig_type_info *next; | |
106 | struct swig_type_info *prev; | |
107 | } swig_type_info; | |
108 | ||
109 | ||
110 | SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); | |
111 | SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); | |
112 | SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); | |
113 | SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); | |
114 | SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); | |
115 | SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); | |
116 | SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); | |
0f774bef RD |
117 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); |
118 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
d14a1e28 RD |
119 | |
120 | ||
121 | #ifdef __cplusplus | |
122 | } | |
423f194a | 123 | |
d14a1e28 RD |
124 | #endif |
125 | ||
0f774bef | 126 | |
d14a1e28 RD |
127 | /*********************************************************************** |
128 | * pyrun.swg for wxPython | |
129 | * | |
130 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
131 | * but not the runtime functions themselves. This helps keep the | |
132 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
133 | * anyway. | |
134 | * | |
135 | ************************************************************************/ | |
136 | ||
d14a1e28 RD |
137 | #include "Python.h" |
138 | ||
139 | #ifdef __cplusplus | |
140 | extern "C" { | |
141 | #endif | |
142 | ||
143 | #define SWIG_PY_INT 1 | |
144 | #define SWIG_PY_FLOAT 2 | |
145 | #define SWIG_PY_STRING 3 | |
146 | #define SWIG_PY_POINTER 4 | |
147 | #define SWIG_PY_BINARY 5 | |
148 | ||
149 | /* Flags for pointer conversion */ | |
150 | ||
151 | #define SWIG_POINTER_EXCEPTION 0x1 | |
152 | #define SWIG_POINTER_DISOWN 0x2 | |
153 | ||
154 | /* Exception handling in wrappers */ | |
155 | #define SWIG_fail goto fail | |
156 | ||
157 | /* Constant information structure */ | |
158 | typedef struct swig_const_info { | |
159 | int type; | |
160 | char *name; | |
161 | long lvalue; | |
162 | double dvalue; | |
163 | void *pvalue; | |
164 | swig_type_info **ptype; | |
165 | } swig_const_info; | |
166 | ||
d14a1e28 RD |
167 | /* Common SWIG API */ |
168 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
169 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
170 | #define SWIG_NewPointerObj(p, type, flags) \ | |
171 | SWIG_Python_NewPointerObj(p, type, flags) | |
172 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
173 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
174 | ||
175 | /* Python-specific SWIG API */ | |
176 | #define SWIG_newvarlink() \ | |
177 | SWIG_Python_newvarlink() | |
178 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ | |
179 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
180 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ | |
181 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
d14a1e28 RD |
182 | #define SWIG_NewPackedObj(ptr, sz, type) \ |
183 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
184 | #define SWIG_InstallConstants(d, constants) \ | |
185 | SWIG_Python_InstallConstants(d, constants) | |
186 | ||
187 | ||
0f774bef RD |
188 | SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); |
189 | SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
190 | SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
191 | SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); | |
192 | SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
193 | SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
194 | SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
195 | SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
d14a1e28 | 196 | |
d14a1e28 RD |
197 | |
198 | ||
199 | /* Contract support */ | |
200 | ||
423f194a | 201 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else |
d14a1e28 | 202 | |
d14a1e28 RD |
203 | #ifdef __cplusplus |
204 | } | |
205 | #endif | |
206 | ||
207 | ||
208 | ||
209 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
210 | ||
211 | #define SWIGTYPE_p_wxPostScriptDC swig_types[0] | |
423f194a RD |
212 | #define SWIGTYPE_p_wxBrush swig_types[1] |
213 | #define SWIGTYPE_p_wxColour swig_types[2] | |
214 | #define SWIGTYPE_p_wxDC swig_types[3] | |
215 | #define SWIGTYPE_p_wxMirrorDC swig_types[4] | |
216 | #define SWIGTYPE_p_byte swig_types[5] | |
217 | #define SWIGTYPE_p_wxPyFontEnumerator swig_types[6] | |
218 | #define SWIGTYPE_p_wxIconLocation swig_types[7] | |
219 | #define SWIGTYPE_p_wxImage swig_types[8] | |
220 | #define SWIGTYPE_p_wxMetaFileDC swig_types[9] | |
221 | #define SWIGTYPE_p_wxMask swig_types[10] | |
222 | #define SWIGTYPE_p_wxFont swig_types[11] | |
223 | #define SWIGTYPE_p_wxWindow swig_types[12] | |
224 | #define SWIGTYPE_p_wxSize swig_types[13] | |
225 | #define SWIGTYPE_p_double swig_types[14] | |
226 | #define SWIGTYPE_p_wxMemoryDC swig_types[15] | |
227 | #define SWIGTYPE_p_wxFontMapper swig_types[16] | |
228 | #define SWIGTYPE_p_wxEffects swig_types[17] | |
229 | #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[18] | |
230 | #define SWIGTYPE_p_wxPalette swig_types[19] | |
231 | #define SWIGTYPE_p_wxBitmap swig_types[20] | |
232 | #define SWIGTYPE_p_wxObject swig_types[21] | |
233 | #define SWIGTYPE_p_wxRegionIterator swig_types[22] | |
234 | #define SWIGTYPE_p_wxRect swig_types[23] | |
235 | #define SWIGTYPE_p_wxString swig_types[24] | |
236 | #define SWIGTYPE_p_wxPrinterDC swig_types[25] | |
237 | #define SWIGTYPE_p_wxIconBundle swig_types[26] | |
238 | #define SWIGTYPE_p_wxPoint swig_types[27] | |
239 | #define SWIGTYPE_p_wxDash swig_types[28] | |
240 | #define SWIGTYPE_p_wxScreenDC swig_types[29] | |
241 | #define SWIGTYPE_p_wxCursor swig_types[30] | |
242 | #define SWIGTYPE_p_wxClientDC swig_types[31] | |
243 | #define SWIGTYPE_p_wxBufferedDC swig_types[32] | |
244 | #define SWIGTYPE_p_wxImageList swig_types[33] | |
245 | #define SWIGTYPE_p_unsigned_char swig_types[34] | |
246 | #define SWIGTYPE_p_wxGDIObject swig_types[35] | |
247 | #define SWIGTYPE_p_wxLocale swig_types[36] | |
248 | #define SWIGTYPE_p_wxIcon swig_types[37] | |
249 | #define SWIGTYPE_p_wxRegion swig_types[38] | |
250 | #define SWIGTYPE_p_wxLanguageInfo swig_types[39] | |
251 | #define SWIGTYPE_p_wxConfigBase swig_types[40] | |
252 | #define SWIGTYPE_p_wxWindowDC swig_types[41] | |
253 | #define SWIGTYPE_p_wxPrintData swig_types[42] | |
254 | #define SWIGTYPE_p_wxBrushList swig_types[43] | |
255 | #define SWIGTYPE_p_wxFontList swig_types[44] | |
256 | #define SWIGTYPE_p_wxPen swig_types[45] | |
257 | #define SWIGTYPE_p_wxBufferedPaintDC swig_types[46] | |
258 | #define SWIGTYPE_p_wxPaintDC swig_types[47] | |
259 | #define SWIGTYPE_p_wxPenList swig_types[48] | |
260 | #define SWIGTYPE_p_wxPyPen swig_types[49] | |
261 | #define SWIGTYPE_p_int swig_types[50] | |
262 | #define SWIGTYPE_p_wxMetaFile swig_types[51] | |
263 | #define SWIGTYPE_p_wxNativeFontInfo swig_types[52] | |
264 | #define SWIGTYPE_p_wxEncodingConverter swig_types[53] | |
265 | #define SWIGTYPE_p_wxColourDatabase swig_types[54] | |
266 | static swig_type_info *swig_types[56]; | |
d14a1e28 RD |
267 | |
268 | /* -------- TYPES TABLE (END) -------- */ | |
269 | ||
270 | ||
271 | /*----------------------------------------------- | |
272 | @(target):= _gdi.so | |
273 | ------------------------------------------------*/ | |
274 | #define SWIG_init init_gdi | |
275 | ||
276 | #define SWIG_name "_gdi" | |
277 | ||
278 | #include "wx/wxPython/wxPython.h" | |
279 | #include "wx/wxPython/pyclasses.h" | |
280 | ||
281 | DECLARE_DEF_STRING(EmptyString); | |
282 | ||
283 | PyObject *wxColour_Get(wxColour *self){ | |
284 | PyObject* rv = PyTuple_New(3); | |
285 | int red = -1; | |
286 | int green = -1; | |
287 | int blue = -1; | |
288 | if (self->Ok()) { | |
289 | red = self->Red(); | |
290 | green = self->Green(); | |
291 | blue = self->Blue(); | |
292 | } | |
293 | PyTuple_SetItem(rv, 0, PyInt_FromLong(red)); | |
294 | PyTuple_SetItem(rv, 1, PyInt_FromLong(green)); | |
295 | PyTuple_SetItem(rv, 2, PyInt_FromLong(blue)); | |
296 | return rv; | |
297 | } | |
298 | ||
299 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
300 | PyObject* o2; | |
301 | PyObject* o3; | |
302 | ||
303 | if (!target) { | |
304 | target = o; | |
305 | } else if (target == Py_None) { | |
306 | Py_DECREF(Py_None); | |
307 | target = o; | |
308 | } else { | |
309 | if (!PyTuple_Check(target)) { | |
310 | o2 = target; | |
311 | target = PyTuple_New(1); | |
312 | PyTuple_SetItem(target, 0, o2); | |
313 | } | |
314 | o3 = PyTuple_New(1); | |
315 | PyTuple_SetItem(o3, 0, o); | |
316 | ||
317 | o2 = target; | |
318 | target = PySequence_Concat(o2, o3); | |
319 | Py_DECREF(o2); | |
320 | Py_DECREF(o3); | |
321 | } | |
322 | return target; | |
323 | } | |
324 | ||
325 | PyObject *wxPen_GetDashes(wxPen *self){ | |
326 | wxDash* dashes; | |
327 | int count = self->GetDashes(&dashes); | |
328 | wxPyBeginBlockThreads(); | |
329 | PyObject* retval = PyList_New(0); | |
330 | for (int x=0; x<count; x++) | |
331 | PyList_Append(retval, PyInt_FromLong(dashes[x])); | |
332 | wxPyEndBlockThreads(); | |
333 | return retval; | |
334 | } | |
335 | ||
336 | wxPyPen::~wxPyPen() | |
337 | { | |
338 | if (m_dash) | |
339 | delete [] m_dash; | |
340 | } | |
341 | ||
342 | void wxPyPen::SetDashes(int nb_dashes, const wxDash *dash) | |
343 | { | |
344 | if (m_dash) | |
345 | delete [] m_dash; | |
346 | m_dash = new wxDash[nb_dashes]; | |
347 | for (int i=0; i<nb_dashes; i++) { | |
348 | m_dash[i] = dash[i]; | |
349 | } | |
350 | wxPen::SetDashes(nb_dashes, m_dash); | |
351 | } | |
352 | ||
353 | ||
354 | #include <wx/image.h> | |
355 | ||
356 | static char** ConvertListOfStrings(PyObject* listOfStrings) { | |
357 | char** cArray = NULL; | |
358 | int count; | |
359 | ||
360 | if (!PyList_Check(listOfStrings)) { | |
361 | PyErr_SetString(PyExc_TypeError, "Expected a list of strings."); | |
362 | return NULL; | |
363 | } | |
364 | count = PyList_Size(listOfStrings); | |
365 | cArray = new char*[count]; | |
366 | ||
367 | for(int x=0; x<count; x++) { | |
368 | // TODO: Need some validation and error checking here | |
369 | cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x)); | |
370 | } | |
371 | return cArray; | |
372 | } | |
373 | ||
374 | ||
375 | wxBitmap *new_wxBitmap(PyObject *listOfStrings){ | |
376 | char** cArray = NULL; | |
377 | wxBitmap* bmp; | |
378 | ||
379 | cArray = ConvertListOfStrings(listOfStrings); | |
380 | if (! cArray) | |
381 | return NULL; | |
382 | bmp = new wxBitmap(cArray); | |
383 | delete [] cArray; | |
384 | return bmp; | |
385 | } | |
386 | wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){ | |
387 | char* buf; | |
388 | int length; | |
389 | PyString_AsStringAndSize(bits, &buf, &length); | |
390 | return new wxBitmap(buf, width, height, depth); | |
391 | } | |
392 | void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){ | |
393 | wxMask *mask = new wxMask(*self, colour); | |
394 | self->SetMask(mask); | |
395 | } | |
396 | ||
397 | #include <wx/iconbndl.h> | |
398 | ||
399 | wxIcon *new_wxIcon(wxBitmap const &bmp){ | |
400 | wxIcon* icon = new wxIcon(); | |
401 | icon->CopyFromBitmap(bmp); | |
402 | return icon; | |
403 | } | |
404 | wxIcon *new_wxIcon(PyObject *listOfStrings){ | |
405 | char** cArray = NULL; | |
406 | wxIcon* icon; | |
407 | ||
408 | cArray = ConvertListOfStrings(listOfStrings); | |
409 | if (! cArray) | |
410 | return NULL; | |
411 | icon = new wxIcon(cArray); | |
412 | delete [] cArray; | |
413 | return icon; | |
414 | } | |
415 | wxIconLocation *new_wxIconLocation(wxString const *filename,int num){ | |
416 | ||
417 | ||
418 | ||
419 | return new wxIconLocation(*filename); | |
420 | ||
421 | } | |
422 | void wxIconLocation_SetIndex(wxIconLocation *self,int num){ | |
423 | ||
424 | ||
425 | ||
426 | // do nothing | |
427 | ||
428 | } | |
429 | int wxIconLocation_GetIndex(wxIconLocation *self){ | |
430 | ||
431 | ||
432 | ||
433 | return -1; | |
434 | ||
435 | } | |
436 | wxCursor *new_wxCursor(wxString const *cursorName,long flags,int hotSpotX,int hotSpotY){ | |
437 | ||
438 | ||
439 | ||
440 | ||
441 | return new wxCursor(*cursorName, flags, hotSpotX, hotSpotY); | |
442 | ||
443 | } | |
444 | wxCursor *new_wxCursor(PyObject *bits,int width,int height,int hotSpotX,int hotSpotY,PyObject *maskBits){ | |
445 | char* bitsbuf; | |
446 | char* maskbuf = NULL; | |
447 | int length; | |
448 | PyString_AsStringAndSize(bits, &bitsbuf, &length); | |
449 | if (maskBits) | |
450 | PyString_AsStringAndSize(maskBits, &maskbuf, &length); | |
451 | return new wxCursor(bitsbuf, width, height, hotSpotX, hotSpotY, maskbuf); | |
452 | } | |
453 | ||
454 | ||
455 | wxRegion *new_wxRegion(int points,wxPoint *points_array,int fillStyle){ | |
456 | PyErr_SetNone(PyExc_NotImplementedError); | |
457 | return NULL; | |
458 | } | |
459 | void wxRegionIterator_Next(wxRegionIterator *self){ | |
460 | (*self) ++; | |
461 | } | |
462 | bool wxRegionIterator___nonzero__(wxRegionIterator *self){ | |
463 | return self->operator bool(); | |
464 | } | |
465 | ||
466 | #include <wx/fontutil.h> | |
467 | #include <wx/fontmap.h> | |
468 | #include <wx/fontenum.h> | |
469 | ||
470 | wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){ | |
471 | return self->ToString(); | |
472 | } | |
473 | ||
474 | wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) { | |
475 | static wxNativeEncodingInfo info; | |
476 | if ( wxGetNativeFontEncoding(encoding, &info) ) | |
477 | return &info; | |
478 | else | |
479 | return NULL; | |
480 | } | |
481 | ||
482 | PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){ | |
483 | wxFontEncoding alt_enc; | |
484 | if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive)) | |
485 | return PyInt_FromLong(alt_enc); | |
486 | else { | |
487 | Py_INCREF(Py_None); | |
488 | return Py_None; | |
489 | } | |
490 | } | |
491 | wxFont *new_wxFont(wxString const &info){ | |
492 | wxNativeFontInfo nfi; | |
493 | nfi.FromString(info); | |
494 | return new wxFont(nfi); | |
495 | } | |
496 | wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){ | |
497 | return wxFont::New(pointSize, family, flags, face, encoding); | |
498 | } | |
499 | ||
500 | class wxPyFontEnumerator : public wxFontEnumerator { | |
501 | public: | |
502 | wxPyFontEnumerator() {} | |
503 | ~wxPyFontEnumerator() {} | |
504 | ||
505 | DEC_PYCALLBACK_BOOL_STRING(OnFacename); | |
506 | DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding); | |
507 | ||
508 | PYPRIVATE; | |
509 | }; | |
510 | ||
511 | IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename); | |
512 | IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding); | |
513 | ||
514 | ||
515 | PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){ | |
516 | wxArrayString* arr = self->GetEncodings(); | |
517 | return wxArrayString2PyList_helper(*arr); | |
518 | } | |
519 | PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){ | |
520 | wxArrayString* arr = self->GetFacenames(); | |
521 | return wxArrayString2PyList_helper(*arr); | |
522 | } | |
523 | ||
524 | ||
525 | ||
526 | #include "wx/wxPython/pydrawxxx.h" | |
527 | ||
423f194a | 528 | wxColour wxDC_GetPixelXY(wxDC *self,int x,int y){ |
d14a1e28 RD |
529 | wxColour col; |
530 | self->GetPixel(x, y, &col); | |
531 | return col; | |
532 | } | |
533 | wxColour wxDC_GetPixel(wxDC *self,wxPoint const &pt){ | |
534 | wxColour col; | |
535 | self->GetPixel(pt, &col); | |
536 | return col; | |
537 | } | |
538 | wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){ | |
539 | wxRect rv; | |
540 | self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); | |
541 | return rv; | |
542 | } | |
543 | wxRect wxDC_GetClippingRect(wxDC *self){ | |
544 | wxRect rect; | |
545 | self->GetClippingBox(rect); | |
546 | return rect; | |
547 | } | |
548 | PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
549 | return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes); | |
550 | } | |
551 | PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
552 | return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes); | |
553 | } | |
554 | PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
555 | return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes); | |
556 | } | |
557 | PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
558 | return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes); | |
559 | } | |
560 | PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
561 | return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes); | |
562 | } | |
563 | PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){ | |
564 | return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList); | |
565 | } | |
566 | ||
567 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
568 | *x1 = dc->MinX(); | |
569 | *y1 = dc->MinY(); | |
570 | *x2 = dc->MaxX(); | |
571 | *y2 = dc->MaxY(); | |
572 | } | |
573 | ||
574 | ||
575 | #include <wx/dcps.h> | |
576 | ||
577 | ||
578 | class wxMetaFile : public wxObject { | |
579 | public: | |
580 | wxMetaFile(const wxString&) | |
581 | { PyErr_SetNone(PyExc_NotImplementedError); } | |
582 | }; | |
583 | ||
584 | class wxMetaFileDC : public wxClientDC { | |
585 | public: | |
586 | wxMetaFileDC(const wxString&, int, int, const wxString&) | |
587 | { PyErr_SetNone(PyExc_NotImplementedError); } | |
588 | }; | |
589 | ||
590 | ||
591 | ||
592 | ||
593 | void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){ | |
594 | self->AddColour(name, wxColour(red, green, blue)); | |
595 | } | |
596 | ||
d14a1e28 RD |
597 | #include <wx/effects.h> |
598 | ||
599 | #ifdef __cplusplus | |
600 | extern "C" { | |
601 | #endif | |
602 | static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
603 | PyObject *resultobj; | |
604 | wxGDIObject *result; | |
605 | char *kwnames[] = { | |
606 | NULL | |
607 | }; | |
608 | ||
609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail; | |
610 | { | |
611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
612 | result = (wxGDIObject *)new wxGDIObject(); | |
613 | ||
614 | wxPyEndAllowThreads(__tstate); | |
615 | if (PyErr_Occurred()) SWIG_fail; | |
616 | } | |
617 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGDIObject, 1); | |
618 | return resultobj; | |
619 | fail: | |
620 | return NULL; | |
621 | } | |
622 | ||
623 | ||
624 | static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
625 | PyObject *resultobj; | |
626 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
627 | PyObject * obj0 = 0 ; | |
628 | char *kwnames[] = { | |
629 | (char *) "self", NULL | |
630 | }; | |
631 | ||
632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail; | |
633 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
634 | { | |
635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
636 | delete arg1; | |
637 | ||
638 | wxPyEndAllowThreads(__tstate); | |
639 | if (PyErr_Occurred()) SWIG_fail; | |
640 | } | |
641 | Py_INCREF(Py_None); resultobj = Py_None; | |
642 | return resultobj; | |
643 | fail: | |
644 | return NULL; | |
645 | } | |
646 | ||
647 | ||
648 | static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
649 | PyObject *resultobj; | |
650 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
651 | bool result; | |
652 | PyObject * obj0 = 0 ; | |
653 | char *kwnames[] = { | |
654 | (char *) "self", NULL | |
655 | }; | |
656 | ||
657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail; | |
658 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
659 | { | |
660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
661 | result = (bool)(arg1)->GetVisible(); | |
662 | ||
663 | wxPyEndAllowThreads(__tstate); | |
664 | if (PyErr_Occurred()) SWIG_fail; | |
665 | } | |
666 | resultobj = PyInt_FromLong((long)result); | |
667 | return resultobj; | |
668 | fail: | |
669 | return NULL; | |
670 | } | |
671 | ||
672 | ||
673 | static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
674 | PyObject *resultobj; | |
675 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
676 | bool arg2 ; | |
677 | PyObject * obj0 = 0 ; | |
678 | PyObject * obj1 = 0 ; | |
679 | char *kwnames[] = { | |
680 | (char *) "self",(char *) "visible", NULL | |
681 | }; | |
682 | ||
683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail; | |
684 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
685 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
686 | if (PyErr_Occurred()) SWIG_fail; | |
687 | { | |
688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
689 | (arg1)->SetVisible(arg2); | |
690 | ||
691 | wxPyEndAllowThreads(__tstate); | |
692 | if (PyErr_Occurred()) SWIG_fail; | |
693 | } | |
694 | Py_INCREF(Py_None); resultobj = Py_None; | |
695 | return resultobj; | |
696 | fail: | |
697 | return NULL; | |
698 | } | |
699 | ||
700 | ||
701 | static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
702 | PyObject *resultobj; | |
703 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
704 | bool result; | |
705 | PyObject * obj0 = 0 ; | |
706 | char *kwnames[] = { | |
707 | (char *) "self", NULL | |
708 | }; | |
709 | ||
710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail; | |
711 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
712 | { | |
713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
714 | result = (bool)(arg1)->IsNull(); | |
715 | ||
716 | wxPyEndAllowThreads(__tstate); | |
717 | if (PyErr_Occurred()) SWIG_fail; | |
718 | } | |
719 | resultobj = PyInt_FromLong((long)result); | |
720 | return resultobj; | |
721 | fail: | |
722 | return NULL; | |
723 | } | |
724 | ||
725 | ||
726 | static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) { | |
727 | PyObject *obj; | |
728 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
729 | SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj); | |
730 | Py_INCREF(obj); | |
731 | return Py_BuildValue((char *)""); | |
732 | } | |
733 | static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
734 | PyObject *resultobj; | |
735 | unsigned char arg1 = (unsigned char) 0 ; | |
736 | unsigned char arg2 = (unsigned char) 0 ; | |
737 | unsigned char arg3 = (unsigned char) 0 ; | |
738 | wxColour *result; | |
739 | PyObject * obj0 = 0 ; | |
740 | PyObject * obj1 = 0 ; | |
741 | PyObject * obj2 = 0 ; | |
742 | char *kwnames[] = { | |
743 | (char *) "red",(char *) "green",(char *) "blue", NULL | |
744 | }; | |
745 | ||
746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
747 | if (obj0) { | |
748 | arg1 = (unsigned char) PyInt_AsLong(obj0); | |
749 | if (PyErr_Occurred()) SWIG_fail; | |
750 | } | |
751 | if (obj1) { | |
752 | arg2 = (unsigned char) PyInt_AsLong(obj1); | |
753 | if (PyErr_Occurred()) SWIG_fail; | |
754 | } | |
755 | if (obj2) { | |
756 | arg3 = (unsigned char) PyInt_AsLong(obj2); | |
757 | if (PyErr_Occurred()) SWIG_fail; | |
758 | } | |
759 | { | |
760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
761 | result = (wxColour *)new wxColour(arg1,arg2,arg3); | |
762 | ||
763 | wxPyEndAllowThreads(__tstate); | |
764 | if (PyErr_Occurred()) SWIG_fail; | |
765 | } | |
766 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1); | |
767 | return resultobj; | |
768 | fail: | |
769 | return NULL; | |
770 | } | |
771 | ||
772 | ||
773 | static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
774 | PyObject *resultobj; | |
775 | wxColour *arg1 = (wxColour *) 0 ; | |
776 | PyObject * obj0 = 0 ; | |
777 | char *kwnames[] = { | |
778 | (char *) "self", NULL | |
779 | }; | |
780 | ||
781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail; | |
782 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
783 | { | |
784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
785 | delete arg1; | |
786 | ||
787 | wxPyEndAllowThreads(__tstate); | |
788 | if (PyErr_Occurred()) SWIG_fail; | |
789 | } | |
790 | Py_INCREF(Py_None); resultobj = Py_None; | |
791 | return resultobj; | |
792 | fail: | |
793 | return NULL; | |
794 | } | |
795 | ||
796 | ||
797 | static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
798 | PyObject *resultobj; | |
799 | wxString *arg1 = 0 ; | |
800 | wxColour *result; | |
423f194a | 801 | bool temp1 = False ; |
d14a1e28 RD |
802 | PyObject * obj0 = 0 ; |
803 | char *kwnames[] = { | |
804 | (char *) "colorName", NULL | |
805 | }; | |
806 | ||
807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail; | |
808 | { | |
809 | arg1 = wxString_in_helper(obj0); | |
810 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 811 | temp1 = True; |
d14a1e28 RD |
812 | } |
813 | { | |
814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
815 | result = (wxColour *)new wxColour((wxString const &)*arg1); | |
816 | ||
817 | wxPyEndAllowThreads(__tstate); | |
818 | if (PyErr_Occurred()) SWIG_fail; | |
819 | } | |
820 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1); | |
821 | { | |
822 | if (temp1) | |
823 | delete arg1; | |
824 | } | |
825 | return resultobj; | |
826 | fail: | |
827 | { | |
828 | if (temp1) | |
829 | delete arg1; | |
830 | } | |
831 | return NULL; | |
832 | } | |
833 | ||
834 | ||
835 | static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
836 | PyObject *resultobj; | |
837 | unsigned long arg1 ; | |
838 | wxColour *result; | |
839 | PyObject * obj0 = 0 ; | |
840 | char *kwnames[] = { | |
841 | (char *) "colRGB", NULL | |
842 | }; | |
843 | ||
844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail; | |
845 | arg1 = (unsigned long) PyInt_AsLong(obj0); | |
846 | if (PyErr_Occurred()) SWIG_fail; | |
847 | { | |
848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
849 | result = (wxColour *)new wxColour(arg1); | |
850 | ||
851 | wxPyEndAllowThreads(__tstate); | |
852 | if (PyErr_Occurred()) SWIG_fail; | |
853 | } | |
854 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1); | |
855 | return resultobj; | |
856 | fail: | |
857 | return NULL; | |
858 | } | |
859 | ||
860 | ||
861 | static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) { | |
862 | PyObject *resultobj; | |
863 | wxColour *arg1 = (wxColour *) 0 ; | |
864 | unsigned char result; | |
865 | PyObject * obj0 = 0 ; | |
866 | char *kwnames[] = { | |
867 | (char *) "self", NULL | |
868 | }; | |
869 | ||
870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail; | |
871 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
872 | { | |
873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
874 | result = (unsigned char)(arg1)->Red(); | |
875 | ||
876 | wxPyEndAllowThreads(__tstate); | |
877 | if (PyErr_Occurred()) SWIG_fail; | |
878 | } | |
879 | resultobj = PyInt_FromLong((long)result); | |
880 | return resultobj; | |
881 | fail: | |
882 | return NULL; | |
883 | } | |
884 | ||
885 | ||
886 | static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) { | |
887 | PyObject *resultobj; | |
888 | wxColour *arg1 = (wxColour *) 0 ; | |
889 | unsigned char result; | |
890 | PyObject * obj0 = 0 ; | |
891 | char *kwnames[] = { | |
892 | (char *) "self", NULL | |
893 | }; | |
894 | ||
895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail; | |
896 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
897 | { | |
898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
899 | result = (unsigned char)(arg1)->Green(); | |
900 | ||
901 | wxPyEndAllowThreads(__tstate); | |
902 | if (PyErr_Occurred()) SWIG_fail; | |
903 | } | |
904 | resultobj = PyInt_FromLong((long)result); | |
905 | return resultobj; | |
906 | fail: | |
907 | return NULL; | |
908 | } | |
909 | ||
910 | ||
911 | static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
912 | PyObject *resultobj; | |
913 | wxColour *arg1 = (wxColour *) 0 ; | |
914 | unsigned char result; | |
915 | PyObject * obj0 = 0 ; | |
916 | char *kwnames[] = { | |
917 | (char *) "self", NULL | |
918 | }; | |
919 | ||
920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail; | |
921 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
922 | { | |
923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
924 | result = (unsigned char)(arg1)->Blue(); | |
925 | ||
926 | wxPyEndAllowThreads(__tstate); | |
927 | if (PyErr_Occurred()) SWIG_fail; | |
928 | } | |
929 | resultobj = PyInt_FromLong((long)result); | |
930 | return resultobj; | |
931 | fail: | |
932 | return NULL; | |
933 | } | |
934 | ||
935 | ||
936 | static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
937 | PyObject *resultobj; | |
938 | wxColour *arg1 = (wxColour *) 0 ; | |
939 | bool result; | |
940 | PyObject * obj0 = 0 ; | |
941 | char *kwnames[] = { | |
942 | (char *) "self", NULL | |
943 | }; | |
944 | ||
945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail; | |
946 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
947 | { | |
948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
949 | result = (bool)(arg1)->Ok(); | |
950 | ||
951 | wxPyEndAllowThreads(__tstate); | |
952 | if (PyErr_Occurred()) SWIG_fail; | |
953 | } | |
954 | resultobj = PyInt_FromLong((long)result); | |
955 | return resultobj; | |
956 | fail: | |
957 | return NULL; | |
958 | } | |
959 | ||
960 | ||
961 | static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
962 | PyObject *resultobj; | |
963 | wxColour *arg1 = (wxColour *) 0 ; | |
964 | unsigned char arg2 ; | |
965 | unsigned char arg3 ; | |
966 | unsigned char arg4 ; | |
967 | PyObject * obj0 = 0 ; | |
968 | PyObject * obj1 = 0 ; | |
969 | PyObject * obj2 = 0 ; | |
970 | PyObject * obj3 = 0 ; | |
971 | char *kwnames[] = { | |
972 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
973 | }; | |
974 | ||
975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
976 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
977 | arg2 = (unsigned char) PyInt_AsLong(obj1); | |
978 | if (PyErr_Occurred()) SWIG_fail; | |
979 | arg3 = (unsigned char) PyInt_AsLong(obj2); | |
980 | if (PyErr_Occurred()) SWIG_fail; | |
981 | arg4 = (unsigned char) PyInt_AsLong(obj3); | |
982 | if (PyErr_Occurred()) SWIG_fail; | |
983 | { | |
984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
985 | (arg1)->Set(arg2,arg3,arg4); | |
986 | ||
987 | wxPyEndAllowThreads(__tstate); | |
988 | if (PyErr_Occurred()) SWIG_fail; | |
989 | } | |
990 | Py_INCREF(Py_None); resultobj = Py_None; | |
991 | return resultobj; | |
992 | fail: | |
993 | return NULL; | |
994 | } | |
995 | ||
996 | ||
997 | static PyObject *_wrap_Colour_SetRBG(PyObject *self, PyObject *args, PyObject *kwargs) { | |
998 | PyObject *resultobj; | |
999 | wxColour *arg1 = (wxColour *) 0 ; | |
1000 | unsigned long arg2 ; | |
1001 | PyObject * obj0 = 0 ; | |
1002 | PyObject * obj1 = 0 ; | |
1003 | char *kwnames[] = { | |
1004 | (char *) "self",(char *) "colRGB", NULL | |
1005 | }; | |
1006 | ||
1007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRBG",kwnames,&obj0,&obj1)) goto fail; | |
1008 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1009 | arg2 = (unsigned long) PyInt_AsLong(obj1); | |
1010 | if (PyErr_Occurred()) SWIG_fail; | |
1011 | { | |
1012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1013 | (arg1)->Set(arg2); | |
1014 | ||
1015 | wxPyEndAllowThreads(__tstate); | |
1016 | if (PyErr_Occurred()) SWIG_fail; | |
1017 | } | |
1018 | Py_INCREF(Py_None); resultobj = Py_None; | |
1019 | return resultobj; | |
1020 | fail: | |
1021 | return NULL; | |
1022 | } | |
1023 | ||
1024 | ||
1025 | static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1026 | PyObject *resultobj; | |
1027 | wxColour *arg1 = (wxColour *) 0 ; | |
1028 | wxColour *arg2 = 0 ; | |
1029 | bool result; | |
1030 | wxColour temp2 ; | |
1031 | PyObject * obj0 = 0 ; | |
1032 | PyObject * obj1 = 0 ; | |
1033 | char *kwnames[] = { | |
1034 | (char *) "self",(char *) "colour", NULL | |
1035 | }; | |
1036 | ||
1037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail; | |
1038 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1039 | { | |
1040 | arg2 = &temp2; | |
1041 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1042 | } | |
1043 | { | |
1044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1045 | result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2); | |
1046 | ||
1047 | wxPyEndAllowThreads(__tstate); | |
1048 | if (PyErr_Occurred()) SWIG_fail; | |
1049 | } | |
1050 | resultobj = PyInt_FromLong((long)result); | |
1051 | return resultobj; | |
1052 | fail: | |
1053 | return NULL; | |
1054 | } | |
1055 | ||
1056 | ||
1057 | static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1058 | PyObject *resultobj; | |
1059 | wxColour *arg1 = (wxColour *) 0 ; | |
1060 | wxColour *arg2 = 0 ; | |
1061 | bool result; | |
1062 | wxColour temp2 ; | |
1063 | PyObject * obj0 = 0 ; | |
1064 | PyObject * obj1 = 0 ; | |
1065 | char *kwnames[] = { | |
1066 | (char *) "self",(char *) "colour", NULL | |
1067 | }; | |
1068 | ||
1069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail; | |
1070 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1071 | { | |
1072 | arg2 = &temp2; | |
1073 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1074 | } | |
1075 | { | |
1076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1077 | result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2); | |
1078 | ||
1079 | wxPyEndAllowThreads(__tstate); | |
1080 | if (PyErr_Occurred()) SWIG_fail; | |
1081 | } | |
1082 | resultobj = PyInt_FromLong((long)result); | |
1083 | return resultobj; | |
1084 | fail: | |
1085 | return NULL; | |
1086 | } | |
1087 | ||
1088 | ||
1089 | static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1090 | PyObject *resultobj; | |
1091 | wxColour *arg1 = (wxColour *) 0 ; | |
1092 | PyObject *result; | |
1093 | PyObject * obj0 = 0 ; | |
1094 | char *kwnames[] = { | |
1095 | (char *) "self", NULL | |
1096 | }; | |
1097 | ||
1098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail; | |
1099 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1100 | { | |
1101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1102 | result = (PyObject *)wxColour_Get(arg1); | |
1103 | ||
1104 | wxPyEndAllowThreads(__tstate); | |
1105 | if (PyErr_Occurred()) SWIG_fail; | |
1106 | } | |
1107 | resultobj = result; | |
1108 | return resultobj; | |
1109 | fail: | |
1110 | return NULL; | |
1111 | } | |
1112 | ||
1113 | ||
1114 | static PyObject * Colour_swigregister(PyObject *self, PyObject *args) { | |
1115 | PyObject *obj; | |
1116 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1117 | SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj); | |
1118 | Py_INCREF(obj); | |
1119 | return Py_BuildValue((char *)""); | |
1120 | } | |
1121 | static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1122 | PyObject *resultobj; | |
1123 | int arg1 ; | |
1124 | unsigned char *arg2 = (unsigned char *) 0 ; | |
1125 | unsigned char *arg3 = (unsigned char *) 0 ; | |
1126 | unsigned char *arg4 = (unsigned char *) 0 ; | |
1127 | wxPalette *result; | |
1128 | PyObject * obj1 = 0 ; | |
1129 | PyObject * obj2 = 0 ; | |
1130 | PyObject * obj3 = 0 ; | |
1131 | char *kwnames[] = { | |
1132 | (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1133 | }; | |
1134 | ||
1135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iOOO:new_Palette",kwnames,&arg1,&obj1,&obj2,&obj3)) goto fail; | |
1136 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1137 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1138 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1139 | { | |
1140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1141 | result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4); | |
1142 | ||
1143 | wxPyEndAllowThreads(__tstate); | |
1144 | if (PyErr_Occurred()) SWIG_fail; | |
1145 | } | |
1146 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPalette, 1); | |
1147 | return resultobj; | |
1148 | fail: | |
1149 | return NULL; | |
1150 | } | |
1151 | ||
1152 | ||
1153 | static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1154 | PyObject *resultobj; | |
1155 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1156 | PyObject * obj0 = 0 ; | |
1157 | char *kwnames[] = { | |
1158 | (char *) "self", NULL | |
1159 | }; | |
1160 | ||
1161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail; | |
1162 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1163 | { | |
1164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1165 | delete arg1; | |
1166 | ||
1167 | wxPyEndAllowThreads(__tstate); | |
1168 | if (PyErr_Occurred()) SWIG_fail; | |
1169 | } | |
1170 | Py_INCREF(Py_None); resultobj = Py_None; | |
1171 | return resultobj; | |
1172 | fail: | |
1173 | return NULL; | |
1174 | } | |
1175 | ||
1176 | ||
1177 | static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1178 | PyObject *resultobj; | |
1179 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1180 | byte arg2 ; | |
1181 | byte arg3 ; | |
1182 | byte arg4 ; | |
1183 | int result; | |
1184 | PyObject * obj0 = 0 ; | |
1185 | PyObject * obj1 = 0 ; | |
1186 | PyObject * obj2 = 0 ; | |
1187 | PyObject * obj3 = 0 ; | |
1188 | char *kwnames[] = { | |
1189 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1190 | }; | |
1191 | ||
1192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
1193 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1194 | arg2 = (byte) PyInt_AsLong(obj1); | |
1195 | if (PyErr_Occurred()) SWIG_fail; | |
1196 | arg3 = (byte) PyInt_AsLong(obj2); | |
1197 | if (PyErr_Occurred()) SWIG_fail; | |
1198 | arg4 = (byte) PyInt_AsLong(obj3); | |
1199 | if (PyErr_Occurred()) SWIG_fail; | |
1200 | { | |
1201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1202 | result = (int)(arg1)->GetPixel(arg2,arg3,arg4); | |
1203 | ||
1204 | wxPyEndAllowThreads(__tstate); | |
1205 | if (PyErr_Occurred()) SWIG_fail; | |
1206 | } | |
1207 | resultobj = PyInt_FromLong((long)result); | |
1208 | return resultobj; | |
1209 | fail: | |
1210 | return NULL; | |
1211 | } | |
1212 | ||
1213 | ||
1214 | static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1215 | PyObject *resultobj; | |
1216 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1217 | int arg2 ; | |
1218 | byte *arg3 = (byte *) 0 ; | |
1219 | byte *arg4 = (byte *) 0 ; | |
1220 | byte *arg5 = (byte *) 0 ; | |
1221 | bool result; | |
1222 | byte temp3 ; | |
1223 | byte temp4 ; | |
1224 | byte temp5 ; | |
1225 | PyObject * obj0 = 0 ; | |
1226 | char *kwnames[] = { | |
1227 | (char *) "self",(char *) "pixel", NULL | |
1228 | }; | |
1229 | ||
1230 | arg3 = &temp3; | |
1231 | arg4 = &temp4; | |
1232 | arg5 = &temp5; | |
1233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Palette_GetRGB",kwnames,&obj0,&arg2)) goto fail; | |
1234 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1235 | { | |
1236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1237 | result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5); | |
1238 | ||
1239 | wxPyEndAllowThreads(__tstate); | |
1240 | if (PyErr_Occurred()) SWIG_fail; | |
1241 | } | |
1242 | resultobj = PyInt_FromLong((long)result); | |
1243 | { | |
1244 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
1245 | resultobj = t_output_helper(resultobj,o); | |
1246 | } | |
1247 | { | |
1248 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
1249 | resultobj = t_output_helper(resultobj,o); | |
1250 | } | |
1251 | { | |
1252 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
1253 | resultobj = t_output_helper(resultobj,o); | |
1254 | } | |
1255 | return resultobj; | |
1256 | fail: | |
1257 | return NULL; | |
1258 | } | |
1259 | ||
1260 | ||
1261 | static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1262 | PyObject *resultobj; | |
1263 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1264 | bool result; | |
1265 | PyObject * obj0 = 0 ; | |
1266 | char *kwnames[] = { | |
1267 | (char *) "self", NULL | |
1268 | }; | |
1269 | ||
1270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail; | |
1271 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1272 | { | |
1273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1274 | result = (bool)(arg1)->Ok(); | |
1275 | ||
1276 | wxPyEndAllowThreads(__tstate); | |
1277 | if (PyErr_Occurred()) SWIG_fail; | |
1278 | } | |
1279 | resultobj = PyInt_FromLong((long)result); | |
1280 | return resultobj; | |
1281 | fail: | |
1282 | return NULL; | |
1283 | } | |
1284 | ||
1285 | ||
1286 | static PyObject * Palette_swigregister(PyObject *self, PyObject *args) { | |
1287 | PyObject *obj; | |
1288 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1289 | SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj); | |
1290 | Py_INCREF(obj); | |
1291 | return Py_BuildValue((char *)""); | |
1292 | } | |
1293 | static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1294 | PyObject *resultobj; | |
1295 | wxColour *arg1 = 0 ; | |
1296 | int arg2 = (int) 1 ; | |
1297 | int arg3 = (int) wxSOLID ; | |
1298 | wxPen *result; | |
1299 | wxColour temp1 ; | |
1300 | PyObject * obj0 = 0 ; | |
1301 | char *kwnames[] = { | |
1302 | (char *) "colour",(char *) "width",(char *) "style", NULL | |
1303 | }; | |
1304 | ||
1305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:new_Pen",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
1306 | { | |
1307 | arg1 = &temp1; | |
1308 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
1309 | } | |
1310 | { | |
1311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1312 | result = (wxPen *)new wxPen(*arg1,arg2,arg3); | |
1313 | ||
1314 | wxPyEndAllowThreads(__tstate); | |
1315 | if (PyErr_Occurred()) SWIG_fail; | |
1316 | } | |
1317 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 1); | |
1318 | return resultobj; | |
1319 | fail: | |
1320 | return NULL; | |
1321 | } | |
1322 | ||
1323 | ||
1324 | static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1325 | PyObject *resultobj; | |
1326 | wxPen *arg1 = (wxPen *) 0 ; | |
1327 | PyObject * obj0 = 0 ; | |
1328 | char *kwnames[] = { | |
1329 | (char *) "self", NULL | |
1330 | }; | |
1331 | ||
1332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail; | |
1333 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1334 | { | |
1335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1336 | delete arg1; | |
1337 | ||
1338 | wxPyEndAllowThreads(__tstate); | |
1339 | if (PyErr_Occurred()) SWIG_fail; | |
1340 | } | |
1341 | Py_INCREF(Py_None); resultobj = Py_None; | |
1342 | return resultobj; | |
1343 | fail: | |
1344 | return NULL; | |
1345 | } | |
1346 | ||
1347 | ||
1348 | static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1349 | PyObject *resultobj; | |
1350 | wxPen *arg1 = (wxPen *) 0 ; | |
1351 | int result; | |
1352 | PyObject * obj0 = 0 ; | |
1353 | char *kwnames[] = { | |
1354 | (char *) "self", NULL | |
1355 | }; | |
1356 | ||
1357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail; | |
1358 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1359 | { | |
1360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1361 | result = (int)(arg1)->GetCap(); | |
1362 | ||
1363 | wxPyEndAllowThreads(__tstate); | |
1364 | if (PyErr_Occurred()) SWIG_fail; | |
1365 | } | |
1366 | resultobj = PyInt_FromLong((long)result); | |
1367 | return resultobj; | |
1368 | fail: | |
1369 | return NULL; | |
1370 | } | |
1371 | ||
1372 | ||
1373 | static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1374 | PyObject *resultobj; | |
1375 | wxPen *arg1 = (wxPen *) 0 ; | |
1376 | wxColour result; | |
1377 | PyObject * obj0 = 0 ; | |
1378 | char *kwnames[] = { | |
1379 | (char *) "self", NULL | |
1380 | }; | |
1381 | ||
1382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail; | |
1383 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1384 | { | |
1385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1386 | result = (arg1)->GetColour(); | |
1387 | ||
1388 | wxPyEndAllowThreads(__tstate); | |
1389 | if (PyErr_Occurred()) SWIG_fail; | |
1390 | } | |
1391 | { | |
1392 | wxColour * resultptr; | |
1393 | resultptr = new wxColour((wxColour &) result); | |
1394 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
1395 | } | |
1396 | return resultobj; | |
1397 | fail: | |
1398 | return NULL; | |
1399 | } | |
1400 | ||
1401 | ||
1402 | static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1403 | PyObject *resultobj; | |
1404 | wxPen *arg1 = (wxPen *) 0 ; | |
1405 | int result; | |
1406 | PyObject * obj0 = 0 ; | |
1407 | char *kwnames[] = { | |
1408 | (char *) "self", NULL | |
1409 | }; | |
1410 | ||
1411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail; | |
1412 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1413 | { | |
1414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1415 | result = (int)(arg1)->GetJoin(); | |
1416 | ||
1417 | wxPyEndAllowThreads(__tstate); | |
1418 | if (PyErr_Occurred()) SWIG_fail; | |
1419 | } | |
1420 | resultobj = PyInt_FromLong((long)result); | |
1421 | return resultobj; | |
1422 | fail: | |
1423 | return NULL; | |
1424 | } | |
1425 | ||
1426 | ||
1427 | static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1428 | PyObject *resultobj; | |
1429 | wxPen *arg1 = (wxPen *) 0 ; | |
1430 | int result; | |
1431 | PyObject * obj0 = 0 ; | |
1432 | char *kwnames[] = { | |
1433 | (char *) "self", NULL | |
1434 | }; | |
1435 | ||
1436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail; | |
1437 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1438 | { | |
1439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1440 | result = (int)(arg1)->GetStyle(); | |
1441 | ||
1442 | wxPyEndAllowThreads(__tstate); | |
1443 | if (PyErr_Occurred()) SWIG_fail; | |
1444 | } | |
1445 | resultobj = PyInt_FromLong((long)result); | |
1446 | return resultobj; | |
1447 | fail: | |
1448 | return NULL; | |
1449 | } | |
1450 | ||
1451 | ||
1452 | static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1453 | PyObject *resultobj; | |
1454 | wxPen *arg1 = (wxPen *) 0 ; | |
1455 | int result; | |
1456 | PyObject * obj0 = 0 ; | |
1457 | char *kwnames[] = { | |
1458 | (char *) "self", NULL | |
1459 | }; | |
1460 | ||
1461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail; | |
1462 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1463 | { | |
1464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1465 | result = (int)(arg1)->GetWidth(); | |
1466 | ||
1467 | wxPyEndAllowThreads(__tstate); | |
1468 | if (PyErr_Occurred()) SWIG_fail; | |
1469 | } | |
1470 | resultobj = PyInt_FromLong((long)result); | |
1471 | return resultobj; | |
1472 | fail: | |
1473 | return NULL; | |
1474 | } | |
1475 | ||
1476 | ||
1477 | static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1478 | PyObject *resultobj; | |
1479 | wxPen *arg1 = (wxPen *) 0 ; | |
1480 | bool result; | |
1481 | PyObject * obj0 = 0 ; | |
1482 | char *kwnames[] = { | |
1483 | (char *) "self", NULL | |
1484 | }; | |
1485 | ||
1486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail; | |
1487 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1488 | { | |
1489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1490 | result = (bool)(arg1)->Ok(); | |
1491 | ||
1492 | wxPyEndAllowThreads(__tstate); | |
1493 | if (PyErr_Occurred()) SWIG_fail; | |
1494 | } | |
1495 | resultobj = PyInt_FromLong((long)result); | |
1496 | return resultobj; | |
1497 | fail: | |
1498 | return NULL; | |
1499 | } | |
1500 | ||
1501 | ||
1502 | static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1503 | PyObject *resultobj; | |
1504 | wxPen *arg1 = (wxPen *) 0 ; | |
1505 | int arg2 ; | |
1506 | PyObject * obj0 = 0 ; | |
1507 | char *kwnames[] = { | |
1508 | (char *) "self",(char *) "cap_style", NULL | |
1509 | }; | |
1510 | ||
1511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetCap",kwnames,&obj0,&arg2)) goto fail; | |
1512 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1513 | { | |
1514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1515 | (arg1)->SetCap(arg2); | |
1516 | ||
1517 | wxPyEndAllowThreads(__tstate); | |
1518 | if (PyErr_Occurred()) SWIG_fail; | |
1519 | } | |
1520 | Py_INCREF(Py_None); resultobj = Py_None; | |
1521 | return resultobj; | |
1522 | fail: | |
1523 | return NULL; | |
1524 | } | |
1525 | ||
1526 | ||
1527 | static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1528 | PyObject *resultobj; | |
1529 | wxPen *arg1 = (wxPen *) 0 ; | |
1530 | wxColour *arg2 = 0 ; | |
1531 | wxColour temp2 ; | |
1532 | PyObject * obj0 = 0 ; | |
1533 | PyObject * obj1 = 0 ; | |
1534 | char *kwnames[] = { | |
1535 | (char *) "self",(char *) "colour", NULL | |
1536 | }; | |
1537 | ||
1538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
1539 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1540 | { | |
1541 | arg2 = &temp2; | |
1542 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1543 | } | |
1544 | { | |
1545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1546 | (arg1)->SetColour(*arg2); | |
1547 | ||
1548 | wxPyEndAllowThreads(__tstate); | |
1549 | if (PyErr_Occurred()) SWIG_fail; | |
1550 | } | |
1551 | Py_INCREF(Py_None); resultobj = Py_None; | |
1552 | return resultobj; | |
1553 | fail: | |
1554 | return NULL; | |
1555 | } | |
1556 | ||
1557 | ||
1558 | static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1559 | PyObject *resultobj; | |
1560 | wxPen *arg1 = (wxPen *) 0 ; | |
1561 | int arg2 ; | |
1562 | PyObject * obj0 = 0 ; | |
1563 | char *kwnames[] = { | |
1564 | (char *) "self",(char *) "join_style", NULL | |
1565 | }; | |
1566 | ||
1567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetJoin",kwnames,&obj0,&arg2)) goto fail; | |
1568 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1569 | { | |
1570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1571 | (arg1)->SetJoin(arg2); | |
1572 | ||
1573 | wxPyEndAllowThreads(__tstate); | |
1574 | if (PyErr_Occurred()) SWIG_fail; | |
1575 | } | |
1576 | Py_INCREF(Py_None); resultobj = Py_None; | |
1577 | return resultobj; | |
1578 | fail: | |
1579 | return NULL; | |
1580 | } | |
1581 | ||
1582 | ||
1583 | static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1584 | PyObject *resultobj; | |
1585 | wxPen *arg1 = (wxPen *) 0 ; | |
1586 | int arg2 ; | |
1587 | PyObject * obj0 = 0 ; | |
1588 | char *kwnames[] = { | |
1589 | (char *) "self",(char *) "style", NULL | |
1590 | }; | |
1591 | ||
1592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetStyle",kwnames,&obj0,&arg2)) goto fail; | |
1593 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1594 | { | |
1595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1596 | (arg1)->SetStyle(arg2); | |
1597 | ||
1598 | wxPyEndAllowThreads(__tstate); | |
1599 | if (PyErr_Occurred()) SWIG_fail; | |
1600 | } | |
1601 | Py_INCREF(Py_None); resultobj = Py_None; | |
1602 | return resultobj; | |
1603 | fail: | |
1604 | return NULL; | |
1605 | } | |
1606 | ||
1607 | ||
1608 | static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1609 | PyObject *resultobj; | |
1610 | wxPen *arg1 = (wxPen *) 0 ; | |
1611 | int arg2 ; | |
1612 | PyObject * obj0 = 0 ; | |
1613 | char *kwnames[] = { | |
1614 | (char *) "self",(char *) "width", NULL | |
1615 | }; | |
1616 | ||
1617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetWidth",kwnames,&obj0,&arg2)) goto fail; | |
1618 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1619 | { | |
1620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1621 | (arg1)->SetWidth(arg2); | |
1622 | ||
1623 | wxPyEndAllowThreads(__tstate); | |
1624 | if (PyErr_Occurred()) SWIG_fail; | |
1625 | } | |
1626 | Py_INCREF(Py_None); resultobj = Py_None; | |
1627 | return resultobj; | |
1628 | fail: | |
1629 | return NULL; | |
1630 | } | |
1631 | ||
1632 | ||
1633 | static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1634 | PyObject *resultobj; | |
1635 | wxPen *arg1 = (wxPen *) 0 ; | |
1636 | int arg2 ; | |
1637 | wxDash *arg3 = (wxDash *) 0 ; | |
1638 | PyObject * obj0 = 0 ; | |
1639 | PyObject * obj1 = 0 ; | |
1640 | char *kwnames[] = { | |
1641 | (char *) "self",(char *) "dashes", NULL | |
1642 | }; | |
1643 | ||
1644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail; | |
1645 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1646 | { | |
1647 | arg2 = PyList_Size(obj1); | |
1648 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
1649 | if (arg3 == NULL) SWIG_fail; | |
1650 | } | |
1651 | { | |
1652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1653 | (arg1)->SetDashes(arg2,arg3); | |
1654 | ||
1655 | wxPyEndAllowThreads(__tstate); | |
1656 | if (PyErr_Occurred()) SWIG_fail; | |
1657 | } | |
1658 | Py_INCREF(Py_None); resultobj = Py_None; | |
1659 | { | |
1660 | if (arg3) delete [] arg3; | |
1661 | } | |
1662 | return resultobj; | |
1663 | fail: | |
1664 | { | |
1665 | if (arg3) delete [] arg3; | |
1666 | } | |
1667 | return NULL; | |
1668 | } | |
1669 | ||
1670 | ||
1671 | static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1672 | PyObject *resultobj; | |
1673 | wxPen *arg1 = (wxPen *) 0 ; | |
1674 | PyObject *result; | |
1675 | PyObject * obj0 = 0 ; | |
1676 | char *kwnames[] = { | |
1677 | (char *) "self", NULL | |
1678 | }; | |
1679 | ||
1680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail; | |
1681 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1682 | { | |
1683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1684 | result = (PyObject *)wxPen_GetDashes(arg1); | |
1685 | ||
1686 | wxPyEndAllowThreads(__tstate); | |
1687 | if (PyErr_Occurred()) SWIG_fail; | |
1688 | } | |
1689 | resultobj = result; | |
1690 | return resultobj; | |
1691 | fail: | |
1692 | return NULL; | |
1693 | } | |
1694 | ||
1695 | ||
1696 | static PyObject * Pen_swigregister(PyObject *self, PyObject *args) { | |
1697 | PyObject *obj; | |
1698 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1699 | SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj); | |
1700 | Py_INCREF(obj); | |
1701 | return Py_BuildValue((char *)""); | |
1702 | } | |
1703 | static PyObject *_wrap_new_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1704 | PyObject *resultobj; | |
1705 | wxColour *arg1 = 0 ; | |
1706 | int arg2 = (int) 1 ; | |
1707 | int arg3 = (int) wxSOLID ; | |
1708 | wxPyPen *result; | |
1709 | wxColour temp1 ; | |
1710 | PyObject * obj0 = 0 ; | |
1711 | char *kwnames[] = { | |
1712 | (char *) "colour",(char *) "width",(char *) "style", NULL | |
1713 | }; | |
1714 | ||
1715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:new_PyPen",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
1716 | { | |
1717 | arg1 = &temp1; | |
1718 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
1719 | } | |
1720 | { | |
1721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1722 | result = (wxPyPen *)new wxPyPen(*arg1,arg2,arg3); | |
1723 | ||
1724 | wxPyEndAllowThreads(__tstate); | |
1725 | if (PyErr_Occurred()) SWIG_fail; | |
1726 | } | |
1727 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyPen, 1); | |
1728 | return resultobj; | |
1729 | fail: | |
1730 | return NULL; | |
1731 | } | |
1732 | ||
1733 | ||
1734 | static PyObject *_wrap_delete_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1735 | PyObject *resultobj; | |
1736 | wxPyPen *arg1 = (wxPyPen *) 0 ; | |
1737 | PyObject * obj0 = 0 ; | |
1738 | char *kwnames[] = { | |
1739 | (char *) "self", NULL | |
1740 | }; | |
1741 | ||
1742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyPen",kwnames,&obj0)) goto fail; | |
1743 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1744 | { | |
1745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1746 | delete arg1; | |
1747 | ||
1748 | wxPyEndAllowThreads(__tstate); | |
1749 | if (PyErr_Occurred()) SWIG_fail; | |
1750 | } | |
1751 | Py_INCREF(Py_None); resultobj = Py_None; | |
1752 | return resultobj; | |
1753 | fail: | |
1754 | return NULL; | |
1755 | } | |
1756 | ||
1757 | ||
1758 | static PyObject *_wrap_PyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1759 | PyObject *resultobj; | |
1760 | wxPyPen *arg1 = (wxPyPen *) 0 ; | |
1761 | int arg2 ; | |
1762 | wxDash *arg3 = (wxDash *) 0 ; | |
1763 | PyObject * obj0 = 0 ; | |
1764 | PyObject * obj1 = 0 ; | |
1765 | char *kwnames[] = { | |
1766 | (char *) "self",(char *) "dashes", NULL | |
1767 | }; | |
1768 | ||
1769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPen_SetDashes",kwnames,&obj0,&obj1)) goto fail; | |
1770 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1771 | { | |
1772 | arg2 = PyList_Size(obj1); | |
1773 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
1774 | if (arg3 == NULL) SWIG_fail; | |
1775 | } | |
1776 | { | |
1777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1778 | (arg1)->SetDashes(arg2,arg3); | |
1779 | ||
1780 | wxPyEndAllowThreads(__tstate); | |
1781 | if (PyErr_Occurred()) SWIG_fail; | |
1782 | } | |
1783 | Py_INCREF(Py_None); resultobj = Py_None; | |
1784 | { | |
1785 | if (arg3) delete [] arg3; | |
1786 | } | |
1787 | return resultobj; | |
1788 | fail: | |
1789 | { | |
1790 | if (arg3) delete [] arg3; | |
1791 | } | |
1792 | return NULL; | |
1793 | } | |
1794 | ||
1795 | ||
1796 | static PyObject * PyPen_swigregister(PyObject *self, PyObject *args) { | |
1797 | PyObject *obj; | |
1798 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1799 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPen, obj); | |
1800 | Py_INCREF(obj); | |
1801 | return Py_BuildValue((char *)""); | |
1802 | } | |
1803 | static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1804 | PyObject *resultobj; | |
1805 | wxColour *arg1 = 0 ; | |
1806 | int arg2 = (int) wxSOLID ; | |
1807 | wxBrush *result; | |
1808 | wxColour temp1 ; | |
1809 | PyObject * obj0 = 0 ; | |
1810 | char *kwnames[] = { | |
1811 | (char *) "colour",(char *) "style", NULL | |
1812 | }; | |
1813 | ||
1814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_Brush",kwnames,&obj0,&arg2)) goto fail; | |
1815 | { | |
1816 | arg1 = &temp1; | |
1817 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
1818 | } | |
1819 | { | |
1820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1821 | result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2); | |
1822 | ||
1823 | wxPyEndAllowThreads(__tstate); | |
1824 | if (PyErr_Occurred()) SWIG_fail; | |
1825 | } | |
1826 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 1); | |
1827 | return resultobj; | |
1828 | fail: | |
1829 | return NULL; | |
1830 | } | |
1831 | ||
1832 | ||
1833 | static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1834 | PyObject *resultobj; | |
1835 | wxBrush *arg1 = (wxBrush *) 0 ; | |
1836 | PyObject * obj0 = 0 ; | |
1837 | char *kwnames[] = { | |
1838 | (char *) "self", NULL | |
1839 | }; | |
1840 | ||
1841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail; | |
1842 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1843 | { | |
1844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1845 | delete arg1; | |
1846 | ||
1847 | wxPyEndAllowThreads(__tstate); | |
1848 | if (PyErr_Occurred()) SWIG_fail; | |
1849 | } | |
1850 | Py_INCREF(Py_None); resultobj = Py_None; | |
1851 | return resultobj; | |
1852 | fail: | |
1853 | return NULL; | |
1854 | } | |
1855 | ||
1856 | ||
1857 | static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1858 | PyObject *resultobj; | |
1859 | wxBrush *arg1 = (wxBrush *) 0 ; | |
1860 | wxColour *arg2 = 0 ; | |
1861 | wxColour temp2 ; | |
1862 | PyObject * obj0 = 0 ; | |
1863 | PyObject * obj1 = 0 ; | |
1864 | char *kwnames[] = { | |
1865 | (char *) "self",(char *) "col", NULL | |
1866 | }; | |
1867 | ||
1868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
1869 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1870 | { | |
1871 | arg2 = &temp2; | |
1872 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1873 | } | |
1874 | { | |
1875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1876 | (arg1)->SetColour((wxColour const &)*arg2); | |
1877 | ||
1878 | wxPyEndAllowThreads(__tstate); | |
1879 | if (PyErr_Occurred()) SWIG_fail; | |
1880 | } | |
1881 | Py_INCREF(Py_None); resultobj = Py_None; | |
1882 | return resultobj; | |
1883 | fail: | |
1884 | return NULL; | |
1885 | } | |
1886 | ||
1887 | ||
1888 | static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1889 | PyObject *resultobj; | |
1890 | wxBrush *arg1 = (wxBrush *) 0 ; | |
1891 | int arg2 ; | |
1892 | PyObject * obj0 = 0 ; | |
1893 | char *kwnames[] = { | |
1894 | (char *) "self",(char *) "style", NULL | |
1895 | }; | |
1896 | ||
1897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Brush_SetStyle",kwnames,&obj0,&arg2)) goto fail; | |
1898 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1899 | { | |
1900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1901 | (arg1)->SetStyle(arg2); | |
1902 | ||
1903 | wxPyEndAllowThreads(__tstate); | |
1904 | if (PyErr_Occurred()) SWIG_fail; | |
1905 | } | |
1906 | Py_INCREF(Py_None); resultobj = Py_None; | |
1907 | return resultobj; | |
1908 | fail: | |
1909 | return NULL; | |
1910 | } | |
1911 | ||
1912 | ||
1913 | static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1914 | PyObject *resultobj; | |
1915 | wxBrush *arg1 = (wxBrush *) 0 ; | |
1916 | wxBitmap *arg2 = 0 ; | |
1917 | PyObject * obj0 = 0 ; | |
1918 | PyObject * obj1 = 0 ; | |
1919 | char *kwnames[] = { | |
1920 | (char *) "self",(char *) "stipple", NULL | |
1921 | }; | |
1922 | ||
1923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail; | |
1924 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1925 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1926 | if (arg2 == NULL) { | |
1927 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1928 | } | |
1929 | { | |
1930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1931 | (arg1)->SetStipple((wxBitmap const &)*arg2); | |
1932 | ||
1933 | wxPyEndAllowThreads(__tstate); | |
1934 | if (PyErr_Occurred()) SWIG_fail; | |
1935 | } | |
1936 | Py_INCREF(Py_None); resultobj = Py_None; | |
1937 | return resultobj; | |
1938 | fail: | |
1939 | return NULL; | |
1940 | } | |
1941 | ||
1942 | ||
1943 | static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1944 | PyObject *resultobj; | |
1945 | wxBrush *arg1 = (wxBrush *) 0 ; | |
1946 | wxColour result; | |
1947 | PyObject * obj0 = 0 ; | |
1948 | char *kwnames[] = { | |
1949 | (char *) "self", NULL | |
1950 | }; | |
1951 | ||
1952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail; | |
1953 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1954 | { | |
1955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1956 | result = ((wxBrush const *)arg1)->GetColour(); | |
1957 | ||
1958 | wxPyEndAllowThreads(__tstate); | |
1959 | if (PyErr_Occurred()) SWIG_fail; | |
1960 | } | |
1961 | { | |
1962 | wxColour * resultptr; | |
1963 | resultptr = new wxColour((wxColour &) result); | |
1964 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
1965 | } | |
1966 | return resultobj; | |
1967 | fail: | |
1968 | return NULL; | |
1969 | } | |
1970 | ||
1971 | ||
1972 | static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1973 | PyObject *resultobj; | |
1974 | wxBrush *arg1 = (wxBrush *) 0 ; | |
1975 | int result; | |
1976 | PyObject * obj0 = 0 ; | |
1977 | char *kwnames[] = { | |
1978 | (char *) "self", NULL | |
1979 | }; | |
1980 | ||
1981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail; | |
1982 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1983 | { | |
1984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1985 | result = (int)((wxBrush const *)arg1)->GetStyle(); | |
1986 | ||
1987 | wxPyEndAllowThreads(__tstate); | |
1988 | if (PyErr_Occurred()) SWIG_fail; | |
1989 | } | |
1990 | resultobj = PyInt_FromLong((long)result); | |
1991 | return resultobj; | |
1992 | fail: | |
1993 | return NULL; | |
1994 | } | |
1995 | ||
1996 | ||
1997 | static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1998 | PyObject *resultobj; | |
1999 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2000 | wxBitmap *result; | |
2001 | PyObject * obj0 = 0 ; | |
2002 | char *kwnames[] = { | |
2003 | (char *) "self", NULL | |
2004 | }; | |
2005 | ||
2006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail; | |
2007 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2008 | { | |
2009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2010 | result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple(); | |
2011 | ||
2012 | wxPyEndAllowThreads(__tstate); | |
2013 | if (PyErr_Occurred()) SWIG_fail; | |
2014 | } | |
2015 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
2016 | return resultobj; | |
2017 | fail: | |
2018 | return NULL; | |
2019 | } | |
2020 | ||
2021 | ||
2022 | static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2023 | PyObject *resultobj; | |
2024 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2025 | bool result; | |
2026 | PyObject * obj0 = 0 ; | |
2027 | char *kwnames[] = { | |
2028 | (char *) "self", NULL | |
2029 | }; | |
2030 | ||
2031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail; | |
2032 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2033 | { | |
2034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2035 | result = (bool)(arg1)->Ok(); | |
2036 | ||
2037 | wxPyEndAllowThreads(__tstate); | |
2038 | if (PyErr_Occurred()) SWIG_fail; | |
2039 | } | |
2040 | resultobj = PyInt_FromLong((long)result); | |
2041 | return resultobj; | |
2042 | fail: | |
2043 | return NULL; | |
2044 | } | |
2045 | ||
2046 | ||
2047 | static PyObject *_wrap_Brush_GetMacTheme(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2048 | PyObject *resultobj; | |
2049 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2050 | short result; | |
2051 | PyObject * obj0 = 0 ; | |
2052 | char *kwnames[] = { | |
2053 | (char *) "self", NULL | |
2054 | }; | |
2055 | ||
2056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetMacTheme",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 = (short)(arg1)->GetMacTheme(); | |
2061 | ||
2062 | wxPyEndAllowThreads(__tstate); | |
2063 | if (PyErr_Occurred()) SWIG_fail; | |
2064 | } | |
2065 | resultobj = PyInt_FromLong((long)result); | |
2066 | return resultobj; | |
2067 | fail: | |
2068 | return NULL; | |
2069 | } | |
2070 | ||
2071 | ||
2072 | static PyObject *_wrap_Brush_SetMacTheme(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2073 | PyObject *resultobj; | |
2074 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2075 | short arg2 ; | |
2076 | PyObject * obj0 = 0 ; | |
2077 | char *kwnames[] = { | |
2078 | (char *) "self",(char *) "macThemeBrush", NULL | |
2079 | }; | |
2080 | ||
2081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oh:Brush_SetMacTheme",kwnames,&obj0,&arg2)) goto fail; | |
2082 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2083 | { | |
2084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2085 | (arg1)->SetMacTheme(arg2); | |
2086 | ||
2087 | wxPyEndAllowThreads(__tstate); | |
2088 | if (PyErr_Occurred()) SWIG_fail; | |
2089 | } | |
2090 | Py_INCREF(Py_None); resultobj = Py_None; | |
2091 | return resultobj; | |
2092 | fail: | |
2093 | return NULL; | |
2094 | } | |
2095 | ||
2096 | ||
2097 | static PyObject * Brush_swigregister(PyObject *self, PyObject *args) { | |
2098 | PyObject *obj; | |
2099 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2100 | SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj); | |
2101 | Py_INCREF(obj); | |
2102 | return Py_BuildValue((char *)""); | |
2103 | } | |
2104 | static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2105 | PyObject *resultobj; | |
2106 | wxString *arg1 = 0 ; | |
2107 | int arg2 = (int) wxBITMAP_TYPE_ANY ; | |
2108 | wxBitmap *result; | |
423f194a | 2109 | bool temp1 = False ; |
d14a1e28 RD |
2110 | PyObject * obj0 = 0 ; |
2111 | char *kwnames[] = { | |
2112 | (char *) "name",(char *) "type", NULL | |
2113 | }; | |
2114 | ||
2115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_Bitmap",kwnames,&obj0,&arg2)) goto fail; | |
2116 | { | |
2117 | arg1 = wxString_in_helper(obj0); | |
2118 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2119 | temp1 = True; |
d14a1e28 RD |
2120 | } |
2121 | { | |
2122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2123 | result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2); | |
2124 | ||
2125 | wxPyEndAllowThreads(__tstate); | |
2126 | if (PyErr_Occurred()) SWIG_fail; | |
2127 | } | |
2128 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2129 | { | |
2130 | if (temp1) | |
2131 | delete arg1; | |
2132 | } | |
2133 | return resultobj; | |
2134 | fail: | |
2135 | { | |
2136 | if (temp1) | |
2137 | delete arg1; | |
2138 | } | |
2139 | return NULL; | |
2140 | } | |
2141 | ||
2142 | ||
2143 | static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2144 | PyObject *resultobj; | |
2145 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2146 | PyObject * obj0 = 0 ; | |
2147 | char *kwnames[] = { | |
2148 | (char *) "self", NULL | |
2149 | }; | |
2150 | ||
2151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail; | |
2152 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2153 | { | |
2154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2155 | delete arg1; | |
2156 | ||
2157 | wxPyEndAllowThreads(__tstate); | |
2158 | if (PyErr_Occurred()) SWIG_fail; | |
2159 | } | |
2160 | Py_INCREF(Py_None); resultobj = Py_None; | |
2161 | return resultobj; | |
2162 | fail: | |
2163 | return NULL; | |
2164 | } | |
2165 | ||
2166 | ||
2167 | static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2168 | PyObject *resultobj; | |
2169 | int arg1 ; | |
2170 | int arg2 ; | |
2171 | int arg3 = (int) -1 ; | |
2172 | wxBitmap *result; | |
2173 | char *kwnames[] = { | |
2174 | (char *) "width",(char *) "height",(char *) "depth", NULL | |
2175 | }; | |
2176 | ||
2177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii|i:new_EmptyBitmap",kwnames,&arg1,&arg2,&arg3)) goto fail; | |
2178 | { | |
2179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2180 | result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3); | |
2181 | ||
2182 | wxPyEndAllowThreads(__tstate); | |
2183 | if (PyErr_Occurred()) SWIG_fail; | |
2184 | } | |
2185 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2186 | return resultobj; | |
2187 | fail: | |
2188 | return NULL; | |
2189 | } | |
2190 | ||
2191 | ||
2192 | static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2193 | PyObject *resultobj; | |
2194 | wxIcon *arg1 = 0 ; | |
2195 | wxBitmap *result; | |
2196 | PyObject * obj0 = 0 ; | |
2197 | char *kwnames[] = { | |
2198 | (char *) "icon", NULL | |
2199 | }; | |
2200 | ||
2201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail; | |
2202 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2203 | if (arg1 == NULL) { | |
2204 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2205 | } | |
2206 | { | |
2207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2208 | result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1); | |
2209 | ||
2210 | wxPyEndAllowThreads(__tstate); | |
2211 | if (PyErr_Occurred()) SWIG_fail; | |
2212 | } | |
2213 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2214 | return resultobj; | |
2215 | fail: | |
2216 | return NULL; | |
2217 | } | |
2218 | ||
2219 | ||
2220 | static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2221 | PyObject *resultobj; | |
2222 | wxImage *arg1 = 0 ; | |
2223 | int arg2 = (int) -1 ; | |
2224 | wxBitmap *result; | |
2225 | PyObject * obj0 = 0 ; | |
2226 | char *kwnames[] = { | |
2227 | (char *) "image",(char *) "depth", NULL | |
2228 | }; | |
2229 | ||
2230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_BitmapFromImage",kwnames,&obj0,&arg2)) goto fail; | |
2231 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2232 | if (arg1 == NULL) { | |
2233 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2234 | } | |
2235 | { | |
2236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2237 | result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2); | |
2238 | ||
2239 | wxPyEndAllowThreads(__tstate); | |
2240 | if (PyErr_Occurred()) SWIG_fail; | |
2241 | } | |
2242 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2243 | return resultobj; | |
2244 | fail: | |
2245 | return NULL; | |
2246 | } | |
2247 | ||
2248 | ||
2249 | static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2250 | PyObject *resultobj; | |
2251 | PyObject *arg1 = (PyObject *) 0 ; | |
2252 | wxBitmap *result; | |
2253 | PyObject * obj0 = 0 ; | |
2254 | char *kwnames[] = { | |
2255 | (char *) "listOfStrings", NULL | |
2256 | }; | |
2257 | ||
2258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail; | |
2259 | arg1 = obj0; | |
2260 | { | |
2261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2262 | result = (wxBitmap *)new_wxBitmap(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_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2275 | PyObject *resultobj; | |
2276 | PyObject *arg1 = (PyObject *) 0 ; | |
2277 | int arg2 ; | |
2278 | int arg3 ; | |
2279 | int arg4 = (int) 1 ; | |
2280 | wxBitmap *result; | |
2281 | PyObject * obj0 = 0 ; | |
2282 | char *kwnames[] = { | |
2283 | (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL | |
2284 | }; | |
2285 | ||
2286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|i:new_BitmapFromBits",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
2287 | arg1 = obj0; | |
2288 | { | |
2289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2290 | result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4); | |
2291 | ||
2292 | wxPyEndAllowThreads(__tstate); | |
2293 | if (PyErr_Occurred()) SWIG_fail; | |
2294 | } | |
2295 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2296 | return resultobj; | |
2297 | fail: | |
2298 | return NULL; | |
2299 | } | |
2300 | ||
2301 | ||
2302 | static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2303 | PyObject *resultobj; | |
2304 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2305 | bool result; | |
2306 | PyObject * obj0 = 0 ; | |
2307 | char *kwnames[] = { | |
2308 | (char *) "self", NULL | |
2309 | }; | |
2310 | ||
2311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail; | |
2312 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2313 | { | |
2314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2315 | result = (bool)(arg1)->Ok(); | |
2316 | ||
2317 | wxPyEndAllowThreads(__tstate); | |
2318 | if (PyErr_Occurred()) SWIG_fail; | |
2319 | } | |
2320 | resultobj = PyInt_FromLong((long)result); | |
2321 | return resultobj; | |
2322 | fail: | |
2323 | return NULL; | |
2324 | } | |
2325 | ||
2326 | ||
2327 | static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2328 | PyObject *resultobj; | |
2329 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2330 | int result; | |
2331 | PyObject * obj0 = 0 ; | |
2332 | char *kwnames[] = { | |
2333 | (char *) "self", NULL | |
2334 | }; | |
2335 | ||
2336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail; | |
2337 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2338 | { | |
2339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2340 | result = (int)(arg1)->GetWidth(); | |
2341 | ||
2342 | wxPyEndAllowThreads(__tstate); | |
2343 | if (PyErr_Occurred()) SWIG_fail; | |
2344 | } | |
2345 | resultobj = PyInt_FromLong((long)result); | |
2346 | return resultobj; | |
2347 | fail: | |
2348 | return NULL; | |
2349 | } | |
2350 | ||
2351 | ||
2352 | static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2353 | PyObject *resultobj; | |
2354 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2355 | int result; | |
2356 | PyObject * obj0 = 0 ; | |
2357 | char *kwnames[] = { | |
2358 | (char *) "self", NULL | |
2359 | }; | |
2360 | ||
2361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail; | |
2362 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2363 | { | |
2364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2365 | result = (int)(arg1)->GetHeight(); | |
2366 | ||
2367 | wxPyEndAllowThreads(__tstate); | |
2368 | if (PyErr_Occurred()) SWIG_fail; | |
2369 | } | |
2370 | resultobj = PyInt_FromLong((long)result); | |
2371 | return resultobj; | |
2372 | fail: | |
2373 | return NULL; | |
2374 | } | |
2375 | ||
2376 | ||
2377 | static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2378 | PyObject *resultobj; | |
2379 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2380 | int result; | |
2381 | PyObject * obj0 = 0 ; | |
2382 | char *kwnames[] = { | |
2383 | (char *) "self", NULL | |
2384 | }; | |
2385 | ||
2386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail; | |
2387 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2388 | { | |
2389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2390 | result = (int)(arg1)->GetDepth(); | |
2391 | ||
2392 | wxPyEndAllowThreads(__tstate); | |
2393 | if (PyErr_Occurred()) SWIG_fail; | |
2394 | } | |
2395 | resultobj = PyInt_FromLong((long)result); | |
2396 | return resultobj; | |
2397 | fail: | |
2398 | return NULL; | |
2399 | } | |
2400 | ||
2401 | ||
2402 | static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2403 | PyObject *resultobj; | |
2404 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2405 | SwigValueWrapper< wxImage > result; | |
2406 | PyObject * obj0 = 0 ; | |
2407 | char *kwnames[] = { | |
2408 | (char *) "self", NULL | |
2409 | }; | |
2410 | ||
2411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail; | |
2412 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2413 | { | |
2414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2415 | result = ((wxBitmap const *)arg1)->ConvertToImage(); | |
2416 | ||
2417 | wxPyEndAllowThreads(__tstate); | |
2418 | if (PyErr_Occurred()) SWIG_fail; | |
2419 | } | |
2420 | { | |
2421 | wxImage * resultptr; | |
2422 | resultptr = new wxImage((wxImage &) result); | |
2423 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
2424 | } | |
2425 | return resultobj; | |
2426 | fail: | |
2427 | return NULL; | |
2428 | } | |
2429 | ||
2430 | ||
2431 | static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2432 | PyObject *resultobj; | |
2433 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2434 | wxMask *result; | |
2435 | PyObject * obj0 = 0 ; | |
2436 | char *kwnames[] = { | |
2437 | (char *) "self", NULL | |
2438 | }; | |
2439 | ||
2440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail; | |
2441 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2442 | { | |
2443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2444 | result = (wxMask *)((wxBitmap const *)arg1)->GetMask(); | |
2445 | ||
2446 | wxPyEndAllowThreads(__tstate); | |
2447 | if (PyErr_Occurred()) SWIG_fail; | |
2448 | } | |
2449 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 0); | |
2450 | return resultobj; | |
2451 | fail: | |
2452 | return NULL; | |
2453 | } | |
2454 | ||
2455 | ||
2456 | static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2457 | PyObject *resultobj; | |
2458 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2459 | wxMask *arg2 = (wxMask *) 0 ; | |
2460 | PyObject * obj0 = 0 ; | |
2461 | PyObject * obj1 = 0 ; | |
2462 | char *kwnames[] = { | |
2463 | (char *) "self",(char *) "mask", NULL | |
2464 | }; | |
2465 | ||
2466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
2467 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2468 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2469 | { | |
2470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2471 | (arg1)->SetMask(arg2); | |
2472 | ||
2473 | wxPyEndAllowThreads(__tstate); | |
2474 | if (PyErr_Occurred()) SWIG_fail; | |
2475 | } | |
2476 | Py_INCREF(Py_None); resultobj = Py_None; | |
2477 | return resultobj; | |
2478 | fail: | |
2479 | return NULL; | |
2480 | } | |
2481 | ||
2482 | ||
2483 | static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2484 | PyObject *resultobj; | |
2485 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2486 | wxColour *arg2 = 0 ; | |
2487 | wxColour temp2 ; | |
2488 | PyObject * obj0 = 0 ; | |
2489 | PyObject * obj1 = 0 ; | |
2490 | char *kwnames[] = { | |
2491 | (char *) "self",(char *) "colour", NULL | |
2492 | }; | |
2493 | ||
2494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail; | |
2495 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2496 | { | |
2497 | arg2 = &temp2; | |
2498 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
2499 | } | |
2500 | { | |
2501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2502 | wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2); | |
2503 | ||
2504 | wxPyEndAllowThreads(__tstate); | |
2505 | if (PyErr_Occurred()) SWIG_fail; | |
2506 | } | |
2507 | Py_INCREF(Py_None); resultobj = Py_None; | |
2508 | return resultobj; | |
2509 | fail: | |
2510 | return NULL; | |
2511 | } | |
2512 | ||
2513 | ||
2514 | static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2515 | PyObject *resultobj; | |
2516 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2517 | wxRect *arg2 = 0 ; | |
2518 | SwigValueWrapper< wxBitmap > result; | |
2519 | wxRect temp2 ; | |
2520 | PyObject * obj0 = 0 ; | |
2521 | PyObject * obj1 = 0 ; | |
2522 | char *kwnames[] = { | |
2523 | (char *) "self",(char *) "rect", NULL | |
2524 | }; | |
2525 | ||
2526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail; | |
2527 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2528 | { | |
2529 | arg2 = &temp2; | |
2530 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
2531 | } | |
2532 | { | |
2533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2534 | result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2); | |
2535 | ||
2536 | wxPyEndAllowThreads(__tstate); | |
2537 | if (PyErr_Occurred()) SWIG_fail; | |
2538 | } | |
2539 | { | |
2540 | wxBitmap * resultptr; | |
2541 | resultptr = new wxBitmap((wxBitmap &) result); | |
2542 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
2543 | } | |
2544 | return resultobj; | |
2545 | fail: | |
2546 | return NULL; | |
2547 | } | |
2548 | ||
2549 | ||
2550 | static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2551 | PyObject *resultobj; | |
2552 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2553 | wxString *arg2 = 0 ; | |
2554 | int arg3 ; | |
2555 | wxPalette *arg4 = (wxPalette *) (wxPalette *) NULL ; | |
2556 | bool result; | |
423f194a | 2557 | bool temp2 = False ; |
d14a1e28 RD |
2558 | PyObject * obj0 = 0 ; |
2559 | PyObject * obj1 = 0 ; | |
2560 | PyObject * obj3 = 0 ; | |
2561 | char *kwnames[] = { | |
2562 | (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL | |
2563 | }; | |
2564 | ||
2565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&arg3,&obj3)) goto fail; | |
2566 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2567 | { | |
2568 | arg2 = wxString_in_helper(obj1); | |
2569 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2570 | temp2 = True; |
d14a1e28 RD |
2571 | } |
2572 | if (obj3) { | |
2573 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2574 | } | |
2575 | { | |
2576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2577 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4); | |
2578 | ||
2579 | wxPyEndAllowThreads(__tstate); | |
2580 | if (PyErr_Occurred()) SWIG_fail; | |
2581 | } | |
2582 | resultobj = PyInt_FromLong((long)result); | |
2583 | { | |
2584 | if (temp2) | |
2585 | delete arg2; | |
2586 | } | |
2587 | return resultobj; | |
2588 | fail: | |
2589 | { | |
2590 | if (temp2) | |
2591 | delete arg2; | |
2592 | } | |
2593 | return NULL; | |
2594 | } | |
2595 | ||
2596 | ||
2597 | static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2598 | PyObject *resultobj; | |
2599 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2600 | wxString *arg2 = 0 ; | |
2601 | int arg3 ; | |
2602 | bool result; | |
423f194a | 2603 | bool temp2 = False ; |
d14a1e28 RD |
2604 | PyObject * obj0 = 0 ; |
2605 | PyObject * obj1 = 0 ; | |
2606 | char *kwnames[] = { | |
2607 | (char *) "self",(char *) "name",(char *) "type", NULL | |
2608 | }; | |
2609 | ||
2610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:Bitmap_LoadFile",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
2611 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2612 | { | |
2613 | arg2 = wxString_in_helper(obj1); | |
2614 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2615 | temp2 = True; |
d14a1e28 RD |
2616 | } |
2617 | { | |
2618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2619 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3); | |
2620 | ||
2621 | wxPyEndAllowThreads(__tstate); | |
2622 | if (PyErr_Occurred()) SWIG_fail; | |
2623 | } | |
2624 | resultobj = PyInt_FromLong((long)result); | |
2625 | { | |
2626 | if (temp2) | |
2627 | delete arg2; | |
2628 | } | |
2629 | return resultobj; | |
2630 | fail: | |
2631 | { | |
2632 | if (temp2) | |
2633 | delete arg2; | |
2634 | } | |
2635 | return NULL; | |
2636 | } | |
2637 | ||
2638 | ||
2639 | static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2640 | PyObject *resultobj; | |
2641 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2642 | wxIcon *arg2 = 0 ; | |
2643 | bool result; | |
2644 | PyObject * obj0 = 0 ; | |
2645 | PyObject * obj1 = 0 ; | |
2646 | char *kwnames[] = { | |
2647 | (char *) "self",(char *) "icon", NULL | |
2648 | }; | |
2649 | ||
2650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail; | |
2651 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2652 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2653 | if (arg2 == NULL) { | |
2654 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2655 | } | |
2656 | { | |
2657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2658 | result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2); | |
2659 | ||
2660 | wxPyEndAllowThreads(__tstate); | |
2661 | if (PyErr_Occurred()) SWIG_fail; | |
2662 | } | |
2663 | resultobj = PyInt_FromLong((long)result); | |
2664 | return resultobj; | |
2665 | fail: | |
2666 | return NULL; | |
2667 | } | |
2668 | ||
2669 | ||
2670 | static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2671 | PyObject *resultobj; | |
2672 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2673 | int arg2 ; | |
2674 | PyObject * obj0 = 0 ; | |
2675 | char *kwnames[] = { | |
2676 | (char *) "self",(char *) "height", NULL | |
2677 | }; | |
2678 | ||
2679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Bitmap_SetHeight",kwnames,&obj0,&arg2)) goto fail; | |
2680 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2681 | { | |
2682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2683 | (arg1)->SetHeight(arg2); | |
2684 | ||
2685 | wxPyEndAllowThreads(__tstate); | |
2686 | if (PyErr_Occurred()) SWIG_fail; | |
2687 | } | |
2688 | Py_INCREF(Py_None); resultobj = Py_None; | |
2689 | return resultobj; | |
2690 | fail: | |
2691 | return NULL; | |
2692 | } | |
2693 | ||
2694 | ||
2695 | static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2696 | PyObject *resultobj; | |
2697 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2698 | int arg2 ; | |
2699 | PyObject * obj0 = 0 ; | |
2700 | char *kwnames[] = { | |
2701 | (char *) "self",(char *) "width", NULL | |
2702 | }; | |
2703 | ||
2704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Bitmap_SetWidth",kwnames,&obj0,&arg2)) goto fail; | |
2705 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2706 | { | |
2707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2708 | (arg1)->SetWidth(arg2); | |
2709 | ||
2710 | wxPyEndAllowThreads(__tstate); | |
2711 | if (PyErr_Occurred()) SWIG_fail; | |
2712 | } | |
2713 | Py_INCREF(Py_None); resultobj = Py_None; | |
2714 | return resultobj; | |
2715 | fail: | |
2716 | return NULL; | |
2717 | } | |
2718 | ||
2719 | ||
2720 | static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2721 | PyObject *resultobj; | |
2722 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2723 | int arg2 ; | |
2724 | PyObject * obj0 = 0 ; | |
2725 | char *kwnames[] = { | |
2726 | (char *) "self",(char *) "depth", NULL | |
2727 | }; | |
2728 | ||
2729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Bitmap_SetDepth",kwnames,&obj0,&arg2)) goto fail; | |
2730 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2731 | { | |
2732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2733 | (arg1)->SetDepth(arg2); | |
2734 | ||
2735 | wxPyEndAllowThreads(__tstate); | |
2736 | if (PyErr_Occurred()) SWIG_fail; | |
2737 | } | |
2738 | Py_INCREF(Py_None); resultobj = Py_None; | |
2739 | return resultobj; | |
2740 | fail: | |
2741 | return NULL; | |
2742 | } | |
2743 | ||
2744 | ||
2745 | static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) { | |
2746 | PyObject *obj; | |
2747 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2748 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj); | |
2749 | Py_INCREF(obj); | |
2750 | return Py_BuildValue((char *)""); | |
2751 | } | |
2752 | static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2753 | PyObject *resultobj; | |
2754 | wxBitmap *arg1 = 0 ; | |
2755 | wxMask *result; | |
2756 | PyObject * obj0 = 0 ; | |
2757 | char *kwnames[] = { | |
2758 | (char *) "bitmap", NULL | |
2759 | }; | |
2760 | ||
2761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Mask",kwnames,&obj0)) goto fail; | |
2762 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2763 | if (arg1 == NULL) { | |
2764 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2765 | } | |
2766 | { | |
2767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2768 | result = (wxMask *)new wxMask((wxBitmap const &)*arg1); | |
2769 | ||
2770 | wxPyEndAllowThreads(__tstate); | |
2771 | if (PyErr_Occurred()) SWIG_fail; | |
2772 | } | |
2773 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1); | |
2774 | return resultobj; | |
2775 | fail: | |
2776 | return NULL; | |
2777 | } | |
2778 | ||
2779 | ||
2780 | static PyObject *_wrap_new_MaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2781 | PyObject *resultobj; | |
2782 | wxBitmap *arg1 = 0 ; | |
2783 | wxColour *arg2 = 0 ; | |
2784 | wxMask *result; | |
2785 | wxColour temp2 ; | |
2786 | PyObject * obj0 = 0 ; | |
2787 | PyObject * obj1 = 0 ; | |
2788 | char *kwnames[] = { | |
2789 | (char *) "bitmap",(char *) "colour", NULL | |
2790 | }; | |
2791 | ||
2792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MaskColour",kwnames,&obj0,&obj1)) goto fail; | |
2793 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2794 | if (arg1 == NULL) { | |
2795 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2796 | } | |
2797 | { | |
2798 | arg2 = &temp2; | |
2799 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
2800 | } | |
2801 | { | |
2802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2803 | result = (wxMask *)new wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2); | |
2804 | ||
2805 | wxPyEndAllowThreads(__tstate); | |
2806 | if (PyErr_Occurred()) SWIG_fail; | |
2807 | } | |
2808 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1); | |
2809 | return resultobj; | |
2810 | fail: | |
2811 | return NULL; | |
2812 | } | |
2813 | ||
2814 | ||
2815 | static PyObject * Mask_swigregister(PyObject *self, PyObject *args) { | |
2816 | PyObject *obj; | |
2817 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2818 | SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj); | |
2819 | Py_INCREF(obj); | |
2820 | return Py_BuildValue((char *)""); | |
2821 | } | |
2822 | static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2823 | PyObject *resultobj; | |
2824 | wxString *arg1 = 0 ; | |
2825 | long arg2 ; | |
2826 | int arg3 = (int) -1 ; | |
2827 | int arg4 = (int) -1 ; | |
2828 | wxIcon *result; | |
423f194a | 2829 | bool temp1 = False ; |
d14a1e28 RD |
2830 | PyObject * obj0 = 0 ; |
2831 | char *kwnames[] = { | |
2832 | (char *) "name",(char *) "flags",(char *) "desiredWidth",(char *) "desiredHeight", NULL | |
2833 | }; | |
2834 | ||
2835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|ii:new_Icon",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
2836 | { | |
2837 | arg1 = wxString_in_helper(obj0); | |
2838 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2839 | temp1 = True; |
d14a1e28 RD |
2840 | } |
2841 | { | |
2842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2843 | result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4); | |
2844 | ||
2845 | wxPyEndAllowThreads(__tstate); | |
2846 | if (PyErr_Occurred()) SWIG_fail; | |
2847 | } | |
2848 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
2849 | { | |
2850 | if (temp1) | |
2851 | delete arg1; | |
2852 | } | |
2853 | return resultobj; | |
2854 | fail: | |
2855 | { | |
2856 | if (temp1) | |
2857 | delete arg1; | |
2858 | } | |
2859 | return NULL; | |
2860 | } | |
2861 | ||
2862 | ||
2863 | static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2864 | PyObject *resultobj; | |
2865 | wxIcon *arg1 = (wxIcon *) 0 ; | |
2866 | PyObject * obj0 = 0 ; | |
2867 | char *kwnames[] = { | |
2868 | (char *) "self", NULL | |
2869 | }; | |
2870 | ||
2871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail; | |
2872 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2873 | { | |
2874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2875 | delete arg1; | |
2876 | ||
2877 | wxPyEndAllowThreads(__tstate); | |
2878 | if (PyErr_Occurred()) SWIG_fail; | |
2879 | } | |
2880 | Py_INCREF(Py_None); resultobj = Py_None; | |
2881 | return resultobj; | |
2882 | fail: | |
2883 | return NULL; | |
2884 | } | |
2885 | ||
2886 | ||
2887 | static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2888 | PyObject *resultobj; | |
2889 | wxIcon *result; | |
2890 | char *kwnames[] = { | |
2891 | NULL | |
2892 | }; | |
2893 | ||
2894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail; | |
2895 | { | |
2896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2897 | result = (wxIcon *)new wxIcon(); | |
2898 | ||
2899 | wxPyEndAllowThreads(__tstate); | |
2900 | if (PyErr_Occurred()) SWIG_fail; | |
2901 | } | |
2902 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
2903 | return resultobj; | |
2904 | fail: | |
2905 | return NULL; | |
2906 | } | |
2907 | ||
2908 | ||
2909 | static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2910 | PyObject *resultobj; | |
2911 | wxIconLocation *arg1 = 0 ; | |
2912 | wxIcon *result; | |
2913 | PyObject * obj0 = 0 ; | |
2914 | char *kwnames[] = { | |
2915 | (char *) "loc", NULL | |
2916 | }; | |
2917 | ||
2918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail; | |
2919 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2920 | if (arg1 == NULL) { | |
2921 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2922 | } | |
2923 | { | |
2924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2925 | result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1); | |
2926 | ||
2927 | wxPyEndAllowThreads(__tstate); | |
2928 | if (PyErr_Occurred()) SWIG_fail; | |
2929 | } | |
2930 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
2931 | return resultobj; | |
2932 | fail: | |
2933 | return NULL; | |
2934 | } | |
2935 | ||
2936 | ||
2937 | static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2938 | PyObject *resultobj; | |
2939 | wxBitmap *arg1 = 0 ; | |
2940 | wxIcon *result; | |
2941 | PyObject * obj0 = 0 ; | |
2942 | char *kwnames[] = { | |
2943 | (char *) "bmp", NULL | |
2944 | }; | |
2945 | ||
2946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail; | |
2947 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2948 | if (arg1 == NULL) { | |
2949 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2950 | } | |
2951 | { | |
2952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2953 | result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1); | |
2954 | ||
2955 | wxPyEndAllowThreads(__tstate); | |
2956 | if (PyErr_Occurred()) SWIG_fail; | |
2957 | } | |
2958 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
2959 | return resultobj; | |
2960 | fail: | |
2961 | return NULL; | |
2962 | } | |
2963 | ||
2964 | ||
2965 | static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2966 | PyObject *resultobj; | |
2967 | PyObject *arg1 = (PyObject *) 0 ; | |
2968 | wxIcon *result; | |
2969 | PyObject * obj0 = 0 ; | |
2970 | char *kwnames[] = { | |
2971 | (char *) "listOfStrings", NULL | |
2972 | }; | |
2973 | ||
2974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail; | |
2975 | arg1 = obj0; | |
2976 | { | |
2977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2978 | result = (wxIcon *)new_wxIcon(arg1); | |
2979 | ||
2980 | wxPyEndAllowThreads(__tstate); | |
2981 | if (PyErr_Occurred()) SWIG_fail; | |
2982 | } | |
2983 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
2984 | return resultobj; | |
2985 | fail: | |
2986 | return NULL; | |
2987 | } | |
2988 | ||
2989 | ||
2990 | static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2991 | PyObject *resultobj; | |
2992 | wxIcon *arg1 = (wxIcon *) 0 ; | |
2993 | bool result; | |
2994 | PyObject * obj0 = 0 ; | |
2995 | char *kwnames[] = { | |
2996 | (char *) "self", NULL | |
2997 | }; | |
2998 | ||
2999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail; | |
3000 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3001 | { | |
3002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3003 | result = (bool)(arg1)->Ok(); | |
3004 | ||
3005 | wxPyEndAllowThreads(__tstate); | |
3006 | if (PyErr_Occurred()) SWIG_fail; | |
3007 | } | |
3008 | resultobj = PyInt_FromLong((long)result); | |
3009 | return resultobj; | |
3010 | fail: | |
3011 | return NULL; | |
3012 | } | |
3013 | ||
3014 | ||
3015 | static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3016 | PyObject *resultobj; | |
3017 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3018 | int result; | |
3019 | PyObject * obj0 = 0 ; | |
3020 | char *kwnames[] = { | |
3021 | (char *) "self", NULL | |
3022 | }; | |
3023 | ||
3024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail; | |
3025 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3026 | { | |
3027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3028 | result = (int)(arg1)->GetWidth(); | |
3029 | ||
3030 | wxPyEndAllowThreads(__tstate); | |
3031 | if (PyErr_Occurred()) SWIG_fail; | |
3032 | } | |
3033 | resultobj = PyInt_FromLong((long)result); | |
3034 | return resultobj; | |
3035 | fail: | |
3036 | return NULL; | |
3037 | } | |
3038 | ||
3039 | ||
3040 | static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3041 | PyObject *resultobj; | |
3042 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3043 | int result; | |
3044 | PyObject * obj0 = 0 ; | |
3045 | char *kwnames[] = { | |
3046 | (char *) "self", NULL | |
3047 | }; | |
3048 | ||
3049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail; | |
3050 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3051 | { | |
3052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3053 | result = (int)(arg1)->GetHeight(); | |
3054 | ||
3055 | wxPyEndAllowThreads(__tstate); | |
3056 | if (PyErr_Occurred()) SWIG_fail; | |
3057 | } | |
3058 | resultobj = PyInt_FromLong((long)result); | |
3059 | return resultobj; | |
3060 | fail: | |
3061 | return NULL; | |
3062 | } | |
3063 | ||
3064 | ||
3065 | static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3066 | PyObject *resultobj; | |
3067 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3068 | int result; | |
3069 | PyObject * obj0 = 0 ; | |
3070 | char *kwnames[] = { | |
3071 | (char *) "self", NULL | |
3072 | }; | |
3073 | ||
3074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail; | |
3075 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3076 | { | |
3077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3078 | result = (int)(arg1)->GetDepth(); | |
3079 | ||
3080 | wxPyEndAllowThreads(__tstate); | |
3081 | if (PyErr_Occurred()) SWIG_fail; | |
3082 | } | |
3083 | resultobj = PyInt_FromLong((long)result); | |
3084 | return resultobj; | |
3085 | fail: | |
3086 | return NULL; | |
3087 | } | |
3088 | ||
3089 | ||
3090 | static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3091 | PyObject *resultobj; | |
3092 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3093 | int arg2 ; | |
3094 | PyObject * obj0 = 0 ; | |
3095 | char *kwnames[] = { | |
3096 | (char *) "self",(char *) "w", NULL | |
3097 | }; | |
3098 | ||
3099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Icon_SetWidth",kwnames,&obj0,&arg2)) goto fail; | |
3100 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3101 | { | |
3102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3103 | (arg1)->SetWidth(arg2); | |
3104 | ||
3105 | wxPyEndAllowThreads(__tstate); | |
3106 | if (PyErr_Occurred()) SWIG_fail; | |
3107 | } | |
3108 | Py_INCREF(Py_None); resultobj = Py_None; | |
3109 | return resultobj; | |
3110 | fail: | |
3111 | return NULL; | |
3112 | } | |
3113 | ||
3114 | ||
3115 | static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3116 | PyObject *resultobj; | |
3117 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3118 | int arg2 ; | |
3119 | PyObject * obj0 = 0 ; | |
3120 | char *kwnames[] = { | |
3121 | (char *) "self",(char *) "h", NULL | |
3122 | }; | |
3123 | ||
3124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Icon_SetHeight",kwnames,&obj0,&arg2)) goto fail; | |
3125 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3126 | { | |
3127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3128 | (arg1)->SetHeight(arg2); | |
3129 | ||
3130 | wxPyEndAllowThreads(__tstate); | |
3131 | if (PyErr_Occurred()) SWIG_fail; | |
3132 | } | |
3133 | Py_INCREF(Py_None); resultobj = Py_None; | |
3134 | return resultobj; | |
3135 | fail: | |
3136 | return NULL; | |
3137 | } | |
3138 | ||
3139 | ||
3140 | static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3141 | PyObject *resultobj; | |
3142 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3143 | int arg2 ; | |
3144 | PyObject * obj0 = 0 ; | |
3145 | char *kwnames[] = { | |
3146 | (char *) "self",(char *) "d", NULL | |
3147 | }; | |
3148 | ||
3149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Icon_SetDepth",kwnames,&obj0,&arg2)) goto fail; | |
3150 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3151 | { | |
3152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3153 | (arg1)->SetDepth(arg2); | |
3154 | ||
3155 | wxPyEndAllowThreads(__tstate); | |
3156 | if (PyErr_Occurred()) SWIG_fail; | |
3157 | } | |
3158 | Py_INCREF(Py_None); resultobj = Py_None; | |
3159 | return resultobj; | |
3160 | fail: | |
3161 | return NULL; | |
3162 | } | |
3163 | ||
3164 | ||
3165 | static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3166 | PyObject *resultobj; | |
3167 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3168 | wxBitmap *arg2 = 0 ; | |
3169 | PyObject * obj0 = 0 ; | |
3170 | PyObject * obj1 = 0 ; | |
3171 | char *kwnames[] = { | |
3172 | (char *) "self",(char *) "bmp", NULL | |
3173 | }; | |
3174 | ||
3175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail; | |
3176 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3177 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3178 | if (arg2 == NULL) { | |
3179 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3180 | } | |
3181 | { | |
3182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3183 | (arg1)->CopyFromBitmap((wxBitmap const &)*arg2); | |
3184 | ||
3185 | wxPyEndAllowThreads(__tstate); | |
3186 | if (PyErr_Occurred()) SWIG_fail; | |
3187 | } | |
3188 | Py_INCREF(Py_None); resultobj = Py_None; | |
3189 | return resultobj; | |
3190 | fail: | |
3191 | return NULL; | |
3192 | } | |
3193 | ||
3194 | ||
3195 | static PyObject * Icon_swigregister(PyObject *self, PyObject *args) { | |
3196 | PyObject *obj; | |
3197 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3198 | SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj); | |
3199 | Py_INCREF(obj); | |
3200 | return Py_BuildValue((char *)""); | |
3201 | } | |
3202 | static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3203 | PyObject *resultobj; | |
3204 | wxString *arg1 = (wxString *) &wxPyEmptyString ; | |
3205 | int arg2 = (int) 0 ; | |
3206 | wxIconLocation *result; | |
3207 | PyObject * obj0 = 0 ; | |
3208 | char *kwnames[] = { | |
3209 | (char *) "filename",(char *) "num", NULL | |
3210 | }; | |
3211 | ||
3212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|Oi:new_IconLocation",kwnames,&obj0,&arg2)) goto fail; | |
3213 | if (obj0) { | |
3214 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3215 | } | |
3216 | { | |
3217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3218 | result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2); | |
3219 | ||
3220 | wxPyEndAllowThreads(__tstate); | |
3221 | if (PyErr_Occurred()) SWIG_fail; | |
3222 | } | |
3223 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconLocation, 1); | |
3224 | return resultobj; | |
3225 | fail: | |
3226 | return NULL; | |
3227 | } | |
3228 | ||
3229 | ||
3230 | static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3231 | PyObject *resultobj; | |
3232 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3233 | PyObject * obj0 = 0 ; | |
3234 | char *kwnames[] = { | |
3235 | (char *) "self", NULL | |
3236 | }; | |
3237 | ||
3238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail; | |
3239 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3240 | { | |
3241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3242 | delete arg1; | |
3243 | ||
3244 | wxPyEndAllowThreads(__tstate); | |
3245 | if (PyErr_Occurred()) SWIG_fail; | |
3246 | } | |
3247 | Py_INCREF(Py_None); resultobj = Py_None; | |
3248 | return resultobj; | |
3249 | fail: | |
3250 | return NULL; | |
3251 | } | |
3252 | ||
3253 | ||
3254 | static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3255 | PyObject *resultobj; | |
3256 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3257 | bool result; | |
3258 | PyObject * obj0 = 0 ; | |
3259 | char *kwnames[] = { | |
3260 | (char *) "self", NULL | |
3261 | }; | |
3262 | ||
3263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail; | |
3264 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3265 | { | |
3266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3267 | result = (bool)((wxIconLocation const *)arg1)->IsOk(); | |
3268 | ||
3269 | wxPyEndAllowThreads(__tstate); | |
3270 | if (PyErr_Occurred()) SWIG_fail; | |
3271 | } | |
3272 | resultobj = PyInt_FromLong((long)result); | |
3273 | return resultobj; | |
3274 | fail: | |
3275 | return NULL; | |
3276 | } | |
3277 | ||
3278 | ||
3279 | static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3280 | PyObject *resultobj; | |
3281 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3282 | wxString *arg2 = 0 ; | |
423f194a | 3283 | bool temp2 = False ; |
d14a1e28 RD |
3284 | PyObject * obj0 = 0 ; |
3285 | PyObject * obj1 = 0 ; | |
3286 | char *kwnames[] = { | |
3287 | (char *) "self",(char *) "filename", NULL | |
3288 | }; | |
3289 | ||
3290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail; | |
3291 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3292 | { | |
3293 | arg2 = wxString_in_helper(obj1); | |
3294 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3295 | temp2 = True; |
d14a1e28 RD |
3296 | } |
3297 | { | |
3298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3299 | (arg1)->SetFileName((wxString const &)*arg2); | |
3300 | ||
3301 | wxPyEndAllowThreads(__tstate); | |
3302 | if (PyErr_Occurred()) SWIG_fail; | |
3303 | } | |
3304 | Py_INCREF(Py_None); resultobj = Py_None; | |
3305 | { | |
3306 | if (temp2) | |
3307 | delete arg2; | |
3308 | } | |
3309 | return resultobj; | |
3310 | fail: | |
3311 | { | |
3312 | if (temp2) | |
3313 | delete arg2; | |
3314 | } | |
3315 | return NULL; | |
3316 | } | |
3317 | ||
3318 | ||
3319 | static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3320 | PyObject *resultobj; | |
3321 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3322 | wxString *result; | |
3323 | PyObject * obj0 = 0 ; | |
3324 | char *kwnames[] = { | |
3325 | (char *) "self", NULL | |
3326 | }; | |
3327 | ||
3328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail; | |
3329 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3330 | { | |
3331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3332 | { | |
3333 | wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName(); | |
3334 | result = (wxString *) &_result_ref; | |
3335 | } | |
3336 | ||
3337 | wxPyEndAllowThreads(__tstate); | |
3338 | if (PyErr_Occurred()) SWIG_fail; | |
3339 | } | |
0f774bef RD |
3340 | { |
3341 | #if wxUSE_UNICODE | |
3342 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
3343 | #else | |
3344 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
3345 | #endif | |
3346 | } | |
d14a1e28 RD |
3347 | return resultobj; |
3348 | fail: | |
3349 | return NULL; | |
3350 | } | |
3351 | ||
3352 | ||
3353 | static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3354 | PyObject *resultobj; | |
3355 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3356 | int arg2 ; | |
3357 | PyObject * obj0 = 0 ; | |
3358 | char *kwnames[] = { | |
3359 | (char *) "self",(char *) "num", NULL | |
3360 | }; | |
3361 | ||
3362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:IconLocation_SetIndex",kwnames,&obj0,&arg2)) goto fail; | |
3363 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3364 | { | |
3365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3366 | wxIconLocation_SetIndex(arg1,arg2); | |
3367 | ||
3368 | wxPyEndAllowThreads(__tstate); | |
3369 | if (PyErr_Occurred()) SWIG_fail; | |
3370 | } | |
3371 | Py_INCREF(Py_None); resultobj = Py_None; | |
3372 | return resultobj; | |
3373 | fail: | |
3374 | return NULL; | |
3375 | } | |
3376 | ||
3377 | ||
3378 | static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3379 | PyObject *resultobj; | |
3380 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3381 | int result; | |
3382 | PyObject * obj0 = 0 ; | |
3383 | char *kwnames[] = { | |
3384 | (char *) "self", NULL | |
3385 | }; | |
3386 | ||
3387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail; | |
3388 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3389 | { | |
3390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3391 | result = (int)wxIconLocation_GetIndex(arg1); | |
3392 | ||
3393 | wxPyEndAllowThreads(__tstate); | |
3394 | if (PyErr_Occurred()) SWIG_fail; | |
3395 | } | |
3396 | resultobj = PyInt_FromLong((long)result); | |
3397 | return resultobj; | |
3398 | fail: | |
3399 | return NULL; | |
3400 | } | |
3401 | ||
3402 | ||
3403 | static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) { | |
3404 | PyObject *obj; | |
3405 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3406 | SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj); | |
3407 | Py_INCREF(obj); | |
3408 | return Py_BuildValue((char *)""); | |
3409 | } | |
3410 | static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3411 | PyObject *resultobj; | |
3412 | wxIconBundle *result; | |
3413 | char *kwnames[] = { | |
3414 | NULL | |
3415 | }; | |
3416 | ||
3417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail; | |
3418 | { | |
3419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3420 | result = (wxIconBundle *)new wxIconBundle(); | |
3421 | ||
3422 | wxPyEndAllowThreads(__tstate); | |
3423 | if (PyErr_Occurred()) SWIG_fail; | |
3424 | } | |
3425 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1); | |
3426 | return resultobj; | |
3427 | fail: | |
3428 | return NULL; | |
3429 | } | |
3430 | ||
3431 | ||
3432 | static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3433 | PyObject *resultobj; | |
3434 | wxString *arg1 = 0 ; | |
3435 | long arg2 ; | |
3436 | wxIconBundle *result; | |
423f194a | 3437 | bool temp1 = False ; |
d14a1e28 RD |
3438 | PyObject * obj0 = 0 ; |
3439 | char *kwnames[] = { | |
3440 | (char *) "file",(char *) "type", NULL | |
3441 | }; | |
3442 | ||
3443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:new_IconBundleFromFile",kwnames,&obj0,&arg2)) goto fail; | |
3444 | { | |
3445 | arg1 = wxString_in_helper(obj0); | |
3446 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 3447 | temp1 = True; |
d14a1e28 RD |
3448 | } |
3449 | { | |
3450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3451 | result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2); | |
3452 | ||
3453 | wxPyEndAllowThreads(__tstate); | |
3454 | if (PyErr_Occurred()) SWIG_fail; | |
3455 | } | |
3456 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1); | |
3457 | { | |
3458 | if (temp1) | |
3459 | delete arg1; | |
3460 | } | |
3461 | return resultobj; | |
3462 | fail: | |
3463 | { | |
3464 | if (temp1) | |
3465 | delete arg1; | |
3466 | } | |
3467 | return NULL; | |
3468 | } | |
3469 | ||
3470 | ||
3471 | static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3472 | PyObject *resultobj; | |
3473 | wxIcon *arg1 = 0 ; | |
3474 | wxIconBundle *result; | |
3475 | PyObject * obj0 = 0 ; | |
3476 | char *kwnames[] = { | |
3477 | (char *) "icon", NULL | |
3478 | }; | |
3479 | ||
3480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail; | |
3481 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3482 | if (arg1 == NULL) { | |
3483 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3484 | } | |
3485 | { | |
3486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3487 | result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1); | |
3488 | ||
3489 | wxPyEndAllowThreads(__tstate); | |
3490 | if (PyErr_Occurred()) SWIG_fail; | |
3491 | } | |
3492 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1); | |
3493 | return resultobj; | |
3494 | fail: | |
3495 | return NULL; | |
3496 | } | |
3497 | ||
3498 | ||
3499 | static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3500 | PyObject *resultobj; | |
3501 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
3502 | PyObject * obj0 = 0 ; | |
3503 | char *kwnames[] = { | |
3504 | (char *) "self", NULL | |
3505 | }; | |
3506 | ||
3507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail; | |
3508 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3509 | { | |
3510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3511 | delete arg1; | |
3512 | ||
3513 | wxPyEndAllowThreads(__tstate); | |
3514 | if (PyErr_Occurred()) SWIG_fail; | |
3515 | } | |
3516 | Py_INCREF(Py_None); resultobj = Py_None; | |
3517 | return resultobj; | |
3518 | fail: | |
3519 | return NULL; | |
3520 | } | |
3521 | ||
3522 | ||
3523 | static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3524 | PyObject *resultobj; | |
3525 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
3526 | wxIcon *arg2 = 0 ; | |
3527 | PyObject * obj0 = 0 ; | |
3528 | PyObject * obj1 = 0 ; | |
3529 | char *kwnames[] = { | |
3530 | (char *) "self",(char *) "icon", NULL | |
3531 | }; | |
3532 | ||
3533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail; | |
3534 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3535 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3536 | if (arg2 == NULL) { | |
3537 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3538 | } | |
3539 | { | |
3540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3541 | (arg1)->AddIcon((wxIcon const &)*arg2); | |
3542 | ||
3543 | wxPyEndAllowThreads(__tstate); | |
3544 | if (PyErr_Occurred()) SWIG_fail; | |
3545 | } | |
3546 | Py_INCREF(Py_None); resultobj = Py_None; | |
3547 | return resultobj; | |
3548 | fail: | |
3549 | return NULL; | |
3550 | } | |
3551 | ||
3552 | ||
3553 | static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3554 | PyObject *resultobj; | |
3555 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
3556 | wxString *arg2 = 0 ; | |
3557 | long arg3 ; | |
423f194a | 3558 | bool temp2 = False ; |
d14a1e28 RD |
3559 | PyObject * obj0 = 0 ; |
3560 | PyObject * obj1 = 0 ; | |
3561 | char *kwnames[] = { | |
3562 | (char *) "self",(char *) "file",(char *) "type", NULL | |
3563 | }; | |
3564 | ||
3565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOl:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
3566 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3567 | { | |
3568 | arg2 = wxString_in_helper(obj1); | |
3569 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3570 | temp2 = True; |
d14a1e28 RD |
3571 | } |
3572 | { | |
3573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3574 | (arg1)->AddIcon((wxString const &)*arg2,arg3); | |
3575 | ||
3576 | wxPyEndAllowThreads(__tstate); | |
3577 | if (PyErr_Occurred()) SWIG_fail; | |
3578 | } | |
3579 | Py_INCREF(Py_None); resultobj = Py_None; | |
3580 | { | |
3581 | if (temp2) | |
3582 | delete arg2; | |
3583 | } | |
3584 | return resultobj; | |
3585 | fail: | |
3586 | { | |
3587 | if (temp2) | |
3588 | delete arg2; | |
3589 | } | |
3590 | return NULL; | |
3591 | } | |
3592 | ||
3593 | ||
3594 | static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3595 | PyObject *resultobj; | |
3596 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
3597 | wxSize *arg2 = 0 ; | |
3598 | wxIcon *result; | |
3599 | wxSize temp2 ; | |
3600 | PyObject * obj0 = 0 ; | |
3601 | PyObject * obj1 = 0 ; | |
3602 | char *kwnames[] = { | |
3603 | (char *) "self",(char *) "size", NULL | |
3604 | }; | |
3605 | ||
3606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail; | |
3607 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3608 | { | |
3609 | arg2 = &temp2; | |
3610 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3611 | } | |
3612 | { | |
3613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3614 | { | |
3615 | wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2); | |
3616 | result = (wxIcon *) &_result_ref; | |
3617 | } | |
3618 | ||
3619 | wxPyEndAllowThreads(__tstate); | |
3620 | if (PyErr_Occurred()) SWIG_fail; | |
3621 | } | |
3622 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 0); | |
3623 | return resultobj; | |
3624 | fail: | |
3625 | return NULL; | |
3626 | } | |
3627 | ||
3628 | ||
3629 | static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) { | |
3630 | PyObject *obj; | |
3631 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3632 | SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj); | |
3633 | Py_INCREF(obj); | |
3634 | return Py_BuildValue((char *)""); | |
3635 | } | |
3636 | static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3637 | PyObject *resultobj; | |
3638 | wxString *arg1 = (wxString *) 0 ; | |
3639 | long arg2 ; | |
3640 | int arg3 = (int) 0 ; | |
3641 | int arg4 = (int) 0 ; | |
3642 | wxCursor *result; | |
3643 | PyObject * obj0 = 0 ; | |
3644 | char *kwnames[] = { | |
3645 | (char *) "cursorName",(char *) "flags",(char *) "hotSpotX",(char *) "hotSpotY", NULL | |
3646 | }; | |
3647 | ||
3648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|ii:new_Cursor",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
3649 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3650 | { | |
3651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3652 | result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4); | |
3653 | ||
3654 | wxPyEndAllowThreads(__tstate); | |
3655 | if (PyErr_Occurred()) SWIG_fail; | |
3656 | } | |
3657 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1); | |
3658 | return resultobj; | |
3659 | fail: | |
3660 | return NULL; | |
3661 | } | |
3662 | ||
3663 | ||
3664 | static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3665 | PyObject *resultobj; | |
3666 | wxCursor *arg1 = (wxCursor *) 0 ; | |
3667 | PyObject * obj0 = 0 ; | |
3668 | char *kwnames[] = { | |
3669 | (char *) "self", NULL | |
3670 | }; | |
3671 | ||
3672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail; | |
3673 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3674 | { | |
3675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3676 | delete arg1; | |
3677 | ||
3678 | wxPyEndAllowThreads(__tstate); | |
3679 | if (PyErr_Occurred()) SWIG_fail; | |
3680 | } | |
3681 | Py_INCREF(Py_None); resultobj = Py_None; | |
3682 | return resultobj; | |
3683 | fail: | |
3684 | return NULL; | |
3685 | } | |
3686 | ||
3687 | ||
3688 | static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3689 | PyObject *resultobj; | |
3690 | int arg1 ; | |
3691 | wxCursor *result; | |
3692 | char *kwnames[] = { | |
3693 | (char *) "id", NULL | |
3694 | }; | |
3695 | ||
3696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:new_StockCursor",kwnames,&arg1)) goto fail; | |
3697 | { | |
3698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3699 | result = (wxCursor *)new wxCursor(arg1); | |
3700 | ||
3701 | wxPyEndAllowThreads(__tstate); | |
3702 | if (PyErr_Occurred()) SWIG_fail; | |
3703 | } | |
3704 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1); | |
3705 | return resultobj; | |
3706 | fail: | |
3707 | return NULL; | |
3708 | } | |
3709 | ||
3710 | ||
3711 | static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3712 | PyObject *resultobj; | |
3713 | wxImage *arg1 = 0 ; | |
3714 | wxCursor *result; | |
3715 | PyObject * obj0 = 0 ; | |
3716 | char *kwnames[] = { | |
3717 | (char *) "image", NULL | |
3718 | }; | |
3719 | ||
3720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail; | |
3721 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3722 | if (arg1 == NULL) { | |
3723 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3724 | } | |
3725 | { | |
3726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3727 | result = (wxCursor *)new wxCursor((wxImage const &)*arg1); | |
3728 | ||
3729 | wxPyEndAllowThreads(__tstate); | |
3730 | if (PyErr_Occurred()) SWIG_fail; | |
3731 | } | |
3732 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1); | |
3733 | return resultobj; | |
3734 | fail: | |
3735 | return NULL; | |
3736 | } | |
3737 | ||
3738 | ||
3739 | static PyObject *_wrap_new_CursorFromBits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3740 | PyObject *resultobj; | |
3741 | PyObject *arg1 = (PyObject *) 0 ; | |
3742 | int arg2 ; | |
3743 | int arg3 ; | |
3744 | int arg4 = (int) -1 ; | |
3745 | int arg5 = (int) -1 ; | |
3746 | PyObject *arg6 = (PyObject *) 0 ; | |
3747 | wxCursor *result; | |
3748 | PyObject * obj0 = 0 ; | |
3749 | PyObject * obj5 = 0 ; | |
3750 | char *kwnames[] = { | |
3751 | (char *) "bits",(char *) "width",(char *) "height",(char *) "hotSpotX",(char *) "hotSpotY",(char *) "maskBits", NULL | |
3752 | }; | |
3753 | ||
3754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|iiO:new_CursorFromBits",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5)) goto fail; | |
3755 | arg1 = obj0; | |
3756 | if (obj5) { | |
3757 | arg6 = obj5; | |
3758 | } | |
3759 | { | |
3760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3761 | result = (wxCursor *)new_wxCursor(arg1,arg2,arg3,arg4,arg5,arg6); | |
3762 | ||
3763 | wxPyEndAllowThreads(__tstate); | |
3764 | if (PyErr_Occurred()) SWIG_fail; | |
3765 | } | |
3766 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1); | |
3767 | return resultobj; | |
3768 | fail: | |
3769 | return NULL; | |
3770 | } | |
3771 | ||
3772 | ||
3773 | static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3774 | PyObject *resultobj; | |
3775 | wxCursor *arg1 = (wxCursor *) 0 ; | |
3776 | bool result; | |
3777 | PyObject * obj0 = 0 ; | |
3778 | char *kwnames[] = { | |
3779 | (char *) "self", NULL | |
3780 | }; | |
3781 | ||
3782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail; | |
3783 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3784 | { | |
3785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3786 | result = (bool)(arg1)->Ok(); | |
3787 | ||
3788 | wxPyEndAllowThreads(__tstate); | |
3789 | if (PyErr_Occurred()) SWIG_fail; | |
3790 | } | |
3791 | resultobj = PyInt_FromLong((long)result); | |
3792 | return resultobj; | |
3793 | fail: | |
3794 | return NULL; | |
3795 | } | |
3796 | ||
3797 | ||
3798 | static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) { | |
3799 | PyObject *obj; | |
3800 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3801 | SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj); | |
3802 | Py_INCREF(obj); | |
3803 | return Py_BuildValue((char *)""); | |
3804 | } | |
3805 | static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3806 | PyObject *resultobj; | |
423f194a RD |
3807 | int arg1 = (int) 0 ; |
3808 | int arg2 = (int) 0 ; | |
3809 | int arg3 = (int) 0 ; | |
3810 | int arg4 = (int) 0 ; | |
d14a1e28 RD |
3811 | wxRegion *result; |
3812 | char *kwnames[] = { | |
3813 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
3814 | }; | |
3815 | ||
3816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_Region",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
3817 | { | |
3818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3819 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4); | |
3820 | ||
3821 | wxPyEndAllowThreads(__tstate); | |
3822 | if (PyErr_Occurred()) SWIG_fail; | |
3823 | } | |
3824 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1); | |
3825 | return resultobj; | |
3826 | fail: | |
3827 | return NULL; | |
3828 | } | |
3829 | ||
3830 | ||
3831 | static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3832 | PyObject *resultobj; | |
3833 | wxBitmap *arg1 = 0 ; | |
3834 | wxColour const &arg2_defvalue = wxNullColour ; | |
3835 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
3836 | int arg3 = (int) 0 ; | |
3837 | wxRegion *result; | |
3838 | wxColour temp2 ; | |
3839 | PyObject * obj0 = 0 ; | |
3840 | PyObject * obj1 = 0 ; | |
3841 | char *kwnames[] = { | |
3842 | (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
3843 | }; | |
3844 | ||
3845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|Oi:new_RegionFromBitmap",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
3846 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3847 | if (arg1 == NULL) { | |
3848 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3849 | } | |
3850 | if (obj1) { | |
3851 | { | |
3852 | arg2 = &temp2; | |
3853 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3854 | } | |
3855 | } | |
3856 | { | |
3857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3858 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3); | |
3859 | ||
3860 | wxPyEndAllowThreads(__tstate); | |
3861 | if (PyErr_Occurred()) SWIG_fail; | |
3862 | } | |
3863 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1); | |
3864 | return resultobj; | |
3865 | fail: | |
3866 | return NULL; | |
3867 | } | |
3868 | ||
3869 | ||
3870 | static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3871 | PyObject *resultobj; | |
3872 | int arg1 ; | |
3873 | wxPoint *arg2 = (wxPoint *) 0 ; | |
3874 | int arg3 = (int) wxWINDING_RULE ; | |
3875 | wxRegion *result; | |
3876 | PyObject * obj0 = 0 ; | |
3877 | char *kwnames[] = { | |
3878 | (char *) "points",(char *) "fillStyle", NULL | |
3879 | }; | |
3880 | ||
3881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_RegionFromPoints",kwnames,&obj0,&arg3)) goto fail; | |
3882 | { | |
3883 | arg2 = wxPoint_LIST_helper(obj0, &arg1); | |
3884 | if (arg2 == NULL) SWIG_fail; | |
3885 | } | |
3886 | { | |
3887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3888 | result = (wxRegion *)new_wxRegion(arg1,arg2,arg3); | |
3889 | ||
3890 | wxPyEndAllowThreads(__tstate); | |
3891 | if (PyErr_Occurred()) SWIG_fail; | |
3892 | } | |
3893 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1); | |
3894 | { | |
3895 | if (arg2) delete [] arg2; | |
3896 | } | |
3897 | return resultobj; | |
3898 | fail: | |
3899 | { | |
3900 | if (arg2) delete [] arg2; | |
3901 | } | |
3902 | return NULL; | |
3903 | } | |
3904 | ||
3905 | ||
3906 | static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3907 | PyObject *resultobj; | |
3908 | wxRegion *arg1 = (wxRegion *) 0 ; | |
3909 | PyObject * obj0 = 0 ; | |
3910 | char *kwnames[] = { | |
3911 | (char *) "self", NULL | |
3912 | }; | |
3913 | ||
3914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail; | |
3915 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3916 | { | |
3917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3918 | delete arg1; | |
3919 | ||
3920 | wxPyEndAllowThreads(__tstate); | |
3921 | if (PyErr_Occurred()) SWIG_fail; | |
3922 | } | |
3923 | Py_INCREF(Py_None); resultobj = Py_None; | |
3924 | return resultobj; | |
3925 | fail: | |
3926 | return NULL; | |
3927 | } | |
3928 | ||
3929 | ||
3930 | static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3931 | PyObject *resultobj; | |
3932 | wxRegion *arg1 = (wxRegion *) 0 ; | |
3933 | PyObject * obj0 = 0 ; | |
3934 | char *kwnames[] = { | |
3935 | (char *) "self", NULL | |
3936 | }; | |
3937 | ||
3938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail; | |
3939 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3940 | { | |
3941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3942 | (arg1)->Clear(); | |
3943 | ||
3944 | wxPyEndAllowThreads(__tstate); | |
3945 | if (PyErr_Occurred()) SWIG_fail; | |
3946 | } | |
3947 | Py_INCREF(Py_None); resultobj = Py_None; | |
3948 | return resultobj; | |
3949 | fail: | |
3950 | return NULL; | |
3951 | } | |
3952 | ||
3953 | ||
3954 | static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3955 | PyObject *resultobj; | |
3956 | wxRegion *arg1 = (wxRegion *) 0 ; | |
423f194a RD |
3957 | int arg2 ; |
3958 | int arg3 ; | |
d14a1e28 RD |
3959 | int result; |
3960 | PyObject * obj0 = 0 ; | |
3961 | char *kwnames[] = { | |
3962 | (char *) "self",(char *) "x",(char *) "y", NULL | |
3963 | }; | |
3964 | ||
3965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Region_Contains",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
3966 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3967 | { | |
3968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3969 | result = (int)(arg1)->Contains(arg2,arg3); | |
3970 | ||
3971 | wxPyEndAllowThreads(__tstate); | |
3972 | if (PyErr_Occurred()) SWIG_fail; | |
3973 | } | |
3974 | resultobj = PyInt_FromLong((long)result); | |
3975 | return resultobj; | |
3976 | fail: | |
3977 | return NULL; | |
3978 | } | |
3979 | ||
3980 | ||
3981 | static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3982 | PyObject *resultobj; | |
3983 | wxRegion *arg1 = (wxRegion *) 0 ; | |
3984 | wxPoint *arg2 = 0 ; | |
3985 | int result; | |
3986 | wxPoint temp2 ; | |
3987 | PyObject * obj0 = 0 ; | |
3988 | PyObject * obj1 = 0 ; | |
3989 | char *kwnames[] = { | |
3990 | (char *) "self",(char *) "pt", NULL | |
3991 | }; | |
3992 | ||
3993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail; | |
3994 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3995 | { | |
3996 | arg2 = &temp2; | |
3997 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3998 | } | |
3999 | { | |
4000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4001 | result = (int)(arg1)->Contains((wxPoint const &)*arg2); | |
4002 | ||
4003 | wxPyEndAllowThreads(__tstate); | |
4004 | if (PyErr_Occurred()) SWIG_fail; | |
4005 | } | |
4006 | resultobj = PyInt_FromLong((long)result); | |
4007 | return resultobj; | |
4008 | fail: | |
4009 | return NULL; | |
4010 | } | |
4011 | ||
4012 | ||
4013 | static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4014 | PyObject *resultobj; | |
4015 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4016 | wxRect *arg2 = 0 ; | |
4017 | int result; | |
4018 | wxRect temp2 ; | |
4019 | PyObject * obj0 = 0 ; | |
4020 | PyObject * obj1 = 0 ; | |
4021 | char *kwnames[] = { | |
4022 | (char *) "self",(char *) "rect", NULL | |
4023 | }; | |
4024 | ||
4025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail; | |
4026 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4027 | { | |
4028 | arg2 = &temp2; | |
4029 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4030 | } | |
4031 | { | |
4032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4033 | result = (int)(arg1)->Contains((wxRect const &)*arg2); | |
4034 | ||
4035 | wxPyEndAllowThreads(__tstate); | |
4036 | if (PyErr_Occurred()) SWIG_fail; | |
4037 | } | |
4038 | resultobj = PyInt_FromLong((long)result); | |
4039 | return resultobj; | |
4040 | fail: | |
4041 | return NULL; | |
4042 | } | |
4043 | ||
4044 | ||
4045 | static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4046 | PyObject *resultobj; | |
4047 | wxRegion *arg1 = (wxRegion *) 0 ; | |
423f194a RD |
4048 | int arg2 ; |
4049 | int arg3 ; | |
4050 | int arg4 ; | |
4051 | int arg5 ; | |
d14a1e28 RD |
4052 | int result; |
4053 | PyObject * obj0 = 0 ; | |
4054 | char *kwnames[] = { | |
4055 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
4056 | }; | |
4057 | ||
4058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_ContainsRectDim",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
4059 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4060 | { | |
4061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4062 | result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5); | |
4063 | ||
4064 | wxPyEndAllowThreads(__tstate); | |
4065 | if (PyErr_Occurred()) SWIG_fail; | |
4066 | } | |
4067 | resultobj = PyInt_FromLong((long)result); | |
4068 | return resultobj; | |
4069 | fail: | |
4070 | return NULL; | |
4071 | } | |
4072 | ||
4073 | ||
4074 | static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4075 | PyObject *resultobj; | |
4076 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4077 | wxRect result; | |
4078 | PyObject * obj0 = 0 ; | |
4079 | char *kwnames[] = { | |
4080 | (char *) "self", NULL | |
4081 | }; | |
4082 | ||
4083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail; | |
4084 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4085 | { | |
4086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4087 | result = (arg1)->GetBox(); | |
4088 | ||
4089 | wxPyEndAllowThreads(__tstate); | |
4090 | if (PyErr_Occurred()) SWIG_fail; | |
4091 | } | |
4092 | { | |
4093 | wxRect * resultptr; | |
4094 | resultptr = new wxRect((wxRect &) result); | |
4095 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
4096 | } | |
4097 | return resultobj; | |
4098 | fail: | |
4099 | return NULL; | |
4100 | } | |
4101 | ||
4102 | ||
4103 | static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4104 | PyObject *resultobj; | |
4105 | wxRegion *arg1 = (wxRegion *) 0 ; | |
423f194a RD |
4106 | int arg2 ; |
4107 | int arg3 ; | |
4108 | int arg4 ; | |
4109 | int arg5 ; | |
d14a1e28 RD |
4110 | bool result; |
4111 | PyObject * obj0 = 0 ; | |
4112 | char *kwnames[] = { | |
4113 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4114 | }; | |
4115 | ||
4116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Intersect",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
4117 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4118 | { | |
4119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4120 | result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5); | |
4121 | ||
4122 | wxPyEndAllowThreads(__tstate); | |
4123 | if (PyErr_Occurred()) SWIG_fail; | |
4124 | } | |
4125 | resultobj = PyInt_FromLong((long)result); | |
4126 | return resultobj; | |
4127 | fail: | |
4128 | return NULL; | |
4129 | } | |
4130 | ||
4131 | ||
4132 | static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4133 | PyObject *resultobj; | |
4134 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4135 | wxRect *arg2 = 0 ; | |
4136 | bool result; | |
4137 | wxRect temp2 ; | |
4138 | PyObject * obj0 = 0 ; | |
4139 | PyObject * obj1 = 0 ; | |
4140 | char *kwnames[] = { | |
4141 | (char *) "self",(char *) "rect", NULL | |
4142 | }; | |
4143 | ||
4144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail; | |
4145 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4146 | { | |
4147 | arg2 = &temp2; | |
4148 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4149 | } | |
4150 | { | |
4151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4152 | result = (bool)(arg1)->Intersect((wxRect const &)*arg2); | |
4153 | ||
4154 | wxPyEndAllowThreads(__tstate); | |
4155 | if (PyErr_Occurred()) SWIG_fail; | |
4156 | } | |
4157 | resultobj = PyInt_FromLong((long)result); | |
4158 | return resultobj; | |
4159 | fail: | |
4160 | return NULL; | |
4161 | } | |
4162 | ||
4163 | ||
4164 | static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4165 | PyObject *resultobj; | |
4166 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4167 | wxRegion *arg2 = 0 ; | |
4168 | bool result; | |
4169 | PyObject * obj0 = 0 ; | |
4170 | PyObject * obj1 = 0 ; | |
4171 | char *kwnames[] = { | |
4172 | (char *) "self",(char *) "region", NULL | |
4173 | }; | |
4174 | ||
4175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail; | |
4176 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4177 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4178 | if (arg2 == NULL) { | |
4179 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4180 | } | |
4181 | { | |
4182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4183 | result = (bool)(arg1)->Intersect((wxRegion const &)*arg2); | |
4184 | ||
4185 | wxPyEndAllowThreads(__tstate); | |
4186 | if (PyErr_Occurred()) SWIG_fail; | |
4187 | } | |
4188 | resultobj = PyInt_FromLong((long)result); | |
4189 | return resultobj; | |
4190 | fail: | |
4191 | return NULL; | |
4192 | } | |
4193 | ||
4194 | ||
4195 | static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4196 | PyObject *resultobj; | |
4197 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4198 | bool result; | |
4199 | PyObject * obj0 = 0 ; | |
4200 | char *kwnames[] = { | |
4201 | (char *) "self", NULL | |
4202 | }; | |
4203 | ||
4204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail; | |
4205 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4206 | { | |
4207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4208 | result = (bool)(arg1)->IsEmpty(); | |
4209 | ||
4210 | wxPyEndAllowThreads(__tstate); | |
4211 | if (PyErr_Occurred()) SWIG_fail; | |
4212 | } | |
4213 | resultobj = PyInt_FromLong((long)result); | |
4214 | return resultobj; | |
4215 | fail: | |
4216 | return NULL; | |
4217 | } | |
4218 | ||
4219 | ||
4220 | static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4221 | PyObject *resultobj; | |
4222 | wxRegion *arg1 = (wxRegion *) 0 ; | |
423f194a RD |
4223 | int arg2 ; |
4224 | int arg3 ; | |
4225 | int arg4 ; | |
4226 | int arg5 ; | |
d14a1e28 RD |
4227 | bool result; |
4228 | PyObject * obj0 = 0 ; | |
4229 | char *kwnames[] = { | |
4230 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4231 | }; | |
4232 | ||
4233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Union",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
4234 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4235 | { | |
4236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4237 | result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5); | |
4238 | ||
4239 | wxPyEndAllowThreads(__tstate); | |
4240 | if (PyErr_Occurred()) SWIG_fail; | |
4241 | } | |
4242 | resultobj = PyInt_FromLong((long)result); | |
4243 | return resultobj; | |
4244 | fail: | |
4245 | return NULL; | |
4246 | } | |
4247 | ||
4248 | ||
4249 | static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4250 | PyObject *resultobj; | |
4251 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4252 | wxRect *arg2 = 0 ; | |
4253 | bool result; | |
4254 | wxRect temp2 ; | |
4255 | PyObject * obj0 = 0 ; | |
4256 | PyObject * obj1 = 0 ; | |
4257 | char *kwnames[] = { | |
4258 | (char *) "self",(char *) "rect", NULL | |
4259 | }; | |
4260 | ||
4261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail; | |
4262 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4263 | { | |
4264 | arg2 = &temp2; | |
4265 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4266 | } | |
4267 | { | |
4268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4269 | result = (bool)(arg1)->Union((wxRect const &)*arg2); | |
4270 | ||
4271 | wxPyEndAllowThreads(__tstate); | |
4272 | if (PyErr_Occurred()) SWIG_fail; | |
4273 | } | |
4274 | resultobj = PyInt_FromLong((long)result); | |
4275 | return resultobj; | |
4276 | fail: | |
4277 | return NULL; | |
4278 | } | |
4279 | ||
4280 | ||
4281 | static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4282 | PyObject *resultobj; | |
4283 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4284 | wxRegion *arg2 = 0 ; | |
4285 | bool result; | |
4286 | PyObject * obj0 = 0 ; | |
4287 | PyObject * obj1 = 0 ; | |
4288 | char *kwnames[] = { | |
4289 | (char *) "self",(char *) "region", NULL | |
4290 | }; | |
4291 | ||
4292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail; | |
4293 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4294 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4295 | if (arg2 == NULL) { | |
4296 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4297 | } | |
4298 | { | |
4299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4300 | result = (bool)(arg1)->Union((wxRegion const &)*arg2); | |
4301 | ||
4302 | wxPyEndAllowThreads(__tstate); | |
4303 | if (PyErr_Occurred()) SWIG_fail; | |
4304 | } | |
4305 | resultobj = PyInt_FromLong((long)result); | |
4306 | return resultobj; | |
4307 | fail: | |
4308 | return NULL; | |
4309 | } | |
4310 | ||
4311 | ||
4312 | static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4313 | PyObject *resultobj; | |
4314 | wxRegion *arg1 = (wxRegion *) 0 ; | |
423f194a RD |
4315 | int arg2 ; |
4316 | int arg3 ; | |
4317 | int arg4 ; | |
4318 | int arg5 ; | |
d14a1e28 RD |
4319 | bool result; |
4320 | PyObject * obj0 = 0 ; | |
4321 | char *kwnames[] = { | |
4322 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4323 | }; | |
4324 | ||
4325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Subtract",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
4326 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4327 | { | |
4328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4329 | result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5); | |
4330 | ||
4331 | wxPyEndAllowThreads(__tstate); | |
4332 | if (PyErr_Occurred()) SWIG_fail; | |
4333 | } | |
4334 | resultobj = PyInt_FromLong((long)result); | |
4335 | return resultobj; | |
4336 | fail: | |
4337 | return NULL; | |
4338 | } | |
4339 | ||
4340 | ||
4341 | static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4342 | PyObject *resultobj; | |
4343 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4344 | wxRect *arg2 = 0 ; | |
4345 | bool result; | |
4346 | wxRect temp2 ; | |
4347 | PyObject * obj0 = 0 ; | |
4348 | PyObject * obj1 = 0 ; | |
4349 | char *kwnames[] = { | |
4350 | (char *) "self",(char *) "rect", NULL | |
4351 | }; | |
4352 | ||
4353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail; | |
4354 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4355 | { | |
4356 | arg2 = &temp2; | |
4357 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4358 | } | |
4359 | { | |
4360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4361 | result = (bool)(arg1)->Subtract((wxRect const &)*arg2); | |
4362 | ||
4363 | wxPyEndAllowThreads(__tstate); | |
4364 | if (PyErr_Occurred()) SWIG_fail; | |
4365 | } | |
4366 | resultobj = PyInt_FromLong((long)result); | |
4367 | return resultobj; | |
4368 | fail: | |
4369 | return NULL; | |
4370 | } | |
4371 | ||
4372 | ||
4373 | static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4374 | PyObject *resultobj; | |
4375 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4376 | wxRegion *arg2 = 0 ; | |
4377 | bool result; | |
4378 | PyObject * obj0 = 0 ; | |
4379 | PyObject * obj1 = 0 ; | |
4380 | char *kwnames[] = { | |
4381 | (char *) "self",(char *) "region", NULL | |
4382 | }; | |
4383 | ||
4384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail; | |
4385 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4386 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4387 | if (arg2 == NULL) { | |
4388 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4389 | } | |
4390 | { | |
4391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4392 | result = (bool)(arg1)->Subtract((wxRegion const &)*arg2); | |
4393 | ||
4394 | wxPyEndAllowThreads(__tstate); | |
4395 | if (PyErr_Occurred()) SWIG_fail; | |
4396 | } | |
4397 | resultobj = PyInt_FromLong((long)result); | |
4398 | return resultobj; | |
4399 | fail: | |
4400 | return NULL; | |
4401 | } | |
4402 | ||
4403 | ||
4404 | static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4405 | PyObject *resultobj; | |
4406 | wxRegion *arg1 = (wxRegion *) 0 ; | |
423f194a RD |
4407 | int arg2 ; |
4408 | int arg3 ; | |
4409 | int arg4 ; | |
4410 | int arg5 ; | |
d14a1e28 RD |
4411 | bool result; |
4412 | PyObject * obj0 = 0 ; | |
4413 | char *kwnames[] = { | |
4414 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4415 | }; | |
4416 | ||
4417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Xor",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
4418 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4419 | { | |
4420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4421 | result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5); | |
4422 | ||
4423 | wxPyEndAllowThreads(__tstate); | |
4424 | if (PyErr_Occurred()) SWIG_fail; | |
4425 | } | |
4426 | resultobj = PyInt_FromLong((long)result); | |
4427 | return resultobj; | |
4428 | fail: | |
4429 | return NULL; | |
4430 | } | |
4431 | ||
4432 | ||
4433 | static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4434 | PyObject *resultobj; | |
4435 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4436 | wxRect *arg2 = 0 ; | |
4437 | bool result; | |
4438 | wxRect temp2 ; | |
4439 | PyObject * obj0 = 0 ; | |
4440 | PyObject * obj1 = 0 ; | |
4441 | char *kwnames[] = { | |
4442 | (char *) "self",(char *) "rect", NULL | |
4443 | }; | |
4444 | ||
4445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail; | |
4446 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4447 | { | |
4448 | arg2 = &temp2; | |
4449 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4450 | } | |
4451 | { | |
4452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4453 | result = (bool)(arg1)->Xor((wxRect const &)*arg2); | |
4454 | ||
4455 | wxPyEndAllowThreads(__tstate); | |
4456 | if (PyErr_Occurred()) SWIG_fail; | |
4457 | } | |
4458 | resultobj = PyInt_FromLong((long)result); | |
4459 | return resultobj; | |
4460 | fail: | |
4461 | return NULL; | |
4462 | } | |
4463 | ||
4464 | ||
4465 | static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4466 | PyObject *resultobj; | |
4467 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4468 | wxRegion *arg2 = 0 ; | |
4469 | bool result; | |
4470 | PyObject * obj0 = 0 ; | |
4471 | PyObject * obj1 = 0 ; | |
4472 | char *kwnames[] = { | |
4473 | (char *) "self",(char *) "region", NULL | |
4474 | }; | |
4475 | ||
4476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail; | |
4477 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4478 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4479 | if (arg2 == NULL) { | |
4480 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4481 | } | |
4482 | { | |
4483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4484 | result = (bool)(arg1)->Xor((wxRegion const &)*arg2); | |
4485 | ||
4486 | wxPyEndAllowThreads(__tstate); | |
4487 | if (PyErr_Occurred()) SWIG_fail; | |
4488 | } | |
4489 | resultobj = PyInt_FromLong((long)result); | |
4490 | return resultobj; | |
4491 | fail: | |
4492 | return NULL; | |
4493 | } | |
4494 | ||
4495 | ||
4496 | static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4497 | PyObject *resultobj; | |
4498 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4499 | SwigValueWrapper< wxBitmap > result; | |
4500 | PyObject * obj0 = 0 ; | |
4501 | char *kwnames[] = { | |
4502 | (char *) "self", NULL | |
4503 | }; | |
4504 | ||
4505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail; | |
4506 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4507 | { | |
4508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4509 | result = (arg1)->ConvertToBitmap(); | |
4510 | ||
4511 | wxPyEndAllowThreads(__tstate); | |
4512 | if (PyErr_Occurred()) SWIG_fail; | |
4513 | } | |
4514 | { | |
4515 | wxBitmap * resultptr; | |
4516 | resultptr = new wxBitmap((wxBitmap &) result); | |
4517 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
4518 | } | |
4519 | return resultobj; | |
4520 | fail: | |
4521 | return NULL; | |
4522 | } | |
4523 | ||
4524 | ||
4525 | static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4526 | PyObject *resultobj; | |
4527 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4528 | wxBitmap *arg2 = 0 ; | |
4529 | wxColour const &arg3_defvalue = wxNullColour ; | |
4530 | wxColour *arg3 = (wxColour *) &arg3_defvalue ; | |
4531 | int arg4 = (int) 0 ; | |
4532 | bool result; | |
4533 | wxColour temp3 ; | |
4534 | PyObject * obj0 = 0 ; | |
4535 | PyObject * obj1 = 0 ; | |
4536 | PyObject * obj2 = 0 ; | |
4537 | char *kwnames[] = { | |
4538 | (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
4539 | }; | |
4540 | ||
4541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|Oi:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail; | |
4542 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4543 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4544 | if (arg2 == NULL) { | |
4545 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4546 | } | |
4547 | if (obj2) { | |
4548 | { | |
4549 | arg3 = &temp3; | |
4550 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
4551 | } | |
4552 | } | |
4553 | { | |
4554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4555 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4); | |
4556 | ||
4557 | wxPyEndAllowThreads(__tstate); | |
4558 | if (PyErr_Occurred()) SWIG_fail; | |
4559 | } | |
4560 | resultobj = PyInt_FromLong((long)result); | |
4561 | return resultobj; | |
4562 | fail: | |
4563 | return NULL; | |
4564 | } | |
4565 | ||
4566 | ||
4567 | static PyObject * Region_swigregister(PyObject *self, PyObject *args) { | |
4568 | PyObject *obj; | |
4569 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4570 | SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj); | |
4571 | Py_INCREF(obj); | |
4572 | return Py_BuildValue((char *)""); | |
4573 | } | |
4574 | static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4575 | PyObject *resultobj; | |
4576 | wxRegion *arg1 = 0 ; | |
4577 | wxRegionIterator *result; | |
4578 | PyObject * obj0 = 0 ; | |
4579 | char *kwnames[] = { | |
4580 | (char *) "region", NULL | |
4581 | }; | |
4582 | ||
4583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail; | |
4584 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4585 | if (arg1 == NULL) { | |
4586 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4587 | } | |
4588 | { | |
4589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4590 | result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1); | |
4591 | ||
4592 | wxPyEndAllowThreads(__tstate); | |
4593 | if (PyErr_Occurred()) SWIG_fail; | |
4594 | } | |
4595 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegionIterator, 1); | |
4596 | return resultobj; | |
4597 | fail: | |
4598 | return NULL; | |
4599 | } | |
4600 | ||
4601 | ||
4602 | static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4603 | PyObject *resultobj; | |
4604 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
4605 | PyObject * obj0 = 0 ; | |
4606 | char *kwnames[] = { | |
4607 | (char *) "self", NULL | |
4608 | }; | |
4609 | ||
4610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail; | |
4611 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4612 | { | |
4613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4614 | delete arg1; | |
4615 | ||
4616 | wxPyEndAllowThreads(__tstate); | |
4617 | if (PyErr_Occurred()) SWIG_fail; | |
4618 | } | |
4619 | Py_INCREF(Py_None); resultobj = Py_None; | |
4620 | return resultobj; | |
4621 | fail: | |
4622 | return NULL; | |
4623 | } | |
4624 | ||
4625 | ||
4626 | static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4627 | PyObject *resultobj; | |
4628 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
423f194a | 4629 | int result; |
d14a1e28 RD |
4630 | PyObject * obj0 = 0 ; |
4631 | char *kwnames[] = { | |
4632 | (char *) "self", NULL | |
4633 | }; | |
4634 | ||
4635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail; | |
4636 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4637 | { | |
4638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 4639 | result = (int)(arg1)->GetX(); |
d14a1e28 RD |
4640 | |
4641 | wxPyEndAllowThreads(__tstate); | |
4642 | if (PyErr_Occurred()) SWIG_fail; | |
4643 | } | |
4644 | resultobj = PyInt_FromLong((long)result); | |
4645 | return resultobj; | |
4646 | fail: | |
4647 | return NULL; | |
4648 | } | |
4649 | ||
4650 | ||
4651 | static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4652 | PyObject *resultobj; | |
4653 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
423f194a | 4654 | int result; |
d14a1e28 RD |
4655 | PyObject * obj0 = 0 ; |
4656 | char *kwnames[] = { | |
4657 | (char *) "self", NULL | |
4658 | }; | |
4659 | ||
4660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail; | |
4661 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4662 | { | |
4663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 4664 | result = (int)(arg1)->GetY(); |
d14a1e28 RD |
4665 | |
4666 | wxPyEndAllowThreads(__tstate); | |
4667 | if (PyErr_Occurred()) SWIG_fail; | |
4668 | } | |
4669 | resultobj = PyInt_FromLong((long)result); | |
4670 | return resultobj; | |
4671 | fail: | |
4672 | return NULL; | |
4673 | } | |
4674 | ||
4675 | ||
4676 | static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4677 | PyObject *resultobj; | |
4678 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
423f194a | 4679 | int result; |
d14a1e28 RD |
4680 | PyObject * obj0 = 0 ; |
4681 | char *kwnames[] = { | |
4682 | (char *) "self", NULL | |
4683 | }; | |
4684 | ||
4685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail; | |
4686 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4687 | { | |
4688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 4689 | result = (int)(arg1)->GetW(); |
d14a1e28 RD |
4690 | |
4691 | wxPyEndAllowThreads(__tstate); | |
4692 | if (PyErr_Occurred()) SWIG_fail; | |
4693 | } | |
4694 | resultobj = PyInt_FromLong((long)result); | |
4695 | return resultobj; | |
4696 | fail: | |
4697 | return NULL; | |
4698 | } | |
4699 | ||
4700 | ||
4701 | static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4702 | PyObject *resultobj; | |
4703 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
423f194a | 4704 | int result; |
d14a1e28 RD |
4705 | PyObject * obj0 = 0 ; |
4706 | char *kwnames[] = { | |
4707 | (char *) "self", NULL | |
4708 | }; | |
4709 | ||
4710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail; | |
4711 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4712 | { | |
4713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 4714 | result = (int)(arg1)->GetWidth(); |
d14a1e28 RD |
4715 | |
4716 | wxPyEndAllowThreads(__tstate); | |
4717 | if (PyErr_Occurred()) SWIG_fail; | |
4718 | } | |
4719 | resultobj = PyInt_FromLong((long)result); | |
4720 | return resultobj; | |
4721 | fail: | |
4722 | return NULL; | |
4723 | } | |
4724 | ||
4725 | ||
4726 | static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4727 | PyObject *resultobj; | |
4728 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
423f194a | 4729 | int result; |
d14a1e28 RD |
4730 | PyObject * obj0 = 0 ; |
4731 | char *kwnames[] = { | |
4732 | (char *) "self", NULL | |
4733 | }; | |
4734 | ||
4735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail; | |
4736 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4737 | { | |
4738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 4739 | result = (int)(arg1)->GetH(); |
d14a1e28 RD |
4740 | |
4741 | wxPyEndAllowThreads(__tstate); | |
4742 | if (PyErr_Occurred()) SWIG_fail; | |
4743 | } | |
4744 | resultobj = PyInt_FromLong((long)result); | |
4745 | return resultobj; | |
4746 | fail: | |
4747 | return NULL; | |
4748 | } | |
4749 | ||
4750 | ||
4751 | static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4752 | PyObject *resultobj; | |
4753 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
423f194a | 4754 | int result; |
d14a1e28 RD |
4755 | PyObject * obj0 = 0 ; |
4756 | char *kwnames[] = { | |
4757 | (char *) "self", NULL | |
4758 | }; | |
4759 | ||
4760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail; | |
4761 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4762 | { | |
4763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 4764 | result = (int)(arg1)->GetHeight(); |
d14a1e28 RD |
4765 | |
4766 | wxPyEndAllowThreads(__tstate); | |
4767 | if (PyErr_Occurred()) SWIG_fail; | |
4768 | } | |
4769 | resultobj = PyInt_FromLong((long)result); | |
4770 | return resultobj; | |
4771 | fail: | |
4772 | return NULL; | |
4773 | } | |
4774 | ||
4775 | ||
4776 | static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4777 | PyObject *resultobj; | |
4778 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
4779 | wxRect result; | |
4780 | PyObject * obj0 = 0 ; | |
4781 | char *kwnames[] = { | |
4782 | (char *) "self", NULL | |
4783 | }; | |
4784 | ||
4785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail; | |
4786 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4787 | { | |
4788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4789 | result = (arg1)->GetRect(); | |
4790 | ||
4791 | wxPyEndAllowThreads(__tstate); | |
4792 | if (PyErr_Occurred()) SWIG_fail; | |
4793 | } | |
4794 | { | |
4795 | wxRect * resultptr; | |
4796 | resultptr = new wxRect((wxRect &) result); | |
4797 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
4798 | } | |
4799 | return resultobj; | |
4800 | fail: | |
4801 | return NULL; | |
4802 | } | |
4803 | ||
4804 | ||
4805 | static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4806 | PyObject *resultobj; | |
4807 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
4808 | bool result; | |
4809 | PyObject * obj0 = 0 ; | |
4810 | char *kwnames[] = { | |
4811 | (char *) "self", NULL | |
4812 | }; | |
4813 | ||
4814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail; | |
4815 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4816 | { | |
4817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4818 | result = (bool)(arg1)->HaveRects(); | |
4819 | ||
4820 | wxPyEndAllowThreads(__tstate); | |
4821 | if (PyErr_Occurred()) SWIG_fail; | |
4822 | } | |
4823 | resultobj = PyInt_FromLong((long)result); | |
4824 | return resultobj; | |
4825 | fail: | |
4826 | return NULL; | |
4827 | } | |
4828 | ||
4829 | ||
4830 | static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4831 | PyObject *resultobj; | |
4832 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
4833 | PyObject * obj0 = 0 ; | |
4834 | char *kwnames[] = { | |
4835 | (char *) "self", NULL | |
4836 | }; | |
4837 | ||
4838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail; | |
4839 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4840 | { | |
4841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4842 | (arg1)->Reset(); | |
4843 | ||
4844 | wxPyEndAllowThreads(__tstate); | |
4845 | if (PyErr_Occurred()) SWIG_fail; | |
4846 | } | |
4847 | Py_INCREF(Py_None); resultobj = Py_None; | |
4848 | return resultobj; | |
4849 | fail: | |
4850 | return NULL; | |
4851 | } | |
4852 | ||
4853 | ||
4854 | static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4855 | PyObject *resultobj; | |
4856 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
4857 | PyObject * obj0 = 0 ; | |
4858 | char *kwnames[] = { | |
4859 | (char *) "self", NULL | |
4860 | }; | |
4861 | ||
4862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail; | |
4863 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4864 | { | |
4865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4866 | wxRegionIterator_Next(arg1); | |
4867 | ||
4868 | wxPyEndAllowThreads(__tstate); | |
4869 | if (PyErr_Occurred()) SWIG_fail; | |
4870 | } | |
4871 | Py_INCREF(Py_None); resultobj = Py_None; | |
4872 | return resultobj; | |
4873 | fail: | |
4874 | return NULL; | |
4875 | } | |
4876 | ||
4877 | ||
4878 | static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4879 | PyObject *resultobj; | |
4880 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
4881 | bool result; | |
4882 | PyObject * obj0 = 0 ; | |
4883 | char *kwnames[] = { | |
4884 | (char *) "self", NULL | |
4885 | }; | |
4886 | ||
4887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail; | |
4888 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4889 | { | |
4890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4891 | result = (bool)wxRegionIterator___nonzero__(arg1); | |
4892 | ||
4893 | wxPyEndAllowThreads(__tstate); | |
4894 | if (PyErr_Occurred()) SWIG_fail; | |
4895 | } | |
4896 | resultobj = PyInt_FromLong((long)result); | |
4897 | return resultobj; | |
4898 | fail: | |
4899 | return NULL; | |
4900 | } | |
4901 | ||
4902 | ||
4903 | static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) { | |
4904 | PyObject *obj; | |
4905 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4906 | SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj); | |
4907 | Py_INCREF(obj); | |
4908 | return Py_BuildValue((char *)""); | |
4909 | } | |
4910 | static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4911 | PyObject *resultobj; | |
4912 | wxNativeFontInfo *result; | |
4913 | char *kwnames[] = { | |
4914 | NULL | |
4915 | }; | |
4916 | ||
4917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail; | |
4918 | { | |
4919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4920 | result = (wxNativeFontInfo *)new wxNativeFontInfo(); | |
4921 | ||
4922 | wxPyEndAllowThreads(__tstate); | |
4923 | if (PyErr_Occurred()) SWIG_fail; | |
4924 | } | |
4925 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 1); | |
4926 | return resultobj; | |
4927 | fail: | |
4928 | return NULL; | |
4929 | } | |
4930 | ||
4931 | ||
4932 | static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4933 | PyObject *resultobj; | |
4934 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
4935 | PyObject * obj0 = 0 ; | |
4936 | char *kwnames[] = { | |
4937 | (char *) "self", NULL | |
4938 | }; | |
4939 | ||
4940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail; | |
4941 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4942 | { | |
4943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4944 | delete arg1; | |
4945 | ||
4946 | wxPyEndAllowThreads(__tstate); | |
4947 | if (PyErr_Occurred()) SWIG_fail; | |
4948 | } | |
4949 | Py_INCREF(Py_None); resultobj = Py_None; | |
4950 | return resultobj; | |
4951 | fail: | |
4952 | return NULL; | |
4953 | } | |
4954 | ||
4955 | ||
4956 | static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4957 | PyObject *resultobj; | |
4958 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
4959 | PyObject * obj0 = 0 ; | |
4960 | char *kwnames[] = { | |
4961 | (char *) "self", NULL | |
4962 | }; | |
4963 | ||
4964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail; | |
4965 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4966 | { | |
4967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4968 | (arg1)->Init(); | |
4969 | ||
4970 | wxPyEndAllowThreads(__tstate); | |
4971 | if (PyErr_Occurred()) SWIG_fail; | |
4972 | } | |
4973 | Py_INCREF(Py_None); resultobj = Py_None; | |
4974 | return resultobj; | |
4975 | fail: | |
4976 | return NULL; | |
4977 | } | |
4978 | ||
4979 | ||
4980 | static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4981 | PyObject *resultobj; | |
4982 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
4983 | wxFont *arg2 = 0 ; | |
4984 | PyObject * obj0 = 0 ; | |
4985 | PyObject * obj1 = 0 ; | |
4986 | char *kwnames[] = { | |
4987 | (char *) "self",(char *) "font", NULL | |
4988 | }; | |
4989 | ||
4990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail; | |
4991 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4992 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4993 | if (arg2 == NULL) { | |
4994 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4995 | } | |
4996 | { | |
4997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4998 | (arg1)->InitFromFont((wxFont const &)*arg2); | |
4999 | ||
5000 | wxPyEndAllowThreads(__tstate); | |
5001 | if (PyErr_Occurred()) SWIG_fail; | |
5002 | } | |
5003 | Py_INCREF(Py_None); resultobj = Py_None; | |
5004 | return resultobj; | |
5005 | fail: | |
5006 | return NULL; | |
5007 | } | |
5008 | ||
5009 | ||
5010 | static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5011 | PyObject *resultobj; | |
5012 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5013 | int result; | |
5014 | PyObject * obj0 = 0 ; | |
5015 | char *kwnames[] = { | |
5016 | (char *) "self", NULL | |
5017 | }; | |
5018 | ||
5019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail; | |
5020 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5021 | { | |
5022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5023 | result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize(); | |
5024 | ||
5025 | wxPyEndAllowThreads(__tstate); | |
5026 | if (PyErr_Occurred()) SWIG_fail; | |
5027 | } | |
5028 | resultobj = PyInt_FromLong((long)result); | |
5029 | return resultobj; | |
5030 | fail: | |
5031 | return NULL; | |
5032 | } | |
5033 | ||
5034 | ||
5035 | static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5036 | PyObject *resultobj; | |
5037 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5038 | int result; | |
5039 | PyObject * obj0 = 0 ; | |
5040 | char *kwnames[] = { | |
5041 | (char *) "self", NULL | |
5042 | }; | |
5043 | ||
5044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail; | |
5045 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5046 | { | |
5047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5048 | result = (int)((wxNativeFontInfo const *)arg1)->GetStyle(); | |
5049 | ||
5050 | wxPyEndAllowThreads(__tstate); | |
5051 | if (PyErr_Occurred()) SWIG_fail; | |
5052 | } | |
5053 | resultobj = PyInt_FromLong((long)result); | |
5054 | return resultobj; | |
5055 | fail: | |
5056 | return NULL; | |
5057 | } | |
5058 | ||
5059 | ||
5060 | static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5061 | PyObject *resultobj; | |
5062 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5063 | int result; | |
5064 | PyObject * obj0 = 0 ; | |
5065 | char *kwnames[] = { | |
5066 | (char *) "self", NULL | |
5067 | }; | |
5068 | ||
5069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail; | |
5070 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5071 | { | |
5072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5073 | result = (int)((wxNativeFontInfo const *)arg1)->GetWeight(); | |
5074 | ||
5075 | wxPyEndAllowThreads(__tstate); | |
5076 | if (PyErr_Occurred()) SWIG_fail; | |
5077 | } | |
5078 | resultobj = PyInt_FromLong((long)result); | |
5079 | return resultobj; | |
5080 | fail: | |
5081 | return NULL; | |
5082 | } | |
5083 | ||
5084 | ||
5085 | static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5086 | PyObject *resultobj; | |
5087 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5088 | bool result; | |
5089 | PyObject * obj0 = 0 ; | |
5090 | char *kwnames[] = { | |
5091 | (char *) "self", NULL | |
5092 | }; | |
5093 | ||
5094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail; | |
5095 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5096 | { | |
5097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5098 | result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined(); | |
5099 | ||
5100 | wxPyEndAllowThreads(__tstate); | |
5101 | if (PyErr_Occurred()) SWIG_fail; | |
5102 | } | |
5103 | resultobj = PyInt_FromLong((long)result); | |
5104 | return resultobj; | |
5105 | fail: | |
5106 | return NULL; | |
5107 | } | |
5108 | ||
5109 | ||
5110 | static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5111 | PyObject *resultobj; | |
5112 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5113 | wxString result; | |
5114 | PyObject * obj0 = 0 ; | |
5115 | char *kwnames[] = { | |
5116 | (char *) "self", NULL | |
5117 | }; | |
5118 | ||
5119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail; | |
5120 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5121 | { | |
5122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5123 | result = ((wxNativeFontInfo const *)arg1)->GetFaceName(); | |
5124 | ||
5125 | wxPyEndAllowThreads(__tstate); | |
5126 | if (PyErr_Occurred()) SWIG_fail; | |
5127 | } | |
5128 | { | |
5129 | #if wxUSE_UNICODE | |
5130 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5131 | #else | |
5132 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5133 | #endif | |
5134 | } | |
5135 | return resultobj; | |
5136 | fail: | |
5137 | return NULL; | |
5138 | } | |
5139 | ||
5140 | ||
5141 | static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5142 | PyObject *resultobj; | |
5143 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5144 | int result; | |
5145 | PyObject * obj0 = 0 ; | |
5146 | char *kwnames[] = { | |
5147 | (char *) "self", NULL | |
5148 | }; | |
5149 | ||
5150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail; | |
5151 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5152 | { | |
5153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5154 | result = (int)((wxNativeFontInfo const *)arg1)->GetFamily(); | |
5155 | ||
5156 | wxPyEndAllowThreads(__tstate); | |
5157 | if (PyErr_Occurred()) SWIG_fail; | |
5158 | } | |
5159 | resultobj = PyInt_FromLong((long)result); | |
5160 | return resultobj; | |
5161 | fail: | |
5162 | return NULL; | |
5163 | } | |
5164 | ||
5165 | ||
5166 | static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5167 | PyObject *resultobj; | |
5168 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5169 | int result; | |
5170 | PyObject * obj0 = 0 ; | |
5171 | char *kwnames[] = { | |
5172 | (char *) "self", NULL | |
5173 | }; | |
5174 | ||
5175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail; | |
5176 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5177 | { | |
5178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5179 | result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding(); | |
5180 | ||
5181 | wxPyEndAllowThreads(__tstate); | |
5182 | if (PyErr_Occurred()) SWIG_fail; | |
5183 | } | |
5184 | resultobj = PyInt_FromLong((long)result); | |
5185 | return resultobj; | |
5186 | fail: | |
5187 | return NULL; | |
5188 | } | |
5189 | ||
5190 | ||
5191 | static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5192 | PyObject *resultobj; | |
5193 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5194 | int arg2 ; | |
5195 | PyObject * obj0 = 0 ; | |
5196 | char *kwnames[] = { | |
5197 | (char *) "self",(char *) "pointsize", NULL | |
5198 | }; | |
5199 | ||
5200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetPointSize",kwnames,&obj0,&arg2)) goto fail; | |
5201 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5202 | { | |
5203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5204 | (arg1)->SetPointSize(arg2); | |
5205 | ||
5206 | wxPyEndAllowThreads(__tstate); | |
5207 | if (PyErr_Occurred()) SWIG_fail; | |
5208 | } | |
5209 | Py_INCREF(Py_None); resultobj = Py_None; | |
5210 | return resultobj; | |
5211 | fail: | |
5212 | return NULL; | |
5213 | } | |
5214 | ||
5215 | ||
5216 | static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5217 | PyObject *resultobj; | |
5218 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5219 | int arg2 ; | |
5220 | PyObject * obj0 = 0 ; | |
5221 | char *kwnames[] = { | |
5222 | (char *) "self",(char *) "style", NULL | |
5223 | }; | |
5224 | ||
5225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetStyle",kwnames,&obj0,&arg2)) goto fail; | |
5226 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5227 | { | |
5228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5229 | (arg1)->SetStyle((wxFontStyle )arg2); | |
5230 | ||
5231 | wxPyEndAllowThreads(__tstate); | |
5232 | if (PyErr_Occurred()) SWIG_fail; | |
5233 | } | |
5234 | Py_INCREF(Py_None); resultobj = Py_None; | |
5235 | return resultobj; | |
5236 | fail: | |
5237 | return NULL; | |
5238 | } | |
5239 | ||
5240 | ||
5241 | static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5242 | PyObject *resultobj; | |
5243 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5244 | int arg2 ; | |
5245 | PyObject * obj0 = 0 ; | |
5246 | char *kwnames[] = { | |
5247 | (char *) "self",(char *) "weight", NULL | |
5248 | }; | |
5249 | ||
5250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetWeight",kwnames,&obj0,&arg2)) goto fail; | |
5251 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5252 | { | |
5253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5254 | (arg1)->SetWeight((wxFontWeight )arg2); | |
5255 | ||
5256 | wxPyEndAllowThreads(__tstate); | |
5257 | if (PyErr_Occurred()) SWIG_fail; | |
5258 | } | |
5259 | Py_INCREF(Py_None); resultobj = Py_None; | |
5260 | return resultobj; | |
5261 | fail: | |
5262 | return NULL; | |
5263 | } | |
5264 | ||
5265 | ||
5266 | static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5267 | PyObject *resultobj; | |
5268 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5269 | bool arg2 ; | |
5270 | PyObject * obj0 = 0 ; | |
5271 | PyObject * obj1 = 0 ; | |
5272 | char *kwnames[] = { | |
5273 | (char *) "self",(char *) "underlined", NULL | |
5274 | }; | |
5275 | ||
5276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; | |
5277 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5278 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
5279 | if (PyErr_Occurred()) SWIG_fail; | |
5280 | { | |
5281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5282 | (arg1)->SetUnderlined(arg2); | |
5283 | ||
5284 | wxPyEndAllowThreads(__tstate); | |
5285 | if (PyErr_Occurred()) SWIG_fail; | |
5286 | } | |
5287 | Py_INCREF(Py_None); resultobj = Py_None; | |
5288 | return resultobj; | |
5289 | fail: | |
5290 | return NULL; | |
5291 | } | |
5292 | ||
5293 | ||
5294 | static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5295 | PyObject *resultobj; | |
5296 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5297 | wxString arg2 ; | |
d14a1e28 RD |
5298 | PyObject * obj0 = 0 ; |
5299 | PyObject * obj1 = 0 ; | |
5300 | char *kwnames[] = { | |
5301 | (char *) "self",(char *) "facename", NULL | |
5302 | }; | |
5303 | ||
5304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail; | |
5305 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
423f194a RD |
5306 | { |
5307 | wxString* sptr = wxString_in_helper(obj1); | |
5308 | if (sptr == NULL) SWIG_fail; | |
5309 | arg2 = *sptr; | |
5310 | delete sptr; | |
5311 | } | |
d14a1e28 RD |
5312 | { |
5313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5314 | (arg1)->SetFaceName(arg2); | |
5315 | ||
5316 | wxPyEndAllowThreads(__tstate); | |
5317 | if (PyErr_Occurred()) SWIG_fail; | |
5318 | } | |
5319 | Py_INCREF(Py_None); resultobj = Py_None; | |
5320 | return resultobj; | |
5321 | fail: | |
5322 | return NULL; | |
5323 | } | |
5324 | ||
5325 | ||
5326 | static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5327 | PyObject *resultobj; | |
5328 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5329 | int arg2 ; | |
5330 | PyObject * obj0 = 0 ; | |
5331 | char *kwnames[] = { | |
5332 | (char *) "self",(char *) "family", NULL | |
5333 | }; | |
5334 | ||
5335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetFamily",kwnames,&obj0,&arg2)) goto fail; | |
5336 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5337 | { | |
5338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5339 | (arg1)->SetFamily((wxFontFamily )arg2); | |
5340 | ||
5341 | wxPyEndAllowThreads(__tstate); | |
5342 | if (PyErr_Occurred()) SWIG_fail; | |
5343 | } | |
5344 | Py_INCREF(Py_None); resultobj = Py_None; | |
5345 | return resultobj; | |
5346 | fail: | |
5347 | return NULL; | |
5348 | } | |
5349 | ||
5350 | ||
5351 | static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5352 | PyObject *resultobj; | |
5353 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5354 | int arg2 ; | |
5355 | PyObject * obj0 = 0 ; | |
5356 | char *kwnames[] = { | |
5357 | (char *) "self",(char *) "encoding", NULL | |
5358 | }; | |
5359 | ||
5360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetEncoding",kwnames,&obj0,&arg2)) goto fail; | |
5361 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5362 | { | |
5363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5364 | (arg1)->SetEncoding((wxFontEncoding )arg2); | |
5365 | ||
5366 | wxPyEndAllowThreads(__tstate); | |
5367 | if (PyErr_Occurred()) SWIG_fail; | |
5368 | } | |
5369 | Py_INCREF(Py_None); resultobj = Py_None; | |
5370 | return resultobj; | |
5371 | fail: | |
5372 | return NULL; | |
5373 | } | |
5374 | ||
5375 | ||
5376 | static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5377 | PyObject *resultobj; | |
5378 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5379 | wxString *arg2 = 0 ; | |
5380 | bool result; | |
423f194a | 5381 | bool temp2 = False ; |
d14a1e28 RD |
5382 | PyObject * obj0 = 0 ; |
5383 | PyObject * obj1 = 0 ; | |
5384 | char *kwnames[] = { | |
5385 | (char *) "self",(char *) "s", NULL | |
5386 | }; | |
5387 | ||
5388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail; | |
5389 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5390 | { | |
5391 | arg2 = wxString_in_helper(obj1); | |
5392 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5393 | temp2 = True; |
d14a1e28 RD |
5394 | } |
5395 | { | |
5396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5397 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
5398 | ||
5399 | wxPyEndAllowThreads(__tstate); | |
5400 | if (PyErr_Occurred()) SWIG_fail; | |
5401 | } | |
5402 | resultobj = PyInt_FromLong((long)result); | |
5403 | { | |
5404 | if (temp2) | |
5405 | delete arg2; | |
5406 | } | |
5407 | return resultobj; | |
5408 | fail: | |
5409 | { | |
5410 | if (temp2) | |
5411 | delete arg2; | |
5412 | } | |
5413 | return NULL; | |
5414 | } | |
5415 | ||
5416 | ||
5417 | static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5418 | PyObject *resultobj; | |
5419 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5420 | wxString result; | |
5421 | PyObject * obj0 = 0 ; | |
5422 | char *kwnames[] = { | |
5423 | (char *) "self", NULL | |
5424 | }; | |
5425 | ||
5426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail; | |
5427 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5428 | { | |
5429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5430 | result = ((wxNativeFontInfo const *)arg1)->ToString(); | |
5431 | ||
5432 | wxPyEndAllowThreads(__tstate); | |
5433 | if (PyErr_Occurred()) SWIG_fail; | |
5434 | } | |
5435 | { | |
5436 | #if wxUSE_UNICODE | |
5437 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5438 | #else | |
5439 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5440 | #endif | |
5441 | } | |
5442 | return resultobj; | |
5443 | fail: | |
5444 | return NULL; | |
5445 | } | |
5446 | ||
5447 | ||
5448 | static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5449 | PyObject *resultobj; | |
5450 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5451 | wxString result; | |
5452 | PyObject * obj0 = 0 ; | |
5453 | char *kwnames[] = { | |
5454 | (char *) "self", NULL | |
5455 | }; | |
5456 | ||
5457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail; | |
5458 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5459 | { | |
5460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5461 | result = wxNativeFontInfo___str__(arg1); | |
5462 | ||
5463 | wxPyEndAllowThreads(__tstate); | |
5464 | if (PyErr_Occurred()) SWIG_fail; | |
5465 | } | |
5466 | { | |
5467 | #if wxUSE_UNICODE | |
5468 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5469 | #else | |
5470 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5471 | #endif | |
5472 | } | |
5473 | return resultobj; | |
5474 | fail: | |
5475 | return NULL; | |
5476 | } | |
5477 | ||
5478 | ||
5479 | static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5480 | PyObject *resultobj; | |
5481 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5482 | wxString *arg2 = 0 ; | |
5483 | bool result; | |
423f194a | 5484 | bool temp2 = False ; |
d14a1e28 RD |
5485 | PyObject * obj0 = 0 ; |
5486 | PyObject * obj1 = 0 ; | |
5487 | char *kwnames[] = { | |
5488 | (char *) "self",(char *) "s", NULL | |
5489 | }; | |
5490 | ||
5491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail; | |
5492 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5493 | { | |
5494 | arg2 = wxString_in_helper(obj1); | |
5495 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5496 | temp2 = True; |
d14a1e28 RD |
5497 | } |
5498 | { | |
5499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5500 | result = (bool)(arg1)->FromUserString((wxString const &)*arg2); | |
5501 | ||
5502 | wxPyEndAllowThreads(__tstate); | |
5503 | if (PyErr_Occurred()) SWIG_fail; | |
5504 | } | |
5505 | resultobj = PyInt_FromLong((long)result); | |
5506 | { | |
5507 | if (temp2) | |
5508 | delete arg2; | |
5509 | } | |
5510 | return resultobj; | |
5511 | fail: | |
5512 | { | |
5513 | if (temp2) | |
5514 | delete arg2; | |
5515 | } | |
5516 | return NULL; | |
5517 | } | |
5518 | ||
5519 | ||
5520 | static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5521 | PyObject *resultobj; | |
5522 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5523 | wxString result; | |
5524 | PyObject * obj0 = 0 ; | |
5525 | char *kwnames[] = { | |
5526 | (char *) "self", NULL | |
5527 | }; | |
5528 | ||
5529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail; | |
5530 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5531 | { | |
5532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5533 | result = ((wxNativeFontInfo const *)arg1)->ToUserString(); | |
5534 | ||
5535 | wxPyEndAllowThreads(__tstate); | |
5536 | if (PyErr_Occurred()) SWIG_fail; | |
5537 | } | |
5538 | { | |
5539 | #if wxUSE_UNICODE | |
5540 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5541 | #else | |
5542 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5543 | #endif | |
5544 | } | |
5545 | return resultobj; | |
5546 | fail: | |
5547 | return NULL; | |
5548 | } | |
5549 | ||
5550 | ||
5551 | static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) { | |
5552 | PyObject *obj; | |
5553 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5554 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj); | |
5555 | Py_INCREF(obj); | |
5556 | return Py_BuildValue((char *)""); | |
5557 | } | |
5558 | static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5559 | PyObject *resultobj; | |
5560 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
5561 | wxString arg2 ; | |
d14a1e28 RD |
5562 | PyObject * obj0 = 0 ; |
5563 | PyObject * obj1 = 0 ; | |
5564 | char *kwnames[] = { | |
5565 | (char *) "self",(char *) "facename", NULL | |
5566 | }; | |
5567 | ||
5568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail; | |
5569 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
423f194a RD |
5570 | { |
5571 | wxString* sptr = wxString_in_helper(obj1); | |
5572 | if (sptr == NULL) SWIG_fail; | |
5573 | arg2 = *sptr; | |
5574 | delete sptr; | |
5575 | } | |
d14a1e28 RD |
5576 | if (arg1) (arg1)->facename = arg2; |
5577 | ||
5578 | Py_INCREF(Py_None); resultobj = Py_None; | |
5579 | return resultobj; | |
5580 | fail: | |
5581 | return NULL; | |
5582 | } | |
5583 | ||
5584 | ||
5585 | static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5586 | PyObject *resultobj; | |
5587 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
5588 | wxString result; | |
5589 | PyObject * obj0 = 0 ; | |
5590 | char *kwnames[] = { | |
5591 | (char *) "self", NULL | |
5592 | }; | |
5593 | ||
5594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail; | |
5595 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5596 | result = ((arg1)->facename); | |
5597 | ||
5598 | { | |
5599 | #if wxUSE_UNICODE | |
5600 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5601 | #else | |
5602 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5603 | #endif | |
5604 | } | |
5605 | return resultobj; | |
5606 | fail: | |
5607 | return NULL; | |
5608 | } | |
5609 | ||
5610 | ||
5611 | static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5612 | PyObject *resultobj; | |
5613 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
5614 | int arg2 ; | |
5615 | PyObject * obj0 = 0 ; | |
5616 | char *kwnames[] = { | |
5617 | (char *) "self",(char *) "encoding", NULL | |
5618 | }; | |
5619 | ||
5620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeEncodingInfo_encoding_set",kwnames,&obj0,&arg2)) goto fail; | |
5621 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5622 | if (arg1) (arg1)->encoding = (wxFontEncoding )arg2; | |
5623 | ||
5624 | Py_INCREF(Py_None); resultobj = Py_None; | |
5625 | return resultobj; | |
5626 | fail: | |
5627 | return NULL; | |
5628 | } | |
5629 | ||
5630 | ||
5631 | static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5632 | PyObject *resultobj; | |
5633 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 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:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail; | |
5641 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5642 | result = (int) ((arg1)->encoding); | |
5643 | ||
5644 | resultobj = PyInt_FromLong((long)result); | |
5645 | return resultobj; | |
5646 | fail: | |
5647 | return NULL; | |
5648 | } | |
5649 | ||
5650 | ||
5651 | static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5652 | PyObject *resultobj; | |
5653 | wxNativeEncodingInfo *result; | |
5654 | char *kwnames[] = { | |
5655 | NULL | |
5656 | }; | |
5657 | ||
5658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail; | |
5659 | { | |
5660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5661 | result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo(); | |
5662 | ||
5663 | wxPyEndAllowThreads(__tstate); | |
5664 | if (PyErr_Occurred()) SWIG_fail; | |
5665 | } | |
5666 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 1); | |
5667 | return resultobj; | |
5668 | fail: | |
5669 | return NULL; | |
5670 | } | |
5671 | ||
5672 | ||
5673 | static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5674 | PyObject *resultobj; | |
5675 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
5676 | PyObject * obj0 = 0 ; | |
5677 | char *kwnames[] = { | |
5678 | (char *) "self", NULL | |
5679 | }; | |
5680 | ||
5681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail; | |
5682 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5683 | { | |
5684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5685 | delete arg1; | |
5686 | ||
5687 | wxPyEndAllowThreads(__tstate); | |
5688 | if (PyErr_Occurred()) SWIG_fail; | |
5689 | } | |
5690 | Py_INCREF(Py_None); resultobj = Py_None; | |
5691 | return resultobj; | |
5692 | fail: | |
5693 | return NULL; | |
5694 | } | |
5695 | ||
5696 | ||
5697 | static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5698 | PyObject *resultobj; | |
5699 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
5700 | wxString *arg2 = 0 ; | |
5701 | bool result; | |
423f194a | 5702 | bool temp2 = False ; |
d14a1e28 RD |
5703 | PyObject * obj0 = 0 ; |
5704 | PyObject * obj1 = 0 ; | |
5705 | char *kwnames[] = { | |
5706 | (char *) "self",(char *) "s", NULL | |
5707 | }; | |
5708 | ||
5709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail; | |
5710 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5711 | { | |
5712 | arg2 = wxString_in_helper(obj1); | |
5713 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5714 | temp2 = True; |
d14a1e28 RD |
5715 | } |
5716 | { | |
5717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5718 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
5719 | ||
5720 | wxPyEndAllowThreads(__tstate); | |
5721 | if (PyErr_Occurred()) SWIG_fail; | |
5722 | } | |
5723 | resultobj = PyInt_FromLong((long)result); | |
5724 | { | |
5725 | if (temp2) | |
5726 | delete arg2; | |
5727 | } | |
5728 | return resultobj; | |
5729 | fail: | |
5730 | { | |
5731 | if (temp2) | |
5732 | delete arg2; | |
5733 | } | |
5734 | return NULL; | |
5735 | } | |
5736 | ||
5737 | ||
5738 | static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5739 | PyObject *resultobj; | |
5740 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
5741 | wxString result; | |
5742 | PyObject * obj0 = 0 ; | |
5743 | char *kwnames[] = { | |
5744 | (char *) "self", NULL | |
5745 | }; | |
5746 | ||
5747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail; | |
5748 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5749 | { | |
5750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5751 | result = ((wxNativeEncodingInfo const *)arg1)->ToString(); | |
5752 | ||
5753 | wxPyEndAllowThreads(__tstate); | |
5754 | if (PyErr_Occurred()) SWIG_fail; | |
5755 | } | |
5756 | { | |
5757 | #if wxUSE_UNICODE | |
5758 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5759 | #else | |
5760 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5761 | #endif | |
5762 | } | |
5763 | return resultobj; | |
5764 | fail: | |
5765 | return NULL; | |
5766 | } | |
5767 | ||
5768 | ||
5769 | static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) { | |
5770 | PyObject *obj; | |
5771 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5772 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj); | |
5773 | Py_INCREF(obj); | |
5774 | return Py_BuildValue((char *)""); | |
5775 | } | |
5776 | static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5777 | PyObject *resultobj; | |
5778 | int arg1 ; | |
5779 | wxNativeEncodingInfo *result; | |
5780 | char *kwnames[] = { | |
5781 | (char *) "encoding", NULL | |
5782 | }; | |
5783 | ||
5784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:GetNativeFontEncoding",kwnames,&arg1)) goto fail; | |
5785 | { | |
5786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5787 | result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1); | |
5788 | ||
5789 | wxPyEndAllowThreads(__tstate); | |
5790 | if (PyErr_Occurred()) SWIG_fail; | |
5791 | } | |
5792 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 0); | |
5793 | return resultobj; | |
5794 | fail: | |
5795 | return NULL; | |
5796 | } | |
5797 | ||
5798 | ||
5799 | static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5800 | PyObject *resultobj; | |
5801 | wxNativeEncodingInfo *arg1 = 0 ; | |
5802 | bool result; | |
5803 | PyObject * obj0 = 0 ; | |
5804 | char *kwnames[] = { | |
5805 | (char *) "info", NULL | |
5806 | }; | |
5807 | ||
5808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail; | |
5809 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5810 | if (arg1 == NULL) { | |
5811 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5812 | } | |
5813 | { | |
5814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5815 | result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1); | |
5816 | ||
5817 | wxPyEndAllowThreads(__tstate); | |
5818 | if (PyErr_Occurred()) SWIG_fail; | |
5819 | } | |
5820 | resultobj = PyInt_FromLong((long)result); | |
5821 | return resultobj; | |
5822 | fail: | |
5823 | return NULL; | |
5824 | } | |
5825 | ||
5826 | ||
5827 | static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5828 | PyObject *resultobj; | |
5829 | wxFontMapper *result; | |
5830 | char *kwnames[] = { | |
5831 | NULL | |
5832 | }; | |
5833 | ||
5834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail; | |
5835 | { | |
5836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5837 | result = (wxFontMapper *)new wxFontMapper(); | |
5838 | ||
5839 | wxPyEndAllowThreads(__tstate); | |
5840 | if (PyErr_Occurred()) SWIG_fail; | |
5841 | } | |
5842 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 1); | |
5843 | return resultobj; | |
5844 | fail: | |
5845 | return NULL; | |
5846 | } | |
5847 | ||
5848 | ||
5849 | static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5850 | PyObject *resultobj; | |
5851 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
5852 | PyObject * obj0 = 0 ; | |
5853 | char *kwnames[] = { | |
5854 | (char *) "self", NULL | |
5855 | }; | |
5856 | ||
5857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail; | |
5858 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5859 | { | |
5860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5861 | delete arg1; | |
5862 | ||
5863 | wxPyEndAllowThreads(__tstate); | |
5864 | if (PyErr_Occurred()) SWIG_fail; | |
5865 | } | |
5866 | Py_INCREF(Py_None); resultobj = Py_None; | |
5867 | return resultobj; | |
5868 | fail: | |
5869 | return NULL; | |
5870 | } | |
5871 | ||
5872 | ||
5873 | static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5874 | PyObject *resultobj; | |
5875 | wxFontMapper *result; | |
5876 | char *kwnames[] = { | |
5877 | NULL | |
5878 | }; | |
5879 | ||
5880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail; | |
5881 | { | |
5882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5883 | result = (wxFontMapper *)wxFontMapper::Get(); | |
5884 | ||
5885 | wxPyEndAllowThreads(__tstate); | |
5886 | if (PyErr_Occurred()) SWIG_fail; | |
5887 | } | |
5888 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0); | |
5889 | return resultobj; | |
5890 | fail: | |
5891 | return NULL; | |
5892 | } | |
5893 | ||
5894 | ||
5895 | static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5896 | PyObject *resultobj; | |
5897 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
5898 | wxFontMapper *result; | |
5899 | PyObject * obj0 = 0 ; | |
5900 | char *kwnames[] = { | |
5901 | (char *) "mapper", NULL | |
5902 | }; | |
5903 | ||
5904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail; | |
5905 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5906 | { | |
5907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5908 | result = (wxFontMapper *)wxFontMapper::Set(arg1); | |
5909 | ||
5910 | wxPyEndAllowThreads(__tstate); | |
5911 | if (PyErr_Occurred()) SWIG_fail; | |
5912 | } | |
5913 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0); | |
5914 | return resultobj; | |
5915 | fail: | |
5916 | return NULL; | |
5917 | } | |
5918 | ||
5919 | ||
5920 | static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5921 | PyObject *resultobj; | |
5922 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
5923 | wxString *arg2 = 0 ; | |
423f194a | 5924 | bool arg3 = (bool) True ; |
d14a1e28 | 5925 | int result; |
423f194a | 5926 | bool temp2 = False ; |
d14a1e28 RD |
5927 | PyObject * obj0 = 0 ; |
5928 | PyObject * obj1 = 0 ; | |
5929 | PyObject * obj2 = 0 ; | |
5930 | char *kwnames[] = { | |
5931 | (char *) "self",(char *) "charset",(char *) "interactive", NULL | |
5932 | }; | |
5933 | ||
5934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5935 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5936 | { | |
5937 | arg2 = wxString_in_helper(obj1); | |
5938 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5939 | temp2 = True; |
d14a1e28 RD |
5940 | } |
5941 | if (obj2) { | |
5942 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
5943 | if (PyErr_Occurred()) SWIG_fail; | |
5944 | } | |
5945 | { | |
5946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5947 | result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3); | |
5948 | ||
5949 | wxPyEndAllowThreads(__tstate); | |
5950 | if (PyErr_Occurred()) SWIG_fail; | |
5951 | } | |
5952 | resultobj = PyInt_FromLong((long)result); | |
5953 | { | |
5954 | if (temp2) | |
5955 | delete arg2; | |
5956 | } | |
5957 | return resultobj; | |
5958 | fail: | |
5959 | { | |
5960 | if (temp2) | |
5961 | delete arg2; | |
5962 | } | |
5963 | return NULL; | |
5964 | } | |
5965 | ||
5966 | ||
5967 | static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5968 | PyObject *resultobj; | |
5969 | size_t result; | |
5970 | char *kwnames[] = { | |
5971 | NULL | |
5972 | }; | |
5973 | ||
5974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail; | |
5975 | { | |
5976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5977 | result = (size_t)wxFontMapper::GetSupportedEncodingsCount(); | |
5978 | ||
5979 | wxPyEndAllowThreads(__tstate); | |
5980 | if (PyErr_Occurred()) SWIG_fail; | |
5981 | } | |
5982 | resultobj = PyInt_FromLong((long)result); | |
5983 | return resultobj; | |
5984 | fail: | |
5985 | return NULL; | |
5986 | } | |
5987 | ||
5988 | ||
5989 | static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5990 | PyObject *resultobj; | |
5991 | size_t arg1 ; | |
5992 | int result; | |
5993 | PyObject * obj0 = 0 ; | |
5994 | char *kwnames[] = { | |
5995 | (char *) "n", NULL | |
5996 | }; | |
5997 | ||
5998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail; | |
5999 | arg1 = (size_t) PyInt_AsLong(obj0); | |
6000 | if (PyErr_Occurred()) SWIG_fail; | |
6001 | { | |
6002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6003 | result = (int)wxFontMapper::GetEncoding(arg1); | |
6004 | ||
6005 | wxPyEndAllowThreads(__tstate); | |
6006 | if (PyErr_Occurred()) SWIG_fail; | |
6007 | } | |
6008 | resultobj = PyInt_FromLong((long)result); | |
6009 | return resultobj; | |
6010 | fail: | |
6011 | return NULL; | |
6012 | } | |
6013 | ||
6014 | ||
6015 | static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6016 | PyObject *resultobj; | |
6017 | int arg1 ; | |
6018 | wxString result; | |
6019 | char *kwnames[] = { | |
6020 | (char *) "encoding", NULL | |
6021 | }; | |
6022 | ||
6023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:FontMapper_GetEncodingName",kwnames,&arg1)) goto fail; | |
6024 | { | |
6025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6026 | result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1); | |
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_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6045 | PyObject *resultobj; | |
6046 | int arg1 ; | |
6047 | wxString result; | |
6048 | char *kwnames[] = { | |
6049 | (char *) "encoding", NULL | |
6050 | }; | |
6051 | ||
6052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:FontMapper_GetEncodingDescription",kwnames,&arg1)) goto fail; | |
6053 | { | |
6054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6055 | result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1); | |
6056 | ||
6057 | wxPyEndAllowThreads(__tstate); | |
6058 | if (PyErr_Occurred()) SWIG_fail; | |
6059 | } | |
6060 | { | |
6061 | #if wxUSE_UNICODE | |
6062 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6063 | #else | |
6064 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6065 | #endif | |
6066 | } | |
6067 | return resultobj; | |
6068 | fail: | |
6069 | return NULL; | |
6070 | } | |
6071 | ||
6072 | ||
6073 | static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6074 | PyObject *resultobj; | |
6075 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6076 | wxConfigBase *arg2 = (wxConfigBase *) 0 ; | |
6077 | PyObject * obj0 = 0 ; | |
6078 | PyObject * obj1 = 0 ; | |
6079 | char *kwnames[] = { | |
6080 | (char *) "self",(char *) "config", NULL | |
6081 | }; | |
6082 | ||
6083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail; | |
6084 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6085 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6086 | { | |
6087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6088 | (arg1)->SetConfig(arg2); | |
6089 | ||
6090 | wxPyEndAllowThreads(__tstate); | |
6091 | if (PyErr_Occurred()) SWIG_fail; | |
6092 | } | |
6093 | Py_INCREF(Py_None); resultobj = Py_None; | |
6094 | return resultobj; | |
6095 | fail: | |
6096 | return NULL; | |
6097 | } | |
6098 | ||
6099 | ||
6100 | static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6101 | PyObject *resultobj; | |
6102 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6103 | wxString *arg2 = 0 ; | |
423f194a | 6104 | bool temp2 = False ; |
d14a1e28 RD |
6105 | PyObject * obj0 = 0 ; |
6106 | PyObject * obj1 = 0 ; | |
6107 | char *kwnames[] = { | |
6108 | (char *) "self",(char *) "prefix", NULL | |
6109 | }; | |
6110 | ||
6111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail; | |
6112 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6113 | { | |
6114 | arg2 = wxString_in_helper(obj1); | |
6115 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6116 | temp2 = True; |
d14a1e28 RD |
6117 | } |
6118 | { | |
6119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6120 | (arg1)->SetConfigPath((wxString const &)*arg2); | |
6121 | ||
6122 | wxPyEndAllowThreads(__tstate); | |
6123 | if (PyErr_Occurred()) SWIG_fail; | |
6124 | } | |
6125 | Py_INCREF(Py_None); resultobj = Py_None; | |
6126 | { | |
6127 | if (temp2) | |
6128 | delete arg2; | |
6129 | } | |
6130 | return resultobj; | |
6131 | fail: | |
6132 | { | |
6133 | if (temp2) | |
6134 | delete arg2; | |
6135 | } | |
6136 | return NULL; | |
6137 | } | |
6138 | ||
6139 | ||
6140 | static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6141 | PyObject *resultobj; | |
6142 | wxString result; | |
6143 | char *kwnames[] = { | |
6144 | NULL | |
6145 | }; | |
6146 | ||
6147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail; | |
6148 | { | |
6149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6150 | result = wxFontMapper::GetDefaultConfigPath(); | |
6151 | ||
6152 | wxPyEndAllowThreads(__tstate); | |
6153 | if (PyErr_Occurred()) SWIG_fail; | |
6154 | } | |
6155 | { | |
6156 | #if wxUSE_UNICODE | |
6157 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6158 | #else | |
6159 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6160 | #endif | |
6161 | } | |
6162 | return resultobj; | |
6163 | fail: | |
6164 | return NULL; | |
6165 | } | |
6166 | ||
6167 | ||
6168 | static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6169 | PyObject *resultobj; | |
6170 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6171 | int arg2 ; | |
6172 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
6173 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
423f194a | 6174 | bool arg4 = (bool) True ; |
d14a1e28 | 6175 | PyObject *result; |
423f194a | 6176 | bool temp3 = False ; |
d14a1e28 RD |
6177 | PyObject * obj0 = 0 ; |
6178 | PyObject * obj2 = 0 ; | |
6179 | PyObject * obj3 = 0 ; | |
6180 | char *kwnames[] = { | |
6181 | (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL | |
6182 | }; | |
6183 | ||
6184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&arg2,&obj2,&obj3)) goto fail; | |
6185 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6186 | if (obj2) { | |
6187 | { | |
6188 | arg3 = wxString_in_helper(obj2); | |
6189 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 6190 | temp3 = True; |
d14a1e28 RD |
6191 | } |
6192 | } | |
6193 | if (obj3) { | |
6194 | arg4 = PyInt_AsLong(obj3) ? true : false; | |
6195 | if (PyErr_Occurred()) SWIG_fail; | |
6196 | } | |
6197 | { | |
6198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6199 | result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4); | |
6200 | ||
6201 | wxPyEndAllowThreads(__tstate); | |
6202 | if (PyErr_Occurred()) SWIG_fail; | |
6203 | } | |
6204 | resultobj = result; | |
6205 | { | |
6206 | if (temp3) | |
6207 | delete arg3; | |
6208 | } | |
6209 | return resultobj; | |
6210 | fail: | |
6211 | { | |
6212 | if (temp3) | |
6213 | delete arg3; | |
6214 | } | |
6215 | return NULL; | |
6216 | } | |
6217 | ||
6218 | ||
6219 | static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6220 | PyObject *resultobj; | |
6221 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6222 | int arg2 ; | |
6223 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
6224 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
6225 | bool result; | |
423f194a | 6226 | bool temp3 = False ; |
d14a1e28 RD |
6227 | PyObject * obj0 = 0 ; |
6228 | PyObject * obj2 = 0 ; | |
6229 | char *kwnames[] = { | |
6230 | (char *) "self",(char *) "encoding",(char *) "facename", NULL | |
6231 | }; | |
6232 | ||
6233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
6234 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6235 | if (obj2) { | |
6236 | { | |
6237 | arg3 = wxString_in_helper(obj2); | |
6238 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 6239 | temp3 = True; |
d14a1e28 RD |
6240 | } |
6241 | } | |
6242 | { | |
6243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6244 | result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3); | |
6245 | ||
6246 | wxPyEndAllowThreads(__tstate); | |
6247 | if (PyErr_Occurred()) SWIG_fail; | |
6248 | } | |
6249 | resultobj = PyInt_FromLong((long)result); | |
6250 | { | |
6251 | if (temp3) | |
6252 | delete arg3; | |
6253 | } | |
6254 | return resultobj; | |
6255 | fail: | |
6256 | { | |
6257 | if (temp3) | |
6258 | delete arg3; | |
6259 | } | |
6260 | return NULL; | |
6261 | } | |
6262 | ||
6263 | ||
6264 | static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6265 | PyObject *resultobj; | |
6266 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6267 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6268 | PyObject * obj0 = 0 ; | |
6269 | PyObject * obj1 = 0 ; | |
6270 | char *kwnames[] = { | |
6271 | (char *) "self",(char *) "parent", NULL | |
6272 | }; | |
6273 | ||
6274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail; | |
6275 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6276 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6277 | { | |
6278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6279 | (arg1)->SetDialogParent(arg2); | |
6280 | ||
6281 | wxPyEndAllowThreads(__tstate); | |
6282 | if (PyErr_Occurred()) SWIG_fail; | |
6283 | } | |
6284 | Py_INCREF(Py_None); resultobj = Py_None; | |
6285 | return resultobj; | |
6286 | fail: | |
6287 | return NULL; | |
6288 | } | |
6289 | ||
6290 | ||
6291 | static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6292 | PyObject *resultobj; | |
6293 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6294 | wxString *arg2 = 0 ; | |
423f194a | 6295 | bool temp2 = False ; |
d14a1e28 RD |
6296 | PyObject * obj0 = 0 ; |
6297 | PyObject * obj1 = 0 ; | |
6298 | char *kwnames[] = { | |
6299 | (char *) "self",(char *) "title", NULL | |
6300 | }; | |
6301 | ||
6302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail; | |
6303 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6304 | { | |
6305 | arg2 = wxString_in_helper(obj1); | |
6306 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6307 | temp2 = True; |
d14a1e28 RD |
6308 | } |
6309 | { | |
6310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6311 | (arg1)->SetDialogTitle((wxString const &)*arg2); | |
6312 | ||
6313 | wxPyEndAllowThreads(__tstate); | |
6314 | if (PyErr_Occurred()) SWIG_fail; | |
6315 | } | |
6316 | Py_INCREF(Py_None); resultobj = Py_None; | |
6317 | { | |
6318 | if (temp2) | |
6319 | delete arg2; | |
6320 | } | |
6321 | return resultobj; | |
6322 | fail: | |
6323 | { | |
6324 | if (temp2) | |
6325 | delete arg2; | |
6326 | } | |
6327 | return NULL; | |
6328 | } | |
6329 | ||
6330 | ||
6331 | static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) { | |
6332 | PyObject *obj; | |
6333 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6334 | SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj); | |
6335 | Py_INCREF(obj); | |
6336 | return Py_BuildValue((char *)""); | |
6337 | } | |
6338 | static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6339 | PyObject *resultobj; | |
6340 | int arg1 ; | |
6341 | int arg2 ; | |
6342 | int arg3 ; | |
6343 | int arg4 ; | |
423f194a | 6344 | bool arg5 = (bool) False ; |
d14a1e28 RD |
6345 | wxString const &arg6_defvalue = wxPyEmptyString ; |
6346 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
6347 | int arg7 = (int) wxFONTENCODING_DEFAULT ; | |
6348 | wxFont *result; | |
423f194a | 6349 | bool temp6 = False ; |
d14a1e28 RD |
6350 | PyObject * obj4 = 0 ; |
6351 | PyObject * obj5 = 0 ; | |
6352 | char *kwnames[] = { | |
6353 | (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL | |
6354 | }; | |
6355 | ||
6356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iiii|OOi:new_Font",kwnames,&arg1,&arg2,&arg3,&arg4,&obj4,&obj5,&arg7)) goto fail; | |
6357 | if (obj4) { | |
6358 | arg5 = PyInt_AsLong(obj4) ? true : false; | |
6359 | if (PyErr_Occurred()) SWIG_fail; | |
6360 | } | |
6361 | if (obj5) { | |
6362 | { | |
6363 | arg6 = wxString_in_helper(obj5); | |
6364 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 6365 | temp6 = True; |
d14a1e28 RD |
6366 | } |
6367 | } | |
6368 | { | |
6369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6370 | result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7); | |
6371 | ||
6372 | wxPyEndAllowThreads(__tstate); | |
6373 | if (PyErr_Occurred()) SWIG_fail; | |
6374 | } | |
6375 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1); | |
6376 | { | |
6377 | if (temp6) | |
6378 | delete arg6; | |
6379 | } | |
6380 | return resultobj; | |
6381 | fail: | |
6382 | { | |
6383 | if (temp6) | |
6384 | delete arg6; | |
6385 | } | |
6386 | return NULL; | |
6387 | } | |
6388 | ||
6389 | ||
6390 | static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6391 | PyObject *resultobj; | |
6392 | wxFont *arg1 = (wxFont *) 0 ; | |
6393 | PyObject * obj0 = 0 ; | |
6394 | char *kwnames[] = { | |
6395 | (char *) "self", NULL | |
6396 | }; | |
6397 | ||
6398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail; | |
6399 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6400 | { | |
6401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6402 | delete arg1; | |
6403 | ||
6404 | wxPyEndAllowThreads(__tstate); | |
6405 | if (PyErr_Occurred()) SWIG_fail; | |
6406 | } | |
6407 | Py_INCREF(Py_None); resultobj = Py_None; | |
6408 | return resultobj; | |
6409 | fail: | |
6410 | return NULL; | |
6411 | } | |
6412 | ||
6413 | ||
6414 | static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6415 | PyObject *resultobj; | |
6416 | wxNativeFontInfo *arg1 = 0 ; | |
6417 | wxFont *result; | |
6418 | PyObject * obj0 = 0 ; | |
6419 | char *kwnames[] = { | |
6420 | (char *) "info", NULL | |
6421 | }; | |
6422 | ||
6423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail; | |
6424 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6425 | if (arg1 == NULL) { | |
6426 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6427 | } | |
6428 | { | |
6429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6430 | result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1); | |
6431 | ||
6432 | wxPyEndAllowThreads(__tstate); | |
6433 | if (PyErr_Occurred()) SWIG_fail; | |
6434 | } | |
6435 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1); | |
6436 | return resultobj; | |
6437 | fail: | |
6438 | return NULL; | |
6439 | } | |
6440 | ||
6441 | ||
6442 | static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6443 | PyObject *resultobj; | |
6444 | wxString *arg1 = 0 ; | |
6445 | wxFont *result; | |
423f194a | 6446 | bool temp1 = False ; |
d14a1e28 RD |
6447 | PyObject * obj0 = 0 ; |
6448 | char *kwnames[] = { | |
6449 | (char *) "info", NULL | |
6450 | }; | |
6451 | ||
6452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail; | |
6453 | { | |
6454 | arg1 = wxString_in_helper(obj0); | |
6455 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 6456 | temp1 = True; |
d14a1e28 RD |
6457 | } |
6458 | { | |
6459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6460 | result = (wxFont *)new_wxFont((wxString const &)*arg1); | |
6461 | ||
6462 | wxPyEndAllowThreads(__tstate); | |
6463 | if (PyErr_Occurred()) SWIG_fail; | |
6464 | } | |
6465 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1); | |
6466 | { | |
6467 | if (temp1) | |
6468 | delete arg1; | |
6469 | } | |
6470 | return resultobj; | |
6471 | fail: | |
6472 | { | |
6473 | if (temp1) | |
6474 | delete arg1; | |
6475 | } | |
6476 | return NULL; | |
6477 | } | |
6478 | ||
6479 | ||
6480 | static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6481 | PyObject *resultobj; | |
6482 | int arg1 ; | |
6483 | int arg2 ; | |
6484 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
6485 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
6486 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
6487 | int arg5 = (int) wxFONTENCODING_DEFAULT ; | |
6488 | wxFont *result; | |
423f194a | 6489 | bool temp4 = False ; |
d14a1e28 RD |
6490 | PyObject * obj3 = 0 ; |
6491 | char *kwnames[] = { | |
6492 | (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
6493 | }; | |
6494 | ||
6495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii|iOi:new_Font2",kwnames,&arg1,&arg2,&arg3,&obj3,&arg5)) goto fail; | |
6496 | if (obj3) { | |
6497 | { | |
6498 | arg4 = wxString_in_helper(obj3); | |
6499 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 6500 | temp4 = True; |
d14a1e28 RD |
6501 | } |
6502 | } | |
6503 | { | |
6504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6505 | result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5); | |
6506 | ||
6507 | wxPyEndAllowThreads(__tstate); | |
6508 | if (PyErr_Occurred()) SWIG_fail; | |
6509 | } | |
6510 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1); | |
6511 | { | |
6512 | if (temp4) | |
6513 | delete arg4; | |
6514 | } | |
6515 | return resultobj; | |
6516 | fail: | |
6517 | { | |
6518 | if (temp4) | |
6519 | delete arg4; | |
6520 | } | |
6521 | return NULL; | |
6522 | } | |
6523 | ||
6524 | ||
6525 | static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6526 | PyObject *resultobj; | |
6527 | wxFont *arg1 = (wxFont *) 0 ; | |
6528 | bool result; | |
6529 | PyObject * obj0 = 0 ; | |
6530 | char *kwnames[] = { | |
6531 | (char *) "self", NULL | |
6532 | }; | |
6533 | ||
6534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail; | |
6535 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6536 | { | |
6537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6538 | result = (bool)((wxFont const *)arg1)->Ok(); | |
6539 | ||
6540 | wxPyEndAllowThreads(__tstate); | |
6541 | if (PyErr_Occurred()) SWIG_fail; | |
6542 | } | |
6543 | resultobj = PyInt_FromLong((long)result); | |
6544 | return resultobj; | |
6545 | fail: | |
6546 | return NULL; | |
6547 | } | |
6548 | ||
6549 | ||
6550 | static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6551 | PyObject *resultobj; | |
6552 | wxFont *arg1 = (wxFont *) 0 ; | |
6553 | wxFont *arg2 = 0 ; | |
6554 | bool result; | |
6555 | PyObject * obj0 = 0 ; | |
6556 | PyObject * obj1 = 0 ; | |
6557 | char *kwnames[] = { | |
6558 | (char *) "self",(char *) "font", NULL | |
6559 | }; | |
6560 | ||
6561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail; | |
6562 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6563 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6564 | if (arg2 == NULL) { | |
6565 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6566 | } | |
6567 | { | |
6568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6569 | result = (bool)((wxFont const *)arg1)->operator ==((wxFont const &)*arg2); | |
6570 | ||
6571 | wxPyEndAllowThreads(__tstate); | |
6572 | if (PyErr_Occurred()) SWIG_fail; | |
6573 | } | |
6574 | resultobj = PyInt_FromLong((long)result); | |
6575 | return resultobj; | |
6576 | fail: | |
6577 | return NULL; | |
6578 | } | |
6579 | ||
6580 | ||
6581 | static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6582 | PyObject *resultobj; | |
6583 | wxFont *arg1 = (wxFont *) 0 ; | |
6584 | wxFont *arg2 = 0 ; | |
6585 | bool result; | |
6586 | PyObject * obj0 = 0 ; | |
6587 | PyObject * obj1 = 0 ; | |
6588 | char *kwnames[] = { | |
6589 | (char *) "self",(char *) "font", NULL | |
6590 | }; | |
6591 | ||
6592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail; | |
6593 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6594 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6595 | if (arg2 == NULL) { | |
6596 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6597 | } | |
6598 | { | |
6599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6600 | result = (bool)((wxFont const *)arg1)->operator !=((wxFont const &)*arg2); | |
6601 | ||
6602 | wxPyEndAllowThreads(__tstate); | |
6603 | if (PyErr_Occurred()) SWIG_fail; | |
6604 | } | |
6605 | resultobj = PyInt_FromLong((long)result); | |
6606 | return resultobj; | |
6607 | fail: | |
6608 | return NULL; | |
6609 | } | |
6610 | ||
6611 | ||
6612 | static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6613 | PyObject *resultobj; | |
6614 | wxFont *arg1 = (wxFont *) 0 ; | |
6615 | int result; | |
6616 | PyObject * obj0 = 0 ; | |
6617 | char *kwnames[] = { | |
6618 | (char *) "self", NULL | |
6619 | }; | |
6620 | ||
6621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail; | |
6622 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6623 | { | |
6624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6625 | result = (int)((wxFont const *)arg1)->GetPointSize(); | |
6626 | ||
6627 | wxPyEndAllowThreads(__tstate); | |
6628 | if (PyErr_Occurred()) SWIG_fail; | |
6629 | } | |
6630 | resultobj = PyInt_FromLong((long)result); | |
6631 | return resultobj; | |
6632 | fail: | |
6633 | return NULL; | |
6634 | } | |
6635 | ||
6636 | ||
6637 | static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6638 | PyObject *resultobj; | |
6639 | wxFont *arg1 = (wxFont *) 0 ; | |
6640 | int result; | |
6641 | PyObject * obj0 = 0 ; | |
6642 | char *kwnames[] = { | |
6643 | (char *) "self", NULL | |
6644 | }; | |
6645 | ||
6646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail; | |
6647 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6648 | { | |
6649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6650 | result = (int)((wxFont const *)arg1)->GetFamily(); | |
6651 | ||
6652 | wxPyEndAllowThreads(__tstate); | |
6653 | if (PyErr_Occurred()) SWIG_fail; | |
6654 | } | |
6655 | resultobj = PyInt_FromLong((long)result); | |
6656 | return resultobj; | |
6657 | fail: | |
6658 | return NULL; | |
6659 | } | |
6660 | ||
6661 | ||
6662 | static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6663 | PyObject *resultobj; | |
6664 | wxFont *arg1 = (wxFont *) 0 ; | |
6665 | int result; | |
6666 | PyObject * obj0 = 0 ; | |
6667 | char *kwnames[] = { | |
6668 | (char *) "self", NULL | |
6669 | }; | |
6670 | ||
6671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail; | |
6672 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6673 | { | |
6674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6675 | result = (int)((wxFont const *)arg1)->GetStyle(); | |
6676 | ||
6677 | wxPyEndAllowThreads(__tstate); | |
6678 | if (PyErr_Occurred()) SWIG_fail; | |
6679 | } | |
6680 | resultobj = PyInt_FromLong((long)result); | |
6681 | return resultobj; | |
6682 | fail: | |
6683 | return NULL; | |
6684 | } | |
6685 | ||
6686 | ||
6687 | static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6688 | PyObject *resultobj; | |
6689 | wxFont *arg1 = (wxFont *) 0 ; | |
6690 | int result; | |
6691 | PyObject * obj0 = 0 ; | |
6692 | char *kwnames[] = { | |
6693 | (char *) "self", NULL | |
6694 | }; | |
6695 | ||
6696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail; | |
6697 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6698 | { | |
6699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6700 | result = (int)((wxFont const *)arg1)->GetWeight(); | |
6701 | ||
6702 | wxPyEndAllowThreads(__tstate); | |
6703 | if (PyErr_Occurred()) SWIG_fail; | |
6704 | } | |
6705 | resultobj = PyInt_FromLong((long)result); | |
6706 | return resultobj; | |
6707 | fail: | |
6708 | return NULL; | |
6709 | } | |
6710 | ||
6711 | ||
6712 | static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6713 | PyObject *resultobj; | |
6714 | wxFont *arg1 = (wxFont *) 0 ; | |
6715 | bool result; | |
6716 | PyObject * obj0 = 0 ; | |
6717 | char *kwnames[] = { | |
6718 | (char *) "self", NULL | |
6719 | }; | |
6720 | ||
6721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail; | |
6722 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6723 | { | |
6724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6725 | result = (bool)((wxFont const *)arg1)->GetUnderlined(); | |
6726 | ||
6727 | wxPyEndAllowThreads(__tstate); | |
6728 | if (PyErr_Occurred()) SWIG_fail; | |
6729 | } | |
6730 | resultobj = PyInt_FromLong((long)result); | |
6731 | return resultobj; | |
6732 | fail: | |
6733 | return NULL; | |
6734 | } | |
6735 | ||
6736 | ||
6737 | static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6738 | PyObject *resultobj; | |
6739 | wxFont *arg1 = (wxFont *) 0 ; | |
6740 | wxString result; | |
6741 | PyObject * obj0 = 0 ; | |
6742 | char *kwnames[] = { | |
6743 | (char *) "self", NULL | |
6744 | }; | |
6745 | ||
6746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail; | |
6747 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6748 | { | |
6749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6750 | result = ((wxFont const *)arg1)->GetFaceName(); | |
6751 | ||
6752 | wxPyEndAllowThreads(__tstate); | |
6753 | if (PyErr_Occurred()) SWIG_fail; | |
6754 | } | |
6755 | { | |
6756 | #if wxUSE_UNICODE | |
6757 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6758 | #else | |
6759 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6760 | #endif | |
6761 | } | |
6762 | return resultobj; | |
6763 | fail: | |
6764 | return NULL; | |
6765 | } | |
6766 | ||
6767 | ||
6768 | static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6769 | PyObject *resultobj; | |
6770 | wxFont *arg1 = (wxFont *) 0 ; | |
6771 | int result; | |
6772 | PyObject * obj0 = 0 ; | |
6773 | char *kwnames[] = { | |
6774 | (char *) "self", NULL | |
6775 | }; | |
6776 | ||
6777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail; | |
6778 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6779 | { | |
6780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6781 | result = (int)((wxFont const *)arg1)->GetEncoding(); | |
6782 | ||
6783 | wxPyEndAllowThreads(__tstate); | |
6784 | if (PyErr_Occurred()) SWIG_fail; | |
6785 | } | |
6786 | resultobj = PyInt_FromLong((long)result); | |
6787 | return resultobj; | |
6788 | fail: | |
6789 | return NULL; | |
6790 | } | |
6791 | ||
6792 | ||
6793 | static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6794 | PyObject *resultobj; | |
6795 | wxFont *arg1 = (wxFont *) 0 ; | |
6796 | wxNativeFontInfo *result; | |
6797 | PyObject * obj0 = 0 ; | |
6798 | char *kwnames[] = { | |
6799 | (char *) "self", NULL | |
6800 | }; | |
6801 | ||
6802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail; | |
6803 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6804 | { | |
6805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6806 | result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo(); | |
6807 | ||
6808 | wxPyEndAllowThreads(__tstate); | |
6809 | if (PyErr_Occurred()) SWIG_fail; | |
6810 | } | |
6811 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 0); | |
6812 | return resultobj; | |
6813 | fail: | |
6814 | return NULL; | |
6815 | } | |
6816 | ||
6817 | ||
6818 | static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6819 | PyObject *resultobj; | |
6820 | wxFont *arg1 = (wxFont *) 0 ; | |
6821 | bool result; | |
6822 | PyObject * obj0 = 0 ; | |
6823 | char *kwnames[] = { | |
6824 | (char *) "self", NULL | |
6825 | }; | |
6826 | ||
6827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail; | |
6828 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6829 | { | |
6830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6831 | result = (bool)((wxFont const *)arg1)->IsFixedWidth(); | |
6832 | ||
6833 | wxPyEndAllowThreads(__tstate); | |
6834 | if (PyErr_Occurred()) SWIG_fail; | |
6835 | } | |
6836 | resultobj = PyInt_FromLong((long)result); | |
6837 | return resultobj; | |
6838 | fail: | |
6839 | return NULL; | |
6840 | } | |
6841 | ||
6842 | ||
6843 | static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6844 | PyObject *resultobj; | |
6845 | wxFont *arg1 = (wxFont *) 0 ; | |
6846 | wxString result; | |
6847 | PyObject * obj0 = 0 ; | |
6848 | char *kwnames[] = { | |
6849 | (char *) "self", NULL | |
6850 | }; | |
6851 | ||
6852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail; | |
6853 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6854 | { | |
6855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6856 | result = ((wxFont const *)arg1)->GetNativeFontInfoDesc(); | |
6857 | ||
6858 | wxPyEndAllowThreads(__tstate); | |
6859 | if (PyErr_Occurred()) SWIG_fail; | |
6860 | } | |
6861 | { | |
6862 | #if wxUSE_UNICODE | |
6863 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6864 | #else | |
6865 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6866 | #endif | |
6867 | } | |
6868 | return resultobj; | |
6869 | fail: | |
6870 | return NULL; | |
6871 | } | |
6872 | ||
6873 | ||
6874 | static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6875 | PyObject *resultobj; | |
6876 | wxFont *arg1 = (wxFont *) 0 ; | |
6877 | wxString result; | |
6878 | PyObject * obj0 = 0 ; | |
6879 | char *kwnames[] = { | |
6880 | (char *) "self", NULL | |
6881 | }; | |
6882 | ||
6883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail; | |
6884 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6885 | { | |
6886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6887 | result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc(); | |
6888 | ||
6889 | wxPyEndAllowThreads(__tstate); | |
6890 | if (PyErr_Occurred()) SWIG_fail; | |
6891 | } | |
6892 | { | |
6893 | #if wxUSE_UNICODE | |
6894 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6895 | #else | |
6896 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6897 | #endif | |
6898 | } | |
6899 | return resultobj; | |
6900 | fail: | |
6901 | return NULL; | |
6902 | } | |
6903 | ||
6904 | ||
6905 | static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6906 | PyObject *resultobj; | |
6907 | wxFont *arg1 = (wxFont *) 0 ; | |
6908 | int arg2 ; | |
6909 | PyObject * obj0 = 0 ; | |
6910 | char *kwnames[] = { | |
6911 | (char *) "self",(char *) "pointSize", NULL | |
6912 | }; | |
6913 | ||
6914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetPointSize",kwnames,&obj0,&arg2)) goto fail; | |
6915 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6916 | { | |
6917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6918 | (arg1)->SetPointSize(arg2); | |
6919 | ||
6920 | wxPyEndAllowThreads(__tstate); | |
6921 | if (PyErr_Occurred()) SWIG_fail; | |
6922 | } | |
6923 | Py_INCREF(Py_None); resultobj = Py_None; | |
6924 | return resultobj; | |
6925 | fail: | |
6926 | return NULL; | |
6927 | } | |
6928 | ||
6929 | ||
6930 | static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6931 | PyObject *resultobj; | |
6932 | wxFont *arg1 = (wxFont *) 0 ; | |
6933 | int arg2 ; | |
6934 | PyObject * obj0 = 0 ; | |
6935 | char *kwnames[] = { | |
6936 | (char *) "self",(char *) "family", NULL | |
6937 | }; | |
6938 | ||
6939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetFamily",kwnames,&obj0,&arg2)) goto fail; | |
6940 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6941 | { | |
6942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6943 | (arg1)->SetFamily(arg2); | |
6944 | ||
6945 | wxPyEndAllowThreads(__tstate); | |
6946 | if (PyErr_Occurred()) SWIG_fail; | |
6947 | } | |
6948 | Py_INCREF(Py_None); resultobj = Py_None; | |
6949 | return resultobj; | |
6950 | fail: | |
6951 | return NULL; | |
6952 | } | |
6953 | ||
6954 | ||
6955 | static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6956 | PyObject *resultobj; | |
6957 | wxFont *arg1 = (wxFont *) 0 ; | |
6958 | int arg2 ; | |
6959 | PyObject * obj0 = 0 ; | |
6960 | char *kwnames[] = { | |
6961 | (char *) "self",(char *) "style", NULL | |
6962 | }; | |
6963 | ||
6964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetStyle",kwnames,&obj0,&arg2)) goto fail; | |
6965 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6966 | { | |
6967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6968 | (arg1)->SetStyle(arg2); | |
6969 | ||
6970 | wxPyEndAllowThreads(__tstate); | |
6971 | if (PyErr_Occurred()) SWIG_fail; | |
6972 | } | |
6973 | Py_INCREF(Py_None); resultobj = Py_None; | |
6974 | return resultobj; | |
6975 | fail: | |
6976 | return NULL; | |
6977 | } | |
6978 | ||
6979 | ||
6980 | static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6981 | PyObject *resultobj; | |
6982 | wxFont *arg1 = (wxFont *) 0 ; | |
6983 | int arg2 ; | |
6984 | PyObject * obj0 = 0 ; | |
6985 | char *kwnames[] = { | |
6986 | (char *) "self",(char *) "weight", NULL | |
6987 | }; | |
6988 | ||
6989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetWeight",kwnames,&obj0,&arg2)) 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 | (arg1)->SetWeight(arg2); | |
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_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7006 | PyObject *resultobj; | |
7007 | wxFont *arg1 = (wxFont *) 0 ; | |
7008 | wxString *arg2 = 0 ; | |
423f194a | 7009 | bool temp2 = False ; |
d14a1e28 RD |
7010 | PyObject * obj0 = 0 ; |
7011 | PyObject * obj1 = 0 ; | |
7012 | char *kwnames[] = { | |
7013 | (char *) "self",(char *) "faceName", NULL | |
7014 | }; | |
7015 | ||
7016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail; | |
7017 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7018 | { | |
7019 | arg2 = wxString_in_helper(obj1); | |
7020 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7021 | temp2 = True; |
d14a1e28 RD |
7022 | } |
7023 | { | |
7024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7025 | (arg1)->SetFaceName((wxString const &)*arg2); | |
7026 | ||
7027 | wxPyEndAllowThreads(__tstate); | |
7028 | if (PyErr_Occurred()) SWIG_fail; | |
7029 | } | |
7030 | Py_INCREF(Py_None); resultobj = Py_None; | |
7031 | { | |
7032 | if (temp2) | |
7033 | delete arg2; | |
7034 | } | |
7035 | return resultobj; | |
7036 | fail: | |
7037 | { | |
7038 | if (temp2) | |
7039 | delete arg2; | |
7040 | } | |
7041 | return NULL; | |
7042 | } | |
7043 | ||
7044 | ||
7045 | static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7046 | PyObject *resultobj; | |
7047 | wxFont *arg1 = (wxFont *) 0 ; | |
7048 | bool arg2 ; | |
7049 | PyObject * obj0 = 0 ; | |
7050 | PyObject * obj1 = 0 ; | |
7051 | char *kwnames[] = { | |
7052 | (char *) "self",(char *) "underlined", NULL | |
7053 | }; | |
7054 | ||
7055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; | |
7056 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7057 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
7058 | if (PyErr_Occurred()) SWIG_fail; | |
7059 | { | |
7060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7061 | (arg1)->SetUnderlined(arg2); | |
7062 | ||
7063 | wxPyEndAllowThreads(__tstate); | |
7064 | if (PyErr_Occurred()) SWIG_fail; | |
7065 | } | |
7066 | Py_INCREF(Py_None); resultobj = Py_None; | |
7067 | return resultobj; | |
7068 | fail: | |
7069 | return NULL; | |
7070 | } | |
7071 | ||
7072 | ||
7073 | static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7074 | PyObject *resultobj; | |
7075 | wxFont *arg1 = (wxFont *) 0 ; | |
7076 | int arg2 ; | |
7077 | PyObject * obj0 = 0 ; | |
7078 | char *kwnames[] = { | |
7079 | (char *) "self",(char *) "encoding", NULL | |
7080 | }; | |
7081 | ||
7082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetEncoding",kwnames,&obj0,&arg2)) goto fail; | |
7083 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7084 | { | |
7085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7086 | (arg1)->SetEncoding((wxFontEncoding )arg2); | |
7087 | ||
7088 | wxPyEndAllowThreads(__tstate); | |
7089 | if (PyErr_Occurred()) SWIG_fail; | |
7090 | } | |
7091 | Py_INCREF(Py_None); resultobj = Py_None; | |
7092 | return resultobj; | |
7093 | fail: | |
7094 | return NULL; | |
7095 | } | |
7096 | ||
7097 | ||
7098 | static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7099 | PyObject *resultobj; | |
7100 | wxFont *arg1 = (wxFont *) 0 ; | |
7101 | wxNativeFontInfo *arg2 = 0 ; | |
7102 | PyObject * obj0 = 0 ; | |
7103 | PyObject * obj1 = 0 ; | |
7104 | char *kwnames[] = { | |
7105 | (char *) "self",(char *) "info", NULL | |
7106 | }; | |
7107 | ||
7108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail; | |
7109 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7110 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7111 | if (arg2 == NULL) { | |
7112 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7113 | } | |
7114 | { | |
7115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7116 | (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2); | |
7117 | ||
7118 | wxPyEndAllowThreads(__tstate); | |
7119 | if (PyErr_Occurred()) SWIG_fail; | |
7120 | } | |
7121 | Py_INCREF(Py_None); resultobj = Py_None; | |
7122 | return resultobj; | |
7123 | fail: | |
7124 | return NULL; | |
7125 | } | |
7126 | ||
7127 | ||
7128 | static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7129 | PyObject *resultobj; | |
7130 | wxFont *arg1 = (wxFont *) 0 ; | |
7131 | wxString *arg2 = 0 ; | |
423f194a | 7132 | bool temp2 = False ; |
d14a1e28 RD |
7133 | PyObject * obj0 = 0 ; |
7134 | PyObject * obj1 = 0 ; | |
7135 | char *kwnames[] = { | |
7136 | (char *) "self",(char *) "info", NULL | |
7137 | }; | |
7138 | ||
7139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail; | |
7140 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7141 | { | |
7142 | arg2 = wxString_in_helper(obj1); | |
7143 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7144 | temp2 = True; |
d14a1e28 RD |
7145 | } |
7146 | { | |
7147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7148 | (arg1)->SetNativeFontInfo((wxString const &)*arg2); | |
7149 | ||
7150 | wxPyEndAllowThreads(__tstate); | |
7151 | if (PyErr_Occurred()) SWIG_fail; | |
7152 | } | |
7153 | Py_INCREF(Py_None); resultobj = Py_None; | |
7154 | { | |
7155 | if (temp2) | |
7156 | delete arg2; | |
7157 | } | |
7158 | return resultobj; | |
7159 | fail: | |
7160 | { | |
7161 | if (temp2) | |
7162 | delete arg2; | |
7163 | } | |
7164 | return NULL; | |
7165 | } | |
7166 | ||
7167 | ||
7168 | static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7169 | PyObject *resultobj; | |
7170 | wxFont *arg1 = (wxFont *) 0 ; | |
7171 | wxString *arg2 = 0 ; | |
423f194a | 7172 | bool temp2 = False ; |
d14a1e28 RD |
7173 | PyObject * obj0 = 0 ; |
7174 | PyObject * obj1 = 0 ; | |
7175 | char *kwnames[] = { | |
7176 | (char *) "self",(char *) "info", NULL | |
7177 | }; | |
7178 | ||
7179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail; | |
7180 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7181 | { | |
7182 | arg2 = wxString_in_helper(obj1); | |
7183 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7184 | temp2 = True; |
d14a1e28 RD |
7185 | } |
7186 | { | |
7187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7188 | (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2); | |
7189 | ||
7190 | wxPyEndAllowThreads(__tstate); | |
7191 | if (PyErr_Occurred()) SWIG_fail; | |
7192 | } | |
7193 | Py_INCREF(Py_None); resultobj = Py_None; | |
7194 | { | |
7195 | if (temp2) | |
7196 | delete arg2; | |
7197 | } | |
7198 | return resultobj; | |
7199 | fail: | |
7200 | { | |
7201 | if (temp2) | |
7202 | delete arg2; | |
7203 | } | |
7204 | return NULL; | |
7205 | } | |
7206 | ||
7207 | ||
7208 | static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7209 | PyObject *resultobj; | |
7210 | wxFont *arg1 = (wxFont *) 0 ; | |
7211 | wxString result; | |
7212 | PyObject * obj0 = 0 ; | |
7213 | char *kwnames[] = { | |
7214 | (char *) "self", NULL | |
7215 | }; | |
7216 | ||
7217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail; | |
7218 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7219 | { | |
7220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7221 | result = ((wxFont const *)arg1)->GetFamilyString(); | |
7222 | ||
7223 | wxPyEndAllowThreads(__tstate); | |
7224 | if (PyErr_Occurred()) SWIG_fail; | |
7225 | } | |
7226 | { | |
7227 | #if wxUSE_UNICODE | |
7228 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7229 | #else | |
7230 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7231 | #endif | |
7232 | } | |
7233 | return resultobj; | |
7234 | fail: | |
7235 | return NULL; | |
7236 | } | |
7237 | ||
7238 | ||
7239 | static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7240 | PyObject *resultobj; | |
7241 | wxFont *arg1 = (wxFont *) 0 ; | |
7242 | wxString result; | |
7243 | PyObject * obj0 = 0 ; | |
7244 | char *kwnames[] = { | |
7245 | (char *) "self", NULL | |
7246 | }; | |
7247 | ||
7248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail; | |
7249 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7250 | { | |
7251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7252 | result = ((wxFont const *)arg1)->GetStyleString(); | |
7253 | ||
7254 | wxPyEndAllowThreads(__tstate); | |
7255 | if (PyErr_Occurred()) SWIG_fail; | |
7256 | } | |
7257 | { | |
7258 | #if wxUSE_UNICODE | |
7259 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7260 | #else | |
7261 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7262 | #endif | |
7263 | } | |
7264 | return resultobj; | |
7265 | fail: | |
7266 | return NULL; | |
7267 | } | |
7268 | ||
7269 | ||
7270 | static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7271 | PyObject *resultobj; | |
7272 | wxFont *arg1 = (wxFont *) 0 ; | |
7273 | wxString result; | |
7274 | PyObject * obj0 = 0 ; | |
7275 | char *kwnames[] = { | |
7276 | (char *) "self", NULL | |
7277 | }; | |
7278 | ||
7279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail; | |
7280 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7281 | { | |
7282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7283 | result = ((wxFont const *)arg1)->GetWeightString(); | |
7284 | ||
7285 | wxPyEndAllowThreads(__tstate); | |
7286 | if (PyErr_Occurred()) SWIG_fail; | |
7287 | } | |
7288 | { | |
7289 | #if wxUSE_UNICODE | |
7290 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7291 | #else | |
7292 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7293 | #endif | |
7294 | } | |
7295 | return resultobj; | |
7296 | fail: | |
7297 | return NULL; | |
7298 | } | |
7299 | ||
7300 | ||
7301 | static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7302 | PyObject *resultobj; | |
7303 | wxFont *arg1 = (wxFont *) 0 ; | |
423f194a | 7304 | bool arg2 = (bool) True ; |
d14a1e28 RD |
7305 | PyObject * obj0 = 0 ; |
7306 | PyObject * obj1 = 0 ; | |
7307 | char *kwnames[] = { | |
7308 | (char *) "self",(char *) "no", NULL | |
7309 | }; | |
7310 | ||
7311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail; | |
7312 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7313 | if (obj1) { | |
7314 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
7315 | if (PyErr_Occurred()) SWIG_fail; | |
7316 | } | |
7317 | { | |
7318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7319 | (arg1)->SetNoAntiAliasing(arg2); | |
7320 | ||
7321 | wxPyEndAllowThreads(__tstate); | |
7322 | if (PyErr_Occurred()) SWIG_fail; | |
7323 | } | |
7324 | Py_INCREF(Py_None); resultobj = Py_None; | |
7325 | return resultobj; | |
7326 | fail: | |
7327 | return NULL; | |
7328 | } | |
7329 | ||
7330 | ||
7331 | static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7332 | PyObject *resultobj; | |
7333 | wxFont *arg1 = (wxFont *) 0 ; | |
7334 | bool result; | |
7335 | PyObject * obj0 = 0 ; | |
7336 | char *kwnames[] = { | |
7337 | (char *) "self", NULL | |
7338 | }; | |
7339 | ||
7340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail; | |
7341 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7342 | { | |
7343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7344 | result = (bool)(arg1)->GetNoAntiAliasing(); | |
7345 | ||
7346 | wxPyEndAllowThreads(__tstate); | |
7347 | if (PyErr_Occurred()) SWIG_fail; | |
7348 | } | |
7349 | resultobj = PyInt_FromLong((long)result); | |
7350 | return resultobj; | |
7351 | fail: | |
7352 | return NULL; | |
7353 | } | |
7354 | ||
7355 | ||
7356 | static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7357 | PyObject *resultobj; | |
7358 | int result; | |
7359 | char *kwnames[] = { | |
7360 | NULL | |
7361 | }; | |
7362 | ||
7363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail; | |
7364 | { | |
7365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7366 | result = (int)wxFont::GetDefaultEncoding(); | |
7367 | ||
7368 | wxPyEndAllowThreads(__tstate); | |
7369 | if (PyErr_Occurred()) SWIG_fail; | |
7370 | } | |
7371 | resultobj = PyInt_FromLong((long)result); | |
7372 | return resultobj; | |
7373 | fail: | |
7374 | return NULL; | |
7375 | } | |
7376 | ||
7377 | ||
7378 | static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7379 | PyObject *resultobj; | |
7380 | int arg1 ; | |
7381 | char *kwnames[] = { | |
7382 | (char *) "encoding", NULL | |
7383 | }; | |
7384 | ||
7385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Font_SetDefaultEncoding",kwnames,&arg1)) goto fail; | |
7386 | { | |
7387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7388 | wxFont::SetDefaultEncoding((wxFontEncoding )arg1); | |
7389 | ||
7390 | wxPyEndAllowThreads(__tstate); | |
7391 | if (PyErr_Occurred()) SWIG_fail; | |
7392 | } | |
7393 | Py_INCREF(Py_None); resultobj = Py_None; | |
7394 | return resultobj; | |
7395 | fail: | |
7396 | return NULL; | |
7397 | } | |
7398 | ||
7399 | ||
7400 | static PyObject * Font_swigregister(PyObject *self, PyObject *args) { | |
7401 | PyObject *obj; | |
7402 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7403 | SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj); | |
7404 | Py_INCREF(obj); | |
7405 | return Py_BuildValue((char *)""); | |
7406 | } | |
7407 | static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7408 | PyObject *resultobj; | |
7409 | wxPyFontEnumerator *result; | |
7410 | char *kwnames[] = { | |
7411 | NULL | |
7412 | }; | |
7413 | ||
7414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail; | |
7415 | { | |
7416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7417 | result = (wxPyFontEnumerator *)new wxPyFontEnumerator(); | |
7418 | ||
7419 | wxPyEndAllowThreads(__tstate); | |
7420 | if (PyErr_Occurred()) SWIG_fail; | |
7421 | } | |
7422 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFontEnumerator, 1); | |
7423 | return resultobj; | |
7424 | fail: | |
7425 | return NULL; | |
7426 | } | |
7427 | ||
7428 | ||
7429 | static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7430 | PyObject *resultobj; | |
7431 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
7432 | PyObject * obj0 = 0 ; | |
7433 | char *kwnames[] = { | |
7434 | (char *) "self", NULL | |
7435 | }; | |
7436 | ||
7437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail; | |
7438 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7439 | { | |
7440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7441 | delete arg1; | |
7442 | ||
7443 | wxPyEndAllowThreads(__tstate); | |
7444 | if (PyErr_Occurred()) SWIG_fail; | |
7445 | } | |
7446 | Py_INCREF(Py_None); resultobj = Py_None; | |
7447 | return resultobj; | |
7448 | fail: | |
7449 | return NULL; | |
7450 | } | |
7451 | ||
7452 | ||
7453 | static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7454 | PyObject *resultobj; | |
7455 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
7456 | PyObject *arg2 = (PyObject *) 0 ; | |
7457 | PyObject *arg3 = (PyObject *) 0 ; | |
7458 | bool arg4 ; | |
7459 | PyObject * obj0 = 0 ; | |
7460 | PyObject * obj1 = 0 ; | |
7461 | PyObject * obj2 = 0 ; | |
7462 | PyObject * obj3 = 0 ; | |
7463 | char *kwnames[] = { | |
7464 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
7465 | }; | |
7466 | ||
7467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
7468 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7469 | arg2 = obj1; | |
7470 | arg3 = obj2; | |
7471 | arg4 = PyInt_AsLong(obj3) ? true : false; | |
7472 | if (PyErr_Occurred()) SWIG_fail; | |
7473 | { | |
7474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7475 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
7476 | ||
7477 | wxPyEndAllowThreads(__tstate); | |
7478 | if (PyErr_Occurred()) SWIG_fail; | |
7479 | } | |
7480 | Py_INCREF(Py_None); resultobj = Py_None; | |
7481 | return resultobj; | |
7482 | fail: | |
7483 | return NULL; | |
7484 | } | |
7485 | ||
7486 | ||
7487 | static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7488 | PyObject *resultobj; | |
7489 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
7490 | int arg2 = (int) wxFONTENCODING_SYSTEM ; | |
423f194a | 7491 | bool arg3 = (bool) False ; |
d14a1e28 RD |
7492 | bool result; |
7493 | PyObject * obj0 = 0 ; | |
7494 | PyObject * obj2 = 0 ; | |
7495 | char *kwnames[] = { | |
7496 | (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL | |
7497 | }; | |
7498 | ||
7499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
7500 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7501 | if (obj2) { | |
7502 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
7503 | if (PyErr_Occurred()) SWIG_fail; | |
7504 | } | |
7505 | { | |
7506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7507 | result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3); | |
7508 | ||
7509 | wxPyEndAllowThreads(__tstate); | |
7510 | if (PyErr_Occurred()) SWIG_fail; | |
7511 | } | |
7512 | resultobj = PyInt_FromLong((long)result); | |
7513 | return resultobj; | |
7514 | fail: | |
7515 | return NULL; | |
7516 | } | |
7517 | ||
7518 | ||
7519 | static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7520 | PyObject *resultobj; | |
7521 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
7522 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
7523 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
7524 | bool result; | |
423f194a | 7525 | bool temp2 = False ; |
d14a1e28 RD |
7526 | PyObject * obj0 = 0 ; |
7527 | PyObject * obj1 = 0 ; | |
7528 | char *kwnames[] = { | |
7529 | (char *) "self",(char *) "facename", NULL | |
7530 | }; | |
7531 | ||
7532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail; | |
7533 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7534 | if (obj1) { | |
7535 | { | |
7536 | arg2 = wxString_in_helper(obj1); | |
7537 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7538 | temp2 = True; |
d14a1e28 RD |
7539 | } |
7540 | } | |
7541 | { | |
7542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7543 | result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2); | |
7544 | ||
7545 | wxPyEndAllowThreads(__tstate); | |
7546 | if (PyErr_Occurred()) SWIG_fail; | |
7547 | } | |
7548 | resultobj = PyInt_FromLong((long)result); | |
7549 | { | |
7550 | if (temp2) | |
7551 | delete arg2; | |
7552 | } | |
7553 | return resultobj; | |
7554 | fail: | |
7555 | { | |
7556 | if (temp2) | |
7557 | delete arg2; | |
7558 | } | |
7559 | return NULL; | |
7560 | } | |
7561 | ||
7562 | ||
7563 | static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7564 | PyObject *resultobj; | |
7565 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
7566 | PyObject *result; | |
7567 | PyObject * obj0 = 0 ; | |
7568 | char *kwnames[] = { | |
7569 | (char *) "self", NULL | |
7570 | }; | |
7571 | ||
7572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail; | |
7573 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7574 | { | |
7575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7576 | result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1); | |
7577 | ||
7578 | wxPyEndAllowThreads(__tstate); | |
7579 | if (PyErr_Occurred()) SWIG_fail; | |
7580 | } | |
7581 | resultobj = result; | |
7582 | return resultobj; | |
7583 | fail: | |
7584 | return NULL; | |
7585 | } | |
7586 | ||
7587 | ||
7588 | static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7589 | PyObject *resultobj; | |
7590 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
7591 | PyObject *result; | |
7592 | PyObject * obj0 = 0 ; | |
7593 | char *kwnames[] = { | |
7594 | (char *) "self", NULL | |
7595 | }; | |
7596 | ||
7597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail; | |
7598 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7599 | { | |
7600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7601 | result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1); | |
7602 | ||
7603 | wxPyEndAllowThreads(__tstate); | |
7604 | if (PyErr_Occurred()) SWIG_fail; | |
7605 | } | |
7606 | resultobj = result; | |
7607 | return resultobj; | |
7608 | fail: | |
7609 | return NULL; | |
7610 | } | |
7611 | ||
7612 | ||
7613 | static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) { | |
7614 | PyObject *obj; | |
7615 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7616 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj); | |
7617 | Py_INCREF(obj); | |
7618 | return Py_BuildValue((char *)""); | |
7619 | } | |
7620 | static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7621 | PyObject *resultobj; | |
7622 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
7623 | int arg2 ; | |
7624 | PyObject * obj0 = 0 ; | |
7625 | char *kwnames[] = { | |
7626 | (char *) "self",(char *) "Language", NULL | |
7627 | }; | |
7628 | ||
7629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:LanguageInfo_Language_set",kwnames,&obj0,&arg2)) goto fail; | |
7630 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7631 | if (arg1) (arg1)->Language = arg2; | |
7632 | ||
7633 | Py_INCREF(Py_None); resultobj = Py_None; | |
7634 | return resultobj; | |
7635 | fail: | |
7636 | return NULL; | |
7637 | } | |
7638 | ||
7639 | ||
7640 | static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7641 | PyObject *resultobj; | |
7642 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
7643 | int result; | |
7644 | PyObject * obj0 = 0 ; | |
7645 | char *kwnames[] = { | |
7646 | (char *) "self", NULL | |
7647 | }; | |
7648 | ||
7649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail; | |
7650 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7651 | result = (int) ((arg1)->Language); | |
7652 | ||
7653 | resultobj = PyInt_FromLong((long)result); | |
7654 | return resultobj; | |
7655 | fail: | |
7656 | return NULL; | |
7657 | } | |
7658 | ||
7659 | ||
7660 | static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7661 | PyObject *resultobj; | |
7662 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
7663 | wxString arg2 ; | |
d14a1e28 RD |
7664 | PyObject * obj0 = 0 ; |
7665 | PyObject * obj1 = 0 ; | |
7666 | char *kwnames[] = { | |
7667 | (char *) "self",(char *) "CanonicalName", NULL | |
7668 | }; | |
7669 | ||
7670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail; | |
7671 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
423f194a RD |
7672 | { |
7673 | wxString* sptr = wxString_in_helper(obj1); | |
7674 | if (sptr == NULL) SWIG_fail; | |
7675 | arg2 = *sptr; | |
7676 | delete sptr; | |
7677 | } | |
d14a1e28 RD |
7678 | if (arg1) (arg1)->CanonicalName = arg2; |
7679 | ||
7680 | Py_INCREF(Py_None); resultobj = Py_None; | |
7681 | return resultobj; | |
7682 | fail: | |
7683 | return NULL; | |
7684 | } | |
7685 | ||
7686 | ||
7687 | static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7688 | PyObject *resultobj; | |
7689 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
7690 | wxString result; | |
7691 | PyObject * obj0 = 0 ; | |
7692 | char *kwnames[] = { | |
7693 | (char *) "self", NULL | |
7694 | }; | |
7695 | ||
7696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail; | |
7697 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7698 | result = ((arg1)->CanonicalName); | |
7699 | ||
7700 | { | |
7701 | #if wxUSE_UNICODE | |
7702 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7703 | #else | |
7704 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7705 | #endif | |
7706 | } | |
7707 | return resultobj; | |
7708 | fail: | |
7709 | return NULL; | |
7710 | } | |
7711 | ||
7712 | ||
7713 | static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7714 | PyObject *resultobj; | |
7715 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
7716 | wxString arg2 ; | |
d14a1e28 RD |
7717 | PyObject * obj0 = 0 ; |
7718 | PyObject * obj1 = 0 ; | |
7719 | char *kwnames[] = { | |
7720 | (char *) "self",(char *) "Description", NULL | |
7721 | }; | |
7722 | ||
7723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail; | |
7724 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
423f194a RD |
7725 | { |
7726 | wxString* sptr = wxString_in_helper(obj1); | |
7727 | if (sptr == NULL) SWIG_fail; | |
7728 | arg2 = *sptr; | |
7729 | delete sptr; | |
7730 | } | |
d14a1e28 RD |
7731 | if (arg1) (arg1)->Description = arg2; |
7732 | ||
7733 | Py_INCREF(Py_None); resultobj = Py_None; | |
7734 | return resultobj; | |
7735 | fail: | |
7736 | return NULL; | |
7737 | } | |
7738 | ||
7739 | ||
7740 | static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7741 | PyObject *resultobj; | |
7742 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
7743 | wxString result; | |
7744 | PyObject * obj0 = 0 ; | |
7745 | char *kwnames[] = { | |
7746 | (char *) "self", NULL | |
7747 | }; | |
7748 | ||
7749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail; | |
7750 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7751 | result = ((arg1)->Description); | |
7752 | ||
7753 | { | |
7754 | #if wxUSE_UNICODE | |
7755 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7756 | #else | |
7757 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7758 | #endif | |
7759 | } | |
7760 | return resultobj; | |
7761 | fail: | |
7762 | return NULL; | |
7763 | } | |
7764 | ||
7765 | ||
7766 | static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) { | |
7767 | PyObject *obj; | |
7768 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7769 | SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj); | |
7770 | Py_INCREF(obj); | |
7771 | return Py_BuildValue((char *)""); | |
7772 | } | |
7773 | static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7774 | PyObject *resultobj; | |
7775 | int arg1 = (int) wxLANGUAGE_DEFAULT ; | |
7776 | int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
7777 | wxLocale *result; | |
7778 | char *kwnames[] = { | |
7779 | (char *) "language",(char *) "flags", NULL | |
7780 | }; | |
7781 | ||
7782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_Locale",kwnames,&arg1,&arg2)) goto fail; | |
7783 | { | |
7784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7785 | result = (wxLocale *)new wxLocale(arg1,arg2); | |
7786 | ||
7787 | wxPyEndAllowThreads(__tstate); | |
7788 | if (PyErr_Occurred()) SWIG_fail; | |
7789 | } | |
7790 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 1); | |
7791 | return resultobj; | |
7792 | fail: | |
7793 | return NULL; | |
7794 | } | |
7795 | ||
7796 | ||
7797 | static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7798 | PyObject *resultobj; | |
7799 | wxLocale *arg1 = (wxLocale *) 0 ; | |
7800 | PyObject * obj0 = 0 ; | |
7801 | char *kwnames[] = { | |
7802 | (char *) "self", NULL | |
7803 | }; | |
7804 | ||
7805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail; | |
7806 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7807 | { | |
7808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7809 | delete arg1; | |
7810 | ||
7811 | wxPyEndAllowThreads(__tstate); | |
7812 | if (PyErr_Occurred()) SWIG_fail; | |
7813 | } | |
7814 | Py_INCREF(Py_None); resultobj = Py_None; | |
7815 | return resultobj; | |
7816 | fail: | |
7817 | return NULL; | |
7818 | } | |
7819 | ||
7820 | ||
7821 | static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7822 | PyObject *resultobj; | |
7823 | wxLocale *arg1 = (wxLocale *) 0 ; | |
7824 | wxString *arg2 = 0 ; | |
7825 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
7826 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7827 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
7828 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
423f194a RD |
7829 | bool arg5 = (bool) True ; |
7830 | bool arg6 = (bool) False ; | |
d14a1e28 | 7831 | bool result; |
423f194a RD |
7832 | bool temp2 = False ; |
7833 | bool temp3 = False ; | |
7834 | bool temp4 = False ; | |
d14a1e28 RD |
7835 | PyObject * obj0 = 0 ; |
7836 | PyObject * obj1 = 0 ; | |
7837 | PyObject * obj2 = 0 ; | |
7838 | PyObject * obj3 = 0 ; | |
7839 | PyObject * obj4 = 0 ; | |
7840 | PyObject * obj5 = 0 ; | |
7841 | char *kwnames[] = { | |
7842 | (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL | |
7843 | }; | |
7844 | ||
7845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
7846 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7847 | { | |
7848 | arg2 = wxString_in_helper(obj1); | |
7849 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7850 | temp2 = True; |
d14a1e28 RD |
7851 | } |
7852 | if (obj2) { | |
7853 | { | |
7854 | arg3 = wxString_in_helper(obj2); | |
7855 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 7856 | temp3 = True; |
d14a1e28 RD |
7857 | } |
7858 | } | |
7859 | if (obj3) { | |
7860 | { | |
7861 | arg4 = wxString_in_helper(obj3); | |
7862 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 7863 | temp4 = True; |
d14a1e28 RD |
7864 | } |
7865 | } | |
7866 | if (obj4) { | |
7867 | arg5 = PyInt_AsLong(obj4) ? true : false; | |
7868 | if (PyErr_Occurred()) SWIG_fail; | |
7869 | } | |
7870 | if (obj5) { | |
7871 | arg6 = PyInt_AsLong(obj5) ? true : false; | |
7872 | if (PyErr_Occurred()) SWIG_fail; | |
7873 | } | |
7874 | { | |
7875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7876 | result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6); | |
7877 | ||
7878 | wxPyEndAllowThreads(__tstate); | |
7879 | if (PyErr_Occurred()) SWIG_fail; | |
7880 | } | |
7881 | resultobj = PyInt_FromLong((long)result); | |
7882 | { | |
7883 | if (temp2) | |
7884 | delete arg2; | |
7885 | } | |
7886 | { | |
7887 | if (temp3) | |
7888 | delete arg3; | |
7889 | } | |
7890 | { | |
7891 | if (temp4) | |
7892 | delete arg4; | |
7893 | } | |
7894 | return resultobj; | |
7895 | fail: | |
7896 | { | |
7897 | if (temp2) | |
7898 | delete arg2; | |
7899 | } | |
7900 | { | |
7901 | if (temp3) | |
7902 | delete arg3; | |
7903 | } | |
7904 | { | |
7905 | if (temp4) | |
7906 | delete arg4; | |
7907 | } | |
7908 | return NULL; | |
7909 | } | |
7910 | ||
7911 | ||
7912 | static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7913 | PyObject *resultobj; | |
7914 | wxLocale *arg1 = (wxLocale *) 0 ; | |
7915 | int arg2 = (int) wxLANGUAGE_DEFAULT ; | |
7916 | int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
7917 | bool result; | |
7918 | PyObject * obj0 = 0 ; | |
7919 | char *kwnames[] = { | |
7920 | (char *) "self",(char *) "language",(char *) "flags", NULL | |
7921 | }; | |
7922 | ||
7923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:Locale_Init2",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
7924 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7925 | { | |
7926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7927 | result = (bool)(arg1)->Init(arg2,arg3); | |
7928 | ||
7929 | wxPyEndAllowThreads(__tstate); | |
7930 | if (PyErr_Occurred()) SWIG_fail; | |
7931 | } | |
7932 | resultobj = PyInt_FromLong((long)result); | |
7933 | return resultobj; | |
7934 | fail: | |
7935 | return NULL; | |
7936 | } | |
7937 | ||
7938 | ||
7939 | static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7940 | PyObject *resultobj; | |
7941 | int result; | |
7942 | char *kwnames[] = { | |
7943 | NULL | |
7944 | }; | |
7945 | ||
7946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail; | |
7947 | { | |
7948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7949 | result = (int)wxLocale::GetSystemLanguage(); | |
7950 | ||
7951 | wxPyEndAllowThreads(__tstate); | |
7952 | if (PyErr_Occurred()) SWIG_fail; | |
7953 | } | |
7954 | resultobj = PyInt_FromLong((long)result); | |
7955 | return resultobj; | |
7956 | fail: | |
7957 | return NULL; | |
7958 | } | |
7959 | ||
7960 | ||
7961 | static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7962 | PyObject *resultobj; | |
7963 | int result; | |
7964 | char *kwnames[] = { | |
7965 | NULL | |
7966 | }; | |
7967 | ||
7968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail; | |
7969 | { | |
7970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7971 | result = (int)wxLocale::GetSystemEncoding(); | |
7972 | ||
7973 | wxPyEndAllowThreads(__tstate); | |
7974 | if (PyErr_Occurred()) SWIG_fail; | |
7975 | } | |
7976 | resultobj = PyInt_FromLong((long)result); | |
7977 | return resultobj; | |
7978 | fail: | |
7979 | return NULL; | |
7980 | } | |
7981 | ||
7982 | ||
7983 | static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7984 | PyObject *resultobj; | |
7985 | wxString result; | |
7986 | char *kwnames[] = { | |
7987 | NULL | |
7988 | }; | |
7989 | ||
7990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail; | |
7991 | { | |
7992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7993 | result = wxLocale::GetSystemEncodingName(); | |
7994 | ||
7995 | wxPyEndAllowThreads(__tstate); | |
7996 | if (PyErr_Occurred()) SWIG_fail; | |
7997 | } | |
7998 | { | |
7999 | #if wxUSE_UNICODE | |
8000 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8001 | #else | |
8002 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8003 | #endif | |
8004 | } | |
8005 | return resultobj; | |
8006 | fail: | |
8007 | return NULL; | |
8008 | } | |
8009 | ||
8010 | ||
8011 | static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8012 | PyObject *resultobj; | |
8013 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8014 | bool result; | |
8015 | PyObject * obj0 = 0 ; | |
8016 | char *kwnames[] = { | |
8017 | (char *) "self", NULL | |
8018 | }; | |
8019 | ||
8020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail; | |
8021 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8022 | { | |
8023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8024 | result = (bool)((wxLocale const *)arg1)->IsOk(); | |
8025 | ||
8026 | wxPyEndAllowThreads(__tstate); | |
8027 | if (PyErr_Occurred()) SWIG_fail; | |
8028 | } | |
8029 | resultobj = PyInt_FromLong((long)result); | |
8030 | return resultobj; | |
8031 | fail: | |
8032 | return NULL; | |
8033 | } | |
8034 | ||
8035 | ||
8036 | static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8037 | PyObject *resultobj; | |
8038 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8039 | wxString result; | |
8040 | PyObject * obj0 = 0 ; | |
8041 | char *kwnames[] = { | |
8042 | (char *) "self", NULL | |
8043 | }; | |
8044 | ||
8045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail; | |
8046 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8047 | { | |
8048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8049 | result = ((wxLocale const *)arg1)->GetLocale(); | |
8050 | ||
8051 | wxPyEndAllowThreads(__tstate); | |
8052 | if (PyErr_Occurred()) SWIG_fail; | |
8053 | } | |
8054 | { | |
8055 | #if wxUSE_UNICODE | |
8056 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8057 | #else | |
8058 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8059 | #endif | |
8060 | } | |
8061 | return resultobj; | |
8062 | fail: | |
8063 | return NULL; | |
8064 | } | |
8065 | ||
8066 | ||
8067 | static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8068 | PyObject *resultobj; | |
8069 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8070 | int result; | |
8071 | PyObject * obj0 = 0 ; | |
8072 | char *kwnames[] = { | |
8073 | (char *) "self", NULL | |
8074 | }; | |
8075 | ||
8076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail; | |
8077 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8078 | { | |
8079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8080 | result = (int)((wxLocale const *)arg1)->GetLanguage(); | |
8081 | ||
8082 | wxPyEndAllowThreads(__tstate); | |
8083 | if (PyErr_Occurred()) SWIG_fail; | |
8084 | } | |
8085 | resultobj = PyInt_FromLong((long)result); | |
8086 | return resultobj; | |
8087 | fail: | |
8088 | return NULL; | |
8089 | } | |
8090 | ||
8091 | ||
8092 | static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8093 | PyObject *resultobj; | |
8094 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8095 | wxString result; | |
8096 | PyObject * obj0 = 0 ; | |
8097 | char *kwnames[] = { | |
8098 | (char *) "self", NULL | |
8099 | }; | |
8100 | ||
8101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail; | |
8102 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8103 | { | |
8104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8105 | result = ((wxLocale const *)arg1)->GetSysName(); | |
8106 | ||
8107 | wxPyEndAllowThreads(__tstate); | |
8108 | if (PyErr_Occurred()) SWIG_fail; | |
8109 | } | |
8110 | { | |
8111 | #if wxUSE_UNICODE | |
8112 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8113 | #else | |
8114 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8115 | #endif | |
8116 | } | |
8117 | return resultobj; | |
8118 | fail: | |
8119 | return NULL; | |
8120 | } | |
8121 | ||
8122 | ||
8123 | static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8124 | PyObject *resultobj; | |
8125 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8126 | wxString result; | |
8127 | PyObject * obj0 = 0 ; | |
8128 | char *kwnames[] = { | |
8129 | (char *) "self", NULL | |
8130 | }; | |
8131 | ||
8132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail; | |
8133 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8134 | { | |
8135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8136 | result = ((wxLocale const *)arg1)->GetCanonicalName(); | |
8137 | ||
8138 | wxPyEndAllowThreads(__tstate); | |
8139 | if (PyErr_Occurred()) SWIG_fail; | |
8140 | } | |
8141 | { | |
8142 | #if wxUSE_UNICODE | |
8143 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8144 | #else | |
8145 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8146 | #endif | |
8147 | } | |
8148 | return resultobj; | |
8149 | fail: | |
8150 | return NULL; | |
8151 | } | |
8152 | ||
8153 | ||
8154 | static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8155 | PyObject *resultobj; | |
8156 | wxString *arg1 = 0 ; | |
423f194a | 8157 | bool temp1 = False ; |
d14a1e28 RD |
8158 | PyObject * obj0 = 0 ; |
8159 | char *kwnames[] = { | |
8160 | (char *) "prefix", NULL | |
8161 | }; | |
8162 | ||
8163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail; | |
8164 | { | |
8165 | arg1 = wxString_in_helper(obj0); | |
8166 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 8167 | temp1 = True; |
d14a1e28 RD |
8168 | } |
8169 | { | |
8170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8171 | wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1); | |
8172 | ||
8173 | wxPyEndAllowThreads(__tstate); | |
8174 | if (PyErr_Occurred()) SWIG_fail; | |
8175 | } | |
8176 | Py_INCREF(Py_None); resultobj = Py_None; | |
8177 | { | |
8178 | if (temp1) | |
8179 | delete arg1; | |
8180 | } | |
8181 | return resultobj; | |
8182 | fail: | |
8183 | { | |
8184 | if (temp1) | |
8185 | delete arg1; | |
8186 | } | |
8187 | return NULL; | |
8188 | } | |
8189 | ||
8190 | ||
8191 | static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8192 | PyObject *resultobj; | |
8193 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8194 | wxString *arg2 = 0 ; | |
8195 | bool result; | |
423f194a | 8196 | bool temp2 = False ; |
d14a1e28 RD |
8197 | PyObject * obj0 = 0 ; |
8198 | PyObject * obj1 = 0 ; | |
8199 | char *kwnames[] = { | |
8200 | (char *) "self",(char *) "szDomain", NULL | |
8201 | }; | |
8202 | ||
8203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail; | |
8204 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8205 | { | |
8206 | arg2 = wxString_in_helper(obj1); | |
8207 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8208 | temp2 = True; |
d14a1e28 RD |
8209 | } |
8210 | { | |
8211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8212 | result = (bool)(arg1)->AddCatalog((wxString const &)*arg2); | |
8213 | ||
8214 | wxPyEndAllowThreads(__tstate); | |
8215 | if (PyErr_Occurred()) SWIG_fail; | |
8216 | } | |
8217 | resultobj = PyInt_FromLong((long)result); | |
8218 | { | |
8219 | if (temp2) | |
8220 | delete arg2; | |
8221 | } | |
8222 | return resultobj; | |
8223 | fail: | |
8224 | { | |
8225 | if (temp2) | |
8226 | delete arg2; | |
8227 | } | |
8228 | return NULL; | |
8229 | } | |
8230 | ||
8231 | ||
8232 | static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8233 | PyObject *resultobj; | |
8234 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8235 | wxString *arg2 = 0 ; | |
8236 | bool result; | |
423f194a | 8237 | bool temp2 = False ; |
d14a1e28 RD |
8238 | PyObject * obj0 = 0 ; |
8239 | PyObject * obj1 = 0 ; | |
8240 | char *kwnames[] = { | |
8241 | (char *) "self",(char *) "szDomain", NULL | |
8242 | }; | |
8243 | ||
8244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail; | |
8245 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8246 | { | |
8247 | arg2 = wxString_in_helper(obj1); | |
8248 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8249 | temp2 = True; |
d14a1e28 RD |
8250 | } |
8251 | { | |
8252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8253 | result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2); | |
8254 | ||
8255 | wxPyEndAllowThreads(__tstate); | |
8256 | if (PyErr_Occurred()) SWIG_fail; | |
8257 | } | |
8258 | resultobj = PyInt_FromLong((long)result); | |
8259 | { | |
8260 | if (temp2) | |
8261 | delete arg2; | |
8262 | } | |
8263 | return resultobj; | |
8264 | fail: | |
8265 | { | |
8266 | if (temp2) | |
8267 | delete arg2; | |
8268 | } | |
8269 | return NULL; | |
8270 | } | |
8271 | ||
8272 | ||
8273 | static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8274 | PyObject *resultobj; | |
8275 | int arg1 ; | |
8276 | wxLanguageInfo *result; | |
8277 | char *kwnames[] = { | |
8278 | (char *) "lang", NULL | |
8279 | }; | |
8280 | ||
8281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Locale_GetLanguageInfo",kwnames,&arg1)) goto fail; | |
8282 | { | |
8283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8284 | result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1); | |
8285 | ||
8286 | wxPyEndAllowThreads(__tstate); | |
8287 | if (PyErr_Occurred()) SWIG_fail; | |
8288 | } | |
8289 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0); | |
8290 | return resultobj; | |
8291 | fail: | |
8292 | return NULL; | |
8293 | } | |
8294 | ||
8295 | ||
8296 | static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8297 | PyObject *resultobj; | |
8298 | int arg1 ; | |
8299 | wxString result; | |
8300 | char *kwnames[] = { | |
8301 | (char *) "lang", NULL | |
8302 | }; | |
8303 | ||
8304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Locale_GetLanguageName",kwnames,&arg1)) goto fail; | |
8305 | { | |
8306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8307 | result = wxLocale::GetLanguageName(arg1); | |
8308 | ||
8309 | wxPyEndAllowThreads(__tstate); | |
8310 | if (PyErr_Occurred()) SWIG_fail; | |
8311 | } | |
8312 | { | |
8313 | #if wxUSE_UNICODE | |
8314 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8315 | #else | |
8316 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8317 | #endif | |
8318 | } | |
8319 | return resultobj; | |
8320 | fail: | |
8321 | return NULL; | |
8322 | } | |
8323 | ||
8324 | ||
8325 | static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8326 | PyObject *resultobj; | |
8327 | wxString *arg1 = 0 ; | |
8328 | wxLanguageInfo *result; | |
423f194a | 8329 | bool temp1 = False ; |
d14a1e28 RD |
8330 | PyObject * obj0 = 0 ; |
8331 | char *kwnames[] = { | |
8332 | (char *) "locale", NULL | |
8333 | }; | |
8334 | ||
8335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail; | |
8336 | { | |
8337 | arg1 = wxString_in_helper(obj0); | |
8338 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 8339 | temp1 = True; |
d14a1e28 RD |
8340 | } |
8341 | { | |
8342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8343 | result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1); | |
8344 | ||
8345 | wxPyEndAllowThreads(__tstate); | |
8346 | if (PyErr_Occurred()) SWIG_fail; | |
8347 | } | |
8348 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0); | |
8349 | { | |
8350 | if (temp1) | |
8351 | delete arg1; | |
8352 | } | |
8353 | return resultobj; | |
8354 | fail: | |
8355 | { | |
8356 | if (temp1) | |
8357 | delete arg1; | |
8358 | } | |
8359 | return NULL; | |
8360 | } | |
8361 | ||
8362 | ||
8363 | static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8364 | PyObject *resultobj; | |
8365 | wxLanguageInfo *arg1 = 0 ; | |
8366 | PyObject * obj0 = 0 ; | |
8367 | char *kwnames[] = { | |
8368 | (char *) "info", NULL | |
8369 | }; | |
8370 | ||
8371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail; | |
8372 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8373 | if (arg1 == NULL) { | |
8374 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8375 | } | |
8376 | { | |
8377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8378 | wxLocale::AddLanguage((wxLanguageInfo const &)*arg1); | |
8379 | ||
8380 | wxPyEndAllowThreads(__tstate); | |
8381 | if (PyErr_Occurred()) SWIG_fail; | |
8382 | } | |
8383 | Py_INCREF(Py_None); resultobj = Py_None; | |
8384 | return resultobj; | |
8385 | fail: | |
8386 | return NULL; | |
8387 | } | |
8388 | ||
8389 | ||
8390 | static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8391 | PyObject *resultobj; | |
8392 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8393 | wxString *arg2 = 0 ; | |
8394 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
8395 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
8396 | wxString result; | |
423f194a RD |
8397 | bool temp2 = False ; |
8398 | bool temp3 = False ; | |
d14a1e28 RD |
8399 | PyObject * obj0 = 0 ; |
8400 | PyObject * obj1 = 0 ; | |
8401 | PyObject * obj2 = 0 ; | |
8402 | char *kwnames[] = { | |
8403 | (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL | |
8404 | }; | |
8405 | ||
8406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8407 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8408 | { | |
8409 | arg2 = wxString_in_helper(obj1); | |
8410 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8411 | temp2 = True; |
d14a1e28 RD |
8412 | } |
8413 | if (obj2) { | |
8414 | { | |
8415 | arg3 = wxString_in_helper(obj2); | |
8416 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 8417 | temp3 = True; |
d14a1e28 RD |
8418 | } |
8419 | } | |
8420 | { | |
8421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8422 | result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3); | |
8423 | ||
8424 | wxPyEndAllowThreads(__tstate); | |
8425 | if (PyErr_Occurred()) SWIG_fail; | |
8426 | } | |
8427 | { | |
8428 | #if wxUSE_UNICODE | |
8429 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8430 | #else | |
8431 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8432 | #endif | |
8433 | } | |
8434 | { | |
8435 | if (temp2) | |
8436 | delete arg2; | |
8437 | } | |
8438 | { | |
8439 | if (temp3) | |
8440 | delete arg3; | |
8441 | } | |
8442 | return resultobj; | |
8443 | fail: | |
8444 | { | |
8445 | if (temp2) | |
8446 | delete arg2; | |
8447 | } | |
8448 | { | |
8449 | if (temp3) | |
8450 | delete arg3; | |
8451 | } | |
8452 | return NULL; | |
8453 | } | |
8454 | ||
8455 | ||
8456 | static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8457 | PyObject *resultobj; | |
8458 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8459 | wxString *result; | |
8460 | PyObject * obj0 = 0 ; | |
8461 | char *kwnames[] = { | |
8462 | (char *) "self", NULL | |
8463 | }; | |
8464 | ||
8465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail; | |
8466 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8467 | { | |
8468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8469 | { | |
8470 | wxString const &_result_ref = ((wxLocale const *)arg1)->GetName(); | |
8471 | result = (wxString *) &_result_ref; | |
8472 | } | |
8473 | ||
8474 | wxPyEndAllowThreads(__tstate); | |
8475 | if (PyErr_Occurred()) SWIG_fail; | |
8476 | } | |
0f774bef RD |
8477 | { |
8478 | #if wxUSE_UNICODE | |
8479 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
8480 | #else | |
8481 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
8482 | #endif | |
8483 | } | |
d14a1e28 RD |
8484 | return resultobj; |
8485 | fail: | |
8486 | return NULL; | |
8487 | } | |
8488 | ||
8489 | ||
8490 | static PyObject * Locale_swigregister(PyObject *self, PyObject *args) { | |
8491 | PyObject *obj; | |
8492 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8493 | SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj); | |
8494 | Py_INCREF(obj); | |
8495 | return Py_BuildValue((char *)""); | |
8496 | } | |
8497 | static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8498 | PyObject *resultobj; | |
8499 | wxLocale *result; | |
8500 | char *kwnames[] = { | |
8501 | NULL | |
8502 | }; | |
8503 | ||
8504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail; | |
8505 | { | |
8506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8507 | result = (wxLocale *)wxGetLocale(); | |
8508 | ||
8509 | wxPyEndAllowThreads(__tstate); | |
8510 | if (PyErr_Occurred()) SWIG_fail; | |
8511 | } | |
8512 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 0); | |
8513 | return resultobj; | |
8514 | fail: | |
8515 | return NULL; | |
8516 | } | |
8517 | ||
8518 | ||
8519 | static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) { | |
8520 | PyObject *resultobj; | |
8521 | wxString *arg1 = 0 ; | |
8522 | wxString result; | |
423f194a | 8523 | bool temp1 = False ; |
d14a1e28 RD |
8524 | PyObject * obj0 = 0 ; |
8525 | ||
8526 | if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail; | |
8527 | { | |
8528 | arg1 = wxString_in_helper(obj0); | |
8529 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 8530 | temp1 = True; |
d14a1e28 RD |
8531 | } |
8532 | { | |
8533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8534 | result = wxGetTranslation((wxString const &)*arg1); | |
8535 | ||
8536 | wxPyEndAllowThreads(__tstate); | |
8537 | if (PyErr_Occurred()) SWIG_fail; | |
8538 | } | |
8539 | { | |
8540 | #if wxUSE_UNICODE | |
8541 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8542 | #else | |
8543 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8544 | #endif | |
8545 | } | |
8546 | { | |
8547 | if (temp1) | |
8548 | delete arg1; | |
8549 | } | |
8550 | return resultobj; | |
8551 | fail: | |
8552 | { | |
8553 | if (temp1) | |
8554 | delete arg1; | |
8555 | } | |
8556 | return NULL; | |
8557 | } | |
8558 | ||
8559 | ||
8560 | static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) { | |
8561 | PyObject *resultobj; | |
8562 | wxString *arg1 = 0 ; | |
8563 | wxString *arg2 = 0 ; | |
8564 | size_t arg3 ; | |
8565 | wxString result; | |
423f194a RD |
8566 | bool temp1 = False ; |
8567 | bool temp2 = False ; | |
d14a1e28 RD |
8568 | PyObject * obj0 = 0 ; |
8569 | PyObject * obj1 = 0 ; | |
8570 | PyObject * obj2 = 0 ; | |
8571 | ||
8572 | if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail; | |
8573 | { | |
8574 | arg1 = wxString_in_helper(obj0); | |
8575 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 8576 | temp1 = True; |
d14a1e28 RD |
8577 | } |
8578 | { | |
8579 | arg2 = wxString_in_helper(obj1); | |
8580 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8581 | temp2 = True; |
d14a1e28 RD |
8582 | } |
8583 | arg3 = (size_t) PyInt_AsLong(obj2); | |
8584 | if (PyErr_Occurred()) SWIG_fail; | |
8585 | { | |
8586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8587 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
8588 | ||
8589 | wxPyEndAllowThreads(__tstate); | |
8590 | if (PyErr_Occurred()) SWIG_fail; | |
8591 | } | |
8592 | { | |
8593 | #if wxUSE_UNICODE | |
8594 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8595 | #else | |
8596 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8597 | #endif | |
8598 | } | |
8599 | { | |
8600 | if (temp1) | |
8601 | delete arg1; | |
8602 | } | |
8603 | { | |
8604 | if (temp2) | |
8605 | delete arg2; | |
8606 | } | |
8607 | return resultobj; | |
8608 | fail: | |
8609 | { | |
8610 | if (temp1) | |
8611 | delete arg1; | |
8612 | } | |
8613 | { | |
8614 | if (temp2) | |
8615 | delete arg2; | |
8616 | } | |
8617 | return NULL; | |
8618 | } | |
8619 | ||
8620 | ||
8621 | static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) { | |
8622 | int argc; | |
8623 | PyObject *argv[4]; | |
8624 | int ii; | |
8625 | ||
8626 | argc = PyObject_Length(args); | |
8627 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
8628 | argv[ii] = PyTuple_GetItem(args,ii); | |
8629 | } | |
8630 | if (argc == 1) { | |
8631 | int _v; | |
8632 | { | |
8633 | void *ptr; | |
8634 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) { | |
8635 | _v = 0; | |
8636 | PyErr_Clear(); | |
8637 | } else { | |
8638 | _v = 1; | |
8639 | } | |
8640 | } | |
8641 | if (_v) { | |
8642 | return _wrap_GetTranslation__SWIG_0(self,args); | |
8643 | } | |
8644 | } | |
8645 | if (argc == 3) { | |
8646 | int _v; | |
8647 | { | |
8648 | void *ptr; | |
8649 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) { | |
8650 | _v = 0; | |
8651 | PyErr_Clear(); | |
8652 | } else { | |
8653 | _v = 1; | |
8654 | } | |
8655 | } | |
8656 | if (_v) { | |
8657 | { | |
8658 | void *ptr; | |
8659 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) { | |
8660 | _v = 0; | |
8661 | PyErr_Clear(); | |
8662 | } else { | |
8663 | _v = 1; | |
8664 | } | |
8665 | } | |
8666 | if (_v) { | |
8667 | { | |
8668 | _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0; | |
8669 | } | |
8670 | if (_v) { | |
8671 | return _wrap_GetTranslation__SWIG_1(self,args); | |
8672 | } | |
8673 | } | |
8674 | } | |
8675 | } | |
8676 | ||
8677 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'"); | |
8678 | return NULL; | |
8679 | } | |
8680 | ||
8681 | ||
8682 | static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8683 | PyObject *resultobj; | |
8684 | wxEncodingConverter *result; | |
8685 | char *kwnames[] = { | |
8686 | NULL | |
8687 | }; | |
8688 | ||
8689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail; | |
8690 | { | |
8691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8692 | result = (wxEncodingConverter *)new wxEncodingConverter(); | |
8693 | ||
8694 | wxPyEndAllowThreads(__tstate); | |
8695 | if (PyErr_Occurred()) SWIG_fail; | |
8696 | } | |
8697 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEncodingConverter, 1); | |
8698 | return resultobj; | |
8699 | fail: | |
8700 | return NULL; | |
8701 | } | |
8702 | ||
8703 | ||
8704 | static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8705 | PyObject *resultobj; | |
8706 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
8707 | PyObject * obj0 = 0 ; | |
8708 | char *kwnames[] = { | |
8709 | (char *) "self", NULL | |
8710 | }; | |
8711 | ||
8712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail; | |
8713 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8714 | { | |
8715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8716 | delete arg1; | |
8717 | ||
8718 | wxPyEndAllowThreads(__tstate); | |
8719 | if (PyErr_Occurred()) SWIG_fail; | |
8720 | } | |
8721 | Py_INCREF(Py_None); resultobj = Py_None; | |
8722 | return resultobj; | |
8723 | fail: | |
8724 | return NULL; | |
8725 | } | |
8726 | ||
8727 | ||
8728 | static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8729 | PyObject *resultobj; | |
8730 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
8731 | int arg2 ; | |
8732 | int arg3 ; | |
8733 | int arg4 = (int) wxCONVERT_STRICT ; | |
8734 | bool result; | |
8735 | PyObject * obj0 = 0 ; | |
8736 | char *kwnames[] = { | |
8737 | (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL | |
8738 | }; | |
8739 | ||
8740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|i:EncodingConverter_Init",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
8741 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8742 | { | |
8743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8744 | result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4); | |
8745 | ||
8746 | wxPyEndAllowThreads(__tstate); | |
8747 | if (PyErr_Occurred()) SWIG_fail; | |
8748 | } | |
8749 | resultobj = PyInt_FromLong((long)result); | |
8750 | return resultobj; | |
8751 | fail: | |
8752 | return NULL; | |
8753 | } | |
8754 | ||
8755 | ||
8756 | static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8757 | PyObject *resultobj; | |
8758 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
8759 | wxString *arg2 = 0 ; | |
8760 | wxString result; | |
423f194a | 8761 | bool temp2 = False ; |
d14a1e28 RD |
8762 | PyObject * obj0 = 0 ; |
8763 | PyObject * obj1 = 0 ; | |
8764 | char *kwnames[] = { | |
8765 | (char *) "self",(char *) "input", NULL | |
8766 | }; | |
8767 | ||
8768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail; | |
8769 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8770 | { | |
8771 | arg2 = wxString_in_helper(obj1); | |
8772 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8773 | temp2 = True; |
d14a1e28 RD |
8774 | } |
8775 | { | |
8776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8777 | result = (arg1)->Convert((wxString const &)*arg2); | |
8778 | ||
8779 | wxPyEndAllowThreads(__tstate); | |
8780 | if (PyErr_Occurred()) SWIG_fail; | |
8781 | } | |
8782 | { | |
8783 | #if wxUSE_UNICODE | |
8784 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8785 | #else | |
8786 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8787 | #endif | |
8788 | } | |
8789 | { | |
8790 | if (temp2) | |
8791 | delete arg2; | |
8792 | } | |
8793 | return resultobj; | |
8794 | fail: | |
8795 | { | |
8796 | if (temp2) | |
8797 | delete arg2; | |
8798 | } | |
8799 | return NULL; | |
8800 | } | |
8801 | ||
8802 | ||
8803 | static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8804 | PyObject *resultobj; | |
8805 | int arg1 ; | |
8806 | int arg2 = (int) wxPLATFORM_CURRENT ; | |
8807 | wxFontEncodingArray result; | |
8808 | char *kwnames[] = { | |
8809 | (char *) "enc",(char *) "platform", NULL | |
8810 | }; | |
8811 | ||
8812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|i:EncodingConverter_GetPlatformEquivalents",kwnames,&arg1,&arg2)) goto fail; | |
8813 | { | |
8814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8815 | result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2); | |
8816 | ||
8817 | wxPyEndAllowThreads(__tstate); | |
8818 | if (PyErr_Occurred()) SWIG_fail; | |
8819 | } | |
8820 | { | |
8821 | resultobj = PyList_New(0); | |
8822 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
8823 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
8824 | PyList_Append(resultobj, number); | |
8825 | Py_DECREF(number); | |
8826 | } | |
8827 | } | |
8828 | return resultobj; | |
8829 | fail: | |
8830 | return NULL; | |
8831 | } | |
8832 | ||
8833 | ||
8834 | static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8835 | PyObject *resultobj; | |
8836 | int arg1 ; | |
8837 | wxFontEncodingArray result; | |
8838 | char *kwnames[] = { | |
8839 | (char *) "enc", NULL | |
8840 | }; | |
8841 | ||
8842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:EncodingConverter_GetAllEquivalents",kwnames,&arg1)) goto fail; | |
8843 | { | |
8844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8845 | result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1); | |
8846 | ||
8847 | wxPyEndAllowThreads(__tstate); | |
8848 | if (PyErr_Occurred()) SWIG_fail; | |
8849 | } | |
8850 | { | |
8851 | resultobj = PyList_New(0); | |
8852 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
8853 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
8854 | PyList_Append(resultobj, number); | |
8855 | Py_DECREF(number); | |
8856 | } | |
8857 | } | |
8858 | return resultobj; | |
8859 | fail: | |
8860 | return NULL; | |
8861 | } | |
8862 | ||
8863 | ||
8864 | static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8865 | PyObject *resultobj; | |
8866 | int arg1 ; | |
8867 | int arg2 ; | |
8868 | bool result; | |
8869 | char *kwnames[] = { | |
8870 | (char *) "encIn",(char *) "encOut", NULL | |
8871 | }; | |
8872 | ||
8873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii:EncodingConverter_CanConvert",kwnames,&arg1,&arg2)) goto fail; | |
8874 | { | |
8875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8876 | result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2); | |
8877 | ||
8878 | wxPyEndAllowThreads(__tstate); | |
8879 | if (PyErr_Occurred()) SWIG_fail; | |
8880 | } | |
8881 | resultobj = PyInt_FromLong((long)result); | |
8882 | return resultobj; | |
8883 | fail: | |
8884 | return NULL; | |
8885 | } | |
8886 | ||
8887 | ||
8888 | static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) { | |
8889 | PyObject *obj; | |
8890 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8891 | SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj); | |
8892 | Py_INCREF(obj); | |
8893 | return Py_BuildValue((char *)""); | |
8894 | } | |
8895 | static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8896 | PyObject *resultobj; | |
8897 | wxDC *arg1 = (wxDC *) 0 ; | |
8898 | PyObject * obj0 = 0 ; | |
8899 | char *kwnames[] = { | |
8900 | (char *) "self", NULL | |
8901 | }; | |
8902 | ||
8903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail; | |
8904 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8905 | { | |
8906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8907 | delete arg1; | |
8908 | ||
8909 | wxPyEndAllowThreads(__tstate); | |
8910 | if (PyErr_Occurred()) SWIG_fail; | |
8911 | } | |
8912 | Py_INCREF(Py_None); resultobj = Py_None; | |
8913 | return resultobj; | |
8914 | fail: | |
8915 | return NULL; | |
8916 | } | |
8917 | ||
8918 | ||
8919 | static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8920 | PyObject *resultobj; | |
8921 | wxDC *arg1 = (wxDC *) 0 ; | |
8922 | PyObject * obj0 = 0 ; | |
8923 | char *kwnames[] = { | |
8924 | (char *) "self", NULL | |
8925 | }; | |
8926 | ||
8927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail; | |
8928 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8929 | { | |
8930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8931 | (arg1)->BeginDrawing(); | |
8932 | ||
8933 | wxPyEndAllowThreads(__tstate); | |
8934 | if (PyErr_Occurred()) SWIG_fail; | |
8935 | } | |
8936 | Py_INCREF(Py_None); resultobj = Py_None; | |
8937 | return resultobj; | |
8938 | fail: | |
8939 | return NULL; | |
8940 | } | |
8941 | ||
8942 | ||
8943 | static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8944 | PyObject *resultobj; | |
8945 | wxDC *arg1 = (wxDC *) 0 ; | |
8946 | PyObject * obj0 = 0 ; | |
8947 | char *kwnames[] = { | |
8948 | (char *) "self", NULL | |
8949 | }; | |
8950 | ||
8951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail; | |
8952 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8953 | { | |
8954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8955 | (arg1)->EndDrawing(); | |
8956 | ||
8957 | wxPyEndAllowThreads(__tstate); | |
8958 | if (PyErr_Occurred()) SWIG_fail; | |
8959 | } | |
8960 | Py_INCREF(Py_None); resultobj = Py_None; | |
8961 | return resultobj; | |
8962 | fail: | |
8963 | return NULL; | |
8964 | } | |
8965 | ||
8966 | ||
8967 | static PyObject *_wrap_DC_FloodFillXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8968 | PyObject *resultobj; | |
8969 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
8970 | int arg2 ; |
8971 | int arg3 ; | |
d14a1e28 RD |
8972 | wxColour *arg4 = 0 ; |
8973 | int arg5 = (int) wxFLOOD_SURFACE ; | |
8974 | bool result; | |
8975 | wxColour temp4 ; | |
8976 | PyObject * obj0 = 0 ; | |
8977 | PyObject * obj3 = 0 ; | |
8978 | char *kwnames[] = { | |
8979 | (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL | |
8980 | }; | |
8981 | ||
8982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO|i:DC_FloodFillXY",kwnames,&obj0,&arg2,&arg3,&obj3,&arg5)) goto fail; | |
8983 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8984 | { | |
8985 | arg4 = &temp4; | |
8986 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
8987 | } | |
8988 | { | |
8989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8990 | result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); | |
8991 | ||
8992 | wxPyEndAllowThreads(__tstate); | |
8993 | if (PyErr_Occurred()) SWIG_fail; | |
8994 | } | |
8995 | resultobj = PyInt_FromLong((long)result); | |
8996 | return resultobj; | |
8997 | fail: | |
8998 | return NULL; | |
8999 | } | |
9000 | ||
9001 | ||
9002 | static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9003 | PyObject *resultobj; | |
9004 | wxDC *arg1 = (wxDC *) 0 ; | |
9005 | wxPoint *arg2 = 0 ; | |
9006 | wxColour *arg3 = 0 ; | |
9007 | int arg4 = (int) wxFLOOD_SURFACE ; | |
9008 | bool result; | |
9009 | wxPoint temp2 ; | |
9010 | wxColour temp3 ; | |
9011 | PyObject * obj0 = 0 ; | |
9012 | PyObject * obj1 = 0 ; | |
9013 | PyObject * obj2 = 0 ; | |
9014 | char *kwnames[] = { | |
9015 | (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL | |
9016 | }; | |
9017 | ||
9018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|i:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail; | |
9019 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9020 | { | |
9021 | arg2 = &temp2; | |
9022 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9023 | } | |
9024 | { | |
9025 | arg3 = &temp3; | |
9026 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
9027 | } | |
9028 | { | |
9029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9030 | result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); | |
9031 | ||
9032 | wxPyEndAllowThreads(__tstate); | |
9033 | if (PyErr_Occurred()) SWIG_fail; | |
9034 | } | |
9035 | resultobj = PyInt_FromLong((long)result); | |
9036 | return resultobj; | |
9037 | fail: | |
9038 | return NULL; | |
9039 | } | |
9040 | ||
9041 | ||
9042 | static PyObject *_wrap_DC_GetPixelXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9043 | PyObject *resultobj; | |
9044 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
9045 | int arg2 ; |
9046 | int arg3 ; | |
d14a1e28 RD |
9047 | wxColour result; |
9048 | PyObject * obj0 = 0 ; | |
9049 | char *kwnames[] = { | |
9050 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9051 | }; | |
9052 | ||
9053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_GetPixelXY",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
9054 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9055 | { | |
9056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9057 | result = wxDC_GetPixelXY(arg1,arg2,arg3); | |
9058 | ||
9059 | wxPyEndAllowThreads(__tstate); | |
9060 | if (PyErr_Occurred()) SWIG_fail; | |
9061 | } | |
9062 | { | |
9063 | wxColour * resultptr; | |
9064 | resultptr = new wxColour((wxColour &) result); | |
9065 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
9066 | } | |
9067 | return resultobj; | |
9068 | fail: | |
9069 | return NULL; | |
9070 | } | |
9071 | ||
9072 | ||
9073 | static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9074 | PyObject *resultobj; | |
9075 | wxDC *arg1 = (wxDC *) 0 ; | |
9076 | wxPoint *arg2 = 0 ; | |
9077 | wxColour result; | |
9078 | wxPoint temp2 ; | |
9079 | PyObject * obj0 = 0 ; | |
9080 | PyObject * obj1 = 0 ; | |
9081 | char *kwnames[] = { | |
9082 | (char *) "self",(char *) "pt", NULL | |
9083 | }; | |
9084 | ||
9085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail; | |
9086 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9087 | { | |
9088 | arg2 = &temp2; | |
9089 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9090 | } | |
9091 | { | |
9092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9093 | result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2); | |
9094 | ||
9095 | wxPyEndAllowThreads(__tstate); | |
9096 | if (PyErr_Occurred()) SWIG_fail; | |
9097 | } | |
9098 | { | |
9099 | wxColour * resultptr; | |
9100 | resultptr = new wxColour((wxColour &) result); | |
9101 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
9102 | } | |
9103 | return resultobj; | |
9104 | fail: | |
9105 | return NULL; | |
9106 | } | |
9107 | ||
9108 | ||
9109 | static PyObject *_wrap_DC_DrawLineXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9110 | PyObject *resultobj; | |
9111 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
9112 | int arg2 ; |
9113 | int arg3 ; | |
9114 | int arg4 ; | |
9115 | int arg5 ; | |
d14a1e28 RD |
9116 | PyObject * obj0 = 0 ; |
9117 | char *kwnames[] = { | |
9118 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
9119 | }; | |
9120 | ||
9121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawLineXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
9122 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9123 | { | |
9124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9125 | (arg1)->DrawLine(arg2,arg3,arg4,arg5); | |
9126 | ||
9127 | wxPyEndAllowThreads(__tstate); | |
9128 | if (PyErr_Occurred()) SWIG_fail; | |
9129 | } | |
9130 | Py_INCREF(Py_None); resultobj = Py_None; | |
9131 | return resultobj; | |
9132 | fail: | |
9133 | return NULL; | |
9134 | } | |
9135 | ||
9136 | ||
9137 | static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9138 | PyObject *resultobj; | |
9139 | wxDC *arg1 = (wxDC *) 0 ; | |
9140 | wxPoint *arg2 = 0 ; | |
9141 | wxPoint *arg3 = 0 ; | |
9142 | wxPoint temp2 ; | |
9143 | wxPoint temp3 ; | |
9144 | PyObject * obj0 = 0 ; | |
9145 | PyObject * obj1 = 0 ; | |
9146 | PyObject * obj2 = 0 ; | |
9147 | char *kwnames[] = { | |
9148 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL | |
9149 | }; | |
9150 | ||
9151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9152 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9153 | { | |
9154 | arg2 = &temp2; | |
9155 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9156 | } | |
9157 | { | |
9158 | arg3 = &temp3; | |
9159 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
9160 | } | |
9161 | { | |
9162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9163 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
9164 | ||
9165 | wxPyEndAllowThreads(__tstate); | |
9166 | if (PyErr_Occurred()) SWIG_fail; | |
9167 | } | |
9168 | Py_INCREF(Py_None); resultobj = Py_None; | |
9169 | return resultobj; | |
9170 | fail: | |
9171 | return NULL; | |
9172 | } | |
9173 | ||
9174 | ||
9175 | static PyObject *_wrap_DC_CrossHairXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9176 | PyObject *resultobj; | |
9177 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
9178 | int arg2 ; |
9179 | int arg3 ; | |
d14a1e28 RD |
9180 | PyObject * obj0 = 0 ; |
9181 | char *kwnames[] = { | |
9182 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9183 | }; | |
9184 | ||
9185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_CrossHairXY",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
9186 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9187 | { | |
9188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9189 | (arg1)->CrossHair(arg2,arg3); | |
9190 | ||
9191 | wxPyEndAllowThreads(__tstate); | |
9192 | if (PyErr_Occurred()) SWIG_fail; | |
9193 | } | |
9194 | Py_INCREF(Py_None); resultobj = Py_None; | |
9195 | return resultobj; | |
9196 | fail: | |
9197 | return NULL; | |
9198 | } | |
9199 | ||
9200 | ||
9201 | static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9202 | PyObject *resultobj; | |
9203 | wxDC *arg1 = (wxDC *) 0 ; | |
9204 | wxPoint *arg2 = 0 ; | |
9205 | wxPoint temp2 ; | |
9206 | PyObject * obj0 = 0 ; | |
9207 | PyObject * obj1 = 0 ; | |
9208 | char *kwnames[] = { | |
9209 | (char *) "self",(char *) "pt", NULL | |
9210 | }; | |
9211 | ||
9212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail; | |
9213 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9214 | { | |
9215 | arg2 = &temp2; | |
9216 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9217 | } | |
9218 | { | |
9219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9220 | (arg1)->CrossHair((wxPoint const &)*arg2); | |
9221 | ||
9222 | wxPyEndAllowThreads(__tstate); | |
9223 | if (PyErr_Occurred()) SWIG_fail; | |
9224 | } | |
9225 | Py_INCREF(Py_None); resultobj = Py_None; | |
9226 | return resultobj; | |
9227 | fail: | |
9228 | return NULL; | |
9229 | } | |
9230 | ||
9231 | ||
9232 | static PyObject *_wrap_DC_DrawArcXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9233 | PyObject *resultobj; | |
9234 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
9235 | int arg2 ; |
9236 | int arg3 ; | |
9237 | int arg4 ; | |
9238 | int arg5 ; | |
9239 | int arg6 ; | |
9240 | int arg7 ; | |
d14a1e28 RD |
9241 | PyObject * obj0 = 0 ; |
9242 | char *kwnames[] = { | |
9243 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL | |
9244 | }; | |
9245 | ||
9246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiiiii:DC_DrawArcXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7)) goto fail; | |
9247 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9248 | { | |
9249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9250 | (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
9251 | ||
9252 | wxPyEndAllowThreads(__tstate); | |
9253 | if (PyErr_Occurred()) SWIG_fail; | |
9254 | } | |
9255 | Py_INCREF(Py_None); resultobj = Py_None; | |
9256 | return resultobj; | |
9257 | fail: | |
9258 | return NULL; | |
9259 | } | |
9260 | ||
9261 | ||
9262 | static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9263 | PyObject *resultobj; | |
9264 | wxDC *arg1 = (wxDC *) 0 ; | |
9265 | wxPoint *arg2 = 0 ; | |
9266 | wxPoint *arg3 = 0 ; | |
9267 | wxPoint *arg4 = 0 ; | |
9268 | wxPoint temp2 ; | |
9269 | wxPoint temp3 ; | |
9270 | wxPoint temp4 ; | |
9271 | PyObject * obj0 = 0 ; | |
9272 | PyObject * obj1 = 0 ; | |
9273 | PyObject * obj2 = 0 ; | |
9274 | PyObject * obj3 = 0 ; | |
9275 | char *kwnames[] = { | |
9276 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL | |
9277 | }; | |
9278 | ||
9279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9280 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9281 | { | |
9282 | arg2 = &temp2; | |
9283 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9284 | } | |
9285 | { | |
9286 | arg3 = &temp3; | |
9287 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
9288 | } | |
9289 | { | |
9290 | arg4 = &temp4; | |
9291 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9292 | } | |
9293 | { | |
9294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9295 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
9296 | ||
9297 | wxPyEndAllowThreads(__tstate); | |
9298 | if (PyErr_Occurred()) SWIG_fail; | |
9299 | } | |
9300 | Py_INCREF(Py_None); resultobj = Py_None; | |
9301 | return resultobj; | |
9302 | fail: | |
9303 | return NULL; | |
9304 | } | |
9305 | ||
9306 | ||
9307 | static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9308 | PyObject *resultobj; | |
9309 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
9310 | int arg2 ; |
9311 | int arg3 ; | |
9312 | int arg4 ; | |
9313 | int arg5 ; | |
d14a1e28 RD |
9314 | PyObject * obj0 = 0 ; |
9315 | char *kwnames[] = { | |
9316 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
9317 | }; | |
9318 | ||
9319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawCheckMarkXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
9320 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9321 | { | |
9322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9323 | (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); | |
9324 | ||
9325 | wxPyEndAllowThreads(__tstate); | |
9326 | if (PyErr_Occurred()) SWIG_fail; | |
9327 | } | |
9328 | Py_INCREF(Py_None); resultobj = Py_None; | |
9329 | return resultobj; | |
9330 | fail: | |
9331 | return NULL; | |
9332 | } | |
9333 | ||
9334 | ||
9335 | static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9336 | PyObject *resultobj; | |
9337 | wxDC *arg1 = (wxDC *) 0 ; | |
9338 | wxRect *arg2 = 0 ; | |
9339 | wxRect temp2 ; | |
9340 | PyObject * obj0 = 0 ; | |
9341 | PyObject * obj1 = 0 ; | |
9342 | char *kwnames[] = { | |
9343 | (char *) "self",(char *) "rect", NULL | |
9344 | }; | |
9345 | ||
9346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail; | |
9347 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9348 | { | |
9349 | arg2 = &temp2; | |
9350 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
9351 | } | |
9352 | { | |
9353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9354 | (arg1)->DrawCheckMark((wxRect const &)*arg2); | |
9355 | ||
9356 | wxPyEndAllowThreads(__tstate); | |
9357 | if (PyErr_Occurred()) SWIG_fail; | |
9358 | } | |
9359 | Py_INCREF(Py_None); resultobj = Py_None; | |
9360 | return resultobj; | |
9361 | fail: | |
9362 | return NULL; | |
9363 | } | |
9364 | ||
9365 | ||
9366 | static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9367 | PyObject *resultobj; | |
9368 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
9369 | int arg2 ; |
9370 | int arg3 ; | |
9371 | int arg4 ; | |
9372 | int arg5 ; | |
d14a1e28 RD |
9373 | double arg6 ; |
9374 | double arg7 ; | |
9375 | PyObject * obj0 = 0 ; | |
9376 | char *kwnames[] = { | |
9377 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL | |
9378 | }; | |
9379 | ||
9380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiiidd:DC_DrawEllipticArcXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7)) goto fail; | |
9381 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9382 | { | |
9383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9384 | (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
9385 | ||
9386 | wxPyEndAllowThreads(__tstate); | |
9387 | if (PyErr_Occurred()) SWIG_fail; | |
9388 | } | |
9389 | Py_INCREF(Py_None); resultobj = Py_None; | |
9390 | return resultobj; | |
9391 | fail: | |
9392 | return NULL; | |
9393 | } | |
9394 | ||
9395 | ||
9396 | static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9397 | PyObject *resultobj; | |
9398 | wxDC *arg1 = (wxDC *) 0 ; | |
9399 | wxPoint *arg2 = 0 ; | |
9400 | wxSize *arg3 = 0 ; | |
9401 | double arg4 ; | |
9402 | double arg5 ; | |
9403 | wxPoint temp2 ; | |
9404 | wxSize temp3 ; | |
9405 | PyObject * obj0 = 0 ; | |
9406 | PyObject * obj1 = 0 ; | |
9407 | PyObject * obj2 = 0 ; | |
9408 | char *kwnames[] = { | |
9409 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL | |
9410 | }; | |
9411 | ||
9412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOdd:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5)) goto fail; | |
9413 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9414 | { | |
9415 | arg2 = &temp2; | |
9416 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9417 | } | |
9418 | { | |
9419 | arg3 = &temp3; | |
9420 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
9421 | } | |
9422 | { | |
9423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9424 | (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); | |
9425 | ||
9426 | wxPyEndAllowThreads(__tstate); | |
9427 | if (PyErr_Occurred()) SWIG_fail; | |
9428 | } | |
9429 | Py_INCREF(Py_None); resultobj = Py_None; | |
9430 | return resultobj; | |
9431 | fail: | |
9432 | return NULL; | |
9433 | } | |
9434 | ||
9435 | ||
9436 | static PyObject *_wrap_DC_DrawPointXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9437 | PyObject *resultobj; | |
9438 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
9439 | int arg2 ; |
9440 | int arg3 ; | |
d14a1e28 RD |
9441 | PyObject * obj0 = 0 ; |
9442 | char *kwnames[] = { | |
9443 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9444 | }; | |
9445 | ||
9446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_DrawPointXY",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
9447 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9448 | { | |
9449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9450 | (arg1)->DrawPoint(arg2,arg3); | |
9451 | ||
9452 | wxPyEndAllowThreads(__tstate); | |
9453 | if (PyErr_Occurred()) SWIG_fail; | |
9454 | } | |
9455 | Py_INCREF(Py_None); resultobj = Py_None; | |
9456 | return resultobj; | |
9457 | fail: | |
9458 | return NULL; | |
9459 | } | |
9460 | ||
9461 | ||
9462 | static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9463 | PyObject *resultobj; | |
9464 | wxDC *arg1 = (wxDC *) 0 ; | |
9465 | wxPoint *arg2 = 0 ; | |
9466 | wxPoint temp2 ; | |
9467 | PyObject * obj0 = 0 ; | |
9468 | PyObject * obj1 = 0 ; | |
9469 | char *kwnames[] = { | |
9470 | (char *) "self",(char *) "pt", NULL | |
9471 | }; | |
9472 | ||
9473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",kwnames,&obj0,&obj1)) goto fail; | |
9474 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9475 | { | |
9476 | arg2 = &temp2; | |
9477 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9478 | } | |
9479 | { | |
9480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9481 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
9482 | ||
9483 | wxPyEndAllowThreads(__tstate); | |
9484 | if (PyErr_Occurred()) SWIG_fail; | |
9485 | } | |
9486 | Py_INCREF(Py_None); resultobj = Py_None; | |
9487 | return resultobj; | |
9488 | fail: | |
9489 | return NULL; | |
9490 | } | |
9491 | ||
9492 | ||
9493 | static PyObject *_wrap_DC_DrawRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9494 | PyObject *resultobj; | |
9495 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
9496 | int arg2 ; |
9497 | int arg3 ; | |
9498 | int arg4 ; | |
9499 | int arg5 ; | |
d14a1e28 RD |
9500 | PyObject * obj0 = 0 ; |
9501 | char *kwnames[] = { | |
9502 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
9503 | }; | |
9504 | ||
9505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawRectangleXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
9506 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9507 | { | |
9508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9509 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
9510 | ||
9511 | wxPyEndAllowThreads(__tstate); | |
9512 | if (PyErr_Occurred()) SWIG_fail; | |
9513 | } | |
9514 | Py_INCREF(Py_None); resultobj = Py_None; | |
9515 | return resultobj; | |
9516 | fail: | |
9517 | return NULL; | |
9518 | } | |
9519 | ||
9520 | ||
9521 | static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9522 | PyObject *resultobj; | |
9523 | wxDC *arg1 = (wxDC *) 0 ; | |
9524 | wxPoint *arg2 = 0 ; | |
9525 | wxSize *arg3 = 0 ; | |
9526 | wxPoint temp2 ; | |
9527 | wxSize temp3 ; | |
9528 | PyObject * obj0 = 0 ; | |
9529 | PyObject * obj1 = 0 ; | |
9530 | PyObject * obj2 = 0 ; | |
9531 | char *kwnames[] = { | |
9532 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
9533 | }; | |
9534 | ||
9535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9536 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9537 | { | |
9538 | arg2 = &temp2; | |
9539 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9540 | } | |
9541 | { | |
9542 | arg3 = &temp3; | |
9543 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
9544 | } | |
9545 | { | |
9546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9547 | (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
9548 | ||
9549 | wxPyEndAllowThreads(__tstate); | |
9550 | if (PyErr_Occurred()) SWIG_fail; | |
9551 | } | |
9552 | Py_INCREF(Py_None); resultobj = Py_None; | |
9553 | return resultobj; | |
9554 | fail: | |
9555 | return NULL; | |
9556 | } | |
9557 | ||
9558 | ||
9559 | static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9560 | PyObject *resultobj; | |
9561 | wxDC *arg1 = (wxDC *) 0 ; | |
9562 | wxRect *arg2 = 0 ; | |
9563 | wxRect temp2 ; | |
9564 | PyObject * obj0 = 0 ; | |
9565 | PyObject * obj1 = 0 ; | |
9566 | char *kwnames[] = { | |
9567 | (char *) "self",(char *) "rect", NULL | |
9568 | }; | |
9569 | ||
9570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail; | |
9571 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9572 | { | |
9573 | arg2 = &temp2; | |
9574 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
9575 | } | |
9576 | { | |
9577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9578 | (arg1)->DrawRectangle((wxRect const &)*arg2); | |
9579 | ||
9580 | wxPyEndAllowThreads(__tstate); | |
9581 | if (PyErr_Occurred()) SWIG_fail; | |
9582 | } | |
9583 | Py_INCREF(Py_None); resultobj = Py_None; | |
9584 | return resultobj; | |
9585 | fail: | |
9586 | return NULL; | |
9587 | } | |
9588 | ||
9589 | ||
9590 | static PyObject *_wrap_DC_DrawRoundedRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9591 | PyObject *resultobj; | |
9592 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
9593 | int arg2 ; |
9594 | int arg3 ; | |
9595 | int arg4 ; | |
9596 | int arg5 ; | |
d14a1e28 RD |
9597 | double arg6 ; |
9598 | PyObject * obj0 = 0 ; | |
9599 | char *kwnames[] = { | |
9600 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL | |
9601 | }; | |
9602 | ||
9603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiiid:DC_DrawRoundedRectangleXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
9604 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9605 | { | |
9606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9607 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); | |
9608 | ||
9609 | wxPyEndAllowThreads(__tstate); | |
9610 | if (PyErr_Occurred()) SWIG_fail; | |
9611 | } | |
9612 | Py_INCREF(Py_None); resultobj = Py_None; | |
9613 | return resultobj; | |
9614 | fail: | |
9615 | return NULL; | |
9616 | } | |
9617 | ||
9618 | ||
9619 | static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9620 | PyObject *resultobj; | |
9621 | wxDC *arg1 = (wxDC *) 0 ; | |
9622 | wxPoint *arg2 = 0 ; | |
9623 | wxSize *arg3 = 0 ; | |
9624 | double arg4 ; | |
9625 | wxPoint temp2 ; | |
9626 | wxSize temp3 ; | |
9627 | PyObject * obj0 = 0 ; | |
9628 | PyObject * obj1 = 0 ; | |
9629 | PyObject * obj2 = 0 ; | |
9630 | char *kwnames[] = { | |
9631 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL | |
9632 | }; | |
9633 | ||
9634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOd:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail; | |
9635 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9636 | { | |
9637 | arg2 = &temp2; | |
9638 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9639 | } | |
9640 | { | |
9641 | arg3 = &temp3; | |
9642 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
9643 | } | |
9644 | { | |
9645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9646 | (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); | |
9647 | ||
9648 | wxPyEndAllowThreads(__tstate); | |
9649 | if (PyErr_Occurred()) SWIG_fail; | |
9650 | } | |
9651 | Py_INCREF(Py_None); resultobj = Py_None; | |
9652 | return resultobj; | |
9653 | fail: | |
9654 | return NULL; | |
9655 | } | |
9656 | ||
9657 | ||
9658 | static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9659 | PyObject *resultobj; | |
9660 | wxDC *arg1 = (wxDC *) 0 ; | |
9661 | wxRect *arg2 = 0 ; | |
9662 | double arg3 ; | |
9663 | wxRect temp2 ; | |
9664 | PyObject * obj0 = 0 ; | |
9665 | PyObject * obj1 = 0 ; | |
9666 | char *kwnames[] = { | |
9667 | (char *) "self",(char *) "r",(char *) "radius", NULL | |
9668 | }; | |
9669 | ||
9670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOd:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
9671 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9672 | { | |
9673 | arg2 = &temp2; | |
9674 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
9675 | } | |
9676 | { | |
9677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9678 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); | |
9679 | ||
9680 | wxPyEndAllowThreads(__tstate); | |
9681 | if (PyErr_Occurred()) SWIG_fail; | |
9682 | } | |
9683 | Py_INCREF(Py_None); resultobj = Py_None; | |
9684 | return resultobj; | |
9685 | fail: | |
9686 | return NULL; | |
9687 | } | |
9688 | ||
9689 | ||
9690 | static PyObject *_wrap_DC_DrawCircleXY(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 ; | |
d14a1e28 RD |
9696 | PyObject * obj0 = 0 ; |
9697 | char *kwnames[] = { | |
9698 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL | |
9699 | }; | |
9700 | ||
9701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:DC_DrawCircleXY",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
9702 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9703 | { | |
9704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9705 | (arg1)->DrawCircle(arg2,arg3,arg4); | |
9706 | ||
9707 | wxPyEndAllowThreads(__tstate); | |
9708 | if (PyErr_Occurred()) SWIG_fail; | |
9709 | } | |
9710 | Py_INCREF(Py_None); resultobj = Py_None; | |
9711 | return resultobj; | |
9712 | fail: | |
9713 | return NULL; | |
9714 | } | |
9715 | ||
9716 | ||
9717 | static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9718 | PyObject *resultobj; | |
9719 | wxDC *arg1 = (wxDC *) 0 ; | |
9720 | wxPoint *arg2 = 0 ; | |
423f194a | 9721 | int arg3 ; |
d14a1e28 RD |
9722 | wxPoint temp2 ; |
9723 | PyObject * obj0 = 0 ; | |
9724 | PyObject * obj1 = 0 ; | |
9725 | char *kwnames[] = { | |
9726 | (char *) "self",(char *) "pt",(char *) "radius", NULL | |
9727 | }; | |
9728 | ||
9729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:DC_DrawCircle",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
9730 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9731 | { | |
9732 | arg2 = &temp2; | |
9733 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9734 | } | |
9735 | { | |
9736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9737 | (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); | |
9738 | ||
9739 | wxPyEndAllowThreads(__tstate); | |
9740 | if (PyErr_Occurred()) SWIG_fail; | |
9741 | } | |
9742 | Py_INCREF(Py_None); resultobj = Py_None; | |
9743 | return resultobj; | |
9744 | fail: | |
9745 | return NULL; | |
9746 | } | |
9747 | ||
9748 | ||
9749 | static PyObject *_wrap_DC_DrawEllipseXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9750 | PyObject *resultobj; | |
9751 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
9752 | int arg2 ; |
9753 | int arg3 ; | |
9754 | int arg4 ; | |
9755 | int arg5 ; | |
d14a1e28 RD |
9756 | PyObject * obj0 = 0 ; |
9757 | char *kwnames[] = { | |
9758 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
9759 | }; | |
9760 | ||
9761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawEllipseXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
9762 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9763 | { | |
9764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9765 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); | |
9766 | ||
9767 | wxPyEndAllowThreads(__tstate); | |
9768 | if (PyErr_Occurred()) SWIG_fail; | |
9769 | } | |
9770 | Py_INCREF(Py_None); resultobj = Py_None; | |
9771 | return resultobj; | |
9772 | fail: | |
9773 | return NULL; | |
9774 | } | |
9775 | ||
9776 | ||
9777 | static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9778 | PyObject *resultobj; | |
9779 | wxDC *arg1 = (wxDC *) 0 ; | |
9780 | wxPoint *arg2 = 0 ; | |
9781 | wxSize *arg3 = 0 ; | |
9782 | wxPoint temp2 ; | |
9783 | wxSize temp3 ; | |
9784 | PyObject * obj0 = 0 ; | |
9785 | PyObject * obj1 = 0 ; | |
9786 | PyObject * obj2 = 0 ; | |
9787 | char *kwnames[] = { | |
9788 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
9789 | }; | |
9790 | ||
9791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9792 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9793 | { | |
9794 | arg2 = &temp2; | |
9795 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9796 | } | |
9797 | { | |
9798 | arg3 = &temp3; | |
9799 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
9800 | } | |
9801 | { | |
9802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9803 | (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
9804 | ||
9805 | wxPyEndAllowThreads(__tstate); | |
9806 | if (PyErr_Occurred()) SWIG_fail; | |
9807 | } | |
9808 | Py_INCREF(Py_None); resultobj = Py_None; | |
9809 | return resultobj; | |
9810 | fail: | |
9811 | return NULL; | |
9812 | } | |
9813 | ||
9814 | ||
9815 | static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9816 | PyObject *resultobj; | |
9817 | wxDC *arg1 = (wxDC *) 0 ; | |
9818 | wxRect *arg2 = 0 ; | |
9819 | wxRect temp2 ; | |
9820 | PyObject * obj0 = 0 ; | |
9821 | PyObject * obj1 = 0 ; | |
9822 | char *kwnames[] = { | |
9823 | (char *) "self",(char *) "rect", NULL | |
9824 | }; | |
9825 | ||
9826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail; | |
9827 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9828 | { | |
9829 | arg2 = &temp2; | |
9830 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
9831 | } | |
9832 | { | |
9833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9834 | (arg1)->DrawEllipse((wxRect const &)*arg2); | |
9835 | ||
9836 | wxPyEndAllowThreads(__tstate); | |
9837 | if (PyErr_Occurred()) SWIG_fail; | |
9838 | } | |
9839 | Py_INCREF(Py_None); resultobj = Py_None; | |
9840 | return resultobj; | |
9841 | fail: | |
9842 | return NULL; | |
9843 | } | |
9844 | ||
9845 | ||
9846 | static PyObject *_wrap_DC_DrawIconXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9847 | PyObject *resultobj; | |
9848 | wxDC *arg1 = (wxDC *) 0 ; | |
9849 | wxIcon *arg2 = 0 ; | |
423f194a RD |
9850 | int arg3 ; |
9851 | int arg4 ; | |
d14a1e28 RD |
9852 | PyObject * obj0 = 0 ; |
9853 | PyObject * obj1 = 0 ; | |
9854 | char *kwnames[] = { | |
9855 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL | |
9856 | }; | |
9857 | ||
9858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:DC_DrawIconXY",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail; | |
9859 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9860 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9861 | if (arg2 == NULL) { | |
9862 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9863 | } | |
9864 | { | |
9865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9866 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); | |
9867 | ||
9868 | wxPyEndAllowThreads(__tstate); | |
9869 | if (PyErr_Occurred()) SWIG_fail; | |
9870 | } | |
9871 | Py_INCREF(Py_None); resultobj = Py_None; | |
9872 | return resultobj; | |
9873 | fail: | |
9874 | return NULL; | |
9875 | } | |
9876 | ||
9877 | ||
9878 | static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9879 | PyObject *resultobj; | |
9880 | wxDC *arg1 = (wxDC *) 0 ; | |
9881 | wxIcon *arg2 = 0 ; | |
9882 | wxPoint *arg3 = 0 ; | |
9883 | wxPoint temp3 ; | |
9884 | PyObject * obj0 = 0 ; | |
9885 | PyObject * obj1 = 0 ; | |
9886 | PyObject * obj2 = 0 ; | |
9887 | char *kwnames[] = { | |
9888 | (char *) "self",(char *) "icon",(char *) "pt", NULL | |
9889 | }; | |
9890 | ||
9891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9892 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9893 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9894 | if (arg2 == NULL) { | |
9895 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9896 | } | |
9897 | { | |
9898 | arg3 = &temp3; | |
9899 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
9900 | } | |
9901 | { | |
9902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9903 | (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); | |
9904 | ||
9905 | wxPyEndAllowThreads(__tstate); | |
9906 | if (PyErr_Occurred()) SWIG_fail; | |
9907 | } | |
9908 | Py_INCREF(Py_None); resultobj = Py_None; | |
9909 | return resultobj; | |
9910 | fail: | |
9911 | return NULL; | |
9912 | } | |
9913 | ||
9914 | ||
9915 | static PyObject *_wrap_DC_DrawBitmapXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9916 | PyObject *resultobj; | |
9917 | wxDC *arg1 = (wxDC *) 0 ; | |
9918 | wxBitmap *arg2 = 0 ; | |
423f194a RD |
9919 | int arg3 ; |
9920 | int arg4 ; | |
9921 | bool arg5 = (bool) False ; | |
d14a1e28 RD |
9922 | PyObject * obj0 = 0 ; |
9923 | PyObject * obj1 = 0 ; | |
9924 | PyObject * obj4 = 0 ; | |
9925 | char *kwnames[] = { | |
9926 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL | |
9927 | }; | |
9928 | ||
9929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii|O:DC_DrawBitmapXY",kwnames,&obj0,&obj1,&arg3,&arg4,&obj4)) goto fail; | |
9930 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9931 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9932 | if (arg2 == NULL) { | |
9933 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9934 | } | |
9935 | if (obj4) { | |
9936 | arg5 = PyInt_AsLong(obj4) ? true : false; | |
9937 | if (PyErr_Occurred()) SWIG_fail; | |
9938 | } | |
9939 | { | |
9940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9941 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); | |
9942 | ||
9943 | wxPyEndAllowThreads(__tstate); | |
9944 | if (PyErr_Occurred()) SWIG_fail; | |
9945 | } | |
9946 | Py_INCREF(Py_None); resultobj = Py_None; | |
9947 | return resultobj; | |
9948 | fail: | |
9949 | return NULL; | |
9950 | } | |
9951 | ||
9952 | ||
9953 | static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9954 | PyObject *resultobj; | |
9955 | wxDC *arg1 = (wxDC *) 0 ; | |
9956 | wxBitmap *arg2 = 0 ; | |
9957 | wxPoint *arg3 = 0 ; | |
423f194a | 9958 | bool arg4 = (bool) False ; |
d14a1e28 RD |
9959 | wxPoint temp3 ; |
9960 | PyObject * obj0 = 0 ; | |
9961 | PyObject * obj1 = 0 ; | |
9962 | PyObject * obj2 = 0 ; | |
9963 | PyObject * obj3 = 0 ; | |
9964 | char *kwnames[] = { | |
9965 | (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL | |
9966 | }; | |
9967 | ||
9968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9969 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9970 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9971 | if (arg2 == NULL) { | |
9972 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9973 | } | |
9974 | { | |
9975 | arg3 = &temp3; | |
9976 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
9977 | } | |
9978 | if (obj3) { | |
9979 | arg4 = PyInt_AsLong(obj3) ? true : false; | |
9980 | if (PyErr_Occurred()) SWIG_fail; | |
9981 | } | |
9982 | { | |
9983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9984 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); | |
9985 | ||
9986 | wxPyEndAllowThreads(__tstate); | |
9987 | if (PyErr_Occurred()) SWIG_fail; | |
9988 | } | |
9989 | Py_INCREF(Py_None); resultobj = Py_None; | |
9990 | return resultobj; | |
9991 | fail: | |
9992 | return NULL; | |
9993 | } | |
9994 | ||
9995 | ||
9996 | static PyObject *_wrap_DC_DrawTextXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9997 | PyObject *resultobj; | |
9998 | wxDC *arg1 = (wxDC *) 0 ; | |
9999 | wxString *arg2 = 0 ; | |
423f194a RD |
10000 | int arg3 ; |
10001 | int arg4 ; | |
10002 | bool temp2 = False ; | |
d14a1e28 RD |
10003 | PyObject * obj0 = 0 ; |
10004 | PyObject * obj1 = 0 ; | |
10005 | char *kwnames[] = { | |
10006 | (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL | |
10007 | }; | |
10008 | ||
10009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:DC_DrawTextXY",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail; | |
10010 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10011 | { | |
10012 | arg2 = wxString_in_helper(obj1); | |
10013 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10014 | temp2 = True; |
d14a1e28 RD |
10015 | } |
10016 | { | |
10017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10018 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); | |
10019 | ||
10020 | wxPyEndAllowThreads(__tstate); | |
10021 | if (PyErr_Occurred()) SWIG_fail; | |
10022 | } | |
10023 | Py_INCREF(Py_None); resultobj = Py_None; | |
10024 | { | |
10025 | if (temp2) | |
10026 | delete arg2; | |
10027 | } | |
10028 | return resultobj; | |
10029 | fail: | |
10030 | { | |
10031 | if (temp2) | |
10032 | delete arg2; | |
10033 | } | |
10034 | return NULL; | |
10035 | } | |
10036 | ||
10037 | ||
10038 | static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10039 | PyObject *resultobj; | |
10040 | wxDC *arg1 = (wxDC *) 0 ; | |
10041 | wxString *arg2 = 0 ; | |
10042 | wxPoint *arg3 = 0 ; | |
423f194a | 10043 | bool temp2 = False ; |
d14a1e28 RD |
10044 | wxPoint temp3 ; |
10045 | PyObject * obj0 = 0 ; | |
10046 | PyObject * obj1 = 0 ; | |
10047 | PyObject * obj2 = 0 ; | |
10048 | char *kwnames[] = { | |
10049 | (char *) "self",(char *) "text",(char *) "pt", NULL | |
10050 | }; | |
10051 | ||
10052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10053 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10054 | { | |
10055 | arg2 = wxString_in_helper(obj1); | |
10056 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10057 | temp2 = True; |
d14a1e28 RD |
10058 | } |
10059 | { | |
10060 | arg3 = &temp3; | |
10061 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10062 | } | |
10063 | { | |
10064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10065 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
10066 | ||
10067 | wxPyEndAllowThreads(__tstate); | |
10068 | if (PyErr_Occurred()) SWIG_fail; | |
10069 | } | |
10070 | Py_INCREF(Py_None); resultobj = Py_None; | |
10071 | { | |
10072 | if (temp2) | |
10073 | delete arg2; | |
10074 | } | |
10075 | return resultobj; | |
10076 | fail: | |
10077 | { | |
10078 | if (temp2) | |
10079 | delete arg2; | |
10080 | } | |
10081 | return NULL; | |
10082 | } | |
10083 | ||
10084 | ||
10085 | static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10086 | PyObject *resultobj; | |
10087 | wxDC *arg1 = (wxDC *) 0 ; | |
10088 | wxString *arg2 = 0 ; | |
423f194a RD |
10089 | int arg3 ; |
10090 | int arg4 ; | |
d14a1e28 | 10091 | double arg5 ; |
423f194a | 10092 | bool temp2 = False ; |
d14a1e28 RD |
10093 | PyObject * obj0 = 0 ; |
10094 | PyObject * obj1 = 0 ; | |
10095 | char *kwnames[] = { | |
10096 | (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL | |
10097 | }; | |
10098 | ||
10099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiid:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5)) goto fail; | |
10100 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10101 | { | |
10102 | arg2 = wxString_in_helper(obj1); | |
10103 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10104 | temp2 = True; |
d14a1e28 RD |
10105 | } |
10106 | { | |
10107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10108 | (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); | |
10109 | ||
10110 | wxPyEndAllowThreads(__tstate); | |
10111 | if (PyErr_Occurred()) SWIG_fail; | |
10112 | } | |
10113 | Py_INCREF(Py_None); resultobj = Py_None; | |
10114 | { | |
10115 | if (temp2) | |
10116 | delete arg2; | |
10117 | } | |
10118 | return resultobj; | |
10119 | fail: | |
10120 | { | |
10121 | if (temp2) | |
10122 | delete arg2; | |
10123 | } | |
10124 | return NULL; | |
10125 | } | |
10126 | ||
10127 | ||
10128 | static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10129 | PyObject *resultobj; | |
10130 | wxDC *arg1 = (wxDC *) 0 ; | |
10131 | wxString *arg2 = 0 ; | |
10132 | wxPoint *arg3 = 0 ; | |
10133 | double arg4 ; | |
423f194a | 10134 | bool temp2 = False ; |
d14a1e28 RD |
10135 | wxPoint temp3 ; |
10136 | PyObject * obj0 = 0 ; | |
10137 | PyObject * obj1 = 0 ; | |
10138 | PyObject * obj2 = 0 ; | |
10139 | char *kwnames[] = { | |
10140 | (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL | |
10141 | }; | |
10142 | ||
10143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOd:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail; | |
10144 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10145 | { | |
10146 | arg2 = wxString_in_helper(obj1); | |
10147 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10148 | temp2 = True; |
d14a1e28 RD |
10149 | } |
10150 | { | |
10151 | arg3 = &temp3; | |
10152 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10153 | } | |
10154 | { | |
10155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10156 | (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); | |
10157 | ||
10158 | wxPyEndAllowThreads(__tstate); | |
10159 | if (PyErr_Occurred()) SWIG_fail; | |
10160 | } | |
10161 | Py_INCREF(Py_None); resultobj = Py_None; | |
10162 | { | |
10163 | if (temp2) | |
10164 | delete arg2; | |
10165 | } | |
10166 | return resultobj; | |
10167 | fail: | |
10168 | { | |
10169 | if (temp2) | |
10170 | delete arg2; | |
10171 | } | |
10172 | return NULL; | |
10173 | } | |
10174 | ||
10175 | ||
10176 | static PyObject *_wrap_DC_BlitXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10177 | PyObject *resultobj; | |
10178 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
10179 | int arg2 ; |
10180 | int arg3 ; | |
10181 | int arg4 ; | |
10182 | int arg5 ; | |
d14a1e28 | 10183 | wxDC *arg6 = (wxDC *) 0 ; |
423f194a RD |
10184 | int arg7 ; |
10185 | int arg8 ; | |
d14a1e28 | 10186 | int arg9 = (int) wxCOPY ; |
423f194a RD |
10187 | bool arg10 = (bool) False ; |
10188 | int arg11 = (int) -1 ; | |
10189 | int arg12 = (int) -1 ; | |
d14a1e28 RD |
10190 | bool result; |
10191 | PyObject * obj0 = 0 ; | |
10192 | PyObject * obj5 = 0 ; | |
10193 | PyObject * obj9 = 0 ; | |
10194 | char *kwnames[] = { | |
10195 | (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 | |
10196 | }; | |
10197 | ||
10198 | 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; | |
10199 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10200 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10201 | if (obj9) { | |
10202 | arg10 = PyInt_AsLong(obj9) ? true : false; | |
10203 | if (PyErr_Occurred()) SWIG_fail; | |
10204 | } | |
10205 | { | |
10206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10207 | result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); | |
10208 | ||
10209 | wxPyEndAllowThreads(__tstate); | |
10210 | if (PyErr_Occurred()) SWIG_fail; | |
10211 | } | |
10212 | resultobj = PyInt_FromLong((long)result); | |
10213 | return resultobj; | |
10214 | fail: | |
10215 | return NULL; | |
10216 | } | |
10217 | ||
10218 | ||
10219 | static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10220 | PyObject *resultobj; | |
10221 | wxDC *arg1 = (wxDC *) 0 ; | |
10222 | wxPoint *arg2 = 0 ; | |
10223 | wxSize *arg3 = 0 ; | |
10224 | wxDC *arg4 = (wxDC *) 0 ; | |
10225 | wxPoint *arg5 = 0 ; | |
10226 | int arg6 = (int) wxCOPY ; | |
423f194a | 10227 | bool arg7 = (bool) False ; |
d14a1e28 RD |
10228 | wxPoint const &arg8_defvalue = wxDefaultPosition ; |
10229 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
10230 | bool result; | |
10231 | wxPoint temp2 ; | |
10232 | wxSize temp3 ; | |
10233 | wxPoint temp5 ; | |
10234 | wxPoint temp8 ; | |
10235 | PyObject * obj0 = 0 ; | |
10236 | PyObject * obj1 = 0 ; | |
10237 | PyObject * obj2 = 0 ; | |
10238 | PyObject * obj3 = 0 ; | |
10239 | PyObject * obj4 = 0 ; | |
10240 | PyObject * obj6 = 0 ; | |
10241 | PyObject * obj7 = 0 ; | |
10242 | char *kwnames[] = { | |
10243 | (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL | |
10244 | }; | |
10245 | ||
10246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|iOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
10247 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10248 | { | |
10249 | arg2 = &temp2; | |
10250 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10251 | } | |
10252 | { | |
10253 | arg3 = &temp3; | |
10254 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
10255 | } | |
10256 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10257 | { | |
10258 | arg5 = &temp5; | |
10259 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
10260 | } | |
10261 | if (obj6) { | |
10262 | arg7 = PyInt_AsLong(obj6) ? true : false; | |
10263 | if (PyErr_Occurred()) SWIG_fail; | |
10264 | } | |
10265 | if (obj7) { | |
10266 | { | |
10267 | arg8 = &temp8; | |
10268 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
10269 | } | |
10270 | } | |
10271 | { | |
10272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10273 | result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8); | |
10274 | ||
10275 | wxPyEndAllowThreads(__tstate); | |
10276 | if (PyErr_Occurred()) SWIG_fail; | |
10277 | } | |
10278 | resultobj = PyInt_FromLong((long)result); | |
10279 | return resultobj; | |
10280 | fail: | |
10281 | return NULL; | |
10282 | } | |
10283 | ||
10284 | ||
10285 | static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10286 | PyObject *resultobj; | |
10287 | wxDC *arg1 = (wxDC *) 0 ; | |
10288 | int arg2 ; | |
10289 | wxPoint *arg3 = (wxPoint *) 0 ; | |
423f194a RD |
10290 | int arg4 = (int) 0 ; |
10291 | int arg5 = (int) 0 ; | |
d14a1e28 RD |
10292 | PyObject * obj0 = 0 ; |
10293 | PyObject * obj1 = 0 ; | |
10294 | char *kwnames[] = { | |
10295 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL | |
10296 | }; | |
10297 | ||
10298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|ii:DC_DrawLines",kwnames,&obj0,&obj1,&arg4,&arg5)) goto fail; | |
10299 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10300 | { | |
10301 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
10302 | if (arg3 == NULL) SWIG_fail; | |
10303 | } | |
10304 | { | |
10305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10306 | (arg1)->DrawLines(arg2,arg3,arg4,arg5); | |
10307 | ||
10308 | wxPyEndAllowThreads(__tstate); | |
10309 | if (PyErr_Occurred()) SWIG_fail; | |
10310 | } | |
10311 | Py_INCREF(Py_None); resultobj = Py_None; | |
10312 | { | |
10313 | if (arg3) delete [] arg3; | |
10314 | } | |
10315 | return resultobj; | |
10316 | fail: | |
10317 | { | |
10318 | if (arg3) delete [] arg3; | |
10319 | } | |
10320 | return NULL; | |
10321 | } | |
10322 | ||
10323 | ||
10324 | static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10325 | PyObject *resultobj; | |
10326 | wxDC *arg1 = (wxDC *) 0 ; | |
10327 | int arg2 ; | |
10328 | wxPoint *arg3 = (wxPoint *) 0 ; | |
423f194a RD |
10329 | int arg4 = (int) 0 ; |
10330 | int arg5 = (int) 0 ; | |
d14a1e28 RD |
10331 | int arg6 = (int) wxODDEVEN_RULE ; |
10332 | PyObject * obj0 = 0 ; | |
10333 | PyObject * obj1 = 0 ; | |
10334 | char *kwnames[] = { | |
10335 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL | |
10336 | }; | |
10337 | ||
10338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iii:DC_DrawPolygon",kwnames,&obj0,&obj1,&arg4,&arg5,&arg6)) goto fail; | |
10339 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10340 | { | |
10341 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
10342 | if (arg3 == NULL) SWIG_fail; | |
10343 | } | |
10344 | { | |
10345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10346 | (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); | |
10347 | ||
10348 | wxPyEndAllowThreads(__tstate); | |
10349 | if (PyErr_Occurred()) SWIG_fail; | |
10350 | } | |
10351 | Py_INCREF(Py_None); resultobj = Py_None; | |
10352 | { | |
10353 | if (arg3) delete [] arg3; | |
10354 | } | |
10355 | return resultobj; | |
10356 | fail: | |
10357 | { | |
10358 | if (arg3) delete [] arg3; | |
10359 | } | |
10360 | return NULL; | |
10361 | } | |
10362 | ||
10363 | ||
10364 | static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10365 | PyObject *resultobj; | |
10366 | wxDC *arg1 = (wxDC *) 0 ; | |
10367 | wxString *arg2 = 0 ; | |
10368 | wxRect *arg3 = 0 ; | |
10369 | int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
10370 | int arg5 = (int) -1 ; | |
423f194a | 10371 | bool temp2 = False ; |
d14a1e28 RD |
10372 | wxRect temp3 ; |
10373 | PyObject * obj0 = 0 ; | |
10374 | PyObject * obj1 = 0 ; | |
10375 | PyObject * obj2 = 0 ; | |
10376 | char *kwnames[] = { | |
10377 | (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
10378 | }; | |
10379 | ||
10380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|ii:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5)) goto fail; | |
10381 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10382 | { | |
10383 | arg2 = wxString_in_helper(obj1); | |
10384 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10385 | temp2 = True; |
d14a1e28 RD |
10386 | } |
10387 | { | |
10388 | arg3 = &temp3; | |
10389 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
10390 | } | |
10391 | { | |
10392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10393 | (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); | |
10394 | ||
10395 | wxPyEndAllowThreads(__tstate); | |
10396 | if (PyErr_Occurred()) SWIG_fail; | |
10397 | } | |
10398 | Py_INCREF(Py_None); resultobj = Py_None; | |
10399 | { | |
10400 | if (temp2) | |
10401 | delete arg2; | |
10402 | } | |
10403 | return resultobj; | |
10404 | fail: | |
10405 | { | |
10406 | if (temp2) | |
10407 | delete arg2; | |
10408 | } | |
10409 | return NULL; | |
10410 | } | |
10411 | ||
10412 | ||
10413 | static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10414 | PyObject *resultobj; | |
10415 | wxDC *arg1 = (wxDC *) 0 ; | |
10416 | wxString *arg2 = 0 ; | |
10417 | wxBitmap *arg3 = 0 ; | |
10418 | wxRect *arg4 = 0 ; | |
10419 | int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
10420 | int arg6 = (int) -1 ; | |
10421 | wxRect result; | |
423f194a | 10422 | bool temp2 = False ; |
d14a1e28 RD |
10423 | wxRect temp4 ; |
10424 | PyObject * obj0 = 0 ; | |
10425 | PyObject * obj1 = 0 ; | |
10426 | PyObject * obj2 = 0 ; | |
10427 | PyObject * obj3 = 0 ; | |
10428 | char *kwnames[] = { | |
10429 | (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
10430 | }; | |
10431 | ||
10432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|ii:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5,&arg6)) goto fail; | |
10433 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10434 | { | |
10435 | arg2 = wxString_in_helper(obj1); | |
10436 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10437 | temp2 = True; |
d14a1e28 RD |
10438 | } |
10439 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10440 | if (arg3 == NULL) { | |
10441 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10442 | } | |
10443 | { | |
10444 | arg4 = &temp4; | |
10445 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
10446 | } | |
10447 | { | |
10448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10449 | result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); | |
10450 | ||
10451 | wxPyEndAllowThreads(__tstate); | |
10452 | if (PyErr_Occurred()) SWIG_fail; | |
10453 | } | |
10454 | { | |
10455 | wxRect * resultptr; | |
10456 | resultptr = new wxRect((wxRect &) result); | |
10457 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
10458 | } | |
10459 | { | |
10460 | if (temp2) | |
10461 | delete arg2; | |
10462 | } | |
10463 | return resultobj; | |
10464 | fail: | |
10465 | { | |
10466 | if (temp2) | |
10467 | delete arg2; | |
10468 | } | |
10469 | return NULL; | |
10470 | } | |
10471 | ||
10472 | ||
10473 | static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10474 | PyObject *resultobj; | |
10475 | wxDC *arg1 = (wxDC *) 0 ; | |
10476 | int arg2 ; | |
10477 | wxPoint *arg3 = (wxPoint *) 0 ; | |
10478 | PyObject * obj0 = 0 ; | |
10479 | PyObject * obj1 = 0 ; | |
10480 | char *kwnames[] = { | |
10481 | (char *) "self",(char *) "points", NULL | |
10482 | }; | |
10483 | ||
10484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail; | |
10485 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10486 | { | |
10487 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
10488 | if (arg3 == NULL) SWIG_fail; | |
10489 | } | |
10490 | { | |
10491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10492 | (arg1)->DrawSpline(arg2,arg3); | |
10493 | ||
10494 | wxPyEndAllowThreads(__tstate); | |
10495 | if (PyErr_Occurred()) SWIG_fail; | |
10496 | } | |
10497 | Py_INCREF(Py_None); resultobj = Py_None; | |
10498 | { | |
10499 | if (arg3) delete [] arg3; | |
10500 | } | |
10501 | return resultobj; | |
10502 | fail: | |
10503 | { | |
10504 | if (arg3) delete [] arg3; | |
10505 | } | |
10506 | return NULL; | |
10507 | } | |
10508 | ||
10509 | ||
10510 | static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10511 | PyObject *resultobj; | |
10512 | wxDC *arg1 = (wxDC *) 0 ; | |
10513 | PyObject * obj0 = 0 ; | |
10514 | char *kwnames[] = { | |
10515 | (char *) "self", NULL | |
10516 | }; | |
10517 | ||
10518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail; | |
10519 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10520 | { | |
10521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10522 | (arg1)->Clear(); | |
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_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10535 | PyObject *resultobj; | |
10536 | wxDC *arg1 = (wxDC *) 0 ; | |
10537 | wxString *arg2 = 0 ; | |
10538 | bool result; | |
423f194a | 10539 | bool temp2 = False ; |
d14a1e28 RD |
10540 | PyObject * obj0 = 0 ; |
10541 | PyObject * obj1 = 0 ; | |
10542 | char *kwnames[] = { | |
10543 | (char *) "self",(char *) "message", NULL | |
10544 | }; | |
10545 | ||
10546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail; | |
10547 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10548 | { | |
10549 | arg2 = wxString_in_helper(obj1); | |
10550 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10551 | temp2 = True; |
d14a1e28 RD |
10552 | } |
10553 | { | |
10554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10555 | result = (bool)(arg1)->StartDoc((wxString const &)*arg2); | |
10556 | ||
10557 | wxPyEndAllowThreads(__tstate); | |
10558 | if (PyErr_Occurred()) SWIG_fail; | |
10559 | } | |
10560 | resultobj = PyInt_FromLong((long)result); | |
10561 | { | |
10562 | if (temp2) | |
10563 | delete arg2; | |
10564 | } | |
10565 | return resultobj; | |
10566 | fail: | |
10567 | { | |
10568 | if (temp2) | |
10569 | delete arg2; | |
10570 | } | |
10571 | return NULL; | |
10572 | } | |
10573 | ||
10574 | ||
10575 | static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10576 | PyObject *resultobj; | |
10577 | wxDC *arg1 = (wxDC *) 0 ; | |
10578 | PyObject * obj0 = 0 ; | |
10579 | char *kwnames[] = { | |
10580 | (char *) "self", NULL | |
10581 | }; | |
10582 | ||
10583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail; | |
10584 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10585 | { | |
10586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10587 | (arg1)->EndDoc(); | |
10588 | ||
10589 | wxPyEndAllowThreads(__tstate); | |
10590 | if (PyErr_Occurred()) SWIG_fail; | |
10591 | } | |
10592 | Py_INCREF(Py_None); resultobj = Py_None; | |
10593 | return resultobj; | |
10594 | fail: | |
10595 | return NULL; | |
10596 | } | |
10597 | ||
10598 | ||
10599 | static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10600 | PyObject *resultobj; | |
10601 | wxDC *arg1 = (wxDC *) 0 ; | |
10602 | PyObject * obj0 = 0 ; | |
10603 | char *kwnames[] = { | |
10604 | (char *) "self", NULL | |
10605 | }; | |
10606 | ||
10607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail; | |
10608 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10609 | { | |
10610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10611 | (arg1)->StartPage(); | |
10612 | ||
10613 | wxPyEndAllowThreads(__tstate); | |
10614 | if (PyErr_Occurred()) SWIG_fail; | |
10615 | } | |
10616 | Py_INCREF(Py_None); resultobj = Py_None; | |
10617 | return resultobj; | |
10618 | fail: | |
10619 | return NULL; | |
10620 | } | |
10621 | ||
10622 | ||
10623 | static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10624 | PyObject *resultobj; | |
10625 | wxDC *arg1 = (wxDC *) 0 ; | |
10626 | PyObject * obj0 = 0 ; | |
10627 | char *kwnames[] = { | |
10628 | (char *) "self", NULL | |
10629 | }; | |
10630 | ||
10631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail; | |
10632 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10633 | { | |
10634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10635 | (arg1)->EndPage(); | |
10636 | ||
10637 | wxPyEndAllowThreads(__tstate); | |
10638 | if (PyErr_Occurred()) SWIG_fail; | |
10639 | } | |
10640 | Py_INCREF(Py_None); resultobj = Py_None; | |
10641 | return resultobj; | |
10642 | fail: | |
10643 | return NULL; | |
10644 | } | |
10645 | ||
10646 | ||
10647 | static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10648 | PyObject *resultobj; | |
10649 | wxDC *arg1 = (wxDC *) 0 ; | |
10650 | wxFont *arg2 = 0 ; | |
10651 | PyObject * obj0 = 0 ; | |
10652 | PyObject * obj1 = 0 ; | |
10653 | char *kwnames[] = { | |
10654 | (char *) "self",(char *) "font", NULL | |
10655 | }; | |
10656 | ||
10657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
10658 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10659 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10660 | if (arg2 == NULL) { | |
10661 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10662 | } | |
10663 | { | |
10664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10665 | (arg1)->SetFont((wxFont const &)*arg2); | |
10666 | ||
10667 | wxPyEndAllowThreads(__tstate); | |
10668 | if (PyErr_Occurred()) SWIG_fail; | |
10669 | } | |
10670 | Py_INCREF(Py_None); resultobj = Py_None; | |
10671 | return resultobj; | |
10672 | fail: | |
10673 | return NULL; | |
10674 | } | |
10675 | ||
10676 | ||
10677 | static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10678 | PyObject *resultobj; | |
10679 | wxDC *arg1 = (wxDC *) 0 ; | |
10680 | wxPen *arg2 = 0 ; | |
10681 | PyObject * obj0 = 0 ; | |
10682 | PyObject * obj1 = 0 ; | |
10683 | char *kwnames[] = { | |
10684 | (char *) "self",(char *) "pen", NULL | |
10685 | }; | |
10686 | ||
10687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail; | |
10688 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10689 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10690 | if (arg2 == NULL) { | |
10691 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10692 | } | |
10693 | { | |
10694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10695 | (arg1)->SetPen((wxPen const &)*arg2); | |
10696 | ||
10697 | wxPyEndAllowThreads(__tstate); | |
10698 | if (PyErr_Occurred()) SWIG_fail; | |
10699 | } | |
10700 | Py_INCREF(Py_None); resultobj = Py_None; | |
10701 | return resultobj; | |
10702 | fail: | |
10703 | return NULL; | |
10704 | } | |
10705 | ||
10706 | ||
10707 | static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10708 | PyObject *resultobj; | |
10709 | wxDC *arg1 = (wxDC *) 0 ; | |
10710 | wxBrush *arg2 = 0 ; | |
10711 | PyObject * obj0 = 0 ; | |
10712 | PyObject * obj1 = 0 ; | |
10713 | char *kwnames[] = { | |
10714 | (char *) "self",(char *) "brush", NULL | |
10715 | }; | |
10716 | ||
10717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail; | |
10718 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10719 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10720 | if (arg2 == NULL) { | |
10721 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10722 | } | |
10723 | { | |
10724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10725 | (arg1)->SetBrush((wxBrush const &)*arg2); | |
10726 | ||
10727 | wxPyEndAllowThreads(__tstate); | |
10728 | if (PyErr_Occurred()) SWIG_fail; | |
10729 | } | |
10730 | Py_INCREF(Py_None); resultobj = Py_None; | |
10731 | return resultobj; | |
10732 | fail: | |
10733 | return NULL; | |
10734 | } | |
10735 | ||
10736 | ||
10737 | static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10738 | PyObject *resultobj; | |
10739 | wxDC *arg1 = (wxDC *) 0 ; | |
10740 | wxBrush *arg2 = 0 ; | |
10741 | PyObject * obj0 = 0 ; | |
10742 | PyObject * obj1 = 0 ; | |
10743 | char *kwnames[] = { | |
10744 | (char *) "self",(char *) "brush", NULL | |
10745 | }; | |
10746 | ||
10747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail; | |
10748 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10749 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10750 | if (arg2 == NULL) { | |
10751 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10752 | } | |
10753 | { | |
10754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10755 | (arg1)->SetBackground((wxBrush const &)*arg2); | |
10756 | ||
10757 | wxPyEndAllowThreads(__tstate); | |
10758 | if (PyErr_Occurred()) SWIG_fail; | |
10759 | } | |
10760 | Py_INCREF(Py_None); resultobj = Py_None; | |
10761 | return resultobj; | |
10762 | fail: | |
10763 | return NULL; | |
10764 | } | |
10765 | ||
10766 | ||
10767 | static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10768 | PyObject *resultobj; | |
10769 | wxDC *arg1 = (wxDC *) 0 ; | |
10770 | int arg2 ; | |
10771 | PyObject * obj0 = 0 ; | |
10772 | char *kwnames[] = { | |
10773 | (char *) "self",(char *) "mode", NULL | |
10774 | }; | |
10775 | ||
10776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_SetBackgroundMode",kwnames,&obj0,&arg2)) goto fail; | |
10777 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10778 | { | |
10779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10780 | (arg1)->SetBackgroundMode(arg2); | |
10781 | ||
10782 | wxPyEndAllowThreads(__tstate); | |
10783 | if (PyErr_Occurred()) SWIG_fail; | |
10784 | } | |
10785 | Py_INCREF(Py_None); resultobj = Py_None; | |
10786 | return resultobj; | |
10787 | fail: | |
10788 | return NULL; | |
10789 | } | |
10790 | ||
10791 | ||
10792 | static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10793 | PyObject *resultobj; | |
10794 | wxDC *arg1 = (wxDC *) 0 ; | |
10795 | wxPalette *arg2 = 0 ; | |
10796 | PyObject * obj0 = 0 ; | |
10797 | PyObject * obj1 = 0 ; | |
10798 | char *kwnames[] = { | |
10799 | (char *) "self",(char *) "palette", NULL | |
10800 | }; | |
10801 | ||
10802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail; | |
10803 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10804 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10805 | if (arg2 == NULL) { | |
10806 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10807 | } | |
10808 | { | |
10809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10810 | (arg1)->SetPalette((wxPalette const &)*arg2); | |
10811 | ||
10812 | wxPyEndAllowThreads(__tstate); | |
10813 | if (PyErr_Occurred()) SWIG_fail; | |
10814 | } | |
10815 | Py_INCREF(Py_None); resultobj = Py_None; | |
10816 | return resultobj; | |
10817 | fail: | |
10818 | return NULL; | |
10819 | } | |
10820 | ||
10821 | ||
0f774bef | 10822 | static PyObject *_wrap_DC_SetClippingRegionXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10823 | PyObject *resultobj; |
10824 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
10825 | int arg2 ; |
10826 | int arg3 ; | |
10827 | int arg4 ; | |
10828 | int arg5 ; | |
d14a1e28 RD |
10829 | PyObject * obj0 = 0 ; |
10830 | char *kwnames[] = { | |
10831 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
10832 | }; | |
10833 | ||
0f774bef | 10834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_SetClippingRegionXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; |
d14a1e28 RD |
10835 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10836 | { | |
10837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10838 | (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5); | |
10839 | ||
10840 | wxPyEndAllowThreads(__tstate); | |
10841 | if (PyErr_Occurred()) SWIG_fail; | |
10842 | } | |
10843 | Py_INCREF(Py_None); resultobj = Py_None; | |
10844 | return resultobj; | |
10845 | fail: | |
10846 | return NULL; | |
10847 | } | |
10848 | ||
10849 | ||
0f774bef RD |
10850 | static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
10851 | PyObject *resultobj; | |
10852 | wxDC *arg1 = (wxDC *) 0 ; | |
10853 | wxPoint *arg2 = 0 ; | |
10854 | wxSize *arg3 = 0 ; | |
10855 | wxPoint temp2 ; | |
10856 | wxSize temp3 ; | |
10857 | PyObject * obj0 = 0 ; | |
10858 | PyObject * obj1 = 0 ; | |
10859 | PyObject * obj2 = 0 ; | |
10860 | char *kwnames[] = { | |
10861 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
10862 | }; | |
10863 | ||
10864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10865 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10866 | { | |
10867 | arg2 = &temp2; | |
10868 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10869 | } | |
10870 | { | |
10871 | arg3 = &temp3; | |
10872 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
10873 | } | |
10874 | { | |
10875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10876 | (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
10877 | ||
10878 | wxPyEndAllowThreads(__tstate); | |
10879 | if (PyErr_Occurred()) SWIG_fail; | |
10880 | } | |
10881 | Py_INCREF(Py_None); resultobj = Py_None; | |
10882 | return resultobj; | |
10883 | fail: | |
10884 | return NULL; | |
10885 | } | |
10886 | ||
10887 | ||
d14a1e28 RD |
10888 | static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
10889 | PyObject *resultobj; | |
10890 | wxDC *arg1 = (wxDC *) 0 ; | |
10891 | wxRect *arg2 = 0 ; | |
10892 | wxRect temp2 ; | |
10893 | PyObject * obj0 = 0 ; | |
10894 | PyObject * obj1 = 0 ; | |
10895 | char *kwnames[] = { | |
10896 | (char *) "self",(char *) "rect", NULL | |
10897 | }; | |
10898 | ||
10899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail; | |
10900 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10901 | { | |
10902 | arg2 = &temp2; | |
10903 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10904 | } | |
10905 | { | |
10906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10907 | (arg1)->SetClippingRegion((wxRect const &)*arg2); | |
10908 | ||
10909 | wxPyEndAllowThreads(__tstate); | |
10910 | if (PyErr_Occurred()) SWIG_fail; | |
10911 | } | |
10912 | Py_INCREF(Py_None); resultobj = Py_None; | |
10913 | return resultobj; | |
10914 | fail: | |
10915 | return NULL; | |
10916 | } | |
10917 | ||
10918 | ||
10919 | static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10920 | PyObject *resultobj; | |
10921 | wxDC *arg1 = (wxDC *) 0 ; | |
10922 | wxRegion *arg2 = 0 ; | |
10923 | PyObject * obj0 = 0 ; | |
10924 | PyObject * obj1 = 0 ; | |
10925 | char *kwnames[] = { | |
10926 | (char *) "self",(char *) "region", NULL | |
10927 | }; | |
10928 | ||
10929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail; | |
10930 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10931 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10932 | if (arg2 == NULL) { | |
10933 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10934 | } | |
10935 | { | |
10936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10937 | (arg1)->SetClippingRegion((wxRegion const &)*arg2); | |
10938 | ||
10939 | wxPyEndAllowThreads(__tstate); | |
10940 | if (PyErr_Occurred()) SWIG_fail; | |
10941 | } | |
10942 | Py_INCREF(Py_None); resultobj = Py_None; | |
10943 | return resultobj; | |
10944 | fail: | |
10945 | return NULL; | |
10946 | } | |
10947 | ||
10948 | ||
10949 | static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10950 | PyObject *resultobj; | |
10951 | wxDC *arg1 = (wxDC *) 0 ; | |
10952 | PyObject * obj0 = 0 ; | |
10953 | char *kwnames[] = { | |
10954 | (char *) "self", NULL | |
10955 | }; | |
10956 | ||
10957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail; | |
10958 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10959 | { | |
10960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10961 | (arg1)->DestroyClippingRegion(); | |
10962 | ||
10963 | wxPyEndAllowThreads(__tstate); | |
10964 | if (PyErr_Occurred()) SWIG_fail; | |
10965 | } | |
10966 | Py_INCREF(Py_None); resultobj = Py_None; | |
10967 | return resultobj; | |
10968 | fail: | |
10969 | return NULL; | |
10970 | } | |
10971 | ||
10972 | ||
10973 | static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10974 | PyObject *resultobj; | |
10975 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
10976 | int *arg2 = (int *) 0 ; |
10977 | int *arg3 = (int *) 0 ; | |
10978 | int *arg4 = (int *) 0 ; | |
10979 | int *arg5 = (int *) 0 ; | |
10980 | int temp2 ; | |
10981 | int temp3 ; | |
10982 | int temp4 ; | |
10983 | int temp5 ; | |
d14a1e28 RD |
10984 | PyObject * obj0 = 0 ; |
10985 | char *kwnames[] = { | |
10986 | (char *) "self", NULL | |
10987 | }; | |
10988 | ||
10989 | arg2 = &temp2; | |
10990 | arg3 = &temp3; | |
10991 | arg4 = &temp4; | |
10992 | arg5 = &temp5; | |
10993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail; | |
10994 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10995 | { | |
10996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10997 | ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5); | |
10998 | ||
10999 | wxPyEndAllowThreads(__tstate); | |
11000 | if (PyErr_Occurred()) SWIG_fail; | |
11001 | } | |
11002 | Py_INCREF(Py_None); resultobj = Py_None; | |
11003 | { | |
11004 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
11005 | resultobj = t_output_helper(resultobj,o); | |
11006 | } | |
11007 | { | |
11008 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
11009 | resultobj = t_output_helper(resultobj,o); | |
11010 | } | |
11011 | { | |
11012 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
11013 | resultobj = t_output_helper(resultobj,o); | |
11014 | } | |
11015 | { | |
11016 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
11017 | resultobj = t_output_helper(resultobj,o); | |
11018 | } | |
11019 | return resultobj; | |
11020 | fail: | |
11021 | return NULL; | |
11022 | } | |
11023 | ||
11024 | ||
11025 | static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11026 | PyObject *resultobj; | |
11027 | wxDC *arg1 = (wxDC *) 0 ; | |
11028 | wxRect result; | |
11029 | PyObject * obj0 = 0 ; | |
11030 | char *kwnames[] = { | |
11031 | (char *) "self", NULL | |
11032 | }; | |
11033 | ||
11034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail; | |
11035 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11036 | { | |
11037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11038 | result = wxDC_GetClippingRect(arg1); | |
11039 | ||
11040 | wxPyEndAllowThreads(__tstate); | |
11041 | if (PyErr_Occurred()) SWIG_fail; | |
11042 | } | |
11043 | { | |
11044 | wxRect * resultptr; | |
11045 | resultptr = new wxRect((wxRect &) result); | |
11046 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
11047 | } | |
11048 | return resultobj; | |
11049 | fail: | |
11050 | return NULL; | |
11051 | } | |
11052 | ||
11053 | ||
11054 | static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11055 | PyObject *resultobj; | |
11056 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a | 11057 | int result; |
d14a1e28 RD |
11058 | PyObject * obj0 = 0 ; |
11059 | char *kwnames[] = { | |
11060 | (char *) "self", NULL | |
11061 | }; | |
11062 | ||
11063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail; | |
11064 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11065 | { | |
11066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 11067 | result = (int)((wxDC const *)arg1)->GetCharHeight(); |
d14a1e28 RD |
11068 | |
11069 | wxPyEndAllowThreads(__tstate); | |
11070 | if (PyErr_Occurred()) SWIG_fail; | |
11071 | } | |
11072 | resultobj = PyInt_FromLong((long)result); | |
11073 | return resultobj; | |
11074 | fail: | |
11075 | return NULL; | |
11076 | } | |
11077 | ||
11078 | ||
11079 | static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11080 | PyObject *resultobj; | |
11081 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a | 11082 | int result; |
d14a1e28 RD |
11083 | PyObject * obj0 = 0 ; |
11084 | char *kwnames[] = { | |
11085 | (char *) "self", NULL | |
11086 | }; | |
11087 | ||
11088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail; | |
11089 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11090 | { | |
11091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 11092 | result = (int)((wxDC const *)arg1)->GetCharWidth(); |
d14a1e28 RD |
11093 | |
11094 | wxPyEndAllowThreads(__tstate); | |
11095 | if (PyErr_Occurred()) SWIG_fail; | |
11096 | } | |
11097 | resultobj = PyInt_FromLong((long)result); | |
11098 | return resultobj; | |
11099 | fail: | |
11100 | return NULL; | |
11101 | } | |
11102 | ||
11103 | ||
11104 | static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11105 | PyObject *resultobj; | |
11106 | wxDC *arg1 = (wxDC *) 0 ; | |
11107 | wxString *arg2 = 0 ; | |
423f194a RD |
11108 | int *arg3 = (int *) 0 ; |
11109 | int *arg4 = (int *) 0 ; | |
11110 | bool temp2 = False ; | |
11111 | int temp3 ; | |
11112 | int temp4 ; | |
d14a1e28 RD |
11113 | PyObject * obj0 = 0 ; |
11114 | PyObject * obj1 = 0 ; | |
11115 | char *kwnames[] = { | |
11116 | (char *) "self",(char *) "string", NULL | |
11117 | }; | |
11118 | ||
11119 | arg3 = &temp3; | |
11120 | arg4 = &temp4; | |
11121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; | |
11122 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11123 | { | |
11124 | arg2 = wxString_in_helper(obj1); | |
11125 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11126 | temp2 = True; |
d14a1e28 RD |
11127 | } |
11128 | { | |
11129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11130 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
11131 | ||
11132 | wxPyEndAllowThreads(__tstate); | |
11133 | if (PyErr_Occurred()) SWIG_fail; | |
11134 | } | |
11135 | Py_INCREF(Py_None); resultobj = Py_None; | |
11136 | { | |
11137 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
11138 | resultobj = t_output_helper(resultobj,o); | |
11139 | } | |
11140 | { | |
11141 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
11142 | resultobj = t_output_helper(resultobj,o); | |
11143 | } | |
11144 | { | |
11145 | if (temp2) | |
11146 | delete arg2; | |
11147 | } | |
11148 | return resultobj; | |
11149 | fail: | |
11150 | { | |
11151 | if (temp2) | |
11152 | delete arg2; | |
11153 | } | |
11154 | return NULL; | |
11155 | } | |
11156 | ||
11157 | ||
11158 | static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11159 | PyObject *resultobj; | |
11160 | wxDC *arg1 = (wxDC *) 0 ; | |
11161 | wxString *arg2 = 0 ; | |
423f194a RD |
11162 | int *arg3 = (int *) 0 ; |
11163 | int *arg4 = (int *) 0 ; | |
11164 | int *arg5 = (int *) 0 ; | |
11165 | int *arg6 = (int *) 0 ; | |
d14a1e28 | 11166 | wxFont *arg7 = (wxFont *) NULL ; |
423f194a RD |
11167 | bool temp2 = False ; |
11168 | int temp3 ; | |
11169 | int temp4 ; | |
11170 | int temp5 ; | |
11171 | int temp6 ; | |
d14a1e28 RD |
11172 | PyObject * obj0 = 0 ; |
11173 | PyObject * obj1 = 0 ; | |
11174 | PyObject * obj2 = 0 ; | |
11175 | char *kwnames[] = { | |
11176 | (char *) "self",(char *) "string",(char *) "font", NULL | |
11177 | }; | |
11178 | ||
11179 | arg3 = &temp3; | |
11180 | arg4 = &temp4; | |
11181 | arg5 = &temp5; | |
11182 | arg6 = &temp6; | |
11183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11184 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11185 | { | |
11186 | arg2 = wxString_in_helper(obj1); | |
11187 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11188 | temp2 = True; |
d14a1e28 RD |
11189 | } |
11190 | if (obj2) { | |
11191 | if ((SWIG_ConvertPtr(obj2,(void **) &arg7, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11192 | } | |
11193 | { | |
11194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11195 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7); | |
11196 | ||
11197 | wxPyEndAllowThreads(__tstate); | |
11198 | if (PyErr_Occurred()) SWIG_fail; | |
11199 | } | |
11200 | Py_INCREF(Py_None); resultobj = Py_None; | |
11201 | { | |
11202 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
11203 | resultobj = t_output_helper(resultobj,o); | |
11204 | } | |
11205 | { | |
11206 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
11207 | resultobj = t_output_helper(resultobj,o); | |
11208 | } | |
11209 | { | |
11210 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
11211 | resultobj = t_output_helper(resultobj,o); | |
11212 | } | |
11213 | { | |
11214 | PyObject *o = PyInt_FromLong((long) (*arg6)); | |
11215 | resultobj = t_output_helper(resultobj,o); | |
11216 | } | |
11217 | { | |
11218 | if (temp2) | |
11219 | delete arg2; | |
11220 | } | |
11221 | return resultobj; | |
11222 | fail: | |
11223 | { | |
11224 | if (temp2) | |
11225 | delete arg2; | |
11226 | } | |
11227 | return NULL; | |
11228 | } | |
11229 | ||
11230 | ||
11231 | static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11232 | PyObject *resultobj; | |
11233 | wxDC *arg1 = (wxDC *) 0 ; | |
11234 | wxString *arg2 = 0 ; | |
423f194a RD |
11235 | int *arg3 = (int *) 0 ; |
11236 | int *arg4 = (int *) 0 ; | |
11237 | int *arg5 = (int *) 0 ; | |
d14a1e28 | 11238 | wxFont *arg6 = (wxFont *) NULL ; |
423f194a RD |
11239 | bool temp2 = False ; |
11240 | int temp3 ; | |
11241 | int temp4 ; | |
11242 | int temp5 ; | |
d14a1e28 RD |
11243 | PyObject * obj0 = 0 ; |
11244 | PyObject * obj1 = 0 ; | |
11245 | PyObject * obj2 = 0 ; | |
11246 | char *kwnames[] = { | |
11247 | (char *) "self",(char *) "text",(char *) "font", NULL | |
11248 | }; | |
11249 | ||
11250 | arg3 = &temp3; | |
11251 | arg4 = &temp4; | |
11252 | arg5 = &temp5; | |
11253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11254 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11255 | { | |
11256 | arg2 = wxString_in_helper(obj1); | |
11257 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11258 | temp2 = True; |
d14a1e28 RD |
11259 | } |
11260 | if (obj2) { | |
11261 | if ((SWIG_ConvertPtr(obj2,(void **) &arg6, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11262 | } | |
11263 | { | |
11264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11265 | (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
11266 | ||
11267 | wxPyEndAllowThreads(__tstate); | |
11268 | if (PyErr_Occurred()) SWIG_fail; | |
11269 | } | |
11270 | Py_INCREF(Py_None); resultobj = Py_None; | |
11271 | { | |
11272 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
11273 | resultobj = t_output_helper(resultobj,o); | |
11274 | } | |
11275 | { | |
11276 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
11277 | resultobj = t_output_helper(resultobj,o); | |
11278 | } | |
11279 | { | |
11280 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
11281 | resultobj = t_output_helper(resultobj,o); | |
11282 | } | |
11283 | { | |
11284 | if (temp2) | |
11285 | delete arg2; | |
11286 | } | |
11287 | return resultobj; | |
11288 | fail: | |
11289 | { | |
11290 | if (temp2) | |
11291 | delete arg2; | |
11292 | } | |
11293 | return NULL; | |
11294 | } | |
11295 | ||
11296 | ||
44127b65 RD |
11297 | static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
11298 | PyObject *resultobj; | |
11299 | wxDC *arg1 = (wxDC *) 0 ; | |
11300 | wxSize result; | |
11301 | PyObject * obj0 = 0 ; | |
11302 | char *kwnames[] = { | |
11303 | (char *) "self", NULL | |
11304 | }; | |
11305 | ||
11306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail; | |
11307 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11308 | { | |
11309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11310 | result = (arg1)->GetSize(); | |
11311 | ||
11312 | wxPyEndAllowThreads(__tstate); | |
11313 | if (PyErr_Occurred()) SWIG_fail; | |
11314 | } | |
11315 | { | |
11316 | wxSize * resultptr; | |
11317 | resultptr = new wxSize((wxSize &) result); | |
11318 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
11319 | } | |
11320 | return resultobj; | |
11321 | fail: | |
11322 | return NULL; | |
11323 | } | |
11324 | ||
11325 | ||
d14a1e28 RD |
11326 | static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
11327 | PyObject *resultobj; | |
11328 | wxDC *arg1 = (wxDC *) 0 ; | |
11329 | int *arg2 = (int *) 0 ; | |
11330 | int *arg3 = (int *) 0 ; | |
11331 | int temp2 ; | |
11332 | int temp3 ; | |
11333 | PyObject * obj0 = 0 ; | |
11334 | char *kwnames[] = { | |
11335 | (char *) "self", NULL | |
11336 | }; | |
11337 | ||
11338 | arg2 = &temp2; | |
11339 | arg3 = &temp3; | |
11340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail; | |
11341 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11342 | { | |
11343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11344 | (arg1)->GetSize(arg2,arg3); | |
11345 | ||
11346 | wxPyEndAllowThreads(__tstate); | |
11347 | if (PyErr_Occurred()) SWIG_fail; | |
11348 | } | |
11349 | Py_INCREF(Py_None); resultobj = Py_None; | |
11350 | { | |
11351 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
11352 | resultobj = t_output_helper(resultobj,o); | |
11353 | } | |
11354 | { | |
11355 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
11356 | resultobj = t_output_helper(resultobj,o); | |
11357 | } | |
11358 | return resultobj; | |
11359 | fail: | |
11360 | return NULL; | |
11361 | } | |
11362 | ||
11363 | ||
44127b65 | 11364 | static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11365 | PyObject *resultobj; |
11366 | wxDC *arg1 = (wxDC *) 0 ; | |
11367 | wxSize result; | |
11368 | PyObject * obj0 = 0 ; | |
11369 | char *kwnames[] = { | |
11370 | (char *) "self", NULL | |
11371 | }; | |
11372 | ||
44127b65 | 11373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
11374 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11375 | { | |
11376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 11377 | result = ((wxDC const *)arg1)->GetSizeMM(); |
d14a1e28 RD |
11378 | |
11379 | wxPyEndAllowThreads(__tstate); | |
11380 | if (PyErr_Occurred()) SWIG_fail; | |
11381 | } | |
11382 | { | |
11383 | wxSize * resultptr; | |
11384 | resultptr = new wxSize((wxSize &) result); | |
11385 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
11386 | } | |
11387 | return resultobj; | |
11388 | fail: | |
11389 | return NULL; | |
11390 | } | |
11391 | ||
11392 | ||
44127b65 | 11393 | static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11394 | PyObject *resultobj; |
11395 | wxDC *arg1 = (wxDC *) 0 ; | |
11396 | int *arg2 = (int *) 0 ; | |
11397 | int *arg3 = (int *) 0 ; | |
11398 | int temp2 ; | |
11399 | int temp3 ; | |
11400 | PyObject * obj0 = 0 ; | |
11401 | char *kwnames[] = { | |
11402 | (char *) "self", NULL | |
11403 | }; | |
11404 | ||
11405 | arg2 = &temp2; | |
11406 | arg3 = &temp3; | |
44127b65 | 11407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
11408 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11409 | { | |
11410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11411 | ((wxDC const *)arg1)->GetSizeMM(arg2,arg3); | |
11412 | ||
11413 | wxPyEndAllowThreads(__tstate); | |
11414 | if (PyErr_Occurred()) SWIG_fail; | |
11415 | } | |
11416 | Py_INCREF(Py_None); resultobj = Py_None; | |
11417 | { | |
11418 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
11419 | resultobj = t_output_helper(resultobj,o); | |
11420 | } | |
11421 | { | |
11422 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
11423 | resultobj = t_output_helper(resultobj,o); | |
11424 | } | |
11425 | return resultobj; | |
11426 | fail: | |
11427 | return NULL; | |
11428 | } | |
11429 | ||
11430 | ||
d14a1e28 RD |
11431 | static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) { |
11432 | PyObject *resultobj; | |
11433 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
11434 | int arg2 ; |
11435 | int result; | |
d14a1e28 RD |
11436 | PyObject * obj0 = 0 ; |
11437 | char *kwnames[] = { | |
11438 | (char *) "self",(char *) "x", NULL | |
11439 | }; | |
11440 | ||
11441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalX",kwnames,&obj0,&arg2)) goto fail; | |
11442 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11443 | { | |
11444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 11445 | result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2); |
d14a1e28 RD |
11446 | |
11447 | wxPyEndAllowThreads(__tstate); | |
11448 | if (PyErr_Occurred()) SWIG_fail; | |
11449 | } | |
11450 | resultobj = PyInt_FromLong((long)result); | |
11451 | return resultobj; | |
11452 | fail: | |
11453 | return NULL; | |
11454 | } | |
11455 | ||
11456 | ||
11457 | static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11458 | PyObject *resultobj; | |
11459 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
11460 | int arg2 ; |
11461 | int result; | |
d14a1e28 RD |
11462 | PyObject * obj0 = 0 ; |
11463 | char *kwnames[] = { | |
11464 | (char *) "self",(char *) "y", NULL | |
11465 | }; | |
11466 | ||
11467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalY",kwnames,&obj0,&arg2)) goto fail; | |
11468 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11469 | { | |
11470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 11471 | result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2); |
d14a1e28 RD |
11472 | |
11473 | wxPyEndAllowThreads(__tstate); | |
11474 | if (PyErr_Occurred()) SWIG_fail; | |
11475 | } | |
11476 | resultobj = PyInt_FromLong((long)result); | |
11477 | return resultobj; | |
11478 | fail: | |
11479 | return NULL; | |
11480 | } | |
11481 | ||
11482 | ||
11483 | static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11484 | PyObject *resultobj; | |
11485 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
11486 | int arg2 ; |
11487 | int result; | |
d14a1e28 RD |
11488 | PyObject * obj0 = 0 ; |
11489 | char *kwnames[] = { | |
11490 | (char *) "self",(char *) "x", NULL | |
11491 | }; | |
11492 | ||
11493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalXRel",kwnames,&obj0,&arg2)) goto fail; | |
11494 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11495 | { | |
11496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 11497 | result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2); |
d14a1e28 RD |
11498 | |
11499 | wxPyEndAllowThreads(__tstate); | |
11500 | if (PyErr_Occurred()) SWIG_fail; | |
11501 | } | |
11502 | resultobj = PyInt_FromLong((long)result); | |
11503 | return resultobj; | |
11504 | fail: | |
11505 | return NULL; | |
11506 | } | |
11507 | ||
11508 | ||
11509 | static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11510 | PyObject *resultobj; | |
11511 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
11512 | int arg2 ; |
11513 | int result; | |
d14a1e28 RD |
11514 | PyObject * obj0 = 0 ; |
11515 | char *kwnames[] = { | |
11516 | (char *) "self",(char *) "y", NULL | |
11517 | }; | |
11518 | ||
11519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalYRel",kwnames,&obj0,&arg2)) goto fail; | |
11520 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11521 | { | |
11522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 11523 | result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2); |
d14a1e28 RD |
11524 | |
11525 | wxPyEndAllowThreads(__tstate); | |
11526 | if (PyErr_Occurred()) SWIG_fail; | |
11527 | } | |
11528 | resultobj = PyInt_FromLong((long)result); | |
11529 | return resultobj; | |
11530 | fail: | |
11531 | return NULL; | |
11532 | } | |
11533 | ||
11534 | ||
11535 | static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11536 | PyObject *resultobj; | |
11537 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
11538 | int arg2 ; |
11539 | int result; | |
d14a1e28 RD |
11540 | PyObject * obj0 = 0 ; |
11541 | char *kwnames[] = { | |
11542 | (char *) "self",(char *) "x", NULL | |
11543 | }; | |
11544 | ||
11545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceX",kwnames,&obj0,&arg2)) goto fail; | |
11546 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11547 | { | |
11548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 11549 | result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2); |
d14a1e28 RD |
11550 | |
11551 | wxPyEndAllowThreads(__tstate); | |
11552 | if (PyErr_Occurred()) SWIG_fail; | |
11553 | } | |
11554 | resultobj = PyInt_FromLong((long)result); | |
11555 | return resultobj; | |
11556 | fail: | |
11557 | return NULL; | |
11558 | } | |
11559 | ||
11560 | ||
11561 | static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11562 | PyObject *resultobj; | |
11563 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
11564 | int arg2 ; |
11565 | int result; | |
d14a1e28 RD |
11566 | PyObject * obj0 = 0 ; |
11567 | char *kwnames[] = { | |
11568 | (char *) "self",(char *) "y", NULL | |
11569 | }; | |
11570 | ||
11571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceY",kwnames,&obj0,&arg2)) goto fail; | |
11572 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11573 | { | |
11574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 11575 | result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2); |
d14a1e28 RD |
11576 | |
11577 | wxPyEndAllowThreads(__tstate); | |
11578 | if (PyErr_Occurred()) SWIG_fail; | |
11579 | } | |
11580 | resultobj = PyInt_FromLong((long)result); | |
11581 | return resultobj; | |
11582 | fail: | |
11583 | return NULL; | |
11584 | } | |
11585 | ||
11586 | ||
11587 | static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11588 | PyObject *resultobj; | |
11589 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
11590 | int arg2 ; |
11591 | int result; | |
d14a1e28 RD |
11592 | PyObject * obj0 = 0 ; |
11593 | char *kwnames[] = { | |
11594 | (char *) "self",(char *) "x", NULL | |
11595 | }; | |
11596 | ||
11597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceXRel",kwnames,&obj0,&arg2)) goto fail; | |
11598 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11599 | { | |
11600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 11601 | result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2); |
d14a1e28 RD |
11602 | |
11603 | wxPyEndAllowThreads(__tstate); | |
11604 | if (PyErr_Occurred()) SWIG_fail; | |
11605 | } | |
11606 | resultobj = PyInt_FromLong((long)result); | |
11607 | return resultobj; | |
11608 | fail: | |
11609 | return NULL; | |
11610 | } | |
11611 | ||
11612 | ||
11613 | static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11614 | PyObject *resultobj; | |
11615 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
11616 | int arg2 ; |
11617 | int result; | |
d14a1e28 RD |
11618 | PyObject * obj0 = 0 ; |
11619 | char *kwnames[] = { | |
11620 | (char *) "self",(char *) "y", NULL | |
11621 | }; | |
11622 | ||
11623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceYRel",kwnames,&obj0,&arg2)) goto fail; | |
11624 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11625 | { | |
11626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 11627 | result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2); |
d14a1e28 RD |
11628 | |
11629 | wxPyEndAllowThreads(__tstate); | |
11630 | if (PyErr_Occurred()) SWIG_fail; | |
11631 | } | |
11632 | resultobj = PyInt_FromLong((long)result); | |
11633 | return resultobj; | |
11634 | fail: | |
11635 | return NULL; | |
11636 | } | |
11637 | ||
11638 | ||
11639 | static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11640 | PyObject *resultobj; | |
11641 | wxDC *arg1 = (wxDC *) 0 ; | |
11642 | bool result; | |
11643 | PyObject * obj0 = 0 ; | |
11644 | char *kwnames[] = { | |
11645 | (char *) "self", NULL | |
11646 | }; | |
11647 | ||
11648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail; | |
11649 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11650 | { | |
11651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11652 | result = (bool)((wxDC const *)arg1)->CanDrawBitmap(); | |
11653 | ||
11654 | wxPyEndAllowThreads(__tstate); | |
11655 | if (PyErr_Occurred()) SWIG_fail; | |
11656 | } | |
11657 | resultobj = PyInt_FromLong((long)result); | |
11658 | return resultobj; | |
11659 | fail: | |
11660 | return NULL; | |
11661 | } | |
11662 | ||
11663 | ||
11664 | static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11665 | PyObject *resultobj; | |
11666 | wxDC *arg1 = (wxDC *) 0 ; | |
11667 | bool result; | |
11668 | PyObject * obj0 = 0 ; | |
11669 | char *kwnames[] = { | |
11670 | (char *) "self", NULL | |
11671 | }; | |
11672 | ||
11673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail; | |
11674 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11675 | { | |
11676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11677 | result = (bool)((wxDC const *)arg1)->CanGetTextExtent(); | |
11678 | ||
11679 | wxPyEndAllowThreads(__tstate); | |
11680 | if (PyErr_Occurred()) SWIG_fail; | |
11681 | } | |
11682 | resultobj = PyInt_FromLong((long)result); | |
11683 | return resultobj; | |
11684 | fail: | |
11685 | return NULL; | |
11686 | } | |
11687 | ||
11688 | ||
11689 | static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11690 | PyObject *resultobj; | |
11691 | wxDC *arg1 = (wxDC *) 0 ; | |
11692 | int result; | |
11693 | PyObject * obj0 = 0 ; | |
11694 | char *kwnames[] = { | |
11695 | (char *) "self", NULL | |
11696 | }; | |
11697 | ||
11698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail; | |
11699 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11700 | { | |
11701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11702 | result = (int)((wxDC const *)arg1)->GetDepth(); | |
11703 | ||
11704 | wxPyEndAllowThreads(__tstate); | |
11705 | if (PyErr_Occurred()) SWIG_fail; | |
11706 | } | |
11707 | resultobj = PyInt_FromLong((long)result); | |
11708 | return resultobj; | |
11709 | fail: | |
11710 | return NULL; | |
11711 | } | |
11712 | ||
11713 | ||
11714 | static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11715 | PyObject *resultobj; | |
11716 | wxDC *arg1 = (wxDC *) 0 ; | |
11717 | wxSize result; | |
11718 | PyObject * obj0 = 0 ; | |
11719 | char *kwnames[] = { | |
11720 | (char *) "self", NULL | |
11721 | }; | |
11722 | ||
11723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail; | |
11724 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11725 | { | |
11726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11727 | result = ((wxDC const *)arg1)->GetPPI(); | |
11728 | ||
11729 | wxPyEndAllowThreads(__tstate); | |
11730 | if (PyErr_Occurred()) SWIG_fail; | |
11731 | } | |
11732 | { | |
11733 | wxSize * resultptr; | |
11734 | resultptr = new wxSize((wxSize &) result); | |
11735 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
11736 | } | |
11737 | return resultobj; | |
11738 | fail: | |
11739 | return NULL; | |
11740 | } | |
11741 | ||
11742 | ||
11743 | static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11744 | PyObject *resultobj; | |
11745 | wxDC *arg1 = (wxDC *) 0 ; | |
11746 | bool result; | |
11747 | PyObject * obj0 = 0 ; | |
11748 | char *kwnames[] = { | |
11749 | (char *) "self", NULL | |
11750 | }; | |
11751 | ||
11752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail; | |
11753 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11754 | { | |
11755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11756 | result = (bool)((wxDC const *)arg1)->Ok(); | |
11757 | ||
11758 | wxPyEndAllowThreads(__tstate); | |
11759 | if (PyErr_Occurred()) SWIG_fail; | |
11760 | } | |
11761 | resultobj = PyInt_FromLong((long)result); | |
11762 | return resultobj; | |
11763 | fail: | |
11764 | return NULL; | |
11765 | } | |
11766 | ||
11767 | ||
11768 | static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11769 | PyObject *resultobj; | |
11770 | wxDC *arg1 = (wxDC *) 0 ; | |
11771 | int result; | |
11772 | PyObject * obj0 = 0 ; | |
11773 | char *kwnames[] = { | |
11774 | (char *) "self", NULL | |
11775 | }; | |
11776 | ||
11777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail; | |
11778 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11779 | { | |
11780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11781 | result = (int)((wxDC const *)arg1)->GetBackgroundMode(); | |
11782 | ||
11783 | wxPyEndAllowThreads(__tstate); | |
11784 | if (PyErr_Occurred()) SWIG_fail; | |
11785 | } | |
11786 | resultobj = PyInt_FromLong((long)result); | |
11787 | return resultobj; | |
11788 | fail: | |
11789 | return NULL; | |
11790 | } | |
11791 | ||
11792 | ||
11793 | static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11794 | PyObject *resultobj; | |
11795 | wxDC *arg1 = (wxDC *) 0 ; | |
11796 | wxBrush *result; | |
11797 | PyObject * obj0 = 0 ; | |
11798 | char *kwnames[] = { | |
11799 | (char *) "self", NULL | |
11800 | }; | |
11801 | ||
11802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail; | |
11803 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11804 | { | |
11805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11806 | { | |
11807 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground(); | |
11808 | result = (wxBrush *) &_result_ref; | |
11809 | } | |
11810 | ||
11811 | wxPyEndAllowThreads(__tstate); | |
11812 | if (PyErr_Occurred()) SWIG_fail; | |
11813 | } | |
11814 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0); | |
11815 | return resultobj; | |
11816 | fail: | |
11817 | return NULL; | |
11818 | } | |
11819 | ||
11820 | ||
11821 | static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11822 | PyObject *resultobj; | |
11823 | wxDC *arg1 = (wxDC *) 0 ; | |
11824 | wxBrush *result; | |
11825 | PyObject * obj0 = 0 ; | |
11826 | char *kwnames[] = { | |
11827 | (char *) "self", NULL | |
11828 | }; | |
11829 | ||
11830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail; | |
11831 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11832 | { | |
11833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11834 | { | |
11835 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush(); | |
11836 | result = (wxBrush *) &_result_ref; | |
11837 | } | |
11838 | ||
11839 | wxPyEndAllowThreads(__tstate); | |
11840 | if (PyErr_Occurred()) SWIG_fail; | |
11841 | } | |
11842 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0); | |
11843 | return resultobj; | |
11844 | fail: | |
11845 | return NULL; | |
11846 | } | |
11847 | ||
11848 | ||
11849 | static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11850 | PyObject *resultobj; | |
11851 | wxDC *arg1 = (wxDC *) 0 ; | |
11852 | wxFont *result; | |
11853 | PyObject * obj0 = 0 ; | |
11854 | char *kwnames[] = { | |
11855 | (char *) "self", NULL | |
11856 | }; | |
11857 | ||
11858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail; | |
11859 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11860 | { | |
11861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11862 | { | |
11863 | wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont(); | |
11864 | result = (wxFont *) &_result_ref; | |
11865 | } | |
11866 | ||
11867 | wxPyEndAllowThreads(__tstate); | |
11868 | if (PyErr_Occurred()) SWIG_fail; | |
11869 | } | |
11870 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0); | |
11871 | return resultobj; | |
11872 | fail: | |
11873 | return NULL; | |
11874 | } | |
11875 | ||
11876 | ||
11877 | static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11878 | PyObject *resultobj; | |
11879 | wxDC *arg1 = (wxDC *) 0 ; | |
11880 | wxPen *result; | |
11881 | PyObject * obj0 = 0 ; | |
11882 | char *kwnames[] = { | |
11883 | (char *) "self", NULL | |
11884 | }; | |
11885 | ||
11886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail; | |
11887 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11888 | { | |
11889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11890 | { | |
11891 | wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen(); | |
11892 | result = (wxPen *) &_result_ref; | |
11893 | } | |
11894 | ||
11895 | wxPyEndAllowThreads(__tstate); | |
11896 | if (PyErr_Occurred()) SWIG_fail; | |
11897 | } | |
11898 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0); | |
11899 | return resultobj; | |
11900 | fail: | |
11901 | return NULL; | |
11902 | } | |
11903 | ||
11904 | ||
11905 | static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11906 | PyObject *resultobj; | |
11907 | wxDC *arg1 = (wxDC *) 0 ; | |
11908 | wxColour *result; | |
11909 | PyObject * obj0 = 0 ; | |
11910 | char *kwnames[] = { | |
11911 | (char *) "self", NULL | |
11912 | }; | |
11913 | ||
11914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail; | |
11915 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11916 | { | |
11917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11918 | { | |
11919 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground(); | |
11920 | result = (wxColour *) &_result_ref; | |
11921 | } | |
11922 | ||
11923 | wxPyEndAllowThreads(__tstate); | |
11924 | if (PyErr_Occurred()) SWIG_fail; | |
11925 | } | |
11926 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0); | |
11927 | return resultobj; | |
11928 | fail: | |
11929 | return NULL; | |
11930 | } | |
11931 | ||
11932 | ||
11933 | static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11934 | PyObject *resultobj; | |
11935 | wxDC *arg1 = (wxDC *) 0 ; | |
11936 | wxColour *result; | |
11937 | PyObject * obj0 = 0 ; | |
11938 | char *kwnames[] = { | |
11939 | (char *) "self", NULL | |
11940 | }; | |
11941 | ||
11942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail; | |
11943 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11944 | { | |
11945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11946 | { | |
11947 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground(); | |
11948 | result = (wxColour *) &_result_ref; | |
11949 | } | |
11950 | ||
11951 | wxPyEndAllowThreads(__tstate); | |
11952 | if (PyErr_Occurred()) SWIG_fail; | |
11953 | } | |
11954 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0); | |
11955 | return resultobj; | |
11956 | fail: | |
11957 | return NULL; | |
11958 | } | |
11959 | ||
11960 | ||
11961 | static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11962 | PyObject *resultobj; | |
11963 | wxDC *arg1 = (wxDC *) 0 ; | |
11964 | wxColour *arg2 = 0 ; | |
11965 | wxColour temp2 ; | |
11966 | PyObject * obj0 = 0 ; | |
11967 | PyObject * obj1 = 0 ; | |
11968 | char *kwnames[] = { | |
11969 | (char *) "self",(char *) "colour", NULL | |
11970 | }; | |
11971 | ||
11972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail; | |
11973 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11974 | { | |
11975 | arg2 = &temp2; | |
11976 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
11977 | } | |
11978 | { | |
11979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11980 | (arg1)->SetTextForeground((wxColour const &)*arg2); | |
11981 | ||
11982 | wxPyEndAllowThreads(__tstate); | |
11983 | if (PyErr_Occurred()) SWIG_fail; | |
11984 | } | |
11985 | Py_INCREF(Py_None); resultobj = Py_None; | |
11986 | return resultobj; | |
11987 | fail: | |
11988 | return NULL; | |
11989 | } | |
11990 | ||
11991 | ||
11992 | static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11993 | PyObject *resultobj; | |
11994 | wxDC *arg1 = (wxDC *) 0 ; | |
11995 | wxColour *arg2 = 0 ; | |
11996 | wxColour temp2 ; | |
11997 | PyObject * obj0 = 0 ; | |
11998 | PyObject * obj1 = 0 ; | |
11999 | char *kwnames[] = { | |
12000 | (char *) "self",(char *) "colour", NULL | |
12001 | }; | |
12002 | ||
12003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail; | |
12004 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12005 | { | |
12006 | arg2 = &temp2; | |
12007 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
12008 | } | |
12009 | { | |
12010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12011 | (arg1)->SetTextBackground((wxColour const &)*arg2); | |
12012 | ||
12013 | wxPyEndAllowThreads(__tstate); | |
12014 | if (PyErr_Occurred()) SWIG_fail; | |
12015 | } | |
12016 | Py_INCREF(Py_None); resultobj = Py_None; | |
12017 | return resultobj; | |
12018 | fail: | |
12019 | return NULL; | |
12020 | } | |
12021 | ||
12022 | ||
12023 | static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12024 | PyObject *resultobj; | |
12025 | wxDC *arg1 = (wxDC *) 0 ; | |
12026 | int result; | |
12027 | PyObject * obj0 = 0 ; | |
12028 | char *kwnames[] = { | |
12029 | (char *) "self", NULL | |
12030 | }; | |
12031 | ||
12032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail; | |
12033 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12034 | { | |
12035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12036 | result = (int)((wxDC const *)arg1)->GetMapMode(); | |
12037 | ||
12038 | wxPyEndAllowThreads(__tstate); | |
12039 | if (PyErr_Occurred()) SWIG_fail; | |
12040 | } | |
12041 | resultobj = PyInt_FromLong((long)result); | |
12042 | return resultobj; | |
12043 | fail: | |
12044 | return NULL; | |
12045 | } | |
12046 | ||
12047 | ||
12048 | static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12049 | PyObject *resultobj; | |
12050 | wxDC *arg1 = (wxDC *) 0 ; | |
12051 | int arg2 ; | |
12052 | PyObject * obj0 = 0 ; | |
12053 | char *kwnames[] = { | |
12054 | (char *) "self",(char *) "mode", NULL | |
12055 | }; | |
12056 | ||
12057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_SetMapMode",kwnames,&obj0,&arg2)) goto fail; | |
12058 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12059 | { | |
12060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12061 | (arg1)->SetMapMode(arg2); | |
12062 | ||
12063 | wxPyEndAllowThreads(__tstate); | |
12064 | if (PyErr_Occurred()) SWIG_fail; | |
12065 | } | |
12066 | Py_INCREF(Py_None); resultobj = Py_None; | |
12067 | return resultobj; | |
12068 | fail: | |
12069 | return NULL; | |
12070 | } | |
12071 | ||
12072 | ||
12073 | static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12074 | PyObject *resultobj; | |
12075 | wxDC *arg1 = (wxDC *) 0 ; | |
12076 | double *arg2 = (double *) 0 ; | |
12077 | double *arg3 = (double *) 0 ; | |
12078 | double temp2 ; | |
12079 | double temp3 ; | |
12080 | PyObject * obj0 = 0 ; | |
12081 | char *kwnames[] = { | |
12082 | (char *) "self", NULL | |
12083 | }; | |
12084 | ||
12085 | arg2 = &temp2; | |
12086 | arg3 = &temp3; | |
12087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail; | |
12088 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12089 | { | |
12090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12091 | ((wxDC const *)arg1)->GetUserScale(arg2,arg3); | |
12092 | ||
12093 | wxPyEndAllowThreads(__tstate); | |
12094 | if (PyErr_Occurred()) SWIG_fail; | |
12095 | } | |
12096 | Py_INCREF(Py_None); resultobj = Py_None; | |
12097 | { | |
12098 | PyObject *o = PyFloat_FromDouble((double) (*arg2)); | |
12099 | resultobj = t_output_helper(resultobj,o); | |
12100 | } | |
12101 | { | |
12102 | PyObject *o = PyFloat_FromDouble((double) (*arg3)); | |
12103 | resultobj = t_output_helper(resultobj,o); | |
12104 | } | |
12105 | return resultobj; | |
12106 | fail: | |
12107 | return NULL; | |
12108 | } | |
12109 | ||
12110 | ||
12111 | static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12112 | PyObject *resultobj; | |
12113 | wxDC *arg1 = (wxDC *) 0 ; | |
12114 | double arg2 ; | |
12115 | double arg3 ; | |
12116 | PyObject * obj0 = 0 ; | |
12117 | char *kwnames[] = { | |
12118 | (char *) "self",(char *) "x",(char *) "y", NULL | |
12119 | }; | |
12120 | ||
12121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:DC_SetUserScale",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
12122 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12123 | { | |
12124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12125 | (arg1)->SetUserScale(arg2,arg3); | |
12126 | ||
12127 | wxPyEndAllowThreads(__tstate); | |
12128 | if (PyErr_Occurred()) SWIG_fail; | |
12129 | } | |
12130 | Py_INCREF(Py_None); resultobj = Py_None; | |
12131 | return resultobj; | |
12132 | fail: | |
12133 | return NULL; | |
12134 | } | |
12135 | ||
12136 | ||
12137 | static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12138 | PyObject *resultobj; | |
12139 | wxDC *arg1 = (wxDC *) 0 ; | |
12140 | double *arg2 = (double *) 0 ; | |
12141 | double *arg3 = (double *) 0 ; | |
12142 | double temp2 ; | |
12143 | double temp3 ; | |
12144 | PyObject * obj0 = 0 ; | |
12145 | char *kwnames[] = { | |
12146 | (char *) "self", NULL | |
12147 | }; | |
12148 | ||
12149 | arg2 = &temp2; | |
12150 | arg3 = &temp3; | |
12151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail; | |
12152 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12153 | { | |
12154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12155 | (arg1)->GetLogicalScale(arg2,arg3); | |
12156 | ||
12157 | wxPyEndAllowThreads(__tstate); | |
12158 | if (PyErr_Occurred()) SWIG_fail; | |
12159 | } | |
12160 | Py_INCREF(Py_None); resultobj = Py_None; | |
12161 | { | |
12162 | PyObject *o = PyFloat_FromDouble((double) (*arg2)); | |
12163 | resultobj = t_output_helper(resultobj,o); | |
12164 | } | |
12165 | { | |
12166 | PyObject *o = PyFloat_FromDouble((double) (*arg3)); | |
12167 | resultobj = t_output_helper(resultobj,o); | |
12168 | } | |
12169 | return resultobj; | |
12170 | fail: | |
12171 | return NULL; | |
12172 | } | |
12173 | ||
12174 | ||
12175 | static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12176 | PyObject *resultobj; | |
12177 | wxDC *arg1 = (wxDC *) 0 ; | |
12178 | double arg2 ; | |
12179 | double arg3 ; | |
12180 | PyObject * obj0 = 0 ; | |
12181 | char *kwnames[] = { | |
12182 | (char *) "self",(char *) "x",(char *) "y", NULL | |
12183 | }; | |
12184 | ||
12185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:DC_SetLogicalScale",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
12186 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12187 | { | |
12188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12189 | (arg1)->SetLogicalScale(arg2,arg3); | |
12190 | ||
12191 | wxPyEndAllowThreads(__tstate); | |
12192 | if (PyErr_Occurred()) SWIG_fail; | |
12193 | } | |
12194 | Py_INCREF(Py_None); resultobj = Py_None; | |
12195 | return resultobj; | |
12196 | fail: | |
12197 | return NULL; | |
12198 | } | |
12199 | ||
12200 | ||
44127b65 | 12201 | static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12202 | PyObject *resultobj; |
12203 | wxDC *arg1 = (wxDC *) 0 ; | |
44127b65 | 12204 | wxPoint result; |
d14a1e28 RD |
12205 | PyObject * obj0 = 0 ; |
12206 | char *kwnames[] = { | |
12207 | (char *) "self", NULL | |
12208 | }; | |
12209 | ||
44127b65 | 12210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
12211 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
12212 | { | |
12213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 12214 | result = ((wxDC const *)arg1)->GetLogicalOrigin(); |
d14a1e28 RD |
12215 | |
12216 | wxPyEndAllowThreads(__tstate); | |
12217 | if (PyErr_Occurred()) SWIG_fail; | |
12218 | } | |
d14a1e28 | 12219 | { |
44127b65 RD |
12220 | wxPoint * resultptr; |
12221 | resultptr = new wxPoint((wxPoint &) result); | |
12222 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
d14a1e28 RD |
12223 | } |
12224 | return resultobj; | |
12225 | fail: | |
12226 | return NULL; | |
12227 | } | |
12228 | ||
12229 | ||
44127b65 | 12230 | static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12231 | PyObject *resultobj; |
12232 | wxDC *arg1 = (wxDC *) 0 ; | |
44127b65 RD |
12233 | int *arg2 = (int *) 0 ; |
12234 | int *arg3 = (int *) 0 ; | |
12235 | int temp2 ; | |
12236 | int temp3 ; | |
d14a1e28 RD |
12237 | PyObject * obj0 = 0 ; |
12238 | char *kwnames[] = { | |
12239 | (char *) "self", NULL | |
12240 | }; | |
12241 | ||
44127b65 RD |
12242 | arg2 = &temp2; |
12243 | arg3 = &temp3; | |
12244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail; | |
d14a1e28 RD |
12245 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
12246 | { | |
12247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 12248 | ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3); |
d14a1e28 RD |
12249 | |
12250 | wxPyEndAllowThreads(__tstate); | |
12251 | if (PyErr_Occurred()) SWIG_fail; | |
12252 | } | |
44127b65 | 12253 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 | 12254 | { |
44127b65 RD |
12255 | PyObject *o = PyInt_FromLong((long) (*arg2)); |
12256 | resultobj = t_output_helper(resultobj,o); | |
12257 | } | |
12258 | { | |
12259 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12260 | resultobj = t_output_helper(resultobj,o); | |
d14a1e28 RD |
12261 | } |
12262 | return resultobj; | |
12263 | fail: | |
12264 | return NULL; | |
12265 | } | |
12266 | ||
12267 | ||
12268 | static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12269 | PyObject *resultobj; | |
12270 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
12271 | int arg2 ; |
12272 | int arg3 ; | |
d14a1e28 RD |
12273 | PyObject * obj0 = 0 ; |
12274 | char *kwnames[] = { | |
12275 | (char *) "self",(char *) "x",(char *) "y", NULL | |
12276 | }; | |
12277 | ||
12278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_SetLogicalOrigin",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
12279 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12280 | { | |
12281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12282 | (arg1)->SetLogicalOrigin(arg2,arg3); | |
12283 | ||
12284 | wxPyEndAllowThreads(__tstate); | |
12285 | if (PyErr_Occurred()) SWIG_fail; | |
12286 | } | |
12287 | Py_INCREF(Py_None); resultobj = Py_None; | |
12288 | return resultobj; | |
12289 | fail: | |
12290 | return NULL; | |
12291 | } | |
12292 | ||
12293 | ||
44127b65 | 12294 | static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12295 | PyObject *resultobj; |
12296 | wxDC *arg1 = (wxDC *) 0 ; | |
44127b65 | 12297 | wxPoint result; |
d14a1e28 RD |
12298 | PyObject * obj0 = 0 ; |
12299 | char *kwnames[] = { | |
12300 | (char *) "self", NULL | |
12301 | }; | |
12302 | ||
44127b65 | 12303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
12304 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
12305 | { | |
12306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 12307 | result = ((wxDC const *)arg1)->GetDeviceOrigin(); |
d14a1e28 RD |
12308 | |
12309 | wxPyEndAllowThreads(__tstate); | |
12310 | if (PyErr_Occurred()) SWIG_fail; | |
12311 | } | |
d14a1e28 | 12312 | { |
44127b65 RD |
12313 | wxPoint * resultptr; |
12314 | resultptr = new wxPoint((wxPoint &) result); | |
12315 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
d14a1e28 RD |
12316 | } |
12317 | return resultobj; | |
12318 | fail: | |
12319 | return NULL; | |
12320 | } | |
12321 | ||
12322 | ||
44127b65 | 12323 | static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12324 | PyObject *resultobj; |
12325 | wxDC *arg1 = (wxDC *) 0 ; | |
44127b65 RD |
12326 | int *arg2 = (int *) 0 ; |
12327 | int *arg3 = (int *) 0 ; | |
12328 | int temp2 ; | |
12329 | int temp3 ; | |
d14a1e28 RD |
12330 | PyObject * obj0 = 0 ; |
12331 | char *kwnames[] = { | |
12332 | (char *) "self", NULL | |
12333 | }; | |
12334 | ||
44127b65 RD |
12335 | arg2 = &temp2; |
12336 | arg3 = &temp3; | |
12337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail; | |
d14a1e28 RD |
12338 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
12339 | { | |
12340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 12341 | ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3); |
d14a1e28 RD |
12342 | |
12343 | wxPyEndAllowThreads(__tstate); | |
12344 | if (PyErr_Occurred()) SWIG_fail; | |
12345 | } | |
44127b65 | 12346 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 | 12347 | { |
44127b65 RD |
12348 | PyObject *o = PyInt_FromLong((long) (*arg2)); |
12349 | resultobj = t_output_helper(resultobj,o); | |
12350 | } | |
12351 | { | |
12352 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12353 | resultobj = t_output_helper(resultobj,o); | |
d14a1e28 RD |
12354 | } |
12355 | return resultobj; | |
12356 | fail: | |
12357 | return NULL; | |
12358 | } | |
12359 | ||
12360 | ||
12361 | static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12362 | PyObject *resultobj; | |
12363 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
12364 | int arg2 ; |
12365 | int arg3 ; | |
d14a1e28 RD |
12366 | PyObject * obj0 = 0 ; |
12367 | char *kwnames[] = { | |
12368 | (char *) "self",(char *) "x",(char *) "y", NULL | |
12369 | }; | |
12370 | ||
12371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_SetDeviceOrigin",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
12372 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12373 | { | |
12374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12375 | (arg1)->SetDeviceOrigin(arg2,arg3); | |
12376 | ||
12377 | wxPyEndAllowThreads(__tstate); | |
12378 | if (PyErr_Occurred()) SWIG_fail; | |
12379 | } | |
12380 | Py_INCREF(Py_None); resultobj = Py_None; | |
12381 | return resultobj; | |
12382 | fail: | |
12383 | return NULL; | |
12384 | } | |
12385 | ||
12386 | ||
12387 | static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12388 | PyObject *resultobj; | |
12389 | wxDC *arg1 = (wxDC *) 0 ; | |
12390 | bool arg2 ; | |
12391 | bool arg3 ; | |
12392 | PyObject * obj0 = 0 ; | |
12393 | PyObject * obj1 = 0 ; | |
12394 | PyObject * obj2 = 0 ; | |
12395 | char *kwnames[] = { | |
12396 | (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL | |
12397 | }; | |
12398 | ||
12399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12400 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12401 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
12402 | if (PyErr_Occurred()) SWIG_fail; | |
12403 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
12404 | if (PyErr_Occurred()) SWIG_fail; | |
12405 | { | |
12406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12407 | (arg1)->SetAxisOrientation(arg2,arg3); | |
12408 | ||
12409 | wxPyEndAllowThreads(__tstate); | |
12410 | if (PyErr_Occurred()) SWIG_fail; | |
12411 | } | |
12412 | Py_INCREF(Py_None); resultobj = Py_None; | |
12413 | return resultobj; | |
12414 | fail: | |
12415 | return NULL; | |
12416 | } | |
12417 | ||
12418 | ||
12419 | static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12420 | PyObject *resultobj; | |
12421 | wxDC *arg1 = (wxDC *) 0 ; | |
12422 | int result; | |
12423 | PyObject * obj0 = 0 ; | |
12424 | char *kwnames[] = { | |
12425 | (char *) "self", NULL | |
12426 | }; | |
12427 | ||
12428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail; | |
12429 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12430 | { | |
12431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12432 | result = (int)((wxDC const *)arg1)->GetLogicalFunction(); | |
12433 | ||
12434 | wxPyEndAllowThreads(__tstate); | |
12435 | if (PyErr_Occurred()) SWIG_fail; | |
12436 | } | |
12437 | resultobj = PyInt_FromLong((long)result); | |
12438 | return resultobj; | |
12439 | fail: | |
12440 | return NULL; | |
12441 | } | |
12442 | ||
12443 | ||
12444 | static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12445 | PyObject *resultobj; | |
12446 | wxDC *arg1 = (wxDC *) 0 ; | |
12447 | int arg2 ; | |
12448 | PyObject * obj0 = 0 ; | |
12449 | char *kwnames[] = { | |
12450 | (char *) "self",(char *) "function", NULL | |
12451 | }; | |
12452 | ||
12453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_SetLogicalFunction",kwnames,&obj0,&arg2)) goto fail; | |
12454 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12455 | { | |
12456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12457 | (arg1)->SetLogicalFunction(arg2); | |
12458 | ||
12459 | wxPyEndAllowThreads(__tstate); | |
12460 | if (PyErr_Occurred()) SWIG_fail; | |
12461 | } | |
12462 | Py_INCREF(Py_None); resultobj = Py_None; | |
12463 | return resultobj; | |
12464 | fail: | |
12465 | return NULL; | |
12466 | } | |
12467 | ||
12468 | ||
12469 | static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12470 | PyObject *resultobj; | |
12471 | wxDC *arg1 = (wxDC *) 0 ; | |
12472 | bool arg2 ; | |
12473 | PyObject * obj0 = 0 ; | |
12474 | PyObject * obj1 = 0 ; | |
12475 | char *kwnames[] = { | |
12476 | (char *) "self",(char *) "opt", NULL | |
12477 | }; | |
12478 | ||
12479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail; | |
12480 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12481 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
12482 | if (PyErr_Occurred()) SWIG_fail; | |
12483 | { | |
12484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12485 | (arg1)->SetOptimization(arg2); | |
12486 | ||
12487 | wxPyEndAllowThreads(__tstate); | |
12488 | if (PyErr_Occurred()) SWIG_fail; | |
12489 | } | |
12490 | Py_INCREF(Py_None); resultobj = Py_None; | |
12491 | return resultobj; | |
12492 | fail: | |
12493 | return NULL; | |
12494 | } | |
12495 | ||
12496 | ||
12497 | static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12498 | PyObject *resultobj; | |
12499 | wxDC *arg1 = (wxDC *) 0 ; | |
12500 | bool result; | |
12501 | PyObject * obj0 = 0 ; | |
12502 | char *kwnames[] = { | |
12503 | (char *) "self", NULL | |
12504 | }; | |
12505 | ||
12506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail; | |
12507 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12508 | { | |
12509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12510 | result = (bool)(arg1)->GetOptimization(); | |
12511 | ||
12512 | wxPyEndAllowThreads(__tstate); | |
12513 | if (PyErr_Occurred()) SWIG_fail; | |
12514 | } | |
12515 | resultobj = PyInt_FromLong((long)result); | |
12516 | return resultobj; | |
12517 | fail: | |
12518 | return NULL; | |
12519 | } | |
12520 | ||
12521 | ||
12522 | static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12523 | PyObject *resultobj; | |
12524 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
12525 | int arg2 ; |
12526 | int arg3 ; | |
d14a1e28 RD |
12527 | PyObject * obj0 = 0 ; |
12528 | char *kwnames[] = { | |
12529 | (char *) "self",(char *) "x",(char *) "y", NULL | |
12530 | }; | |
12531 | ||
12532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_CalcBoundingBox",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
12533 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12534 | { | |
12535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12536 | (arg1)->CalcBoundingBox(arg2,arg3); | |
12537 | ||
12538 | wxPyEndAllowThreads(__tstate); | |
12539 | if (PyErr_Occurred()) SWIG_fail; | |
12540 | } | |
12541 | Py_INCREF(Py_None); resultobj = Py_None; | |
12542 | return resultobj; | |
12543 | fail: | |
12544 | return NULL; | |
12545 | } | |
12546 | ||
12547 | ||
12548 | static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12549 | PyObject *resultobj; | |
12550 | wxDC *arg1 = (wxDC *) 0 ; | |
12551 | PyObject * obj0 = 0 ; | |
12552 | char *kwnames[] = { | |
12553 | (char *) "self", NULL | |
12554 | }; | |
12555 | ||
12556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail; | |
12557 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12558 | { | |
12559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12560 | (arg1)->ResetBoundingBox(); | |
12561 | ||
12562 | wxPyEndAllowThreads(__tstate); | |
12563 | if (PyErr_Occurred()) SWIG_fail; | |
12564 | } | |
12565 | Py_INCREF(Py_None); resultobj = Py_None; | |
12566 | return resultobj; | |
12567 | fail: | |
12568 | return NULL; | |
12569 | } | |
12570 | ||
12571 | ||
12572 | static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12573 | PyObject *resultobj; | |
12574 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a | 12575 | int result; |
d14a1e28 RD |
12576 | PyObject * obj0 = 0 ; |
12577 | char *kwnames[] = { | |
12578 | (char *) "self", NULL | |
12579 | }; | |
12580 | ||
12581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail; | |
12582 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12583 | { | |
12584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 12585 | result = (int)((wxDC const *)arg1)->MinX(); |
d14a1e28 RD |
12586 | |
12587 | wxPyEndAllowThreads(__tstate); | |
12588 | if (PyErr_Occurred()) SWIG_fail; | |
12589 | } | |
12590 | resultobj = PyInt_FromLong((long)result); | |
12591 | return resultobj; | |
12592 | fail: | |
12593 | return NULL; | |
12594 | } | |
12595 | ||
12596 | ||
12597 | static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12598 | PyObject *resultobj; | |
12599 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a | 12600 | int result; |
d14a1e28 RD |
12601 | PyObject * obj0 = 0 ; |
12602 | char *kwnames[] = { | |
12603 | (char *) "self", NULL | |
12604 | }; | |
12605 | ||
12606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail; | |
12607 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12608 | { | |
12609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 12610 | result = (int)((wxDC const *)arg1)->MaxX(); |
d14a1e28 RD |
12611 | |
12612 | wxPyEndAllowThreads(__tstate); | |
12613 | if (PyErr_Occurred()) SWIG_fail; | |
12614 | } | |
12615 | resultobj = PyInt_FromLong((long)result); | |
12616 | return resultobj; | |
12617 | fail: | |
12618 | return NULL; | |
12619 | } | |
12620 | ||
12621 | ||
12622 | static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12623 | PyObject *resultobj; | |
12624 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a | 12625 | int result; |
d14a1e28 RD |
12626 | PyObject * obj0 = 0 ; |
12627 | char *kwnames[] = { | |
12628 | (char *) "self", NULL | |
12629 | }; | |
12630 | ||
12631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail; | |
12632 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12633 | { | |
12634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 12635 | result = (int)((wxDC const *)arg1)->MinY(); |
d14a1e28 RD |
12636 | |
12637 | wxPyEndAllowThreads(__tstate); | |
12638 | if (PyErr_Occurred()) SWIG_fail; | |
12639 | } | |
12640 | resultobj = PyInt_FromLong((long)result); | |
12641 | return resultobj; | |
12642 | fail: | |
12643 | return NULL; | |
12644 | } | |
12645 | ||
12646 | ||
12647 | static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12648 | PyObject *resultobj; | |
12649 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a | 12650 | int result; |
d14a1e28 RD |
12651 | PyObject * obj0 = 0 ; |
12652 | char *kwnames[] = { | |
12653 | (char *) "self", NULL | |
12654 | }; | |
12655 | ||
12656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail; | |
12657 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12658 | { | |
12659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 12660 | result = (int)((wxDC const *)arg1)->MaxY(); |
d14a1e28 RD |
12661 | |
12662 | wxPyEndAllowThreads(__tstate); | |
12663 | if (PyErr_Occurred()) SWIG_fail; | |
12664 | } | |
12665 | resultobj = PyInt_FromLong((long)result); | |
12666 | return resultobj; | |
12667 | fail: | |
12668 | return NULL; | |
12669 | } | |
12670 | ||
12671 | ||
12672 | static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12673 | PyObject *resultobj; | |
12674 | wxDC *arg1 = (wxDC *) 0 ; | |
12675 | int *arg2 = (int *) 0 ; | |
12676 | int *arg3 = (int *) 0 ; | |
12677 | int *arg4 = (int *) 0 ; | |
12678 | int *arg5 = (int *) 0 ; | |
12679 | int temp2 ; | |
12680 | int temp3 ; | |
12681 | int temp4 ; | |
12682 | int temp5 ; | |
12683 | PyObject * obj0 = 0 ; | |
12684 | char *kwnames[] = { | |
12685 | (char *) "self", NULL | |
12686 | }; | |
12687 | ||
12688 | arg2 = &temp2; | |
12689 | arg3 = &temp3; | |
12690 | arg4 = &temp4; | |
12691 | arg5 = &temp5; | |
12692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail; | |
12693 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12694 | { | |
12695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12696 | wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5); | |
12697 | ||
12698 | wxPyEndAllowThreads(__tstate); | |
12699 | if (PyErr_Occurred()) SWIG_fail; | |
12700 | } | |
12701 | Py_INCREF(Py_None); resultobj = Py_None; | |
12702 | { | |
12703 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
12704 | resultobj = t_output_helper(resultobj,o); | |
12705 | } | |
12706 | { | |
12707 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12708 | resultobj = t_output_helper(resultobj,o); | |
12709 | } | |
12710 | { | |
12711 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
12712 | resultobj = t_output_helper(resultobj,o); | |
12713 | } | |
12714 | { | |
12715 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
12716 | resultobj = t_output_helper(resultobj,o); | |
12717 | } | |
12718 | return resultobj; | |
12719 | fail: | |
12720 | return NULL; | |
12721 | } | |
12722 | ||
12723 | ||
12724 | static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12725 | PyObject *resultobj; | |
12726 | wxDC *arg1 = (wxDC *) 0 ; | |
12727 | PyObject *arg2 = (PyObject *) 0 ; | |
12728 | PyObject *arg3 = (PyObject *) 0 ; | |
12729 | PyObject *arg4 = (PyObject *) 0 ; | |
12730 | PyObject *result; | |
12731 | PyObject * obj0 = 0 ; | |
12732 | PyObject * obj1 = 0 ; | |
12733 | PyObject * obj2 = 0 ; | |
12734 | PyObject * obj3 = 0 ; | |
12735 | char *kwnames[] = { | |
12736 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
12737 | }; | |
12738 | ||
12739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12740 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12741 | arg2 = obj1; | |
12742 | arg3 = obj2; | |
12743 | arg4 = obj3; | |
12744 | { | |
12745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12746 | result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4); | |
12747 | ||
12748 | wxPyEndAllowThreads(__tstate); | |
12749 | if (PyErr_Occurred()) SWIG_fail; | |
12750 | } | |
12751 | resultobj = result; | |
12752 | return resultobj; | |
12753 | fail: | |
12754 | return NULL; | |
12755 | } | |
12756 | ||
12757 | ||
12758 | static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12759 | PyObject *resultobj; | |
12760 | wxDC *arg1 = (wxDC *) 0 ; | |
12761 | PyObject *arg2 = (PyObject *) 0 ; | |
12762 | PyObject *arg3 = (PyObject *) 0 ; | |
12763 | PyObject *arg4 = (PyObject *) 0 ; | |
12764 | PyObject *result; | |
12765 | PyObject * obj0 = 0 ; | |
12766 | PyObject * obj1 = 0 ; | |
12767 | PyObject * obj2 = 0 ; | |
12768 | PyObject * obj3 = 0 ; | |
12769 | char *kwnames[] = { | |
12770 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
12771 | }; | |
12772 | ||
12773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12774 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12775 | arg2 = obj1; | |
12776 | arg3 = obj2; | |
12777 | arg4 = obj3; | |
12778 | { | |
12779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12780 | result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4); | |
12781 | ||
12782 | wxPyEndAllowThreads(__tstate); | |
12783 | if (PyErr_Occurred()) SWIG_fail; | |
12784 | } | |
12785 | resultobj = result; | |
12786 | return resultobj; | |
12787 | fail: | |
12788 | return NULL; | |
12789 | } | |
12790 | ||
12791 | ||
12792 | static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12793 | PyObject *resultobj; | |
12794 | wxDC *arg1 = (wxDC *) 0 ; | |
12795 | PyObject *arg2 = (PyObject *) 0 ; | |
12796 | PyObject *arg3 = (PyObject *) 0 ; | |
12797 | PyObject *arg4 = (PyObject *) 0 ; | |
12798 | PyObject *result; | |
12799 | PyObject * obj0 = 0 ; | |
12800 | PyObject * obj1 = 0 ; | |
12801 | PyObject * obj2 = 0 ; | |
12802 | PyObject * obj3 = 0 ; | |
12803 | char *kwnames[] = { | |
12804 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
12805 | }; | |
12806 | ||
12807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12808 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12809 | arg2 = obj1; | |
12810 | arg3 = obj2; | |
12811 | arg4 = obj3; | |
12812 | { | |
12813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12814 | result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4); | |
12815 | ||
12816 | wxPyEndAllowThreads(__tstate); | |
12817 | if (PyErr_Occurred()) SWIG_fail; | |
12818 | } | |
12819 | resultobj = result; | |
12820 | return resultobj; | |
12821 | fail: | |
12822 | return NULL; | |
12823 | } | |
12824 | ||
12825 | ||
12826 | static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12827 | PyObject *resultobj; | |
12828 | wxDC *arg1 = (wxDC *) 0 ; | |
12829 | PyObject *arg2 = (PyObject *) 0 ; | |
12830 | PyObject *arg3 = (PyObject *) 0 ; | |
12831 | PyObject *arg4 = (PyObject *) 0 ; | |
12832 | PyObject *result; | |
12833 | PyObject * obj0 = 0 ; | |
12834 | PyObject * obj1 = 0 ; | |
12835 | PyObject * obj2 = 0 ; | |
12836 | PyObject * obj3 = 0 ; | |
12837 | char *kwnames[] = { | |
12838 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
12839 | }; | |
12840 | ||
12841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12842 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12843 | arg2 = obj1; | |
12844 | arg3 = obj2; | |
12845 | arg4 = obj3; | |
12846 | { | |
12847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12848 | result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4); | |
12849 | ||
12850 | wxPyEndAllowThreads(__tstate); | |
12851 | if (PyErr_Occurred()) SWIG_fail; | |
12852 | } | |
12853 | resultobj = result; | |
12854 | return resultobj; | |
12855 | fail: | |
12856 | return NULL; | |
12857 | } | |
12858 | ||
12859 | ||
12860 | static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12861 | PyObject *resultobj; | |
12862 | wxDC *arg1 = (wxDC *) 0 ; | |
12863 | PyObject *arg2 = (PyObject *) 0 ; | |
12864 | PyObject *arg3 = (PyObject *) 0 ; | |
12865 | PyObject *arg4 = (PyObject *) 0 ; | |
12866 | PyObject *result; | |
12867 | PyObject * obj0 = 0 ; | |
12868 | PyObject * obj1 = 0 ; | |
12869 | PyObject * obj2 = 0 ; | |
12870 | PyObject * obj3 = 0 ; | |
12871 | char *kwnames[] = { | |
12872 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
12873 | }; | |
12874 | ||
12875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12876 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12877 | arg2 = obj1; | |
12878 | arg3 = obj2; | |
12879 | arg4 = obj3; | |
12880 | { | |
12881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12882 | result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4); | |
12883 | ||
12884 | wxPyEndAllowThreads(__tstate); | |
12885 | if (PyErr_Occurred()) SWIG_fail; | |
12886 | } | |
12887 | resultobj = result; | |
12888 | return resultobj; | |
12889 | fail: | |
12890 | return NULL; | |
12891 | } | |
12892 | ||
12893 | ||
12894 | static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12895 | PyObject *resultobj; | |
12896 | wxDC *arg1 = (wxDC *) 0 ; | |
12897 | PyObject *arg2 = (PyObject *) 0 ; | |
12898 | PyObject *arg3 = (PyObject *) 0 ; | |
12899 | PyObject *arg4 = (PyObject *) 0 ; | |
12900 | PyObject *arg5 = (PyObject *) 0 ; | |
12901 | PyObject *result; | |
12902 | PyObject * obj0 = 0 ; | |
12903 | PyObject * obj1 = 0 ; | |
12904 | PyObject * obj2 = 0 ; | |
12905 | PyObject * obj3 = 0 ; | |
12906 | PyObject * obj4 = 0 ; | |
12907 | char *kwnames[] = { | |
12908 | (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL | |
12909 | }; | |
12910 | ||
12911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
12912 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12913 | arg2 = obj1; | |
12914 | arg3 = obj2; | |
12915 | arg4 = obj3; | |
12916 | arg5 = obj4; | |
12917 | { | |
12918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12919 | result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5); | |
12920 | ||
12921 | wxPyEndAllowThreads(__tstate); | |
12922 | if (PyErr_Occurred()) SWIG_fail; | |
12923 | } | |
12924 | resultobj = result; | |
12925 | return resultobj; | |
12926 | fail: | |
12927 | return NULL; | |
12928 | } | |
12929 | ||
12930 | ||
12931 | static PyObject * DC_swigregister(PyObject *self, PyObject *args) { | |
12932 | PyObject *obj; | |
12933 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12934 | SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj); | |
12935 | Py_INCREF(obj); | |
12936 | return Py_BuildValue((char *)""); | |
12937 | } | |
12938 | static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12939 | PyObject *resultobj; | |
12940 | wxMemoryDC *result; | |
12941 | char *kwnames[] = { | |
12942 | NULL | |
12943 | }; | |
12944 | ||
12945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail; | |
12946 | { | |
12947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12948 | result = (wxMemoryDC *)new wxMemoryDC(); | |
12949 | ||
12950 | wxPyEndAllowThreads(__tstate); | |
12951 | if (PyErr_Occurred()) SWIG_fail; | |
12952 | } | |
12953 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1); | |
12954 | return resultobj; | |
12955 | fail: | |
12956 | return NULL; | |
12957 | } | |
12958 | ||
12959 | ||
12960 | static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12961 | PyObject *resultobj; | |
12962 | wxDC *arg1 = (wxDC *) 0 ; | |
12963 | wxMemoryDC *result; | |
12964 | PyObject * obj0 = 0 ; | |
12965 | char *kwnames[] = { | |
12966 | (char *) "oldDC", NULL | |
12967 | }; | |
12968 | ||
12969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail; | |
12970 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12971 | { | |
12972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12973 | result = (wxMemoryDC *)new wxMemoryDC(arg1); | |
12974 | ||
12975 | wxPyEndAllowThreads(__tstate); | |
12976 | if (PyErr_Occurred()) SWIG_fail; | |
12977 | } | |
12978 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1); | |
12979 | return resultobj; | |
12980 | fail: | |
12981 | return NULL; | |
12982 | } | |
12983 | ||
12984 | ||
12985 | static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12986 | PyObject *resultobj; | |
12987 | wxMemoryDC *arg1 = (wxMemoryDC *) 0 ; | |
12988 | wxBitmap *arg2 = 0 ; | |
12989 | PyObject * obj0 = 0 ; | |
12990 | PyObject * obj1 = 0 ; | |
12991 | char *kwnames[] = { | |
12992 | (char *) "self",(char *) "bitmap", NULL | |
12993 | }; | |
12994 | ||
12995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail; | |
12996 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12997 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12998 | if (arg2 == NULL) { | |
12999 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13000 | } | |
13001 | { | |
13002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13003 | (arg1)->SelectObject((wxBitmap const &)*arg2); | |
13004 | ||
13005 | wxPyEndAllowThreads(__tstate); | |
13006 | if (PyErr_Occurred()) SWIG_fail; | |
13007 | } | |
13008 | Py_INCREF(Py_None); resultobj = Py_None; | |
13009 | return resultobj; | |
13010 | fail: | |
13011 | return NULL; | |
13012 | } | |
13013 | ||
13014 | ||
13015 | static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) { | |
13016 | PyObject *obj; | |
13017 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13018 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj); | |
13019 | Py_INCREF(obj); | |
13020 | return Py_BuildValue((char *)""); | |
13021 | } | |
13022 | static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13023 | PyObject *resultobj; | |
13024 | wxDC *arg1 = (wxDC *) 0 ; | |
13025 | wxBitmap *arg2 = 0 ; | |
13026 | wxBufferedDC *result; | |
13027 | PyObject * obj0 = 0 ; | |
13028 | PyObject * obj1 = 0 ; | |
13029 | char *kwnames[] = { | |
13030 | (char *) "dc",(char *) "buffer", NULL | |
13031 | }; | |
13032 | ||
13033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_BufferedDC",kwnames,&obj0,&obj1)) goto fail; | |
13034 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13035 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13036 | if (arg2 == NULL) { | |
13037 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13038 | } | |
13039 | { | |
13040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13041 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2); | |
13042 | ||
13043 | wxPyEndAllowThreads(__tstate); | |
13044 | if (PyErr_Occurred()) SWIG_fail; | |
13045 | } | |
13046 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1); | |
13047 | return resultobj; | |
13048 | fail: | |
13049 | return NULL; | |
13050 | } | |
13051 | ||
13052 | ||
13053 | static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13054 | PyObject *resultobj; | |
13055 | wxDC *arg1 = (wxDC *) 0 ; | |
13056 | wxSize *arg2 = 0 ; | |
13057 | wxBufferedDC *result; | |
13058 | wxSize temp2 ; | |
13059 | PyObject * obj0 = 0 ; | |
13060 | PyObject * obj1 = 0 ; | |
13061 | char *kwnames[] = { | |
13062 | (char *) "dc",(char *) "area", NULL | |
13063 | }; | |
13064 | ||
13065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_BufferedDCInternalBuffer",kwnames,&obj0,&obj1)) goto fail; | |
13066 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13067 | { | |
13068 | arg2 = &temp2; | |
13069 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
13070 | } | |
13071 | { | |
13072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13073 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2); | |
13074 | ||
13075 | wxPyEndAllowThreads(__tstate); | |
13076 | if (PyErr_Occurred()) SWIG_fail; | |
13077 | } | |
13078 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1); | |
13079 | return resultobj; | |
13080 | fail: | |
13081 | return NULL; | |
13082 | } | |
13083 | ||
13084 | ||
13085 | static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13086 | PyObject *resultobj; | |
13087 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
13088 | PyObject * obj0 = 0 ; | |
13089 | char *kwnames[] = { | |
13090 | (char *) "self", NULL | |
13091 | }; | |
13092 | ||
13093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail; | |
13094 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBufferedDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13095 | { | |
13096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13097 | (arg1)->UnMask(); | |
13098 | ||
13099 | wxPyEndAllowThreads(__tstate); | |
13100 | if (PyErr_Occurred()) SWIG_fail; | |
13101 | } | |
13102 | Py_INCREF(Py_None); resultobj = Py_None; | |
13103 | return resultobj; | |
13104 | fail: | |
13105 | return NULL; | |
13106 | } | |
13107 | ||
13108 | ||
13109 | static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) { | |
13110 | PyObject *obj; | |
13111 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13112 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj); | |
13113 | Py_INCREF(obj); | |
13114 | return Py_BuildValue((char *)""); | |
13115 | } | |
13116 | static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13117 | PyObject *resultobj; | |
13118 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13119 | wxBitmap const &arg2_defvalue = wxNullBitmap ; | |
13120 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; | |
13121 | wxBufferedPaintDC *result; | |
13122 | PyObject * obj0 = 0 ; | |
13123 | PyObject * obj1 = 0 ; | |
13124 | char *kwnames[] = { | |
13125 | (char *) "window",(char *) "buffer", NULL | |
13126 | }; | |
13127 | ||
13128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail; | |
13129 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13130 | if (obj1) { | |
13131 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13132 | if (arg2 == NULL) { | |
13133 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13134 | } | |
13135 | } | |
13136 | { | |
13137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13138 | result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2); | |
13139 | ||
13140 | wxPyEndAllowThreads(__tstate); | |
13141 | if (PyErr_Occurred()) SWIG_fail; | |
13142 | } | |
13143 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedPaintDC, 1); | |
13144 | return resultobj; | |
13145 | fail: | |
13146 | return NULL; | |
13147 | } | |
13148 | ||
13149 | ||
13150 | static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) { | |
13151 | PyObject *obj; | |
13152 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13153 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj); | |
13154 | Py_INCREF(obj); | |
13155 | return Py_BuildValue((char *)""); | |
13156 | } | |
13157 | static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13158 | PyObject *resultobj; | |
13159 | wxScreenDC *result; | |
13160 | char *kwnames[] = { | |
13161 | NULL | |
13162 | }; | |
13163 | ||
13164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail; | |
13165 | { | |
13166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13167 | result = (wxScreenDC *)new wxScreenDC(); | |
13168 | ||
13169 | wxPyEndAllowThreads(__tstate); | |
13170 | if (PyErr_Occurred()) SWIG_fail; | |
13171 | } | |
13172 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScreenDC, 1); | |
13173 | return resultobj; | |
13174 | fail: | |
13175 | return NULL; | |
13176 | } | |
13177 | ||
13178 | ||
13179 | static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13180 | PyObject *resultobj; | |
13181 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
13182 | wxWindow *arg2 = (wxWindow *) 0 ; | |
13183 | bool result; | |
13184 | PyObject * obj0 = 0 ; | |
13185 | PyObject * obj1 = 0 ; | |
13186 | char *kwnames[] = { | |
13187 | (char *) "self",(char *) "window", NULL | |
13188 | }; | |
13189 | ||
13190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail; | |
13191 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13192 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13193 | { | |
13194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13195 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
13196 | ||
13197 | wxPyEndAllowThreads(__tstate); | |
13198 | if (PyErr_Occurred()) SWIG_fail; | |
13199 | } | |
13200 | resultobj = PyInt_FromLong((long)result); | |
13201 | return resultobj; | |
13202 | fail: | |
13203 | return NULL; | |
13204 | } | |
13205 | ||
13206 | ||
13207 | static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13208 | PyObject *resultobj; | |
13209 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
13210 | wxRect *arg2 = (wxRect *) NULL ; | |
13211 | bool result; | |
13212 | PyObject * obj0 = 0 ; | |
13213 | PyObject * obj1 = 0 ; | |
13214 | char *kwnames[] = { | |
13215 | (char *) "self",(char *) "rect", NULL | |
13216 | }; | |
13217 | ||
13218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail; | |
13219 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13220 | if (obj1) { | |
13221 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13222 | } | |
13223 | { | |
13224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13225 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
13226 | ||
13227 | wxPyEndAllowThreads(__tstate); | |
13228 | if (PyErr_Occurred()) SWIG_fail; | |
13229 | } | |
13230 | resultobj = PyInt_FromLong((long)result); | |
13231 | return resultobj; | |
13232 | fail: | |
13233 | return NULL; | |
13234 | } | |
13235 | ||
13236 | ||
13237 | static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13238 | PyObject *resultobj; | |
13239 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
13240 | bool result; | |
13241 | PyObject * obj0 = 0 ; | |
13242 | char *kwnames[] = { | |
13243 | (char *) "self", NULL | |
13244 | }; | |
13245 | ||
13246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail; | |
13247 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13248 | { | |
13249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13250 | result = (bool)(arg1)->EndDrawingOnTop(); | |
13251 | ||
13252 | wxPyEndAllowThreads(__tstate); | |
13253 | if (PyErr_Occurred()) SWIG_fail; | |
13254 | } | |
13255 | resultobj = PyInt_FromLong((long)result); | |
13256 | return resultobj; | |
13257 | fail: | |
13258 | return NULL; | |
13259 | } | |
13260 | ||
13261 | ||
13262 | static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) { | |
13263 | PyObject *obj; | |
13264 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13265 | SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj); | |
13266 | Py_INCREF(obj); | |
13267 | return Py_BuildValue((char *)""); | |
13268 | } | |
13269 | static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13270 | PyObject *resultobj; | |
13271 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13272 | wxClientDC *result; | |
13273 | PyObject * obj0 = 0 ; | |
13274 | char *kwnames[] = { | |
13275 | (char *) "win", NULL | |
13276 | }; | |
13277 | ||
13278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail; | |
13279 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13280 | { | |
13281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13282 | result = (wxClientDC *)new wxClientDC(arg1); | |
13283 | ||
13284 | wxPyEndAllowThreads(__tstate); | |
13285 | if (PyErr_Occurred()) SWIG_fail; | |
13286 | } | |
13287 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClientDC, 1); | |
13288 | return resultobj; | |
13289 | fail: | |
13290 | return NULL; | |
13291 | } | |
13292 | ||
13293 | ||
13294 | static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) { | |
13295 | PyObject *obj; | |
13296 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13297 | SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj); | |
13298 | Py_INCREF(obj); | |
13299 | return Py_BuildValue((char *)""); | |
13300 | } | |
13301 | static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13302 | PyObject *resultobj; | |
13303 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13304 | wxPaintDC *result; | |
13305 | PyObject * obj0 = 0 ; | |
13306 | char *kwnames[] = { | |
13307 | (char *) "win", NULL | |
13308 | }; | |
13309 | ||
13310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail; | |
13311 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13312 | { | |
13313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13314 | result = (wxPaintDC *)new wxPaintDC(arg1); | |
13315 | ||
13316 | wxPyEndAllowThreads(__tstate); | |
13317 | if (PyErr_Occurred()) SWIG_fail; | |
13318 | } | |
13319 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPaintDC, 1); | |
13320 | return resultobj; | |
13321 | fail: | |
13322 | return NULL; | |
13323 | } | |
13324 | ||
13325 | ||
13326 | static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) { | |
13327 | PyObject *obj; | |
13328 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13329 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj); | |
13330 | Py_INCREF(obj); | |
13331 | return Py_BuildValue((char *)""); | |
13332 | } | |
13333 | static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13334 | PyObject *resultobj; | |
13335 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13336 | wxWindowDC *result; | |
13337 | PyObject * obj0 = 0 ; | |
13338 | char *kwnames[] = { | |
13339 | (char *) "win", NULL | |
13340 | }; | |
13341 | ||
13342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail; | |
13343 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13344 | { | |
13345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13346 | result = (wxWindowDC *)new wxWindowDC(arg1); | |
13347 | ||
13348 | wxPyEndAllowThreads(__tstate); | |
13349 | if (PyErr_Occurred()) SWIG_fail; | |
13350 | } | |
13351 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDC, 1); | |
13352 | return resultobj; | |
13353 | fail: | |
13354 | return NULL; | |
13355 | } | |
13356 | ||
13357 | ||
13358 | static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) { | |
13359 | PyObject *obj; | |
13360 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13361 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj); | |
13362 | Py_INCREF(obj); | |
13363 | return Py_BuildValue((char *)""); | |
13364 | } | |
13365 | static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13366 | PyObject *resultobj; | |
13367 | wxDC *arg1 = 0 ; | |
13368 | bool arg2 ; | |
13369 | wxMirrorDC *result; | |
13370 | PyObject * obj0 = 0 ; | |
13371 | PyObject * obj1 = 0 ; | |
13372 | char *kwnames[] = { | |
13373 | (char *) "dc",(char *) "mirror", NULL | |
13374 | }; | |
13375 | ||
13376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail; | |
13377 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13378 | if (arg1 == NULL) { | |
13379 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13380 | } | |
13381 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
13382 | if (PyErr_Occurred()) SWIG_fail; | |
13383 | { | |
13384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13385 | result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2); | |
13386 | ||
13387 | wxPyEndAllowThreads(__tstate); | |
13388 | if (PyErr_Occurred()) SWIG_fail; | |
13389 | } | |
13390 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMirrorDC, 1); | |
13391 | return resultobj; | |
13392 | fail: | |
13393 | return NULL; | |
13394 | } | |
13395 | ||
13396 | ||
13397 | static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) { | |
13398 | PyObject *obj; | |
13399 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13400 | SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj); | |
13401 | Py_INCREF(obj); | |
13402 | return Py_BuildValue((char *)""); | |
13403 | } | |
13404 | static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13405 | PyObject *resultobj; | |
13406 | wxPrintData *arg1 = 0 ; | |
13407 | wxPostScriptDC *result; | |
13408 | PyObject * obj0 = 0 ; | |
13409 | char *kwnames[] = { | |
13410 | (char *) "printData", NULL | |
13411 | }; | |
13412 | ||
13413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail; | |
13414 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13415 | if (arg1 == NULL) { | |
13416 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13417 | } | |
13418 | { | |
13419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13420 | result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1); | |
13421 | ||
13422 | wxPyEndAllowThreads(__tstate); | |
13423 | if (PyErr_Occurred()) SWIG_fail; | |
13424 | } | |
13425 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPostScriptDC, 1); | |
13426 | return resultobj; | |
13427 | fail: | |
13428 | return NULL; | |
13429 | } | |
13430 | ||
13431 | ||
13432 | static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13433 | PyObject *resultobj; | |
13434 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
13435 | wxPrintData *result; | |
13436 | PyObject * obj0 = 0 ; | |
13437 | char *kwnames[] = { | |
13438 | (char *) "self", NULL | |
13439 | }; | |
13440 | ||
13441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail; | |
13442 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13443 | { | |
13444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13445 | { | |
13446 | wxPrintData &_result_ref = (arg1)->GetPrintData(); | |
13447 | result = (wxPrintData *) &_result_ref; | |
13448 | } | |
13449 | ||
13450 | wxPyEndAllowThreads(__tstate); | |
13451 | if (PyErr_Occurred()) SWIG_fail; | |
13452 | } | |
13453 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrintData, 0); | |
13454 | return resultobj; | |
13455 | fail: | |
13456 | return NULL; | |
13457 | } | |
13458 | ||
13459 | ||
13460 | static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13461 | PyObject *resultobj; | |
13462 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
13463 | wxPrintData *arg2 = 0 ; | |
13464 | PyObject * obj0 = 0 ; | |
13465 | PyObject * obj1 = 0 ; | |
13466 | char *kwnames[] = { | |
13467 | (char *) "self",(char *) "data", NULL | |
13468 | }; | |
13469 | ||
13470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail; | |
13471 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13472 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13473 | if (arg2 == NULL) { | |
13474 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13475 | } | |
13476 | { | |
13477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13478 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
13479 | ||
13480 | wxPyEndAllowThreads(__tstate); | |
13481 | if (PyErr_Occurred()) SWIG_fail; | |
13482 | } | |
13483 | Py_INCREF(Py_None); resultobj = Py_None; | |
13484 | return resultobj; | |
13485 | fail: | |
13486 | return NULL; | |
13487 | } | |
13488 | ||
13489 | ||
13490 | static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13491 | PyObject *resultobj; | |
13492 | int arg1 ; | |
13493 | char *kwnames[] = { | |
13494 | (char *) "ppi", NULL | |
13495 | }; | |
13496 | ||
13497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:PostScriptDC_SetResolution",kwnames,&arg1)) goto fail; | |
13498 | { | |
13499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13500 | wxPostScriptDC::SetResolution(arg1); | |
13501 | ||
13502 | wxPyEndAllowThreads(__tstate); | |
13503 | if (PyErr_Occurred()) SWIG_fail; | |
13504 | } | |
13505 | Py_INCREF(Py_None); resultobj = Py_None; | |
13506 | return resultobj; | |
13507 | fail: | |
13508 | return NULL; | |
13509 | } | |
13510 | ||
13511 | ||
13512 | static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13513 | PyObject *resultobj; | |
13514 | int result; | |
13515 | char *kwnames[] = { | |
13516 | NULL | |
13517 | }; | |
13518 | ||
13519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail; | |
13520 | { | |
13521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13522 | result = (int)wxPostScriptDC::GetResolution(); | |
13523 | ||
13524 | wxPyEndAllowThreads(__tstate); | |
13525 | if (PyErr_Occurred()) SWIG_fail; | |
13526 | } | |
13527 | resultobj = PyInt_FromLong((long)result); | |
13528 | return resultobj; | |
13529 | fail: | |
13530 | return NULL; | |
13531 | } | |
13532 | ||
13533 | ||
13534 | static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) { | |
13535 | PyObject *obj; | |
13536 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13537 | SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj); | |
13538 | Py_INCREF(obj); | |
13539 | return Py_BuildValue((char *)""); | |
13540 | } | |
13541 | static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13542 | PyObject *resultobj; | |
13543 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
13544 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
13545 | wxMetaFile *result; | |
423f194a | 13546 | bool temp1 = False ; |
d14a1e28 RD |
13547 | PyObject * obj0 = 0 ; |
13548 | char *kwnames[] = { | |
13549 | (char *) "filename", NULL | |
13550 | }; | |
13551 | ||
13552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail; | |
13553 | if (obj0) { | |
13554 | { | |
13555 | arg1 = wxString_in_helper(obj0); | |
13556 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 13557 | temp1 = True; |
d14a1e28 RD |
13558 | } |
13559 | } | |
13560 | { | |
13561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13562 | result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1); | |
13563 | ||
13564 | wxPyEndAllowThreads(__tstate); | |
13565 | if (PyErr_Occurred()) SWIG_fail; | |
13566 | } | |
13567 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFile, 1); | |
13568 | { | |
13569 | if (temp1) | |
13570 | delete arg1; | |
13571 | } | |
13572 | return resultobj; | |
13573 | fail: | |
13574 | { | |
13575 | if (temp1) | |
13576 | delete arg1; | |
13577 | } | |
13578 | return NULL; | |
13579 | } | |
13580 | ||
13581 | ||
13582 | static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) { | |
13583 | PyObject *obj; | |
13584 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13585 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj); | |
13586 | Py_INCREF(obj); | |
13587 | return Py_BuildValue((char *)""); | |
13588 | } | |
13589 | static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13590 | PyObject *resultobj; | |
13591 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
13592 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
13593 | int arg2 = (int) 0 ; | |
13594 | int arg3 = (int) 0 ; | |
13595 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
13596 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
13597 | wxMetaFileDC *result; | |
423f194a RD |
13598 | bool temp1 = False ; |
13599 | bool temp4 = False ; | |
d14a1e28 RD |
13600 | PyObject * obj0 = 0 ; |
13601 | PyObject * obj3 = 0 ; | |
13602 | char *kwnames[] = { | |
13603 | (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL | |
13604 | }; | |
13605 | ||
13606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OiiO:new_MetaFileDC",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail; | |
13607 | if (obj0) { | |
13608 | { | |
13609 | arg1 = wxString_in_helper(obj0); | |
13610 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 13611 | temp1 = True; |
d14a1e28 RD |
13612 | } |
13613 | } | |
13614 | if (obj3) { | |
13615 | { | |
13616 | arg4 = wxString_in_helper(obj3); | |
13617 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 13618 | temp4 = True; |
d14a1e28 RD |
13619 | } |
13620 | } | |
13621 | { | |
13622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13623 | result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4); | |
13624 | ||
13625 | wxPyEndAllowThreads(__tstate); | |
13626 | if (PyErr_Occurred()) SWIG_fail; | |
13627 | } | |
13628 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFileDC, 1); | |
13629 | { | |
13630 | if (temp1) | |
13631 | delete arg1; | |
13632 | } | |
13633 | { | |
13634 | if (temp4) | |
13635 | delete arg4; | |
13636 | } | |
13637 | return resultobj; | |
13638 | fail: | |
13639 | { | |
13640 | if (temp1) | |
13641 | delete arg1; | |
13642 | } | |
13643 | { | |
13644 | if (temp4) | |
13645 | delete arg4; | |
13646 | } | |
13647 | return NULL; | |
13648 | } | |
13649 | ||
13650 | ||
13651 | static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) { | |
13652 | PyObject *obj; | |
13653 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13654 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj); | |
13655 | Py_INCREF(obj); | |
13656 | return Py_BuildValue((char *)""); | |
13657 | } | |
13658 | static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13659 | PyObject *resultobj; | |
13660 | wxPrintData *arg1 = 0 ; | |
13661 | wxPrinterDC *result; | |
13662 | PyObject * obj0 = 0 ; | |
13663 | char *kwnames[] = { | |
13664 | (char *) "printData", NULL | |
13665 | }; | |
13666 | ||
13667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail; | |
13668 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13669 | if (arg1 == NULL) { | |
13670 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13671 | } | |
13672 | { | |
13673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13674 | result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1); | |
13675 | ||
13676 | wxPyEndAllowThreads(__tstate); | |
13677 | if (PyErr_Occurred()) SWIG_fail; | |
13678 | } | |
13679 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrinterDC, 1); | |
13680 | return resultobj; | |
13681 | fail: | |
13682 | return NULL; | |
13683 | } | |
13684 | ||
13685 | ||
13686 | static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) { | |
13687 | PyObject *obj; | |
13688 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13689 | SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj); | |
13690 | Py_INCREF(obj); | |
13691 | return Py_BuildValue((char *)""); | |
13692 | } | |
13693 | static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13694 | PyObject *resultobj; | |
13695 | int arg1 ; | |
13696 | int arg2 ; | |
423f194a | 13697 | int arg3 = (int) True ; |
d14a1e28 RD |
13698 | int arg4 = (int) 1 ; |
13699 | wxImageList *result; | |
13700 | char *kwnames[] = { | |
13701 | (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL | |
13702 | }; | |
13703 | ||
13704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii|ii:new_ImageList",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
13705 | { | |
13706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13707 | result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4); | |
13708 | ||
13709 | wxPyEndAllowThreads(__tstate); | |
13710 | if (PyErr_Occurred()) SWIG_fail; | |
13711 | } | |
13712 | { | |
13713 | resultobj = wxPyMake_wxObject(result); | |
13714 | } | |
13715 | return resultobj; | |
13716 | fail: | |
13717 | return NULL; | |
13718 | } | |
13719 | ||
13720 | ||
13721 | static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13722 | PyObject *resultobj; | |
13723 | wxImageList *arg1 = (wxImageList *) 0 ; | |
13724 | PyObject * obj0 = 0 ; | |
13725 | char *kwnames[] = { | |
13726 | (char *) "self", NULL | |
13727 | }; | |
13728 | ||
13729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail; | |
13730 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13731 | { | |
13732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13733 | delete arg1; | |
13734 | ||
13735 | wxPyEndAllowThreads(__tstate); | |
13736 | if (PyErr_Occurred()) SWIG_fail; | |
13737 | } | |
13738 | Py_INCREF(Py_None); resultobj = Py_None; | |
13739 | return resultobj; | |
13740 | fail: | |
13741 | return NULL; | |
13742 | } | |
13743 | ||
13744 | ||
13745 | static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13746 | PyObject *resultobj; | |
13747 | wxImageList *arg1 = (wxImageList *) 0 ; | |
13748 | wxBitmap *arg2 = 0 ; | |
13749 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
13750 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
13751 | int result; | |
13752 | PyObject * obj0 = 0 ; | |
13753 | PyObject * obj1 = 0 ; | |
13754 | PyObject * obj2 = 0 ; | |
13755 | char *kwnames[] = { | |
13756 | (char *) "self",(char *) "bitmap",(char *) "mask", NULL | |
13757 | }; | |
13758 | ||
13759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13760 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13761 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13762 | if (arg2 == NULL) { | |
13763 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13764 | } | |
13765 | if (obj2) { | |
13766 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13767 | if (arg3 == NULL) { | |
13768 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13769 | } | |
13770 | } | |
13771 | { | |
13772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13773 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
13774 | ||
13775 | wxPyEndAllowThreads(__tstate); | |
13776 | if (PyErr_Occurred()) SWIG_fail; | |
13777 | } | |
13778 | resultobj = PyInt_FromLong((long)result); | |
13779 | return resultobj; | |
13780 | fail: | |
13781 | return NULL; | |
13782 | } | |
13783 | ||
13784 | ||
13785 | static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13786 | PyObject *resultobj; | |
13787 | wxImageList *arg1 = (wxImageList *) 0 ; | |
13788 | wxBitmap *arg2 = 0 ; | |
13789 | wxColour *arg3 = 0 ; | |
13790 | int result; | |
13791 | wxColour temp3 ; | |
13792 | PyObject * obj0 = 0 ; | |
13793 | PyObject * obj1 = 0 ; | |
13794 | PyObject * obj2 = 0 ; | |
13795 | char *kwnames[] = { | |
13796 | (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL | |
13797 | }; | |
13798 | ||
13799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13800 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13801 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13802 | if (arg2 == NULL) { | |
13803 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13804 | } | |
13805 | { | |
13806 | arg3 = &temp3; | |
13807 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
13808 | } | |
13809 | { | |
13810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13811 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3); | |
13812 | ||
13813 | wxPyEndAllowThreads(__tstate); | |
13814 | if (PyErr_Occurred()) SWIG_fail; | |
13815 | } | |
13816 | resultobj = PyInt_FromLong((long)result); | |
13817 | return resultobj; | |
13818 | fail: | |
13819 | return NULL; | |
13820 | } | |
13821 | ||
13822 | ||
13823 | static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13824 | PyObject *resultobj; | |
13825 | wxImageList *arg1 = (wxImageList *) 0 ; | |
13826 | wxIcon *arg2 = 0 ; | |
13827 | int result; | |
13828 | PyObject * obj0 = 0 ; | |
13829 | PyObject * obj1 = 0 ; | |
13830 | char *kwnames[] = { | |
13831 | (char *) "self",(char *) "icon", NULL | |
13832 | }; | |
13833 | ||
13834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail; | |
13835 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13836 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13837 | if (arg2 == NULL) { | |
13838 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13839 | } | |
13840 | { | |
13841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13842 | result = (int)(arg1)->Add((wxIcon const &)*arg2); | |
13843 | ||
13844 | wxPyEndAllowThreads(__tstate); | |
13845 | if (PyErr_Occurred()) SWIG_fail; | |
13846 | } | |
13847 | resultobj = PyInt_FromLong((long)result); | |
13848 | return resultobj; | |
13849 | fail: | |
13850 | return NULL; | |
13851 | } | |
13852 | ||
13853 | ||
13854 | static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13855 | PyObject *resultobj; | |
13856 | wxImageList *arg1 = (wxImageList *) 0 ; | |
13857 | int arg2 ; | |
13858 | wxBitmap *arg3 = 0 ; | |
13859 | bool result; | |
13860 | PyObject * obj0 = 0 ; | |
13861 | PyObject * obj2 = 0 ; | |
13862 | char *kwnames[] = { | |
13863 | (char *) "self",(char *) "index",(char *) "bitmap", NULL | |
13864 | }; | |
13865 | ||
13866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:ImageList_Replace",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
13867 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13868 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13869 | if (arg3 == NULL) { | |
13870 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13871 | } | |
13872 | { | |
13873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13874 | result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3); | |
13875 | ||
13876 | wxPyEndAllowThreads(__tstate); | |
13877 | if (PyErr_Occurred()) SWIG_fail; | |
13878 | } | |
13879 | resultobj = PyInt_FromLong((long)result); | |
13880 | return resultobj; | |
13881 | fail: | |
13882 | return NULL; | |
13883 | } | |
13884 | ||
13885 | ||
13886 | static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13887 | PyObject *resultobj; | |
13888 | wxImageList *arg1 = (wxImageList *) 0 ; | |
13889 | int arg2 ; | |
13890 | wxDC *arg3 = 0 ; | |
13891 | int arg4 ; | |
13892 | int arg5 ; | |
13893 | int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ; | |
423f194a | 13894 | bool arg7 = (bool) (bool)False ; |
d14a1e28 RD |
13895 | bool result; |
13896 | PyObject * obj0 = 0 ; | |
13897 | PyObject * obj2 = 0 ; | |
13898 | PyObject * obj6 = 0 ; | |
13899 | char *kwnames[] = { | |
13900 | (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL | |
13901 | }; | |
13902 | ||
13903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiOii|iO:ImageList_Draw",kwnames,&obj0,&arg2,&obj2,&arg4,&arg5,&arg6,&obj6)) goto fail; | |
13904 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13905 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13906 | if (arg3 == NULL) { | |
13907 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13908 | } | |
13909 | if (obj6) { | |
13910 | arg7 = PyInt_AsLong(obj6) ? true : false; | |
13911 | if (PyErr_Occurred()) SWIG_fail; | |
13912 | } | |
13913 | { | |
13914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13915 | result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7); | |
13916 | ||
13917 | wxPyEndAllowThreads(__tstate); | |
13918 | if (PyErr_Occurred()) SWIG_fail; | |
13919 | } | |
13920 | resultobj = PyInt_FromLong((long)result); | |
13921 | return resultobj; | |
13922 | fail: | |
13923 | return NULL; | |
13924 | } | |
13925 | ||
13926 | ||
13927 | static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13928 | PyObject *resultobj; | |
13929 | wxImageList *arg1 = (wxImageList *) 0 ; | |
13930 | int result; | |
13931 | PyObject * obj0 = 0 ; | |
13932 | char *kwnames[] = { | |
13933 | (char *) "self", NULL | |
13934 | }; | |
13935 | ||
13936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail; | |
13937 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13938 | { | |
13939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13940 | result = (int)(arg1)->GetImageCount(); | |
13941 | ||
13942 | wxPyEndAllowThreads(__tstate); | |
13943 | if (PyErr_Occurred()) SWIG_fail; | |
13944 | } | |
13945 | resultobj = PyInt_FromLong((long)result); | |
13946 | return resultobj; | |
13947 | fail: | |
13948 | return NULL; | |
13949 | } | |
13950 | ||
13951 | ||
13952 | static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13953 | PyObject *resultobj; | |
13954 | wxImageList *arg1 = (wxImageList *) 0 ; | |
13955 | int arg2 ; | |
13956 | bool result; | |
13957 | PyObject * obj0 = 0 ; | |
13958 | char *kwnames[] = { | |
13959 | (char *) "self",(char *) "index", NULL | |
13960 | }; | |
13961 | ||
13962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ImageList_Remove",kwnames,&obj0,&arg2)) goto fail; | |
13963 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13964 | { | |
13965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13966 | result = (bool)(arg1)->Remove(arg2); | |
13967 | ||
13968 | wxPyEndAllowThreads(__tstate); | |
13969 | if (PyErr_Occurred()) SWIG_fail; | |
13970 | } | |
13971 | resultobj = PyInt_FromLong((long)result); | |
13972 | return resultobj; | |
13973 | fail: | |
13974 | return NULL; | |
13975 | } | |
13976 | ||
13977 | ||
13978 | static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13979 | PyObject *resultobj; | |
13980 | wxImageList *arg1 = (wxImageList *) 0 ; | |
13981 | bool result; | |
13982 | PyObject * obj0 = 0 ; | |
13983 | char *kwnames[] = { | |
13984 | (char *) "self", NULL | |
13985 | }; | |
13986 | ||
13987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail; | |
13988 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13989 | { | |
13990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13991 | result = (bool)(arg1)->RemoveAll(); | |
13992 | ||
13993 | wxPyEndAllowThreads(__tstate); | |
13994 | if (PyErr_Occurred()) SWIG_fail; | |
13995 | } | |
13996 | resultobj = PyInt_FromLong((long)result); | |
13997 | return resultobj; | |
13998 | fail: | |
13999 | return NULL; | |
14000 | } | |
14001 | ||
14002 | ||
14003 | static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14004 | PyObject *resultobj; | |
14005 | wxImageList *arg1 = (wxImageList *) 0 ; | |
14006 | int arg2 ; | |
14007 | int *arg3 = 0 ; | |
14008 | int *arg4 = 0 ; | |
14009 | int temp3 ; | |
14010 | int temp4 ; | |
14011 | PyObject * obj0 = 0 ; | |
14012 | char *kwnames[] = { | |
14013 | (char *) "self",(char *) "index", NULL | |
14014 | }; | |
14015 | ||
14016 | arg3 = &temp3; | |
14017 | arg4 = &temp4; | |
14018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ImageList_GetSize",kwnames,&obj0,&arg2)) goto fail; | |
14019 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14020 | { | |
14021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14022 | (arg1)->GetSize(arg2,*arg3,*arg4); | |
14023 | ||
14024 | wxPyEndAllowThreads(__tstate); | |
14025 | if (PyErr_Occurred()) SWIG_fail; | |
14026 | } | |
14027 | Py_INCREF(Py_None); resultobj = Py_None; | |
14028 | { | |
14029 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14030 | resultobj = t_output_helper(resultobj,o); | |
14031 | } | |
14032 | { | |
14033 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
14034 | resultobj = t_output_helper(resultobj,o); | |
14035 | } | |
14036 | return resultobj; | |
14037 | fail: | |
14038 | return NULL; | |
14039 | } | |
14040 | ||
14041 | ||
14042 | static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) { | |
14043 | PyObject *obj; | |
14044 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14045 | SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj); | |
14046 | Py_INCREF(obj); | |
14047 | return Py_BuildValue((char *)""); | |
14048 | } | |
14049 | static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14050 | PyObject *resultobj; | |
14051 | wxPenList *arg1 = (wxPenList *) 0 ; | |
14052 | wxPen *arg2 = (wxPen *) 0 ; | |
14053 | PyObject * obj0 = 0 ; | |
14054 | PyObject * obj1 = 0 ; | |
14055 | char *kwnames[] = { | |
14056 | (char *) "self",(char *) "pen", NULL | |
14057 | }; | |
14058 | ||
14059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail; | |
14060 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14061 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14062 | { | |
14063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14064 | (arg1)->AddPen(arg2); | |
14065 | ||
14066 | wxPyEndAllowThreads(__tstate); | |
14067 | if (PyErr_Occurred()) SWIG_fail; | |
14068 | } | |
14069 | Py_INCREF(Py_None); resultobj = Py_None; | |
14070 | return resultobj; | |
14071 | fail: | |
14072 | return NULL; | |
14073 | } | |
14074 | ||
14075 | ||
14076 | static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14077 | PyObject *resultobj; | |
14078 | wxPenList *arg1 = (wxPenList *) 0 ; | |
14079 | wxColour *arg2 = 0 ; | |
14080 | int arg3 ; | |
14081 | int arg4 ; | |
14082 | wxPen *result; | |
14083 | wxColour temp2 ; | |
14084 | PyObject * obj0 = 0 ; | |
14085 | PyObject * obj1 = 0 ; | |
14086 | char *kwnames[] = { | |
14087 | (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL | |
14088 | }; | |
14089 | ||
14090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail; | |
14091 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14092 | { | |
14093 | arg2 = &temp2; | |
14094 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
14095 | } | |
14096 | { | |
14097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14098 | result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4); | |
14099 | ||
14100 | wxPyEndAllowThreads(__tstate); | |
14101 | if (PyErr_Occurred()) SWIG_fail; | |
14102 | } | |
14103 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0); | |
14104 | return resultobj; | |
14105 | fail: | |
14106 | return NULL; | |
14107 | } | |
14108 | ||
14109 | ||
14110 | static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14111 | PyObject *resultobj; | |
14112 | wxPenList *arg1 = (wxPenList *) 0 ; | |
14113 | wxPen *arg2 = (wxPen *) 0 ; | |
14114 | PyObject * obj0 = 0 ; | |
14115 | PyObject * obj1 = 0 ; | |
14116 | char *kwnames[] = { | |
14117 | (char *) "self",(char *) "pen", NULL | |
14118 | }; | |
14119 | ||
14120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail; | |
14121 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14122 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14123 | { | |
14124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14125 | (arg1)->RemovePen(arg2); | |
14126 | ||
14127 | wxPyEndAllowThreads(__tstate); | |
14128 | if (PyErr_Occurred()) SWIG_fail; | |
14129 | } | |
14130 | Py_INCREF(Py_None); resultobj = Py_None; | |
14131 | return resultobj; | |
14132 | fail: | |
14133 | return NULL; | |
14134 | } | |
14135 | ||
14136 | ||
14137 | static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14138 | PyObject *resultobj; | |
14139 | wxPenList *arg1 = (wxPenList *) 0 ; | |
14140 | int result; | |
14141 | PyObject * obj0 = 0 ; | |
14142 | char *kwnames[] = { | |
14143 | (char *) "self", NULL | |
14144 | }; | |
14145 | ||
14146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail; | |
14147 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14148 | { | |
14149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14150 | result = (int)(arg1)->GetCount(); | |
14151 | ||
14152 | wxPyEndAllowThreads(__tstate); | |
14153 | if (PyErr_Occurred()) SWIG_fail; | |
14154 | } | |
14155 | resultobj = PyInt_FromLong((long)result); | |
14156 | return resultobj; | |
14157 | fail: | |
14158 | return NULL; | |
14159 | } | |
14160 | ||
14161 | ||
14162 | static PyObject * PenList_swigregister(PyObject *self, PyObject *args) { | |
14163 | PyObject *obj; | |
14164 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14165 | SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj); | |
14166 | Py_INCREF(obj); | |
14167 | return Py_BuildValue((char *)""); | |
14168 | } | |
14169 | static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14170 | PyObject *resultobj; | |
14171 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
14172 | wxBrush *arg2 = (wxBrush *) 0 ; | |
14173 | PyObject * obj0 = 0 ; | |
14174 | PyObject * obj1 = 0 ; | |
14175 | char *kwnames[] = { | |
14176 | (char *) "self",(char *) "brush", NULL | |
14177 | }; | |
14178 | ||
14179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail; | |
14180 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14181 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14182 | { | |
14183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14184 | (arg1)->AddBrush(arg2); | |
14185 | ||
14186 | wxPyEndAllowThreads(__tstate); | |
14187 | if (PyErr_Occurred()) SWIG_fail; | |
14188 | } | |
14189 | Py_INCREF(Py_None); resultobj = Py_None; | |
14190 | return resultobj; | |
14191 | fail: | |
14192 | return NULL; | |
14193 | } | |
14194 | ||
14195 | ||
14196 | static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14197 | PyObject *resultobj; | |
14198 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
14199 | wxColour *arg2 = 0 ; | |
14200 | int arg3 ; | |
14201 | wxBrush *result; | |
14202 | wxColour temp2 ; | |
14203 | PyObject * obj0 = 0 ; | |
14204 | PyObject * obj1 = 0 ; | |
14205 | char *kwnames[] = { | |
14206 | (char *) "self",(char *) "colour",(char *) "style", NULL | |
14207 | }; | |
14208 | ||
14209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
14210 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14211 | { | |
14212 | arg2 = &temp2; | |
14213 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
14214 | } | |
14215 | { | |
14216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14217 | result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3); | |
14218 | ||
14219 | wxPyEndAllowThreads(__tstate); | |
14220 | if (PyErr_Occurred()) SWIG_fail; | |
14221 | } | |
14222 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0); | |
14223 | return resultobj; | |
14224 | fail: | |
14225 | return NULL; | |
14226 | } | |
14227 | ||
14228 | ||
14229 | static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14230 | PyObject *resultobj; | |
14231 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
14232 | wxBrush *arg2 = (wxBrush *) 0 ; | |
14233 | PyObject * obj0 = 0 ; | |
14234 | PyObject * obj1 = 0 ; | |
14235 | char *kwnames[] = { | |
14236 | (char *) "self",(char *) "brush", NULL | |
14237 | }; | |
14238 | ||
14239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail; | |
14240 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14241 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14242 | { | |
14243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14244 | (arg1)->RemoveBrush(arg2); | |
14245 | ||
14246 | wxPyEndAllowThreads(__tstate); | |
14247 | if (PyErr_Occurred()) SWIG_fail; | |
14248 | } | |
14249 | Py_INCREF(Py_None); resultobj = Py_None; | |
14250 | return resultobj; | |
14251 | fail: | |
14252 | return NULL; | |
14253 | } | |
14254 | ||
14255 | ||
14256 | static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14257 | PyObject *resultobj; | |
14258 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
14259 | int result; | |
14260 | PyObject * obj0 = 0 ; | |
14261 | char *kwnames[] = { | |
14262 | (char *) "self", NULL | |
14263 | }; | |
14264 | ||
14265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail; | |
14266 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14267 | { | |
14268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14269 | result = (int)(arg1)->GetCount(); | |
14270 | ||
14271 | wxPyEndAllowThreads(__tstate); | |
14272 | if (PyErr_Occurred()) SWIG_fail; | |
14273 | } | |
14274 | resultobj = PyInt_FromLong((long)result); | |
14275 | return resultobj; | |
14276 | fail: | |
14277 | return NULL; | |
14278 | } | |
14279 | ||
14280 | ||
14281 | static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) { | |
14282 | PyObject *obj; | |
14283 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14284 | SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj); | |
14285 | Py_INCREF(obj); | |
14286 | return Py_BuildValue((char *)""); | |
14287 | } | |
14288 | static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14289 | PyObject *resultobj; | |
14290 | wxColourDatabase *result; | |
14291 | char *kwnames[] = { | |
14292 | NULL | |
14293 | }; | |
14294 | ||
14295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail; | |
14296 | { | |
14297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14298 | result = (wxColourDatabase *)new wxColourDatabase(); | |
14299 | ||
14300 | wxPyEndAllowThreads(__tstate); | |
14301 | if (PyErr_Occurred()) SWIG_fail; | |
14302 | } | |
14303 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColourDatabase, 1); | |
14304 | return resultobj; | |
14305 | fail: | |
14306 | return NULL; | |
14307 | } | |
14308 | ||
14309 | ||
14310 | static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14311 | PyObject *resultobj; | |
14312 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
14313 | PyObject * obj0 = 0 ; | |
14314 | char *kwnames[] = { | |
14315 | (char *) "self", NULL | |
14316 | }; | |
14317 | ||
14318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail; | |
14319 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14320 | { | |
14321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14322 | delete arg1; | |
14323 | ||
14324 | wxPyEndAllowThreads(__tstate); | |
14325 | if (PyErr_Occurred()) SWIG_fail; | |
14326 | } | |
14327 | Py_INCREF(Py_None); resultobj = Py_None; | |
14328 | return resultobj; | |
14329 | fail: | |
14330 | return NULL; | |
14331 | } | |
14332 | ||
14333 | ||
14334 | static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14335 | PyObject *resultobj; | |
14336 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
14337 | wxString *arg2 = 0 ; | |
14338 | wxColour result; | |
423f194a | 14339 | bool temp2 = False ; |
d14a1e28 RD |
14340 | PyObject * obj0 = 0 ; |
14341 | PyObject * obj1 = 0 ; | |
14342 | char *kwnames[] = { | |
14343 | (char *) "self",(char *) "name", NULL | |
14344 | }; | |
14345 | ||
14346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail; | |
14347 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14348 | { | |
14349 | arg2 = wxString_in_helper(obj1); | |
14350 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14351 | temp2 = True; |
d14a1e28 RD |
14352 | } |
14353 | { | |
14354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14355 | result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2); | |
14356 | ||
14357 | wxPyEndAllowThreads(__tstate); | |
14358 | if (PyErr_Occurred()) SWIG_fail; | |
14359 | } | |
14360 | { | |
14361 | wxColour * resultptr; | |
14362 | resultptr = new wxColour((wxColour &) result); | |
14363 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
14364 | } | |
14365 | { | |
14366 | if (temp2) | |
14367 | delete arg2; | |
14368 | } | |
14369 | return resultobj; | |
14370 | fail: | |
14371 | { | |
14372 | if (temp2) | |
14373 | delete arg2; | |
14374 | } | |
14375 | return NULL; | |
14376 | } | |
14377 | ||
14378 | ||
14379 | static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14380 | PyObject *resultobj; | |
14381 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
14382 | wxColour *arg2 = 0 ; | |
14383 | wxString result; | |
14384 | wxColour temp2 ; | |
14385 | PyObject * obj0 = 0 ; | |
14386 | PyObject * obj1 = 0 ; | |
14387 | char *kwnames[] = { | |
14388 | (char *) "self",(char *) "colour", NULL | |
14389 | }; | |
14390 | ||
14391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail; | |
14392 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14393 | { | |
14394 | arg2 = &temp2; | |
14395 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
14396 | } | |
14397 | { | |
14398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14399 | result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2); | |
14400 | ||
14401 | wxPyEndAllowThreads(__tstate); | |
14402 | if (PyErr_Occurred()) SWIG_fail; | |
14403 | } | |
14404 | { | |
14405 | #if wxUSE_UNICODE | |
14406 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14407 | #else | |
14408 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14409 | #endif | |
14410 | } | |
14411 | return resultobj; | |
14412 | fail: | |
14413 | return NULL; | |
14414 | } | |
14415 | ||
14416 | ||
14417 | static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14418 | PyObject *resultobj; | |
14419 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
14420 | wxString *arg2 = 0 ; | |
14421 | wxColour *arg3 = 0 ; | |
423f194a | 14422 | bool temp2 = False ; |
d14a1e28 RD |
14423 | wxColour temp3 ; |
14424 | PyObject * obj0 = 0 ; | |
14425 | PyObject * obj1 = 0 ; | |
14426 | PyObject * obj2 = 0 ; | |
14427 | char *kwnames[] = { | |
14428 | (char *) "self",(char *) "name",(char *) "colour", NULL | |
14429 | }; | |
14430 | ||
14431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14432 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14433 | { | |
14434 | arg2 = wxString_in_helper(obj1); | |
14435 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14436 | temp2 = True; |
d14a1e28 RD |
14437 | } |
14438 | { | |
14439 | arg3 = &temp3; | |
14440 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
14441 | } | |
14442 | { | |
14443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14444 | (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3); | |
14445 | ||
14446 | wxPyEndAllowThreads(__tstate); | |
14447 | if (PyErr_Occurred()) SWIG_fail; | |
14448 | } | |
14449 | Py_INCREF(Py_None); resultobj = Py_None; | |
14450 | { | |
14451 | if (temp2) | |
14452 | delete arg2; | |
14453 | } | |
14454 | return resultobj; | |
14455 | fail: | |
14456 | { | |
14457 | if (temp2) | |
14458 | delete arg2; | |
14459 | } | |
14460 | return NULL; | |
14461 | } | |
14462 | ||
14463 | ||
14464 | static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14465 | PyObject *resultobj; | |
14466 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
14467 | wxString *arg2 = 0 ; | |
14468 | int arg3 ; | |
14469 | int arg4 ; | |
14470 | int arg5 ; | |
423f194a | 14471 | bool temp2 = False ; |
d14a1e28 RD |
14472 | PyObject * obj0 = 0 ; |
14473 | PyObject * obj1 = 0 ; | |
14474 | char *kwnames[] = { | |
14475 | (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL | |
14476 | }; | |
14477 | ||
14478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiii:ColourDatabase_Append",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5)) goto fail; | |
14479 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14480 | { | |
14481 | arg2 = wxString_in_helper(obj1); | |
14482 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14483 | temp2 = True; |
d14a1e28 RD |
14484 | } |
14485 | { | |
14486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14487 | wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5); | |
14488 | ||
14489 | wxPyEndAllowThreads(__tstate); | |
14490 | if (PyErr_Occurred()) SWIG_fail; | |
14491 | } | |
14492 | Py_INCREF(Py_None); resultobj = Py_None; | |
14493 | { | |
14494 | if (temp2) | |
14495 | delete arg2; | |
14496 | } | |
14497 | return resultobj; | |
14498 | fail: | |
14499 | { | |
14500 | if (temp2) | |
14501 | delete arg2; | |
14502 | } | |
14503 | return NULL; | |
14504 | } | |
14505 | ||
14506 | ||
14507 | static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) { | |
14508 | PyObject *obj; | |
14509 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14510 | SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj); | |
14511 | Py_INCREF(obj); | |
14512 | return Py_BuildValue((char *)""); | |
14513 | } | |
14514 | static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14515 | PyObject *resultobj; | |
14516 | wxFontList *arg1 = (wxFontList *) 0 ; | |
14517 | wxFont *arg2 = (wxFont *) 0 ; | |
14518 | PyObject * obj0 = 0 ; | |
14519 | PyObject * obj1 = 0 ; | |
14520 | char *kwnames[] = { | |
14521 | (char *) "self",(char *) "font", NULL | |
14522 | }; | |
14523 | ||
14524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail; | |
14525 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14526 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14527 | { | |
14528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14529 | (arg1)->AddFont(arg2); | |
14530 | ||
14531 | wxPyEndAllowThreads(__tstate); | |
14532 | if (PyErr_Occurred()) SWIG_fail; | |
14533 | } | |
14534 | Py_INCREF(Py_None); resultobj = Py_None; | |
14535 | return resultobj; | |
14536 | fail: | |
14537 | return NULL; | |
14538 | } | |
14539 | ||
14540 | ||
14541 | static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14542 | PyObject *resultobj; | |
14543 | wxFontList *arg1 = (wxFontList *) 0 ; | |
14544 | int arg2 ; | |
14545 | int arg3 ; | |
14546 | int arg4 ; | |
14547 | int arg5 ; | |
423f194a | 14548 | bool arg6 = (bool) False ; |
d14a1e28 RD |
14549 | wxString const &arg7_defvalue = wxPyEmptyString ; |
14550 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14551 | int arg8 = (int) wxFONTENCODING_DEFAULT ; | |
14552 | wxFont *result; | |
423f194a | 14553 | bool temp7 = False ; |
d14a1e28 RD |
14554 | PyObject * obj0 = 0 ; |
14555 | PyObject * obj5 = 0 ; | |
14556 | PyObject * obj6 = 0 ; | |
14557 | char *kwnames[] = { | |
14558 | (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL | |
14559 | }; | |
14560 | ||
14561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii|OOi:FontList_FindOrCreateFont",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5,&obj6,&arg8)) goto fail; | |
14562 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14563 | if (obj5) { | |
14564 | arg6 = PyInt_AsLong(obj5) ? true : false; | |
14565 | if (PyErr_Occurred()) SWIG_fail; | |
14566 | } | |
14567 | if (obj6) { | |
14568 | { | |
14569 | arg7 = wxString_in_helper(obj6); | |
14570 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 14571 | temp7 = True; |
d14a1e28 RD |
14572 | } |
14573 | } | |
14574 | { | |
14575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14576 | result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8); | |
14577 | ||
14578 | wxPyEndAllowThreads(__tstate); | |
14579 | if (PyErr_Occurred()) SWIG_fail; | |
14580 | } | |
14581 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0); | |
14582 | { | |
14583 | if (temp7) | |
14584 | delete arg7; | |
14585 | } | |
14586 | return resultobj; | |
14587 | fail: | |
14588 | { | |
14589 | if (temp7) | |
14590 | delete arg7; | |
14591 | } | |
14592 | return NULL; | |
14593 | } | |
14594 | ||
14595 | ||
14596 | static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14597 | PyObject *resultobj; | |
14598 | wxFontList *arg1 = (wxFontList *) 0 ; | |
14599 | wxFont *arg2 = (wxFont *) 0 ; | |
14600 | PyObject * obj0 = 0 ; | |
14601 | PyObject * obj1 = 0 ; | |
14602 | char *kwnames[] = { | |
14603 | (char *) "self",(char *) "font", NULL | |
14604 | }; | |
14605 | ||
14606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail; | |
14607 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14608 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14609 | { | |
14610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14611 | (arg1)->RemoveFont(arg2); | |
14612 | ||
14613 | wxPyEndAllowThreads(__tstate); | |
14614 | if (PyErr_Occurred()) SWIG_fail; | |
14615 | } | |
14616 | Py_INCREF(Py_None); resultobj = Py_None; | |
14617 | return resultobj; | |
14618 | fail: | |
14619 | return NULL; | |
14620 | } | |
14621 | ||
14622 | ||
14623 | static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14624 | PyObject *resultobj; | |
14625 | wxFontList *arg1 = (wxFontList *) 0 ; | |
14626 | int result; | |
14627 | PyObject * obj0 = 0 ; | |
14628 | char *kwnames[] = { | |
14629 | (char *) "self", NULL | |
14630 | }; | |
14631 | ||
14632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail; | |
14633 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14634 | { | |
14635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14636 | result = (int)(arg1)->GetCount(); | |
14637 | ||
14638 | wxPyEndAllowThreads(__tstate); | |
14639 | if (PyErr_Occurred()) SWIG_fail; | |
14640 | } | |
14641 | resultobj = PyInt_FromLong((long)result); | |
14642 | return resultobj; | |
14643 | fail: | |
14644 | return NULL; | |
14645 | } | |
14646 | ||
14647 | ||
14648 | static PyObject * FontList_swigregister(PyObject *self, PyObject *args) { | |
14649 | PyObject *obj; | |
14650 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14651 | SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj); | |
14652 | Py_INCREF(obj); | |
14653 | return Py_BuildValue((char *)""); | |
14654 | } | |
14655 | static int _wrap_NORMAL_FONT_set(PyObject *_val) { | |
14656 | PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only."); | |
14657 | return 1; | |
14658 | } | |
14659 | ||
14660 | ||
14661 | static PyObject *_wrap_NORMAL_FONT_get() { | |
14662 | PyObject *pyobj; | |
14663 | ||
14664 | pyobj = SWIG_NewPointerObj((void *) wxNORMAL_FONT, SWIGTYPE_p_wxFont, 0); | |
14665 | return pyobj; | |
14666 | } | |
14667 | ||
14668 | ||
14669 | static int _wrap_SMALL_FONT_set(PyObject *_val) { | |
14670 | PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only."); | |
14671 | return 1; | |
14672 | } | |
14673 | ||
14674 | ||
14675 | static PyObject *_wrap_SMALL_FONT_get() { | |
14676 | PyObject *pyobj; | |
14677 | ||
14678 | pyobj = SWIG_NewPointerObj((void *) wxSMALL_FONT, SWIGTYPE_p_wxFont, 0); | |
14679 | return pyobj; | |
14680 | } | |
14681 | ||
14682 | ||
14683 | static int _wrap_ITALIC_FONT_set(PyObject *_val) { | |
14684 | PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only."); | |
14685 | return 1; | |
14686 | } | |
14687 | ||
14688 | ||
14689 | static PyObject *_wrap_ITALIC_FONT_get() { | |
14690 | PyObject *pyobj; | |
14691 | ||
14692 | pyobj = SWIG_NewPointerObj((void *) wxITALIC_FONT, SWIGTYPE_p_wxFont, 0); | |
14693 | return pyobj; | |
14694 | } | |
14695 | ||
14696 | ||
14697 | static int _wrap_SWISS_FONT_set(PyObject *_val) { | |
14698 | PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only."); | |
14699 | return 1; | |
14700 | } | |
14701 | ||
14702 | ||
14703 | static PyObject *_wrap_SWISS_FONT_get() { | |
14704 | PyObject *pyobj; | |
14705 | ||
14706 | pyobj = SWIG_NewPointerObj((void *) wxSWISS_FONT, SWIGTYPE_p_wxFont, 0); | |
14707 | return pyobj; | |
14708 | } | |
14709 | ||
14710 | ||
14711 | static int _wrap_RED_PEN_set(PyObject *_val) { | |
14712 | PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only."); | |
14713 | return 1; | |
14714 | } | |
14715 | ||
14716 | ||
14717 | static PyObject *_wrap_RED_PEN_get() { | |
14718 | PyObject *pyobj; | |
14719 | ||
14720 | pyobj = SWIG_NewPointerObj((void *) wxRED_PEN, SWIGTYPE_p_wxPen, 0); | |
14721 | return pyobj; | |
14722 | } | |
14723 | ||
14724 | ||
14725 | static int _wrap_CYAN_PEN_set(PyObject *_val) { | |
14726 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only."); | |
14727 | return 1; | |
14728 | } | |
14729 | ||
14730 | ||
14731 | static PyObject *_wrap_CYAN_PEN_get() { | |
14732 | PyObject *pyobj; | |
14733 | ||
14734 | pyobj = SWIG_NewPointerObj((void *) wxCYAN_PEN, SWIGTYPE_p_wxPen, 0); | |
14735 | return pyobj; | |
14736 | } | |
14737 | ||
14738 | ||
14739 | static int _wrap_GREEN_PEN_set(PyObject *_val) { | |
14740 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only."); | |
14741 | return 1; | |
14742 | } | |
14743 | ||
14744 | ||
14745 | static PyObject *_wrap_GREEN_PEN_get() { | |
14746 | PyObject *pyobj; | |
14747 | ||
14748 | pyobj = SWIG_NewPointerObj((void *) wxGREEN_PEN, SWIGTYPE_p_wxPen, 0); | |
14749 | return pyobj; | |
14750 | } | |
14751 | ||
14752 | ||
14753 | static int _wrap_BLACK_PEN_set(PyObject *_val) { | |
14754 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only."); | |
14755 | return 1; | |
14756 | } | |
14757 | ||
14758 | ||
14759 | static PyObject *_wrap_BLACK_PEN_get() { | |
14760 | PyObject *pyobj; | |
14761 | ||
14762 | pyobj = SWIG_NewPointerObj((void *) wxBLACK_PEN, SWIGTYPE_p_wxPen, 0); | |
14763 | return pyobj; | |
14764 | } | |
14765 | ||
14766 | ||
14767 | static int _wrap_WHITE_PEN_set(PyObject *_val) { | |
14768 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only."); | |
14769 | return 1; | |
14770 | } | |
14771 | ||
14772 | ||
14773 | static PyObject *_wrap_WHITE_PEN_get() { | |
14774 | PyObject *pyobj; | |
14775 | ||
14776 | pyobj = SWIG_NewPointerObj((void *) wxWHITE_PEN, SWIGTYPE_p_wxPen, 0); | |
14777 | return pyobj; | |
14778 | } | |
14779 | ||
14780 | ||
14781 | static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) { | |
14782 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only."); | |
14783 | return 1; | |
14784 | } | |
14785 | ||
14786 | ||
14787 | static PyObject *_wrap_TRANSPARENT_PEN_get() { | |
14788 | PyObject *pyobj; | |
14789 | ||
14790 | pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_PEN, SWIGTYPE_p_wxPen, 0); | |
14791 | return pyobj; | |
14792 | } | |
14793 | ||
14794 | ||
14795 | static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) { | |
14796 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only."); | |
14797 | return 1; | |
14798 | } | |
14799 | ||
14800 | ||
14801 | static PyObject *_wrap_BLACK_DASHED_PEN_get() { | |
14802 | PyObject *pyobj; | |
14803 | ||
14804 | pyobj = SWIG_NewPointerObj((void *) wxBLACK_DASHED_PEN, SWIGTYPE_p_wxPen, 0); | |
14805 | return pyobj; | |
14806 | } | |
14807 | ||
14808 | ||
14809 | static int _wrap_GREY_PEN_set(PyObject *_val) { | |
14810 | PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only."); | |
14811 | return 1; | |
14812 | } | |
14813 | ||
14814 | ||
14815 | static PyObject *_wrap_GREY_PEN_get() { | |
14816 | PyObject *pyobj; | |
14817 | ||
14818 | pyobj = SWIG_NewPointerObj((void *) wxGREY_PEN, SWIGTYPE_p_wxPen, 0); | |
14819 | return pyobj; | |
14820 | } | |
14821 | ||
14822 | ||
14823 | static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) { | |
14824 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only."); | |
14825 | return 1; | |
14826 | } | |
14827 | ||
14828 | ||
14829 | static PyObject *_wrap_MEDIUM_GREY_PEN_get() { | |
14830 | PyObject *pyobj; | |
14831 | ||
14832 | pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_PEN, SWIGTYPE_p_wxPen, 0); | |
14833 | return pyobj; | |
14834 | } | |
14835 | ||
14836 | ||
14837 | static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) { | |
14838 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only."); | |
14839 | return 1; | |
14840 | } | |
14841 | ||
14842 | ||
14843 | static PyObject *_wrap_LIGHT_GREY_PEN_get() { | |
14844 | PyObject *pyobj; | |
14845 | ||
14846 | pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_PEN, SWIGTYPE_p_wxPen, 0); | |
14847 | return pyobj; | |
14848 | } | |
14849 | ||
14850 | ||
14851 | static int _wrap_BLUE_BRUSH_set(PyObject *_val) { | |
14852 | PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only."); | |
14853 | return 1; | |
14854 | } | |
14855 | ||
14856 | ||
14857 | static PyObject *_wrap_BLUE_BRUSH_get() { | |
14858 | PyObject *pyobj; | |
14859 | ||
14860 | pyobj = SWIG_NewPointerObj((void *) wxBLUE_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
14861 | return pyobj; | |
14862 | } | |
14863 | ||
14864 | ||
14865 | static int _wrap_GREEN_BRUSH_set(PyObject *_val) { | |
14866 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only."); | |
14867 | return 1; | |
14868 | } | |
14869 | ||
14870 | ||
14871 | static PyObject *_wrap_GREEN_BRUSH_get() { | |
14872 | PyObject *pyobj; | |
14873 | ||
14874 | pyobj = SWIG_NewPointerObj((void *) wxGREEN_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
14875 | return pyobj; | |
14876 | } | |
14877 | ||
14878 | ||
14879 | static int _wrap_WHITE_BRUSH_set(PyObject *_val) { | |
14880 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only."); | |
14881 | return 1; | |
14882 | } | |
14883 | ||
14884 | ||
14885 | static PyObject *_wrap_WHITE_BRUSH_get() { | |
14886 | PyObject *pyobj; | |
14887 | ||
14888 | pyobj = SWIG_NewPointerObj((void *) wxWHITE_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
14889 | return pyobj; | |
14890 | } | |
14891 | ||
14892 | ||
14893 | static int _wrap_BLACK_BRUSH_set(PyObject *_val) { | |
14894 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only."); | |
14895 | return 1; | |
14896 | } | |
14897 | ||
14898 | ||
14899 | static PyObject *_wrap_BLACK_BRUSH_get() { | |
14900 | PyObject *pyobj; | |
14901 | ||
14902 | pyobj = SWIG_NewPointerObj((void *) wxBLACK_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
14903 | return pyobj; | |
14904 | } | |
14905 | ||
14906 | ||
14907 | static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) { | |
14908 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only."); | |
14909 | return 1; | |
14910 | } | |
14911 | ||
14912 | ||
14913 | static PyObject *_wrap_TRANSPARENT_BRUSH_get() { | |
14914 | PyObject *pyobj; | |
14915 | ||
14916 | pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
14917 | return pyobj; | |
14918 | } | |
14919 | ||
14920 | ||
14921 | static int _wrap_CYAN_BRUSH_set(PyObject *_val) { | |
14922 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only."); | |
14923 | return 1; | |
14924 | } | |
14925 | ||
14926 | ||
14927 | static PyObject *_wrap_CYAN_BRUSH_get() { | |
14928 | PyObject *pyobj; | |
14929 | ||
14930 | pyobj = SWIG_NewPointerObj((void *) wxCYAN_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
14931 | return pyobj; | |
14932 | } | |
14933 | ||
14934 | ||
14935 | static int _wrap_RED_BRUSH_set(PyObject *_val) { | |
14936 | PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only."); | |
14937 | return 1; | |
14938 | } | |
14939 | ||
14940 | ||
14941 | static PyObject *_wrap_RED_BRUSH_get() { | |
14942 | PyObject *pyobj; | |
14943 | ||
14944 | pyobj = SWIG_NewPointerObj((void *) wxRED_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
14945 | return pyobj; | |
14946 | } | |
14947 | ||
14948 | ||
14949 | static int _wrap_GREY_BRUSH_set(PyObject *_val) { | |
14950 | PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only."); | |
14951 | return 1; | |
14952 | } | |
14953 | ||
14954 | ||
14955 | static PyObject *_wrap_GREY_BRUSH_get() { | |
14956 | PyObject *pyobj; | |
14957 | ||
14958 | pyobj = SWIG_NewPointerObj((void *) wxGREY_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
14959 | return pyobj; | |
14960 | } | |
14961 | ||
14962 | ||
14963 | static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) { | |
14964 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only."); | |
14965 | return 1; | |
14966 | } | |
14967 | ||
14968 | ||
14969 | static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() { | |
14970 | PyObject *pyobj; | |
14971 | ||
14972 | pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
14973 | return pyobj; | |
14974 | } | |
14975 | ||
14976 | ||
14977 | static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) { | |
14978 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only."); | |
14979 | return 1; | |
14980 | } | |
14981 | ||
14982 | ||
14983 | static PyObject *_wrap_LIGHT_GREY_BRUSH_get() { | |
14984 | PyObject *pyobj; | |
14985 | ||
14986 | pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
14987 | return pyobj; | |
14988 | } | |
14989 | ||
14990 | ||
14991 | static int _wrap_BLACK_set(PyObject *_val) { | |
14992 | PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only."); | |
14993 | return 1; | |
14994 | } | |
14995 | ||
14996 | ||
14997 | static PyObject *_wrap_BLACK_get() { | |
14998 | PyObject *pyobj; | |
14999 | ||
15000 | pyobj = SWIG_NewPointerObj((void *) wxBLACK, SWIGTYPE_p_wxColour, 0); | |
15001 | return pyobj; | |
15002 | } | |
15003 | ||
15004 | ||
15005 | static int _wrap_WHITE_set(PyObject *_val) { | |
15006 | PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only."); | |
15007 | return 1; | |
15008 | } | |
15009 | ||
15010 | ||
15011 | static PyObject *_wrap_WHITE_get() { | |
15012 | PyObject *pyobj; | |
15013 | ||
15014 | pyobj = SWIG_NewPointerObj((void *) wxWHITE, SWIGTYPE_p_wxColour, 0); | |
15015 | return pyobj; | |
15016 | } | |
15017 | ||
15018 | ||
15019 | static int _wrap_RED_set(PyObject *_val) { | |
15020 | PyErr_SetString(PyExc_TypeError,"Variable RED is read-only."); | |
15021 | return 1; | |
15022 | } | |
15023 | ||
15024 | ||
15025 | static PyObject *_wrap_RED_get() { | |
15026 | PyObject *pyobj; | |
15027 | ||
15028 | pyobj = SWIG_NewPointerObj((void *) wxRED, SWIGTYPE_p_wxColour, 0); | |
15029 | return pyobj; | |
15030 | } | |
15031 | ||
15032 | ||
15033 | static int _wrap_BLUE_set(PyObject *_val) { | |
15034 | PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only."); | |
15035 | return 1; | |
15036 | } | |
15037 | ||
15038 | ||
15039 | static PyObject *_wrap_BLUE_get() { | |
15040 | PyObject *pyobj; | |
15041 | ||
15042 | pyobj = SWIG_NewPointerObj((void *) wxBLUE, SWIGTYPE_p_wxColour, 0); | |
15043 | return pyobj; | |
15044 | } | |
15045 | ||
15046 | ||
15047 | static int _wrap_GREEN_set(PyObject *_val) { | |
15048 | PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only."); | |
15049 | return 1; | |
15050 | } | |
15051 | ||
15052 | ||
15053 | static PyObject *_wrap_GREEN_get() { | |
15054 | PyObject *pyobj; | |
15055 | ||
15056 | pyobj = SWIG_NewPointerObj((void *) wxGREEN, SWIGTYPE_p_wxColour, 0); | |
15057 | return pyobj; | |
15058 | } | |
15059 | ||
15060 | ||
15061 | static int _wrap_CYAN_set(PyObject *_val) { | |
15062 | PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only."); | |
15063 | return 1; | |
15064 | } | |
15065 | ||
15066 | ||
15067 | static PyObject *_wrap_CYAN_get() { | |
15068 | PyObject *pyobj; | |
15069 | ||
15070 | pyobj = SWIG_NewPointerObj((void *) wxCYAN, SWIGTYPE_p_wxColour, 0); | |
15071 | return pyobj; | |
15072 | } | |
15073 | ||
15074 | ||
15075 | static int _wrap_LIGHT_GREY_set(PyObject *_val) { | |
15076 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only."); | |
15077 | return 1; | |
15078 | } | |
15079 | ||
15080 | ||
15081 | static PyObject *_wrap_LIGHT_GREY_get() { | |
15082 | PyObject *pyobj; | |
15083 | ||
15084 | pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY, SWIGTYPE_p_wxColour, 0); | |
15085 | return pyobj; | |
15086 | } | |
15087 | ||
15088 | ||
15089 | static int _wrap_STANDARD_CURSOR_set(PyObject *_val) { | |
15090 | PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only."); | |
15091 | return 1; | |
15092 | } | |
15093 | ||
15094 | ||
15095 | static PyObject *_wrap_STANDARD_CURSOR_get() { | |
15096 | PyObject *pyobj; | |
15097 | ||
15098 | pyobj = SWIG_NewPointerObj((void *) wxSTANDARD_CURSOR, SWIGTYPE_p_wxCursor, 0); | |
15099 | return pyobj; | |
15100 | } | |
15101 | ||
15102 | ||
15103 | static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) { | |
15104 | PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only."); | |
15105 | return 1; | |
15106 | } | |
15107 | ||
15108 | ||
15109 | static PyObject *_wrap_HOURGLASS_CURSOR_get() { | |
15110 | PyObject *pyobj; | |
15111 | ||
15112 | pyobj = SWIG_NewPointerObj((void *) wxHOURGLASS_CURSOR, SWIGTYPE_p_wxCursor, 0); | |
15113 | return pyobj; | |
15114 | } | |
15115 | ||
15116 | ||
15117 | static int _wrap_CROSS_CURSOR_set(PyObject *_val) { | |
15118 | PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only."); | |
15119 | return 1; | |
15120 | } | |
15121 | ||
15122 | ||
15123 | static PyObject *_wrap_CROSS_CURSOR_get() { | |
15124 | PyObject *pyobj; | |
15125 | ||
15126 | pyobj = SWIG_NewPointerObj((void *) wxCROSS_CURSOR, SWIGTYPE_p_wxCursor, 0); | |
15127 | return pyobj; | |
15128 | } | |
15129 | ||
15130 | ||
15131 | static int _wrap_NullBitmap_set(PyObject *_val) { | |
15132 | PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only."); | |
15133 | return 1; | |
15134 | } | |
15135 | ||
15136 | ||
15137 | static PyObject *_wrap_NullBitmap_get() { | |
15138 | PyObject *pyobj; | |
15139 | ||
15140 | pyobj = SWIG_NewPointerObj((void *) &wxNullBitmap, SWIGTYPE_p_wxBitmap, 0); | |
15141 | return pyobj; | |
15142 | } | |
15143 | ||
15144 | ||
15145 | static int _wrap_NullIcon_set(PyObject *_val) { | |
15146 | PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only."); | |
15147 | return 1; | |
15148 | } | |
15149 | ||
15150 | ||
15151 | static PyObject *_wrap_NullIcon_get() { | |
15152 | PyObject *pyobj; | |
15153 | ||
15154 | pyobj = SWIG_NewPointerObj((void *) &wxNullIcon, SWIGTYPE_p_wxIcon, 0); | |
15155 | return pyobj; | |
15156 | } | |
15157 | ||
15158 | ||
15159 | static int _wrap_NullCursor_set(PyObject *_val) { | |
15160 | PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only."); | |
15161 | return 1; | |
15162 | } | |
15163 | ||
15164 | ||
15165 | static PyObject *_wrap_NullCursor_get() { | |
15166 | PyObject *pyobj; | |
15167 | ||
15168 | pyobj = SWIG_NewPointerObj((void *) &wxNullCursor, SWIGTYPE_p_wxCursor, 0); | |
15169 | return pyobj; | |
15170 | } | |
15171 | ||
15172 | ||
15173 | static int _wrap_NullPen_set(PyObject *_val) { | |
15174 | PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only."); | |
15175 | return 1; | |
15176 | } | |
15177 | ||
15178 | ||
15179 | static PyObject *_wrap_NullPen_get() { | |
15180 | PyObject *pyobj; | |
15181 | ||
15182 | pyobj = SWIG_NewPointerObj((void *) &wxNullPen, SWIGTYPE_p_wxPen, 0); | |
15183 | return pyobj; | |
15184 | } | |
15185 | ||
15186 | ||
15187 | static int _wrap_NullBrush_set(PyObject *_val) { | |
15188 | PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only."); | |
15189 | return 1; | |
15190 | } | |
15191 | ||
15192 | ||
15193 | static PyObject *_wrap_NullBrush_get() { | |
15194 | PyObject *pyobj; | |
15195 | ||
15196 | pyobj = SWIG_NewPointerObj((void *) &wxNullBrush, SWIGTYPE_p_wxBrush, 0); | |
15197 | return pyobj; | |
15198 | } | |
15199 | ||
15200 | ||
15201 | static int _wrap_NullPalette_set(PyObject *_val) { | |
15202 | PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only."); | |
15203 | return 1; | |
15204 | } | |
15205 | ||
15206 | ||
15207 | static PyObject *_wrap_NullPalette_get() { | |
15208 | PyObject *pyobj; | |
15209 | ||
15210 | pyobj = SWIG_NewPointerObj((void *) &wxNullPalette, SWIGTYPE_p_wxPalette, 0); | |
15211 | return pyobj; | |
15212 | } | |
15213 | ||
15214 | ||
15215 | static int _wrap_NullFont_set(PyObject *_val) { | |
15216 | PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only."); | |
15217 | return 1; | |
15218 | } | |
15219 | ||
15220 | ||
15221 | static PyObject *_wrap_NullFont_get() { | |
15222 | PyObject *pyobj; | |
15223 | ||
15224 | pyobj = SWIG_NewPointerObj((void *) &wxNullFont, SWIGTYPE_p_wxFont, 0); | |
15225 | return pyobj; | |
15226 | } | |
15227 | ||
15228 | ||
15229 | static int _wrap_NullColour_set(PyObject *_val) { | |
15230 | PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only."); | |
15231 | return 1; | |
15232 | } | |
15233 | ||
15234 | ||
15235 | static PyObject *_wrap_NullColour_get() { | |
15236 | PyObject *pyobj; | |
15237 | ||
15238 | pyobj = SWIG_NewPointerObj((void *) &wxNullColour, SWIGTYPE_p_wxColour, 0); | |
15239 | return pyobj; | |
15240 | } | |
15241 | ||
15242 | ||
15243 | static int _wrap_TheFontList_set(PyObject *_val) { | |
15244 | PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only."); | |
15245 | return 1; | |
15246 | } | |
15247 | ||
15248 | ||
15249 | static PyObject *_wrap_TheFontList_get() { | |
15250 | PyObject *pyobj; | |
15251 | ||
15252 | pyobj = SWIG_NewPointerObj((void *) wxTheFontList, SWIGTYPE_p_wxFontList, 0); | |
15253 | return pyobj; | |
15254 | } | |
15255 | ||
15256 | ||
15257 | static int _wrap_ThePenList_set(PyObject *_val) { | |
15258 | PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only."); | |
15259 | return 1; | |
15260 | } | |
15261 | ||
15262 | ||
15263 | static PyObject *_wrap_ThePenList_get() { | |
15264 | PyObject *pyobj; | |
15265 | ||
15266 | pyobj = SWIG_NewPointerObj((void *) wxThePenList, SWIGTYPE_p_wxPenList, 0); | |
15267 | return pyobj; | |
15268 | } | |
15269 | ||
15270 | ||
15271 | static int _wrap_TheBrushList_set(PyObject *_val) { | |
15272 | PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only."); | |
15273 | return 1; | |
15274 | } | |
15275 | ||
15276 | ||
15277 | static PyObject *_wrap_TheBrushList_get() { | |
15278 | PyObject *pyobj; | |
15279 | ||
15280 | pyobj = SWIG_NewPointerObj((void *) wxTheBrushList, SWIGTYPE_p_wxBrushList, 0); | |
15281 | return pyobj; | |
15282 | } | |
15283 | ||
15284 | ||
15285 | static int _wrap_TheColourDatabase_set(PyObject *_val) { | |
15286 | PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only."); | |
15287 | return 1; | |
15288 | } | |
15289 | ||
15290 | ||
15291 | static PyObject *_wrap_TheColourDatabase_get() { | |
15292 | PyObject *pyobj; | |
15293 | ||
15294 | pyobj = SWIG_NewPointerObj((void *) wxTheColourDatabase, SWIGTYPE_p_wxColourDatabase, 0); | |
15295 | return pyobj; | |
15296 | } | |
15297 | ||
15298 | ||
423f194a | 15299 | static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 15300 | PyObject *resultobj; |
423f194a | 15301 | wxEffects *result; |
d14a1e28 | 15302 | char *kwnames[] = { |
423f194a | 15303 | NULL |
d14a1e28 RD |
15304 | }; |
15305 | ||
423f194a | 15306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail; |
d14a1e28 RD |
15307 | { |
15308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 15309 | result = (wxEffects *)new wxEffects(); |
d14a1e28 RD |
15310 | |
15311 | wxPyEndAllowThreads(__tstate); | |
15312 | if (PyErr_Occurred()) SWIG_fail; | |
15313 | } | |
423f194a | 15314 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEffects, 1); |
d14a1e28 RD |
15315 | return resultobj; |
15316 | fail: | |
15317 | return NULL; | |
15318 | } | |
15319 | ||
15320 | ||
423f194a | 15321 | static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 15322 | PyObject *resultobj; |
423f194a RD |
15323 | wxEffects *arg1 = (wxEffects *) 0 ; |
15324 | wxColour result; | |
d14a1e28 | 15325 | PyObject * obj0 = 0 ; |
d14a1e28 | 15326 | char *kwnames[] = { |
423f194a | 15327 | (char *) "self", NULL |
d14a1e28 RD |
15328 | }; |
15329 | ||
423f194a RD |
15330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail; |
15331 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d14a1e28 RD |
15332 | { |
15333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 15334 | result = ((wxEffects const *)arg1)->GetHighlightColour(); |
d14a1e28 RD |
15335 | |
15336 | wxPyEndAllowThreads(__tstate); | |
15337 | if (PyErr_Occurred()) SWIG_fail; | |
15338 | } | |
423f194a RD |
15339 | { |
15340 | wxColour * resultptr; | |
15341 | resultptr = new wxColour((wxColour &) result); | |
15342 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
15343 | } | |
d14a1e28 RD |
15344 | return resultobj; |
15345 | fail: | |
15346 | return NULL; | |
15347 | } | |
15348 | ||
15349 | ||
423f194a | 15350 | static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 15351 | PyObject *resultobj; |
423f194a RD |
15352 | wxEffects *arg1 = (wxEffects *) 0 ; |
15353 | wxColour result; | |
d14a1e28 | 15354 | PyObject * obj0 = 0 ; |
d14a1e28 | 15355 | char *kwnames[] = { |
423f194a | 15356 | (char *) "self", NULL |
d14a1e28 RD |
15357 | }; |
15358 | ||
423f194a RD |
15359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail; |
15360 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d14a1e28 RD |
15361 | { |
15362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 15363 | result = ((wxEffects const *)arg1)->GetLightShadow(); |
d14a1e28 RD |
15364 | |
15365 | wxPyEndAllowThreads(__tstate); | |
15366 | if (PyErr_Occurred()) SWIG_fail; | |
15367 | } | |
d14a1e28 | 15368 | { |
423f194a RD |
15369 | wxColour * resultptr; |
15370 | resultptr = new wxColour((wxColour &) result); | |
15371 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
d14a1e28 RD |
15372 | } |
15373 | return resultobj; | |
15374 | fail: | |
d14a1e28 RD |
15375 | return NULL; |
15376 | } | |
15377 | ||
15378 | ||
423f194a | 15379 | static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 15380 | PyObject *resultobj; |
423f194a RD |
15381 | wxEffects *arg1 = (wxEffects *) 0 ; |
15382 | wxColour result; | |
d14a1e28 | 15383 | PyObject * obj0 = 0 ; |
d14a1e28 | 15384 | char *kwnames[] = { |
423f194a | 15385 | (char *) "self", NULL |
d14a1e28 RD |
15386 | }; |
15387 | ||
423f194a RD |
15388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail; |
15389 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d14a1e28 RD |
15390 | { |
15391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 15392 | result = ((wxEffects const *)arg1)->GetFaceColour(); |
d14a1e28 RD |
15393 | |
15394 | wxPyEndAllowThreads(__tstate); | |
15395 | if (PyErr_Occurred()) SWIG_fail; | |
15396 | } | |
423f194a RD |
15397 | { |
15398 | wxColour * resultptr; | |
15399 | resultptr = new wxColour((wxColour &) result); | |
15400 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
15401 | } | |
d14a1e28 RD |
15402 | return resultobj; |
15403 | fail: | |
15404 | return NULL; | |
15405 | } | |
15406 | ||
15407 | ||
423f194a | 15408 | static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 15409 | PyObject *resultobj; |
423f194a RD |
15410 | wxEffects *arg1 = (wxEffects *) 0 ; |
15411 | wxColour result; | |
d14a1e28 RD |
15412 | PyObject * obj0 = 0 ; |
15413 | char *kwnames[] = { | |
423f194a | 15414 | (char *) "self", NULL |
d14a1e28 RD |
15415 | }; |
15416 | ||
15417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail; | |
15418 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15419 | { | |
15420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15421 | result = ((wxEffects const *)arg1)->GetMediumShadow(); | |
15422 | ||
15423 | wxPyEndAllowThreads(__tstate); | |
15424 | if (PyErr_Occurred()) SWIG_fail; | |
15425 | } | |
15426 | { | |
15427 | wxColour * resultptr; | |
15428 | resultptr = new wxColour((wxColour &) result); | |
15429 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
15430 | } | |
15431 | return resultobj; | |
15432 | fail: | |
15433 | return NULL; | |
15434 | } | |
15435 | ||
15436 | ||
15437 | static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15438 | PyObject *resultobj; | |
15439 | wxEffects *arg1 = (wxEffects *) 0 ; | |
15440 | wxColour result; | |
15441 | PyObject * obj0 = 0 ; | |
15442 | char *kwnames[] = { | |
15443 | (char *) "self", NULL | |
15444 | }; | |
15445 | ||
15446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail; | |
15447 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15448 | { | |
15449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15450 | result = ((wxEffects const *)arg1)->GetDarkShadow(); | |
15451 | ||
15452 | wxPyEndAllowThreads(__tstate); | |
15453 | if (PyErr_Occurred()) SWIG_fail; | |
15454 | } | |
15455 | { | |
15456 | wxColour * resultptr; | |
15457 | resultptr = new wxColour((wxColour &) result); | |
15458 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
15459 | } | |
15460 | return resultobj; | |
15461 | fail: | |
15462 | return NULL; | |
15463 | } | |
15464 | ||
15465 | ||
15466 | static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15467 | PyObject *resultobj; | |
15468 | wxEffects *arg1 = (wxEffects *) 0 ; | |
15469 | wxColour *arg2 = 0 ; | |
15470 | wxColour temp2 ; | |
15471 | PyObject * obj0 = 0 ; | |
15472 | PyObject * obj1 = 0 ; | |
15473 | char *kwnames[] = { | |
15474 | (char *) "self",(char *) "c", NULL | |
15475 | }; | |
15476 | ||
15477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail; | |
15478 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15479 | { | |
15480 | arg2 = &temp2; | |
15481 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
15482 | } | |
15483 | { | |
15484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15485 | (arg1)->SetHighlightColour((wxColour const &)*arg2); | |
15486 | ||
15487 | wxPyEndAllowThreads(__tstate); | |
15488 | if (PyErr_Occurred()) SWIG_fail; | |
15489 | } | |
15490 | Py_INCREF(Py_None); resultobj = Py_None; | |
15491 | return resultobj; | |
15492 | fail: | |
15493 | return NULL; | |
15494 | } | |
15495 | ||
15496 | ||
15497 | static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15498 | PyObject *resultobj; | |
15499 | wxEffects *arg1 = (wxEffects *) 0 ; | |
15500 | wxColour *arg2 = 0 ; | |
15501 | wxColour temp2 ; | |
15502 | PyObject * obj0 = 0 ; | |
15503 | PyObject * obj1 = 0 ; | |
15504 | char *kwnames[] = { | |
15505 | (char *) "self",(char *) "c", NULL | |
15506 | }; | |
15507 | ||
15508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail; | |
15509 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15510 | { | |
15511 | arg2 = &temp2; | |
15512 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
15513 | } | |
15514 | { | |
15515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15516 | (arg1)->SetLightShadow((wxColour const &)*arg2); | |
15517 | ||
15518 | wxPyEndAllowThreads(__tstate); | |
15519 | if (PyErr_Occurred()) SWIG_fail; | |
15520 | } | |
15521 | Py_INCREF(Py_None); resultobj = Py_None; | |
15522 | return resultobj; | |
15523 | fail: | |
15524 | return NULL; | |
15525 | } | |
15526 | ||
15527 | ||
15528 | static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15529 | PyObject *resultobj; | |
15530 | wxEffects *arg1 = (wxEffects *) 0 ; | |
15531 | wxColour *arg2 = 0 ; | |
15532 | wxColour temp2 ; | |
15533 | PyObject * obj0 = 0 ; | |
15534 | PyObject * obj1 = 0 ; | |
15535 | char *kwnames[] = { | |
15536 | (char *) "self",(char *) "c", NULL | |
15537 | }; | |
15538 | ||
15539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail; | |
15540 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15541 | { | |
15542 | arg2 = &temp2; | |
15543 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
15544 | } | |
15545 | { | |
15546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15547 | (arg1)->SetFaceColour((wxColour const &)*arg2); | |
15548 | ||
15549 | wxPyEndAllowThreads(__tstate); | |
15550 | if (PyErr_Occurred()) SWIG_fail; | |
15551 | } | |
15552 | Py_INCREF(Py_None); resultobj = Py_None; | |
15553 | return resultobj; | |
15554 | fail: | |
15555 | return NULL; | |
15556 | } | |
15557 | ||
15558 | ||
15559 | static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15560 | PyObject *resultobj; | |
15561 | wxEffects *arg1 = (wxEffects *) 0 ; | |
15562 | wxColour *arg2 = 0 ; | |
15563 | wxColour temp2 ; | |
15564 | PyObject * obj0 = 0 ; | |
15565 | PyObject * obj1 = 0 ; | |
15566 | char *kwnames[] = { | |
15567 | (char *) "self",(char *) "c", NULL | |
15568 | }; | |
15569 | ||
15570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail; | |
15571 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15572 | { | |
15573 | arg2 = &temp2; | |
15574 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
15575 | } | |
15576 | { | |
15577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15578 | (arg1)->SetMediumShadow((wxColour const &)*arg2); | |
15579 | ||
15580 | wxPyEndAllowThreads(__tstate); | |
15581 | if (PyErr_Occurred()) SWIG_fail; | |
15582 | } | |
15583 | Py_INCREF(Py_None); resultobj = Py_None; | |
15584 | return resultobj; | |
15585 | fail: | |
15586 | return NULL; | |
15587 | } | |
15588 | ||
15589 | ||
15590 | static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15591 | PyObject *resultobj; | |
15592 | wxEffects *arg1 = (wxEffects *) 0 ; | |
15593 | wxColour *arg2 = 0 ; | |
15594 | wxColour temp2 ; | |
15595 | PyObject * obj0 = 0 ; | |
15596 | PyObject * obj1 = 0 ; | |
15597 | char *kwnames[] = { | |
15598 | (char *) "self",(char *) "c", NULL | |
15599 | }; | |
15600 | ||
15601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail; | |
15602 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15603 | { | |
15604 | arg2 = &temp2; | |
15605 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
15606 | } | |
15607 | { | |
15608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15609 | (arg1)->SetDarkShadow((wxColour const &)*arg2); | |
15610 | ||
15611 | wxPyEndAllowThreads(__tstate); | |
15612 | if (PyErr_Occurred()) SWIG_fail; | |
15613 | } | |
15614 | Py_INCREF(Py_None); resultobj = Py_None; | |
15615 | return resultobj; | |
15616 | fail: | |
15617 | return NULL; | |
15618 | } | |
15619 | ||
15620 | ||
15621 | static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15622 | PyObject *resultobj; | |
15623 | wxEffects *arg1 = (wxEffects *) 0 ; | |
15624 | wxColour *arg2 = 0 ; | |
15625 | wxColour *arg3 = 0 ; | |
15626 | wxColour *arg4 = 0 ; | |
15627 | wxColour *arg5 = 0 ; | |
15628 | wxColour *arg6 = 0 ; | |
15629 | wxColour temp2 ; | |
15630 | wxColour temp3 ; | |
15631 | wxColour temp4 ; | |
15632 | wxColour temp5 ; | |
15633 | wxColour temp6 ; | |
15634 | PyObject * obj0 = 0 ; | |
15635 | PyObject * obj1 = 0 ; | |
15636 | PyObject * obj2 = 0 ; | |
15637 | PyObject * obj3 = 0 ; | |
15638 | PyObject * obj4 = 0 ; | |
15639 | PyObject * obj5 = 0 ; | |
15640 | char *kwnames[] = { | |
15641 | (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL | |
15642 | }; | |
15643 | ||
15644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
15645 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15646 | { | |
15647 | arg2 = &temp2; | |
15648 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
15649 | } | |
15650 | { | |
15651 | arg3 = &temp3; | |
15652 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
15653 | } | |
15654 | { | |
15655 | arg4 = &temp4; | |
15656 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
15657 | } | |
15658 | { | |
15659 | arg5 = &temp5; | |
15660 | if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail; | |
15661 | } | |
15662 | { | |
15663 | arg6 = &temp6; | |
15664 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
15665 | } | |
15666 | { | |
15667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15668 | (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6); | |
15669 | ||
15670 | wxPyEndAllowThreads(__tstate); | |
15671 | if (PyErr_Occurred()) SWIG_fail; | |
15672 | } | |
15673 | Py_INCREF(Py_None); resultobj = Py_None; | |
15674 | return resultobj; | |
15675 | fail: | |
15676 | return NULL; | |
15677 | } | |
15678 | ||
15679 | ||
15680 | static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15681 | PyObject *resultobj; | |
15682 | wxEffects *arg1 = (wxEffects *) 0 ; | |
15683 | wxDC *arg2 = 0 ; | |
15684 | wxRect *arg3 = 0 ; | |
15685 | int arg4 = (int) 1 ; | |
15686 | wxRect temp3 ; | |
15687 | PyObject * obj0 = 0 ; | |
15688 | PyObject * obj1 = 0 ; | |
15689 | PyObject * obj2 = 0 ; | |
15690 | char *kwnames[] = { | |
15691 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL | |
15692 | }; | |
15693 | ||
15694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|i:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail; | |
15695 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15696 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15697 | if (arg2 == NULL) { | |
15698 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15699 | } | |
15700 | { | |
15701 | arg3 = &temp3; | |
15702 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
15703 | } | |
15704 | { | |
15705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15706 | (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4); | |
15707 | ||
15708 | wxPyEndAllowThreads(__tstate); | |
15709 | if (PyErr_Occurred()) SWIG_fail; | |
15710 | } | |
15711 | Py_INCREF(Py_None); resultobj = Py_None; | |
15712 | return resultobj; | |
15713 | fail: | |
15714 | return NULL; | |
15715 | } | |
15716 | ||
15717 | ||
15718 | static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15719 | PyObject *resultobj; | |
15720 | wxEffects *arg1 = (wxEffects *) 0 ; | |
15721 | wxRect *arg2 = 0 ; | |
15722 | wxDC *arg3 = 0 ; | |
15723 | wxBitmap *arg4 = 0 ; | |
15724 | bool result; | |
15725 | wxRect temp2 ; | |
15726 | PyObject * obj0 = 0 ; | |
15727 | PyObject * obj1 = 0 ; | |
15728 | PyObject * obj2 = 0 ; | |
15729 | PyObject * obj3 = 0 ; | |
15730 | char *kwnames[] = { | |
15731 | (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL | |
15732 | }; | |
15733 | ||
15734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15735 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15736 | { | |
15737 | arg2 = &temp2; | |
15738 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
15739 | } | |
15740 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15741 | if (arg3 == NULL) { | |
15742 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15743 | } | |
15744 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15745 | if (arg4 == NULL) { | |
15746 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15747 | } | |
15748 | { | |
15749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15750 | result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4); | |
15751 | ||
15752 | wxPyEndAllowThreads(__tstate); | |
15753 | if (PyErr_Occurred()) SWIG_fail; | |
15754 | } | |
15755 | resultobj = PyInt_FromLong((long)result); | |
15756 | return resultobj; | |
15757 | fail: | |
15758 | return NULL; | |
15759 | } | |
15760 | ||
15761 | ||
15762 | static PyObject * Effects_swigregister(PyObject *self, PyObject *args) { | |
15763 | PyObject *obj; | |
15764 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15765 | SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj); | |
15766 | Py_INCREF(obj); | |
15767 | return Py_BuildValue((char *)""); | |
15768 | } | |
15769 | static PyMethodDef SwigMethods[] = { | |
15770 | { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS }, | |
15771 | { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS }, | |
15772 | { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS }, | |
15773 | { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS }, | |
15774 | { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS }, | |
15775 | { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS }, | |
15776 | { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS }, | |
15777 | { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS }, | |
15778 | { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS }, | |
15779 | { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS }, | |
15780 | { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS }, | |
15781 | { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS }, | |
15782 | { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS }, | |
15783 | { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS }, | |
15784 | { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS }, | |
15785 | { (char *)"Colour_SetRBG", (PyCFunction) _wrap_Colour_SetRBG, METH_VARARGS | METH_KEYWORDS }, | |
15786 | { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS }, | |
15787 | { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS }, | |
15788 | { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS }, | |
15789 | { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS }, | |
15790 | { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS }, | |
15791 | { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS }, | |
15792 | { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
15793 | { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS }, | |
15794 | { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS }, | |
15795 | { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS }, | |
15796 | { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS }, | |
15797 | { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS }, | |
15798 | { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS }, | |
15799 | { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
15800 | { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS }, | |
15801 | { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
15802 | { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
15803 | { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS }, | |
15804 | { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS }, | |
15805 | { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
15806 | { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS }, | |
15807 | { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
15808 | { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
15809 | { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS }, | |
15810 | { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS }, | |
15811 | { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS }, | |
15812 | { (char *)"new_PyPen", (PyCFunction) _wrap_new_PyPen, METH_VARARGS | METH_KEYWORDS }, | |
15813 | { (char *)"delete_PyPen", (PyCFunction) _wrap_delete_PyPen, METH_VARARGS | METH_KEYWORDS }, | |
15814 | { (char *)"PyPen_SetDashes", (PyCFunction) _wrap_PyPen_SetDashes, METH_VARARGS | METH_KEYWORDS }, | |
15815 | { (char *)"PyPen_swigregister", PyPen_swigregister, METH_VARARGS }, | |
15816 | { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS }, | |
15817 | { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS }, | |
15818 | { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
15819 | { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
15820 | { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS }, | |
15821 | { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
15822 | { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
15823 | { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS }, | |
15824 | { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS }, | |
15825 | { (char *)"Brush_GetMacTheme", (PyCFunction) _wrap_Brush_GetMacTheme, METH_VARARGS | METH_KEYWORDS }, | |
15826 | { (char *)"Brush_SetMacTheme", (PyCFunction) _wrap_Brush_SetMacTheme, METH_VARARGS | METH_KEYWORDS }, | |
15827 | { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS }, | |
15828 | { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS }, | |
15829 | { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS }, | |
15830 | { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS }, | |
15831 | { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
15832 | { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS }, | |
15833 | { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
15834 | { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS }, | |
15835 | { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS }, | |
15836 | { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
15837 | { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
15838 | { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
15839 | { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS }, | |
15840 | { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
15841 | { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
15842 | { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS }, | |
15843 | { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS }, | |
15844 | { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
15845 | { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
15846 | { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
15847 | { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
15848 | { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
15849 | { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
15850 | { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS }, | |
15851 | { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS }, | |
15852 | { (char *)"new_MaskColour", (PyCFunction) _wrap_new_MaskColour, METH_VARARGS | METH_KEYWORDS }, | |
15853 | { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS }, | |
15854 | { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS }, | |
15855 | { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS }, | |
15856 | { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS }, | |
15857 | { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS }, | |
15858 | { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
15859 | { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
15860 | { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS }, | |
15861 | { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
15862 | { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
15863 | { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
15864 | { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
15865 | { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
15866 | { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
15867 | { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
15868 | { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS }, | |
15869 | { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS }, | |
15870 | { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS }, | |
15871 | { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
15872 | { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS }, | |
15873 | { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS }, | |
15874 | { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS }, | |
15875 | { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
15876 | { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS }, | |
15877 | { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS }, | |
15878 | { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS }, | |
15879 | { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
15880 | { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS }, | |
15881 | { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
15882 | { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS }, | |
15883 | { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
15884 | { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS }, | |
15885 | { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS }, | |
15886 | { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS }, | |
15887 | { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS }, | |
15888 | { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS }, | |
15889 | { (char *)"new_CursorFromBits", (PyCFunction) _wrap_new_CursorFromBits, METH_VARARGS | METH_KEYWORDS }, | |
15890 | { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS }, | |
15891 | { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS }, | |
15892 | { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS }, | |
15893 | { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
15894 | { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS }, | |
15895 | { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS }, | |
15896 | { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS }, | |
15897 | { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS }, | |
15898 | { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS }, | |
15899 | { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS }, | |
15900 | { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS }, | |
15901 | { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS }, | |
15902 | { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
15903 | { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
15904 | { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS }, | |
15905 | { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
15906 | { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS }, | |
15907 | { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS }, | |
15908 | { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS }, | |
15909 | { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
15910 | { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS }, | |
15911 | { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS }, | |
15912 | { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS }, | |
15913 | { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS }, | |
15914 | { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS }, | |
15915 | { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS }, | |
15916 | { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS }, | |
15917 | { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS }, | |
15918 | { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
15919 | { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
15920 | { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS }, | |
15921 | { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS }, | |
15922 | { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS }, | |
15923 | { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
15924 | { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS }, | |
15925 | { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
15926 | { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
15927 | { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS }, | |
15928 | { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS }, | |
15929 | { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS }, | |
15930 | { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS }, | |
15931 | { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS }, | |
15932 | { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
15933 | { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
15934 | { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS }, | |
15935 | { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS }, | |
15936 | { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
15937 | { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
15938 | { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS }, | |
15939 | { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
15940 | { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
15941 | { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS }, | |
15942 | { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
15943 | { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
15944 | { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
15945 | { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
15946 | { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
15947 | { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
15948 | { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS }, | |
15949 | { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
15950 | { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS }, | |
15951 | { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS }, | |
15952 | { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS }, | |
15953 | { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS }, | |
15954 | { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS }, | |
15955 | { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS }, | |
15956 | { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS }, | |
15957 | { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS }, | |
15958 | { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS }, | |
15959 | { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS }, | |
15960 | { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS }, | |
15961 | { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS }, | |
15962 | { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS }, | |
15963 | { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS }, | |
15964 | { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS }, | |
15965 | { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS }, | |
15966 | { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS }, | |
15967 | { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS }, | |
15968 | { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS }, | |
15969 | { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS }, | |
15970 | { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS }, | |
15971 | { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS }, | |
15972 | { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS }, | |
15973 | { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
15974 | { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS }, | |
15975 | { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS }, | |
15976 | { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS }, | |
15977 | { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS }, | |
15978 | { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS }, | |
15979 | { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS }, | |
15980 | { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS }, | |
15981 | { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS }, | |
15982 | { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS }, | |
15983 | { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS }, | |
15984 | { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS }, | |
15985 | { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS }, | |
15986 | { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS }, | |
15987 | { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS }, | |
15988 | { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS }, | |
15989 | { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS }, | |
15990 | { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS }, | |
15991 | { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS }, | |
15992 | { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
15993 | { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS }, | |
15994 | { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
15995 | { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS }, | |
15996 | { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
15997 | { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
15998 | { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
15999 | { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
16000 | { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS }, | |
16001 | { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS }, | |
16002 | { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, | |
16003 | { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
16004 | { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS }, | |
16005 | { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
16006 | { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
16007 | { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
16008 | { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
16009 | { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
16010 | { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
16011 | { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS }, | |
16012 | { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, | |
16013 | { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS }, | |
16014 | { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS }, | |
16015 | { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS }, | |
16016 | { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS }, | |
16017 | { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS }, | |
16018 | { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
16019 | { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
16020 | { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS }, | |
16021 | { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS }, | |
16022 | { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS }, | |
16023 | { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
16024 | { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS }, | |
16025 | { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS }, | |
16026 | { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS }, | |
16027 | { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS }, | |
16028 | { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS }, | |
16029 | { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS }, | |
16030 | { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS }, | |
16031 | { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS }, | |
16032 | { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS }, | |
16033 | { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS }, | |
16034 | { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS }, | |
16035 | { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS }, | |
16036 | { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS }, | |
16037 | { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS }, | |
16038 | { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS }, | |
16039 | { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS }, | |
16040 | { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS }, | |
16041 | { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS }, | |
16042 | { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS }, | |
16043 | { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
16044 | { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS }, | |
16045 | { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS }, | |
16046 | { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS }, | |
16047 | { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS }, | |
16048 | { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS }, | |
16049 | { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS }, | |
16050 | { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS }, | |
16051 | { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS }, | |
16052 | { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS }, | |
16053 | { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS }, | |
16054 | { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS }, | |
16055 | { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS }, | |
16056 | { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS }, | |
16057 | { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS }, | |
16058 | { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS }, | |
16059 | { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS }, | |
16060 | { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS }, | |
16061 | { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS }, | |
16062 | { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS }, | |
16063 | { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS }, | |
16064 | { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS }, | |
16065 | { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS }, | |
16066 | { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS }, | |
16067 | { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS }, | |
16068 | { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS }, | |
16069 | { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS }, | |
16070 | { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS }, | |
16071 | { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS }, | |
16072 | { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS }, | |
16073 | { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS }, | |
16074 | { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
16075 | { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS }, | |
16076 | { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS }, | |
16077 | { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS }, | |
16078 | { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS }, | |
16079 | { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS }, | |
16080 | { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS }, | |
16081 | { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS }, | |
16082 | { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS }, | |
16083 | { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS }, | |
16084 | { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS }, | |
16085 | { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS }, | |
16086 | { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS }, | |
16087 | { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS }, | |
16088 | { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS }, | |
16089 | { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS }, | |
16090 | { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS }, | |
16091 | { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS }, | |
16092 | { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS }, | |
16093 | { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS }, | |
16094 | { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS }, | |
16095 | { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS }, | |
16096 | { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS }, | |
16097 | { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS }, | |
16098 | { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS }, | |
16099 | { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS }, | |
16100 | { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS }, | |
16101 | { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
16102 | { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS }, | |
16103 | { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS }, | |
16104 | { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS }, | |
16105 | { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS }, | |
16106 | { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS }, | |
16107 | { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS }, | |
16108 | { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS }, | |
16109 | { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS }, | |
16110 | { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS }, | |
16111 | { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS }, | |
16112 | { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS }, | |
16113 | { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS }, | |
16114 | { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS }, | |
16115 | { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS }, | |
16116 | { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS }, | |
16117 | { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS }, | |
16118 | { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
16119 | { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS }, | |
16120 | { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS }, | |
16121 | { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS }, | |
16122 | { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
16123 | { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS }, | |
0f774bef | 16124 | { (char *)"DC_SetClippingRegionXY", (PyCFunction) _wrap_DC_SetClippingRegionXY, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
16125 | { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS }, |
16126 | { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS }, | |
16127 | { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS }, | |
16128 | { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS }, | |
16129 | { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS }, | |
16130 | { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS }, | |
16131 | { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
16132 | { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
16133 | { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
16134 | { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
16135 | { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 16136 | { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS }, |
44127b65 | 16137 | { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 16138 | { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS }, |
44127b65 | 16139 | { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
16140 | { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS }, |
16141 | { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS }, | |
16142 | { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS }, | |
16143 | { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS }, | |
16144 | { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS }, | |
16145 | { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS }, | |
16146 | { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS }, | |
16147 | { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS }, | |
16148 | { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
16149 | { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
16150 | { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
16151 | { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS }, | |
16152 | { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS }, | |
16153 | { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
16154 | { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS }, | |
16155 | { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS }, | |
16156 | { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
16157 | { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS }, | |
16158 | { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
16159 | { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
16160 | { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
16161 | { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
16162 | { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
16163 | { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
16164 | { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
16165 | { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
16166 | { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS }, | |
16167 | { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 16168 | { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, |
44127b65 | 16169 | { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 16170 | { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 16171 | { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, |
44127b65 | 16172 | { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
16173 | { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, |
16174 | { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS }, | |
16175 | { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, | |
16176 | { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, | |
16177 | { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
16178 | { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
16179 | { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
16180 | { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
16181 | { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS }, | |
16182 | { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS }, | |
16183 | { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS }, | |
16184 | { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS }, | |
16185 | { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
16186 | { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS }, | |
16187 | { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS }, | |
16188 | { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS }, | |
16189 | { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS }, | |
16190 | { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS }, | |
16191 | { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS }, | |
16192 | { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS }, | |
16193 | { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS }, | |
16194 | { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS }, | |
16195 | { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS }, | |
16196 | { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS }, | |
16197 | { (char *)"new_BufferedDC", (PyCFunction) _wrap_new_BufferedDC, METH_VARARGS | METH_KEYWORDS }, | |
16198 | { (char *)"new_BufferedDCInternalBuffer", (PyCFunction) _wrap_new_BufferedDCInternalBuffer, METH_VARARGS | METH_KEYWORDS }, | |
16199 | { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS }, | |
16200 | { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS }, | |
16201 | { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS }, | |
16202 | { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS }, | |
16203 | { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS }, | |
16204 | { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS }, | |
16205 | { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
16206 | { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
16207 | { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS }, | |
16208 | { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS }, | |
16209 | { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS }, | |
16210 | { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS }, | |
16211 | { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS }, | |
16212 | { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS }, | |
16213 | { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS }, | |
16214 | { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS }, | |
16215 | { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS }, | |
16216 | { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS }, | |
16217 | { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
16218 | { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
16219 | { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS }, | |
16220 | { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS }, | |
16221 | { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS }, | |
16222 | { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS }, | |
16223 | { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS }, | |
16224 | { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS }, | |
16225 | { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS }, | |
16226 | { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS }, | |
16227 | { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS }, | |
16228 | { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS }, | |
16229 | { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS }, | |
16230 | { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS }, | |
16231 | { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS }, | |
16232 | { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
16233 | { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS }, | |
16234 | { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS }, | |
16235 | { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
16236 | { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS }, | |
16237 | { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS }, | |
16238 | { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
16239 | { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS }, | |
16240 | { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS }, | |
16241 | { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS }, | |
16242 | { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS }, | |
16243 | { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
16244 | { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS }, | |
16245 | { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS }, | |
16246 | { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS }, | |
16247 | { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS }, | |
16248 | { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
16249 | { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS }, | |
16250 | { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS }, | |
16251 | { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS }, | |
16252 | { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS }, | |
16253 | { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS }, | |
16254 | { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS }, | |
16255 | { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS }, | |
16256 | { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS }, | |
16257 | { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS }, | |
16258 | { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS }, | |
16259 | { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS }, | |
16260 | { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
16261 | { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
16262 | { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS }, |
16263 | { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS }, | |
16264 | { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS }, | |
16265 | { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS }, | |
16266 | { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS }, | |
16267 | { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS }, | |
16268 | { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS }, | |
16269 | { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS }, | |
16270 | { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS }, | |
16271 | { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS }, | |
16272 | { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS }, | |
16273 | { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS }, | |
16274 | { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS }, | |
16275 | { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS }, | |
16276 | { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS }, | |
16277 | { NULL, NULL } | |
16278 | }; | |
16279 | ||
16280 | ||
16281 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
16282 | ||
423f194a RD |
16283 | static void *_p_wxControlTo_p_wxWindow(void *x) { |
16284 | return (void *)((wxWindow *) ((wxControl *) x)); | |
16285 | } | |
16286 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
16287 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
16288 | } | |
16289 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
16290 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
16291 | } | |
d14a1e28 RD |
16292 | static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) { |
16293 | return (void *)((wxMemoryDC *) ((wxBufferedDC *) x)); | |
16294 | } | |
16295 | static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) { | |
16296 | return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
16297 | } | |
d14a1e28 RD |
16298 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { |
16299 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
16300 | } | |
16301 | static void *_p_wxPenTo_p_wxObject(void *x) { | |
16302 | return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x)); | |
16303 | } | |
16304 | static void *_p_wxRegionIteratorTo_p_wxObject(void *x) { | |
16305 | return (void *)((wxObject *) ((wxRegionIterator *) x)); | |
16306 | } | |
16307 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
16308 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
16309 | } | |
16310 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
16311 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
16312 | } | |
16313 | static void *_p_wxColourDatabaseTo_p_wxObject(void *x) { | |
16314 | return (void *)((wxObject *) ((wxColourDatabase *) x)); | |
16315 | } | |
16316 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
16317 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
16318 | } | |
16319 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
16320 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
16321 | } | |
16322 | static void *_p_wxIconTo_p_wxObject(void *x) { | |
16323 | return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x)); | |
16324 | } | |
16325 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
16326 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
16327 | } | |
16328 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
16329 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
16330 | } | |
16331 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
16332 | return (void *)((wxObject *) ((wxSizer *) x)); | |
16333 | } | |
16334 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
16335 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
16336 | } | |
16337 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
16338 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
16339 | } | |
16340 | static void *_p_wxPenListTo_p_wxObject(void *x) { | |
16341 | return (void *)((wxObject *) ((wxPenList *) x)); | |
16342 | } | |
16343 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
16344 | return (void *)((wxObject *) ((wxEvent *) x)); | |
16345 | } | |
16346 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
16347 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
16348 | } | |
16349 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
16350 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
16351 | } | |
16352 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
16353 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
16354 | } | |
16355 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
16356 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
16357 | } | |
16358 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
16359 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
16360 | } | |
16361 | static void *_p_wxDCTo_p_wxObject(void *x) { | |
16362 | return (void *)((wxObject *) ((wxDC *) x)); | |
16363 | } | |
16364 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
16365 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
16366 | } | |
16367 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
16368 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
16369 | } | |
16370 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
16371 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
16372 | } | |
16373 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
16374 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
16375 | } | |
16376 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
16377 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
16378 | } | |
16379 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
16380 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
16381 | } | |
16382 | static void *_p_wxClientDCTo_p_wxObject(void *x) { | |
16383 | return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x)); | |
16384 | } | |
16385 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
16386 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
16387 | } | |
16388 | static void *_p_wxMemoryDCTo_p_wxObject(void *x) { | |
16389 | return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x)); | |
16390 | } | |
16391 | static void *_p_wxRegionTo_p_wxObject(void *x) { | |
16392 | return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x)); | |
16393 | } | |
16394 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
16395 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
16396 | } | |
16397 | static void *_p_wxWindowDCTo_p_wxObject(void *x) { | |
16398 | return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x)); | |
16399 | } | |
16400 | static void *_p_wxGDIObjectTo_p_wxObject(void *x) { | |
16401 | return (void *)((wxObject *) ((wxGDIObject *) x)); | |
16402 | } | |
16403 | static void *_p_wxEffectsTo_p_wxObject(void *x) { | |
16404 | return (void *)((wxObject *) ((wxEffects *) x)); | |
16405 | } | |
16406 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
16407 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
16408 | } | |
16409 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
16410 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
16411 | } | |
16412 | static void *_p_wxPostScriptDCTo_p_wxObject(void *x) { | |
16413 | return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x)); | |
16414 | } | |
16415 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
16416 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
16417 | } | |
16418 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
16419 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
16420 | } | |
16421 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
16422 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
16423 | } | |
16424 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
16425 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
16426 | } | |
16427 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
16428 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
16429 | } | |
16430 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
16431 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
16432 | } | |
16433 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
16434 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
16435 | } | |
16436 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
16437 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
16438 | } | |
16439 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
16440 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
16441 | } | |
16442 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
16443 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
16444 | } | |
16445 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
16446 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
16447 | } | |
16448 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
16449 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
16450 | } | |
16451 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
16452 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
16453 | } | |
16454 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
16455 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
16456 | } | |
16457 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
16458 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
16459 | } | |
16460 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
16461 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
16462 | } | |
16463 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
16464 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
16465 | } | |
16466 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
16467 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
16468 | } | |
16469 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
16470 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
16471 | } | |
16472 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
16473 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
16474 | } | |
16475 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
16476 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
16477 | } | |
16478 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
16479 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
16480 | } | |
16481 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
16482 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
16483 | } | |
16484 | static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) { | |
16485 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
16486 | } | |
16487 | static void *_p_wxPaintDCTo_p_wxObject(void *x) { | |
16488 | return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x)); | |
16489 | } | |
16490 | static void *_p_wxPrinterDCTo_p_wxObject(void *x) { | |
16491 | return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x)); | |
16492 | } | |
16493 | static void *_p_wxScreenDCTo_p_wxObject(void *x) { | |
16494 | return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x)); | |
16495 | } | |
41f1cec7 RD |
16496 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
16497 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
16498 | } | |
d14a1e28 RD |
16499 | static void *_p_wxImageTo_p_wxObject(void *x) { |
16500 | return (void *)((wxObject *) ((wxImage *) x)); | |
16501 | } | |
16502 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
16503 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
16504 | } | |
d14a1e28 RD |
16505 | static void *_p_wxPaletteTo_p_wxObject(void *x) { |
16506 | return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x)); | |
16507 | } | |
16508 | static void *_p_wxBufferedDCTo_p_wxObject(void *x) { | |
16509 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x)); | |
16510 | } | |
16511 | static void *_p_wxImageListTo_p_wxObject(void *x) { | |
16512 | return (void *)((wxObject *) ((wxImageList *) x)); | |
16513 | } | |
16514 | static void *_p_wxCursorTo_p_wxObject(void *x) { | |
16515 | return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x)); | |
16516 | } | |
16517 | static void *_p_wxEncodingConverterTo_p_wxObject(void *x) { | |
16518 | return (void *)((wxObject *) ((wxEncodingConverter *) x)); | |
16519 | } | |
16520 | static void *_p_wxMirrorDCTo_p_wxObject(void *x) { | |
16521 | return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x)); | |
16522 | } | |
16523 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
16524 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
16525 | } | |
16526 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
16527 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
16528 | } | |
16529 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
16530 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
16531 | } | |
16532 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
16533 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
16534 | } | |
16535 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
16536 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
16537 | } | |
16538 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
16539 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
16540 | } | |
16541 | static void *_p_wxMetaFileDCTo_p_wxObject(void *x) { | |
16542 | return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x)); | |
16543 | } | |
16544 | static void *_p_wxBrushListTo_p_wxObject(void *x) { | |
16545 | return (void *)((wxObject *) ((wxBrushList *) x)); | |
16546 | } | |
16547 | static void *_p_wxPyPenTo_p_wxObject(void *x) { | |
16548 | return (void *)((wxObject *) (wxGDIObject *)(wxPen *) ((wxPyPen *) x)); | |
16549 | } | |
16550 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
16551 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
16552 | } | |
16553 | static void *_p_wxBitmapTo_p_wxObject(void *x) { | |
16554 | return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x)); | |
16555 | } | |
16556 | static void *_p_wxMaskTo_p_wxObject(void *x) { | |
16557 | return (void *)((wxObject *) ((wxMask *) x)); | |
16558 | } | |
16559 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
16560 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
16561 | } | |
16562 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
16563 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
16564 | } | |
16565 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
16566 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
16567 | } | |
16568 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
16569 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
16570 | } | |
16571 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
16572 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
16573 | } | |
16574 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
16575 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
16576 | } | |
16577 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
16578 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
16579 | } | |
16580 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
16581 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
16582 | } | |
16583 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
16584 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
16585 | } | |
16586 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
16587 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
16588 | } | |
16589 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
16590 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
16591 | } | |
16592 | static void *_p_wxFontTo_p_wxObject(void *x) { | |
16593 | return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x)); | |
16594 | } | |
16595 | static void *_p_wxBrushTo_p_wxObject(void *x) { | |
16596 | return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x)); | |
16597 | } | |
16598 | static void *_p_wxMetaFileTo_p_wxObject(void *x) { | |
16599 | return (void *)((wxObject *) ((wxMetaFile *) x)); | |
16600 | } | |
16601 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
16602 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
16603 | } | |
16604 | static void *_p_wxColourTo_p_wxObject(void *x) { | |
16605 | return (void *)((wxObject *) ((wxColour *) x)); | |
16606 | } | |
16607 | static void *_p_wxFontListTo_p_wxObject(void *x) { | |
16608 | return (void *)((wxObject *) ((wxFontList *) x)); | |
16609 | } | |
16610 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
16611 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
16612 | } | |
16613 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
16614 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
16615 | } | |
423f194a RD |
16616 | static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) { |
16617 | return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
d14a1e28 | 16618 | } |
423f194a RD |
16619 | static void *_p_wxBufferedDCTo_p_wxDC(void *x) { |
16620 | return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x)); | |
d14a1e28 | 16621 | } |
423f194a RD |
16622 | static void *_p_wxScreenDCTo_p_wxDC(void *x) { |
16623 | return (void *)((wxDC *) ((wxScreenDC *) x)); | |
16624 | } | |
16625 | static void *_p_wxMirrorDCTo_p_wxDC(void *x) { | |
16626 | return (void *)((wxDC *) ((wxMirrorDC *) x)); | |
16627 | } | |
16628 | static void *_p_wxMemoryDCTo_p_wxDC(void *x) { | |
16629 | return (void *)((wxDC *) ((wxMemoryDC *) x)); | |
16630 | } | |
16631 | static void *_p_wxWindowDCTo_p_wxDC(void *x) { | |
16632 | return (void *)((wxDC *) ((wxWindowDC *) x)); | |
16633 | } | |
16634 | static void *_p_wxMetaFileDCTo_p_wxDC(void *x) { | |
16635 | return (void *)((wxDC *) ((wxMetaFileDC *) x)); | |
16636 | } | |
16637 | static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) { | |
16638 | return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
16639 | } | |
16640 | static void *_p_wxClientDCTo_p_wxDC(void *x) { | |
16641 | return (void *)((wxDC *) ((wxClientDC *) x)); | |
16642 | } | |
16643 | static void *_p_wxPaintDCTo_p_wxDC(void *x) { | |
16644 | return (void *)((wxDC *) ((wxPaintDC *) x)); | |
16645 | } | |
16646 | static void *_p_wxPostScriptDCTo_p_wxDC(void *x) { | |
16647 | return (void *)((wxDC *) ((wxPostScriptDC *) x)); | |
16648 | } | |
16649 | static void *_p_wxPrinterDCTo_p_wxDC(void *x) { | |
16650 | return (void *)((wxDC *) ((wxPrinterDC *) x)); | |
16651 | } | |
16652 | static void *_p_wxPyPenTo_p_wxGDIObject(void *x) { | |
16653 | return (void *)((wxGDIObject *) (wxPen *) ((wxPyPen *) x)); | |
16654 | } | |
16655 | static void *_p_wxIconTo_p_wxGDIObject(void *x) { | |
16656 | return (void *)((wxGDIObject *) ((wxIcon *) x)); | |
16657 | } | |
16658 | static void *_p_wxPaletteTo_p_wxGDIObject(void *x) { | |
16659 | return (void *)((wxGDIObject *) ((wxPalette *) x)); | |
16660 | } | |
16661 | static void *_p_wxPenTo_p_wxGDIObject(void *x) { | |
16662 | return (void *)((wxGDIObject *) ((wxPen *) x)); | |
16663 | } | |
16664 | static void *_p_wxFontTo_p_wxGDIObject(void *x) { | |
16665 | return (void *)((wxGDIObject *) ((wxFont *) x)); | |
16666 | } | |
16667 | static void *_p_wxCursorTo_p_wxGDIObject(void *x) { | |
16668 | return (void *)((wxGDIObject *) ((wxCursor *) x)); | |
16669 | } | |
16670 | static void *_p_wxBitmapTo_p_wxGDIObject(void *x) { | |
16671 | return (void *)((wxGDIObject *) ((wxBitmap *) x)); | |
16672 | } | |
16673 | static void *_p_wxRegionTo_p_wxGDIObject(void *x) { | |
16674 | return (void *)((wxGDIObject *) ((wxRegion *) x)); | |
16675 | } | |
16676 | static void *_p_wxBrushTo_p_wxGDIObject(void *x) { | |
16677 | return (void *)((wxGDIObject *) ((wxBrush *) x)); | |
16678 | } | |
16679 | static void *_p_wxPyPenTo_p_wxPen(void *x) { | |
16680 | return (void *)((wxPen *) ((wxPyPen *) x)); | |
d14a1e28 RD |
16681 | } |
16682 | static swig_type_info _swigt__p_wxPostScriptDC[] = {{"_p_wxPostScriptDC", 0, "wxPostScriptDC *", 0},{"_p_wxPostScriptDC"},{0}}; | |
d14a1e28 RD |
16683 | static swig_type_info _swigt__p_wxBrush[] = {{"_p_wxBrush", 0, "wxBrush *", 0},{"_p_wxBrush"},{0}}; |
16684 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}}; | |
d14a1e28 RD |
16685 | 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}}; |
16686 | static swig_type_info _swigt__p_wxMirrorDC[] = {{"_p_wxMirrorDC", 0, "wxMirrorDC *", 0},{"_p_wxMirrorDC"},{0}}; | |
16687 | static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "byte *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}}; | |
16688 | static swig_type_info _swigt__p_wxPyFontEnumerator[] = {{"_p_wxPyFontEnumerator", 0, "wxPyFontEnumerator *", 0},{"_p_wxPyFontEnumerator"},{0}}; | |
16689 | static swig_type_info _swigt__p_wxIconLocation[] = {{"_p_wxIconLocation", 0, "wxIconLocation *", 0},{"_p_wxIconLocation"},{0}}; | |
16690 | static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0},{"_p_wxImage"},{0}}; | |
16691 | static swig_type_info _swigt__p_wxMetaFileDC[] = {{"_p_wxMetaFileDC", 0, "wxMetaFileDC *", 0},{"_p_wxMetaFileDC"},{0}}; | |
16692 | static swig_type_info _swigt__p_wxMask[] = {{"_p_wxMask", 0, "wxMask *", 0},{"_p_wxMask"},{0}}; | |
16693 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}}; | |
16694 | 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}}; | |
16695 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}}; | |
16696 | static swig_type_info _swigt__p_double[] = {{"_p_double", 0, "double *", 0},{"_p_double"},{0}}; | |
16697 | 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}}; | |
16698 | static swig_type_info _swigt__p_wxFontMapper[] = {{"_p_wxFontMapper", 0, "wxFontMapper *", 0},{"_p_wxFontMapper"},{0}}; | |
d14a1e28 RD |
16699 | static swig_type_info _swigt__p_wxEffects[] = {{"_p_wxEffects", 0, "wxEffects *", 0},{"_p_wxEffects"},{0}}; |
16700 | static swig_type_info _swigt__p_wxNativeEncodingInfo[] = {{"_p_wxNativeEncodingInfo", 0, "wxNativeEncodingInfo *", 0},{"_p_wxNativeEncodingInfo"},{0}}; | |
16701 | static swig_type_info _swigt__p_wxPalette[] = {{"_p_wxPalette", 0, "wxPalette *", 0},{"_p_wxPalette"},{0}}; | |
16702 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}}; | |
41f1cec7 | 16703 | 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 |
16704 | static swig_type_info _swigt__p_wxRegionIterator[] = {{"_p_wxRegionIterator", 0, "wxRegionIterator *", 0},{"_p_wxRegionIterator"},{0}}; |
16705 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}}; | |
16706 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}}; | |
16707 | static swig_type_info _swigt__p_wxPrinterDC[] = {{"_p_wxPrinterDC", 0, "wxPrinterDC *", 0},{"_p_wxPrinterDC"},{0}}; | |
16708 | static swig_type_info _swigt__p_wxIconBundle[] = {{"_p_wxIconBundle", 0, "wxIconBundle *", 0},{"_p_wxIconBundle"},{0}}; | |
16709 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}}; | |
16710 | static swig_type_info _swigt__p_wxDash[] = {{"_p_wxDash", 0, "wxDash *", 0},{"_p_wxDash"},{0}}; | |
16711 | static swig_type_info _swigt__p_wxScreenDC[] = {{"_p_wxScreenDC", 0, "wxScreenDC *", 0},{"_p_wxScreenDC"},{0}}; | |
16712 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}}; | |
16713 | static swig_type_info _swigt__p_wxClientDC[] = {{"_p_wxClientDC", 0, "wxClientDC *", 0},{"_p_wxClientDC"},{0}}; | |
d14a1e28 RD |
16714 | static swig_type_info _swigt__p_wxBufferedDC[] = {{"_p_wxBufferedDC", 0, "wxBufferedDC *", 0},{"_p_wxBufferedDC"},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxBufferedDC},{0}}; |
16715 | static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0},{"_p_wxImageList"},{0}}; | |
16716 | static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}}; | |
16717 | 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}}; | |
16718 | static swig_type_info _swigt__p_wxLocale[] = {{"_p_wxLocale", 0, "wxLocale *", 0},{"_p_wxLocale"},{0}}; | |
16719 | static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}}; | |
16720 | static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0},{"_p_wxRegion"},{0}}; | |
16721 | static swig_type_info _swigt__p_wxLanguageInfo[] = {{"_p_wxLanguageInfo", 0, "wxLanguageInfo *", 0},{"_p_wxLanguageInfo"},{0}}; | |
16722 | static swig_type_info _swigt__p_wxConfigBase[] = {{"_p_wxConfigBase", 0, "wxConfigBase *", 0},{"_p_wxConfigBase"},{0}}; | |
16723 | static swig_type_info _swigt__p_wxWindowDC[] = {{"_p_wxWindowDC", 0, "wxWindowDC *", 0},{"_p_wxWindowDC"},{0}}; | |
16724 | static swig_type_info _swigt__p_wxPrintData[] = {{"_p_wxPrintData", 0, "wxPrintData *", 0},{"_p_wxPrintData"},{0}}; | |
16725 | static swig_type_info _swigt__p_wxBrushList[] = {{"_p_wxBrushList", 0, "wxBrushList *", 0},{"_p_wxBrushList"},{0}}; | |
16726 | static swig_type_info _swigt__p_wxFontList[] = {{"_p_wxFontList", 0, "wxFontList *", 0},{"_p_wxFontList"},{0}}; | |
16727 | static swig_type_info _swigt__p_wxPen[] = {{"_p_wxPen", 0, "wxPen *", 0},{"_p_wxPyPen", _p_wxPyPenTo_p_wxPen},{"_p_wxPen"},{0}}; | |
16728 | static swig_type_info _swigt__p_wxBufferedPaintDC[] = {{"_p_wxBufferedPaintDC", 0, "wxBufferedPaintDC *", 0},{"_p_wxBufferedPaintDC"},{0}}; | |
16729 | static swig_type_info _swigt__p_wxPaintDC[] = {{"_p_wxPaintDC", 0, "wxPaintDC *", 0},{"_p_wxPaintDC"},{0}}; | |
16730 | static swig_type_info _swigt__p_wxPenList[] = {{"_p_wxPenList", 0, "wxPenList *", 0},{"_p_wxPenList"},{0}}; | |
d14a1e28 | 16731 | static swig_type_info _swigt__p_wxPyPen[] = {{"_p_wxPyPen", 0, "wxPyPen *", 0},{"_p_wxPyPen"},{0}}; |
423f194a | 16732 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}}; |
d14a1e28 RD |
16733 | static swig_type_info _swigt__p_wxMetaFile[] = {{"_p_wxMetaFile", 0, "wxMetaFile *", 0},{"_p_wxMetaFile"},{0}}; |
16734 | static swig_type_info _swigt__p_wxNativeFontInfo[] = {{"_p_wxNativeFontInfo", 0, "wxNativeFontInfo *", 0},{"_p_wxNativeFontInfo"},{0}}; | |
16735 | static swig_type_info _swigt__p_wxEncodingConverter[] = {{"_p_wxEncodingConverter", 0, "wxEncodingConverter *", 0},{"_p_wxEncodingConverter"},{0}}; | |
16736 | static swig_type_info _swigt__p_wxColourDatabase[] = {{"_p_wxColourDatabase", 0, "wxColourDatabase *", 0},{"_p_wxColourDatabase"},{0}}; | |
16737 | ||
16738 | static swig_type_info *swig_types_initial[] = { | |
16739 | _swigt__p_wxPostScriptDC, | |
d14a1e28 RD |
16740 | _swigt__p_wxBrush, |
16741 | _swigt__p_wxColour, | |
d14a1e28 RD |
16742 | _swigt__p_wxDC, |
16743 | _swigt__p_wxMirrorDC, | |
16744 | _swigt__p_byte, | |
16745 | _swigt__p_wxPyFontEnumerator, | |
16746 | _swigt__p_wxIconLocation, | |
16747 | _swigt__p_wxImage, | |
16748 | _swigt__p_wxMetaFileDC, | |
16749 | _swigt__p_wxMask, | |
16750 | _swigt__p_wxFont, | |
16751 | _swigt__p_wxWindow, | |
16752 | _swigt__p_wxSize, | |
16753 | _swigt__p_double, | |
16754 | _swigt__p_wxMemoryDC, | |
16755 | _swigt__p_wxFontMapper, | |
d14a1e28 RD |
16756 | _swigt__p_wxEffects, |
16757 | _swigt__p_wxNativeEncodingInfo, | |
16758 | _swigt__p_wxPalette, | |
16759 | _swigt__p_wxBitmap, | |
16760 | _swigt__p_wxObject, | |
16761 | _swigt__p_wxRegionIterator, | |
16762 | _swigt__p_wxRect, | |
16763 | _swigt__p_wxString, | |
16764 | _swigt__p_wxPrinterDC, | |
16765 | _swigt__p_wxIconBundle, | |
16766 | _swigt__p_wxPoint, | |
16767 | _swigt__p_wxDash, | |
16768 | _swigt__p_wxScreenDC, | |
16769 | _swigt__p_wxCursor, | |
16770 | _swigt__p_wxClientDC, | |
d14a1e28 RD |
16771 | _swigt__p_wxBufferedDC, |
16772 | _swigt__p_wxImageList, | |
16773 | _swigt__p_unsigned_char, | |
16774 | _swigt__p_wxGDIObject, | |
16775 | _swigt__p_wxLocale, | |
16776 | _swigt__p_wxIcon, | |
16777 | _swigt__p_wxRegion, | |
16778 | _swigt__p_wxLanguageInfo, | |
16779 | _swigt__p_wxConfigBase, | |
16780 | _swigt__p_wxWindowDC, | |
16781 | _swigt__p_wxPrintData, | |
16782 | _swigt__p_wxBrushList, | |
16783 | _swigt__p_wxFontList, | |
16784 | _swigt__p_wxPen, | |
16785 | _swigt__p_wxBufferedPaintDC, | |
16786 | _swigt__p_wxPaintDC, | |
16787 | _swigt__p_wxPenList, | |
d14a1e28 RD |
16788 | _swigt__p_wxPyPen, |
16789 | _swigt__p_int, | |
16790 | _swigt__p_wxMetaFile, | |
16791 | _swigt__p_wxNativeFontInfo, | |
16792 | _swigt__p_wxEncodingConverter, | |
16793 | _swigt__p_wxColourDatabase, | |
16794 | 0 | |
16795 | }; | |
16796 | ||
16797 | ||
16798 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
16799 | ||
16800 | static swig_const_info swig_const_table[] = { | |
16801 | { SWIG_PY_INT, (char *)"OutRegion", (long) wxOutRegion, 0, 0, 0}, | |
16802 | { SWIG_PY_INT, (char *)"PartRegion", (long) wxPartRegion, 0, 0, 0}, | |
16803 | { SWIG_PY_INT, (char *)"InRegion", (long) wxInRegion, 0, 0, 0}, | |
16804 | { SWIG_PY_INT, (char *)"FONTFAMILY_DEFAULT", (long) wxFONTFAMILY_DEFAULT, 0, 0, 0}, | |
16805 | { SWIG_PY_INT, (char *)"FONTFAMILY_DECORATIVE", (long) wxFONTFAMILY_DECORATIVE, 0, 0, 0}, | |
16806 | { SWIG_PY_INT, (char *)"FONTFAMILY_ROMAN", (long) wxFONTFAMILY_ROMAN, 0, 0, 0}, | |
16807 | { SWIG_PY_INT, (char *)"FONTFAMILY_SCRIPT", (long) wxFONTFAMILY_SCRIPT, 0, 0, 0}, | |
16808 | { SWIG_PY_INT, (char *)"FONTFAMILY_SWISS", (long) wxFONTFAMILY_SWISS, 0, 0, 0}, | |
16809 | { SWIG_PY_INT, (char *)"FONTFAMILY_MODERN", (long) wxFONTFAMILY_MODERN, 0, 0, 0}, | |
16810 | { SWIG_PY_INT, (char *)"FONTFAMILY_TELETYPE", (long) wxFONTFAMILY_TELETYPE, 0, 0, 0}, | |
16811 | { SWIG_PY_INT, (char *)"FONTFAMILY_MAX", (long) wxFONTFAMILY_MAX, 0, 0, 0}, | |
16812 | { SWIG_PY_INT, (char *)"FONTFAMILY_UNKNOWN", (long) wxFONTFAMILY_UNKNOWN, 0, 0, 0}, | |
16813 | { SWIG_PY_INT, (char *)"FONTSTYLE_NORMAL", (long) wxFONTSTYLE_NORMAL, 0, 0, 0}, | |
16814 | { SWIG_PY_INT, (char *)"FONTSTYLE_ITALIC", (long) wxFONTSTYLE_ITALIC, 0, 0, 0}, | |
16815 | { SWIG_PY_INT, (char *)"FONTSTYLE_SLANT", (long) wxFONTSTYLE_SLANT, 0, 0, 0}, | |
16816 | { SWIG_PY_INT, (char *)"FONTSTYLE_MAX", (long) wxFONTSTYLE_MAX, 0, 0, 0}, | |
16817 | { SWIG_PY_INT, (char *)"FONTWEIGHT_NORMAL", (long) wxFONTWEIGHT_NORMAL, 0, 0, 0}, | |
16818 | { SWIG_PY_INT, (char *)"FONTWEIGHT_LIGHT", (long) wxFONTWEIGHT_LIGHT, 0, 0, 0}, | |
16819 | { SWIG_PY_INT, (char *)"FONTWEIGHT_BOLD", (long) wxFONTWEIGHT_BOLD, 0, 0, 0}, | |
16820 | { SWIG_PY_INT, (char *)"FONTWEIGHT_MAX", (long) wxFONTWEIGHT_MAX, 0, 0, 0}, | |
16821 | { SWIG_PY_INT, (char *)"FONTFLAG_DEFAULT", (long) wxFONTFLAG_DEFAULT, 0, 0, 0}, | |
16822 | { SWIG_PY_INT, (char *)"FONTFLAG_ITALIC", (long) wxFONTFLAG_ITALIC, 0, 0, 0}, | |
16823 | { SWIG_PY_INT, (char *)"FONTFLAG_SLANT", (long) wxFONTFLAG_SLANT, 0, 0, 0}, | |
16824 | { SWIG_PY_INT, (char *)"FONTFLAG_LIGHT", (long) wxFONTFLAG_LIGHT, 0, 0, 0}, | |
16825 | { SWIG_PY_INT, (char *)"FONTFLAG_BOLD", (long) wxFONTFLAG_BOLD, 0, 0, 0}, | |
16826 | { SWIG_PY_INT, (char *)"FONTFLAG_ANTIALIASED", (long) wxFONTFLAG_ANTIALIASED, 0, 0, 0}, | |
16827 | { SWIG_PY_INT, (char *)"FONTFLAG_NOT_ANTIALIASED", (long) wxFONTFLAG_NOT_ANTIALIASED, 0, 0, 0}, | |
16828 | { SWIG_PY_INT, (char *)"FONTFLAG_UNDERLINED", (long) wxFONTFLAG_UNDERLINED, 0, 0, 0}, | |
16829 | { SWIG_PY_INT, (char *)"FONTFLAG_STRIKETHROUGH", (long) wxFONTFLAG_STRIKETHROUGH, 0, 0, 0}, | |
16830 | { SWIG_PY_INT, (char *)"FONTFLAG_MASK", (long) wxFONTFLAG_MASK, 0, 0, 0}, | |
16831 | { SWIG_PY_INT, (char *)"FONTENCODING_SYSTEM", (long) wxFONTENCODING_SYSTEM, 0, 0, 0}, | |
16832 | { SWIG_PY_INT, (char *)"FONTENCODING_DEFAULT", (long) wxFONTENCODING_DEFAULT, 0, 0, 0}, | |
16833 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_1", (long) wxFONTENCODING_ISO8859_1, 0, 0, 0}, | |
16834 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_2", (long) wxFONTENCODING_ISO8859_2, 0, 0, 0}, | |
16835 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_3", (long) wxFONTENCODING_ISO8859_3, 0, 0, 0}, | |
16836 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_4", (long) wxFONTENCODING_ISO8859_4, 0, 0, 0}, | |
16837 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_5", (long) wxFONTENCODING_ISO8859_5, 0, 0, 0}, | |
16838 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_6", (long) wxFONTENCODING_ISO8859_6, 0, 0, 0}, | |
16839 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_7", (long) wxFONTENCODING_ISO8859_7, 0, 0, 0}, | |
16840 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_8", (long) wxFONTENCODING_ISO8859_8, 0, 0, 0}, | |
16841 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_9", (long) wxFONTENCODING_ISO8859_9, 0, 0, 0}, | |
16842 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_10", (long) wxFONTENCODING_ISO8859_10, 0, 0, 0}, | |
16843 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_11", (long) wxFONTENCODING_ISO8859_11, 0, 0, 0}, | |
16844 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_12", (long) wxFONTENCODING_ISO8859_12, 0, 0, 0}, | |
16845 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_13", (long) wxFONTENCODING_ISO8859_13, 0, 0, 0}, | |
16846 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_14", (long) wxFONTENCODING_ISO8859_14, 0, 0, 0}, | |
16847 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_15", (long) wxFONTENCODING_ISO8859_15, 0, 0, 0}, | |
16848 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_MAX", (long) wxFONTENCODING_ISO8859_MAX, 0, 0, 0}, | |
16849 | { SWIG_PY_INT, (char *)"FONTENCODING_KOI8", (long) wxFONTENCODING_KOI8, 0, 0, 0}, | |
16850 | { SWIG_PY_INT, (char *)"FONTENCODING_ALTERNATIVE", (long) wxFONTENCODING_ALTERNATIVE, 0, 0, 0}, | |
16851 | { SWIG_PY_INT, (char *)"FONTENCODING_BULGARIAN", (long) wxFONTENCODING_BULGARIAN, 0, 0, 0}, | |
16852 | { SWIG_PY_INT, (char *)"FONTENCODING_CP437", (long) wxFONTENCODING_CP437, 0, 0, 0}, | |
16853 | { SWIG_PY_INT, (char *)"FONTENCODING_CP850", (long) wxFONTENCODING_CP850, 0, 0, 0}, | |
16854 | { SWIG_PY_INT, (char *)"FONTENCODING_CP852", (long) wxFONTENCODING_CP852, 0, 0, 0}, | |
16855 | { SWIG_PY_INT, (char *)"FONTENCODING_CP855", (long) wxFONTENCODING_CP855, 0, 0, 0}, | |
16856 | { SWIG_PY_INT, (char *)"FONTENCODING_CP866", (long) wxFONTENCODING_CP866, 0, 0, 0}, | |
16857 | { SWIG_PY_INT, (char *)"FONTENCODING_CP874", (long) wxFONTENCODING_CP874, 0, 0, 0}, | |
16858 | { SWIG_PY_INT, (char *)"FONTENCODING_CP932", (long) wxFONTENCODING_CP932, 0, 0, 0}, | |
16859 | { SWIG_PY_INT, (char *)"FONTENCODING_CP936", (long) wxFONTENCODING_CP936, 0, 0, 0}, | |
16860 | { SWIG_PY_INT, (char *)"FONTENCODING_CP949", (long) wxFONTENCODING_CP949, 0, 0, 0}, | |
16861 | { SWIG_PY_INT, (char *)"FONTENCODING_CP950", (long) wxFONTENCODING_CP950, 0, 0, 0}, | |
16862 | { SWIG_PY_INT, (char *)"FONTENCODING_CP1250", (long) wxFONTENCODING_CP1250, 0, 0, 0}, | |
16863 | { SWIG_PY_INT, (char *)"FONTENCODING_CP1251", (long) wxFONTENCODING_CP1251, 0, 0, 0}, | |
16864 | { SWIG_PY_INT, (char *)"FONTENCODING_CP1252", (long) wxFONTENCODING_CP1252, 0, 0, 0}, | |
16865 | { SWIG_PY_INT, (char *)"FONTENCODING_CP1253", (long) wxFONTENCODING_CP1253, 0, 0, 0}, | |
16866 | { SWIG_PY_INT, (char *)"FONTENCODING_CP1254", (long) wxFONTENCODING_CP1254, 0, 0, 0}, | |
16867 | { SWIG_PY_INT, (char *)"FONTENCODING_CP1255", (long) wxFONTENCODING_CP1255, 0, 0, 0}, | |
16868 | { SWIG_PY_INT, (char *)"FONTENCODING_CP1256", (long) wxFONTENCODING_CP1256, 0, 0, 0}, | |
16869 | { SWIG_PY_INT, (char *)"FONTENCODING_CP1257", (long) wxFONTENCODING_CP1257, 0, 0, 0}, | |
16870 | { SWIG_PY_INT, (char *)"FONTENCODING_CP12_MAX", (long) wxFONTENCODING_CP12_MAX, 0, 0, 0}, | |
16871 | { SWIG_PY_INT, (char *)"FONTENCODING_UTF7", (long) wxFONTENCODING_UTF7, 0, 0, 0}, | |
16872 | { SWIG_PY_INT, (char *)"FONTENCODING_UTF8", (long) wxFONTENCODING_UTF8, 0, 0, 0}, | |
16873 | { SWIG_PY_INT, (char *)"FONTENCODING_EUC_JP", (long) wxFONTENCODING_EUC_JP, 0, 0, 0}, | |
16874 | { SWIG_PY_INT, (char *)"FONTENCODING_UTF16BE", (long) wxFONTENCODING_UTF16BE, 0, 0, 0}, | |
16875 | { SWIG_PY_INT, (char *)"FONTENCODING_UTF16LE", (long) wxFONTENCODING_UTF16LE, 0, 0, 0}, | |
16876 | { SWIG_PY_INT, (char *)"FONTENCODING_UTF32BE", (long) wxFONTENCODING_UTF32BE, 0, 0, 0}, | |
16877 | { SWIG_PY_INT, (char *)"FONTENCODING_UTF32LE", (long) wxFONTENCODING_UTF32LE, 0, 0, 0}, | |
16878 | { SWIG_PY_INT, (char *)"FONTENCODING_MAX", (long) wxFONTENCODING_MAX, 0, 0, 0}, | |
16879 | { SWIG_PY_INT, (char *)"FONTENCODING_UTF16", (long) wxFONTENCODING_UTF16, 0, 0, 0}, | |
16880 | { SWIG_PY_INT, (char *)"FONTENCODING_UTF32", (long) wxFONTENCODING_UTF32, 0, 0, 0}, | |
16881 | { SWIG_PY_INT, (char *)"FONTENCODING_UNICODE", (long) wxFONTENCODING_UNICODE, 0, 0, 0}, | |
16882 | { SWIG_PY_INT, (char *)"FONTENCODING_GB2312", (long) wxFONTENCODING_GB2312, 0, 0, 0}, | |
16883 | { SWIG_PY_INT, (char *)"FONTENCODING_BIG5", (long) wxFONTENCODING_BIG5, 0, 0, 0}, | |
16884 | { SWIG_PY_INT, (char *)"FONTENCODING_SHIFT_JIS", (long) wxFONTENCODING_SHIFT_JIS, 0, 0, 0}, | |
16885 | { SWIG_PY_INT, (char *)"LANGUAGE_DEFAULT", (long) wxLANGUAGE_DEFAULT, 0, 0, 0}, | |
16886 | { SWIG_PY_INT, (char *)"LANGUAGE_UNKNOWN", (long) wxLANGUAGE_UNKNOWN, 0, 0, 0}, | |
16887 | { SWIG_PY_INT, (char *)"LANGUAGE_ABKHAZIAN", (long) wxLANGUAGE_ABKHAZIAN, 0, 0, 0}, | |
16888 | { SWIG_PY_INT, (char *)"LANGUAGE_AFAR", (long) wxLANGUAGE_AFAR, 0, 0, 0}, | |
16889 | { SWIG_PY_INT, (char *)"LANGUAGE_AFRIKAANS", (long) wxLANGUAGE_AFRIKAANS, 0, 0, 0}, | |
16890 | { SWIG_PY_INT, (char *)"LANGUAGE_ALBANIAN", (long) wxLANGUAGE_ALBANIAN, 0, 0, 0}, | |
16891 | { SWIG_PY_INT, (char *)"LANGUAGE_AMHARIC", (long) wxLANGUAGE_AMHARIC, 0, 0, 0}, | |
16892 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC", (long) wxLANGUAGE_ARABIC, 0, 0, 0}, | |
16893 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_ALGERIA", (long) wxLANGUAGE_ARABIC_ALGERIA, 0, 0, 0}, | |
16894 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_BAHRAIN", (long) wxLANGUAGE_ARABIC_BAHRAIN, 0, 0, 0}, | |
16895 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_EGYPT", (long) wxLANGUAGE_ARABIC_EGYPT, 0, 0, 0}, | |
16896 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_IRAQ", (long) wxLANGUAGE_ARABIC_IRAQ, 0, 0, 0}, | |
16897 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_JORDAN", (long) wxLANGUAGE_ARABIC_JORDAN, 0, 0, 0}, | |
16898 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_KUWAIT", (long) wxLANGUAGE_ARABIC_KUWAIT, 0, 0, 0}, | |
16899 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_LEBANON", (long) wxLANGUAGE_ARABIC_LEBANON, 0, 0, 0}, | |
16900 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_LIBYA", (long) wxLANGUAGE_ARABIC_LIBYA, 0, 0, 0}, | |
16901 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_MOROCCO", (long) wxLANGUAGE_ARABIC_MOROCCO, 0, 0, 0}, | |
16902 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_OMAN", (long) wxLANGUAGE_ARABIC_OMAN, 0, 0, 0}, | |
16903 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_QATAR", (long) wxLANGUAGE_ARABIC_QATAR, 0, 0, 0}, | |
16904 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_SAUDI_ARABIA", (long) wxLANGUAGE_ARABIC_SAUDI_ARABIA, 0, 0, 0}, | |
16905 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_SUDAN", (long) wxLANGUAGE_ARABIC_SUDAN, 0, 0, 0}, | |
16906 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_SYRIA", (long) wxLANGUAGE_ARABIC_SYRIA, 0, 0, 0}, | |
16907 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_TUNISIA", (long) wxLANGUAGE_ARABIC_TUNISIA, 0, 0, 0}, | |
16908 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_UAE", (long) wxLANGUAGE_ARABIC_UAE, 0, 0, 0}, | |
16909 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_YEMEN", (long) wxLANGUAGE_ARABIC_YEMEN, 0, 0, 0}, | |
16910 | { SWIG_PY_INT, (char *)"LANGUAGE_ARMENIAN", (long) wxLANGUAGE_ARMENIAN, 0, 0, 0}, | |
16911 | { SWIG_PY_INT, (char *)"LANGUAGE_ASSAMESE", (long) wxLANGUAGE_ASSAMESE, 0, 0, 0}, | |
16912 | { SWIG_PY_INT, (char *)"LANGUAGE_AYMARA", (long) wxLANGUAGE_AYMARA, 0, 0, 0}, | |
16913 | { SWIG_PY_INT, (char *)"LANGUAGE_AZERI", (long) wxLANGUAGE_AZERI, 0, 0, 0}, | |
16914 | { SWIG_PY_INT, (char *)"LANGUAGE_AZERI_CYRILLIC", (long) wxLANGUAGE_AZERI_CYRILLIC, 0, 0, 0}, | |
16915 | { SWIG_PY_INT, (char *)"LANGUAGE_AZERI_LATIN", (long) wxLANGUAGE_AZERI_LATIN, 0, 0, 0}, | |
16916 | { SWIG_PY_INT, (char *)"LANGUAGE_BASHKIR", (long) wxLANGUAGE_BASHKIR, 0, 0, 0}, | |
16917 | { SWIG_PY_INT, (char *)"LANGUAGE_BASQUE", (long) wxLANGUAGE_BASQUE, 0, 0, 0}, | |
16918 | { SWIG_PY_INT, (char *)"LANGUAGE_BELARUSIAN", (long) wxLANGUAGE_BELARUSIAN, 0, 0, 0}, | |
16919 | { SWIG_PY_INT, (char *)"LANGUAGE_BENGALI", (long) wxLANGUAGE_BENGALI, 0, 0, 0}, | |
16920 | { SWIG_PY_INT, (char *)"LANGUAGE_BHUTANI", (long) wxLANGUAGE_BHUTANI, 0, 0, 0}, | |
16921 | { SWIG_PY_INT, (char *)"LANGUAGE_BIHARI", (long) wxLANGUAGE_BIHARI, 0, 0, 0}, | |
16922 | { SWIG_PY_INT, (char *)"LANGUAGE_BISLAMA", (long) wxLANGUAGE_BISLAMA, 0, 0, 0}, | |
16923 | { SWIG_PY_INT, (char *)"LANGUAGE_BRETON", (long) wxLANGUAGE_BRETON, 0, 0, 0}, | |
16924 | { SWIG_PY_INT, (char *)"LANGUAGE_BULGARIAN", (long) wxLANGUAGE_BULGARIAN, 0, 0, 0}, | |
16925 | { SWIG_PY_INT, (char *)"LANGUAGE_BURMESE", (long) wxLANGUAGE_BURMESE, 0, 0, 0}, | |
16926 | { SWIG_PY_INT, (char *)"LANGUAGE_CAMBODIAN", (long) wxLANGUAGE_CAMBODIAN, 0, 0, 0}, | |
16927 | { SWIG_PY_INT, (char *)"LANGUAGE_CATALAN", (long) wxLANGUAGE_CATALAN, 0, 0, 0}, | |
16928 | { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE", (long) wxLANGUAGE_CHINESE, 0, 0, 0}, | |
16929 | { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_SIMPLIFIED", (long) wxLANGUAGE_CHINESE_SIMPLIFIED, 0, 0, 0}, | |
16930 | { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_TRADITIONAL", (long) wxLANGUAGE_CHINESE_TRADITIONAL, 0, 0, 0}, | |
16931 | { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_HONGKONG", (long) wxLANGUAGE_CHINESE_HONGKONG, 0, 0, 0}, | |
16932 | { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_MACAU", (long) wxLANGUAGE_CHINESE_MACAU, 0, 0, 0}, | |
16933 | { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_SINGAPORE", (long) wxLANGUAGE_CHINESE_SINGAPORE, 0, 0, 0}, | |
16934 | { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_TAIWAN", (long) wxLANGUAGE_CHINESE_TAIWAN, 0, 0, 0}, | |
16935 | { SWIG_PY_INT, (char *)"LANGUAGE_CORSICAN", (long) wxLANGUAGE_CORSICAN, 0, 0, 0}, | |
16936 | { SWIG_PY_INT, (char *)"LANGUAGE_CROATIAN", (long) wxLANGUAGE_CROATIAN, 0, 0, 0}, | |
16937 | { SWIG_PY_INT, (char *)"LANGUAGE_CZECH", (long) wxLANGUAGE_CZECH, 0, 0, 0}, | |
16938 | { SWIG_PY_INT, (char *)"LANGUAGE_DANISH", (long) wxLANGUAGE_DANISH, 0, 0, 0}, | |
16939 | { SWIG_PY_INT, (char *)"LANGUAGE_DUTCH", (long) wxLANGUAGE_DUTCH, 0, 0, 0}, | |
16940 | { SWIG_PY_INT, (char *)"LANGUAGE_DUTCH_BELGIAN", (long) wxLANGUAGE_DUTCH_BELGIAN, 0, 0, 0}, | |
16941 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH", (long) wxLANGUAGE_ENGLISH, 0, 0, 0}, | |
16942 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_UK", (long) wxLANGUAGE_ENGLISH_UK, 0, 0, 0}, | |
16943 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_US", (long) wxLANGUAGE_ENGLISH_US, 0, 0, 0}, | |
16944 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_AUSTRALIA", (long) wxLANGUAGE_ENGLISH_AUSTRALIA, 0, 0, 0}, | |
16945 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_BELIZE", (long) wxLANGUAGE_ENGLISH_BELIZE, 0, 0, 0}, | |
16946 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_BOTSWANA", (long) wxLANGUAGE_ENGLISH_BOTSWANA, 0, 0, 0}, | |
16947 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_CANADA", (long) wxLANGUAGE_ENGLISH_CANADA, 0, 0, 0}, | |
16948 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_CARIBBEAN", (long) wxLANGUAGE_ENGLISH_CARIBBEAN, 0, 0, 0}, | |
16949 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_DENMARK", (long) wxLANGUAGE_ENGLISH_DENMARK, 0, 0, 0}, | |
16950 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_EIRE", (long) wxLANGUAGE_ENGLISH_EIRE, 0, 0, 0}, | |
16951 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_JAMAICA", (long) wxLANGUAGE_ENGLISH_JAMAICA, 0, 0, 0}, | |
16952 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_NEW_ZEALAND", (long) wxLANGUAGE_ENGLISH_NEW_ZEALAND, 0, 0, 0}, | |
16953 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_PHILIPPINES", (long) wxLANGUAGE_ENGLISH_PHILIPPINES, 0, 0, 0}, | |
16954 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_SOUTH_AFRICA", (long) wxLANGUAGE_ENGLISH_SOUTH_AFRICA, 0, 0, 0}, | |
16955 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_TRINIDAD", (long) wxLANGUAGE_ENGLISH_TRINIDAD, 0, 0, 0}, | |
16956 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_ZIMBABWE", (long) wxLANGUAGE_ENGLISH_ZIMBABWE, 0, 0, 0}, | |
16957 | { SWIG_PY_INT, (char *)"LANGUAGE_ESPERANTO", (long) wxLANGUAGE_ESPERANTO, 0, 0, 0}, | |
16958 | { SWIG_PY_INT, (char *)"LANGUAGE_ESTONIAN", (long) wxLANGUAGE_ESTONIAN, 0, 0, 0}, | |
16959 | { SWIG_PY_INT, (char *)"LANGUAGE_FAEROESE", (long) wxLANGUAGE_FAEROESE, 0, 0, 0}, | |
16960 | { SWIG_PY_INT, (char *)"LANGUAGE_FARSI", (long) wxLANGUAGE_FARSI, 0, 0, 0}, | |
16961 | { SWIG_PY_INT, (char *)"LANGUAGE_FIJI", (long) wxLANGUAGE_FIJI, 0, 0, 0}, | |
16962 | { SWIG_PY_INT, (char *)"LANGUAGE_FINNISH", (long) wxLANGUAGE_FINNISH, 0, 0, 0}, | |
16963 | { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH", (long) wxLANGUAGE_FRENCH, 0, 0, 0}, | |
16964 | { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_BELGIAN", (long) wxLANGUAGE_FRENCH_BELGIAN, 0, 0, 0}, | |
16965 | { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_CANADIAN", (long) wxLANGUAGE_FRENCH_CANADIAN, 0, 0, 0}, | |
16966 | { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_LUXEMBOURG", (long) wxLANGUAGE_FRENCH_LUXEMBOURG, 0, 0, 0}, | |
16967 | { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_MONACO", (long) wxLANGUAGE_FRENCH_MONACO, 0, 0, 0}, | |
16968 | { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_SWISS", (long) wxLANGUAGE_FRENCH_SWISS, 0, 0, 0}, | |
16969 | { SWIG_PY_INT, (char *)"LANGUAGE_FRISIAN", (long) wxLANGUAGE_FRISIAN, 0, 0, 0}, | |
16970 | { SWIG_PY_INT, (char *)"LANGUAGE_GALICIAN", (long) wxLANGUAGE_GALICIAN, 0, 0, 0}, | |
16971 | { SWIG_PY_INT, (char *)"LANGUAGE_GEORGIAN", (long) wxLANGUAGE_GEORGIAN, 0, 0, 0}, | |
16972 | { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN", (long) wxLANGUAGE_GERMAN, 0, 0, 0}, | |
16973 | { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_AUSTRIAN", (long) wxLANGUAGE_GERMAN_AUSTRIAN, 0, 0, 0}, | |
16974 | { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_BELGIUM", (long) wxLANGUAGE_GERMAN_BELGIUM, 0, 0, 0}, | |
16975 | { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_LIECHTENSTEIN", (long) wxLANGUAGE_GERMAN_LIECHTENSTEIN, 0, 0, 0}, | |
16976 | { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_LUXEMBOURG", (long) wxLANGUAGE_GERMAN_LUXEMBOURG, 0, 0, 0}, | |
16977 | { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_SWISS", (long) wxLANGUAGE_GERMAN_SWISS, 0, 0, 0}, | |
16978 | { SWIG_PY_INT, (char *)"LANGUAGE_GREEK", (long) wxLANGUAGE_GREEK, 0, 0, 0}, | |
16979 | { SWIG_PY_INT, (char *)"LANGUAGE_GREENLANDIC", (long) wxLANGUAGE_GREENLANDIC, 0, 0, 0}, | |
16980 | { SWIG_PY_INT, (char *)"LANGUAGE_GUARANI", (long) wxLANGUAGE_GUARANI, 0, 0, 0}, | |
16981 | { SWIG_PY_INT, (char *)"LANGUAGE_GUJARATI", (long) wxLANGUAGE_GUJARATI, 0, 0, 0}, | |
16982 | { SWIG_PY_INT, (char *)"LANGUAGE_HAUSA", (long) wxLANGUAGE_HAUSA, 0, 0, 0}, | |
16983 | { SWIG_PY_INT, (char *)"LANGUAGE_HEBREW", (long) wxLANGUAGE_HEBREW, 0, 0, 0}, | |
16984 | { SWIG_PY_INT, (char *)"LANGUAGE_HINDI", (long) wxLANGUAGE_HINDI, 0, 0, 0}, | |
16985 | { SWIG_PY_INT, (char *)"LANGUAGE_HUNGARIAN", (long) wxLANGUAGE_HUNGARIAN, 0, 0, 0}, | |
16986 | { SWIG_PY_INT, (char *)"LANGUAGE_ICELANDIC", (long) wxLANGUAGE_ICELANDIC, 0, 0, 0}, | |
16987 | { SWIG_PY_INT, (char *)"LANGUAGE_INDONESIAN", (long) wxLANGUAGE_INDONESIAN, 0, 0, 0}, | |
16988 | { SWIG_PY_INT, (char *)"LANGUAGE_INTERLINGUA", (long) wxLANGUAGE_INTERLINGUA, 0, 0, 0}, | |
16989 | { SWIG_PY_INT, (char *)"LANGUAGE_INTERLINGUE", (long) wxLANGUAGE_INTERLINGUE, 0, 0, 0}, | |
16990 | { SWIG_PY_INT, (char *)"LANGUAGE_INUKTITUT", (long) wxLANGUAGE_INUKTITUT, 0, 0, 0}, | |
16991 | { SWIG_PY_INT, (char *)"LANGUAGE_INUPIAK", (long) wxLANGUAGE_INUPIAK, 0, 0, 0}, | |
16992 | { SWIG_PY_INT, (char *)"LANGUAGE_IRISH", (long) wxLANGUAGE_IRISH, 0, 0, 0}, | |
16993 | { SWIG_PY_INT, (char *)"LANGUAGE_ITALIAN", (long) wxLANGUAGE_ITALIAN, 0, 0, 0}, | |
16994 | { SWIG_PY_INT, (char *)"LANGUAGE_ITALIAN_SWISS", (long) wxLANGUAGE_ITALIAN_SWISS, 0, 0, 0}, | |
16995 | { SWIG_PY_INT, (char *)"LANGUAGE_JAPANESE", (long) wxLANGUAGE_JAPANESE, 0, 0, 0}, | |
16996 | { SWIG_PY_INT, (char *)"LANGUAGE_JAVANESE", (long) wxLANGUAGE_JAVANESE, 0, 0, 0}, | |
16997 | { SWIG_PY_INT, (char *)"LANGUAGE_KANNADA", (long) wxLANGUAGE_KANNADA, 0, 0, 0}, | |
16998 | { SWIG_PY_INT, (char *)"LANGUAGE_KASHMIRI", (long) wxLANGUAGE_KASHMIRI, 0, 0, 0}, | |
16999 | { SWIG_PY_INT, (char *)"LANGUAGE_KASHMIRI_INDIA", (long) wxLANGUAGE_KASHMIRI_INDIA, 0, 0, 0}, | |
17000 | { SWIG_PY_INT, (char *)"LANGUAGE_KAZAKH", (long) wxLANGUAGE_KAZAKH, 0, 0, 0}, | |
17001 | { SWIG_PY_INT, (char *)"LANGUAGE_KERNEWEK", (long) wxLANGUAGE_KERNEWEK, 0, 0, 0}, | |
17002 | { SWIG_PY_INT, (char *)"LANGUAGE_KINYARWANDA", (long) wxLANGUAGE_KINYARWANDA, 0, 0, 0}, | |
17003 | { SWIG_PY_INT, (char *)"LANGUAGE_KIRGHIZ", (long) wxLANGUAGE_KIRGHIZ, 0, 0, 0}, | |
17004 | { SWIG_PY_INT, (char *)"LANGUAGE_KIRUNDI", (long) wxLANGUAGE_KIRUNDI, 0, 0, 0}, | |
17005 | { SWIG_PY_INT, (char *)"LANGUAGE_KONKANI", (long) wxLANGUAGE_KONKANI, 0, 0, 0}, | |
17006 | { SWIG_PY_INT, (char *)"LANGUAGE_KOREAN", (long) wxLANGUAGE_KOREAN, 0, 0, 0}, | |
17007 | { SWIG_PY_INT, (char *)"LANGUAGE_KURDISH", (long) wxLANGUAGE_KURDISH, 0, 0, 0}, | |
17008 | { SWIG_PY_INT, (char *)"LANGUAGE_LAOTHIAN", (long) wxLANGUAGE_LAOTHIAN, 0, 0, 0}, | |
17009 | { SWIG_PY_INT, (char *)"LANGUAGE_LATIN", (long) wxLANGUAGE_LATIN, 0, 0, 0}, | |
17010 | { SWIG_PY_INT, (char *)"LANGUAGE_LATVIAN", (long) wxLANGUAGE_LATVIAN, 0, 0, 0}, | |
17011 | { SWIG_PY_INT, (char *)"LANGUAGE_LINGALA", (long) wxLANGUAGE_LINGALA, 0, 0, 0}, | |
17012 | { SWIG_PY_INT, (char *)"LANGUAGE_LITHUANIAN", (long) wxLANGUAGE_LITHUANIAN, 0, 0, 0}, | |
17013 | { SWIG_PY_INT, (char *)"LANGUAGE_MACEDONIAN", (long) wxLANGUAGE_MACEDONIAN, 0, 0, 0}, | |
17014 | { SWIG_PY_INT, (char *)"LANGUAGE_MALAGASY", (long) wxLANGUAGE_MALAGASY, 0, 0, 0}, | |
17015 | { SWIG_PY_INT, (char *)"LANGUAGE_MALAY", (long) wxLANGUAGE_MALAY, 0, 0, 0}, | |
17016 | { SWIG_PY_INT, (char *)"LANGUAGE_MALAYALAM", (long) wxLANGUAGE_MALAYALAM, 0, 0, 0}, | |
17017 | { SWIG_PY_INT, (char *)"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", (long) wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM, 0, 0, 0}, | |
17018 | { SWIG_PY_INT, (char *)"LANGUAGE_MALAY_MALAYSIA", (long) wxLANGUAGE_MALAY_MALAYSIA, 0, 0, 0}, | |
17019 | { SWIG_PY_INT, (char *)"LANGUAGE_MALTESE", (long) wxLANGUAGE_MALTESE, 0, 0, 0}, | |
17020 | { SWIG_PY_INT, (char *)"LANGUAGE_MANIPURI", (long) wxLANGUAGE_MANIPURI, 0, 0, 0}, | |
17021 | { SWIG_PY_INT, (char *)"LANGUAGE_MAORI", (long) wxLANGUAGE_MAORI, 0, 0, 0}, | |
17022 | { SWIG_PY_INT, (char *)"LANGUAGE_MARATHI", (long) wxLANGUAGE_MARATHI, 0, 0, 0}, | |
17023 | { SWIG_PY_INT, (char *)"LANGUAGE_MOLDAVIAN", (long) wxLANGUAGE_MOLDAVIAN, 0, 0, 0}, | |
17024 | { SWIG_PY_INT, (char *)"LANGUAGE_MONGOLIAN", (long) wxLANGUAGE_MONGOLIAN, 0, 0, 0}, | |
17025 | { SWIG_PY_INT, (char *)"LANGUAGE_NAURU", (long) wxLANGUAGE_NAURU, 0, 0, 0}, | |
17026 | { SWIG_PY_INT, (char *)"LANGUAGE_NEPALI", (long) wxLANGUAGE_NEPALI, 0, 0, 0}, | |
17027 | { SWIG_PY_INT, (char *)"LANGUAGE_NEPALI_INDIA", (long) wxLANGUAGE_NEPALI_INDIA, 0, 0, 0}, | |
17028 | { SWIG_PY_INT, (char *)"LANGUAGE_NORWEGIAN_BOKMAL", (long) wxLANGUAGE_NORWEGIAN_BOKMAL, 0, 0, 0}, | |
17029 | { SWIG_PY_INT, (char *)"LANGUAGE_NORWEGIAN_NYNORSK", (long) wxLANGUAGE_NORWEGIAN_NYNORSK, 0, 0, 0}, | |
17030 | { SWIG_PY_INT, (char *)"LANGUAGE_OCCITAN", (long) wxLANGUAGE_OCCITAN, 0, 0, 0}, | |
17031 | { SWIG_PY_INT, (char *)"LANGUAGE_ORIYA", (long) wxLANGUAGE_ORIYA, 0, 0, 0}, | |
17032 | { SWIG_PY_INT, (char *)"LANGUAGE_OROMO", (long) wxLANGUAGE_OROMO, 0, 0, 0}, | |
17033 | { SWIG_PY_INT, (char *)"LANGUAGE_PASHTO", (long) wxLANGUAGE_PASHTO, 0, 0, 0}, | |
17034 | { SWIG_PY_INT, (char *)"LANGUAGE_POLISH", (long) wxLANGUAGE_POLISH, 0, 0, 0}, | |
17035 | { SWIG_PY_INT, (char *)"LANGUAGE_PORTUGUESE", (long) wxLANGUAGE_PORTUGUESE, 0, 0, 0}, | |
17036 | { SWIG_PY_INT, (char *)"LANGUAGE_PORTUGUESE_BRAZILIAN", (long) wxLANGUAGE_PORTUGUESE_BRAZILIAN, 0, 0, 0}, | |
17037 | { SWIG_PY_INT, (char *)"LANGUAGE_PUNJABI", (long) wxLANGUAGE_PUNJABI, 0, 0, 0}, | |
17038 | { SWIG_PY_INT, (char *)"LANGUAGE_QUECHUA", (long) wxLANGUAGE_QUECHUA, 0, 0, 0}, | |
17039 | { SWIG_PY_INT, (char *)"LANGUAGE_RHAETO_ROMANCE", (long) wxLANGUAGE_RHAETO_ROMANCE, 0, 0, 0}, | |
17040 | { SWIG_PY_INT, (char *)"LANGUAGE_ROMANIAN", (long) wxLANGUAGE_ROMANIAN, 0, 0, 0}, | |
17041 | { SWIG_PY_INT, (char *)"LANGUAGE_RUSSIAN", (long) wxLANGUAGE_RUSSIAN, 0, 0, 0}, | |
17042 | { SWIG_PY_INT, (char *)"LANGUAGE_RUSSIAN_UKRAINE", (long) wxLANGUAGE_RUSSIAN_UKRAINE, 0, 0, 0}, | |
17043 | { SWIG_PY_INT, (char *)"LANGUAGE_SAMOAN", (long) wxLANGUAGE_SAMOAN, 0, 0, 0}, | |
17044 | { SWIG_PY_INT, (char *)"LANGUAGE_SANGHO", (long) wxLANGUAGE_SANGHO, 0, 0, 0}, | |
17045 | { SWIG_PY_INT, (char *)"LANGUAGE_SANSKRIT", (long) wxLANGUAGE_SANSKRIT, 0, 0, 0}, | |
17046 | { SWIG_PY_INT, (char *)"LANGUAGE_SCOTS_GAELIC", (long) wxLANGUAGE_SCOTS_GAELIC, 0, 0, 0}, | |
17047 | { SWIG_PY_INT, (char *)"LANGUAGE_SERBIAN", (long) wxLANGUAGE_SERBIAN, 0, 0, 0}, | |
17048 | { SWIG_PY_INT, (char *)"LANGUAGE_SERBIAN_CYRILLIC", (long) wxLANGUAGE_SERBIAN_CYRILLIC, 0, 0, 0}, | |
17049 | { SWIG_PY_INT, (char *)"LANGUAGE_SERBIAN_LATIN", (long) wxLANGUAGE_SERBIAN_LATIN, 0, 0, 0}, | |
17050 | { SWIG_PY_INT, (char *)"LANGUAGE_SERBO_CROATIAN", (long) wxLANGUAGE_SERBO_CROATIAN, 0, 0, 0}, | |
17051 | { SWIG_PY_INT, (char *)"LANGUAGE_SESOTHO", (long) wxLANGUAGE_SESOTHO, 0, 0, 0}, | |
17052 | { SWIG_PY_INT, (char *)"LANGUAGE_SETSWANA", (long) wxLANGUAGE_SETSWANA, 0, 0, 0}, | |
17053 | { SWIG_PY_INT, (char *)"LANGUAGE_SHONA", (long) wxLANGUAGE_SHONA, 0, 0, 0}, | |
17054 | { SWIG_PY_INT, (char *)"LANGUAGE_SINDHI", (long) wxLANGUAGE_SINDHI, 0, 0, 0}, | |
17055 | { SWIG_PY_INT, (char *)"LANGUAGE_SINHALESE", (long) wxLANGUAGE_SINHALESE, 0, 0, 0}, | |
17056 | { SWIG_PY_INT, (char *)"LANGUAGE_SISWATI", (long) wxLANGUAGE_SISWATI, 0, 0, 0}, | |
17057 | { SWIG_PY_INT, (char *)"LANGUAGE_SLOVAK", (long) wxLANGUAGE_SLOVAK, 0, 0, 0}, | |
17058 | { SWIG_PY_INT, (char *)"LANGUAGE_SLOVENIAN", (long) wxLANGUAGE_SLOVENIAN, 0, 0, 0}, | |
17059 | { SWIG_PY_INT, (char *)"LANGUAGE_SOMALI", (long) wxLANGUAGE_SOMALI, 0, 0, 0}, | |
17060 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH", (long) wxLANGUAGE_SPANISH, 0, 0, 0}, | |
17061 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_ARGENTINA", (long) wxLANGUAGE_SPANISH_ARGENTINA, 0, 0, 0}, | |
17062 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_BOLIVIA", (long) wxLANGUAGE_SPANISH_BOLIVIA, 0, 0, 0}, | |
17063 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_CHILE", (long) wxLANGUAGE_SPANISH_CHILE, 0, 0, 0}, | |
17064 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_COLOMBIA", (long) wxLANGUAGE_SPANISH_COLOMBIA, 0, 0, 0}, | |
17065 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_COSTA_RICA", (long) wxLANGUAGE_SPANISH_COSTA_RICA, 0, 0, 0}, | |
17066 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", (long) wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC, 0, 0, 0}, | |
17067 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_ECUADOR", (long) wxLANGUAGE_SPANISH_ECUADOR, 0, 0, 0}, | |
17068 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_EL_SALVADOR", (long) wxLANGUAGE_SPANISH_EL_SALVADOR, 0, 0, 0}, | |
17069 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_GUATEMALA", (long) wxLANGUAGE_SPANISH_GUATEMALA, 0, 0, 0}, | |
17070 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_HONDURAS", (long) wxLANGUAGE_SPANISH_HONDURAS, 0, 0, 0}, | |
17071 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_MEXICAN", (long) wxLANGUAGE_SPANISH_MEXICAN, 0, 0, 0}, | |
17072 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_MODERN", (long) wxLANGUAGE_SPANISH_MODERN, 0, 0, 0}, | |
17073 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_NICARAGUA", (long) wxLANGUAGE_SPANISH_NICARAGUA, 0, 0, 0}, | |
17074 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PANAMA", (long) wxLANGUAGE_SPANISH_PANAMA, 0, 0, 0}, | |
17075 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PARAGUAY", (long) wxLANGUAGE_SPANISH_PARAGUAY, 0, 0, 0}, | |
17076 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PERU", (long) wxLANGUAGE_SPANISH_PERU, 0, 0, 0}, | |
17077 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PUERTO_RICO", (long) wxLANGUAGE_SPANISH_PUERTO_RICO, 0, 0, 0}, | |
17078 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_URUGUAY", (long) wxLANGUAGE_SPANISH_URUGUAY, 0, 0, 0}, | |
17079 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_US", (long) wxLANGUAGE_SPANISH_US, 0, 0, 0}, | |
17080 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_VENEZUELA", (long) wxLANGUAGE_SPANISH_VENEZUELA, 0, 0, 0}, | |
17081 | { SWIG_PY_INT, (char *)"LANGUAGE_SUNDANESE", (long) wxLANGUAGE_SUNDANESE, 0, 0, 0}, | |
17082 | { SWIG_PY_INT, (char *)"LANGUAGE_SWAHILI", (long) wxLANGUAGE_SWAHILI, 0, 0, 0}, | |
17083 | { SWIG_PY_INT, (char *)"LANGUAGE_SWEDISH", (long) wxLANGUAGE_SWEDISH, 0, 0, 0}, | |
17084 | { SWIG_PY_INT, (char *)"LANGUAGE_SWEDISH_FINLAND", (long) wxLANGUAGE_SWEDISH_FINLAND, 0, 0, 0}, | |
17085 | { SWIG_PY_INT, (char *)"LANGUAGE_TAGALOG", (long) wxLANGUAGE_TAGALOG, 0, 0, 0}, | |
17086 | { SWIG_PY_INT, (char *)"LANGUAGE_TAJIK", (long) wxLANGUAGE_TAJIK, 0, 0, 0}, | |
17087 | { SWIG_PY_INT, (char *)"LANGUAGE_TAMIL", (long) wxLANGUAGE_TAMIL, 0, 0, 0}, | |
17088 | { SWIG_PY_INT, (char *)"LANGUAGE_TATAR", (long) wxLANGUAGE_TATAR, 0, 0, 0}, | |
17089 | { SWIG_PY_INT, (char *)"LANGUAGE_TELUGU", (long) wxLANGUAGE_TELUGU, 0, 0, 0}, | |
17090 | { SWIG_PY_INT, (char *)"LANGUAGE_THAI", (long) wxLANGUAGE_THAI, 0, 0, 0}, | |
17091 | { SWIG_PY_INT, (char *)"LANGUAGE_TIBETAN", (long) wxLANGUAGE_TIBETAN, 0, 0, 0}, | |
17092 | { SWIG_PY_INT, (char *)"LANGUAGE_TIGRINYA", (long) wxLANGUAGE_TIGRINYA, 0, 0, 0}, | |
17093 | { SWIG_PY_INT, (char *)"LANGUAGE_TONGA", (long) wxLANGUAGE_TONGA, 0, 0, 0}, | |
17094 | { SWIG_PY_INT, (char *)"LANGUAGE_TSONGA", (long) wxLANGUAGE_TSONGA, 0, 0, 0}, | |
17095 | { SWIG_PY_INT, (char *)"LANGUAGE_TURKISH", (long) wxLANGUAGE_TURKISH, 0, 0, 0}, | |
17096 | { SWIG_PY_INT, (char *)"LANGUAGE_TURKMEN", (long) wxLANGUAGE_TURKMEN, 0, 0, 0}, | |
17097 | { SWIG_PY_INT, (char *)"LANGUAGE_TWI", (long) wxLANGUAGE_TWI, 0, 0, 0}, | |
17098 | { SWIG_PY_INT, (char *)"LANGUAGE_UIGHUR", (long) wxLANGUAGE_UIGHUR, 0, 0, 0}, | |
17099 | { SWIG_PY_INT, (char *)"LANGUAGE_UKRAINIAN", (long) wxLANGUAGE_UKRAINIAN, 0, 0, 0}, | |
17100 | { SWIG_PY_INT, (char *)"LANGUAGE_URDU", (long) wxLANGUAGE_URDU, 0, 0, 0}, | |
17101 | { SWIG_PY_INT, (char *)"LANGUAGE_URDU_INDIA", (long) wxLANGUAGE_URDU_INDIA, 0, 0, 0}, | |
17102 | { SWIG_PY_INT, (char *)"LANGUAGE_URDU_PAKISTAN", (long) wxLANGUAGE_URDU_PAKISTAN, 0, 0, 0}, | |
17103 | { SWIG_PY_INT, (char *)"LANGUAGE_UZBEK", (long) wxLANGUAGE_UZBEK, 0, 0, 0}, | |
17104 | { SWIG_PY_INT, (char *)"LANGUAGE_UZBEK_CYRILLIC", (long) wxLANGUAGE_UZBEK_CYRILLIC, 0, 0, 0}, | |
17105 | { SWIG_PY_INT, (char *)"LANGUAGE_UZBEK_LATIN", (long) wxLANGUAGE_UZBEK_LATIN, 0, 0, 0}, | |
17106 | { SWIG_PY_INT, (char *)"LANGUAGE_VIETNAMESE", (long) wxLANGUAGE_VIETNAMESE, 0, 0, 0}, | |
17107 | { SWIG_PY_INT, (char *)"LANGUAGE_VOLAPUK", (long) wxLANGUAGE_VOLAPUK, 0, 0, 0}, | |
17108 | { SWIG_PY_INT, (char *)"LANGUAGE_WELSH", (long) wxLANGUAGE_WELSH, 0, 0, 0}, | |
17109 | { SWIG_PY_INT, (char *)"LANGUAGE_WOLOF", (long) wxLANGUAGE_WOLOF, 0, 0, 0}, | |
17110 | { SWIG_PY_INT, (char *)"LANGUAGE_XHOSA", (long) wxLANGUAGE_XHOSA, 0, 0, 0}, | |
17111 | { SWIG_PY_INT, (char *)"LANGUAGE_YIDDISH", (long) wxLANGUAGE_YIDDISH, 0, 0, 0}, | |
17112 | { SWIG_PY_INT, (char *)"LANGUAGE_YORUBA", (long) wxLANGUAGE_YORUBA, 0, 0, 0}, | |
17113 | { SWIG_PY_INT, (char *)"LANGUAGE_ZHUANG", (long) wxLANGUAGE_ZHUANG, 0, 0, 0}, | |
17114 | { SWIG_PY_INT, (char *)"LANGUAGE_ZULU", (long) wxLANGUAGE_ZULU, 0, 0, 0}, | |
17115 | { SWIG_PY_INT, (char *)"LANGUAGE_USER_DEFINED", (long) wxLANGUAGE_USER_DEFINED, 0, 0, 0}, | |
17116 | { SWIG_PY_INT, (char *)"LOCALE_CAT_NUMBER", (long) wxLOCALE_CAT_NUMBER, 0, 0, 0}, | |
17117 | { SWIG_PY_INT, (char *)"LOCALE_CAT_DATE", (long) wxLOCALE_CAT_DATE, 0, 0, 0}, | |
17118 | { SWIG_PY_INT, (char *)"LOCALE_CAT_MONEY", (long) wxLOCALE_CAT_MONEY, 0, 0, 0}, | |
17119 | { SWIG_PY_INT, (char *)"LOCALE_CAT_MAX", (long) wxLOCALE_CAT_MAX, 0, 0, 0}, | |
17120 | { SWIG_PY_INT, (char *)"LOCALE_THOUSANDS_SEP", (long) wxLOCALE_THOUSANDS_SEP, 0, 0, 0}, | |
17121 | { SWIG_PY_INT, (char *)"LOCALE_DECIMAL_POINT", (long) wxLOCALE_DECIMAL_POINT, 0, 0, 0}, | |
17122 | { SWIG_PY_INT, (char *)"LOCALE_LOAD_DEFAULT", (long) wxLOCALE_LOAD_DEFAULT, 0, 0, 0}, | |
17123 | { SWIG_PY_INT, (char *)"LOCALE_CONV_ENCODING", (long) wxLOCALE_CONV_ENCODING, 0, 0, 0}, | |
17124 | { SWIG_PY_INT, (char *)"CONVERT_STRICT", (long) wxCONVERT_STRICT, 0, 0, 0}, | |
17125 | { SWIG_PY_INT, (char *)"CONVERT_SUBSTITUTE", (long) wxCONVERT_SUBSTITUTE, 0, 0, 0}, | |
17126 | { SWIG_PY_INT, (char *)"PLATFORM_CURRENT", (long) wxPLATFORM_CURRENT, 0, 0, 0}, | |
17127 | { SWIG_PY_INT, (char *)"PLATFORM_UNIX", (long) wxPLATFORM_UNIX, 0, 0, 0}, | |
17128 | { SWIG_PY_INT, (char *)"PLATFORM_WINDOWS", (long) wxPLATFORM_WINDOWS, 0, 0, 0}, | |
17129 | { SWIG_PY_INT, (char *)"PLATFORM_OS2", (long) wxPLATFORM_OS2, 0, 0, 0}, | |
17130 | { SWIG_PY_INT, (char *)"PLATFORM_MAC", (long) wxPLATFORM_MAC, 0, 0, 0}, | |
17131 | { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_NORMAL", (long) wxIMAGELIST_DRAW_NORMAL, 0, 0, 0}, | |
17132 | { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_TRANSPARENT", (long) wxIMAGELIST_DRAW_TRANSPARENT, 0, 0, 0}, | |
17133 | { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_SELECTED", (long) wxIMAGELIST_DRAW_SELECTED, 0, 0, 0}, | |
17134 | { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_FOCUSED", (long) wxIMAGELIST_DRAW_FOCUSED, 0, 0, 0}, | |
17135 | { SWIG_PY_INT, (char *)"IMAGE_LIST_NORMAL", (long) wxIMAGE_LIST_NORMAL, 0, 0, 0}, | |
17136 | { SWIG_PY_INT, (char *)"IMAGE_LIST_SMALL", (long) wxIMAGE_LIST_SMALL, 0, 0, 0}, | |
17137 | { SWIG_PY_INT, (char *)"IMAGE_LIST_STATE", (long) wxIMAGE_LIST_STATE, 0, 0, 0}, | |
17138 | {0}}; | |
17139 | ||
17140 | #ifdef __cplusplus | |
17141 | } | |
17142 | #endif | |
17143 | ||
17144 | #ifdef __cplusplus | |
17145 | extern "C" | |
17146 | #endif | |
17147 | SWIGEXPORT(void) SWIG_init(void) { | |
17148 | static PyObject *SWIG_globals = 0; | |
17149 | static int typeinit = 0; | |
17150 | PyObject *m, *d; | |
17151 | int i; | |
17152 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
17153 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
17154 | d = PyModule_GetDict(m); | |
17155 | ||
17156 | if (!typeinit) { | |
17157 | for (i = 0; swig_types_initial[i]; i++) { | |
17158 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
17159 | } | |
17160 | typeinit = 1; | |
17161 | } | |
17162 | SWIG_InstallConstants(d,swig_const_table); | |
17163 | ||
17164 | ||
17165 | wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator"); | |
17166 | ||
17167 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
17168 | SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set); | |
17169 | SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set); | |
17170 | SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set); | |
17171 | SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set); | |
17172 | SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set); | |
17173 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set); | |
17174 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set); | |
17175 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set); | |
17176 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set); | |
17177 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set); | |
17178 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set); | |
17179 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set); | |
17180 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set); | |
17181 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set); | |
17182 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set); | |
17183 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set); | |
17184 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set); | |
17185 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set); | |
17186 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set); | |
17187 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set); | |
17188 | SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set); | |
17189 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set); | |
17190 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set); | |
17191 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set); | |
17192 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set); | |
17193 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set); | |
17194 | SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set); | |
17195 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set); | |
17196 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set); | |
17197 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set); | |
17198 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set); | |
17199 | SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set); | |
17200 | SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set); | |
17201 | SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set); | |
17202 | SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set); | |
17203 | SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set); | |
17204 | SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set); | |
17205 | SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set); | |
17206 | SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set); | |
17207 | SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set); | |
17208 | SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set); | |
17209 | SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set); | |
17210 | SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set); | |
17211 | SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set); | |
17212 | SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set); | |
17213 | SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set); | |
44127b65 RD |
17214 | |
17215 | // Work around a chicken/egg problem in drawlist.cpp | |
17216 | wxPyDrawList_SetAPIPtr(); | |
17217 | ||
d14a1e28 RD |
17218 | } |
17219 |