]>
Commit | Line | Data |
---|---|---|
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 | |
48 | ||
49 | ||
50 | /*********************************************************************** | |
51 | * common.swg for wxPython | |
52 | * | |
53 | * Include only the function prototypes and such from SWIG's common.swg, | |
54 | * but not the runtime functions themselves. This helps keep the | |
55 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
56 | * anyway. | |
57 | * | |
58 | ************************************************************************/ | |
59 | ||
60 | #include <string.h> | |
61 | ||
62 | #if defined(_WIN32) || defined(__WIN32__) | |
63 | # if defined(_MSC_VER) | |
64 | # if defined(STATIC_LINKED) | |
65 | # define SWIGEXPORT(a) a | |
66 | # define SWIGIMPORT(a) extern a | |
67 | # else | |
68 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
69 | # define SWIGIMPORT(a) extern a | |
70 | # endif | |
71 | # else | |
72 | # if defined(__BORLANDC__) | |
73 | # define SWIGEXPORT(a) a _export | |
74 | # define SWIGIMPORT(a) a _export | |
75 | # else | |
76 | # define SWIGEXPORT(a) a | |
77 | # define SWIGIMPORT(a) a | |
78 | # endif | |
79 | # endif | |
80 | #else | |
81 | # define SWIGEXPORT(a) a | |
82 | # define SWIGIMPORT(a) a | |
83 | #endif | |
84 | ||
85 | #ifdef SWIG_GLOBAL | |
86 | #define SWIGRUNTIME(a) SWIGEXPORT(a) | |
87 | #else | |
88 | #define SWIGRUNTIME(a) static a | |
89 | #endif | |
90 | ||
91 | ||
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 { | |
100 | const char *name; | |
101 | swig_converter_func converter; | |
102 | const char *str; | |
103 | void *clientdata; | |
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 *); | |
117 | ||
118 | ||
119 | #ifdef __cplusplus | |
120 | } | |
121 | ||
122 | #endif | |
123 | ||
124 | /*********************************************************************** | |
125 | * pyrun.swg for wxPython | |
126 | * | |
127 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
128 | * but not the runtime functions themselves. This helps keep the | |
129 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
130 | * anyway. | |
131 | * | |
132 | ************************************************************************/ | |
133 | ||
134 | ||
135 | #include "Python.h" | |
136 | ||
137 | #ifdef __cplusplus | |
138 | extern "C" { | |
139 | #endif | |
140 | ||
141 | #define SWIG_PY_INT 1 | |
142 | #define SWIG_PY_FLOAT 2 | |
143 | #define SWIG_PY_STRING 3 | |
144 | #define SWIG_PY_POINTER 4 | |
145 | #define SWIG_PY_BINARY 5 | |
146 | ||
147 | /* Flags for pointer conversion */ | |
148 | ||
149 | #define SWIG_POINTER_EXCEPTION 0x1 | |
150 | #define SWIG_POINTER_DISOWN 0x2 | |
151 | ||
152 | /* Exception handling in wrappers */ | |
153 | #define SWIG_fail goto fail | |
154 | ||
155 | /* Constant information structure */ | |
156 | typedef struct swig_const_info { | |
157 | int type; | |
158 | char *name; | |
159 | long lvalue; | |
160 | double dvalue; | |
161 | void *pvalue; | |
162 | swig_type_info **ptype; | |
163 | } swig_const_info; | |
164 | ||
165 | ||
166 | ||
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) | |
182 | #define SWIG_PackData(c, ptr, sz) \ | |
183 | SWIG_Python_PackData(c, ptr, sz) | |
184 | #define SWIG_UnpackData(c, ptr, sz) \ | |
185 | SWIG_Python_UnpackData(c, ptr, sz) | |
186 | #define SWIG_NewPackedObj(ptr, sz, type) \ | |
187 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
188 | #define SWIG_InstallConstants(d, constants) \ | |
189 | SWIG_Python_InstallConstants(d, constants) | |
190 | ||
191 | ||
192 | SWIGEXPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); | |
193 | SWIGEXPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
194 | SWIGEXPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
195 | ||
196 | SWIGEXPORT(PyObject *) SWIG_Python_newvarlink(void); | |
197 | SWIGEXPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
198 | SWIGEXPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
199 | SWIGEXPORT(char *) SWIG_Python_PackData(char *c, void *, int); | |
200 | SWIGEXPORT(char *) SWIG_Python_UnpackData(char *c, void *, int); | |
201 | SWIGEXPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
202 | SWIGEXPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
203 | ||
204 | ||
205 | /* Contract support */ | |
206 | ||
207 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else | |
208 | ||
209 | ||
210 | #ifdef __cplusplus | |
211 | } | |
212 | #endif | |
213 | ||
214 | ||
215 | ||
216 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
217 | ||
218 | #define SWIGTYPE_p_wxPostScriptDC swig_types[0] | |
219 | #define SWIGTYPE_p_wxBrush swig_types[1] | |
220 | #define SWIGTYPE_p_wxColour swig_types[2] | |
221 | #define SWIGTYPE_p_wxDC swig_types[3] | |
222 | #define SWIGTYPE_p_wxMirrorDC swig_types[4] | |
223 | #define SWIGTYPE_p_byte swig_types[5] | |
224 | #define SWIGTYPE_p_wxPyFontEnumerator swig_types[6] | |
225 | #define SWIGTYPE_p_wxIconLocation swig_types[7] | |
226 | #define SWIGTYPE_p_wxImage swig_types[8] | |
227 | #define SWIGTYPE_p_wxMetaFileDC swig_types[9] | |
228 | #define SWIGTYPE_p_wxMask swig_types[10] | |
229 | #define SWIGTYPE_p_wxFont swig_types[11] | |
230 | #define SWIGTYPE_p_wxWindow swig_types[12] | |
231 | #define SWIGTYPE_p_wxSize swig_types[13] | |
232 | #define SWIGTYPE_p_double swig_types[14] | |
233 | #define SWIGTYPE_p_wxMemoryDC swig_types[15] | |
234 | #define SWIGTYPE_p_wxFontMapper swig_types[16] | |
235 | #define SWIGTYPE_p_wxEffects swig_types[17] | |
236 | #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[18] | |
237 | #define SWIGTYPE_p_wxPalette swig_types[19] | |
238 | #define SWIGTYPE_p_wxBitmap swig_types[20] | |
239 | #define SWIGTYPE_p_wxObject swig_types[21] | |
240 | #define SWIGTYPE_p_wxRegionIterator swig_types[22] | |
241 | #define SWIGTYPE_p_wxRect swig_types[23] | |
242 | #define SWIGTYPE_p_wxString swig_types[24] | |
243 | #define SWIGTYPE_p_wxPrinterDC swig_types[25] | |
244 | #define SWIGTYPE_p_wxIconBundle swig_types[26] | |
245 | #define SWIGTYPE_p_wxPoint swig_types[27] | |
246 | #define SWIGTYPE_p_wxDash swig_types[28] | |
247 | #define SWIGTYPE_p_wxScreenDC swig_types[29] | |
248 | #define SWIGTYPE_p_wxCursor swig_types[30] | |
249 | #define SWIGTYPE_p_wxClientDC swig_types[31] | |
250 | #define SWIGTYPE_p_wxBufferedDC swig_types[32] | |
251 | #define SWIGTYPE_p_wxImageList swig_types[33] | |
252 | #define SWIGTYPE_p_unsigned_char swig_types[34] | |
253 | #define SWIGTYPE_p_wxGDIObject swig_types[35] | |
254 | #define SWIGTYPE_p_wxLocale swig_types[36] | |
255 | #define SWIGTYPE_p_wxIcon swig_types[37] | |
256 | #define SWIGTYPE_p_wxRegion swig_types[38] | |
257 | #define SWIGTYPE_p_wxLanguageInfo swig_types[39] | |
258 | #define SWIGTYPE_p_wxConfigBase swig_types[40] | |
259 | #define SWIGTYPE_p_wxWindowDC swig_types[41] | |
260 | #define SWIGTYPE_p_wxPrintData swig_types[42] | |
261 | #define SWIGTYPE_p_wxBrushList swig_types[43] | |
262 | #define SWIGTYPE_p_wxFontList swig_types[44] | |
263 | #define SWIGTYPE_p_wxPen swig_types[45] | |
264 | #define SWIGTYPE_p_wxBufferedPaintDC swig_types[46] | |
265 | #define SWIGTYPE_p_wxPaintDC swig_types[47] | |
266 | #define SWIGTYPE_p_wxPenList swig_types[48] | |
267 | #define SWIGTYPE_p_wxPyPen swig_types[49] | |
268 | #define SWIGTYPE_p_int swig_types[50] | |
269 | #define SWIGTYPE_p_wxMetaFile swig_types[51] | |
270 | #define SWIGTYPE_p_wxNativeFontInfo swig_types[52] | |
271 | #define SWIGTYPE_p_wxEncodingConverter swig_types[53] | |
272 | #define SWIGTYPE_p_wxColourDatabase swig_types[54] | |
273 | static swig_type_info *swig_types[56]; | |
274 | ||
275 | /* -------- TYPES TABLE (END) -------- */ | |
276 | ||
277 | ||
278 | /*----------------------------------------------- | |
279 | @(target):= _gdi.so | |
280 | ------------------------------------------------*/ | |
281 | #define SWIG_init init_gdi | |
282 | ||
283 | #define SWIG_name "_gdi" | |
284 | ||
285 | #include "wx/wxPython/wxPython.h" | |
286 | #include "wx/wxPython/pyclasses.h" | |
287 | ||
288 | DECLARE_DEF_STRING(EmptyString); | |
289 | ||
290 | PyObject *wxColour_Get(wxColour *self){ | |
291 | PyObject* rv = PyTuple_New(3); | |
292 | int red = -1; | |
293 | int green = -1; | |
294 | int blue = -1; | |
295 | if (self->Ok()) { | |
296 | red = self->Red(); | |
297 | green = self->Green(); | |
298 | blue = self->Blue(); | |
299 | } | |
300 | PyTuple_SetItem(rv, 0, PyInt_FromLong(red)); | |
301 | PyTuple_SetItem(rv, 1, PyInt_FromLong(green)); | |
302 | PyTuple_SetItem(rv, 2, PyInt_FromLong(blue)); | |
303 | return rv; | |
304 | } | |
305 | ||
306 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
307 | PyObject* o2; | |
308 | PyObject* o3; | |
309 | ||
310 | if (!target) { | |
311 | target = o; | |
312 | } else if (target == Py_None) { | |
313 | Py_DECREF(Py_None); | |
314 | target = o; | |
315 | } else { | |
316 | if (!PyTuple_Check(target)) { | |
317 | o2 = target; | |
318 | target = PyTuple_New(1); | |
319 | PyTuple_SetItem(target, 0, o2); | |
320 | } | |
321 | o3 = PyTuple_New(1); | |
322 | PyTuple_SetItem(o3, 0, o); | |
323 | ||
324 | o2 = target; | |
325 | target = PySequence_Concat(o2, o3); | |
326 | Py_DECREF(o2); | |
327 | Py_DECREF(o3); | |
328 | } | |
329 | return target; | |
330 | } | |
331 | ||
332 | PyObject *wxPen_GetDashes(wxPen *self){ | |
333 | wxDash* dashes; | |
334 | int count = self->GetDashes(&dashes); | |
335 | wxPyBeginBlockThreads(); | |
336 | PyObject* retval = PyList_New(0); | |
337 | for (int x=0; x<count; x++) | |
338 | PyList_Append(retval, PyInt_FromLong(dashes[x])); | |
339 | wxPyEndBlockThreads(); | |
340 | return retval; | |
341 | } | |
342 | ||
343 | wxPyPen::~wxPyPen() | |
344 | { | |
345 | if (m_dash) | |
346 | delete [] m_dash; | |
347 | } | |
348 | ||
349 | void wxPyPen::SetDashes(int nb_dashes, const wxDash *dash) | |
350 | { | |
351 | if (m_dash) | |
352 | delete [] m_dash; | |
353 | m_dash = new wxDash[nb_dashes]; | |
354 | for (int i=0; i<nb_dashes; i++) { | |
355 | m_dash[i] = dash[i]; | |
356 | } | |
357 | wxPen::SetDashes(nb_dashes, m_dash); | |
358 | } | |
359 | ||
360 | ||
361 | #include <wx/image.h> | |
362 | ||
363 | static char** ConvertListOfStrings(PyObject* listOfStrings) { | |
364 | char** cArray = NULL; | |
365 | int count; | |
366 | ||
367 | if (!PyList_Check(listOfStrings)) { | |
368 | PyErr_SetString(PyExc_TypeError, "Expected a list of strings."); | |
369 | return NULL; | |
370 | } | |
371 | count = PyList_Size(listOfStrings); | |
372 | cArray = new char*[count]; | |
373 | ||
374 | for(int x=0; x<count; x++) { | |
375 | // TODO: Need some validation and error checking here | |
376 | cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x)); | |
377 | } | |
378 | return cArray; | |
379 | } | |
380 | ||
381 | ||
382 | wxBitmap *new_wxBitmap(PyObject *listOfStrings){ | |
383 | char** cArray = NULL; | |
384 | wxBitmap* bmp; | |
385 | ||
386 | cArray = ConvertListOfStrings(listOfStrings); | |
387 | if (! cArray) | |
388 | return NULL; | |
389 | bmp = new wxBitmap(cArray); | |
390 | delete [] cArray; | |
391 | return bmp; | |
392 | } | |
393 | wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){ | |
394 | char* buf; | |
395 | int length; | |
396 | PyString_AsStringAndSize(bits, &buf, &length); | |
397 | return new wxBitmap(buf, width, height, depth); | |
398 | } | |
399 | void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){ | |
400 | wxMask *mask = new wxMask(*self, colour); | |
401 | self->SetMask(mask); | |
402 | } | |
403 | ||
404 | #include <wx/iconbndl.h> | |
405 | ||
406 | wxIcon *new_wxIcon(wxBitmap const &bmp){ | |
407 | wxIcon* icon = new wxIcon(); | |
408 | icon->CopyFromBitmap(bmp); | |
409 | return icon; | |
410 | } | |
411 | wxIcon *new_wxIcon(PyObject *listOfStrings){ | |
412 | char** cArray = NULL; | |
413 | wxIcon* icon; | |
414 | ||
415 | cArray = ConvertListOfStrings(listOfStrings); | |
416 | if (! cArray) | |
417 | return NULL; | |
418 | icon = new wxIcon(cArray); | |
419 | delete [] cArray; | |
420 | return icon; | |
421 | } | |
422 | wxIconLocation *new_wxIconLocation(wxString const *filename,int num){ | |
423 | ||
424 | return new wxIconLocation(*filename, num); | |
425 | ||
426 | ||
427 | ||
428 | } | |
429 | void wxIconLocation_SetIndex(wxIconLocation *self,int num){ | |
430 | ||
431 | self->SetIndex(num); | |
432 | ||
433 | ||
434 | ||
435 | } | |
436 | int wxIconLocation_GetIndex(wxIconLocation *self){ | |
437 | ||
438 | return self->GetIndex(); | |
439 | ||
440 | ||
441 | ||
442 | } | |
443 | wxCursor *new_wxCursor(wxString const *cursorName,long flags,int hotSpotX,int hotSpotY){ | |
444 | ||
445 | ||
446 | ||
447 | ||
448 | return new wxCursor(*cursorName, flags, hotSpotX, hotSpotY); | |
449 | ||
450 | } | |
451 | wxCursor *new_wxCursor(PyObject *bits,int width,int height,int hotSpotX,int hotSpotY,PyObject *maskBits){ | |
452 | char* bitsbuf; | |
453 | char* maskbuf = NULL; | |
454 | int length; | |
455 | PyString_AsStringAndSize(bits, &bitsbuf, &length); | |
456 | if (maskBits) | |
457 | PyString_AsStringAndSize(maskBits, &maskbuf, &length); | |
458 | return new wxCursor(bitsbuf, width, height, hotSpotX, hotSpotY, maskbuf); | |
459 | } | |
460 | ||
461 | ||
462 | void wxRegionIterator_Next(wxRegionIterator *self){ | |
463 | (*self) ++; | |
464 | } | |
465 | bool wxRegionIterator___nonzero__(wxRegionIterator *self){ | |
466 | return self->operator bool(); | |
467 | } | |
468 | ||
469 | #include <wx/fontutil.h> | |
470 | #include <wx/fontmap.h> | |
471 | #include <wx/fontenum.h> | |
472 | ||
473 | wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){ | |
474 | return self->ToString(); | |
475 | } | |
476 | ||
477 | wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) | |
478 | { PyErr_SetNone(PyExc_NotImplementedError); return NULL; } | |
479 | ||
480 | bool wxTestFontEncoding(const wxNativeEncodingInfo& info) | |
481 | { PyErr_SetNone(PyExc_NotImplementedError); return False; } | |
482 | ||
483 | PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){ | |
484 | wxFontEncoding alt_enc; | |
485 | if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive)) | |
486 | return PyInt_FromLong(alt_enc); | |
487 | else { | |
488 | Py_INCREF(Py_None); | |
489 | return Py_None; | |
490 | } | |
491 | } | |
492 | wxFont *new_wxFont(wxString const &info){ | |
493 | wxNativeFontInfo nfi; | |
494 | nfi.FromString(info); | |
495 | return new wxFont(nfi); | |
496 | } | |
497 | wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){ | |
498 | return wxFont::New(pointSize, family, flags, face, encoding); | |
499 | } | |
500 | ||
501 | class wxPyFontEnumerator : public wxFontEnumerator { | |
502 | public: | |
503 | wxPyFontEnumerator() {} | |
504 | ~wxPyFontEnumerator() {} | |
505 | ||
506 | DEC_PYCALLBACK_BOOL_STRING(OnFacename); | |
507 | DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding); | |
508 | ||
509 | PYPRIVATE; | |
510 | }; | |
511 | ||
512 | IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename); | |
513 | IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding); | |
514 | ||
515 | ||
516 | PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){ | |
517 | wxArrayString* arr = self->GetEncodings(); | |
518 | return wxArrayString2PyList_helper(*arr); | |
519 | } | |
520 | PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){ | |
521 | wxArrayString* arr = self->GetFacenames(); | |
522 | return wxArrayString2PyList_helper(*arr); | |
523 | } | |
524 | ||
525 | ||
526 | ||
527 | #include "wx/wxPython/pydrawxxx.h" | |
528 | ||
529 | wxColour wxDC_GetPixelXY(wxDC *self,int x,int y){ | |
530 | wxColour col; | |
531 | self->GetPixel(x, y, &col); | |
532 | return col; | |
533 | } | |
534 | wxColour wxDC_GetPixel(wxDC *self,wxPoint const &pt){ | |
535 | wxColour col; | |
536 | self->GetPixel(pt, &col); | |
537 | return col; | |
538 | } | |
539 | wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){ | |
540 | wxRect rv; | |
541 | self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); | |
542 | return rv; | |
543 | } | |
544 | wxRect wxDC_GetClippingRect(wxDC *self){ | |
545 | wxRect rect; | |
546 | self->GetClippingBox(rect); | |
547 | return rect; | |
548 | } | |
549 | PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
550 | return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes); | |
551 | } | |
552 | PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
553 | return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes); | |
554 | } | |
555 | PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
556 | return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes); | |
557 | } | |
558 | PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
559 | return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes); | |
560 | } | |
561 | PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
562 | return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes); | |
563 | } | |
564 | PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){ | |
565 | return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList); | |
566 | } | |
567 | ||
568 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
569 | *x1 = dc->MinX(); | |
570 | *y1 = dc->MinY(); | |
571 | *x2 = dc->MaxX(); | |
572 | *y2 = dc->MaxY(); | |
573 | } | |
574 | ||
575 | ||
576 | #include <wx/dcps.h> | |
577 | ||
578 | ||
579 | #include <wx/metafile.h> | |
580 | ||
581 | ||
582 | ||
583 | void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){ | |
584 | self->AddColour(name, wxColour(red, green, blue)); | |
585 | } | |
586 | ||
587 | #include <wx/effects.h> | |
588 | ||
589 | #ifdef __cplusplus | |
590 | extern "C" { | |
591 | #endif | |
592 | static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
593 | PyObject *resultobj; | |
594 | wxGDIObject *result; | |
595 | char *kwnames[] = { | |
596 | NULL | |
597 | }; | |
598 | ||
599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail; | |
600 | { | |
601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
602 | result = (wxGDIObject *)new wxGDIObject(); | |
603 | ||
604 | wxPyEndAllowThreads(__tstate); | |
605 | if (PyErr_Occurred()) SWIG_fail; | |
606 | } | |
607 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGDIObject, 1); | |
608 | return resultobj; | |
609 | fail: | |
610 | return NULL; | |
611 | } | |
612 | ||
613 | ||
614 | static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
615 | PyObject *resultobj; | |
616 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
617 | PyObject * obj0 = 0 ; | |
618 | char *kwnames[] = { | |
619 | (char *) "self", NULL | |
620 | }; | |
621 | ||
622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail; | |
623 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
624 | { | |
625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
626 | delete arg1; | |
627 | ||
628 | wxPyEndAllowThreads(__tstate); | |
629 | if (PyErr_Occurred()) SWIG_fail; | |
630 | } | |
631 | Py_INCREF(Py_None); resultobj = Py_None; | |
632 | return resultobj; | |
633 | fail: | |
634 | return NULL; | |
635 | } | |
636 | ||
637 | ||
638 | static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
639 | PyObject *resultobj; | |
640 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
641 | bool result; | |
642 | PyObject * obj0 = 0 ; | |
643 | char *kwnames[] = { | |
644 | (char *) "self", NULL | |
645 | }; | |
646 | ||
647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail; | |
648 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
649 | { | |
650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
651 | result = (bool)(arg1)->GetVisible(); | |
652 | ||
653 | wxPyEndAllowThreads(__tstate); | |
654 | if (PyErr_Occurred()) SWIG_fail; | |
655 | } | |
656 | resultobj = PyInt_FromLong((long)result); | |
657 | return resultobj; | |
658 | fail: | |
659 | return NULL; | |
660 | } | |
661 | ||
662 | ||
663 | static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
664 | PyObject *resultobj; | |
665 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
666 | bool arg2 ; | |
667 | PyObject * obj0 = 0 ; | |
668 | PyObject * obj1 = 0 ; | |
669 | char *kwnames[] = { | |
670 | (char *) "self",(char *) "visible", NULL | |
671 | }; | |
672 | ||
673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail; | |
674 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
675 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
676 | if (PyErr_Occurred()) SWIG_fail; | |
677 | { | |
678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
679 | (arg1)->SetVisible(arg2); | |
680 | ||
681 | wxPyEndAllowThreads(__tstate); | |
682 | if (PyErr_Occurred()) SWIG_fail; | |
683 | } | |
684 | Py_INCREF(Py_None); resultobj = Py_None; | |
685 | return resultobj; | |
686 | fail: | |
687 | return NULL; | |
688 | } | |
689 | ||
690 | ||
691 | static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
692 | PyObject *resultobj; | |
693 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
694 | bool result; | |
695 | PyObject * obj0 = 0 ; | |
696 | char *kwnames[] = { | |
697 | (char *) "self", NULL | |
698 | }; | |
699 | ||
700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail; | |
701 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
702 | { | |
703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704 | result = (bool)(arg1)->IsNull(); | |
705 | ||
706 | wxPyEndAllowThreads(__tstate); | |
707 | if (PyErr_Occurred()) SWIG_fail; | |
708 | } | |
709 | resultobj = PyInt_FromLong((long)result); | |
710 | return resultobj; | |
711 | fail: | |
712 | return NULL; | |
713 | } | |
714 | ||
715 | ||
716 | static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) { | |
717 | PyObject *obj; | |
718 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
719 | SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj); | |
720 | Py_INCREF(obj); | |
721 | return Py_BuildValue((char *)""); | |
722 | } | |
723 | static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
724 | PyObject *resultobj; | |
725 | unsigned char arg1 = (unsigned char) 0 ; | |
726 | unsigned char arg2 = (unsigned char) 0 ; | |
727 | unsigned char arg3 = (unsigned char) 0 ; | |
728 | wxColour *result; | |
729 | PyObject * obj0 = 0 ; | |
730 | PyObject * obj1 = 0 ; | |
731 | PyObject * obj2 = 0 ; | |
732 | char *kwnames[] = { | |
733 | (char *) "red",(char *) "green",(char *) "blue", NULL | |
734 | }; | |
735 | ||
736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
737 | if (obj0) { | |
738 | arg1 = (unsigned char) PyInt_AsLong(obj0); | |
739 | if (PyErr_Occurred()) SWIG_fail; | |
740 | } | |
741 | if (obj1) { | |
742 | arg2 = (unsigned char) PyInt_AsLong(obj1); | |
743 | if (PyErr_Occurred()) SWIG_fail; | |
744 | } | |
745 | if (obj2) { | |
746 | arg3 = (unsigned char) PyInt_AsLong(obj2); | |
747 | if (PyErr_Occurred()) SWIG_fail; | |
748 | } | |
749 | { | |
750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
751 | result = (wxColour *)new wxColour(arg1,arg2,arg3); | |
752 | ||
753 | wxPyEndAllowThreads(__tstate); | |
754 | if (PyErr_Occurred()) SWIG_fail; | |
755 | } | |
756 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1); | |
757 | return resultobj; | |
758 | fail: | |
759 | return NULL; | |
760 | } | |
761 | ||
762 | ||
763 | static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
764 | PyObject *resultobj; | |
765 | wxColour *arg1 = (wxColour *) 0 ; | |
766 | PyObject * obj0 = 0 ; | |
767 | char *kwnames[] = { | |
768 | (char *) "self", NULL | |
769 | }; | |
770 | ||
771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail; | |
772 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
773 | { | |
774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
775 | delete arg1; | |
776 | ||
777 | wxPyEndAllowThreads(__tstate); | |
778 | if (PyErr_Occurred()) SWIG_fail; | |
779 | } | |
780 | Py_INCREF(Py_None); resultobj = Py_None; | |
781 | return resultobj; | |
782 | fail: | |
783 | return NULL; | |
784 | } | |
785 | ||
786 | ||
787 | static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
788 | PyObject *resultobj; | |
789 | wxString *arg1 = 0 ; | |
790 | wxColour *result; | |
791 | bool temp1 = False ; | |
792 | PyObject * obj0 = 0 ; | |
793 | char *kwnames[] = { | |
794 | (char *) "colorName", NULL | |
795 | }; | |
796 | ||
797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail; | |
798 | { | |
799 | arg1 = wxString_in_helper(obj0); | |
800 | if (arg1 == NULL) SWIG_fail; | |
801 | temp1 = True; | |
802 | } | |
803 | { | |
804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
805 | result = (wxColour *)new wxColour((wxString const &)*arg1); | |
806 | ||
807 | wxPyEndAllowThreads(__tstate); | |
808 | if (PyErr_Occurred()) SWIG_fail; | |
809 | } | |
810 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1); | |
811 | { | |
812 | if (temp1) | |
813 | delete arg1; | |
814 | } | |
815 | return resultobj; | |
816 | fail: | |
817 | { | |
818 | if (temp1) | |
819 | delete arg1; | |
820 | } | |
821 | return NULL; | |
822 | } | |
823 | ||
824 | ||
825 | static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
826 | PyObject *resultobj; | |
827 | unsigned long arg1 ; | |
828 | wxColour *result; | |
829 | PyObject * obj0 = 0 ; | |
830 | char *kwnames[] = { | |
831 | (char *) "colRGB", NULL | |
832 | }; | |
833 | ||
834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail; | |
835 | arg1 = (unsigned long) PyInt_AsLong(obj0); | |
836 | if (PyErr_Occurred()) SWIG_fail; | |
837 | { | |
838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
839 | result = (wxColour *)new wxColour(arg1); | |
840 | ||
841 | wxPyEndAllowThreads(__tstate); | |
842 | if (PyErr_Occurred()) SWIG_fail; | |
843 | } | |
844 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1); | |
845 | return resultobj; | |
846 | fail: | |
847 | return NULL; | |
848 | } | |
849 | ||
850 | ||
851 | static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) { | |
852 | PyObject *resultobj; | |
853 | wxColour *arg1 = (wxColour *) 0 ; | |
854 | unsigned char result; | |
855 | PyObject * obj0 = 0 ; | |
856 | char *kwnames[] = { | |
857 | (char *) "self", NULL | |
858 | }; | |
859 | ||
860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail; | |
861 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
862 | { | |
863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
864 | result = (unsigned char)(arg1)->Red(); | |
865 | ||
866 | wxPyEndAllowThreads(__tstate); | |
867 | if (PyErr_Occurred()) SWIG_fail; | |
868 | } | |
869 | resultobj = PyInt_FromLong((long)result); | |
870 | return resultobj; | |
871 | fail: | |
872 | return NULL; | |
873 | } | |
874 | ||
875 | ||
876 | static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) { | |
877 | PyObject *resultobj; | |
878 | wxColour *arg1 = (wxColour *) 0 ; | |
879 | unsigned char result; | |
880 | PyObject * obj0 = 0 ; | |
881 | char *kwnames[] = { | |
882 | (char *) "self", NULL | |
883 | }; | |
884 | ||
885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail; | |
886 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
887 | { | |
888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
889 | result = (unsigned char)(arg1)->Green(); | |
890 | ||
891 | wxPyEndAllowThreads(__tstate); | |
892 | if (PyErr_Occurred()) SWIG_fail; | |
893 | } | |
894 | resultobj = PyInt_FromLong((long)result); | |
895 | return resultobj; | |
896 | fail: | |
897 | return NULL; | |
898 | } | |
899 | ||
900 | ||
901 | static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
902 | PyObject *resultobj; | |
903 | wxColour *arg1 = (wxColour *) 0 ; | |
904 | unsigned char result; | |
905 | PyObject * obj0 = 0 ; | |
906 | char *kwnames[] = { | |
907 | (char *) "self", NULL | |
908 | }; | |
909 | ||
910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail; | |
911 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
912 | { | |
913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
914 | result = (unsigned char)(arg1)->Blue(); | |
915 | ||
916 | wxPyEndAllowThreads(__tstate); | |
917 | if (PyErr_Occurred()) SWIG_fail; | |
918 | } | |
919 | resultobj = PyInt_FromLong((long)result); | |
920 | return resultobj; | |
921 | fail: | |
922 | return NULL; | |
923 | } | |
924 | ||
925 | ||
926 | static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
927 | PyObject *resultobj; | |
928 | wxColour *arg1 = (wxColour *) 0 ; | |
929 | bool result; | |
930 | PyObject * obj0 = 0 ; | |
931 | char *kwnames[] = { | |
932 | (char *) "self", NULL | |
933 | }; | |
934 | ||
935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail; | |
936 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
937 | { | |
938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
939 | result = (bool)(arg1)->Ok(); | |
940 | ||
941 | wxPyEndAllowThreads(__tstate); | |
942 | if (PyErr_Occurred()) SWIG_fail; | |
943 | } | |
944 | resultobj = PyInt_FromLong((long)result); | |
945 | return resultobj; | |
946 | fail: | |
947 | return NULL; | |
948 | } | |
949 | ||
950 | ||
951 | static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
952 | PyObject *resultobj; | |
953 | wxColour *arg1 = (wxColour *) 0 ; | |
954 | unsigned char arg2 ; | |
955 | unsigned char arg3 ; | |
956 | unsigned char arg4 ; | |
957 | PyObject * obj0 = 0 ; | |
958 | PyObject * obj1 = 0 ; | |
959 | PyObject * obj2 = 0 ; | |
960 | PyObject * obj3 = 0 ; | |
961 | char *kwnames[] = { | |
962 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
963 | }; | |
964 | ||
965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
966 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
967 | arg2 = (unsigned char) PyInt_AsLong(obj1); | |
968 | if (PyErr_Occurred()) SWIG_fail; | |
969 | arg3 = (unsigned char) PyInt_AsLong(obj2); | |
970 | if (PyErr_Occurred()) SWIG_fail; | |
971 | arg4 = (unsigned char) PyInt_AsLong(obj3); | |
972 | if (PyErr_Occurred()) SWIG_fail; | |
973 | { | |
974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
975 | (arg1)->Set(arg2,arg3,arg4); | |
976 | ||
977 | wxPyEndAllowThreads(__tstate); | |
978 | if (PyErr_Occurred()) SWIG_fail; | |
979 | } | |
980 | Py_INCREF(Py_None); resultobj = Py_None; | |
981 | return resultobj; | |
982 | fail: | |
983 | return NULL; | |
984 | } | |
985 | ||
986 | ||
987 | static PyObject *_wrap_Colour_SetRBG(PyObject *self, PyObject *args, PyObject *kwargs) { | |
988 | PyObject *resultobj; | |
989 | wxColour *arg1 = (wxColour *) 0 ; | |
990 | unsigned long arg2 ; | |
991 | PyObject * obj0 = 0 ; | |
992 | PyObject * obj1 = 0 ; | |
993 | char *kwnames[] = { | |
994 | (char *) "self",(char *) "colRGB", NULL | |
995 | }; | |
996 | ||
997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRBG",kwnames,&obj0,&obj1)) goto fail; | |
998 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
999 | arg2 = (unsigned long) PyInt_AsLong(obj1); | |
1000 | if (PyErr_Occurred()) SWIG_fail; | |
1001 | { | |
1002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1003 | (arg1)->Set(arg2); | |
1004 | ||
1005 | wxPyEndAllowThreads(__tstate); | |
1006 | if (PyErr_Occurred()) SWIG_fail; | |
1007 | } | |
1008 | Py_INCREF(Py_None); resultobj = Py_None; | |
1009 | return resultobj; | |
1010 | fail: | |
1011 | return NULL; | |
1012 | } | |
1013 | ||
1014 | ||
1015 | static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1016 | PyObject *resultobj; | |
1017 | wxColour *arg1 = (wxColour *) 0 ; | |
1018 | wxColour *arg2 = 0 ; | |
1019 | bool result; | |
1020 | wxColour temp2 ; | |
1021 | PyObject * obj0 = 0 ; | |
1022 | PyObject * obj1 = 0 ; | |
1023 | char *kwnames[] = { | |
1024 | (char *) "self",(char *) "colour", NULL | |
1025 | }; | |
1026 | ||
1027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail; | |
1028 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1029 | { | |
1030 | arg2 = &temp2; | |
1031 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1032 | } | |
1033 | { | |
1034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1035 | result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2); | |
1036 | ||
1037 | wxPyEndAllowThreads(__tstate); | |
1038 | if (PyErr_Occurred()) SWIG_fail; | |
1039 | } | |
1040 | resultobj = PyInt_FromLong((long)result); | |
1041 | return resultobj; | |
1042 | fail: | |
1043 | return NULL; | |
1044 | } | |
1045 | ||
1046 | ||
1047 | static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1048 | PyObject *resultobj; | |
1049 | wxColour *arg1 = (wxColour *) 0 ; | |
1050 | wxColour *arg2 = 0 ; | |
1051 | bool result; | |
1052 | wxColour temp2 ; | |
1053 | PyObject * obj0 = 0 ; | |
1054 | PyObject * obj1 = 0 ; | |
1055 | char *kwnames[] = { | |
1056 | (char *) "self",(char *) "colour", NULL | |
1057 | }; | |
1058 | ||
1059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail; | |
1060 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1061 | { | |
1062 | arg2 = &temp2; | |
1063 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1064 | } | |
1065 | { | |
1066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1067 | result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2); | |
1068 | ||
1069 | wxPyEndAllowThreads(__tstate); | |
1070 | if (PyErr_Occurred()) SWIG_fail; | |
1071 | } | |
1072 | resultobj = PyInt_FromLong((long)result); | |
1073 | return resultobj; | |
1074 | fail: | |
1075 | return NULL; | |
1076 | } | |
1077 | ||
1078 | ||
1079 | static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1080 | PyObject *resultobj; | |
1081 | wxColour *arg1 = (wxColour *) 0 ; | |
1082 | PyObject *result; | |
1083 | PyObject * obj0 = 0 ; | |
1084 | char *kwnames[] = { | |
1085 | (char *) "self", NULL | |
1086 | }; | |
1087 | ||
1088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail; | |
1089 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1090 | { | |
1091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1092 | result = (PyObject *)wxColour_Get(arg1); | |
1093 | ||
1094 | wxPyEndAllowThreads(__tstate); | |
1095 | if (PyErr_Occurred()) SWIG_fail; | |
1096 | } | |
1097 | resultobj = result; | |
1098 | return resultobj; | |
1099 | fail: | |
1100 | return NULL; | |
1101 | } | |
1102 | ||
1103 | ||
1104 | static PyObject * Colour_swigregister(PyObject *self, PyObject *args) { | |
1105 | PyObject *obj; | |
1106 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1107 | SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj); | |
1108 | Py_INCREF(obj); | |
1109 | return Py_BuildValue((char *)""); | |
1110 | } | |
1111 | static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1112 | PyObject *resultobj; | |
1113 | int arg1 ; | |
1114 | unsigned char *arg2 = (unsigned char *) 0 ; | |
1115 | unsigned char *arg3 = (unsigned char *) 0 ; | |
1116 | unsigned char *arg4 = (unsigned char *) 0 ; | |
1117 | wxPalette *result; | |
1118 | PyObject * obj1 = 0 ; | |
1119 | PyObject * obj2 = 0 ; | |
1120 | PyObject * obj3 = 0 ; | |
1121 | char *kwnames[] = { | |
1122 | (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1123 | }; | |
1124 | ||
1125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iOOO:new_Palette",kwnames,&arg1,&obj1,&obj2,&obj3)) goto fail; | |
1126 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1127 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1128 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1129 | { | |
1130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1131 | result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4); | |
1132 | ||
1133 | wxPyEndAllowThreads(__tstate); | |
1134 | if (PyErr_Occurred()) SWIG_fail; | |
1135 | } | |
1136 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPalette, 1); | |
1137 | return resultobj; | |
1138 | fail: | |
1139 | return NULL; | |
1140 | } | |
1141 | ||
1142 | ||
1143 | static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1144 | PyObject *resultobj; | |
1145 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1146 | PyObject * obj0 = 0 ; | |
1147 | char *kwnames[] = { | |
1148 | (char *) "self", NULL | |
1149 | }; | |
1150 | ||
1151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail; | |
1152 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1153 | { | |
1154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1155 | delete arg1; | |
1156 | ||
1157 | wxPyEndAllowThreads(__tstate); | |
1158 | if (PyErr_Occurred()) SWIG_fail; | |
1159 | } | |
1160 | Py_INCREF(Py_None); resultobj = Py_None; | |
1161 | return resultobj; | |
1162 | fail: | |
1163 | return NULL; | |
1164 | } | |
1165 | ||
1166 | ||
1167 | static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1168 | PyObject *resultobj; | |
1169 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1170 | byte arg2 ; | |
1171 | byte arg3 ; | |
1172 | byte arg4 ; | |
1173 | int result; | |
1174 | PyObject * obj0 = 0 ; | |
1175 | PyObject * obj1 = 0 ; | |
1176 | PyObject * obj2 = 0 ; | |
1177 | PyObject * obj3 = 0 ; | |
1178 | char *kwnames[] = { | |
1179 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1180 | }; | |
1181 | ||
1182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
1183 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1184 | arg2 = (byte) PyInt_AsLong(obj1); | |
1185 | if (PyErr_Occurred()) SWIG_fail; | |
1186 | arg3 = (byte) PyInt_AsLong(obj2); | |
1187 | if (PyErr_Occurred()) SWIG_fail; | |
1188 | arg4 = (byte) PyInt_AsLong(obj3); | |
1189 | if (PyErr_Occurred()) SWIG_fail; | |
1190 | { | |
1191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1192 | result = (int)(arg1)->GetPixel(arg2,arg3,arg4); | |
1193 | ||
1194 | wxPyEndAllowThreads(__tstate); | |
1195 | if (PyErr_Occurred()) SWIG_fail; | |
1196 | } | |
1197 | resultobj = PyInt_FromLong((long)result); | |
1198 | return resultobj; | |
1199 | fail: | |
1200 | return NULL; | |
1201 | } | |
1202 | ||
1203 | ||
1204 | static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1205 | PyObject *resultobj; | |
1206 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1207 | int arg2 ; | |
1208 | byte *arg3 = (byte *) 0 ; | |
1209 | byte *arg4 = (byte *) 0 ; | |
1210 | byte *arg5 = (byte *) 0 ; | |
1211 | bool result; | |
1212 | byte temp3 ; | |
1213 | byte temp4 ; | |
1214 | byte temp5 ; | |
1215 | PyObject * obj0 = 0 ; | |
1216 | char *kwnames[] = { | |
1217 | (char *) "self",(char *) "pixel", NULL | |
1218 | }; | |
1219 | ||
1220 | arg3 = &temp3; | |
1221 | arg4 = &temp4; | |
1222 | arg5 = &temp5; | |
1223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Palette_GetRGB",kwnames,&obj0,&arg2)) goto fail; | |
1224 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1225 | { | |
1226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1227 | result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5); | |
1228 | ||
1229 | wxPyEndAllowThreads(__tstate); | |
1230 | if (PyErr_Occurred()) SWIG_fail; | |
1231 | } | |
1232 | resultobj = PyInt_FromLong((long)result); | |
1233 | { | |
1234 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
1235 | resultobj = t_output_helper(resultobj,o); | |
1236 | } | |
1237 | { | |
1238 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
1239 | resultobj = t_output_helper(resultobj,o); | |
1240 | } | |
1241 | { | |
1242 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
1243 | resultobj = t_output_helper(resultobj,o); | |
1244 | } | |
1245 | return resultobj; | |
1246 | fail: | |
1247 | return NULL; | |
1248 | } | |
1249 | ||
1250 | ||
1251 | static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1252 | PyObject *resultobj; | |
1253 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1254 | bool result; | |
1255 | PyObject * obj0 = 0 ; | |
1256 | char *kwnames[] = { | |
1257 | (char *) "self", NULL | |
1258 | }; | |
1259 | ||
1260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail; | |
1261 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1262 | { | |
1263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1264 | result = (bool)(arg1)->Ok(); | |
1265 | ||
1266 | wxPyEndAllowThreads(__tstate); | |
1267 | if (PyErr_Occurred()) SWIG_fail; | |
1268 | } | |
1269 | resultobj = PyInt_FromLong((long)result); | |
1270 | return resultobj; | |
1271 | fail: | |
1272 | return NULL; | |
1273 | } | |
1274 | ||
1275 | ||
1276 | static PyObject * Palette_swigregister(PyObject *self, PyObject *args) { | |
1277 | PyObject *obj; | |
1278 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1279 | SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj); | |
1280 | Py_INCREF(obj); | |
1281 | return Py_BuildValue((char *)""); | |
1282 | } | |
1283 | static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1284 | PyObject *resultobj; | |
1285 | wxColour *arg1 = 0 ; | |
1286 | int arg2 = (int) 1 ; | |
1287 | int arg3 = (int) wxSOLID ; | |
1288 | wxPen *result; | |
1289 | wxColour temp1 ; | |
1290 | PyObject * obj0 = 0 ; | |
1291 | char *kwnames[] = { | |
1292 | (char *) "colour",(char *) "width",(char *) "style", NULL | |
1293 | }; | |
1294 | ||
1295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:new_Pen",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
1296 | { | |
1297 | arg1 = &temp1; | |
1298 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
1299 | } | |
1300 | { | |
1301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1302 | result = (wxPen *)new wxPen(*arg1,arg2,arg3); | |
1303 | ||
1304 | wxPyEndAllowThreads(__tstate); | |
1305 | if (PyErr_Occurred()) SWIG_fail; | |
1306 | } | |
1307 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 1); | |
1308 | return resultobj; | |
1309 | fail: | |
1310 | return NULL; | |
1311 | } | |
1312 | ||
1313 | ||
1314 | static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1315 | PyObject *resultobj; | |
1316 | wxPen *arg1 = (wxPen *) 0 ; | |
1317 | PyObject * obj0 = 0 ; | |
1318 | char *kwnames[] = { | |
1319 | (char *) "self", NULL | |
1320 | }; | |
1321 | ||
1322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail; | |
1323 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1324 | { | |
1325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1326 | delete arg1; | |
1327 | ||
1328 | wxPyEndAllowThreads(__tstate); | |
1329 | if (PyErr_Occurred()) SWIG_fail; | |
1330 | } | |
1331 | Py_INCREF(Py_None); resultobj = Py_None; | |
1332 | return resultobj; | |
1333 | fail: | |
1334 | return NULL; | |
1335 | } | |
1336 | ||
1337 | ||
1338 | static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1339 | PyObject *resultobj; | |
1340 | wxPen *arg1 = (wxPen *) 0 ; | |
1341 | int result; | |
1342 | PyObject * obj0 = 0 ; | |
1343 | char *kwnames[] = { | |
1344 | (char *) "self", NULL | |
1345 | }; | |
1346 | ||
1347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail; | |
1348 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1349 | { | |
1350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1351 | result = (int)(arg1)->GetCap(); | |
1352 | ||
1353 | wxPyEndAllowThreads(__tstate); | |
1354 | if (PyErr_Occurred()) SWIG_fail; | |
1355 | } | |
1356 | resultobj = PyInt_FromLong((long)result); | |
1357 | return resultobj; | |
1358 | fail: | |
1359 | return NULL; | |
1360 | } | |
1361 | ||
1362 | ||
1363 | static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1364 | PyObject *resultobj; | |
1365 | wxPen *arg1 = (wxPen *) 0 ; | |
1366 | wxColour result; | |
1367 | PyObject * obj0 = 0 ; | |
1368 | char *kwnames[] = { | |
1369 | (char *) "self", NULL | |
1370 | }; | |
1371 | ||
1372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail; | |
1373 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1374 | { | |
1375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1376 | result = (arg1)->GetColour(); | |
1377 | ||
1378 | wxPyEndAllowThreads(__tstate); | |
1379 | if (PyErr_Occurred()) SWIG_fail; | |
1380 | } | |
1381 | { | |
1382 | wxColour * resultptr; | |
1383 | resultptr = new wxColour((wxColour &) result); | |
1384 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
1385 | } | |
1386 | return resultobj; | |
1387 | fail: | |
1388 | return NULL; | |
1389 | } | |
1390 | ||
1391 | ||
1392 | static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1393 | PyObject *resultobj; | |
1394 | wxPen *arg1 = (wxPen *) 0 ; | |
1395 | int result; | |
1396 | PyObject * obj0 = 0 ; | |
1397 | char *kwnames[] = { | |
1398 | (char *) "self", NULL | |
1399 | }; | |
1400 | ||
1401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail; | |
1402 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1403 | { | |
1404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1405 | result = (int)(arg1)->GetJoin(); | |
1406 | ||
1407 | wxPyEndAllowThreads(__tstate); | |
1408 | if (PyErr_Occurred()) SWIG_fail; | |
1409 | } | |
1410 | resultobj = PyInt_FromLong((long)result); | |
1411 | return resultobj; | |
1412 | fail: | |
1413 | return NULL; | |
1414 | } | |
1415 | ||
1416 | ||
1417 | static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1418 | PyObject *resultobj; | |
1419 | wxPen *arg1 = (wxPen *) 0 ; | |
1420 | int result; | |
1421 | PyObject * obj0 = 0 ; | |
1422 | char *kwnames[] = { | |
1423 | (char *) "self", NULL | |
1424 | }; | |
1425 | ||
1426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail; | |
1427 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1428 | { | |
1429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1430 | result = (int)(arg1)->GetStyle(); | |
1431 | ||
1432 | wxPyEndAllowThreads(__tstate); | |
1433 | if (PyErr_Occurred()) SWIG_fail; | |
1434 | } | |
1435 | resultobj = PyInt_FromLong((long)result); | |
1436 | return resultobj; | |
1437 | fail: | |
1438 | return NULL; | |
1439 | } | |
1440 | ||
1441 | ||
1442 | static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1443 | PyObject *resultobj; | |
1444 | wxPen *arg1 = (wxPen *) 0 ; | |
1445 | int result; | |
1446 | PyObject * obj0 = 0 ; | |
1447 | char *kwnames[] = { | |
1448 | (char *) "self", NULL | |
1449 | }; | |
1450 | ||
1451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail; | |
1452 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1453 | { | |
1454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1455 | result = (int)(arg1)->GetWidth(); | |
1456 | ||
1457 | wxPyEndAllowThreads(__tstate); | |
1458 | if (PyErr_Occurred()) SWIG_fail; | |
1459 | } | |
1460 | resultobj = PyInt_FromLong((long)result); | |
1461 | return resultobj; | |
1462 | fail: | |
1463 | return NULL; | |
1464 | } | |
1465 | ||
1466 | ||
1467 | static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1468 | PyObject *resultobj; | |
1469 | wxPen *arg1 = (wxPen *) 0 ; | |
1470 | bool result; | |
1471 | PyObject * obj0 = 0 ; | |
1472 | char *kwnames[] = { | |
1473 | (char *) "self", NULL | |
1474 | }; | |
1475 | ||
1476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail; | |
1477 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1478 | { | |
1479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1480 | result = (bool)(arg1)->Ok(); | |
1481 | ||
1482 | wxPyEndAllowThreads(__tstate); | |
1483 | if (PyErr_Occurred()) SWIG_fail; | |
1484 | } | |
1485 | resultobj = PyInt_FromLong((long)result); | |
1486 | return resultobj; | |
1487 | fail: | |
1488 | return NULL; | |
1489 | } | |
1490 | ||
1491 | ||
1492 | static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1493 | PyObject *resultobj; | |
1494 | wxPen *arg1 = (wxPen *) 0 ; | |
1495 | int arg2 ; | |
1496 | PyObject * obj0 = 0 ; | |
1497 | char *kwnames[] = { | |
1498 | (char *) "self",(char *) "cap_style", NULL | |
1499 | }; | |
1500 | ||
1501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetCap",kwnames,&obj0,&arg2)) goto fail; | |
1502 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1503 | { | |
1504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1505 | (arg1)->SetCap(arg2); | |
1506 | ||
1507 | wxPyEndAllowThreads(__tstate); | |
1508 | if (PyErr_Occurred()) SWIG_fail; | |
1509 | } | |
1510 | Py_INCREF(Py_None); resultobj = Py_None; | |
1511 | return resultobj; | |
1512 | fail: | |
1513 | return NULL; | |
1514 | } | |
1515 | ||
1516 | ||
1517 | static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1518 | PyObject *resultobj; | |
1519 | wxPen *arg1 = (wxPen *) 0 ; | |
1520 | wxColour *arg2 = 0 ; | |
1521 | wxColour temp2 ; | |
1522 | PyObject * obj0 = 0 ; | |
1523 | PyObject * obj1 = 0 ; | |
1524 | char *kwnames[] = { | |
1525 | (char *) "self",(char *) "colour", NULL | |
1526 | }; | |
1527 | ||
1528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
1529 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1530 | { | |
1531 | arg2 = &temp2; | |
1532 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1533 | } | |
1534 | { | |
1535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1536 | (arg1)->SetColour(*arg2); | |
1537 | ||
1538 | wxPyEndAllowThreads(__tstate); | |
1539 | if (PyErr_Occurred()) SWIG_fail; | |
1540 | } | |
1541 | Py_INCREF(Py_None); resultobj = Py_None; | |
1542 | return resultobj; | |
1543 | fail: | |
1544 | return NULL; | |
1545 | } | |
1546 | ||
1547 | ||
1548 | static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1549 | PyObject *resultobj; | |
1550 | wxPen *arg1 = (wxPen *) 0 ; | |
1551 | int arg2 ; | |
1552 | PyObject * obj0 = 0 ; | |
1553 | char *kwnames[] = { | |
1554 | (char *) "self",(char *) "join_style", NULL | |
1555 | }; | |
1556 | ||
1557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetJoin",kwnames,&obj0,&arg2)) goto fail; | |
1558 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1559 | { | |
1560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1561 | (arg1)->SetJoin(arg2); | |
1562 | ||
1563 | wxPyEndAllowThreads(__tstate); | |
1564 | if (PyErr_Occurred()) SWIG_fail; | |
1565 | } | |
1566 | Py_INCREF(Py_None); resultobj = Py_None; | |
1567 | return resultobj; | |
1568 | fail: | |
1569 | return NULL; | |
1570 | } | |
1571 | ||
1572 | ||
1573 | static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1574 | PyObject *resultobj; | |
1575 | wxPen *arg1 = (wxPen *) 0 ; | |
1576 | int arg2 ; | |
1577 | PyObject * obj0 = 0 ; | |
1578 | char *kwnames[] = { | |
1579 | (char *) "self",(char *) "style", NULL | |
1580 | }; | |
1581 | ||
1582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetStyle",kwnames,&obj0,&arg2)) goto fail; | |
1583 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1584 | { | |
1585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1586 | (arg1)->SetStyle(arg2); | |
1587 | ||
1588 | wxPyEndAllowThreads(__tstate); | |
1589 | if (PyErr_Occurred()) SWIG_fail; | |
1590 | } | |
1591 | Py_INCREF(Py_None); resultobj = Py_None; | |
1592 | return resultobj; | |
1593 | fail: | |
1594 | return NULL; | |
1595 | } | |
1596 | ||
1597 | ||
1598 | static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1599 | PyObject *resultobj; | |
1600 | wxPen *arg1 = (wxPen *) 0 ; | |
1601 | int arg2 ; | |
1602 | PyObject * obj0 = 0 ; | |
1603 | char *kwnames[] = { | |
1604 | (char *) "self",(char *) "width", NULL | |
1605 | }; | |
1606 | ||
1607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetWidth",kwnames,&obj0,&arg2)) goto fail; | |
1608 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1609 | { | |
1610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1611 | (arg1)->SetWidth(arg2); | |
1612 | ||
1613 | wxPyEndAllowThreads(__tstate); | |
1614 | if (PyErr_Occurred()) SWIG_fail; | |
1615 | } | |
1616 | Py_INCREF(Py_None); resultobj = Py_None; | |
1617 | return resultobj; | |
1618 | fail: | |
1619 | return NULL; | |
1620 | } | |
1621 | ||
1622 | ||
1623 | static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1624 | PyObject *resultobj; | |
1625 | wxPen *arg1 = (wxPen *) 0 ; | |
1626 | int arg2 ; | |
1627 | wxDash *arg3 = (wxDash *) 0 ; | |
1628 | PyObject * obj0 = 0 ; | |
1629 | PyObject * obj1 = 0 ; | |
1630 | char *kwnames[] = { | |
1631 | (char *) "self",(char *) "dashes", NULL | |
1632 | }; | |
1633 | ||
1634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail; | |
1635 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1636 | { | |
1637 | arg2 = PyList_Size(obj1); | |
1638 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
1639 | if (arg3 == NULL) SWIG_fail; | |
1640 | } | |
1641 | { | |
1642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1643 | (arg1)->SetDashes(arg2,arg3); | |
1644 | ||
1645 | wxPyEndAllowThreads(__tstate); | |
1646 | if (PyErr_Occurred()) SWIG_fail; | |
1647 | } | |
1648 | Py_INCREF(Py_None); resultobj = Py_None; | |
1649 | { | |
1650 | if (arg3) delete [] arg3; | |
1651 | } | |
1652 | return resultobj; | |
1653 | fail: | |
1654 | { | |
1655 | if (arg3) delete [] arg3; | |
1656 | } | |
1657 | return NULL; | |
1658 | } | |
1659 | ||
1660 | ||
1661 | static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1662 | PyObject *resultobj; | |
1663 | wxPen *arg1 = (wxPen *) 0 ; | |
1664 | PyObject *result; | |
1665 | PyObject * obj0 = 0 ; | |
1666 | char *kwnames[] = { | |
1667 | (char *) "self", NULL | |
1668 | }; | |
1669 | ||
1670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail; | |
1671 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1672 | { | |
1673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1674 | result = (PyObject *)wxPen_GetDashes(arg1); | |
1675 | ||
1676 | wxPyEndAllowThreads(__tstate); | |
1677 | if (PyErr_Occurred()) SWIG_fail; | |
1678 | } | |
1679 | resultobj = result; | |
1680 | return resultobj; | |
1681 | fail: | |
1682 | return NULL; | |
1683 | } | |
1684 | ||
1685 | ||
1686 | static PyObject *_wrap_Pen_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1687 | PyObject *resultobj; | |
1688 | wxPen *arg1 = (wxPen *) 0 ; | |
1689 | wxBitmap *result; | |
1690 | PyObject * obj0 = 0 ; | |
1691 | char *kwnames[] = { | |
1692 | (char *) "self", NULL | |
1693 | }; | |
1694 | ||
1695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStipple",kwnames,&obj0)) goto fail; | |
1696 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1697 | { | |
1698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1699 | result = (wxBitmap *)(arg1)->GetStipple(); | |
1700 | ||
1701 | wxPyEndAllowThreads(__tstate); | |
1702 | if (PyErr_Occurred()) SWIG_fail; | |
1703 | } | |
1704 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
1705 | return resultobj; | |
1706 | fail: | |
1707 | return NULL; | |
1708 | } | |
1709 | ||
1710 | ||
1711 | static PyObject *_wrap_Pen_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1712 | PyObject *resultobj; | |
1713 | wxPen *arg1 = (wxPen *) 0 ; | |
1714 | wxBitmap *arg2 = 0 ; | |
1715 | PyObject * obj0 = 0 ; | |
1716 | PyObject * obj1 = 0 ; | |
1717 | char *kwnames[] = { | |
1718 | (char *) "self",(char *) "stipple", NULL | |
1719 | }; | |
1720 | ||
1721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) goto fail; | |
1722 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1723 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1724 | if (arg2 == NULL) { | |
1725 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1726 | } | |
1727 | { | |
1728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1729 | (arg1)->SetStipple(*arg2); | |
1730 | ||
1731 | wxPyEndAllowThreads(__tstate); | |
1732 | if (PyErr_Occurred()) SWIG_fail; | |
1733 | } | |
1734 | Py_INCREF(Py_None); resultobj = Py_None; | |
1735 | return resultobj; | |
1736 | fail: | |
1737 | return NULL; | |
1738 | } | |
1739 | ||
1740 | ||
1741 | static PyObject * Pen_swigregister(PyObject *self, PyObject *args) { | |
1742 | PyObject *obj; | |
1743 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1744 | SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj); | |
1745 | Py_INCREF(obj); | |
1746 | return Py_BuildValue((char *)""); | |
1747 | } | |
1748 | static PyObject *_wrap_new_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1749 | PyObject *resultobj; | |
1750 | wxColour *arg1 = 0 ; | |
1751 | int arg2 = (int) 1 ; | |
1752 | int arg3 = (int) wxSOLID ; | |
1753 | wxPyPen *result; | |
1754 | wxColour temp1 ; | |
1755 | PyObject * obj0 = 0 ; | |
1756 | char *kwnames[] = { | |
1757 | (char *) "colour",(char *) "width",(char *) "style", NULL | |
1758 | }; | |
1759 | ||
1760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:new_PyPen",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
1761 | { | |
1762 | arg1 = &temp1; | |
1763 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
1764 | } | |
1765 | { | |
1766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1767 | result = (wxPyPen *)new wxPyPen(*arg1,arg2,arg3); | |
1768 | ||
1769 | wxPyEndAllowThreads(__tstate); | |
1770 | if (PyErr_Occurred()) SWIG_fail; | |
1771 | } | |
1772 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyPen, 1); | |
1773 | return resultobj; | |
1774 | fail: | |
1775 | return NULL; | |
1776 | } | |
1777 | ||
1778 | ||
1779 | static PyObject *_wrap_delete_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1780 | PyObject *resultobj; | |
1781 | wxPyPen *arg1 = (wxPyPen *) 0 ; | |
1782 | PyObject * obj0 = 0 ; | |
1783 | char *kwnames[] = { | |
1784 | (char *) "self", NULL | |
1785 | }; | |
1786 | ||
1787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyPen",kwnames,&obj0)) goto fail; | |
1788 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1789 | { | |
1790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1791 | delete arg1; | |
1792 | ||
1793 | wxPyEndAllowThreads(__tstate); | |
1794 | if (PyErr_Occurred()) SWIG_fail; | |
1795 | } | |
1796 | Py_INCREF(Py_None); resultobj = Py_None; | |
1797 | return resultobj; | |
1798 | fail: | |
1799 | return NULL; | |
1800 | } | |
1801 | ||
1802 | ||
1803 | static PyObject *_wrap_PyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1804 | PyObject *resultobj; | |
1805 | wxPyPen *arg1 = (wxPyPen *) 0 ; | |
1806 | int arg2 ; | |
1807 | wxDash *arg3 = (wxDash *) 0 ; | |
1808 | PyObject * obj0 = 0 ; | |
1809 | PyObject * obj1 = 0 ; | |
1810 | char *kwnames[] = { | |
1811 | (char *) "self",(char *) "dashes", NULL | |
1812 | }; | |
1813 | ||
1814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPen_SetDashes",kwnames,&obj0,&obj1)) goto fail; | |
1815 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1816 | { | |
1817 | arg2 = PyList_Size(obj1); | |
1818 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
1819 | if (arg3 == NULL) SWIG_fail; | |
1820 | } | |
1821 | { | |
1822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1823 | (arg1)->SetDashes(arg2,arg3); | |
1824 | ||
1825 | wxPyEndAllowThreads(__tstate); | |
1826 | if (PyErr_Occurred()) SWIG_fail; | |
1827 | } | |
1828 | Py_INCREF(Py_None); resultobj = Py_None; | |
1829 | { | |
1830 | if (arg3) delete [] arg3; | |
1831 | } | |
1832 | return resultobj; | |
1833 | fail: | |
1834 | { | |
1835 | if (arg3) delete [] arg3; | |
1836 | } | |
1837 | return NULL; | |
1838 | } | |
1839 | ||
1840 | ||
1841 | static PyObject * PyPen_swigregister(PyObject *self, PyObject *args) { | |
1842 | PyObject *obj; | |
1843 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1844 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPen, obj); | |
1845 | Py_INCREF(obj); | |
1846 | return Py_BuildValue((char *)""); | |
1847 | } | |
1848 | static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1849 | PyObject *resultobj; | |
1850 | wxColour *arg1 = 0 ; | |
1851 | int arg2 = (int) wxSOLID ; | |
1852 | wxBrush *result; | |
1853 | wxColour temp1 ; | |
1854 | PyObject * obj0 = 0 ; | |
1855 | char *kwnames[] = { | |
1856 | (char *) "colour",(char *) "style", NULL | |
1857 | }; | |
1858 | ||
1859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_Brush",kwnames,&obj0,&arg2)) goto fail; | |
1860 | { | |
1861 | arg1 = &temp1; | |
1862 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
1863 | } | |
1864 | { | |
1865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1866 | result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2); | |
1867 | ||
1868 | wxPyEndAllowThreads(__tstate); | |
1869 | if (PyErr_Occurred()) SWIG_fail; | |
1870 | } | |
1871 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 1); | |
1872 | return resultobj; | |
1873 | fail: | |
1874 | return NULL; | |
1875 | } | |
1876 | ||
1877 | ||
1878 | static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1879 | PyObject *resultobj; | |
1880 | wxBrush *arg1 = (wxBrush *) 0 ; | |
1881 | PyObject * obj0 = 0 ; | |
1882 | char *kwnames[] = { | |
1883 | (char *) "self", NULL | |
1884 | }; | |
1885 | ||
1886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail; | |
1887 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1888 | { | |
1889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1890 | delete arg1; | |
1891 | ||
1892 | wxPyEndAllowThreads(__tstate); | |
1893 | if (PyErr_Occurred()) SWIG_fail; | |
1894 | } | |
1895 | Py_INCREF(Py_None); resultobj = Py_None; | |
1896 | return resultobj; | |
1897 | fail: | |
1898 | return NULL; | |
1899 | } | |
1900 | ||
1901 | ||
1902 | static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1903 | PyObject *resultobj; | |
1904 | wxBrush *arg1 = (wxBrush *) 0 ; | |
1905 | wxColour *arg2 = 0 ; | |
1906 | wxColour temp2 ; | |
1907 | PyObject * obj0 = 0 ; | |
1908 | PyObject * obj1 = 0 ; | |
1909 | char *kwnames[] = { | |
1910 | (char *) "self",(char *) "col", NULL | |
1911 | }; | |
1912 | ||
1913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
1914 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1915 | { | |
1916 | arg2 = &temp2; | |
1917 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1918 | } | |
1919 | { | |
1920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1921 | (arg1)->SetColour((wxColour const &)*arg2); | |
1922 | ||
1923 | wxPyEndAllowThreads(__tstate); | |
1924 | if (PyErr_Occurred()) SWIG_fail; | |
1925 | } | |
1926 | Py_INCREF(Py_None); resultobj = Py_None; | |
1927 | return resultobj; | |
1928 | fail: | |
1929 | return NULL; | |
1930 | } | |
1931 | ||
1932 | ||
1933 | static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1934 | PyObject *resultobj; | |
1935 | wxBrush *arg1 = (wxBrush *) 0 ; | |
1936 | int arg2 ; | |
1937 | PyObject * obj0 = 0 ; | |
1938 | char *kwnames[] = { | |
1939 | (char *) "self",(char *) "style", NULL | |
1940 | }; | |
1941 | ||
1942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Brush_SetStyle",kwnames,&obj0,&arg2)) goto fail; | |
1943 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1944 | { | |
1945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1946 | (arg1)->SetStyle(arg2); | |
1947 | ||
1948 | wxPyEndAllowThreads(__tstate); | |
1949 | if (PyErr_Occurred()) SWIG_fail; | |
1950 | } | |
1951 | Py_INCREF(Py_None); resultobj = Py_None; | |
1952 | return resultobj; | |
1953 | fail: | |
1954 | return NULL; | |
1955 | } | |
1956 | ||
1957 | ||
1958 | static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1959 | PyObject *resultobj; | |
1960 | wxBrush *arg1 = (wxBrush *) 0 ; | |
1961 | wxBitmap *arg2 = 0 ; | |
1962 | PyObject * obj0 = 0 ; | |
1963 | PyObject * obj1 = 0 ; | |
1964 | char *kwnames[] = { | |
1965 | (char *) "self",(char *) "stipple", NULL | |
1966 | }; | |
1967 | ||
1968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail; | |
1969 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1970 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1971 | if (arg2 == NULL) { | |
1972 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1973 | } | |
1974 | { | |
1975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1976 | (arg1)->SetStipple((wxBitmap const &)*arg2); | |
1977 | ||
1978 | wxPyEndAllowThreads(__tstate); | |
1979 | if (PyErr_Occurred()) SWIG_fail; | |
1980 | } | |
1981 | Py_INCREF(Py_None); resultobj = Py_None; | |
1982 | return resultobj; | |
1983 | fail: | |
1984 | return NULL; | |
1985 | } | |
1986 | ||
1987 | ||
1988 | static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1989 | PyObject *resultobj; | |
1990 | wxBrush *arg1 = (wxBrush *) 0 ; | |
1991 | wxColour result; | |
1992 | PyObject * obj0 = 0 ; | |
1993 | char *kwnames[] = { | |
1994 | (char *) "self", NULL | |
1995 | }; | |
1996 | ||
1997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail; | |
1998 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1999 | { | |
2000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2001 | result = ((wxBrush const *)arg1)->GetColour(); | |
2002 | ||
2003 | wxPyEndAllowThreads(__tstate); | |
2004 | if (PyErr_Occurred()) SWIG_fail; | |
2005 | } | |
2006 | { | |
2007 | wxColour * resultptr; | |
2008 | resultptr = new wxColour((wxColour &) result); | |
2009 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
2010 | } | |
2011 | return resultobj; | |
2012 | fail: | |
2013 | return NULL; | |
2014 | } | |
2015 | ||
2016 | ||
2017 | static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2018 | PyObject *resultobj; | |
2019 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2020 | int result; | |
2021 | PyObject * obj0 = 0 ; | |
2022 | char *kwnames[] = { | |
2023 | (char *) "self", NULL | |
2024 | }; | |
2025 | ||
2026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail; | |
2027 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2028 | { | |
2029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2030 | result = (int)((wxBrush const *)arg1)->GetStyle(); | |
2031 | ||
2032 | wxPyEndAllowThreads(__tstate); | |
2033 | if (PyErr_Occurred()) SWIG_fail; | |
2034 | } | |
2035 | resultobj = PyInt_FromLong((long)result); | |
2036 | return resultobj; | |
2037 | fail: | |
2038 | return NULL; | |
2039 | } | |
2040 | ||
2041 | ||
2042 | static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2043 | PyObject *resultobj; | |
2044 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2045 | wxBitmap *result; | |
2046 | PyObject * obj0 = 0 ; | |
2047 | char *kwnames[] = { | |
2048 | (char *) "self", NULL | |
2049 | }; | |
2050 | ||
2051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail; | |
2052 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2053 | { | |
2054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2055 | result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple(); | |
2056 | ||
2057 | wxPyEndAllowThreads(__tstate); | |
2058 | if (PyErr_Occurred()) SWIG_fail; | |
2059 | } | |
2060 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
2061 | return resultobj; | |
2062 | fail: | |
2063 | return NULL; | |
2064 | } | |
2065 | ||
2066 | ||
2067 | static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2068 | PyObject *resultobj; | |
2069 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2070 | bool result; | |
2071 | PyObject * obj0 = 0 ; | |
2072 | char *kwnames[] = { | |
2073 | (char *) "self", NULL | |
2074 | }; | |
2075 | ||
2076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail; | |
2077 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2078 | { | |
2079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2080 | result = (bool)(arg1)->Ok(); | |
2081 | ||
2082 | wxPyEndAllowThreads(__tstate); | |
2083 | if (PyErr_Occurred()) SWIG_fail; | |
2084 | } | |
2085 | resultobj = PyInt_FromLong((long)result); | |
2086 | return resultobj; | |
2087 | fail: | |
2088 | return NULL; | |
2089 | } | |
2090 | ||
2091 | ||
2092 | static PyObject * Brush_swigregister(PyObject *self, PyObject *args) { | |
2093 | PyObject *obj; | |
2094 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2095 | SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj); | |
2096 | Py_INCREF(obj); | |
2097 | return Py_BuildValue((char *)""); | |
2098 | } | |
2099 | static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2100 | PyObject *resultobj; | |
2101 | wxString *arg1 = 0 ; | |
2102 | int arg2 = (int) wxBITMAP_TYPE_ANY ; | |
2103 | wxBitmap *result; | |
2104 | bool temp1 = False ; | |
2105 | PyObject * obj0 = 0 ; | |
2106 | char *kwnames[] = { | |
2107 | (char *) "name",(char *) "type", NULL | |
2108 | }; | |
2109 | ||
2110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_Bitmap",kwnames,&obj0,&arg2)) goto fail; | |
2111 | { | |
2112 | arg1 = wxString_in_helper(obj0); | |
2113 | if (arg1 == NULL) SWIG_fail; | |
2114 | temp1 = True; | |
2115 | } | |
2116 | { | |
2117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2118 | result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2); | |
2119 | ||
2120 | wxPyEndAllowThreads(__tstate); | |
2121 | if (PyErr_Occurred()) SWIG_fail; | |
2122 | } | |
2123 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2124 | { | |
2125 | if (temp1) | |
2126 | delete arg1; | |
2127 | } | |
2128 | return resultobj; | |
2129 | fail: | |
2130 | { | |
2131 | if (temp1) | |
2132 | delete arg1; | |
2133 | } | |
2134 | return NULL; | |
2135 | } | |
2136 | ||
2137 | ||
2138 | static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2139 | PyObject *resultobj; | |
2140 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2141 | PyObject * obj0 = 0 ; | |
2142 | char *kwnames[] = { | |
2143 | (char *) "self", NULL | |
2144 | }; | |
2145 | ||
2146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail; | |
2147 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2148 | { | |
2149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2150 | delete arg1; | |
2151 | ||
2152 | wxPyEndAllowThreads(__tstate); | |
2153 | if (PyErr_Occurred()) SWIG_fail; | |
2154 | } | |
2155 | Py_INCREF(Py_None); resultobj = Py_None; | |
2156 | return resultobj; | |
2157 | fail: | |
2158 | return NULL; | |
2159 | } | |
2160 | ||
2161 | ||
2162 | static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2163 | PyObject *resultobj; | |
2164 | int arg1 ; | |
2165 | int arg2 ; | |
2166 | int arg3 = (int) -1 ; | |
2167 | wxBitmap *result; | |
2168 | char *kwnames[] = { | |
2169 | (char *) "width",(char *) "height",(char *) "depth", NULL | |
2170 | }; | |
2171 | ||
2172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii|i:new_EmptyBitmap",kwnames,&arg1,&arg2,&arg3)) goto fail; | |
2173 | { | |
2174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2175 | result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3); | |
2176 | ||
2177 | wxPyEndAllowThreads(__tstate); | |
2178 | if (PyErr_Occurred()) SWIG_fail; | |
2179 | } | |
2180 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2181 | return resultobj; | |
2182 | fail: | |
2183 | return NULL; | |
2184 | } | |
2185 | ||
2186 | ||
2187 | static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2188 | PyObject *resultobj; | |
2189 | wxIcon *arg1 = 0 ; | |
2190 | wxBitmap *result; | |
2191 | PyObject * obj0 = 0 ; | |
2192 | char *kwnames[] = { | |
2193 | (char *) "icon", NULL | |
2194 | }; | |
2195 | ||
2196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail; | |
2197 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2198 | if (arg1 == NULL) { | |
2199 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2200 | } | |
2201 | { | |
2202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2203 | result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1); | |
2204 | ||
2205 | wxPyEndAllowThreads(__tstate); | |
2206 | if (PyErr_Occurred()) SWIG_fail; | |
2207 | } | |
2208 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2209 | return resultobj; | |
2210 | fail: | |
2211 | return NULL; | |
2212 | } | |
2213 | ||
2214 | ||
2215 | static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2216 | PyObject *resultobj; | |
2217 | wxImage *arg1 = 0 ; | |
2218 | int arg2 = (int) -1 ; | |
2219 | wxBitmap *result; | |
2220 | PyObject * obj0 = 0 ; | |
2221 | char *kwnames[] = { | |
2222 | (char *) "image",(char *) "depth", NULL | |
2223 | }; | |
2224 | ||
2225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_BitmapFromImage",kwnames,&obj0,&arg2)) goto fail; | |
2226 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2227 | if (arg1 == NULL) { | |
2228 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2229 | } | |
2230 | { | |
2231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2232 | result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2); | |
2233 | ||
2234 | wxPyEndAllowThreads(__tstate); | |
2235 | if (PyErr_Occurred()) SWIG_fail; | |
2236 | } | |
2237 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2238 | return resultobj; | |
2239 | fail: | |
2240 | return NULL; | |
2241 | } | |
2242 | ||
2243 | ||
2244 | static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2245 | PyObject *resultobj; | |
2246 | PyObject *arg1 = (PyObject *) 0 ; | |
2247 | wxBitmap *result; | |
2248 | PyObject * obj0 = 0 ; | |
2249 | char *kwnames[] = { | |
2250 | (char *) "listOfStrings", NULL | |
2251 | }; | |
2252 | ||
2253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail; | |
2254 | arg1 = obj0; | |
2255 | { | |
2256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2257 | result = (wxBitmap *)new_wxBitmap(arg1); | |
2258 | ||
2259 | wxPyEndAllowThreads(__tstate); | |
2260 | if (PyErr_Occurred()) SWIG_fail; | |
2261 | } | |
2262 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2263 | return resultobj; | |
2264 | fail: | |
2265 | return NULL; | |
2266 | } | |
2267 | ||
2268 | ||
2269 | static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2270 | PyObject *resultobj; | |
2271 | PyObject *arg1 = (PyObject *) 0 ; | |
2272 | int arg2 ; | |
2273 | int arg3 ; | |
2274 | int arg4 = (int) 1 ; | |
2275 | wxBitmap *result; | |
2276 | PyObject * obj0 = 0 ; | |
2277 | char *kwnames[] = { | |
2278 | (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL | |
2279 | }; | |
2280 | ||
2281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|i:new_BitmapFromBits",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
2282 | arg1 = obj0; | |
2283 | { | |
2284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2285 | result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4); | |
2286 | ||
2287 | wxPyEndAllowThreads(__tstate); | |
2288 | if (PyErr_Occurred()) SWIG_fail; | |
2289 | } | |
2290 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2291 | return resultobj; | |
2292 | fail: | |
2293 | return NULL; | |
2294 | } | |
2295 | ||
2296 | ||
2297 | static PyObject *_wrap_Bitmap_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2298 | PyObject *resultobj; | |
2299 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2300 | wxPalette *arg2 = 0 ; | |
2301 | PyObject * obj0 = 0 ; | |
2302 | PyObject * obj1 = 0 ; | |
2303 | char *kwnames[] = { | |
2304 | (char *) "self",(char *) "palette", NULL | |
2305 | }; | |
2306 | ||
2307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) goto fail; | |
2308 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2309 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2310 | if (arg2 == NULL) { | |
2311 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2312 | } | |
2313 | { | |
2314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2315 | (arg1)->SetPalette(*arg2); | |
2316 | ||
2317 | wxPyEndAllowThreads(__tstate); | |
2318 | if (PyErr_Occurred()) SWIG_fail; | |
2319 | } | |
2320 | Py_INCREF(Py_None); resultobj = Py_None; | |
2321 | return resultobj; | |
2322 | fail: | |
2323 | return NULL; | |
2324 | } | |
2325 | ||
2326 | ||
2327 | static PyObject *_wrap_Bitmap_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2328 | PyObject *resultobj; | |
2329 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2330 | long result; | |
2331 | PyObject * obj0 = 0 ; | |
2332 | char *kwnames[] = { | |
2333 | (char *) "self", NULL | |
2334 | }; | |
2335 | ||
2336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHandle",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 = (long)(arg1)->GetHandle(); | |
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_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2353 | PyObject *resultobj; | |
2354 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2355 | long arg2 ; | |
2356 | PyObject * obj0 = 0 ; | |
2357 | char *kwnames[] = { | |
2358 | (char *) "self",(char *) "handle", NULL | |
2359 | }; | |
2360 | ||
2361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:Bitmap_SetHandle",kwnames,&obj0,&arg2)) 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 | (arg1)->SetHandle(arg2); | |
2366 | ||
2367 | wxPyEndAllowThreads(__tstate); | |
2368 | if (PyErr_Occurred()) SWIG_fail; | |
2369 | } | |
2370 | Py_INCREF(Py_None); resultobj = Py_None; | |
2371 | return resultobj; | |
2372 | fail: | |
2373 | return NULL; | |
2374 | } | |
2375 | ||
2376 | ||
2377 | static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2378 | PyObject *resultobj; | |
2379 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2380 | bool result; | |
2381 | PyObject * obj0 = 0 ; | |
2382 | char *kwnames[] = { | |
2383 | (char *) "self", NULL | |
2384 | }; | |
2385 | ||
2386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",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 = (bool)(arg1)->Ok(); | |
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_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2403 | PyObject *resultobj; | |
2404 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2405 | int result; | |
2406 | PyObject * obj0 = 0 ; | |
2407 | char *kwnames[] = { | |
2408 | (char *) "self", NULL | |
2409 | }; | |
2410 | ||
2411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",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 = (int)(arg1)->GetWidth(); | |
2416 | ||
2417 | wxPyEndAllowThreads(__tstate); | |
2418 | if (PyErr_Occurred()) SWIG_fail; | |
2419 | } | |
2420 | resultobj = PyInt_FromLong((long)result); | |
2421 | return resultobj; | |
2422 | fail: | |
2423 | return NULL; | |
2424 | } | |
2425 | ||
2426 | ||
2427 | static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2428 | PyObject *resultobj; | |
2429 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2430 | int result; | |
2431 | PyObject * obj0 = 0 ; | |
2432 | char *kwnames[] = { | |
2433 | (char *) "self", NULL | |
2434 | }; | |
2435 | ||
2436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail; | |
2437 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2438 | { | |
2439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2440 | result = (int)(arg1)->GetHeight(); | |
2441 | ||
2442 | wxPyEndAllowThreads(__tstate); | |
2443 | if (PyErr_Occurred()) SWIG_fail; | |
2444 | } | |
2445 | resultobj = PyInt_FromLong((long)result); | |
2446 | return resultobj; | |
2447 | fail: | |
2448 | return NULL; | |
2449 | } | |
2450 | ||
2451 | ||
2452 | static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2453 | PyObject *resultobj; | |
2454 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2455 | int result; | |
2456 | PyObject * obj0 = 0 ; | |
2457 | char *kwnames[] = { | |
2458 | (char *) "self", NULL | |
2459 | }; | |
2460 | ||
2461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail; | |
2462 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2463 | { | |
2464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2465 | result = (int)(arg1)->GetDepth(); | |
2466 | ||
2467 | wxPyEndAllowThreads(__tstate); | |
2468 | if (PyErr_Occurred()) SWIG_fail; | |
2469 | } | |
2470 | resultobj = PyInt_FromLong((long)result); | |
2471 | return resultobj; | |
2472 | fail: | |
2473 | return NULL; | |
2474 | } | |
2475 | ||
2476 | ||
2477 | static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2478 | PyObject *resultobj; | |
2479 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2480 | SwigValueWrapper< wxImage > result; | |
2481 | PyObject * obj0 = 0 ; | |
2482 | char *kwnames[] = { | |
2483 | (char *) "self", NULL | |
2484 | }; | |
2485 | ||
2486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail; | |
2487 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2488 | { | |
2489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2490 | result = ((wxBitmap const *)arg1)->ConvertToImage(); | |
2491 | ||
2492 | wxPyEndAllowThreads(__tstate); | |
2493 | if (PyErr_Occurred()) SWIG_fail; | |
2494 | } | |
2495 | { | |
2496 | wxImage * resultptr; | |
2497 | resultptr = new wxImage((wxImage &) result); | |
2498 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
2499 | } | |
2500 | return resultobj; | |
2501 | fail: | |
2502 | return NULL; | |
2503 | } | |
2504 | ||
2505 | ||
2506 | static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2507 | PyObject *resultobj; | |
2508 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2509 | wxMask *result; | |
2510 | PyObject * obj0 = 0 ; | |
2511 | char *kwnames[] = { | |
2512 | (char *) "self", NULL | |
2513 | }; | |
2514 | ||
2515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail; | |
2516 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2517 | { | |
2518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2519 | result = (wxMask *)((wxBitmap const *)arg1)->GetMask(); | |
2520 | ||
2521 | wxPyEndAllowThreads(__tstate); | |
2522 | if (PyErr_Occurred()) SWIG_fail; | |
2523 | } | |
2524 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 0); | |
2525 | return resultobj; | |
2526 | fail: | |
2527 | return NULL; | |
2528 | } | |
2529 | ||
2530 | ||
2531 | static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2532 | PyObject *resultobj; | |
2533 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2534 | wxMask *arg2 = (wxMask *) 0 ; | |
2535 | PyObject * obj0 = 0 ; | |
2536 | PyObject * obj1 = 0 ; | |
2537 | char *kwnames[] = { | |
2538 | (char *) "self",(char *) "mask", NULL | |
2539 | }; | |
2540 | ||
2541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
2542 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2543 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2544 | { | |
2545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2546 | (arg1)->SetMask(arg2); | |
2547 | ||
2548 | wxPyEndAllowThreads(__tstate); | |
2549 | if (PyErr_Occurred()) SWIG_fail; | |
2550 | } | |
2551 | Py_INCREF(Py_None); resultobj = Py_None; | |
2552 | return resultobj; | |
2553 | fail: | |
2554 | return NULL; | |
2555 | } | |
2556 | ||
2557 | ||
2558 | static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2559 | PyObject *resultobj; | |
2560 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2561 | wxColour *arg2 = 0 ; | |
2562 | wxColour temp2 ; | |
2563 | PyObject * obj0 = 0 ; | |
2564 | PyObject * obj1 = 0 ; | |
2565 | char *kwnames[] = { | |
2566 | (char *) "self",(char *) "colour", NULL | |
2567 | }; | |
2568 | ||
2569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail; | |
2570 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2571 | { | |
2572 | arg2 = &temp2; | |
2573 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
2574 | } | |
2575 | { | |
2576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2577 | wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2); | |
2578 | ||
2579 | wxPyEndAllowThreads(__tstate); | |
2580 | if (PyErr_Occurred()) SWIG_fail; | |
2581 | } | |
2582 | Py_INCREF(Py_None); resultobj = Py_None; | |
2583 | return resultobj; | |
2584 | fail: | |
2585 | return NULL; | |
2586 | } | |
2587 | ||
2588 | ||
2589 | static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2590 | PyObject *resultobj; | |
2591 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2592 | wxRect *arg2 = 0 ; | |
2593 | SwigValueWrapper< wxBitmap > result; | |
2594 | wxRect temp2 ; | |
2595 | PyObject * obj0 = 0 ; | |
2596 | PyObject * obj1 = 0 ; | |
2597 | char *kwnames[] = { | |
2598 | (char *) "self",(char *) "rect", NULL | |
2599 | }; | |
2600 | ||
2601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail; | |
2602 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2603 | { | |
2604 | arg2 = &temp2; | |
2605 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
2606 | } | |
2607 | { | |
2608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2609 | result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2); | |
2610 | ||
2611 | wxPyEndAllowThreads(__tstate); | |
2612 | if (PyErr_Occurred()) SWIG_fail; | |
2613 | } | |
2614 | { | |
2615 | wxBitmap * resultptr; | |
2616 | resultptr = new wxBitmap((wxBitmap &) result); | |
2617 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
2618 | } | |
2619 | return resultobj; | |
2620 | fail: | |
2621 | return NULL; | |
2622 | } | |
2623 | ||
2624 | ||
2625 | static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2626 | PyObject *resultobj; | |
2627 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2628 | wxString *arg2 = 0 ; | |
2629 | int arg3 ; | |
2630 | wxPalette *arg4 = (wxPalette *) (wxPalette *) NULL ; | |
2631 | bool result; | |
2632 | bool temp2 = False ; | |
2633 | PyObject * obj0 = 0 ; | |
2634 | PyObject * obj1 = 0 ; | |
2635 | PyObject * obj3 = 0 ; | |
2636 | char *kwnames[] = { | |
2637 | (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL | |
2638 | }; | |
2639 | ||
2640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&arg3,&obj3)) goto fail; | |
2641 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2642 | { | |
2643 | arg2 = wxString_in_helper(obj1); | |
2644 | if (arg2 == NULL) SWIG_fail; | |
2645 | temp2 = True; | |
2646 | } | |
2647 | if (obj3) { | |
2648 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2649 | } | |
2650 | { | |
2651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2652 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4); | |
2653 | ||
2654 | wxPyEndAllowThreads(__tstate); | |
2655 | if (PyErr_Occurred()) SWIG_fail; | |
2656 | } | |
2657 | resultobj = PyInt_FromLong((long)result); | |
2658 | { | |
2659 | if (temp2) | |
2660 | delete arg2; | |
2661 | } | |
2662 | return resultobj; | |
2663 | fail: | |
2664 | { | |
2665 | if (temp2) | |
2666 | delete arg2; | |
2667 | } | |
2668 | return NULL; | |
2669 | } | |
2670 | ||
2671 | ||
2672 | static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2673 | PyObject *resultobj; | |
2674 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2675 | wxString *arg2 = 0 ; | |
2676 | int arg3 ; | |
2677 | bool result; | |
2678 | bool temp2 = False ; | |
2679 | PyObject * obj0 = 0 ; | |
2680 | PyObject * obj1 = 0 ; | |
2681 | char *kwnames[] = { | |
2682 | (char *) "self",(char *) "name",(char *) "type", NULL | |
2683 | }; | |
2684 | ||
2685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:Bitmap_LoadFile",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
2686 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2687 | { | |
2688 | arg2 = wxString_in_helper(obj1); | |
2689 | if (arg2 == NULL) SWIG_fail; | |
2690 | temp2 = True; | |
2691 | } | |
2692 | { | |
2693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2694 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3); | |
2695 | ||
2696 | wxPyEndAllowThreads(__tstate); | |
2697 | if (PyErr_Occurred()) SWIG_fail; | |
2698 | } | |
2699 | resultobj = PyInt_FromLong((long)result); | |
2700 | { | |
2701 | if (temp2) | |
2702 | delete arg2; | |
2703 | } | |
2704 | return resultobj; | |
2705 | fail: | |
2706 | { | |
2707 | if (temp2) | |
2708 | delete arg2; | |
2709 | } | |
2710 | return NULL; | |
2711 | } | |
2712 | ||
2713 | ||
2714 | static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2715 | PyObject *resultobj; | |
2716 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2717 | wxIcon *arg2 = 0 ; | |
2718 | bool result; | |
2719 | PyObject * obj0 = 0 ; | |
2720 | PyObject * obj1 = 0 ; | |
2721 | char *kwnames[] = { | |
2722 | (char *) "self",(char *) "icon", NULL | |
2723 | }; | |
2724 | ||
2725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail; | |
2726 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2727 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2728 | if (arg2 == NULL) { | |
2729 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2730 | } | |
2731 | { | |
2732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2733 | result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2); | |
2734 | ||
2735 | wxPyEndAllowThreads(__tstate); | |
2736 | if (PyErr_Occurred()) SWIG_fail; | |
2737 | } | |
2738 | resultobj = PyInt_FromLong((long)result); | |
2739 | return resultobj; | |
2740 | fail: | |
2741 | return NULL; | |
2742 | } | |
2743 | ||
2744 | ||
2745 | static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2746 | PyObject *resultobj; | |
2747 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2748 | int arg2 ; | |
2749 | PyObject * obj0 = 0 ; | |
2750 | char *kwnames[] = { | |
2751 | (char *) "self",(char *) "height", NULL | |
2752 | }; | |
2753 | ||
2754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Bitmap_SetHeight",kwnames,&obj0,&arg2)) goto fail; | |
2755 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2756 | { | |
2757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2758 | (arg1)->SetHeight(arg2); | |
2759 | ||
2760 | wxPyEndAllowThreads(__tstate); | |
2761 | if (PyErr_Occurred()) SWIG_fail; | |
2762 | } | |
2763 | Py_INCREF(Py_None); resultobj = Py_None; | |
2764 | return resultobj; | |
2765 | fail: | |
2766 | return NULL; | |
2767 | } | |
2768 | ||
2769 | ||
2770 | static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2771 | PyObject *resultobj; | |
2772 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2773 | int arg2 ; | |
2774 | PyObject * obj0 = 0 ; | |
2775 | char *kwnames[] = { | |
2776 | (char *) "self",(char *) "width", NULL | |
2777 | }; | |
2778 | ||
2779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Bitmap_SetWidth",kwnames,&obj0,&arg2)) goto fail; | |
2780 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2781 | { | |
2782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2783 | (arg1)->SetWidth(arg2); | |
2784 | ||
2785 | wxPyEndAllowThreads(__tstate); | |
2786 | if (PyErr_Occurred()) SWIG_fail; | |
2787 | } | |
2788 | Py_INCREF(Py_None); resultobj = Py_None; | |
2789 | return resultobj; | |
2790 | fail: | |
2791 | return NULL; | |
2792 | } | |
2793 | ||
2794 | ||
2795 | static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2796 | PyObject *resultobj; | |
2797 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2798 | int arg2 ; | |
2799 | PyObject * obj0 = 0 ; | |
2800 | char *kwnames[] = { | |
2801 | (char *) "self",(char *) "depth", NULL | |
2802 | }; | |
2803 | ||
2804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Bitmap_SetDepth",kwnames,&obj0,&arg2)) goto fail; | |
2805 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2806 | { | |
2807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2808 | (arg1)->SetDepth(arg2); | |
2809 | ||
2810 | wxPyEndAllowThreads(__tstate); | |
2811 | if (PyErr_Occurred()) SWIG_fail; | |
2812 | } | |
2813 | Py_INCREF(Py_None); resultobj = Py_None; | |
2814 | return resultobj; | |
2815 | fail: | |
2816 | return NULL; | |
2817 | } | |
2818 | ||
2819 | ||
2820 | static PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2821 | PyObject *resultobj; | |
2822 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2823 | wxCursor *arg2 = 0 ; | |
2824 | bool result; | |
2825 | PyObject * obj0 = 0 ; | |
2826 | PyObject * obj1 = 0 ; | |
2827 | char *kwnames[] = { | |
2828 | (char *) "self",(char *) "cursor", NULL | |
2829 | }; | |
2830 | ||
2831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) goto fail; | |
2832 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2833 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2834 | if (arg2 == NULL) { | |
2835 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2836 | } | |
2837 | { | |
2838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2839 | result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2); | |
2840 | ||
2841 | wxPyEndAllowThreads(__tstate); | |
2842 | if (PyErr_Occurred()) SWIG_fail; | |
2843 | } | |
2844 | resultobj = PyInt_FromLong((long)result); | |
2845 | return resultobj; | |
2846 | fail: | |
2847 | return NULL; | |
2848 | } | |
2849 | ||
2850 | ||
2851 | static PyObject *_wrap_Bitmap_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2852 | PyObject *resultobj; | |
2853 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2854 | int result; | |
2855 | PyObject * obj0 = 0 ; | |
2856 | char *kwnames[] = { | |
2857 | (char *) "self", NULL | |
2858 | }; | |
2859 | ||
2860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetQuality",kwnames,&obj0)) goto fail; | |
2861 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2862 | { | |
2863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2864 | result = (int)(arg1)->GetQuality(); | |
2865 | ||
2866 | wxPyEndAllowThreads(__tstate); | |
2867 | if (PyErr_Occurred()) SWIG_fail; | |
2868 | } | |
2869 | resultobj = PyInt_FromLong((long)result); | |
2870 | return resultobj; | |
2871 | fail: | |
2872 | return NULL; | |
2873 | } | |
2874 | ||
2875 | ||
2876 | static PyObject *_wrap_Bitmap_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2877 | PyObject *resultobj; | |
2878 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2879 | int arg2 ; | |
2880 | PyObject * obj0 = 0 ; | |
2881 | char *kwnames[] = { | |
2882 | (char *) "self",(char *) "q", NULL | |
2883 | }; | |
2884 | ||
2885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Bitmap_SetQuality",kwnames,&obj0,&arg2)) goto fail; | |
2886 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2887 | { | |
2888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2889 | (arg1)->SetQuality(arg2); | |
2890 | ||
2891 | wxPyEndAllowThreads(__tstate); | |
2892 | if (PyErr_Occurred()) SWIG_fail; | |
2893 | } | |
2894 | Py_INCREF(Py_None); resultobj = Py_None; | |
2895 | return resultobj; | |
2896 | fail: | |
2897 | return NULL; | |
2898 | } | |
2899 | ||
2900 | ||
2901 | static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) { | |
2902 | PyObject *obj; | |
2903 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2904 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj); | |
2905 | Py_INCREF(obj); | |
2906 | return Py_BuildValue((char *)""); | |
2907 | } | |
2908 | static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2909 | PyObject *resultobj; | |
2910 | wxBitmap *arg1 = 0 ; | |
2911 | wxMask *result; | |
2912 | PyObject * obj0 = 0 ; | |
2913 | char *kwnames[] = { | |
2914 | (char *) "bitmap", NULL | |
2915 | }; | |
2916 | ||
2917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Mask",kwnames,&obj0)) goto fail; | |
2918 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2919 | if (arg1 == NULL) { | |
2920 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2921 | } | |
2922 | { | |
2923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2924 | result = (wxMask *)new wxMask((wxBitmap const &)*arg1); | |
2925 | ||
2926 | wxPyEndAllowThreads(__tstate); | |
2927 | if (PyErr_Occurred()) SWIG_fail; | |
2928 | } | |
2929 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1); | |
2930 | return resultobj; | |
2931 | fail: | |
2932 | return NULL; | |
2933 | } | |
2934 | ||
2935 | ||
2936 | static PyObject *_wrap_new_MaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2937 | PyObject *resultobj; | |
2938 | wxBitmap *arg1 = 0 ; | |
2939 | wxColour *arg2 = 0 ; | |
2940 | wxMask *result; | |
2941 | wxColour temp2 ; | |
2942 | PyObject * obj0 = 0 ; | |
2943 | PyObject * obj1 = 0 ; | |
2944 | char *kwnames[] = { | |
2945 | (char *) "bitmap",(char *) "colour", NULL | |
2946 | }; | |
2947 | ||
2948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MaskColour",kwnames,&obj0,&obj1)) goto fail; | |
2949 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2950 | if (arg1 == NULL) { | |
2951 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2952 | } | |
2953 | { | |
2954 | arg2 = &temp2; | |
2955 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
2956 | } | |
2957 | { | |
2958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2959 | result = (wxMask *)new wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2); | |
2960 | ||
2961 | wxPyEndAllowThreads(__tstate); | |
2962 | if (PyErr_Occurred()) SWIG_fail; | |
2963 | } | |
2964 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1); | |
2965 | return resultobj; | |
2966 | fail: | |
2967 | return NULL; | |
2968 | } | |
2969 | ||
2970 | ||
2971 | static PyObject * Mask_swigregister(PyObject *self, PyObject *args) { | |
2972 | PyObject *obj; | |
2973 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2974 | SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj); | |
2975 | Py_INCREF(obj); | |
2976 | return Py_BuildValue((char *)""); | |
2977 | } | |
2978 | static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2979 | PyObject *resultobj; | |
2980 | wxString *arg1 = 0 ; | |
2981 | long arg2 ; | |
2982 | int arg3 = (int) -1 ; | |
2983 | int arg4 = (int) -1 ; | |
2984 | wxIcon *result; | |
2985 | bool temp1 = False ; | |
2986 | PyObject * obj0 = 0 ; | |
2987 | char *kwnames[] = { | |
2988 | (char *) "name",(char *) "flags",(char *) "desiredWidth",(char *) "desiredHeight", NULL | |
2989 | }; | |
2990 | ||
2991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|ii:new_Icon",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
2992 | { | |
2993 | arg1 = wxString_in_helper(obj0); | |
2994 | if (arg1 == NULL) SWIG_fail; | |
2995 | temp1 = True; | |
2996 | } | |
2997 | { | |
2998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2999 | result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4); | |
3000 | ||
3001 | wxPyEndAllowThreads(__tstate); | |
3002 | if (PyErr_Occurred()) SWIG_fail; | |
3003 | } | |
3004 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
3005 | { | |
3006 | if (temp1) | |
3007 | delete arg1; | |
3008 | } | |
3009 | return resultobj; | |
3010 | fail: | |
3011 | { | |
3012 | if (temp1) | |
3013 | delete arg1; | |
3014 | } | |
3015 | return NULL; | |
3016 | } | |
3017 | ||
3018 | ||
3019 | static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3020 | PyObject *resultobj; | |
3021 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3022 | PyObject * obj0 = 0 ; | |
3023 | char *kwnames[] = { | |
3024 | (char *) "self", NULL | |
3025 | }; | |
3026 | ||
3027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail; | |
3028 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3029 | { | |
3030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3031 | delete arg1; | |
3032 | ||
3033 | wxPyEndAllowThreads(__tstate); | |
3034 | if (PyErr_Occurred()) SWIG_fail; | |
3035 | } | |
3036 | Py_INCREF(Py_None); resultobj = Py_None; | |
3037 | return resultobj; | |
3038 | fail: | |
3039 | return NULL; | |
3040 | } | |
3041 | ||
3042 | ||
3043 | static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3044 | PyObject *resultobj; | |
3045 | wxIcon *result; | |
3046 | char *kwnames[] = { | |
3047 | NULL | |
3048 | }; | |
3049 | ||
3050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail; | |
3051 | { | |
3052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3053 | result = (wxIcon *)new wxIcon(); | |
3054 | ||
3055 | wxPyEndAllowThreads(__tstate); | |
3056 | if (PyErr_Occurred()) SWIG_fail; | |
3057 | } | |
3058 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
3059 | return resultobj; | |
3060 | fail: | |
3061 | return NULL; | |
3062 | } | |
3063 | ||
3064 | ||
3065 | static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3066 | PyObject *resultobj; | |
3067 | wxIconLocation *arg1 = 0 ; | |
3068 | wxIcon *result; | |
3069 | PyObject * obj0 = 0 ; | |
3070 | char *kwnames[] = { | |
3071 | (char *) "loc", NULL | |
3072 | }; | |
3073 | ||
3074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail; | |
3075 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3076 | if (arg1 == NULL) { | |
3077 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3078 | } | |
3079 | { | |
3080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3081 | result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1); | |
3082 | ||
3083 | wxPyEndAllowThreads(__tstate); | |
3084 | if (PyErr_Occurred()) SWIG_fail; | |
3085 | } | |
3086 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
3087 | return resultobj; | |
3088 | fail: | |
3089 | return NULL; | |
3090 | } | |
3091 | ||
3092 | ||
3093 | static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3094 | PyObject *resultobj; | |
3095 | wxBitmap *arg1 = 0 ; | |
3096 | wxIcon *result; | |
3097 | PyObject * obj0 = 0 ; | |
3098 | char *kwnames[] = { | |
3099 | (char *) "bmp", NULL | |
3100 | }; | |
3101 | ||
3102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail; | |
3103 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3104 | if (arg1 == NULL) { | |
3105 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3106 | } | |
3107 | { | |
3108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3109 | result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1); | |
3110 | ||
3111 | wxPyEndAllowThreads(__tstate); | |
3112 | if (PyErr_Occurred()) SWIG_fail; | |
3113 | } | |
3114 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
3115 | return resultobj; | |
3116 | fail: | |
3117 | return NULL; | |
3118 | } | |
3119 | ||
3120 | ||
3121 | static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3122 | PyObject *resultobj; | |
3123 | PyObject *arg1 = (PyObject *) 0 ; | |
3124 | wxIcon *result; | |
3125 | PyObject * obj0 = 0 ; | |
3126 | char *kwnames[] = { | |
3127 | (char *) "listOfStrings", NULL | |
3128 | }; | |
3129 | ||
3130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail; | |
3131 | arg1 = obj0; | |
3132 | { | |
3133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3134 | result = (wxIcon *)new_wxIcon(arg1); | |
3135 | ||
3136 | wxPyEndAllowThreads(__tstate); | |
3137 | if (PyErr_Occurred()) SWIG_fail; | |
3138 | } | |
3139 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
3140 | return resultobj; | |
3141 | fail: | |
3142 | return NULL; | |
3143 | } | |
3144 | ||
3145 | ||
3146 | static PyObject *_wrap_Icon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3147 | PyObject *resultobj; | |
3148 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3149 | wxString *arg2 = 0 ; | |
3150 | long arg3 ; | |
3151 | bool result; | |
3152 | bool temp2 = False ; | |
3153 | PyObject * obj0 = 0 ; | |
3154 | PyObject * obj1 = 0 ; | |
3155 | char *kwnames[] = { | |
3156 | (char *) "self",(char *) "name",(char *) "flags", NULL | |
3157 | }; | |
3158 | ||
3159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOl:Icon_LoadFile",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
3160 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3161 | { | |
3162 | arg2 = wxString_in_helper(obj1); | |
3163 | if (arg2 == NULL) SWIG_fail; | |
3164 | temp2 = True; | |
3165 | } | |
3166 | { | |
3167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3168 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3); | |
3169 | ||
3170 | wxPyEndAllowThreads(__tstate); | |
3171 | if (PyErr_Occurred()) SWIG_fail; | |
3172 | } | |
3173 | resultobj = PyInt_FromLong((long)result); | |
3174 | { | |
3175 | if (temp2) | |
3176 | delete arg2; | |
3177 | } | |
3178 | return resultobj; | |
3179 | fail: | |
3180 | { | |
3181 | if (temp2) | |
3182 | delete arg2; | |
3183 | } | |
3184 | return NULL; | |
3185 | } | |
3186 | ||
3187 | ||
3188 | static PyObject *_wrap_Icon_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3189 | PyObject *resultobj; | |
3190 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3191 | long result; | |
3192 | PyObject * obj0 = 0 ; | |
3193 | char *kwnames[] = { | |
3194 | (char *) "self", NULL | |
3195 | }; | |
3196 | ||
3197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHandle",kwnames,&obj0)) goto fail; | |
3198 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3199 | { | |
3200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3201 | result = (long)(arg1)->GetHandle(); | |
3202 | ||
3203 | wxPyEndAllowThreads(__tstate); | |
3204 | if (PyErr_Occurred()) SWIG_fail; | |
3205 | } | |
3206 | resultobj = PyInt_FromLong((long)result); | |
3207 | return resultobj; | |
3208 | fail: | |
3209 | return NULL; | |
3210 | } | |
3211 | ||
3212 | ||
3213 | static PyObject *_wrap_Icon_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3214 | PyObject *resultobj; | |
3215 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3216 | long arg2 ; | |
3217 | PyObject * obj0 = 0 ; | |
3218 | char *kwnames[] = { | |
3219 | (char *) "self",(char *) "handle", NULL | |
3220 | }; | |
3221 | ||
3222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:Icon_SetHandle",kwnames,&obj0,&arg2)) goto fail; | |
3223 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3224 | { | |
3225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3226 | (arg1)->SetHandle(arg2); | |
3227 | ||
3228 | wxPyEndAllowThreads(__tstate); | |
3229 | if (PyErr_Occurred()) SWIG_fail; | |
3230 | } | |
3231 | Py_INCREF(Py_None); resultobj = Py_None; | |
3232 | return resultobj; | |
3233 | fail: | |
3234 | return NULL; | |
3235 | } | |
3236 | ||
3237 | ||
3238 | static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3239 | PyObject *resultobj; | |
3240 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3241 | bool result; | |
3242 | PyObject * obj0 = 0 ; | |
3243 | char *kwnames[] = { | |
3244 | (char *) "self", NULL | |
3245 | }; | |
3246 | ||
3247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail; | |
3248 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3249 | { | |
3250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3251 | result = (bool)(arg1)->Ok(); | |
3252 | ||
3253 | wxPyEndAllowThreads(__tstate); | |
3254 | if (PyErr_Occurred()) SWIG_fail; | |
3255 | } | |
3256 | resultobj = PyInt_FromLong((long)result); | |
3257 | return resultobj; | |
3258 | fail: | |
3259 | return NULL; | |
3260 | } | |
3261 | ||
3262 | ||
3263 | static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3264 | PyObject *resultobj; | |
3265 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3266 | int result; | |
3267 | PyObject * obj0 = 0 ; | |
3268 | char *kwnames[] = { | |
3269 | (char *) "self", NULL | |
3270 | }; | |
3271 | ||
3272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail; | |
3273 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3274 | { | |
3275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3276 | result = (int)(arg1)->GetWidth(); | |
3277 | ||
3278 | wxPyEndAllowThreads(__tstate); | |
3279 | if (PyErr_Occurred()) SWIG_fail; | |
3280 | } | |
3281 | resultobj = PyInt_FromLong((long)result); | |
3282 | return resultobj; | |
3283 | fail: | |
3284 | return NULL; | |
3285 | } | |
3286 | ||
3287 | ||
3288 | static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3289 | PyObject *resultobj; | |
3290 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3291 | int result; | |
3292 | PyObject * obj0 = 0 ; | |
3293 | char *kwnames[] = { | |
3294 | (char *) "self", NULL | |
3295 | }; | |
3296 | ||
3297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail; | |
3298 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3299 | { | |
3300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3301 | result = (int)(arg1)->GetHeight(); | |
3302 | ||
3303 | wxPyEndAllowThreads(__tstate); | |
3304 | if (PyErr_Occurred()) SWIG_fail; | |
3305 | } | |
3306 | resultobj = PyInt_FromLong((long)result); | |
3307 | return resultobj; | |
3308 | fail: | |
3309 | return NULL; | |
3310 | } | |
3311 | ||
3312 | ||
3313 | static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3314 | PyObject *resultobj; | |
3315 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3316 | int result; | |
3317 | PyObject * obj0 = 0 ; | |
3318 | char *kwnames[] = { | |
3319 | (char *) "self", NULL | |
3320 | }; | |
3321 | ||
3322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail; | |
3323 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3324 | { | |
3325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3326 | result = (int)(arg1)->GetDepth(); | |
3327 | ||
3328 | wxPyEndAllowThreads(__tstate); | |
3329 | if (PyErr_Occurred()) SWIG_fail; | |
3330 | } | |
3331 | resultobj = PyInt_FromLong((long)result); | |
3332 | return resultobj; | |
3333 | fail: | |
3334 | return NULL; | |
3335 | } | |
3336 | ||
3337 | ||
3338 | static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3339 | PyObject *resultobj; | |
3340 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3341 | int arg2 ; | |
3342 | PyObject * obj0 = 0 ; | |
3343 | char *kwnames[] = { | |
3344 | (char *) "self",(char *) "w", NULL | |
3345 | }; | |
3346 | ||
3347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Icon_SetWidth",kwnames,&obj0,&arg2)) goto fail; | |
3348 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3349 | { | |
3350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3351 | (arg1)->SetWidth(arg2); | |
3352 | ||
3353 | wxPyEndAllowThreads(__tstate); | |
3354 | if (PyErr_Occurred()) SWIG_fail; | |
3355 | } | |
3356 | Py_INCREF(Py_None); resultobj = Py_None; | |
3357 | return resultobj; | |
3358 | fail: | |
3359 | return NULL; | |
3360 | } | |
3361 | ||
3362 | ||
3363 | static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3364 | PyObject *resultobj; | |
3365 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3366 | int arg2 ; | |
3367 | PyObject * obj0 = 0 ; | |
3368 | char *kwnames[] = { | |
3369 | (char *) "self",(char *) "h", NULL | |
3370 | }; | |
3371 | ||
3372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Icon_SetHeight",kwnames,&obj0,&arg2)) goto fail; | |
3373 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3374 | { | |
3375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3376 | (arg1)->SetHeight(arg2); | |
3377 | ||
3378 | wxPyEndAllowThreads(__tstate); | |
3379 | if (PyErr_Occurred()) SWIG_fail; | |
3380 | } | |
3381 | Py_INCREF(Py_None); resultobj = Py_None; | |
3382 | return resultobj; | |
3383 | fail: | |
3384 | return NULL; | |
3385 | } | |
3386 | ||
3387 | ||
3388 | static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3389 | PyObject *resultobj; | |
3390 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3391 | int arg2 ; | |
3392 | PyObject * obj0 = 0 ; | |
3393 | char *kwnames[] = { | |
3394 | (char *) "self",(char *) "d", NULL | |
3395 | }; | |
3396 | ||
3397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Icon_SetDepth",kwnames,&obj0,&arg2)) goto fail; | |
3398 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3399 | { | |
3400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3401 | (arg1)->SetDepth(arg2); | |
3402 | ||
3403 | wxPyEndAllowThreads(__tstate); | |
3404 | if (PyErr_Occurred()) SWIG_fail; | |
3405 | } | |
3406 | Py_INCREF(Py_None); resultobj = Py_None; | |
3407 | return resultobj; | |
3408 | fail: | |
3409 | return NULL; | |
3410 | } | |
3411 | ||
3412 | ||
3413 | static PyObject *_wrap_Icon_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3414 | PyObject *resultobj; | |
3415 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3416 | wxSize *arg2 = 0 ; | |
3417 | wxSize temp2 ; | |
3418 | PyObject * obj0 = 0 ; | |
3419 | PyObject * obj1 = 0 ; | |
3420 | char *kwnames[] = { | |
3421 | (char *) "self",(char *) "size", NULL | |
3422 | }; | |
3423 | ||
3424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
3425 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3426 | { | |
3427 | arg2 = &temp2; | |
3428 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3429 | } | |
3430 | { | |
3431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3432 | (arg1)->SetSize((wxSize const &)*arg2); | |
3433 | ||
3434 | wxPyEndAllowThreads(__tstate); | |
3435 | if (PyErr_Occurred()) SWIG_fail; | |
3436 | } | |
3437 | Py_INCREF(Py_None); resultobj = Py_None; | |
3438 | return resultobj; | |
3439 | fail: | |
3440 | return NULL; | |
3441 | } | |
3442 | ||
3443 | ||
3444 | static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3445 | PyObject *resultobj; | |
3446 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3447 | wxBitmap *arg2 = 0 ; | |
3448 | PyObject * obj0 = 0 ; | |
3449 | PyObject * obj1 = 0 ; | |
3450 | char *kwnames[] = { | |
3451 | (char *) "self",(char *) "bmp", NULL | |
3452 | }; | |
3453 | ||
3454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail; | |
3455 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3456 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3457 | if (arg2 == NULL) { | |
3458 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3459 | } | |
3460 | { | |
3461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3462 | (arg1)->CopyFromBitmap((wxBitmap const &)*arg2); | |
3463 | ||
3464 | wxPyEndAllowThreads(__tstate); | |
3465 | if (PyErr_Occurred()) SWIG_fail; | |
3466 | } | |
3467 | Py_INCREF(Py_None); resultobj = Py_None; | |
3468 | return resultobj; | |
3469 | fail: | |
3470 | return NULL; | |
3471 | } | |
3472 | ||
3473 | ||
3474 | static PyObject * Icon_swigregister(PyObject *self, PyObject *args) { | |
3475 | PyObject *obj; | |
3476 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3477 | SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj); | |
3478 | Py_INCREF(obj); | |
3479 | return Py_BuildValue((char *)""); | |
3480 | } | |
3481 | static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3482 | PyObject *resultobj; | |
3483 | wxString *arg1 = (wxString *) &wxPyEmptyString ; | |
3484 | int arg2 = (int) 0 ; | |
3485 | wxIconLocation *result; | |
3486 | PyObject * obj0 = 0 ; | |
3487 | char *kwnames[] = { | |
3488 | (char *) "filename",(char *) "num", NULL | |
3489 | }; | |
3490 | ||
3491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|Oi:new_IconLocation",kwnames,&obj0,&arg2)) goto fail; | |
3492 | if (obj0) { | |
3493 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3494 | } | |
3495 | { | |
3496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3497 | result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2); | |
3498 | ||
3499 | wxPyEndAllowThreads(__tstate); | |
3500 | if (PyErr_Occurred()) SWIG_fail; | |
3501 | } | |
3502 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconLocation, 1); | |
3503 | return resultobj; | |
3504 | fail: | |
3505 | return NULL; | |
3506 | } | |
3507 | ||
3508 | ||
3509 | static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3510 | PyObject *resultobj; | |
3511 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3512 | PyObject * obj0 = 0 ; | |
3513 | char *kwnames[] = { | |
3514 | (char *) "self", NULL | |
3515 | }; | |
3516 | ||
3517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail; | |
3518 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3519 | { | |
3520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3521 | delete arg1; | |
3522 | ||
3523 | wxPyEndAllowThreads(__tstate); | |
3524 | if (PyErr_Occurred()) SWIG_fail; | |
3525 | } | |
3526 | Py_INCREF(Py_None); resultobj = Py_None; | |
3527 | return resultobj; | |
3528 | fail: | |
3529 | return NULL; | |
3530 | } | |
3531 | ||
3532 | ||
3533 | static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3534 | PyObject *resultobj; | |
3535 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3536 | bool result; | |
3537 | PyObject * obj0 = 0 ; | |
3538 | char *kwnames[] = { | |
3539 | (char *) "self", NULL | |
3540 | }; | |
3541 | ||
3542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail; | |
3543 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3544 | { | |
3545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3546 | result = (bool)((wxIconLocation const *)arg1)->IsOk(); | |
3547 | ||
3548 | wxPyEndAllowThreads(__tstate); | |
3549 | if (PyErr_Occurred()) SWIG_fail; | |
3550 | } | |
3551 | resultobj = PyInt_FromLong((long)result); | |
3552 | return resultobj; | |
3553 | fail: | |
3554 | return NULL; | |
3555 | } | |
3556 | ||
3557 | ||
3558 | static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3559 | PyObject *resultobj; | |
3560 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3561 | wxString *arg2 = 0 ; | |
3562 | bool temp2 = False ; | |
3563 | PyObject * obj0 = 0 ; | |
3564 | PyObject * obj1 = 0 ; | |
3565 | char *kwnames[] = { | |
3566 | (char *) "self",(char *) "filename", NULL | |
3567 | }; | |
3568 | ||
3569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail; | |
3570 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3571 | { | |
3572 | arg2 = wxString_in_helper(obj1); | |
3573 | if (arg2 == NULL) SWIG_fail; | |
3574 | temp2 = True; | |
3575 | } | |
3576 | { | |
3577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3578 | (arg1)->SetFileName((wxString const &)*arg2); | |
3579 | ||
3580 | wxPyEndAllowThreads(__tstate); | |
3581 | if (PyErr_Occurred()) SWIG_fail; | |
3582 | } | |
3583 | Py_INCREF(Py_None); resultobj = Py_None; | |
3584 | { | |
3585 | if (temp2) | |
3586 | delete arg2; | |
3587 | } | |
3588 | return resultobj; | |
3589 | fail: | |
3590 | { | |
3591 | if (temp2) | |
3592 | delete arg2; | |
3593 | } | |
3594 | return NULL; | |
3595 | } | |
3596 | ||
3597 | ||
3598 | static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3599 | PyObject *resultobj; | |
3600 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3601 | wxString *result; | |
3602 | PyObject * obj0 = 0 ; | |
3603 | char *kwnames[] = { | |
3604 | (char *) "self", NULL | |
3605 | }; | |
3606 | ||
3607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail; | |
3608 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3609 | { | |
3610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3611 | { | |
3612 | wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName(); | |
3613 | result = (wxString *) &_result_ref; | |
3614 | } | |
3615 | ||
3616 | wxPyEndAllowThreads(__tstate); | |
3617 | if (PyErr_Occurred()) SWIG_fail; | |
3618 | } | |
3619 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxString, 0); | |
3620 | return resultobj; | |
3621 | fail: | |
3622 | return NULL; | |
3623 | } | |
3624 | ||
3625 | ||
3626 | static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3627 | PyObject *resultobj; | |
3628 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3629 | int arg2 ; | |
3630 | PyObject * obj0 = 0 ; | |
3631 | char *kwnames[] = { | |
3632 | (char *) "self",(char *) "num", NULL | |
3633 | }; | |
3634 | ||
3635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:IconLocation_SetIndex",kwnames,&obj0,&arg2)) goto fail; | |
3636 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3637 | { | |
3638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3639 | wxIconLocation_SetIndex(arg1,arg2); | |
3640 | ||
3641 | wxPyEndAllowThreads(__tstate); | |
3642 | if (PyErr_Occurred()) SWIG_fail; | |
3643 | } | |
3644 | Py_INCREF(Py_None); resultobj = Py_None; | |
3645 | return resultobj; | |
3646 | fail: | |
3647 | return NULL; | |
3648 | } | |
3649 | ||
3650 | ||
3651 | static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3652 | PyObject *resultobj; | |
3653 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3654 | int result; | |
3655 | PyObject * obj0 = 0 ; | |
3656 | char *kwnames[] = { | |
3657 | (char *) "self", NULL | |
3658 | }; | |
3659 | ||
3660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail; | |
3661 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3662 | { | |
3663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3664 | result = (int)wxIconLocation_GetIndex(arg1); | |
3665 | ||
3666 | wxPyEndAllowThreads(__tstate); | |
3667 | if (PyErr_Occurred()) SWIG_fail; | |
3668 | } | |
3669 | resultobj = PyInt_FromLong((long)result); | |
3670 | return resultobj; | |
3671 | fail: | |
3672 | return NULL; | |
3673 | } | |
3674 | ||
3675 | ||
3676 | static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) { | |
3677 | PyObject *obj; | |
3678 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3679 | SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj); | |
3680 | Py_INCREF(obj); | |
3681 | return Py_BuildValue((char *)""); | |
3682 | } | |
3683 | static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3684 | PyObject *resultobj; | |
3685 | wxIconBundle *result; | |
3686 | char *kwnames[] = { | |
3687 | NULL | |
3688 | }; | |
3689 | ||
3690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail; | |
3691 | { | |
3692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3693 | result = (wxIconBundle *)new wxIconBundle(); | |
3694 | ||
3695 | wxPyEndAllowThreads(__tstate); | |
3696 | if (PyErr_Occurred()) SWIG_fail; | |
3697 | } | |
3698 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1); | |
3699 | return resultobj; | |
3700 | fail: | |
3701 | return NULL; | |
3702 | } | |
3703 | ||
3704 | ||
3705 | static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3706 | PyObject *resultobj; | |
3707 | wxString *arg1 = 0 ; | |
3708 | long arg2 ; | |
3709 | wxIconBundle *result; | |
3710 | bool temp1 = False ; | |
3711 | PyObject * obj0 = 0 ; | |
3712 | char *kwnames[] = { | |
3713 | (char *) "file",(char *) "type", NULL | |
3714 | }; | |
3715 | ||
3716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:new_IconBundleFromFile",kwnames,&obj0,&arg2)) goto fail; | |
3717 | { | |
3718 | arg1 = wxString_in_helper(obj0); | |
3719 | if (arg1 == NULL) SWIG_fail; | |
3720 | temp1 = True; | |
3721 | } | |
3722 | { | |
3723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3724 | result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2); | |
3725 | ||
3726 | wxPyEndAllowThreads(__tstate); | |
3727 | if (PyErr_Occurred()) SWIG_fail; | |
3728 | } | |
3729 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1); | |
3730 | { | |
3731 | if (temp1) | |
3732 | delete arg1; | |
3733 | } | |
3734 | return resultobj; | |
3735 | fail: | |
3736 | { | |
3737 | if (temp1) | |
3738 | delete arg1; | |
3739 | } | |
3740 | return NULL; | |
3741 | } | |
3742 | ||
3743 | ||
3744 | static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3745 | PyObject *resultobj; | |
3746 | wxIcon *arg1 = 0 ; | |
3747 | wxIconBundle *result; | |
3748 | PyObject * obj0 = 0 ; | |
3749 | char *kwnames[] = { | |
3750 | (char *) "icon", NULL | |
3751 | }; | |
3752 | ||
3753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail; | |
3754 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3755 | if (arg1 == NULL) { | |
3756 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3757 | } | |
3758 | { | |
3759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3760 | result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1); | |
3761 | ||
3762 | wxPyEndAllowThreads(__tstate); | |
3763 | if (PyErr_Occurred()) SWIG_fail; | |
3764 | } | |
3765 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1); | |
3766 | return resultobj; | |
3767 | fail: | |
3768 | return NULL; | |
3769 | } | |
3770 | ||
3771 | ||
3772 | static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3773 | PyObject *resultobj; | |
3774 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
3775 | PyObject * obj0 = 0 ; | |
3776 | char *kwnames[] = { | |
3777 | (char *) "self", NULL | |
3778 | }; | |
3779 | ||
3780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail; | |
3781 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3782 | { | |
3783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3784 | delete arg1; | |
3785 | ||
3786 | wxPyEndAllowThreads(__tstate); | |
3787 | if (PyErr_Occurred()) SWIG_fail; | |
3788 | } | |
3789 | Py_INCREF(Py_None); resultobj = Py_None; | |
3790 | return resultobj; | |
3791 | fail: | |
3792 | return NULL; | |
3793 | } | |
3794 | ||
3795 | ||
3796 | static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3797 | PyObject *resultobj; | |
3798 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
3799 | wxIcon *arg2 = 0 ; | |
3800 | PyObject * obj0 = 0 ; | |
3801 | PyObject * obj1 = 0 ; | |
3802 | char *kwnames[] = { | |
3803 | (char *) "self",(char *) "icon", NULL | |
3804 | }; | |
3805 | ||
3806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail; | |
3807 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3808 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3809 | if (arg2 == NULL) { | |
3810 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3811 | } | |
3812 | { | |
3813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3814 | (arg1)->AddIcon((wxIcon const &)*arg2); | |
3815 | ||
3816 | wxPyEndAllowThreads(__tstate); | |
3817 | if (PyErr_Occurred()) SWIG_fail; | |
3818 | } | |
3819 | Py_INCREF(Py_None); resultobj = Py_None; | |
3820 | return resultobj; | |
3821 | fail: | |
3822 | return NULL; | |
3823 | } | |
3824 | ||
3825 | ||
3826 | static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3827 | PyObject *resultobj; | |
3828 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
3829 | wxString *arg2 = 0 ; | |
3830 | long arg3 ; | |
3831 | bool temp2 = False ; | |
3832 | PyObject * obj0 = 0 ; | |
3833 | PyObject * obj1 = 0 ; | |
3834 | char *kwnames[] = { | |
3835 | (char *) "self",(char *) "file",(char *) "type", NULL | |
3836 | }; | |
3837 | ||
3838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOl:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
3839 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3840 | { | |
3841 | arg2 = wxString_in_helper(obj1); | |
3842 | if (arg2 == NULL) SWIG_fail; | |
3843 | temp2 = True; | |
3844 | } | |
3845 | { | |
3846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3847 | (arg1)->AddIcon((wxString const &)*arg2,arg3); | |
3848 | ||
3849 | wxPyEndAllowThreads(__tstate); | |
3850 | if (PyErr_Occurred()) SWIG_fail; | |
3851 | } | |
3852 | Py_INCREF(Py_None); resultobj = Py_None; | |
3853 | { | |
3854 | if (temp2) | |
3855 | delete arg2; | |
3856 | } | |
3857 | return resultobj; | |
3858 | fail: | |
3859 | { | |
3860 | if (temp2) | |
3861 | delete arg2; | |
3862 | } | |
3863 | return NULL; | |
3864 | } | |
3865 | ||
3866 | ||
3867 | static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3868 | PyObject *resultobj; | |
3869 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
3870 | wxSize *arg2 = 0 ; | |
3871 | wxIcon *result; | |
3872 | wxSize temp2 ; | |
3873 | PyObject * obj0 = 0 ; | |
3874 | PyObject * obj1 = 0 ; | |
3875 | char *kwnames[] = { | |
3876 | (char *) "self",(char *) "size", NULL | |
3877 | }; | |
3878 | ||
3879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail; | |
3880 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3881 | { | |
3882 | arg2 = &temp2; | |
3883 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3884 | } | |
3885 | { | |
3886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3887 | { | |
3888 | wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2); | |
3889 | result = (wxIcon *) &_result_ref; | |
3890 | } | |
3891 | ||
3892 | wxPyEndAllowThreads(__tstate); | |
3893 | if (PyErr_Occurred()) SWIG_fail; | |
3894 | } | |
3895 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 0); | |
3896 | return resultobj; | |
3897 | fail: | |
3898 | return NULL; | |
3899 | } | |
3900 | ||
3901 | ||
3902 | static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) { | |
3903 | PyObject *obj; | |
3904 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3905 | SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj); | |
3906 | Py_INCREF(obj); | |
3907 | return Py_BuildValue((char *)""); | |
3908 | } | |
3909 | static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3910 | PyObject *resultobj; | |
3911 | wxString *arg1 = (wxString *) 0 ; | |
3912 | long arg2 ; | |
3913 | int arg3 = (int) 0 ; | |
3914 | int arg4 = (int) 0 ; | |
3915 | wxCursor *result; | |
3916 | PyObject * obj0 = 0 ; | |
3917 | char *kwnames[] = { | |
3918 | (char *) "cursorName",(char *) "flags",(char *) "hotSpotX",(char *) "hotSpotY", NULL | |
3919 | }; | |
3920 | ||
3921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|ii:new_Cursor",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
3922 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3923 | { | |
3924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3925 | result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4); | |
3926 | ||
3927 | wxPyEndAllowThreads(__tstate); | |
3928 | if (PyErr_Occurred()) SWIG_fail; | |
3929 | } | |
3930 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1); | |
3931 | return resultobj; | |
3932 | fail: | |
3933 | return NULL; | |
3934 | } | |
3935 | ||
3936 | ||
3937 | static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3938 | PyObject *resultobj; | |
3939 | wxCursor *arg1 = (wxCursor *) 0 ; | |
3940 | PyObject * obj0 = 0 ; | |
3941 | char *kwnames[] = { | |
3942 | (char *) "self", NULL | |
3943 | }; | |
3944 | ||
3945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail; | |
3946 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3947 | { | |
3948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3949 | delete arg1; | |
3950 | ||
3951 | wxPyEndAllowThreads(__tstate); | |
3952 | if (PyErr_Occurred()) SWIG_fail; | |
3953 | } | |
3954 | Py_INCREF(Py_None); resultobj = Py_None; | |
3955 | return resultobj; | |
3956 | fail: | |
3957 | return NULL; | |
3958 | } | |
3959 | ||
3960 | ||
3961 | static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3962 | PyObject *resultobj; | |
3963 | int arg1 ; | |
3964 | wxCursor *result; | |
3965 | char *kwnames[] = { | |
3966 | (char *) "id", NULL | |
3967 | }; | |
3968 | ||
3969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:new_StockCursor",kwnames,&arg1)) goto fail; | |
3970 | { | |
3971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3972 | result = (wxCursor *)new wxCursor(arg1); | |
3973 | ||
3974 | wxPyEndAllowThreads(__tstate); | |
3975 | if (PyErr_Occurred()) SWIG_fail; | |
3976 | } | |
3977 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1); | |
3978 | return resultobj; | |
3979 | fail: | |
3980 | return NULL; | |
3981 | } | |
3982 | ||
3983 | ||
3984 | static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3985 | PyObject *resultobj; | |
3986 | wxImage *arg1 = 0 ; | |
3987 | wxCursor *result; | |
3988 | PyObject * obj0 = 0 ; | |
3989 | char *kwnames[] = { | |
3990 | (char *) "image", NULL | |
3991 | }; | |
3992 | ||
3993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail; | |
3994 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3995 | if (arg1 == NULL) { | |
3996 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3997 | } | |
3998 | { | |
3999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4000 | result = (wxCursor *)new wxCursor((wxImage const &)*arg1); | |
4001 | ||
4002 | wxPyEndAllowThreads(__tstate); | |
4003 | if (PyErr_Occurred()) SWIG_fail; | |
4004 | } | |
4005 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1); | |
4006 | return resultobj; | |
4007 | fail: | |
4008 | return NULL; | |
4009 | } | |
4010 | ||
4011 | ||
4012 | static PyObject *_wrap_new_CursorFromBits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4013 | PyObject *resultobj; | |
4014 | PyObject *arg1 = (PyObject *) 0 ; | |
4015 | int arg2 ; | |
4016 | int arg3 ; | |
4017 | int arg4 = (int) -1 ; | |
4018 | int arg5 = (int) -1 ; | |
4019 | PyObject *arg6 = (PyObject *) 0 ; | |
4020 | wxCursor *result; | |
4021 | PyObject * obj0 = 0 ; | |
4022 | PyObject * obj5 = 0 ; | |
4023 | char *kwnames[] = { | |
4024 | (char *) "bits",(char *) "width",(char *) "height",(char *) "hotSpotX",(char *) "hotSpotY",(char *) "maskBits", NULL | |
4025 | }; | |
4026 | ||
4027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|iiO:new_CursorFromBits",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5)) goto fail; | |
4028 | arg1 = obj0; | |
4029 | if (obj5) { | |
4030 | arg6 = obj5; | |
4031 | } | |
4032 | { | |
4033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4034 | result = (wxCursor *)new_wxCursor(arg1,arg2,arg3,arg4,arg5,arg6); | |
4035 | ||
4036 | wxPyEndAllowThreads(__tstate); | |
4037 | if (PyErr_Occurred()) SWIG_fail; | |
4038 | } | |
4039 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1); | |
4040 | return resultobj; | |
4041 | fail: | |
4042 | return NULL; | |
4043 | } | |
4044 | ||
4045 | ||
4046 | static PyObject *_wrap_Cursor_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4047 | PyObject *resultobj; | |
4048 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4049 | long result; | |
4050 | PyObject * obj0 = 0 ; | |
4051 | char *kwnames[] = { | |
4052 | (char *) "self", NULL | |
4053 | }; | |
4054 | ||
4055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHandle",kwnames,&obj0)) goto fail; | |
4056 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4057 | { | |
4058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4059 | result = (long)(arg1)->GetHandle(); | |
4060 | ||
4061 | wxPyEndAllowThreads(__tstate); | |
4062 | if (PyErr_Occurred()) SWIG_fail; | |
4063 | } | |
4064 | resultobj = PyInt_FromLong((long)result); | |
4065 | return resultobj; | |
4066 | fail: | |
4067 | return NULL; | |
4068 | } | |
4069 | ||
4070 | ||
4071 | static PyObject *_wrap_Cursor_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4072 | PyObject *resultobj; | |
4073 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4074 | long arg2 ; | |
4075 | PyObject * obj0 = 0 ; | |
4076 | char *kwnames[] = { | |
4077 | (char *) "self",(char *) "handle", NULL | |
4078 | }; | |
4079 | ||
4080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:Cursor_SetHandle",kwnames,&obj0,&arg2)) goto fail; | |
4081 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4082 | { | |
4083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4084 | (arg1)->SetHandle(arg2); | |
4085 | ||
4086 | wxPyEndAllowThreads(__tstate); | |
4087 | if (PyErr_Occurred()) SWIG_fail; | |
4088 | } | |
4089 | Py_INCREF(Py_None); resultobj = Py_None; | |
4090 | return resultobj; | |
4091 | fail: | |
4092 | return NULL; | |
4093 | } | |
4094 | ||
4095 | ||
4096 | static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4097 | PyObject *resultobj; | |
4098 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4099 | bool result; | |
4100 | PyObject * obj0 = 0 ; | |
4101 | char *kwnames[] = { | |
4102 | (char *) "self", NULL | |
4103 | }; | |
4104 | ||
4105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail; | |
4106 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4107 | { | |
4108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4109 | result = (bool)(arg1)->Ok(); | |
4110 | ||
4111 | wxPyEndAllowThreads(__tstate); | |
4112 | if (PyErr_Occurred()) SWIG_fail; | |
4113 | } | |
4114 | resultobj = PyInt_FromLong((long)result); | |
4115 | return resultobj; | |
4116 | fail: | |
4117 | return NULL; | |
4118 | } | |
4119 | ||
4120 | ||
4121 | static PyObject *_wrap_Cursor_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4122 | PyObject *resultobj; | |
4123 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4124 | int result; | |
4125 | PyObject * obj0 = 0 ; | |
4126 | char *kwnames[] = { | |
4127 | (char *) "self", NULL | |
4128 | }; | |
4129 | ||
4130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetWidth",kwnames,&obj0)) goto fail; | |
4131 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4132 | { | |
4133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4134 | result = (int)(arg1)->GetWidth(); | |
4135 | ||
4136 | wxPyEndAllowThreads(__tstate); | |
4137 | if (PyErr_Occurred()) SWIG_fail; | |
4138 | } | |
4139 | resultobj = PyInt_FromLong((long)result); | |
4140 | return resultobj; | |
4141 | fail: | |
4142 | return NULL; | |
4143 | } | |
4144 | ||
4145 | ||
4146 | static PyObject *_wrap_Cursor_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4147 | PyObject *resultobj; | |
4148 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4149 | int result; | |
4150 | PyObject * obj0 = 0 ; | |
4151 | char *kwnames[] = { | |
4152 | (char *) "self", NULL | |
4153 | }; | |
4154 | ||
4155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHeight",kwnames,&obj0)) goto fail; | |
4156 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4157 | { | |
4158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4159 | result = (int)(arg1)->GetHeight(); | |
4160 | ||
4161 | wxPyEndAllowThreads(__tstate); | |
4162 | if (PyErr_Occurred()) SWIG_fail; | |
4163 | } | |
4164 | resultobj = PyInt_FromLong((long)result); | |
4165 | return resultobj; | |
4166 | fail: | |
4167 | return NULL; | |
4168 | } | |
4169 | ||
4170 | ||
4171 | static PyObject *_wrap_Cursor_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4172 | PyObject *resultobj; | |
4173 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4174 | int result; | |
4175 | PyObject * obj0 = 0 ; | |
4176 | char *kwnames[] = { | |
4177 | (char *) "self", NULL | |
4178 | }; | |
4179 | ||
4180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetDepth",kwnames,&obj0)) goto fail; | |
4181 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4182 | { | |
4183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4184 | result = (int)(arg1)->GetDepth(); | |
4185 | ||
4186 | wxPyEndAllowThreads(__tstate); | |
4187 | if (PyErr_Occurred()) SWIG_fail; | |
4188 | } | |
4189 | resultobj = PyInt_FromLong((long)result); | |
4190 | return resultobj; | |
4191 | fail: | |
4192 | return NULL; | |
4193 | } | |
4194 | ||
4195 | ||
4196 | static PyObject *_wrap_Cursor_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4197 | PyObject *resultobj; | |
4198 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4199 | int arg2 ; | |
4200 | PyObject * obj0 = 0 ; | |
4201 | char *kwnames[] = { | |
4202 | (char *) "self",(char *) "w", NULL | |
4203 | }; | |
4204 | ||
4205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Cursor_SetWidth",kwnames,&obj0,&arg2)) goto fail; | |
4206 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4207 | { | |
4208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4209 | (arg1)->SetWidth(arg2); | |
4210 | ||
4211 | wxPyEndAllowThreads(__tstate); | |
4212 | if (PyErr_Occurred()) SWIG_fail; | |
4213 | } | |
4214 | Py_INCREF(Py_None); resultobj = Py_None; | |
4215 | return resultobj; | |
4216 | fail: | |
4217 | return NULL; | |
4218 | } | |
4219 | ||
4220 | ||
4221 | static PyObject *_wrap_Cursor_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4222 | PyObject *resultobj; | |
4223 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4224 | int arg2 ; | |
4225 | PyObject * obj0 = 0 ; | |
4226 | char *kwnames[] = { | |
4227 | (char *) "self",(char *) "h", NULL | |
4228 | }; | |
4229 | ||
4230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Cursor_SetHeight",kwnames,&obj0,&arg2)) goto fail; | |
4231 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4232 | { | |
4233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4234 | (arg1)->SetHeight(arg2); | |
4235 | ||
4236 | wxPyEndAllowThreads(__tstate); | |
4237 | if (PyErr_Occurred()) SWIG_fail; | |
4238 | } | |
4239 | Py_INCREF(Py_None); resultobj = Py_None; | |
4240 | return resultobj; | |
4241 | fail: | |
4242 | return NULL; | |
4243 | } | |
4244 | ||
4245 | ||
4246 | static PyObject *_wrap_Cursor_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4247 | PyObject *resultobj; | |
4248 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4249 | int arg2 ; | |
4250 | PyObject * obj0 = 0 ; | |
4251 | char *kwnames[] = { | |
4252 | (char *) "self",(char *) "d", NULL | |
4253 | }; | |
4254 | ||
4255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Cursor_SetDepth",kwnames,&obj0,&arg2)) goto fail; | |
4256 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4257 | { | |
4258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4259 | (arg1)->SetDepth(arg2); | |
4260 | ||
4261 | wxPyEndAllowThreads(__tstate); | |
4262 | if (PyErr_Occurred()) SWIG_fail; | |
4263 | } | |
4264 | Py_INCREF(Py_None); resultobj = Py_None; | |
4265 | return resultobj; | |
4266 | fail: | |
4267 | return NULL; | |
4268 | } | |
4269 | ||
4270 | ||
4271 | static PyObject *_wrap_Cursor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4272 | PyObject *resultobj; | |
4273 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4274 | wxSize *arg2 = 0 ; | |
4275 | wxSize temp2 ; | |
4276 | PyObject * obj0 = 0 ; | |
4277 | PyObject * obj1 = 0 ; | |
4278 | char *kwnames[] = { | |
4279 | (char *) "self",(char *) "size", NULL | |
4280 | }; | |
4281 | ||
4282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
4283 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4284 | { | |
4285 | arg2 = &temp2; | |
4286 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4287 | } | |
4288 | { | |
4289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4290 | (arg1)->SetSize((wxSize const &)*arg2); | |
4291 | ||
4292 | wxPyEndAllowThreads(__tstate); | |
4293 | if (PyErr_Occurred()) SWIG_fail; | |
4294 | } | |
4295 | Py_INCREF(Py_None); resultobj = Py_None; | |
4296 | return resultobj; | |
4297 | fail: | |
4298 | return NULL; | |
4299 | } | |
4300 | ||
4301 | ||
4302 | static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) { | |
4303 | PyObject *obj; | |
4304 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4305 | SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj); | |
4306 | Py_INCREF(obj); | |
4307 | return Py_BuildValue((char *)""); | |
4308 | } | |
4309 | static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4310 | PyObject *resultobj; | |
4311 | int arg1 = (int) 0 ; | |
4312 | int arg2 = (int) 0 ; | |
4313 | int arg3 = (int) 0 ; | |
4314 | int arg4 = (int) 0 ; | |
4315 | wxRegion *result; | |
4316 | char *kwnames[] = { | |
4317 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4318 | }; | |
4319 | ||
4320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_Region",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
4321 | { | |
4322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4323 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4); | |
4324 | ||
4325 | wxPyEndAllowThreads(__tstate); | |
4326 | if (PyErr_Occurred()) SWIG_fail; | |
4327 | } | |
4328 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1); | |
4329 | return resultobj; | |
4330 | fail: | |
4331 | return NULL; | |
4332 | } | |
4333 | ||
4334 | ||
4335 | static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4336 | PyObject *resultobj; | |
4337 | wxBitmap *arg1 = 0 ; | |
4338 | wxColour const &arg2_defvalue = wxNullColour ; | |
4339 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
4340 | int arg3 = (int) 0 ; | |
4341 | wxRegion *result; | |
4342 | wxColour temp2 ; | |
4343 | PyObject * obj0 = 0 ; | |
4344 | PyObject * obj1 = 0 ; | |
4345 | char *kwnames[] = { | |
4346 | (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
4347 | }; | |
4348 | ||
4349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|Oi:new_RegionFromBitmap",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
4350 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4351 | if (arg1 == NULL) { | |
4352 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4353 | } | |
4354 | if (obj1) { | |
4355 | { | |
4356 | arg2 = &temp2; | |
4357 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
4358 | } | |
4359 | } | |
4360 | { | |
4361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4362 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3); | |
4363 | ||
4364 | wxPyEndAllowThreads(__tstate); | |
4365 | if (PyErr_Occurred()) SWIG_fail; | |
4366 | } | |
4367 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1); | |
4368 | return resultobj; | |
4369 | fail: | |
4370 | return NULL; | |
4371 | } | |
4372 | ||
4373 | ||
4374 | static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4375 | PyObject *resultobj; | |
4376 | int arg1 ; | |
4377 | wxPoint *arg2 = (wxPoint *) 0 ; | |
4378 | int arg3 = (int) wxWINDING_RULE ; | |
4379 | wxRegion *result; | |
4380 | PyObject * obj0 = 0 ; | |
4381 | char *kwnames[] = { | |
4382 | (char *) "points",(char *) "fillStyle", NULL | |
4383 | }; | |
4384 | ||
4385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_RegionFromPoints",kwnames,&obj0,&arg3)) goto fail; | |
4386 | { | |
4387 | arg2 = wxPoint_LIST_helper(obj0, &arg1); | |
4388 | if (arg2 == NULL) SWIG_fail; | |
4389 | } | |
4390 | { | |
4391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4392 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3); | |
4393 | ||
4394 | wxPyEndAllowThreads(__tstate); | |
4395 | if (PyErr_Occurred()) SWIG_fail; | |
4396 | } | |
4397 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1); | |
4398 | { | |
4399 | if (arg2) delete [] arg2; | |
4400 | } | |
4401 | return resultobj; | |
4402 | fail: | |
4403 | { | |
4404 | if (arg2) delete [] arg2; | |
4405 | } | |
4406 | return NULL; | |
4407 | } | |
4408 | ||
4409 | ||
4410 | static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4411 | PyObject *resultobj; | |
4412 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4413 | PyObject * obj0 = 0 ; | |
4414 | char *kwnames[] = { | |
4415 | (char *) "self", NULL | |
4416 | }; | |
4417 | ||
4418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail; | |
4419 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4420 | { | |
4421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4422 | delete arg1; | |
4423 | ||
4424 | wxPyEndAllowThreads(__tstate); | |
4425 | if (PyErr_Occurred()) SWIG_fail; | |
4426 | } | |
4427 | Py_INCREF(Py_None); resultobj = Py_None; | |
4428 | return resultobj; | |
4429 | fail: | |
4430 | return NULL; | |
4431 | } | |
4432 | ||
4433 | ||
4434 | static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4435 | PyObject *resultobj; | |
4436 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4437 | PyObject * obj0 = 0 ; | |
4438 | char *kwnames[] = { | |
4439 | (char *) "self", NULL | |
4440 | }; | |
4441 | ||
4442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail; | |
4443 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4444 | { | |
4445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4446 | (arg1)->Clear(); | |
4447 | ||
4448 | wxPyEndAllowThreads(__tstate); | |
4449 | if (PyErr_Occurred()) SWIG_fail; | |
4450 | } | |
4451 | Py_INCREF(Py_None); resultobj = Py_None; | |
4452 | return resultobj; | |
4453 | fail: | |
4454 | return NULL; | |
4455 | } | |
4456 | ||
4457 | ||
4458 | static PyObject *_wrap_Region_Offset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4459 | PyObject *resultobj; | |
4460 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4461 | int arg2 ; | |
4462 | int arg3 ; | |
4463 | bool result; | |
4464 | PyObject * obj0 = 0 ; | |
4465 | char *kwnames[] = { | |
4466 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4467 | }; | |
4468 | ||
4469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Region_Offset",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
4470 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4471 | { | |
4472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4473 | result = (bool)(arg1)->Offset(arg2,arg3); | |
4474 | ||
4475 | wxPyEndAllowThreads(__tstate); | |
4476 | if (PyErr_Occurred()) SWIG_fail; | |
4477 | } | |
4478 | resultobj = PyInt_FromLong((long)result); | |
4479 | return resultobj; | |
4480 | fail: | |
4481 | return NULL; | |
4482 | } | |
4483 | ||
4484 | ||
4485 | static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4486 | PyObject *resultobj; | |
4487 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4488 | int arg2 ; | |
4489 | int arg3 ; | |
4490 | int result; | |
4491 | PyObject * obj0 = 0 ; | |
4492 | char *kwnames[] = { | |
4493 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4494 | }; | |
4495 | ||
4496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Region_Contains",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
4497 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4498 | { | |
4499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4500 | result = (int)(arg1)->Contains(arg2,arg3); | |
4501 | ||
4502 | wxPyEndAllowThreads(__tstate); | |
4503 | if (PyErr_Occurred()) SWIG_fail; | |
4504 | } | |
4505 | resultobj = PyInt_FromLong((long)result); | |
4506 | return resultobj; | |
4507 | fail: | |
4508 | return NULL; | |
4509 | } | |
4510 | ||
4511 | ||
4512 | static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4513 | PyObject *resultobj; | |
4514 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4515 | wxPoint *arg2 = 0 ; | |
4516 | int result; | |
4517 | wxPoint temp2 ; | |
4518 | PyObject * obj0 = 0 ; | |
4519 | PyObject * obj1 = 0 ; | |
4520 | char *kwnames[] = { | |
4521 | (char *) "self",(char *) "pt", NULL | |
4522 | }; | |
4523 | ||
4524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail; | |
4525 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4526 | { | |
4527 | arg2 = &temp2; | |
4528 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4529 | } | |
4530 | { | |
4531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4532 | result = (int)(arg1)->Contains((wxPoint const &)*arg2); | |
4533 | ||
4534 | wxPyEndAllowThreads(__tstate); | |
4535 | if (PyErr_Occurred()) SWIG_fail; | |
4536 | } | |
4537 | resultobj = PyInt_FromLong((long)result); | |
4538 | return resultobj; | |
4539 | fail: | |
4540 | return NULL; | |
4541 | } | |
4542 | ||
4543 | ||
4544 | static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4545 | PyObject *resultobj; | |
4546 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4547 | wxRect *arg2 = 0 ; | |
4548 | int result; | |
4549 | wxRect temp2 ; | |
4550 | PyObject * obj0 = 0 ; | |
4551 | PyObject * obj1 = 0 ; | |
4552 | char *kwnames[] = { | |
4553 | (char *) "self",(char *) "rect", NULL | |
4554 | }; | |
4555 | ||
4556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail; | |
4557 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4558 | { | |
4559 | arg2 = &temp2; | |
4560 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4561 | } | |
4562 | { | |
4563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4564 | result = (int)(arg1)->Contains((wxRect const &)*arg2); | |
4565 | ||
4566 | wxPyEndAllowThreads(__tstate); | |
4567 | if (PyErr_Occurred()) SWIG_fail; | |
4568 | } | |
4569 | resultobj = PyInt_FromLong((long)result); | |
4570 | return resultobj; | |
4571 | fail: | |
4572 | return NULL; | |
4573 | } | |
4574 | ||
4575 | ||
4576 | static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4577 | PyObject *resultobj; | |
4578 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4579 | int arg2 ; | |
4580 | int arg3 ; | |
4581 | int arg4 ; | |
4582 | int arg5 ; | |
4583 | int result; | |
4584 | PyObject * obj0 = 0 ; | |
4585 | char *kwnames[] = { | |
4586 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
4587 | }; | |
4588 | ||
4589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_ContainsRectDim",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
4590 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4591 | { | |
4592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4593 | result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5); | |
4594 | ||
4595 | wxPyEndAllowThreads(__tstate); | |
4596 | if (PyErr_Occurred()) SWIG_fail; | |
4597 | } | |
4598 | resultobj = PyInt_FromLong((long)result); | |
4599 | return resultobj; | |
4600 | fail: | |
4601 | return NULL; | |
4602 | } | |
4603 | ||
4604 | ||
4605 | static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4606 | PyObject *resultobj; | |
4607 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4608 | wxRect result; | |
4609 | PyObject * obj0 = 0 ; | |
4610 | char *kwnames[] = { | |
4611 | (char *) "self", NULL | |
4612 | }; | |
4613 | ||
4614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail; | |
4615 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4616 | { | |
4617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4618 | result = (arg1)->GetBox(); | |
4619 | ||
4620 | wxPyEndAllowThreads(__tstate); | |
4621 | if (PyErr_Occurred()) SWIG_fail; | |
4622 | } | |
4623 | { | |
4624 | wxRect * resultptr; | |
4625 | resultptr = new wxRect((wxRect &) result); | |
4626 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
4627 | } | |
4628 | return resultobj; | |
4629 | fail: | |
4630 | return NULL; | |
4631 | } | |
4632 | ||
4633 | ||
4634 | static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4635 | PyObject *resultobj; | |
4636 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4637 | int arg2 ; | |
4638 | int arg3 ; | |
4639 | int arg4 ; | |
4640 | int arg5 ; | |
4641 | bool result; | |
4642 | PyObject * obj0 = 0 ; | |
4643 | char *kwnames[] = { | |
4644 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4645 | }; | |
4646 | ||
4647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Intersect",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
4648 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4649 | { | |
4650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4651 | result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5); | |
4652 | ||
4653 | wxPyEndAllowThreads(__tstate); | |
4654 | if (PyErr_Occurred()) SWIG_fail; | |
4655 | } | |
4656 | resultobj = PyInt_FromLong((long)result); | |
4657 | return resultobj; | |
4658 | fail: | |
4659 | return NULL; | |
4660 | } | |
4661 | ||
4662 | ||
4663 | static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4664 | PyObject *resultobj; | |
4665 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4666 | wxRect *arg2 = 0 ; | |
4667 | bool result; | |
4668 | wxRect temp2 ; | |
4669 | PyObject * obj0 = 0 ; | |
4670 | PyObject * obj1 = 0 ; | |
4671 | char *kwnames[] = { | |
4672 | (char *) "self",(char *) "rect", NULL | |
4673 | }; | |
4674 | ||
4675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail; | |
4676 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4677 | { | |
4678 | arg2 = &temp2; | |
4679 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4680 | } | |
4681 | { | |
4682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4683 | result = (bool)(arg1)->Intersect((wxRect const &)*arg2); | |
4684 | ||
4685 | wxPyEndAllowThreads(__tstate); | |
4686 | if (PyErr_Occurred()) SWIG_fail; | |
4687 | } | |
4688 | resultobj = PyInt_FromLong((long)result); | |
4689 | return resultobj; | |
4690 | fail: | |
4691 | return NULL; | |
4692 | } | |
4693 | ||
4694 | ||
4695 | static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4696 | PyObject *resultobj; | |
4697 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4698 | wxRegion *arg2 = 0 ; | |
4699 | bool result; | |
4700 | PyObject * obj0 = 0 ; | |
4701 | PyObject * obj1 = 0 ; | |
4702 | char *kwnames[] = { | |
4703 | (char *) "self",(char *) "region", NULL | |
4704 | }; | |
4705 | ||
4706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail; | |
4707 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4708 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4709 | if (arg2 == NULL) { | |
4710 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4711 | } | |
4712 | { | |
4713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4714 | result = (bool)(arg1)->Intersect((wxRegion const &)*arg2); | |
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_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4727 | PyObject *resultobj; | |
4728 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4729 | bool result; | |
4730 | PyObject * obj0 = 0 ; | |
4731 | char *kwnames[] = { | |
4732 | (char *) "self", NULL | |
4733 | }; | |
4734 | ||
4735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail; | |
4736 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4737 | { | |
4738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4739 | result = (bool)(arg1)->IsEmpty(); | |
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_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4752 | PyObject *resultobj; | |
4753 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4754 | int arg2 ; | |
4755 | int arg3 ; | |
4756 | int arg4 ; | |
4757 | int arg5 ; | |
4758 | bool result; | |
4759 | PyObject * obj0 = 0 ; | |
4760 | char *kwnames[] = { | |
4761 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4762 | }; | |
4763 | ||
4764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Union",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
4765 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4766 | { | |
4767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4768 | result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5); | |
4769 | ||
4770 | wxPyEndAllowThreads(__tstate); | |
4771 | if (PyErr_Occurred()) SWIG_fail; | |
4772 | } | |
4773 | resultobj = PyInt_FromLong((long)result); | |
4774 | return resultobj; | |
4775 | fail: | |
4776 | return NULL; | |
4777 | } | |
4778 | ||
4779 | ||
4780 | static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4781 | PyObject *resultobj; | |
4782 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4783 | wxRect *arg2 = 0 ; | |
4784 | bool result; | |
4785 | wxRect temp2 ; | |
4786 | PyObject * obj0 = 0 ; | |
4787 | PyObject * obj1 = 0 ; | |
4788 | char *kwnames[] = { | |
4789 | (char *) "self",(char *) "rect", NULL | |
4790 | }; | |
4791 | ||
4792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail; | |
4793 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4794 | { | |
4795 | arg2 = &temp2; | |
4796 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4797 | } | |
4798 | { | |
4799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4800 | result = (bool)(arg1)->Union((wxRect const &)*arg2); | |
4801 | ||
4802 | wxPyEndAllowThreads(__tstate); | |
4803 | if (PyErr_Occurred()) SWIG_fail; | |
4804 | } | |
4805 | resultobj = PyInt_FromLong((long)result); | |
4806 | return resultobj; | |
4807 | fail: | |
4808 | return NULL; | |
4809 | } | |
4810 | ||
4811 | ||
4812 | static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4813 | PyObject *resultobj; | |
4814 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4815 | wxRegion *arg2 = 0 ; | |
4816 | bool result; | |
4817 | PyObject * obj0 = 0 ; | |
4818 | PyObject * obj1 = 0 ; | |
4819 | char *kwnames[] = { | |
4820 | (char *) "self",(char *) "region", NULL | |
4821 | }; | |
4822 | ||
4823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail; | |
4824 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4825 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4826 | if (arg2 == NULL) { | |
4827 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4828 | } | |
4829 | { | |
4830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4831 | result = (bool)(arg1)->Union((wxRegion const &)*arg2); | |
4832 | ||
4833 | wxPyEndAllowThreads(__tstate); | |
4834 | if (PyErr_Occurred()) SWIG_fail; | |
4835 | } | |
4836 | resultobj = PyInt_FromLong((long)result); | |
4837 | return resultobj; | |
4838 | fail: | |
4839 | return NULL; | |
4840 | } | |
4841 | ||
4842 | ||
4843 | static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4844 | PyObject *resultobj; | |
4845 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4846 | int arg2 ; | |
4847 | int arg3 ; | |
4848 | int arg4 ; | |
4849 | int arg5 ; | |
4850 | bool result; | |
4851 | PyObject * obj0 = 0 ; | |
4852 | char *kwnames[] = { | |
4853 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4854 | }; | |
4855 | ||
4856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Subtract",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
4857 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4858 | { | |
4859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4860 | result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5); | |
4861 | ||
4862 | wxPyEndAllowThreads(__tstate); | |
4863 | if (PyErr_Occurred()) SWIG_fail; | |
4864 | } | |
4865 | resultobj = PyInt_FromLong((long)result); | |
4866 | return resultobj; | |
4867 | fail: | |
4868 | return NULL; | |
4869 | } | |
4870 | ||
4871 | ||
4872 | static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4873 | PyObject *resultobj; | |
4874 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4875 | wxRect *arg2 = 0 ; | |
4876 | bool result; | |
4877 | wxRect temp2 ; | |
4878 | PyObject * obj0 = 0 ; | |
4879 | PyObject * obj1 = 0 ; | |
4880 | char *kwnames[] = { | |
4881 | (char *) "self",(char *) "rect", NULL | |
4882 | }; | |
4883 | ||
4884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail; | |
4885 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4886 | { | |
4887 | arg2 = &temp2; | |
4888 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4889 | } | |
4890 | { | |
4891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4892 | result = (bool)(arg1)->Subtract((wxRect const &)*arg2); | |
4893 | ||
4894 | wxPyEndAllowThreads(__tstate); | |
4895 | if (PyErr_Occurred()) SWIG_fail; | |
4896 | } | |
4897 | resultobj = PyInt_FromLong((long)result); | |
4898 | return resultobj; | |
4899 | fail: | |
4900 | return NULL; | |
4901 | } | |
4902 | ||
4903 | ||
4904 | static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4905 | PyObject *resultobj; | |
4906 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4907 | wxRegion *arg2 = 0 ; | |
4908 | bool result; | |
4909 | PyObject * obj0 = 0 ; | |
4910 | PyObject * obj1 = 0 ; | |
4911 | char *kwnames[] = { | |
4912 | (char *) "self",(char *) "region", NULL | |
4913 | }; | |
4914 | ||
4915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail; | |
4916 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4917 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4918 | if (arg2 == NULL) { | |
4919 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4920 | } | |
4921 | { | |
4922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4923 | result = (bool)(arg1)->Subtract((wxRegion const &)*arg2); | |
4924 | ||
4925 | wxPyEndAllowThreads(__tstate); | |
4926 | if (PyErr_Occurred()) SWIG_fail; | |
4927 | } | |
4928 | resultobj = PyInt_FromLong((long)result); | |
4929 | return resultobj; | |
4930 | fail: | |
4931 | return NULL; | |
4932 | } | |
4933 | ||
4934 | ||
4935 | static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4936 | PyObject *resultobj; | |
4937 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4938 | int arg2 ; | |
4939 | int arg3 ; | |
4940 | int arg4 ; | |
4941 | int arg5 ; | |
4942 | bool result; | |
4943 | PyObject * obj0 = 0 ; | |
4944 | char *kwnames[] = { | |
4945 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4946 | }; | |
4947 | ||
4948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Xor",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
4949 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4950 | { | |
4951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4952 | result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5); | |
4953 | ||
4954 | wxPyEndAllowThreads(__tstate); | |
4955 | if (PyErr_Occurred()) SWIG_fail; | |
4956 | } | |
4957 | resultobj = PyInt_FromLong((long)result); | |
4958 | return resultobj; | |
4959 | fail: | |
4960 | return NULL; | |
4961 | } | |
4962 | ||
4963 | ||
4964 | static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4965 | PyObject *resultobj; | |
4966 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4967 | wxRect *arg2 = 0 ; | |
4968 | bool result; | |
4969 | wxRect temp2 ; | |
4970 | PyObject * obj0 = 0 ; | |
4971 | PyObject * obj1 = 0 ; | |
4972 | char *kwnames[] = { | |
4973 | (char *) "self",(char *) "rect", NULL | |
4974 | }; | |
4975 | ||
4976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail; | |
4977 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4978 | { | |
4979 | arg2 = &temp2; | |
4980 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4981 | } | |
4982 | { | |
4983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4984 | result = (bool)(arg1)->Xor((wxRect const &)*arg2); | |
4985 | ||
4986 | wxPyEndAllowThreads(__tstate); | |
4987 | if (PyErr_Occurred()) SWIG_fail; | |
4988 | } | |
4989 | resultobj = PyInt_FromLong((long)result); | |
4990 | return resultobj; | |
4991 | fail: | |
4992 | return NULL; | |
4993 | } | |
4994 | ||
4995 | ||
4996 | static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4997 | PyObject *resultobj; | |
4998 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4999 | wxRegion *arg2 = 0 ; | |
5000 | bool result; | |
5001 | PyObject * obj0 = 0 ; | |
5002 | PyObject * obj1 = 0 ; | |
5003 | char *kwnames[] = { | |
5004 | (char *) "self",(char *) "region", NULL | |
5005 | }; | |
5006 | ||
5007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail; | |
5008 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5009 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5010 | if (arg2 == NULL) { | |
5011 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5012 | } | |
5013 | { | |
5014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5015 | result = (bool)(arg1)->Xor((wxRegion const &)*arg2); | |
5016 | ||
5017 | wxPyEndAllowThreads(__tstate); | |
5018 | if (PyErr_Occurred()) SWIG_fail; | |
5019 | } | |
5020 | resultobj = PyInt_FromLong((long)result); | |
5021 | return resultobj; | |
5022 | fail: | |
5023 | return NULL; | |
5024 | } | |
5025 | ||
5026 | ||
5027 | static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5028 | PyObject *resultobj; | |
5029 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5030 | SwigValueWrapper< wxBitmap > result; | |
5031 | PyObject * obj0 = 0 ; | |
5032 | char *kwnames[] = { | |
5033 | (char *) "self", NULL | |
5034 | }; | |
5035 | ||
5036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail; | |
5037 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5038 | { | |
5039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5040 | result = (arg1)->ConvertToBitmap(); | |
5041 | ||
5042 | wxPyEndAllowThreads(__tstate); | |
5043 | if (PyErr_Occurred()) SWIG_fail; | |
5044 | } | |
5045 | { | |
5046 | wxBitmap * resultptr; | |
5047 | resultptr = new wxBitmap((wxBitmap &) result); | |
5048 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
5049 | } | |
5050 | return resultobj; | |
5051 | fail: | |
5052 | return NULL; | |
5053 | } | |
5054 | ||
5055 | ||
5056 | static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5057 | PyObject *resultobj; | |
5058 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5059 | wxBitmap *arg2 = 0 ; | |
5060 | wxColour const &arg3_defvalue = wxNullColour ; | |
5061 | wxColour *arg3 = (wxColour *) &arg3_defvalue ; | |
5062 | int arg4 = (int) 0 ; | |
5063 | bool result; | |
5064 | wxColour temp3 ; | |
5065 | PyObject * obj0 = 0 ; | |
5066 | PyObject * obj1 = 0 ; | |
5067 | PyObject * obj2 = 0 ; | |
5068 | char *kwnames[] = { | |
5069 | (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
5070 | }; | |
5071 | ||
5072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|Oi:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail; | |
5073 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5074 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5075 | if (arg2 == NULL) { | |
5076 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5077 | } | |
5078 | if (obj2) { | |
5079 | { | |
5080 | arg3 = &temp3; | |
5081 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
5082 | } | |
5083 | } | |
5084 | { | |
5085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5086 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4); | |
5087 | ||
5088 | wxPyEndAllowThreads(__tstate); | |
5089 | if (PyErr_Occurred()) SWIG_fail; | |
5090 | } | |
5091 | resultobj = PyInt_FromLong((long)result); | |
5092 | return resultobj; | |
5093 | fail: | |
5094 | return NULL; | |
5095 | } | |
5096 | ||
5097 | ||
5098 | static PyObject * Region_swigregister(PyObject *self, PyObject *args) { | |
5099 | PyObject *obj; | |
5100 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5101 | SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj); | |
5102 | Py_INCREF(obj); | |
5103 | return Py_BuildValue((char *)""); | |
5104 | } | |
5105 | static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5106 | PyObject *resultobj; | |
5107 | wxRegion *arg1 = 0 ; | |
5108 | wxRegionIterator *result; | |
5109 | PyObject * obj0 = 0 ; | |
5110 | char *kwnames[] = { | |
5111 | (char *) "region", NULL | |
5112 | }; | |
5113 | ||
5114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail; | |
5115 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5116 | if (arg1 == NULL) { | |
5117 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5118 | } | |
5119 | { | |
5120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5121 | result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1); | |
5122 | ||
5123 | wxPyEndAllowThreads(__tstate); | |
5124 | if (PyErr_Occurred()) SWIG_fail; | |
5125 | } | |
5126 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegionIterator, 1); | |
5127 | return resultobj; | |
5128 | fail: | |
5129 | return NULL; | |
5130 | } | |
5131 | ||
5132 | ||
5133 | static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5134 | PyObject *resultobj; | |
5135 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5136 | PyObject * obj0 = 0 ; | |
5137 | char *kwnames[] = { | |
5138 | (char *) "self", NULL | |
5139 | }; | |
5140 | ||
5141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail; | |
5142 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5143 | { | |
5144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5145 | delete arg1; | |
5146 | ||
5147 | wxPyEndAllowThreads(__tstate); | |
5148 | if (PyErr_Occurred()) SWIG_fail; | |
5149 | } | |
5150 | Py_INCREF(Py_None); resultobj = Py_None; | |
5151 | return resultobj; | |
5152 | fail: | |
5153 | return NULL; | |
5154 | } | |
5155 | ||
5156 | ||
5157 | static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5158 | PyObject *resultobj; | |
5159 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5160 | int result; | |
5161 | PyObject * obj0 = 0 ; | |
5162 | char *kwnames[] = { | |
5163 | (char *) "self", NULL | |
5164 | }; | |
5165 | ||
5166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail; | |
5167 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5168 | { | |
5169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5170 | result = (int)(arg1)->GetX(); | |
5171 | ||
5172 | wxPyEndAllowThreads(__tstate); | |
5173 | if (PyErr_Occurred()) SWIG_fail; | |
5174 | } | |
5175 | resultobj = PyInt_FromLong((long)result); | |
5176 | return resultobj; | |
5177 | fail: | |
5178 | return NULL; | |
5179 | } | |
5180 | ||
5181 | ||
5182 | static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5183 | PyObject *resultobj; | |
5184 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5185 | int result; | |
5186 | PyObject * obj0 = 0 ; | |
5187 | char *kwnames[] = { | |
5188 | (char *) "self", NULL | |
5189 | }; | |
5190 | ||
5191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail; | |
5192 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5193 | { | |
5194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5195 | result = (int)(arg1)->GetY(); | |
5196 | ||
5197 | wxPyEndAllowThreads(__tstate); | |
5198 | if (PyErr_Occurred()) SWIG_fail; | |
5199 | } | |
5200 | resultobj = PyInt_FromLong((long)result); | |
5201 | return resultobj; | |
5202 | fail: | |
5203 | return NULL; | |
5204 | } | |
5205 | ||
5206 | ||
5207 | static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5208 | PyObject *resultobj; | |
5209 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5210 | int result; | |
5211 | PyObject * obj0 = 0 ; | |
5212 | char *kwnames[] = { | |
5213 | (char *) "self", NULL | |
5214 | }; | |
5215 | ||
5216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail; | |
5217 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5218 | { | |
5219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5220 | result = (int)(arg1)->GetW(); | |
5221 | ||
5222 | wxPyEndAllowThreads(__tstate); | |
5223 | if (PyErr_Occurred()) SWIG_fail; | |
5224 | } | |
5225 | resultobj = PyInt_FromLong((long)result); | |
5226 | return resultobj; | |
5227 | fail: | |
5228 | return NULL; | |
5229 | } | |
5230 | ||
5231 | ||
5232 | static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5233 | PyObject *resultobj; | |
5234 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5235 | int result; | |
5236 | PyObject * obj0 = 0 ; | |
5237 | char *kwnames[] = { | |
5238 | (char *) "self", NULL | |
5239 | }; | |
5240 | ||
5241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail; | |
5242 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5243 | { | |
5244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5245 | result = (int)(arg1)->GetWidth(); | |
5246 | ||
5247 | wxPyEndAllowThreads(__tstate); | |
5248 | if (PyErr_Occurred()) SWIG_fail; | |
5249 | } | |
5250 | resultobj = PyInt_FromLong((long)result); | |
5251 | return resultobj; | |
5252 | fail: | |
5253 | return NULL; | |
5254 | } | |
5255 | ||
5256 | ||
5257 | static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5258 | PyObject *resultobj; | |
5259 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5260 | int result; | |
5261 | PyObject * obj0 = 0 ; | |
5262 | char *kwnames[] = { | |
5263 | (char *) "self", NULL | |
5264 | }; | |
5265 | ||
5266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail; | |
5267 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5268 | { | |
5269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5270 | result = (int)(arg1)->GetH(); | |
5271 | ||
5272 | wxPyEndAllowThreads(__tstate); | |
5273 | if (PyErr_Occurred()) SWIG_fail; | |
5274 | } | |
5275 | resultobj = PyInt_FromLong((long)result); | |
5276 | return resultobj; | |
5277 | fail: | |
5278 | return NULL; | |
5279 | } | |
5280 | ||
5281 | ||
5282 | static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5283 | PyObject *resultobj; | |
5284 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5285 | int result; | |
5286 | PyObject * obj0 = 0 ; | |
5287 | char *kwnames[] = { | |
5288 | (char *) "self", NULL | |
5289 | }; | |
5290 | ||
5291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail; | |
5292 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5293 | { | |
5294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5295 | result = (int)(arg1)->GetHeight(); | |
5296 | ||
5297 | wxPyEndAllowThreads(__tstate); | |
5298 | if (PyErr_Occurred()) SWIG_fail; | |
5299 | } | |
5300 | resultobj = PyInt_FromLong((long)result); | |
5301 | return resultobj; | |
5302 | fail: | |
5303 | return NULL; | |
5304 | } | |
5305 | ||
5306 | ||
5307 | static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5308 | PyObject *resultobj; | |
5309 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5310 | wxRect result; | |
5311 | PyObject * obj0 = 0 ; | |
5312 | char *kwnames[] = { | |
5313 | (char *) "self", NULL | |
5314 | }; | |
5315 | ||
5316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail; | |
5317 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5318 | { | |
5319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5320 | result = (arg1)->GetRect(); | |
5321 | ||
5322 | wxPyEndAllowThreads(__tstate); | |
5323 | if (PyErr_Occurred()) SWIG_fail; | |
5324 | } | |
5325 | { | |
5326 | wxRect * resultptr; | |
5327 | resultptr = new wxRect((wxRect &) result); | |
5328 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
5329 | } | |
5330 | return resultobj; | |
5331 | fail: | |
5332 | return NULL; | |
5333 | } | |
5334 | ||
5335 | ||
5336 | static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5337 | PyObject *resultobj; | |
5338 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5339 | bool result; | |
5340 | PyObject * obj0 = 0 ; | |
5341 | char *kwnames[] = { | |
5342 | (char *) "self", NULL | |
5343 | }; | |
5344 | ||
5345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail; | |
5346 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5347 | { | |
5348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5349 | result = (bool)(arg1)->HaveRects(); | |
5350 | ||
5351 | wxPyEndAllowThreads(__tstate); | |
5352 | if (PyErr_Occurred()) SWIG_fail; | |
5353 | } | |
5354 | resultobj = PyInt_FromLong((long)result); | |
5355 | return resultobj; | |
5356 | fail: | |
5357 | return NULL; | |
5358 | } | |
5359 | ||
5360 | ||
5361 | static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5362 | PyObject *resultobj; | |
5363 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5364 | PyObject * obj0 = 0 ; | |
5365 | char *kwnames[] = { | |
5366 | (char *) "self", NULL | |
5367 | }; | |
5368 | ||
5369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail; | |
5370 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5371 | { | |
5372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5373 | (arg1)->Reset(); | |
5374 | ||
5375 | wxPyEndAllowThreads(__tstate); | |
5376 | if (PyErr_Occurred()) SWIG_fail; | |
5377 | } | |
5378 | Py_INCREF(Py_None); resultobj = Py_None; | |
5379 | return resultobj; | |
5380 | fail: | |
5381 | return NULL; | |
5382 | } | |
5383 | ||
5384 | ||
5385 | static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5386 | PyObject *resultobj; | |
5387 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5388 | PyObject * obj0 = 0 ; | |
5389 | char *kwnames[] = { | |
5390 | (char *) "self", NULL | |
5391 | }; | |
5392 | ||
5393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail; | |
5394 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5395 | { | |
5396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5397 | wxRegionIterator_Next(arg1); | |
5398 | ||
5399 | wxPyEndAllowThreads(__tstate); | |
5400 | if (PyErr_Occurred()) SWIG_fail; | |
5401 | } | |
5402 | Py_INCREF(Py_None); resultobj = Py_None; | |
5403 | return resultobj; | |
5404 | fail: | |
5405 | return NULL; | |
5406 | } | |
5407 | ||
5408 | ||
5409 | static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5410 | PyObject *resultobj; | |
5411 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5412 | bool result; | |
5413 | PyObject * obj0 = 0 ; | |
5414 | char *kwnames[] = { | |
5415 | (char *) "self", NULL | |
5416 | }; | |
5417 | ||
5418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail; | |
5419 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5420 | { | |
5421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5422 | result = (bool)wxRegionIterator___nonzero__(arg1); | |
5423 | ||
5424 | wxPyEndAllowThreads(__tstate); | |
5425 | if (PyErr_Occurred()) SWIG_fail; | |
5426 | } | |
5427 | resultobj = PyInt_FromLong((long)result); | |
5428 | return resultobj; | |
5429 | fail: | |
5430 | return NULL; | |
5431 | } | |
5432 | ||
5433 | ||
5434 | static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) { | |
5435 | PyObject *obj; | |
5436 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5437 | SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj); | |
5438 | Py_INCREF(obj); | |
5439 | return Py_BuildValue((char *)""); | |
5440 | } | |
5441 | static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5442 | PyObject *resultobj; | |
5443 | wxNativeFontInfo *result; | |
5444 | char *kwnames[] = { | |
5445 | NULL | |
5446 | }; | |
5447 | ||
5448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail; | |
5449 | { | |
5450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5451 | result = (wxNativeFontInfo *)new wxNativeFontInfo(); | |
5452 | ||
5453 | wxPyEndAllowThreads(__tstate); | |
5454 | if (PyErr_Occurred()) SWIG_fail; | |
5455 | } | |
5456 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 1); | |
5457 | return resultobj; | |
5458 | fail: | |
5459 | return NULL; | |
5460 | } | |
5461 | ||
5462 | ||
5463 | static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5464 | PyObject *resultobj; | |
5465 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5466 | PyObject * obj0 = 0 ; | |
5467 | char *kwnames[] = { | |
5468 | (char *) "self", NULL | |
5469 | }; | |
5470 | ||
5471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail; | |
5472 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5473 | { | |
5474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5475 | delete arg1; | |
5476 | ||
5477 | wxPyEndAllowThreads(__tstate); | |
5478 | if (PyErr_Occurred()) SWIG_fail; | |
5479 | } | |
5480 | Py_INCREF(Py_None); resultobj = Py_None; | |
5481 | return resultobj; | |
5482 | fail: | |
5483 | return NULL; | |
5484 | } | |
5485 | ||
5486 | ||
5487 | static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5488 | PyObject *resultobj; | |
5489 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5490 | PyObject * obj0 = 0 ; | |
5491 | char *kwnames[] = { | |
5492 | (char *) "self", NULL | |
5493 | }; | |
5494 | ||
5495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail; | |
5496 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5497 | { | |
5498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5499 | (arg1)->Init(); | |
5500 | ||
5501 | wxPyEndAllowThreads(__tstate); | |
5502 | if (PyErr_Occurred()) SWIG_fail; | |
5503 | } | |
5504 | Py_INCREF(Py_None); resultobj = Py_None; | |
5505 | return resultobj; | |
5506 | fail: | |
5507 | return NULL; | |
5508 | } | |
5509 | ||
5510 | ||
5511 | static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5512 | PyObject *resultobj; | |
5513 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5514 | wxFont *arg2 = 0 ; | |
5515 | PyObject * obj0 = 0 ; | |
5516 | PyObject * obj1 = 0 ; | |
5517 | char *kwnames[] = { | |
5518 | (char *) "self",(char *) "font", NULL | |
5519 | }; | |
5520 | ||
5521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail; | |
5522 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5523 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5524 | if (arg2 == NULL) { | |
5525 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5526 | } | |
5527 | { | |
5528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5529 | (arg1)->InitFromFont((wxFont const &)*arg2); | |
5530 | ||
5531 | wxPyEndAllowThreads(__tstate); | |
5532 | if (PyErr_Occurred()) SWIG_fail; | |
5533 | } | |
5534 | Py_INCREF(Py_None); resultobj = Py_None; | |
5535 | return resultobj; | |
5536 | fail: | |
5537 | return NULL; | |
5538 | } | |
5539 | ||
5540 | ||
5541 | static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5542 | PyObject *resultobj; | |
5543 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5544 | int result; | |
5545 | PyObject * obj0 = 0 ; | |
5546 | char *kwnames[] = { | |
5547 | (char *) "self", NULL | |
5548 | }; | |
5549 | ||
5550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail; | |
5551 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5552 | { | |
5553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5554 | result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize(); | |
5555 | ||
5556 | wxPyEndAllowThreads(__tstate); | |
5557 | if (PyErr_Occurred()) SWIG_fail; | |
5558 | } | |
5559 | resultobj = PyInt_FromLong((long)result); | |
5560 | return resultobj; | |
5561 | fail: | |
5562 | return NULL; | |
5563 | } | |
5564 | ||
5565 | ||
5566 | static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5567 | PyObject *resultobj; | |
5568 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5569 | int result; | |
5570 | PyObject * obj0 = 0 ; | |
5571 | char *kwnames[] = { | |
5572 | (char *) "self", NULL | |
5573 | }; | |
5574 | ||
5575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail; | |
5576 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5577 | { | |
5578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5579 | result = (int)((wxNativeFontInfo const *)arg1)->GetStyle(); | |
5580 | ||
5581 | wxPyEndAllowThreads(__tstate); | |
5582 | if (PyErr_Occurred()) SWIG_fail; | |
5583 | } | |
5584 | resultobj = PyInt_FromLong((long)result); | |
5585 | return resultobj; | |
5586 | fail: | |
5587 | return NULL; | |
5588 | } | |
5589 | ||
5590 | ||
5591 | static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5592 | PyObject *resultobj; | |
5593 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5594 | int result; | |
5595 | PyObject * obj0 = 0 ; | |
5596 | char *kwnames[] = { | |
5597 | (char *) "self", NULL | |
5598 | }; | |
5599 | ||
5600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail; | |
5601 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5602 | { | |
5603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5604 | result = (int)((wxNativeFontInfo const *)arg1)->GetWeight(); | |
5605 | ||
5606 | wxPyEndAllowThreads(__tstate); | |
5607 | if (PyErr_Occurred()) SWIG_fail; | |
5608 | } | |
5609 | resultobj = PyInt_FromLong((long)result); | |
5610 | return resultobj; | |
5611 | fail: | |
5612 | return NULL; | |
5613 | } | |
5614 | ||
5615 | ||
5616 | static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5617 | PyObject *resultobj; | |
5618 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5619 | bool result; | |
5620 | PyObject * obj0 = 0 ; | |
5621 | char *kwnames[] = { | |
5622 | (char *) "self", NULL | |
5623 | }; | |
5624 | ||
5625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail; | |
5626 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5627 | { | |
5628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5629 | result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined(); | |
5630 | ||
5631 | wxPyEndAllowThreads(__tstate); | |
5632 | if (PyErr_Occurred()) SWIG_fail; | |
5633 | } | |
5634 | resultobj = PyInt_FromLong((long)result); | |
5635 | return resultobj; | |
5636 | fail: | |
5637 | return NULL; | |
5638 | } | |
5639 | ||
5640 | ||
5641 | static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5642 | PyObject *resultobj; | |
5643 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5644 | wxString result; | |
5645 | PyObject * obj0 = 0 ; | |
5646 | char *kwnames[] = { | |
5647 | (char *) "self", NULL | |
5648 | }; | |
5649 | ||
5650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail; | |
5651 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5652 | { | |
5653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5654 | result = ((wxNativeFontInfo const *)arg1)->GetFaceName(); | |
5655 | ||
5656 | wxPyEndAllowThreads(__tstate); | |
5657 | if (PyErr_Occurred()) SWIG_fail; | |
5658 | } | |
5659 | { | |
5660 | #if wxUSE_UNICODE | |
5661 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5662 | #else | |
5663 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5664 | #endif | |
5665 | } | |
5666 | return resultobj; | |
5667 | fail: | |
5668 | return NULL; | |
5669 | } | |
5670 | ||
5671 | ||
5672 | static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5673 | PyObject *resultobj; | |
5674 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5675 | int result; | |
5676 | PyObject * obj0 = 0 ; | |
5677 | char *kwnames[] = { | |
5678 | (char *) "self", NULL | |
5679 | }; | |
5680 | ||
5681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail; | |
5682 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5683 | { | |
5684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5685 | result = (int)((wxNativeFontInfo const *)arg1)->GetFamily(); | |
5686 | ||
5687 | wxPyEndAllowThreads(__tstate); | |
5688 | if (PyErr_Occurred()) SWIG_fail; | |
5689 | } | |
5690 | resultobj = PyInt_FromLong((long)result); | |
5691 | return resultobj; | |
5692 | fail: | |
5693 | return NULL; | |
5694 | } | |
5695 | ||
5696 | ||
5697 | static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5698 | PyObject *resultobj; | |
5699 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5700 | int result; | |
5701 | PyObject * obj0 = 0 ; | |
5702 | char *kwnames[] = { | |
5703 | (char *) "self", NULL | |
5704 | }; | |
5705 | ||
5706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail; | |
5707 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5708 | { | |
5709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5710 | result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding(); | |
5711 | ||
5712 | wxPyEndAllowThreads(__tstate); | |
5713 | if (PyErr_Occurred()) SWIG_fail; | |
5714 | } | |
5715 | resultobj = PyInt_FromLong((long)result); | |
5716 | return resultobj; | |
5717 | fail: | |
5718 | return NULL; | |
5719 | } | |
5720 | ||
5721 | ||
5722 | static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5723 | PyObject *resultobj; | |
5724 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5725 | int arg2 ; | |
5726 | PyObject * obj0 = 0 ; | |
5727 | char *kwnames[] = { | |
5728 | (char *) "self",(char *) "pointsize", NULL | |
5729 | }; | |
5730 | ||
5731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetPointSize",kwnames,&obj0,&arg2)) goto fail; | |
5732 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5733 | { | |
5734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5735 | (arg1)->SetPointSize(arg2); | |
5736 | ||
5737 | wxPyEndAllowThreads(__tstate); | |
5738 | if (PyErr_Occurred()) SWIG_fail; | |
5739 | } | |
5740 | Py_INCREF(Py_None); resultobj = Py_None; | |
5741 | return resultobj; | |
5742 | fail: | |
5743 | return NULL; | |
5744 | } | |
5745 | ||
5746 | ||
5747 | static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5748 | PyObject *resultobj; | |
5749 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5750 | int arg2 ; | |
5751 | PyObject * obj0 = 0 ; | |
5752 | char *kwnames[] = { | |
5753 | (char *) "self",(char *) "style", NULL | |
5754 | }; | |
5755 | ||
5756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetStyle",kwnames,&obj0,&arg2)) goto fail; | |
5757 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5758 | { | |
5759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5760 | (arg1)->SetStyle((wxFontStyle )arg2); | |
5761 | ||
5762 | wxPyEndAllowThreads(__tstate); | |
5763 | if (PyErr_Occurred()) SWIG_fail; | |
5764 | } | |
5765 | Py_INCREF(Py_None); resultobj = Py_None; | |
5766 | return resultobj; | |
5767 | fail: | |
5768 | return NULL; | |
5769 | } | |
5770 | ||
5771 | ||
5772 | static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5773 | PyObject *resultobj; | |
5774 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5775 | int arg2 ; | |
5776 | PyObject * obj0 = 0 ; | |
5777 | char *kwnames[] = { | |
5778 | (char *) "self",(char *) "weight", NULL | |
5779 | }; | |
5780 | ||
5781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetWeight",kwnames,&obj0,&arg2)) goto fail; | |
5782 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5783 | { | |
5784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5785 | (arg1)->SetWeight((wxFontWeight )arg2); | |
5786 | ||
5787 | wxPyEndAllowThreads(__tstate); | |
5788 | if (PyErr_Occurred()) SWIG_fail; | |
5789 | } | |
5790 | Py_INCREF(Py_None); resultobj = Py_None; | |
5791 | return resultobj; | |
5792 | fail: | |
5793 | return NULL; | |
5794 | } | |
5795 | ||
5796 | ||
5797 | static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5798 | PyObject *resultobj; | |
5799 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5800 | bool arg2 ; | |
5801 | PyObject * obj0 = 0 ; | |
5802 | PyObject * obj1 = 0 ; | |
5803 | char *kwnames[] = { | |
5804 | (char *) "self",(char *) "underlined", NULL | |
5805 | }; | |
5806 | ||
5807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; | |
5808 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5809 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
5810 | if (PyErr_Occurred()) SWIG_fail; | |
5811 | { | |
5812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5813 | (arg1)->SetUnderlined(arg2); | |
5814 | ||
5815 | wxPyEndAllowThreads(__tstate); | |
5816 | if (PyErr_Occurred()) SWIG_fail; | |
5817 | } | |
5818 | Py_INCREF(Py_None); resultobj = Py_None; | |
5819 | return resultobj; | |
5820 | fail: | |
5821 | return NULL; | |
5822 | } | |
5823 | ||
5824 | ||
5825 | static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5826 | PyObject *resultobj; | |
5827 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5828 | wxString arg2 ; | |
5829 | PyObject * obj0 = 0 ; | |
5830 | PyObject * obj1 = 0 ; | |
5831 | char *kwnames[] = { | |
5832 | (char *) "self",(char *) "facename", NULL | |
5833 | }; | |
5834 | ||
5835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail; | |
5836 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5837 | { | |
5838 | wxString* sptr = wxString_in_helper(obj1); | |
5839 | if (sptr == NULL) SWIG_fail; | |
5840 | arg2 = *sptr; | |
5841 | delete sptr; | |
5842 | } | |
5843 | { | |
5844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5845 | (arg1)->SetFaceName(arg2); | |
5846 | ||
5847 | wxPyEndAllowThreads(__tstate); | |
5848 | if (PyErr_Occurred()) SWIG_fail; | |
5849 | } | |
5850 | Py_INCREF(Py_None); resultobj = Py_None; | |
5851 | return resultobj; | |
5852 | fail: | |
5853 | return NULL; | |
5854 | } | |
5855 | ||
5856 | ||
5857 | static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5858 | PyObject *resultobj; | |
5859 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5860 | int arg2 ; | |
5861 | PyObject * obj0 = 0 ; | |
5862 | char *kwnames[] = { | |
5863 | (char *) "self",(char *) "family", NULL | |
5864 | }; | |
5865 | ||
5866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetFamily",kwnames,&obj0,&arg2)) goto fail; | |
5867 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5868 | { | |
5869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5870 | (arg1)->SetFamily((wxFontFamily )arg2); | |
5871 | ||
5872 | wxPyEndAllowThreads(__tstate); | |
5873 | if (PyErr_Occurred()) SWIG_fail; | |
5874 | } | |
5875 | Py_INCREF(Py_None); resultobj = Py_None; | |
5876 | return resultobj; | |
5877 | fail: | |
5878 | return NULL; | |
5879 | } | |
5880 | ||
5881 | ||
5882 | static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5883 | PyObject *resultobj; | |
5884 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5885 | int arg2 ; | |
5886 | PyObject * obj0 = 0 ; | |
5887 | char *kwnames[] = { | |
5888 | (char *) "self",(char *) "encoding", NULL | |
5889 | }; | |
5890 | ||
5891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetEncoding",kwnames,&obj0,&arg2)) goto fail; | |
5892 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5893 | { | |
5894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5895 | (arg1)->SetEncoding((wxFontEncoding )arg2); | |
5896 | ||
5897 | wxPyEndAllowThreads(__tstate); | |
5898 | if (PyErr_Occurred()) SWIG_fail; | |
5899 | } | |
5900 | Py_INCREF(Py_None); resultobj = Py_None; | |
5901 | return resultobj; | |
5902 | fail: | |
5903 | return NULL; | |
5904 | } | |
5905 | ||
5906 | ||
5907 | static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5908 | PyObject *resultobj; | |
5909 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5910 | wxString *arg2 = 0 ; | |
5911 | bool result; | |
5912 | bool temp2 = False ; | |
5913 | PyObject * obj0 = 0 ; | |
5914 | PyObject * obj1 = 0 ; | |
5915 | char *kwnames[] = { | |
5916 | (char *) "self",(char *) "s", NULL | |
5917 | }; | |
5918 | ||
5919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail; | |
5920 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5921 | { | |
5922 | arg2 = wxString_in_helper(obj1); | |
5923 | if (arg2 == NULL) SWIG_fail; | |
5924 | temp2 = True; | |
5925 | } | |
5926 | { | |
5927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5928 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
5929 | ||
5930 | wxPyEndAllowThreads(__tstate); | |
5931 | if (PyErr_Occurred()) SWIG_fail; | |
5932 | } | |
5933 | resultobj = PyInt_FromLong((long)result); | |
5934 | { | |
5935 | if (temp2) | |
5936 | delete arg2; | |
5937 | } | |
5938 | return resultobj; | |
5939 | fail: | |
5940 | { | |
5941 | if (temp2) | |
5942 | delete arg2; | |
5943 | } | |
5944 | return NULL; | |
5945 | } | |
5946 | ||
5947 | ||
5948 | static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5949 | PyObject *resultobj; | |
5950 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5951 | wxString result; | |
5952 | PyObject * obj0 = 0 ; | |
5953 | char *kwnames[] = { | |
5954 | (char *) "self", NULL | |
5955 | }; | |
5956 | ||
5957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail; | |
5958 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5959 | { | |
5960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5961 | result = ((wxNativeFontInfo const *)arg1)->ToString(); | |
5962 | ||
5963 | wxPyEndAllowThreads(__tstate); | |
5964 | if (PyErr_Occurred()) SWIG_fail; | |
5965 | } | |
5966 | { | |
5967 | #if wxUSE_UNICODE | |
5968 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5969 | #else | |
5970 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5971 | #endif | |
5972 | } | |
5973 | return resultobj; | |
5974 | fail: | |
5975 | return NULL; | |
5976 | } | |
5977 | ||
5978 | ||
5979 | static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5980 | PyObject *resultobj; | |
5981 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5982 | wxString result; | |
5983 | PyObject * obj0 = 0 ; | |
5984 | char *kwnames[] = { | |
5985 | (char *) "self", NULL | |
5986 | }; | |
5987 | ||
5988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail; | |
5989 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5990 | { | |
5991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5992 | result = wxNativeFontInfo___str__(arg1); | |
5993 | ||
5994 | wxPyEndAllowThreads(__tstate); | |
5995 | if (PyErr_Occurred()) SWIG_fail; | |
5996 | } | |
5997 | { | |
5998 | #if wxUSE_UNICODE | |
5999 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6000 | #else | |
6001 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6002 | #endif | |
6003 | } | |
6004 | return resultobj; | |
6005 | fail: | |
6006 | return NULL; | |
6007 | } | |
6008 | ||
6009 | ||
6010 | static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6011 | PyObject *resultobj; | |
6012 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6013 | wxString *arg2 = 0 ; | |
6014 | bool result; | |
6015 | bool temp2 = False ; | |
6016 | PyObject * obj0 = 0 ; | |
6017 | PyObject * obj1 = 0 ; | |
6018 | char *kwnames[] = { | |
6019 | (char *) "self",(char *) "s", NULL | |
6020 | }; | |
6021 | ||
6022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail; | |
6023 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6024 | { | |
6025 | arg2 = wxString_in_helper(obj1); | |
6026 | if (arg2 == NULL) SWIG_fail; | |
6027 | temp2 = True; | |
6028 | } | |
6029 | { | |
6030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6031 | result = (bool)(arg1)->FromUserString((wxString const &)*arg2); | |
6032 | ||
6033 | wxPyEndAllowThreads(__tstate); | |
6034 | if (PyErr_Occurred()) SWIG_fail; | |
6035 | } | |
6036 | resultobj = PyInt_FromLong((long)result); | |
6037 | { | |
6038 | if (temp2) | |
6039 | delete arg2; | |
6040 | } | |
6041 | return resultobj; | |
6042 | fail: | |
6043 | { | |
6044 | if (temp2) | |
6045 | delete arg2; | |
6046 | } | |
6047 | return NULL; | |
6048 | } | |
6049 | ||
6050 | ||
6051 | static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6052 | PyObject *resultobj; | |
6053 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6054 | wxString result; | |
6055 | PyObject * obj0 = 0 ; | |
6056 | char *kwnames[] = { | |
6057 | (char *) "self", NULL | |
6058 | }; | |
6059 | ||
6060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail; | |
6061 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6062 | { | |
6063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6064 | result = ((wxNativeFontInfo const *)arg1)->ToUserString(); | |
6065 | ||
6066 | wxPyEndAllowThreads(__tstate); | |
6067 | if (PyErr_Occurred()) SWIG_fail; | |
6068 | } | |
6069 | { | |
6070 | #if wxUSE_UNICODE | |
6071 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6072 | #else | |
6073 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6074 | #endif | |
6075 | } | |
6076 | return resultobj; | |
6077 | fail: | |
6078 | return NULL; | |
6079 | } | |
6080 | ||
6081 | ||
6082 | static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) { | |
6083 | PyObject *obj; | |
6084 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6085 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj); | |
6086 | Py_INCREF(obj); | |
6087 | return Py_BuildValue((char *)""); | |
6088 | } | |
6089 | static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6090 | PyObject *resultobj; | |
6091 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6092 | wxString arg2 ; | |
6093 | PyObject * obj0 = 0 ; | |
6094 | PyObject * obj1 = 0 ; | |
6095 | char *kwnames[] = { | |
6096 | (char *) "self",(char *) "facename", NULL | |
6097 | }; | |
6098 | ||
6099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail; | |
6100 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6101 | { | |
6102 | wxString* sptr = wxString_in_helper(obj1); | |
6103 | if (sptr == NULL) SWIG_fail; | |
6104 | arg2 = *sptr; | |
6105 | delete sptr; | |
6106 | } | |
6107 | if (arg1) (arg1)->facename = arg2; | |
6108 | ||
6109 | Py_INCREF(Py_None); resultobj = Py_None; | |
6110 | return resultobj; | |
6111 | fail: | |
6112 | return NULL; | |
6113 | } | |
6114 | ||
6115 | ||
6116 | static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6117 | PyObject *resultobj; | |
6118 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6119 | wxString result; | |
6120 | PyObject * obj0 = 0 ; | |
6121 | char *kwnames[] = { | |
6122 | (char *) "self", NULL | |
6123 | }; | |
6124 | ||
6125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail; | |
6126 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6127 | result = ((arg1)->facename); | |
6128 | ||
6129 | { | |
6130 | #if wxUSE_UNICODE | |
6131 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6132 | #else | |
6133 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6134 | #endif | |
6135 | } | |
6136 | return resultobj; | |
6137 | fail: | |
6138 | return NULL; | |
6139 | } | |
6140 | ||
6141 | ||
6142 | static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6143 | PyObject *resultobj; | |
6144 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6145 | int arg2 ; | |
6146 | PyObject * obj0 = 0 ; | |
6147 | char *kwnames[] = { | |
6148 | (char *) "self",(char *) "encoding", NULL | |
6149 | }; | |
6150 | ||
6151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeEncodingInfo_encoding_set",kwnames,&obj0,&arg2)) goto fail; | |
6152 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6153 | if (arg1) (arg1)->encoding = (wxFontEncoding )arg2; | |
6154 | ||
6155 | Py_INCREF(Py_None); resultobj = Py_None; | |
6156 | return resultobj; | |
6157 | fail: | |
6158 | return NULL; | |
6159 | } | |
6160 | ||
6161 | ||
6162 | static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6163 | PyObject *resultobj; | |
6164 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6165 | int result; | |
6166 | PyObject * obj0 = 0 ; | |
6167 | char *kwnames[] = { | |
6168 | (char *) "self", NULL | |
6169 | }; | |
6170 | ||
6171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail; | |
6172 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6173 | result = (int) ((arg1)->encoding); | |
6174 | ||
6175 | resultobj = PyInt_FromLong((long)result); | |
6176 | return resultobj; | |
6177 | fail: | |
6178 | return NULL; | |
6179 | } | |
6180 | ||
6181 | ||
6182 | static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6183 | PyObject *resultobj; | |
6184 | wxNativeEncodingInfo *result; | |
6185 | char *kwnames[] = { | |
6186 | NULL | |
6187 | }; | |
6188 | ||
6189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail; | |
6190 | { | |
6191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6192 | result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo(); | |
6193 | ||
6194 | wxPyEndAllowThreads(__tstate); | |
6195 | if (PyErr_Occurred()) SWIG_fail; | |
6196 | } | |
6197 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 1); | |
6198 | return resultobj; | |
6199 | fail: | |
6200 | return NULL; | |
6201 | } | |
6202 | ||
6203 | ||
6204 | static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6205 | PyObject *resultobj; | |
6206 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6207 | PyObject * obj0 = 0 ; | |
6208 | char *kwnames[] = { | |
6209 | (char *) "self", NULL | |
6210 | }; | |
6211 | ||
6212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail; | |
6213 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6214 | { | |
6215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6216 | delete arg1; | |
6217 | ||
6218 | wxPyEndAllowThreads(__tstate); | |
6219 | if (PyErr_Occurred()) SWIG_fail; | |
6220 | } | |
6221 | Py_INCREF(Py_None); resultobj = Py_None; | |
6222 | return resultobj; | |
6223 | fail: | |
6224 | return NULL; | |
6225 | } | |
6226 | ||
6227 | ||
6228 | static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6229 | PyObject *resultobj; | |
6230 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6231 | wxString *arg2 = 0 ; | |
6232 | bool result; | |
6233 | bool temp2 = False ; | |
6234 | PyObject * obj0 = 0 ; | |
6235 | PyObject * obj1 = 0 ; | |
6236 | char *kwnames[] = { | |
6237 | (char *) "self",(char *) "s", NULL | |
6238 | }; | |
6239 | ||
6240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail; | |
6241 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6242 | { | |
6243 | arg2 = wxString_in_helper(obj1); | |
6244 | if (arg2 == NULL) SWIG_fail; | |
6245 | temp2 = True; | |
6246 | } | |
6247 | { | |
6248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6249 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
6250 | ||
6251 | wxPyEndAllowThreads(__tstate); | |
6252 | if (PyErr_Occurred()) SWIG_fail; | |
6253 | } | |
6254 | resultobj = PyInt_FromLong((long)result); | |
6255 | { | |
6256 | if (temp2) | |
6257 | delete arg2; | |
6258 | } | |
6259 | return resultobj; | |
6260 | fail: | |
6261 | { | |
6262 | if (temp2) | |
6263 | delete arg2; | |
6264 | } | |
6265 | return NULL; | |
6266 | } | |
6267 | ||
6268 | ||
6269 | static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6270 | PyObject *resultobj; | |
6271 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6272 | wxString result; | |
6273 | PyObject * obj0 = 0 ; | |
6274 | char *kwnames[] = { | |
6275 | (char *) "self", NULL | |
6276 | }; | |
6277 | ||
6278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail; | |
6279 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6280 | { | |
6281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6282 | result = ((wxNativeEncodingInfo const *)arg1)->ToString(); | |
6283 | ||
6284 | wxPyEndAllowThreads(__tstate); | |
6285 | if (PyErr_Occurred()) SWIG_fail; | |
6286 | } | |
6287 | { | |
6288 | #if wxUSE_UNICODE | |
6289 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6290 | #else | |
6291 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6292 | #endif | |
6293 | } | |
6294 | return resultobj; | |
6295 | fail: | |
6296 | return NULL; | |
6297 | } | |
6298 | ||
6299 | ||
6300 | static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) { | |
6301 | PyObject *obj; | |
6302 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6303 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj); | |
6304 | Py_INCREF(obj); | |
6305 | return Py_BuildValue((char *)""); | |
6306 | } | |
6307 | static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6308 | PyObject *resultobj; | |
6309 | int arg1 ; | |
6310 | wxNativeEncodingInfo *result; | |
6311 | char *kwnames[] = { | |
6312 | (char *) "encoding", NULL | |
6313 | }; | |
6314 | ||
6315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:GetNativeFontEncoding",kwnames,&arg1)) goto fail; | |
6316 | { | |
6317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6318 | result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1); | |
6319 | ||
6320 | wxPyEndAllowThreads(__tstate); | |
6321 | if (PyErr_Occurred()) SWIG_fail; | |
6322 | } | |
6323 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 0); | |
6324 | return resultobj; | |
6325 | fail: | |
6326 | return NULL; | |
6327 | } | |
6328 | ||
6329 | ||
6330 | static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6331 | PyObject *resultobj; | |
6332 | wxNativeEncodingInfo *arg1 = 0 ; | |
6333 | bool result; | |
6334 | PyObject * obj0 = 0 ; | |
6335 | char *kwnames[] = { | |
6336 | (char *) "info", NULL | |
6337 | }; | |
6338 | ||
6339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail; | |
6340 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6341 | if (arg1 == NULL) { | |
6342 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6343 | } | |
6344 | { | |
6345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6346 | result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1); | |
6347 | ||
6348 | wxPyEndAllowThreads(__tstate); | |
6349 | if (PyErr_Occurred()) SWIG_fail; | |
6350 | } | |
6351 | resultobj = PyInt_FromLong((long)result); | |
6352 | return resultobj; | |
6353 | fail: | |
6354 | return NULL; | |
6355 | } | |
6356 | ||
6357 | ||
6358 | static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6359 | PyObject *resultobj; | |
6360 | wxFontMapper *result; | |
6361 | char *kwnames[] = { | |
6362 | NULL | |
6363 | }; | |
6364 | ||
6365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail; | |
6366 | { | |
6367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6368 | result = (wxFontMapper *)new wxFontMapper(); | |
6369 | ||
6370 | wxPyEndAllowThreads(__tstate); | |
6371 | if (PyErr_Occurred()) SWIG_fail; | |
6372 | } | |
6373 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 1); | |
6374 | return resultobj; | |
6375 | fail: | |
6376 | return NULL; | |
6377 | } | |
6378 | ||
6379 | ||
6380 | static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6381 | PyObject *resultobj; | |
6382 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6383 | PyObject * obj0 = 0 ; | |
6384 | char *kwnames[] = { | |
6385 | (char *) "self", NULL | |
6386 | }; | |
6387 | ||
6388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail; | |
6389 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6390 | { | |
6391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6392 | delete arg1; | |
6393 | ||
6394 | wxPyEndAllowThreads(__tstate); | |
6395 | if (PyErr_Occurred()) SWIG_fail; | |
6396 | } | |
6397 | Py_INCREF(Py_None); resultobj = Py_None; | |
6398 | return resultobj; | |
6399 | fail: | |
6400 | return NULL; | |
6401 | } | |
6402 | ||
6403 | ||
6404 | static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6405 | PyObject *resultobj; | |
6406 | wxFontMapper *result; | |
6407 | char *kwnames[] = { | |
6408 | NULL | |
6409 | }; | |
6410 | ||
6411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail; | |
6412 | { | |
6413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6414 | result = (wxFontMapper *)wxFontMapper::Get(); | |
6415 | ||
6416 | wxPyEndAllowThreads(__tstate); | |
6417 | if (PyErr_Occurred()) SWIG_fail; | |
6418 | } | |
6419 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0); | |
6420 | return resultobj; | |
6421 | fail: | |
6422 | return NULL; | |
6423 | } | |
6424 | ||
6425 | ||
6426 | static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6427 | PyObject *resultobj; | |
6428 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6429 | wxFontMapper *result; | |
6430 | PyObject * obj0 = 0 ; | |
6431 | char *kwnames[] = { | |
6432 | (char *) "mapper", NULL | |
6433 | }; | |
6434 | ||
6435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail; | |
6436 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6437 | { | |
6438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6439 | result = (wxFontMapper *)wxFontMapper::Set(arg1); | |
6440 | ||
6441 | wxPyEndAllowThreads(__tstate); | |
6442 | if (PyErr_Occurred()) SWIG_fail; | |
6443 | } | |
6444 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0); | |
6445 | return resultobj; | |
6446 | fail: | |
6447 | return NULL; | |
6448 | } | |
6449 | ||
6450 | ||
6451 | static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6452 | PyObject *resultobj; | |
6453 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6454 | wxString *arg2 = 0 ; | |
6455 | bool arg3 = (bool) True ; | |
6456 | int result; | |
6457 | bool temp2 = False ; | |
6458 | PyObject * obj0 = 0 ; | |
6459 | PyObject * obj1 = 0 ; | |
6460 | PyObject * obj2 = 0 ; | |
6461 | char *kwnames[] = { | |
6462 | (char *) "self",(char *) "charset",(char *) "interactive", NULL | |
6463 | }; | |
6464 | ||
6465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6466 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6467 | { | |
6468 | arg2 = wxString_in_helper(obj1); | |
6469 | if (arg2 == NULL) SWIG_fail; | |
6470 | temp2 = True; | |
6471 | } | |
6472 | if (obj2) { | |
6473 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
6474 | if (PyErr_Occurred()) SWIG_fail; | |
6475 | } | |
6476 | { | |
6477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6478 | result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3); | |
6479 | ||
6480 | wxPyEndAllowThreads(__tstate); | |
6481 | if (PyErr_Occurred()) SWIG_fail; | |
6482 | } | |
6483 | resultobj = PyInt_FromLong((long)result); | |
6484 | { | |
6485 | if (temp2) | |
6486 | delete arg2; | |
6487 | } | |
6488 | return resultobj; | |
6489 | fail: | |
6490 | { | |
6491 | if (temp2) | |
6492 | delete arg2; | |
6493 | } | |
6494 | return NULL; | |
6495 | } | |
6496 | ||
6497 | ||
6498 | static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6499 | PyObject *resultobj; | |
6500 | size_t result; | |
6501 | char *kwnames[] = { | |
6502 | NULL | |
6503 | }; | |
6504 | ||
6505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail; | |
6506 | { | |
6507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6508 | result = (size_t)wxFontMapper::GetSupportedEncodingsCount(); | |
6509 | ||
6510 | wxPyEndAllowThreads(__tstate); | |
6511 | if (PyErr_Occurred()) SWIG_fail; | |
6512 | } | |
6513 | resultobj = PyInt_FromLong((long)result); | |
6514 | return resultobj; | |
6515 | fail: | |
6516 | return NULL; | |
6517 | } | |
6518 | ||
6519 | ||
6520 | static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6521 | PyObject *resultobj; | |
6522 | size_t arg1 ; | |
6523 | int result; | |
6524 | PyObject * obj0 = 0 ; | |
6525 | char *kwnames[] = { | |
6526 | (char *) "n", NULL | |
6527 | }; | |
6528 | ||
6529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail; | |
6530 | arg1 = (size_t) PyInt_AsLong(obj0); | |
6531 | if (PyErr_Occurred()) SWIG_fail; | |
6532 | { | |
6533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6534 | result = (int)wxFontMapper::GetEncoding(arg1); | |
6535 | ||
6536 | wxPyEndAllowThreads(__tstate); | |
6537 | if (PyErr_Occurred()) SWIG_fail; | |
6538 | } | |
6539 | resultobj = PyInt_FromLong((long)result); | |
6540 | return resultobj; | |
6541 | fail: | |
6542 | return NULL; | |
6543 | } | |
6544 | ||
6545 | ||
6546 | static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6547 | PyObject *resultobj; | |
6548 | int arg1 ; | |
6549 | wxString result; | |
6550 | char *kwnames[] = { | |
6551 | (char *) "encoding", NULL | |
6552 | }; | |
6553 | ||
6554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:FontMapper_GetEncodingName",kwnames,&arg1)) goto fail; | |
6555 | { | |
6556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6557 | result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1); | |
6558 | ||
6559 | wxPyEndAllowThreads(__tstate); | |
6560 | if (PyErr_Occurred()) SWIG_fail; | |
6561 | } | |
6562 | { | |
6563 | #if wxUSE_UNICODE | |
6564 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6565 | #else | |
6566 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6567 | #endif | |
6568 | } | |
6569 | return resultobj; | |
6570 | fail: | |
6571 | return NULL; | |
6572 | } | |
6573 | ||
6574 | ||
6575 | static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6576 | PyObject *resultobj; | |
6577 | int arg1 ; | |
6578 | wxString result; | |
6579 | char *kwnames[] = { | |
6580 | (char *) "encoding", NULL | |
6581 | }; | |
6582 | ||
6583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:FontMapper_GetEncodingDescription",kwnames,&arg1)) goto fail; | |
6584 | { | |
6585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6586 | result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1); | |
6587 | ||
6588 | wxPyEndAllowThreads(__tstate); | |
6589 | if (PyErr_Occurred()) SWIG_fail; | |
6590 | } | |
6591 | { | |
6592 | #if wxUSE_UNICODE | |
6593 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6594 | #else | |
6595 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6596 | #endif | |
6597 | } | |
6598 | return resultobj; | |
6599 | fail: | |
6600 | return NULL; | |
6601 | } | |
6602 | ||
6603 | ||
6604 | static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6605 | PyObject *resultobj; | |
6606 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6607 | wxConfigBase *arg2 = (wxConfigBase *) 0 ; | |
6608 | PyObject * obj0 = 0 ; | |
6609 | PyObject * obj1 = 0 ; | |
6610 | char *kwnames[] = { | |
6611 | (char *) "self",(char *) "config", NULL | |
6612 | }; | |
6613 | ||
6614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail; | |
6615 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6616 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6617 | { | |
6618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6619 | (arg1)->SetConfig(arg2); | |
6620 | ||
6621 | wxPyEndAllowThreads(__tstate); | |
6622 | if (PyErr_Occurred()) SWIG_fail; | |
6623 | } | |
6624 | Py_INCREF(Py_None); resultobj = Py_None; | |
6625 | return resultobj; | |
6626 | fail: | |
6627 | return NULL; | |
6628 | } | |
6629 | ||
6630 | ||
6631 | static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6632 | PyObject *resultobj; | |
6633 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6634 | wxString *arg2 = 0 ; | |
6635 | bool temp2 = False ; | |
6636 | PyObject * obj0 = 0 ; | |
6637 | PyObject * obj1 = 0 ; | |
6638 | char *kwnames[] = { | |
6639 | (char *) "self",(char *) "prefix", NULL | |
6640 | }; | |
6641 | ||
6642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail; | |
6643 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6644 | { | |
6645 | arg2 = wxString_in_helper(obj1); | |
6646 | if (arg2 == NULL) SWIG_fail; | |
6647 | temp2 = True; | |
6648 | } | |
6649 | { | |
6650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6651 | (arg1)->SetConfigPath((wxString const &)*arg2); | |
6652 | ||
6653 | wxPyEndAllowThreads(__tstate); | |
6654 | if (PyErr_Occurred()) SWIG_fail; | |
6655 | } | |
6656 | Py_INCREF(Py_None); resultobj = Py_None; | |
6657 | { | |
6658 | if (temp2) | |
6659 | delete arg2; | |
6660 | } | |
6661 | return resultobj; | |
6662 | fail: | |
6663 | { | |
6664 | if (temp2) | |
6665 | delete arg2; | |
6666 | } | |
6667 | return NULL; | |
6668 | } | |
6669 | ||
6670 | ||
6671 | static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6672 | PyObject *resultobj; | |
6673 | wxString result; | |
6674 | char *kwnames[] = { | |
6675 | NULL | |
6676 | }; | |
6677 | ||
6678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail; | |
6679 | { | |
6680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6681 | result = wxFontMapper::GetDefaultConfigPath(); | |
6682 | ||
6683 | wxPyEndAllowThreads(__tstate); | |
6684 | if (PyErr_Occurred()) SWIG_fail; | |
6685 | } | |
6686 | { | |
6687 | #if wxUSE_UNICODE | |
6688 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6689 | #else | |
6690 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6691 | #endif | |
6692 | } | |
6693 | return resultobj; | |
6694 | fail: | |
6695 | return NULL; | |
6696 | } | |
6697 | ||
6698 | ||
6699 | static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6700 | PyObject *resultobj; | |
6701 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6702 | int arg2 ; | |
6703 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
6704 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
6705 | bool arg4 = (bool) True ; | |
6706 | PyObject *result; | |
6707 | bool temp3 = False ; | |
6708 | PyObject * obj0 = 0 ; | |
6709 | PyObject * obj2 = 0 ; | |
6710 | PyObject * obj3 = 0 ; | |
6711 | char *kwnames[] = { | |
6712 | (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL | |
6713 | }; | |
6714 | ||
6715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&arg2,&obj2,&obj3)) goto fail; | |
6716 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6717 | if (obj2) { | |
6718 | { | |
6719 | arg3 = wxString_in_helper(obj2); | |
6720 | if (arg3 == NULL) SWIG_fail; | |
6721 | temp3 = True; | |
6722 | } | |
6723 | } | |
6724 | if (obj3) { | |
6725 | arg4 = PyInt_AsLong(obj3) ? true : false; | |
6726 | if (PyErr_Occurred()) SWIG_fail; | |
6727 | } | |
6728 | { | |
6729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6730 | result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4); | |
6731 | ||
6732 | wxPyEndAllowThreads(__tstate); | |
6733 | if (PyErr_Occurred()) SWIG_fail; | |
6734 | } | |
6735 | resultobj = result; | |
6736 | { | |
6737 | if (temp3) | |
6738 | delete arg3; | |
6739 | } | |
6740 | return resultobj; | |
6741 | fail: | |
6742 | { | |
6743 | if (temp3) | |
6744 | delete arg3; | |
6745 | } | |
6746 | return NULL; | |
6747 | } | |
6748 | ||
6749 | ||
6750 | static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6751 | PyObject *resultobj; | |
6752 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6753 | int arg2 ; | |
6754 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
6755 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
6756 | bool result; | |
6757 | bool temp3 = False ; | |
6758 | PyObject * obj0 = 0 ; | |
6759 | PyObject * obj2 = 0 ; | |
6760 | char *kwnames[] = { | |
6761 | (char *) "self",(char *) "encoding",(char *) "facename", NULL | |
6762 | }; | |
6763 | ||
6764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
6765 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6766 | if (obj2) { | |
6767 | { | |
6768 | arg3 = wxString_in_helper(obj2); | |
6769 | if (arg3 == NULL) SWIG_fail; | |
6770 | temp3 = True; | |
6771 | } | |
6772 | } | |
6773 | { | |
6774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6775 | result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3); | |
6776 | ||
6777 | wxPyEndAllowThreads(__tstate); | |
6778 | if (PyErr_Occurred()) SWIG_fail; | |
6779 | } | |
6780 | resultobj = PyInt_FromLong((long)result); | |
6781 | { | |
6782 | if (temp3) | |
6783 | delete arg3; | |
6784 | } | |
6785 | return resultobj; | |
6786 | fail: | |
6787 | { | |
6788 | if (temp3) | |
6789 | delete arg3; | |
6790 | } | |
6791 | return NULL; | |
6792 | } | |
6793 | ||
6794 | ||
6795 | static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6796 | PyObject *resultobj; | |
6797 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6798 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6799 | PyObject * obj0 = 0 ; | |
6800 | PyObject * obj1 = 0 ; | |
6801 | char *kwnames[] = { | |
6802 | (char *) "self",(char *) "parent", NULL | |
6803 | }; | |
6804 | ||
6805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail; | |
6806 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6807 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6808 | { | |
6809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6810 | (arg1)->SetDialogParent(arg2); | |
6811 | ||
6812 | wxPyEndAllowThreads(__tstate); | |
6813 | if (PyErr_Occurred()) SWIG_fail; | |
6814 | } | |
6815 | Py_INCREF(Py_None); resultobj = Py_None; | |
6816 | return resultobj; | |
6817 | fail: | |
6818 | return NULL; | |
6819 | } | |
6820 | ||
6821 | ||
6822 | static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6823 | PyObject *resultobj; | |
6824 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6825 | wxString *arg2 = 0 ; | |
6826 | bool temp2 = False ; | |
6827 | PyObject * obj0 = 0 ; | |
6828 | PyObject * obj1 = 0 ; | |
6829 | char *kwnames[] = { | |
6830 | (char *) "self",(char *) "title", NULL | |
6831 | }; | |
6832 | ||
6833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail; | |
6834 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6835 | { | |
6836 | arg2 = wxString_in_helper(obj1); | |
6837 | if (arg2 == NULL) SWIG_fail; | |
6838 | temp2 = True; | |
6839 | } | |
6840 | { | |
6841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6842 | (arg1)->SetDialogTitle((wxString const &)*arg2); | |
6843 | ||
6844 | wxPyEndAllowThreads(__tstate); | |
6845 | if (PyErr_Occurred()) SWIG_fail; | |
6846 | } | |
6847 | Py_INCREF(Py_None); resultobj = Py_None; | |
6848 | { | |
6849 | if (temp2) | |
6850 | delete arg2; | |
6851 | } | |
6852 | return resultobj; | |
6853 | fail: | |
6854 | { | |
6855 | if (temp2) | |
6856 | delete arg2; | |
6857 | } | |
6858 | return NULL; | |
6859 | } | |
6860 | ||
6861 | ||
6862 | static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) { | |
6863 | PyObject *obj; | |
6864 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6865 | SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj); | |
6866 | Py_INCREF(obj); | |
6867 | return Py_BuildValue((char *)""); | |
6868 | } | |
6869 | static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6870 | PyObject *resultobj; | |
6871 | int arg1 ; | |
6872 | int arg2 ; | |
6873 | int arg3 ; | |
6874 | int arg4 ; | |
6875 | bool arg5 = (bool) False ; | |
6876 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
6877 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
6878 | int arg7 = (int) wxFONTENCODING_DEFAULT ; | |
6879 | wxFont *result; | |
6880 | bool temp6 = False ; | |
6881 | PyObject * obj4 = 0 ; | |
6882 | PyObject * obj5 = 0 ; | |
6883 | char *kwnames[] = { | |
6884 | (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL | |
6885 | }; | |
6886 | ||
6887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iiii|OOi:new_Font",kwnames,&arg1,&arg2,&arg3,&arg4,&obj4,&obj5,&arg7)) goto fail; | |
6888 | if (obj4) { | |
6889 | arg5 = PyInt_AsLong(obj4) ? true : false; | |
6890 | if (PyErr_Occurred()) SWIG_fail; | |
6891 | } | |
6892 | if (obj5) { | |
6893 | { | |
6894 | arg6 = wxString_in_helper(obj5); | |
6895 | if (arg6 == NULL) SWIG_fail; | |
6896 | temp6 = True; | |
6897 | } | |
6898 | } | |
6899 | { | |
6900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6901 | result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7); | |
6902 | ||
6903 | wxPyEndAllowThreads(__tstate); | |
6904 | if (PyErr_Occurred()) SWIG_fail; | |
6905 | } | |
6906 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1); | |
6907 | { | |
6908 | if (temp6) | |
6909 | delete arg6; | |
6910 | } | |
6911 | return resultobj; | |
6912 | fail: | |
6913 | { | |
6914 | if (temp6) | |
6915 | delete arg6; | |
6916 | } | |
6917 | return NULL; | |
6918 | } | |
6919 | ||
6920 | ||
6921 | static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6922 | PyObject *resultobj; | |
6923 | wxFont *arg1 = (wxFont *) 0 ; | |
6924 | PyObject * obj0 = 0 ; | |
6925 | char *kwnames[] = { | |
6926 | (char *) "self", NULL | |
6927 | }; | |
6928 | ||
6929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail; | |
6930 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6931 | { | |
6932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6933 | delete arg1; | |
6934 | ||
6935 | wxPyEndAllowThreads(__tstate); | |
6936 | if (PyErr_Occurred()) SWIG_fail; | |
6937 | } | |
6938 | Py_INCREF(Py_None); resultobj = Py_None; | |
6939 | return resultobj; | |
6940 | fail: | |
6941 | return NULL; | |
6942 | } | |
6943 | ||
6944 | ||
6945 | static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6946 | PyObject *resultobj; | |
6947 | wxNativeFontInfo *arg1 = 0 ; | |
6948 | wxFont *result; | |
6949 | PyObject * obj0 = 0 ; | |
6950 | char *kwnames[] = { | |
6951 | (char *) "info", NULL | |
6952 | }; | |
6953 | ||
6954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail; | |
6955 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6956 | if (arg1 == NULL) { | |
6957 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6958 | } | |
6959 | { | |
6960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6961 | result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1); | |
6962 | ||
6963 | wxPyEndAllowThreads(__tstate); | |
6964 | if (PyErr_Occurred()) SWIG_fail; | |
6965 | } | |
6966 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1); | |
6967 | return resultobj; | |
6968 | fail: | |
6969 | return NULL; | |
6970 | } | |
6971 | ||
6972 | ||
6973 | static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6974 | PyObject *resultobj; | |
6975 | wxString *arg1 = 0 ; | |
6976 | wxFont *result; | |
6977 | bool temp1 = False ; | |
6978 | PyObject * obj0 = 0 ; | |
6979 | char *kwnames[] = { | |
6980 | (char *) "info", NULL | |
6981 | }; | |
6982 | ||
6983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail; | |
6984 | { | |
6985 | arg1 = wxString_in_helper(obj0); | |
6986 | if (arg1 == NULL) SWIG_fail; | |
6987 | temp1 = True; | |
6988 | } | |
6989 | { | |
6990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6991 | result = (wxFont *)new_wxFont((wxString const &)*arg1); | |
6992 | ||
6993 | wxPyEndAllowThreads(__tstate); | |
6994 | if (PyErr_Occurred()) SWIG_fail; | |
6995 | } | |
6996 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1); | |
6997 | { | |
6998 | if (temp1) | |
6999 | delete arg1; | |
7000 | } | |
7001 | return resultobj; | |
7002 | fail: | |
7003 | { | |
7004 | if (temp1) | |
7005 | delete arg1; | |
7006 | } | |
7007 | return NULL; | |
7008 | } | |
7009 | ||
7010 | ||
7011 | static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7012 | PyObject *resultobj; | |
7013 | int arg1 ; | |
7014 | int arg2 ; | |
7015 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
7016 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
7017 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
7018 | int arg5 = (int) wxFONTENCODING_DEFAULT ; | |
7019 | wxFont *result; | |
7020 | bool temp4 = False ; | |
7021 | PyObject * obj3 = 0 ; | |
7022 | char *kwnames[] = { | |
7023 | (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
7024 | }; | |
7025 | ||
7026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii|iOi:new_Font2",kwnames,&arg1,&arg2,&arg3,&obj3,&arg5)) goto fail; | |
7027 | if (obj3) { | |
7028 | { | |
7029 | arg4 = wxString_in_helper(obj3); | |
7030 | if (arg4 == NULL) SWIG_fail; | |
7031 | temp4 = True; | |
7032 | } | |
7033 | } | |
7034 | { | |
7035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7036 | result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5); | |
7037 | ||
7038 | wxPyEndAllowThreads(__tstate); | |
7039 | if (PyErr_Occurred()) SWIG_fail; | |
7040 | } | |
7041 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1); | |
7042 | { | |
7043 | if (temp4) | |
7044 | delete arg4; | |
7045 | } | |
7046 | return resultobj; | |
7047 | fail: | |
7048 | { | |
7049 | if (temp4) | |
7050 | delete arg4; | |
7051 | } | |
7052 | return NULL; | |
7053 | } | |
7054 | ||
7055 | ||
7056 | static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7057 | PyObject *resultobj; | |
7058 | wxFont *arg1 = (wxFont *) 0 ; | |
7059 | bool result; | |
7060 | PyObject * obj0 = 0 ; | |
7061 | char *kwnames[] = { | |
7062 | (char *) "self", NULL | |
7063 | }; | |
7064 | ||
7065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail; | |
7066 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7067 | { | |
7068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7069 | result = (bool)((wxFont const *)arg1)->Ok(); | |
7070 | ||
7071 | wxPyEndAllowThreads(__tstate); | |
7072 | if (PyErr_Occurred()) SWIG_fail; | |
7073 | } | |
7074 | resultobj = PyInt_FromLong((long)result); | |
7075 | return resultobj; | |
7076 | fail: | |
7077 | return NULL; | |
7078 | } | |
7079 | ||
7080 | ||
7081 | static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7082 | PyObject *resultobj; | |
7083 | wxFont *arg1 = (wxFont *) 0 ; | |
7084 | wxFont *arg2 = 0 ; | |
7085 | bool result; | |
7086 | PyObject * obj0 = 0 ; | |
7087 | PyObject * obj1 = 0 ; | |
7088 | char *kwnames[] = { | |
7089 | (char *) "self",(char *) "font", NULL | |
7090 | }; | |
7091 | ||
7092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail; | |
7093 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7094 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7095 | if (arg2 == NULL) { | |
7096 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7097 | } | |
7098 | { | |
7099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7100 | result = (bool)((wxFont const *)arg1)->operator ==((wxFont const &)*arg2); | |
7101 | ||
7102 | wxPyEndAllowThreads(__tstate); | |
7103 | if (PyErr_Occurred()) SWIG_fail; | |
7104 | } | |
7105 | resultobj = PyInt_FromLong((long)result); | |
7106 | return resultobj; | |
7107 | fail: | |
7108 | return NULL; | |
7109 | } | |
7110 | ||
7111 | ||
7112 | static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7113 | PyObject *resultobj; | |
7114 | wxFont *arg1 = (wxFont *) 0 ; | |
7115 | wxFont *arg2 = 0 ; | |
7116 | bool result; | |
7117 | PyObject * obj0 = 0 ; | |
7118 | PyObject * obj1 = 0 ; | |
7119 | char *kwnames[] = { | |
7120 | (char *) "self",(char *) "font", NULL | |
7121 | }; | |
7122 | ||
7123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail; | |
7124 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7125 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7126 | if (arg2 == NULL) { | |
7127 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7128 | } | |
7129 | { | |
7130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7131 | result = (bool)((wxFont const *)arg1)->operator !=((wxFont const &)*arg2); | |
7132 | ||
7133 | wxPyEndAllowThreads(__tstate); | |
7134 | if (PyErr_Occurred()) SWIG_fail; | |
7135 | } | |
7136 | resultobj = PyInt_FromLong((long)result); | |
7137 | return resultobj; | |
7138 | fail: | |
7139 | return NULL; | |
7140 | } | |
7141 | ||
7142 | ||
7143 | static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7144 | PyObject *resultobj; | |
7145 | wxFont *arg1 = (wxFont *) 0 ; | |
7146 | int result; | |
7147 | PyObject * obj0 = 0 ; | |
7148 | char *kwnames[] = { | |
7149 | (char *) "self", NULL | |
7150 | }; | |
7151 | ||
7152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail; | |
7153 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7154 | { | |
7155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7156 | result = (int)((wxFont const *)arg1)->GetPointSize(); | |
7157 | ||
7158 | wxPyEndAllowThreads(__tstate); | |
7159 | if (PyErr_Occurred()) SWIG_fail; | |
7160 | } | |
7161 | resultobj = PyInt_FromLong((long)result); | |
7162 | return resultobj; | |
7163 | fail: | |
7164 | return NULL; | |
7165 | } | |
7166 | ||
7167 | ||
7168 | static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7169 | PyObject *resultobj; | |
7170 | wxFont *arg1 = (wxFont *) 0 ; | |
7171 | int result; | |
7172 | PyObject * obj0 = 0 ; | |
7173 | char *kwnames[] = { | |
7174 | (char *) "self", NULL | |
7175 | }; | |
7176 | ||
7177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail; | |
7178 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7179 | { | |
7180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7181 | result = (int)((wxFont const *)arg1)->GetFamily(); | |
7182 | ||
7183 | wxPyEndAllowThreads(__tstate); | |
7184 | if (PyErr_Occurred()) SWIG_fail; | |
7185 | } | |
7186 | resultobj = PyInt_FromLong((long)result); | |
7187 | return resultobj; | |
7188 | fail: | |
7189 | return NULL; | |
7190 | } | |
7191 | ||
7192 | ||
7193 | static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7194 | PyObject *resultobj; | |
7195 | wxFont *arg1 = (wxFont *) 0 ; | |
7196 | int result; | |
7197 | PyObject * obj0 = 0 ; | |
7198 | char *kwnames[] = { | |
7199 | (char *) "self", NULL | |
7200 | }; | |
7201 | ||
7202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail; | |
7203 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7204 | { | |
7205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7206 | result = (int)((wxFont const *)arg1)->GetStyle(); | |
7207 | ||
7208 | wxPyEndAllowThreads(__tstate); | |
7209 | if (PyErr_Occurred()) SWIG_fail; | |
7210 | } | |
7211 | resultobj = PyInt_FromLong((long)result); | |
7212 | return resultobj; | |
7213 | fail: | |
7214 | return NULL; | |
7215 | } | |
7216 | ||
7217 | ||
7218 | static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7219 | PyObject *resultobj; | |
7220 | wxFont *arg1 = (wxFont *) 0 ; | |
7221 | int result; | |
7222 | PyObject * obj0 = 0 ; | |
7223 | char *kwnames[] = { | |
7224 | (char *) "self", NULL | |
7225 | }; | |
7226 | ||
7227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail; | |
7228 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7229 | { | |
7230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7231 | result = (int)((wxFont const *)arg1)->GetWeight(); | |
7232 | ||
7233 | wxPyEndAllowThreads(__tstate); | |
7234 | if (PyErr_Occurred()) SWIG_fail; | |
7235 | } | |
7236 | resultobj = PyInt_FromLong((long)result); | |
7237 | return resultobj; | |
7238 | fail: | |
7239 | return NULL; | |
7240 | } | |
7241 | ||
7242 | ||
7243 | static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7244 | PyObject *resultobj; | |
7245 | wxFont *arg1 = (wxFont *) 0 ; | |
7246 | bool result; | |
7247 | PyObject * obj0 = 0 ; | |
7248 | char *kwnames[] = { | |
7249 | (char *) "self", NULL | |
7250 | }; | |
7251 | ||
7252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail; | |
7253 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7254 | { | |
7255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7256 | result = (bool)((wxFont const *)arg1)->GetUnderlined(); | |
7257 | ||
7258 | wxPyEndAllowThreads(__tstate); | |
7259 | if (PyErr_Occurred()) SWIG_fail; | |
7260 | } | |
7261 | resultobj = PyInt_FromLong((long)result); | |
7262 | return resultobj; | |
7263 | fail: | |
7264 | return NULL; | |
7265 | } | |
7266 | ||
7267 | ||
7268 | static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7269 | PyObject *resultobj; | |
7270 | wxFont *arg1 = (wxFont *) 0 ; | |
7271 | wxString result; | |
7272 | PyObject * obj0 = 0 ; | |
7273 | char *kwnames[] = { | |
7274 | (char *) "self", NULL | |
7275 | }; | |
7276 | ||
7277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail; | |
7278 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7279 | { | |
7280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7281 | result = ((wxFont const *)arg1)->GetFaceName(); | |
7282 | ||
7283 | wxPyEndAllowThreads(__tstate); | |
7284 | if (PyErr_Occurred()) SWIG_fail; | |
7285 | } | |
7286 | { | |
7287 | #if wxUSE_UNICODE | |
7288 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7289 | #else | |
7290 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7291 | #endif | |
7292 | } | |
7293 | return resultobj; | |
7294 | fail: | |
7295 | return NULL; | |
7296 | } | |
7297 | ||
7298 | ||
7299 | static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7300 | PyObject *resultobj; | |
7301 | wxFont *arg1 = (wxFont *) 0 ; | |
7302 | int result; | |
7303 | PyObject * obj0 = 0 ; | |
7304 | char *kwnames[] = { | |
7305 | (char *) "self", NULL | |
7306 | }; | |
7307 | ||
7308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail; | |
7309 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7310 | { | |
7311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7312 | result = (int)((wxFont const *)arg1)->GetEncoding(); | |
7313 | ||
7314 | wxPyEndAllowThreads(__tstate); | |
7315 | if (PyErr_Occurred()) SWIG_fail; | |
7316 | } | |
7317 | resultobj = PyInt_FromLong((long)result); | |
7318 | return resultobj; | |
7319 | fail: | |
7320 | return NULL; | |
7321 | } | |
7322 | ||
7323 | ||
7324 | static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7325 | PyObject *resultobj; | |
7326 | wxFont *arg1 = (wxFont *) 0 ; | |
7327 | wxNativeFontInfo *result; | |
7328 | PyObject * obj0 = 0 ; | |
7329 | char *kwnames[] = { | |
7330 | (char *) "self", NULL | |
7331 | }; | |
7332 | ||
7333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail; | |
7334 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7335 | { | |
7336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7337 | result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo(); | |
7338 | ||
7339 | wxPyEndAllowThreads(__tstate); | |
7340 | if (PyErr_Occurred()) SWIG_fail; | |
7341 | } | |
7342 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 0); | |
7343 | return resultobj; | |
7344 | fail: | |
7345 | return NULL; | |
7346 | } | |
7347 | ||
7348 | ||
7349 | static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7350 | PyObject *resultobj; | |
7351 | wxFont *arg1 = (wxFont *) 0 ; | |
7352 | bool result; | |
7353 | PyObject * obj0 = 0 ; | |
7354 | char *kwnames[] = { | |
7355 | (char *) "self", NULL | |
7356 | }; | |
7357 | ||
7358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail; | |
7359 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7360 | { | |
7361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7362 | result = (bool)((wxFont const *)arg1)->IsFixedWidth(); | |
7363 | ||
7364 | wxPyEndAllowThreads(__tstate); | |
7365 | if (PyErr_Occurred()) SWIG_fail; | |
7366 | } | |
7367 | resultobj = PyInt_FromLong((long)result); | |
7368 | return resultobj; | |
7369 | fail: | |
7370 | return NULL; | |
7371 | } | |
7372 | ||
7373 | ||
7374 | static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7375 | PyObject *resultobj; | |
7376 | wxFont *arg1 = (wxFont *) 0 ; | |
7377 | wxString result; | |
7378 | PyObject * obj0 = 0 ; | |
7379 | char *kwnames[] = { | |
7380 | (char *) "self", NULL | |
7381 | }; | |
7382 | ||
7383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail; | |
7384 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7385 | { | |
7386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7387 | result = ((wxFont const *)arg1)->GetNativeFontInfoDesc(); | |
7388 | ||
7389 | wxPyEndAllowThreads(__tstate); | |
7390 | if (PyErr_Occurred()) SWIG_fail; | |
7391 | } | |
7392 | { | |
7393 | #if wxUSE_UNICODE | |
7394 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7395 | #else | |
7396 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7397 | #endif | |
7398 | } | |
7399 | return resultobj; | |
7400 | fail: | |
7401 | return NULL; | |
7402 | } | |
7403 | ||
7404 | ||
7405 | static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7406 | PyObject *resultobj; | |
7407 | wxFont *arg1 = (wxFont *) 0 ; | |
7408 | wxString result; | |
7409 | PyObject * obj0 = 0 ; | |
7410 | char *kwnames[] = { | |
7411 | (char *) "self", NULL | |
7412 | }; | |
7413 | ||
7414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail; | |
7415 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7416 | { | |
7417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7418 | result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc(); | |
7419 | ||
7420 | wxPyEndAllowThreads(__tstate); | |
7421 | if (PyErr_Occurred()) SWIG_fail; | |
7422 | } | |
7423 | { | |
7424 | #if wxUSE_UNICODE | |
7425 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7426 | #else | |
7427 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7428 | #endif | |
7429 | } | |
7430 | return resultobj; | |
7431 | fail: | |
7432 | return NULL; | |
7433 | } | |
7434 | ||
7435 | ||
7436 | static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7437 | PyObject *resultobj; | |
7438 | wxFont *arg1 = (wxFont *) 0 ; | |
7439 | int arg2 ; | |
7440 | PyObject * obj0 = 0 ; | |
7441 | char *kwnames[] = { | |
7442 | (char *) "self",(char *) "pointSize", NULL | |
7443 | }; | |
7444 | ||
7445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetPointSize",kwnames,&obj0,&arg2)) goto fail; | |
7446 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7447 | { | |
7448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449 | (arg1)->SetPointSize(arg2); | |
7450 | ||
7451 | wxPyEndAllowThreads(__tstate); | |
7452 | if (PyErr_Occurred()) SWIG_fail; | |
7453 | } | |
7454 | Py_INCREF(Py_None); resultobj = Py_None; | |
7455 | return resultobj; | |
7456 | fail: | |
7457 | return NULL; | |
7458 | } | |
7459 | ||
7460 | ||
7461 | static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7462 | PyObject *resultobj; | |
7463 | wxFont *arg1 = (wxFont *) 0 ; | |
7464 | int arg2 ; | |
7465 | PyObject * obj0 = 0 ; | |
7466 | char *kwnames[] = { | |
7467 | (char *) "self",(char *) "family", NULL | |
7468 | }; | |
7469 | ||
7470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetFamily",kwnames,&obj0,&arg2)) goto fail; | |
7471 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7472 | { | |
7473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7474 | (arg1)->SetFamily(arg2); | |
7475 | ||
7476 | wxPyEndAllowThreads(__tstate); | |
7477 | if (PyErr_Occurred()) SWIG_fail; | |
7478 | } | |
7479 | Py_INCREF(Py_None); resultobj = Py_None; | |
7480 | return resultobj; | |
7481 | fail: | |
7482 | return NULL; | |
7483 | } | |
7484 | ||
7485 | ||
7486 | static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7487 | PyObject *resultobj; | |
7488 | wxFont *arg1 = (wxFont *) 0 ; | |
7489 | int arg2 ; | |
7490 | PyObject * obj0 = 0 ; | |
7491 | char *kwnames[] = { | |
7492 | (char *) "self",(char *) "style", NULL | |
7493 | }; | |
7494 | ||
7495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetStyle",kwnames,&obj0,&arg2)) goto fail; | |
7496 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7497 | { | |
7498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7499 | (arg1)->SetStyle(arg2); | |
7500 | ||
7501 | wxPyEndAllowThreads(__tstate); | |
7502 | if (PyErr_Occurred()) SWIG_fail; | |
7503 | } | |
7504 | Py_INCREF(Py_None); resultobj = Py_None; | |
7505 | return resultobj; | |
7506 | fail: | |
7507 | return NULL; | |
7508 | } | |
7509 | ||
7510 | ||
7511 | static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7512 | PyObject *resultobj; | |
7513 | wxFont *arg1 = (wxFont *) 0 ; | |
7514 | int arg2 ; | |
7515 | PyObject * obj0 = 0 ; | |
7516 | char *kwnames[] = { | |
7517 | (char *) "self",(char *) "weight", NULL | |
7518 | }; | |
7519 | ||
7520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetWeight",kwnames,&obj0,&arg2)) goto fail; | |
7521 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7522 | { | |
7523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7524 | (arg1)->SetWeight(arg2); | |
7525 | ||
7526 | wxPyEndAllowThreads(__tstate); | |
7527 | if (PyErr_Occurred()) SWIG_fail; | |
7528 | } | |
7529 | Py_INCREF(Py_None); resultobj = Py_None; | |
7530 | return resultobj; | |
7531 | fail: | |
7532 | return NULL; | |
7533 | } | |
7534 | ||
7535 | ||
7536 | static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7537 | PyObject *resultobj; | |
7538 | wxFont *arg1 = (wxFont *) 0 ; | |
7539 | wxString *arg2 = 0 ; | |
7540 | bool temp2 = False ; | |
7541 | PyObject * obj0 = 0 ; | |
7542 | PyObject * obj1 = 0 ; | |
7543 | char *kwnames[] = { | |
7544 | (char *) "self",(char *) "faceName", NULL | |
7545 | }; | |
7546 | ||
7547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail; | |
7548 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7549 | { | |
7550 | arg2 = wxString_in_helper(obj1); | |
7551 | if (arg2 == NULL) SWIG_fail; | |
7552 | temp2 = True; | |
7553 | } | |
7554 | { | |
7555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7556 | (arg1)->SetFaceName((wxString const &)*arg2); | |
7557 | ||
7558 | wxPyEndAllowThreads(__tstate); | |
7559 | if (PyErr_Occurred()) SWIG_fail; | |
7560 | } | |
7561 | Py_INCREF(Py_None); resultobj = Py_None; | |
7562 | { | |
7563 | if (temp2) | |
7564 | delete arg2; | |
7565 | } | |
7566 | return resultobj; | |
7567 | fail: | |
7568 | { | |
7569 | if (temp2) | |
7570 | delete arg2; | |
7571 | } | |
7572 | return NULL; | |
7573 | } | |
7574 | ||
7575 | ||
7576 | static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7577 | PyObject *resultobj; | |
7578 | wxFont *arg1 = (wxFont *) 0 ; | |
7579 | bool arg2 ; | |
7580 | PyObject * obj0 = 0 ; | |
7581 | PyObject * obj1 = 0 ; | |
7582 | char *kwnames[] = { | |
7583 | (char *) "self",(char *) "underlined", NULL | |
7584 | }; | |
7585 | ||
7586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; | |
7587 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7588 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
7589 | if (PyErr_Occurred()) SWIG_fail; | |
7590 | { | |
7591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7592 | (arg1)->SetUnderlined(arg2); | |
7593 | ||
7594 | wxPyEndAllowThreads(__tstate); | |
7595 | if (PyErr_Occurred()) SWIG_fail; | |
7596 | } | |
7597 | Py_INCREF(Py_None); resultobj = Py_None; | |
7598 | return resultobj; | |
7599 | fail: | |
7600 | return NULL; | |
7601 | } | |
7602 | ||
7603 | ||
7604 | static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7605 | PyObject *resultobj; | |
7606 | wxFont *arg1 = (wxFont *) 0 ; | |
7607 | int arg2 ; | |
7608 | PyObject * obj0 = 0 ; | |
7609 | char *kwnames[] = { | |
7610 | (char *) "self",(char *) "encoding", NULL | |
7611 | }; | |
7612 | ||
7613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetEncoding",kwnames,&obj0,&arg2)) goto fail; | |
7614 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7615 | { | |
7616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7617 | (arg1)->SetEncoding((wxFontEncoding )arg2); | |
7618 | ||
7619 | wxPyEndAllowThreads(__tstate); | |
7620 | if (PyErr_Occurred()) SWIG_fail; | |
7621 | } | |
7622 | Py_INCREF(Py_None); resultobj = Py_None; | |
7623 | return resultobj; | |
7624 | fail: | |
7625 | return NULL; | |
7626 | } | |
7627 | ||
7628 | ||
7629 | static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7630 | PyObject *resultobj; | |
7631 | wxFont *arg1 = (wxFont *) 0 ; | |
7632 | wxNativeFontInfo *arg2 = 0 ; | |
7633 | PyObject * obj0 = 0 ; | |
7634 | PyObject * obj1 = 0 ; | |
7635 | char *kwnames[] = { | |
7636 | (char *) "self",(char *) "info", NULL | |
7637 | }; | |
7638 | ||
7639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail; | |
7640 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7641 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7642 | if (arg2 == NULL) { | |
7643 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7644 | } | |
7645 | { | |
7646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7647 | (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2); | |
7648 | ||
7649 | wxPyEndAllowThreads(__tstate); | |
7650 | if (PyErr_Occurred()) SWIG_fail; | |
7651 | } | |
7652 | Py_INCREF(Py_None); resultobj = Py_None; | |
7653 | return resultobj; | |
7654 | fail: | |
7655 | return NULL; | |
7656 | } | |
7657 | ||
7658 | ||
7659 | static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7660 | PyObject *resultobj; | |
7661 | wxFont *arg1 = (wxFont *) 0 ; | |
7662 | wxString *arg2 = 0 ; | |
7663 | bool temp2 = False ; | |
7664 | PyObject * obj0 = 0 ; | |
7665 | PyObject * obj1 = 0 ; | |
7666 | char *kwnames[] = { | |
7667 | (char *) "self",(char *) "info", NULL | |
7668 | }; | |
7669 | ||
7670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail; | |
7671 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7672 | { | |
7673 | arg2 = wxString_in_helper(obj1); | |
7674 | if (arg2 == NULL) SWIG_fail; | |
7675 | temp2 = True; | |
7676 | } | |
7677 | { | |
7678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7679 | (arg1)->SetNativeFontInfo((wxString const &)*arg2); | |
7680 | ||
7681 | wxPyEndAllowThreads(__tstate); | |
7682 | if (PyErr_Occurred()) SWIG_fail; | |
7683 | } | |
7684 | Py_INCREF(Py_None); resultobj = Py_None; | |
7685 | { | |
7686 | if (temp2) | |
7687 | delete arg2; | |
7688 | } | |
7689 | return resultobj; | |
7690 | fail: | |
7691 | { | |
7692 | if (temp2) | |
7693 | delete arg2; | |
7694 | } | |
7695 | return NULL; | |
7696 | } | |
7697 | ||
7698 | ||
7699 | static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7700 | PyObject *resultobj; | |
7701 | wxFont *arg1 = (wxFont *) 0 ; | |
7702 | wxString *arg2 = 0 ; | |
7703 | bool temp2 = False ; | |
7704 | PyObject * obj0 = 0 ; | |
7705 | PyObject * obj1 = 0 ; | |
7706 | char *kwnames[] = { | |
7707 | (char *) "self",(char *) "info", NULL | |
7708 | }; | |
7709 | ||
7710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail; | |
7711 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7712 | { | |
7713 | arg2 = wxString_in_helper(obj1); | |
7714 | if (arg2 == NULL) SWIG_fail; | |
7715 | temp2 = True; | |
7716 | } | |
7717 | { | |
7718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7719 | (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2); | |
7720 | ||
7721 | wxPyEndAllowThreads(__tstate); | |
7722 | if (PyErr_Occurred()) SWIG_fail; | |
7723 | } | |
7724 | Py_INCREF(Py_None); resultobj = Py_None; | |
7725 | { | |
7726 | if (temp2) | |
7727 | delete arg2; | |
7728 | } | |
7729 | return resultobj; | |
7730 | fail: | |
7731 | { | |
7732 | if (temp2) | |
7733 | delete arg2; | |
7734 | } | |
7735 | return NULL; | |
7736 | } | |
7737 | ||
7738 | ||
7739 | static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7740 | PyObject *resultobj; | |
7741 | wxFont *arg1 = (wxFont *) 0 ; | |
7742 | wxString result; | |
7743 | PyObject * obj0 = 0 ; | |
7744 | char *kwnames[] = { | |
7745 | (char *) "self", NULL | |
7746 | }; | |
7747 | ||
7748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail; | |
7749 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7750 | { | |
7751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7752 | result = ((wxFont const *)arg1)->GetFamilyString(); | |
7753 | ||
7754 | wxPyEndAllowThreads(__tstate); | |
7755 | if (PyErr_Occurred()) SWIG_fail; | |
7756 | } | |
7757 | { | |
7758 | #if wxUSE_UNICODE | |
7759 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7760 | #else | |
7761 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7762 | #endif | |
7763 | } | |
7764 | return resultobj; | |
7765 | fail: | |
7766 | return NULL; | |
7767 | } | |
7768 | ||
7769 | ||
7770 | static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7771 | PyObject *resultobj; | |
7772 | wxFont *arg1 = (wxFont *) 0 ; | |
7773 | wxString result; | |
7774 | PyObject * obj0 = 0 ; | |
7775 | char *kwnames[] = { | |
7776 | (char *) "self", NULL | |
7777 | }; | |
7778 | ||
7779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail; | |
7780 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7781 | { | |
7782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7783 | result = ((wxFont const *)arg1)->GetStyleString(); | |
7784 | ||
7785 | wxPyEndAllowThreads(__tstate); | |
7786 | if (PyErr_Occurred()) SWIG_fail; | |
7787 | } | |
7788 | { | |
7789 | #if wxUSE_UNICODE | |
7790 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7791 | #else | |
7792 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7793 | #endif | |
7794 | } | |
7795 | return resultobj; | |
7796 | fail: | |
7797 | return NULL; | |
7798 | } | |
7799 | ||
7800 | ||
7801 | static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7802 | PyObject *resultobj; | |
7803 | wxFont *arg1 = (wxFont *) 0 ; | |
7804 | wxString result; | |
7805 | PyObject * obj0 = 0 ; | |
7806 | char *kwnames[] = { | |
7807 | (char *) "self", NULL | |
7808 | }; | |
7809 | ||
7810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail; | |
7811 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7812 | { | |
7813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7814 | result = ((wxFont const *)arg1)->GetWeightString(); | |
7815 | ||
7816 | wxPyEndAllowThreads(__tstate); | |
7817 | if (PyErr_Occurred()) SWIG_fail; | |
7818 | } | |
7819 | { | |
7820 | #if wxUSE_UNICODE | |
7821 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7822 | #else | |
7823 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7824 | #endif | |
7825 | } | |
7826 | return resultobj; | |
7827 | fail: | |
7828 | return NULL; | |
7829 | } | |
7830 | ||
7831 | ||
7832 | static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7833 | PyObject *resultobj; | |
7834 | wxFont *arg1 = (wxFont *) 0 ; | |
7835 | bool arg2 = (bool) True ; | |
7836 | PyObject * obj0 = 0 ; | |
7837 | PyObject * obj1 = 0 ; | |
7838 | char *kwnames[] = { | |
7839 | (char *) "self",(char *) "no", NULL | |
7840 | }; | |
7841 | ||
7842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail; | |
7843 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7844 | if (obj1) { | |
7845 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
7846 | if (PyErr_Occurred()) SWIG_fail; | |
7847 | } | |
7848 | { | |
7849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7850 | (arg1)->SetNoAntiAliasing(arg2); | |
7851 | ||
7852 | wxPyEndAllowThreads(__tstate); | |
7853 | if (PyErr_Occurred()) SWIG_fail; | |
7854 | } | |
7855 | Py_INCREF(Py_None); resultobj = Py_None; | |
7856 | return resultobj; | |
7857 | fail: | |
7858 | return NULL; | |
7859 | } | |
7860 | ||
7861 | ||
7862 | static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7863 | PyObject *resultobj; | |
7864 | wxFont *arg1 = (wxFont *) 0 ; | |
7865 | bool result; | |
7866 | PyObject * obj0 = 0 ; | |
7867 | char *kwnames[] = { | |
7868 | (char *) "self", NULL | |
7869 | }; | |
7870 | ||
7871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail; | |
7872 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7873 | { | |
7874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7875 | result = (bool)(arg1)->GetNoAntiAliasing(); | |
7876 | ||
7877 | wxPyEndAllowThreads(__tstate); | |
7878 | if (PyErr_Occurred()) SWIG_fail; | |
7879 | } | |
7880 | resultobj = PyInt_FromLong((long)result); | |
7881 | return resultobj; | |
7882 | fail: | |
7883 | return NULL; | |
7884 | } | |
7885 | ||
7886 | ||
7887 | static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7888 | PyObject *resultobj; | |
7889 | int result; | |
7890 | char *kwnames[] = { | |
7891 | NULL | |
7892 | }; | |
7893 | ||
7894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail; | |
7895 | { | |
7896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7897 | result = (int)wxFont::GetDefaultEncoding(); | |
7898 | ||
7899 | wxPyEndAllowThreads(__tstate); | |
7900 | if (PyErr_Occurred()) SWIG_fail; | |
7901 | } | |
7902 | resultobj = PyInt_FromLong((long)result); | |
7903 | return resultobj; | |
7904 | fail: | |
7905 | return NULL; | |
7906 | } | |
7907 | ||
7908 | ||
7909 | static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7910 | PyObject *resultobj; | |
7911 | int arg1 ; | |
7912 | char *kwnames[] = { | |
7913 | (char *) "encoding", NULL | |
7914 | }; | |
7915 | ||
7916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Font_SetDefaultEncoding",kwnames,&arg1)) goto fail; | |
7917 | { | |
7918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7919 | wxFont::SetDefaultEncoding((wxFontEncoding )arg1); | |
7920 | ||
7921 | wxPyEndAllowThreads(__tstate); | |
7922 | if (PyErr_Occurred()) SWIG_fail; | |
7923 | } | |
7924 | Py_INCREF(Py_None); resultobj = Py_None; | |
7925 | return resultobj; | |
7926 | fail: | |
7927 | return NULL; | |
7928 | } | |
7929 | ||
7930 | ||
7931 | static PyObject * Font_swigregister(PyObject *self, PyObject *args) { | |
7932 | PyObject *obj; | |
7933 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7934 | SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj); | |
7935 | Py_INCREF(obj); | |
7936 | return Py_BuildValue((char *)""); | |
7937 | } | |
7938 | static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7939 | PyObject *resultobj; | |
7940 | wxPyFontEnumerator *result; | |
7941 | char *kwnames[] = { | |
7942 | NULL | |
7943 | }; | |
7944 | ||
7945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail; | |
7946 | { | |
7947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7948 | result = (wxPyFontEnumerator *)new wxPyFontEnumerator(); | |
7949 | ||
7950 | wxPyEndAllowThreads(__tstate); | |
7951 | if (PyErr_Occurred()) SWIG_fail; | |
7952 | } | |
7953 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFontEnumerator, 1); | |
7954 | return resultobj; | |
7955 | fail: | |
7956 | return NULL; | |
7957 | } | |
7958 | ||
7959 | ||
7960 | static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7961 | PyObject *resultobj; | |
7962 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
7963 | PyObject * obj0 = 0 ; | |
7964 | char *kwnames[] = { | |
7965 | (char *) "self", NULL | |
7966 | }; | |
7967 | ||
7968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail; | |
7969 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7970 | { | |
7971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7972 | delete arg1; | |
7973 | ||
7974 | wxPyEndAllowThreads(__tstate); | |
7975 | if (PyErr_Occurred()) SWIG_fail; | |
7976 | } | |
7977 | Py_INCREF(Py_None); resultobj = Py_None; | |
7978 | return resultobj; | |
7979 | fail: | |
7980 | return NULL; | |
7981 | } | |
7982 | ||
7983 | ||
7984 | static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7985 | PyObject *resultobj; | |
7986 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
7987 | PyObject *arg2 = (PyObject *) 0 ; | |
7988 | PyObject *arg3 = (PyObject *) 0 ; | |
7989 | bool arg4 ; | |
7990 | PyObject * obj0 = 0 ; | |
7991 | PyObject * obj1 = 0 ; | |
7992 | PyObject * obj2 = 0 ; | |
7993 | PyObject * obj3 = 0 ; | |
7994 | char *kwnames[] = { | |
7995 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
7996 | }; | |
7997 | ||
7998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
7999 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8000 | arg2 = obj1; | |
8001 | arg3 = obj2; | |
8002 | arg4 = PyInt_AsLong(obj3) ? true : false; | |
8003 | if (PyErr_Occurred()) SWIG_fail; | |
8004 | { | |
8005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8006 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
8007 | ||
8008 | wxPyEndAllowThreads(__tstate); | |
8009 | if (PyErr_Occurred()) SWIG_fail; | |
8010 | } | |
8011 | Py_INCREF(Py_None); resultobj = Py_None; | |
8012 | return resultobj; | |
8013 | fail: | |
8014 | return NULL; | |
8015 | } | |
8016 | ||
8017 | ||
8018 | static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8019 | PyObject *resultobj; | |
8020 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8021 | int arg2 = (int) wxFONTENCODING_SYSTEM ; | |
8022 | bool arg3 = (bool) False ; | |
8023 | bool result; | |
8024 | PyObject * obj0 = 0 ; | |
8025 | PyObject * obj2 = 0 ; | |
8026 | char *kwnames[] = { | |
8027 | (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL | |
8028 | }; | |
8029 | ||
8030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
8031 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8032 | if (obj2) { | |
8033 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
8034 | if (PyErr_Occurred()) SWIG_fail; | |
8035 | } | |
8036 | { | |
8037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8038 | result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3); | |
8039 | ||
8040 | wxPyEndAllowThreads(__tstate); | |
8041 | if (PyErr_Occurred()) SWIG_fail; | |
8042 | } | |
8043 | resultobj = PyInt_FromLong((long)result); | |
8044 | return resultobj; | |
8045 | fail: | |
8046 | return NULL; | |
8047 | } | |
8048 | ||
8049 | ||
8050 | static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8051 | PyObject *resultobj; | |
8052 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8053 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
8054 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
8055 | bool result; | |
8056 | bool temp2 = False ; | |
8057 | PyObject * obj0 = 0 ; | |
8058 | PyObject * obj1 = 0 ; | |
8059 | char *kwnames[] = { | |
8060 | (char *) "self",(char *) "facename", NULL | |
8061 | }; | |
8062 | ||
8063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail; | |
8064 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8065 | if (obj1) { | |
8066 | { | |
8067 | arg2 = wxString_in_helper(obj1); | |
8068 | if (arg2 == NULL) SWIG_fail; | |
8069 | temp2 = True; | |
8070 | } | |
8071 | } | |
8072 | { | |
8073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8074 | result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2); | |
8075 | ||
8076 | wxPyEndAllowThreads(__tstate); | |
8077 | if (PyErr_Occurred()) SWIG_fail; | |
8078 | } | |
8079 | resultobj = PyInt_FromLong((long)result); | |
8080 | { | |
8081 | if (temp2) | |
8082 | delete arg2; | |
8083 | } | |
8084 | return resultobj; | |
8085 | fail: | |
8086 | { | |
8087 | if (temp2) | |
8088 | delete arg2; | |
8089 | } | |
8090 | return NULL; | |
8091 | } | |
8092 | ||
8093 | ||
8094 | static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8095 | PyObject *resultobj; | |
8096 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8097 | PyObject *result; | |
8098 | PyObject * obj0 = 0 ; | |
8099 | char *kwnames[] = { | |
8100 | (char *) "self", NULL | |
8101 | }; | |
8102 | ||
8103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail; | |
8104 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8105 | { | |
8106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8107 | result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1); | |
8108 | ||
8109 | wxPyEndAllowThreads(__tstate); | |
8110 | if (PyErr_Occurred()) SWIG_fail; | |
8111 | } | |
8112 | resultobj = result; | |
8113 | return resultobj; | |
8114 | fail: | |
8115 | return NULL; | |
8116 | } | |
8117 | ||
8118 | ||
8119 | static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8120 | PyObject *resultobj; | |
8121 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8122 | PyObject *result; | |
8123 | PyObject * obj0 = 0 ; | |
8124 | char *kwnames[] = { | |
8125 | (char *) "self", NULL | |
8126 | }; | |
8127 | ||
8128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail; | |
8129 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8130 | { | |
8131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8132 | result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1); | |
8133 | ||
8134 | wxPyEndAllowThreads(__tstate); | |
8135 | if (PyErr_Occurred()) SWIG_fail; | |
8136 | } | |
8137 | resultobj = result; | |
8138 | return resultobj; | |
8139 | fail: | |
8140 | return NULL; | |
8141 | } | |
8142 | ||
8143 | ||
8144 | static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) { | |
8145 | PyObject *obj; | |
8146 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8147 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj); | |
8148 | Py_INCREF(obj); | |
8149 | return Py_BuildValue((char *)""); | |
8150 | } | |
8151 | static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8152 | PyObject *resultobj; | |
8153 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
8154 | int arg2 ; | |
8155 | PyObject * obj0 = 0 ; | |
8156 | char *kwnames[] = { | |
8157 | (char *) "self",(char *) "Language", NULL | |
8158 | }; | |
8159 | ||
8160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:LanguageInfo_Language_set",kwnames,&obj0,&arg2)) goto fail; | |
8161 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8162 | if (arg1) (arg1)->Language = arg2; | |
8163 | ||
8164 | Py_INCREF(Py_None); resultobj = Py_None; | |
8165 | return resultobj; | |
8166 | fail: | |
8167 | return NULL; | |
8168 | } | |
8169 | ||
8170 | ||
8171 | static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8172 | PyObject *resultobj; | |
8173 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
8174 | int result; | |
8175 | PyObject * obj0 = 0 ; | |
8176 | char *kwnames[] = { | |
8177 | (char *) "self", NULL | |
8178 | }; | |
8179 | ||
8180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail; | |
8181 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8182 | result = (int) ((arg1)->Language); | |
8183 | ||
8184 | resultobj = PyInt_FromLong((long)result); | |
8185 | return resultobj; | |
8186 | fail: | |
8187 | return NULL; | |
8188 | } | |
8189 | ||
8190 | ||
8191 | static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8192 | PyObject *resultobj; | |
8193 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
8194 | wxString arg2 ; | |
8195 | PyObject * obj0 = 0 ; | |
8196 | PyObject * obj1 = 0 ; | |
8197 | char *kwnames[] = { | |
8198 | (char *) "self",(char *) "CanonicalName", NULL | |
8199 | }; | |
8200 | ||
8201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail; | |
8202 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8203 | { | |
8204 | wxString* sptr = wxString_in_helper(obj1); | |
8205 | if (sptr == NULL) SWIG_fail; | |
8206 | arg2 = *sptr; | |
8207 | delete sptr; | |
8208 | } | |
8209 | if (arg1) (arg1)->CanonicalName = arg2; | |
8210 | ||
8211 | Py_INCREF(Py_None); resultobj = Py_None; | |
8212 | return resultobj; | |
8213 | fail: | |
8214 | return NULL; | |
8215 | } | |
8216 | ||
8217 | ||
8218 | static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8219 | PyObject *resultobj; | |
8220 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
8221 | wxString result; | |
8222 | PyObject * obj0 = 0 ; | |
8223 | char *kwnames[] = { | |
8224 | (char *) "self", NULL | |
8225 | }; | |
8226 | ||
8227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail; | |
8228 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8229 | result = ((arg1)->CanonicalName); | |
8230 | ||
8231 | { | |
8232 | #if wxUSE_UNICODE | |
8233 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8234 | #else | |
8235 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8236 | #endif | |
8237 | } | |
8238 | return resultobj; | |
8239 | fail: | |
8240 | return NULL; | |
8241 | } | |
8242 | ||
8243 | ||
8244 | static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8245 | PyObject *resultobj; | |
8246 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
8247 | wxString arg2 ; | |
8248 | PyObject * obj0 = 0 ; | |
8249 | PyObject * obj1 = 0 ; | |
8250 | char *kwnames[] = { | |
8251 | (char *) "self",(char *) "Description", NULL | |
8252 | }; | |
8253 | ||
8254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail; | |
8255 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8256 | { | |
8257 | wxString* sptr = wxString_in_helper(obj1); | |
8258 | if (sptr == NULL) SWIG_fail; | |
8259 | arg2 = *sptr; | |
8260 | delete sptr; | |
8261 | } | |
8262 | if (arg1) (arg1)->Description = arg2; | |
8263 | ||
8264 | Py_INCREF(Py_None); resultobj = Py_None; | |
8265 | return resultobj; | |
8266 | fail: | |
8267 | return NULL; | |
8268 | } | |
8269 | ||
8270 | ||
8271 | static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8272 | PyObject *resultobj; | |
8273 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
8274 | wxString result; | |
8275 | PyObject * obj0 = 0 ; | |
8276 | char *kwnames[] = { | |
8277 | (char *) "self", NULL | |
8278 | }; | |
8279 | ||
8280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail; | |
8281 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8282 | result = ((arg1)->Description); | |
8283 | ||
8284 | { | |
8285 | #if wxUSE_UNICODE | |
8286 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8287 | #else | |
8288 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8289 | #endif | |
8290 | } | |
8291 | return resultobj; | |
8292 | fail: | |
8293 | return NULL; | |
8294 | } | |
8295 | ||
8296 | ||
8297 | static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) { | |
8298 | PyObject *obj; | |
8299 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8300 | SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj); | |
8301 | Py_INCREF(obj); | |
8302 | return Py_BuildValue((char *)""); | |
8303 | } | |
8304 | static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8305 | PyObject *resultobj; | |
8306 | int arg1 = (int) wxLANGUAGE_DEFAULT ; | |
8307 | int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
8308 | wxLocale *result; | |
8309 | char *kwnames[] = { | |
8310 | (char *) "language",(char *) "flags", NULL | |
8311 | }; | |
8312 | ||
8313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_Locale",kwnames,&arg1,&arg2)) goto fail; | |
8314 | { | |
8315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8316 | result = (wxLocale *)new wxLocale(arg1,arg2); | |
8317 | ||
8318 | wxPyEndAllowThreads(__tstate); | |
8319 | if (PyErr_Occurred()) SWIG_fail; | |
8320 | } | |
8321 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 1); | |
8322 | return resultobj; | |
8323 | fail: | |
8324 | return NULL; | |
8325 | } | |
8326 | ||
8327 | ||
8328 | static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8329 | PyObject *resultobj; | |
8330 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8331 | PyObject * obj0 = 0 ; | |
8332 | char *kwnames[] = { | |
8333 | (char *) "self", NULL | |
8334 | }; | |
8335 | ||
8336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail; | |
8337 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8338 | { | |
8339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8340 | delete arg1; | |
8341 | ||
8342 | wxPyEndAllowThreads(__tstate); | |
8343 | if (PyErr_Occurred()) SWIG_fail; | |
8344 | } | |
8345 | Py_INCREF(Py_None); resultobj = Py_None; | |
8346 | return resultobj; | |
8347 | fail: | |
8348 | return NULL; | |
8349 | } | |
8350 | ||
8351 | ||
8352 | static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8353 | PyObject *resultobj; | |
8354 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8355 | wxString *arg2 = 0 ; | |
8356 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
8357 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
8358 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
8359 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
8360 | bool arg5 = (bool) True ; | |
8361 | bool arg6 = (bool) False ; | |
8362 | bool result; | |
8363 | bool temp2 = False ; | |
8364 | bool temp3 = False ; | |
8365 | bool temp4 = False ; | |
8366 | PyObject * obj0 = 0 ; | |
8367 | PyObject * obj1 = 0 ; | |
8368 | PyObject * obj2 = 0 ; | |
8369 | PyObject * obj3 = 0 ; | |
8370 | PyObject * obj4 = 0 ; | |
8371 | PyObject * obj5 = 0 ; | |
8372 | char *kwnames[] = { | |
8373 | (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL | |
8374 | }; | |
8375 | ||
8376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
8377 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8378 | { | |
8379 | arg2 = wxString_in_helper(obj1); | |
8380 | if (arg2 == NULL) SWIG_fail; | |
8381 | temp2 = True; | |
8382 | } | |
8383 | if (obj2) { | |
8384 | { | |
8385 | arg3 = wxString_in_helper(obj2); | |
8386 | if (arg3 == NULL) SWIG_fail; | |
8387 | temp3 = True; | |
8388 | } | |
8389 | } | |
8390 | if (obj3) { | |
8391 | { | |
8392 | arg4 = wxString_in_helper(obj3); | |
8393 | if (arg4 == NULL) SWIG_fail; | |
8394 | temp4 = True; | |
8395 | } | |
8396 | } | |
8397 | if (obj4) { | |
8398 | arg5 = PyInt_AsLong(obj4) ? true : false; | |
8399 | if (PyErr_Occurred()) SWIG_fail; | |
8400 | } | |
8401 | if (obj5) { | |
8402 | arg6 = PyInt_AsLong(obj5) ? true : false; | |
8403 | if (PyErr_Occurred()) SWIG_fail; | |
8404 | } | |
8405 | { | |
8406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8407 | result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6); | |
8408 | ||
8409 | wxPyEndAllowThreads(__tstate); | |
8410 | if (PyErr_Occurred()) SWIG_fail; | |
8411 | } | |
8412 | resultobj = PyInt_FromLong((long)result); | |
8413 | { | |
8414 | if (temp2) | |
8415 | delete arg2; | |
8416 | } | |
8417 | { | |
8418 | if (temp3) | |
8419 | delete arg3; | |
8420 | } | |
8421 | { | |
8422 | if (temp4) | |
8423 | delete arg4; | |
8424 | } | |
8425 | return resultobj; | |
8426 | fail: | |
8427 | { | |
8428 | if (temp2) | |
8429 | delete arg2; | |
8430 | } | |
8431 | { | |
8432 | if (temp3) | |
8433 | delete arg3; | |
8434 | } | |
8435 | { | |
8436 | if (temp4) | |
8437 | delete arg4; | |
8438 | } | |
8439 | return NULL; | |
8440 | } | |
8441 | ||
8442 | ||
8443 | static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8444 | PyObject *resultobj; | |
8445 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8446 | int arg2 = (int) wxLANGUAGE_DEFAULT ; | |
8447 | int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
8448 | bool result; | |
8449 | PyObject * obj0 = 0 ; | |
8450 | char *kwnames[] = { | |
8451 | (char *) "self",(char *) "language",(char *) "flags", NULL | |
8452 | }; | |
8453 | ||
8454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:Locale_Init2",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
8455 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8456 | { | |
8457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8458 | result = (bool)(arg1)->Init(arg2,arg3); | |
8459 | ||
8460 | wxPyEndAllowThreads(__tstate); | |
8461 | if (PyErr_Occurred()) SWIG_fail; | |
8462 | } | |
8463 | resultobj = PyInt_FromLong((long)result); | |
8464 | return resultobj; | |
8465 | fail: | |
8466 | return NULL; | |
8467 | } | |
8468 | ||
8469 | ||
8470 | static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8471 | PyObject *resultobj; | |
8472 | int result; | |
8473 | char *kwnames[] = { | |
8474 | NULL | |
8475 | }; | |
8476 | ||
8477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail; | |
8478 | { | |
8479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8480 | result = (int)wxLocale::GetSystemLanguage(); | |
8481 | ||
8482 | wxPyEndAllowThreads(__tstate); | |
8483 | if (PyErr_Occurred()) SWIG_fail; | |
8484 | } | |
8485 | resultobj = PyInt_FromLong((long)result); | |
8486 | return resultobj; | |
8487 | fail: | |
8488 | return NULL; | |
8489 | } | |
8490 | ||
8491 | ||
8492 | static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8493 | PyObject *resultobj; | |
8494 | int result; | |
8495 | char *kwnames[] = { | |
8496 | NULL | |
8497 | }; | |
8498 | ||
8499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail; | |
8500 | { | |
8501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8502 | result = (int)wxLocale::GetSystemEncoding(); | |
8503 | ||
8504 | wxPyEndAllowThreads(__tstate); | |
8505 | if (PyErr_Occurred()) SWIG_fail; | |
8506 | } | |
8507 | resultobj = PyInt_FromLong((long)result); | |
8508 | return resultobj; | |
8509 | fail: | |
8510 | return NULL; | |
8511 | } | |
8512 | ||
8513 | ||
8514 | static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8515 | PyObject *resultobj; | |
8516 | wxString result; | |
8517 | char *kwnames[] = { | |
8518 | NULL | |
8519 | }; | |
8520 | ||
8521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail; | |
8522 | { | |
8523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8524 | result = wxLocale::GetSystemEncodingName(); | |
8525 | ||
8526 | wxPyEndAllowThreads(__tstate); | |
8527 | if (PyErr_Occurred()) SWIG_fail; | |
8528 | } | |
8529 | { | |
8530 | #if wxUSE_UNICODE | |
8531 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8532 | #else | |
8533 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8534 | #endif | |
8535 | } | |
8536 | return resultobj; | |
8537 | fail: | |
8538 | return NULL; | |
8539 | } | |
8540 | ||
8541 | ||
8542 | static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8543 | PyObject *resultobj; | |
8544 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8545 | bool result; | |
8546 | PyObject * obj0 = 0 ; | |
8547 | char *kwnames[] = { | |
8548 | (char *) "self", NULL | |
8549 | }; | |
8550 | ||
8551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail; | |
8552 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8553 | { | |
8554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8555 | result = (bool)((wxLocale const *)arg1)->IsOk(); | |
8556 | ||
8557 | wxPyEndAllowThreads(__tstate); | |
8558 | if (PyErr_Occurred()) SWIG_fail; | |
8559 | } | |
8560 | resultobj = PyInt_FromLong((long)result); | |
8561 | return resultobj; | |
8562 | fail: | |
8563 | return NULL; | |
8564 | } | |
8565 | ||
8566 | ||
8567 | static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8568 | PyObject *resultobj; | |
8569 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8570 | wxString result; | |
8571 | PyObject * obj0 = 0 ; | |
8572 | char *kwnames[] = { | |
8573 | (char *) "self", NULL | |
8574 | }; | |
8575 | ||
8576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail; | |
8577 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8578 | { | |
8579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8580 | result = ((wxLocale const *)arg1)->GetLocale(); | |
8581 | ||
8582 | wxPyEndAllowThreads(__tstate); | |
8583 | if (PyErr_Occurred()) SWIG_fail; | |
8584 | } | |
8585 | { | |
8586 | #if wxUSE_UNICODE | |
8587 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8588 | #else | |
8589 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8590 | #endif | |
8591 | } | |
8592 | return resultobj; | |
8593 | fail: | |
8594 | return NULL; | |
8595 | } | |
8596 | ||
8597 | ||
8598 | static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8599 | PyObject *resultobj; | |
8600 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8601 | int result; | |
8602 | PyObject * obj0 = 0 ; | |
8603 | char *kwnames[] = { | |
8604 | (char *) "self", NULL | |
8605 | }; | |
8606 | ||
8607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail; | |
8608 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8609 | { | |
8610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8611 | result = (int)((wxLocale const *)arg1)->GetLanguage(); | |
8612 | ||
8613 | wxPyEndAllowThreads(__tstate); | |
8614 | if (PyErr_Occurred()) SWIG_fail; | |
8615 | } | |
8616 | resultobj = PyInt_FromLong((long)result); | |
8617 | return resultobj; | |
8618 | fail: | |
8619 | return NULL; | |
8620 | } | |
8621 | ||
8622 | ||
8623 | static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8624 | PyObject *resultobj; | |
8625 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8626 | wxString result; | |
8627 | PyObject * obj0 = 0 ; | |
8628 | char *kwnames[] = { | |
8629 | (char *) "self", NULL | |
8630 | }; | |
8631 | ||
8632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail; | |
8633 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8634 | { | |
8635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8636 | result = ((wxLocale const *)arg1)->GetSysName(); | |
8637 | ||
8638 | wxPyEndAllowThreads(__tstate); | |
8639 | if (PyErr_Occurred()) SWIG_fail; | |
8640 | } | |
8641 | { | |
8642 | #if wxUSE_UNICODE | |
8643 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8644 | #else | |
8645 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8646 | #endif | |
8647 | } | |
8648 | return resultobj; | |
8649 | fail: | |
8650 | return NULL; | |
8651 | } | |
8652 | ||
8653 | ||
8654 | static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8655 | PyObject *resultobj; | |
8656 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8657 | wxString result; | |
8658 | PyObject * obj0 = 0 ; | |
8659 | char *kwnames[] = { | |
8660 | (char *) "self", NULL | |
8661 | }; | |
8662 | ||
8663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail; | |
8664 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8665 | { | |
8666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8667 | result = ((wxLocale const *)arg1)->GetCanonicalName(); | |
8668 | ||
8669 | wxPyEndAllowThreads(__tstate); | |
8670 | if (PyErr_Occurred()) SWIG_fail; | |
8671 | } | |
8672 | { | |
8673 | #if wxUSE_UNICODE | |
8674 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8675 | #else | |
8676 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8677 | #endif | |
8678 | } | |
8679 | return resultobj; | |
8680 | fail: | |
8681 | return NULL; | |
8682 | } | |
8683 | ||
8684 | ||
8685 | static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8686 | PyObject *resultobj; | |
8687 | wxString *arg1 = 0 ; | |
8688 | bool temp1 = False ; | |
8689 | PyObject * obj0 = 0 ; | |
8690 | char *kwnames[] = { | |
8691 | (char *) "prefix", NULL | |
8692 | }; | |
8693 | ||
8694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail; | |
8695 | { | |
8696 | arg1 = wxString_in_helper(obj0); | |
8697 | if (arg1 == NULL) SWIG_fail; | |
8698 | temp1 = True; | |
8699 | } | |
8700 | { | |
8701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8702 | wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1); | |
8703 | ||
8704 | wxPyEndAllowThreads(__tstate); | |
8705 | if (PyErr_Occurred()) SWIG_fail; | |
8706 | } | |
8707 | Py_INCREF(Py_None); resultobj = Py_None; | |
8708 | { | |
8709 | if (temp1) | |
8710 | delete arg1; | |
8711 | } | |
8712 | return resultobj; | |
8713 | fail: | |
8714 | { | |
8715 | if (temp1) | |
8716 | delete arg1; | |
8717 | } | |
8718 | return NULL; | |
8719 | } | |
8720 | ||
8721 | ||
8722 | static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8723 | PyObject *resultobj; | |
8724 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8725 | wxString *arg2 = 0 ; | |
8726 | bool result; | |
8727 | bool temp2 = False ; | |
8728 | PyObject * obj0 = 0 ; | |
8729 | PyObject * obj1 = 0 ; | |
8730 | char *kwnames[] = { | |
8731 | (char *) "self",(char *) "szDomain", NULL | |
8732 | }; | |
8733 | ||
8734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail; | |
8735 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8736 | { | |
8737 | arg2 = wxString_in_helper(obj1); | |
8738 | if (arg2 == NULL) SWIG_fail; | |
8739 | temp2 = True; | |
8740 | } | |
8741 | { | |
8742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8743 | result = (bool)(arg1)->AddCatalog((wxString const &)*arg2); | |
8744 | ||
8745 | wxPyEndAllowThreads(__tstate); | |
8746 | if (PyErr_Occurred()) SWIG_fail; | |
8747 | } | |
8748 | resultobj = PyInt_FromLong((long)result); | |
8749 | { | |
8750 | if (temp2) | |
8751 | delete arg2; | |
8752 | } | |
8753 | return resultobj; | |
8754 | fail: | |
8755 | { | |
8756 | if (temp2) | |
8757 | delete arg2; | |
8758 | } | |
8759 | return NULL; | |
8760 | } | |
8761 | ||
8762 | ||
8763 | static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8764 | PyObject *resultobj; | |
8765 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8766 | wxString *arg2 = 0 ; | |
8767 | bool result; | |
8768 | bool temp2 = False ; | |
8769 | PyObject * obj0 = 0 ; | |
8770 | PyObject * obj1 = 0 ; | |
8771 | char *kwnames[] = { | |
8772 | (char *) "self",(char *) "szDomain", NULL | |
8773 | }; | |
8774 | ||
8775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail; | |
8776 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8777 | { | |
8778 | arg2 = wxString_in_helper(obj1); | |
8779 | if (arg2 == NULL) SWIG_fail; | |
8780 | temp2 = True; | |
8781 | } | |
8782 | { | |
8783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8784 | result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2); | |
8785 | ||
8786 | wxPyEndAllowThreads(__tstate); | |
8787 | if (PyErr_Occurred()) SWIG_fail; | |
8788 | } | |
8789 | resultobj = PyInt_FromLong((long)result); | |
8790 | { | |
8791 | if (temp2) | |
8792 | delete arg2; | |
8793 | } | |
8794 | return resultobj; | |
8795 | fail: | |
8796 | { | |
8797 | if (temp2) | |
8798 | delete arg2; | |
8799 | } | |
8800 | return NULL; | |
8801 | } | |
8802 | ||
8803 | ||
8804 | static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8805 | PyObject *resultobj; | |
8806 | int arg1 ; | |
8807 | wxLanguageInfo *result; | |
8808 | char *kwnames[] = { | |
8809 | (char *) "lang", NULL | |
8810 | }; | |
8811 | ||
8812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Locale_GetLanguageInfo",kwnames,&arg1)) goto fail; | |
8813 | { | |
8814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8815 | result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1); | |
8816 | ||
8817 | wxPyEndAllowThreads(__tstate); | |
8818 | if (PyErr_Occurred()) SWIG_fail; | |
8819 | } | |
8820 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0); | |
8821 | return resultobj; | |
8822 | fail: | |
8823 | return NULL; | |
8824 | } | |
8825 | ||
8826 | ||
8827 | static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8828 | PyObject *resultobj; | |
8829 | int arg1 ; | |
8830 | wxString result; | |
8831 | char *kwnames[] = { | |
8832 | (char *) "lang", NULL | |
8833 | }; | |
8834 | ||
8835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Locale_GetLanguageName",kwnames,&arg1)) goto fail; | |
8836 | { | |
8837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8838 | result = wxLocale::GetLanguageName(arg1); | |
8839 | ||
8840 | wxPyEndAllowThreads(__tstate); | |
8841 | if (PyErr_Occurred()) SWIG_fail; | |
8842 | } | |
8843 | { | |
8844 | #if wxUSE_UNICODE | |
8845 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8846 | #else | |
8847 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8848 | #endif | |
8849 | } | |
8850 | return resultobj; | |
8851 | fail: | |
8852 | return NULL; | |
8853 | } | |
8854 | ||
8855 | ||
8856 | static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8857 | PyObject *resultobj; | |
8858 | wxString *arg1 = 0 ; | |
8859 | wxLanguageInfo *result; | |
8860 | bool temp1 = False ; | |
8861 | PyObject * obj0 = 0 ; | |
8862 | char *kwnames[] = { | |
8863 | (char *) "locale", NULL | |
8864 | }; | |
8865 | ||
8866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail; | |
8867 | { | |
8868 | arg1 = wxString_in_helper(obj0); | |
8869 | if (arg1 == NULL) SWIG_fail; | |
8870 | temp1 = True; | |
8871 | } | |
8872 | { | |
8873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8874 | result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1); | |
8875 | ||
8876 | wxPyEndAllowThreads(__tstate); | |
8877 | if (PyErr_Occurred()) SWIG_fail; | |
8878 | } | |
8879 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0); | |
8880 | { | |
8881 | if (temp1) | |
8882 | delete arg1; | |
8883 | } | |
8884 | return resultobj; | |
8885 | fail: | |
8886 | { | |
8887 | if (temp1) | |
8888 | delete arg1; | |
8889 | } | |
8890 | return NULL; | |
8891 | } | |
8892 | ||
8893 | ||
8894 | static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8895 | PyObject *resultobj; | |
8896 | wxLanguageInfo *arg1 = 0 ; | |
8897 | PyObject * obj0 = 0 ; | |
8898 | char *kwnames[] = { | |
8899 | (char *) "info", NULL | |
8900 | }; | |
8901 | ||
8902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail; | |
8903 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8904 | if (arg1 == NULL) { | |
8905 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8906 | } | |
8907 | { | |
8908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8909 | wxLocale::AddLanguage((wxLanguageInfo const &)*arg1); | |
8910 | ||
8911 | wxPyEndAllowThreads(__tstate); | |
8912 | if (PyErr_Occurred()) SWIG_fail; | |
8913 | } | |
8914 | Py_INCREF(Py_None); resultobj = Py_None; | |
8915 | return resultobj; | |
8916 | fail: | |
8917 | return NULL; | |
8918 | } | |
8919 | ||
8920 | ||
8921 | static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8922 | PyObject *resultobj; | |
8923 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8924 | wxString *arg2 = 0 ; | |
8925 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
8926 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
8927 | wxString result; | |
8928 | bool temp2 = False ; | |
8929 | bool temp3 = False ; | |
8930 | PyObject * obj0 = 0 ; | |
8931 | PyObject * obj1 = 0 ; | |
8932 | PyObject * obj2 = 0 ; | |
8933 | char *kwnames[] = { | |
8934 | (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL | |
8935 | }; | |
8936 | ||
8937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8938 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8939 | { | |
8940 | arg2 = wxString_in_helper(obj1); | |
8941 | if (arg2 == NULL) SWIG_fail; | |
8942 | temp2 = True; | |
8943 | } | |
8944 | if (obj2) { | |
8945 | { | |
8946 | arg3 = wxString_in_helper(obj2); | |
8947 | if (arg3 == NULL) SWIG_fail; | |
8948 | temp3 = True; | |
8949 | } | |
8950 | } | |
8951 | { | |
8952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8953 | result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3); | |
8954 | ||
8955 | wxPyEndAllowThreads(__tstate); | |
8956 | if (PyErr_Occurred()) SWIG_fail; | |
8957 | } | |
8958 | { | |
8959 | #if wxUSE_UNICODE | |
8960 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8961 | #else | |
8962 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8963 | #endif | |
8964 | } | |
8965 | { | |
8966 | if (temp2) | |
8967 | delete arg2; | |
8968 | } | |
8969 | { | |
8970 | if (temp3) | |
8971 | delete arg3; | |
8972 | } | |
8973 | return resultobj; | |
8974 | fail: | |
8975 | { | |
8976 | if (temp2) | |
8977 | delete arg2; | |
8978 | } | |
8979 | { | |
8980 | if (temp3) | |
8981 | delete arg3; | |
8982 | } | |
8983 | return NULL; | |
8984 | } | |
8985 | ||
8986 | ||
8987 | static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8988 | PyObject *resultobj; | |
8989 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8990 | wxString *result; | |
8991 | PyObject * obj0 = 0 ; | |
8992 | char *kwnames[] = { | |
8993 | (char *) "self", NULL | |
8994 | }; | |
8995 | ||
8996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail; | |
8997 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8998 | { | |
8999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9000 | { | |
9001 | wxString const &_result_ref = ((wxLocale const *)arg1)->GetName(); | |
9002 | result = (wxString *) &_result_ref; | |
9003 | } | |
9004 | ||
9005 | wxPyEndAllowThreads(__tstate); | |
9006 | if (PyErr_Occurred()) SWIG_fail; | |
9007 | } | |
9008 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxString, 0); | |
9009 | return resultobj; | |
9010 | fail: | |
9011 | return NULL; | |
9012 | } | |
9013 | ||
9014 | ||
9015 | static PyObject * Locale_swigregister(PyObject *self, PyObject *args) { | |
9016 | PyObject *obj; | |
9017 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9018 | SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj); | |
9019 | Py_INCREF(obj); | |
9020 | return Py_BuildValue((char *)""); | |
9021 | } | |
9022 | static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9023 | PyObject *resultobj; | |
9024 | wxLocale *result; | |
9025 | char *kwnames[] = { | |
9026 | NULL | |
9027 | }; | |
9028 | ||
9029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail; | |
9030 | { | |
9031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9032 | result = (wxLocale *)wxGetLocale(); | |
9033 | ||
9034 | wxPyEndAllowThreads(__tstate); | |
9035 | if (PyErr_Occurred()) SWIG_fail; | |
9036 | } | |
9037 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 0); | |
9038 | return resultobj; | |
9039 | fail: | |
9040 | return NULL; | |
9041 | } | |
9042 | ||
9043 | ||
9044 | static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) { | |
9045 | PyObject *resultobj; | |
9046 | wxString *arg1 = 0 ; | |
9047 | wxString result; | |
9048 | bool temp1 = False ; | |
9049 | PyObject * obj0 = 0 ; | |
9050 | ||
9051 | if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail; | |
9052 | { | |
9053 | arg1 = wxString_in_helper(obj0); | |
9054 | if (arg1 == NULL) SWIG_fail; | |
9055 | temp1 = True; | |
9056 | } | |
9057 | { | |
9058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9059 | result = wxGetTranslation((wxString const &)*arg1); | |
9060 | ||
9061 | wxPyEndAllowThreads(__tstate); | |
9062 | if (PyErr_Occurred()) SWIG_fail; | |
9063 | } | |
9064 | { | |
9065 | #if wxUSE_UNICODE | |
9066 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9067 | #else | |
9068 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9069 | #endif | |
9070 | } | |
9071 | { | |
9072 | if (temp1) | |
9073 | delete arg1; | |
9074 | } | |
9075 | return resultobj; | |
9076 | fail: | |
9077 | { | |
9078 | if (temp1) | |
9079 | delete arg1; | |
9080 | } | |
9081 | return NULL; | |
9082 | } | |
9083 | ||
9084 | ||
9085 | static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) { | |
9086 | PyObject *resultobj; | |
9087 | wxString *arg1 = 0 ; | |
9088 | wxString *arg2 = 0 ; | |
9089 | size_t arg3 ; | |
9090 | wxString result; | |
9091 | bool temp1 = False ; | |
9092 | bool temp2 = False ; | |
9093 | PyObject * obj0 = 0 ; | |
9094 | PyObject * obj1 = 0 ; | |
9095 | PyObject * obj2 = 0 ; | |
9096 | ||
9097 | if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail; | |
9098 | { | |
9099 | arg1 = wxString_in_helper(obj0); | |
9100 | if (arg1 == NULL) SWIG_fail; | |
9101 | temp1 = True; | |
9102 | } | |
9103 | { | |
9104 | arg2 = wxString_in_helper(obj1); | |
9105 | if (arg2 == NULL) SWIG_fail; | |
9106 | temp2 = True; | |
9107 | } | |
9108 | arg3 = (size_t) PyInt_AsLong(obj2); | |
9109 | if (PyErr_Occurred()) SWIG_fail; | |
9110 | { | |
9111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9112 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
9113 | ||
9114 | wxPyEndAllowThreads(__tstate); | |
9115 | if (PyErr_Occurred()) SWIG_fail; | |
9116 | } | |
9117 | { | |
9118 | #if wxUSE_UNICODE | |
9119 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9120 | #else | |
9121 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9122 | #endif | |
9123 | } | |
9124 | { | |
9125 | if (temp1) | |
9126 | delete arg1; | |
9127 | } | |
9128 | { | |
9129 | if (temp2) | |
9130 | delete arg2; | |
9131 | } | |
9132 | return resultobj; | |
9133 | fail: | |
9134 | { | |
9135 | if (temp1) | |
9136 | delete arg1; | |
9137 | } | |
9138 | { | |
9139 | if (temp2) | |
9140 | delete arg2; | |
9141 | } | |
9142 | return NULL; | |
9143 | } | |
9144 | ||
9145 | ||
9146 | static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) { | |
9147 | int argc; | |
9148 | PyObject *argv[4]; | |
9149 | int ii; | |
9150 | ||
9151 | argc = PyObject_Length(args); | |
9152 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
9153 | argv[ii] = PyTuple_GetItem(args,ii); | |
9154 | } | |
9155 | if (argc == 1) { | |
9156 | int _v; | |
9157 | { | |
9158 | void *ptr; | |
9159 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) { | |
9160 | _v = 0; | |
9161 | PyErr_Clear(); | |
9162 | } else { | |
9163 | _v = 1; | |
9164 | } | |
9165 | } | |
9166 | if (_v) { | |
9167 | return _wrap_GetTranslation__SWIG_0(self,args); | |
9168 | } | |
9169 | } | |
9170 | if (argc == 3) { | |
9171 | int _v; | |
9172 | { | |
9173 | void *ptr; | |
9174 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) { | |
9175 | _v = 0; | |
9176 | PyErr_Clear(); | |
9177 | } else { | |
9178 | _v = 1; | |
9179 | } | |
9180 | } | |
9181 | if (_v) { | |
9182 | { | |
9183 | void *ptr; | |
9184 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) { | |
9185 | _v = 0; | |
9186 | PyErr_Clear(); | |
9187 | } else { | |
9188 | _v = 1; | |
9189 | } | |
9190 | } | |
9191 | if (_v) { | |
9192 | { | |
9193 | _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0; | |
9194 | } | |
9195 | if (_v) { | |
9196 | return _wrap_GetTranslation__SWIG_1(self,args); | |
9197 | } | |
9198 | } | |
9199 | } | |
9200 | } | |
9201 | ||
9202 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'"); | |
9203 | return NULL; | |
9204 | } | |
9205 | ||
9206 | ||
9207 | static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9208 | PyObject *resultobj; | |
9209 | wxEncodingConverter *result; | |
9210 | char *kwnames[] = { | |
9211 | NULL | |
9212 | }; | |
9213 | ||
9214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail; | |
9215 | { | |
9216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9217 | result = (wxEncodingConverter *)new wxEncodingConverter(); | |
9218 | ||
9219 | wxPyEndAllowThreads(__tstate); | |
9220 | if (PyErr_Occurred()) SWIG_fail; | |
9221 | } | |
9222 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEncodingConverter, 1); | |
9223 | return resultobj; | |
9224 | fail: | |
9225 | return NULL; | |
9226 | } | |
9227 | ||
9228 | ||
9229 | static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9230 | PyObject *resultobj; | |
9231 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
9232 | PyObject * obj0 = 0 ; | |
9233 | char *kwnames[] = { | |
9234 | (char *) "self", NULL | |
9235 | }; | |
9236 | ||
9237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail; | |
9238 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9239 | { | |
9240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9241 | delete arg1; | |
9242 | ||
9243 | wxPyEndAllowThreads(__tstate); | |
9244 | if (PyErr_Occurred()) SWIG_fail; | |
9245 | } | |
9246 | Py_INCREF(Py_None); resultobj = Py_None; | |
9247 | return resultobj; | |
9248 | fail: | |
9249 | return NULL; | |
9250 | } | |
9251 | ||
9252 | ||
9253 | static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9254 | PyObject *resultobj; | |
9255 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
9256 | int arg2 ; | |
9257 | int arg3 ; | |
9258 | int arg4 = (int) wxCONVERT_STRICT ; | |
9259 | bool result; | |
9260 | PyObject * obj0 = 0 ; | |
9261 | char *kwnames[] = { | |
9262 | (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL | |
9263 | }; | |
9264 | ||
9265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|i:EncodingConverter_Init",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
9266 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9267 | { | |
9268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9269 | result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4); | |
9270 | ||
9271 | wxPyEndAllowThreads(__tstate); | |
9272 | if (PyErr_Occurred()) SWIG_fail; | |
9273 | } | |
9274 | resultobj = PyInt_FromLong((long)result); | |
9275 | return resultobj; | |
9276 | fail: | |
9277 | return NULL; | |
9278 | } | |
9279 | ||
9280 | ||
9281 | static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9282 | PyObject *resultobj; | |
9283 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
9284 | wxString *arg2 = 0 ; | |
9285 | wxString result; | |
9286 | bool temp2 = False ; | |
9287 | PyObject * obj0 = 0 ; | |
9288 | PyObject * obj1 = 0 ; | |
9289 | char *kwnames[] = { | |
9290 | (char *) "self",(char *) "input", NULL | |
9291 | }; | |
9292 | ||
9293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail; | |
9294 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9295 | { | |
9296 | arg2 = wxString_in_helper(obj1); | |
9297 | if (arg2 == NULL) SWIG_fail; | |
9298 | temp2 = True; | |
9299 | } | |
9300 | { | |
9301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9302 | result = (arg1)->Convert((wxString const &)*arg2); | |
9303 | ||
9304 | wxPyEndAllowThreads(__tstate); | |
9305 | if (PyErr_Occurred()) SWIG_fail; | |
9306 | } | |
9307 | { | |
9308 | #if wxUSE_UNICODE | |
9309 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9310 | #else | |
9311 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9312 | #endif | |
9313 | } | |
9314 | { | |
9315 | if (temp2) | |
9316 | delete arg2; | |
9317 | } | |
9318 | return resultobj; | |
9319 | fail: | |
9320 | { | |
9321 | if (temp2) | |
9322 | delete arg2; | |
9323 | } | |
9324 | return NULL; | |
9325 | } | |
9326 | ||
9327 | ||
9328 | static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9329 | PyObject *resultobj; | |
9330 | int arg1 ; | |
9331 | int arg2 = (int) wxPLATFORM_CURRENT ; | |
9332 | wxFontEncodingArray result; | |
9333 | char *kwnames[] = { | |
9334 | (char *) "enc",(char *) "platform", NULL | |
9335 | }; | |
9336 | ||
9337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|i:EncodingConverter_GetPlatformEquivalents",kwnames,&arg1,&arg2)) goto fail; | |
9338 | { | |
9339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9340 | result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2); | |
9341 | ||
9342 | wxPyEndAllowThreads(__tstate); | |
9343 | if (PyErr_Occurred()) SWIG_fail; | |
9344 | } | |
9345 | { | |
9346 | resultobj = PyList_New(0); | |
9347 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
9348 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
9349 | PyList_Append(resultobj, number); | |
9350 | Py_DECREF(number); | |
9351 | } | |
9352 | } | |
9353 | return resultobj; | |
9354 | fail: | |
9355 | return NULL; | |
9356 | } | |
9357 | ||
9358 | ||
9359 | static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9360 | PyObject *resultobj; | |
9361 | int arg1 ; | |
9362 | wxFontEncodingArray result; | |
9363 | char *kwnames[] = { | |
9364 | (char *) "enc", NULL | |
9365 | }; | |
9366 | ||
9367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:EncodingConverter_GetAllEquivalents",kwnames,&arg1)) goto fail; | |
9368 | { | |
9369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9370 | result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1); | |
9371 | ||
9372 | wxPyEndAllowThreads(__tstate); | |
9373 | if (PyErr_Occurred()) SWIG_fail; | |
9374 | } | |
9375 | { | |
9376 | resultobj = PyList_New(0); | |
9377 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
9378 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
9379 | PyList_Append(resultobj, number); | |
9380 | Py_DECREF(number); | |
9381 | } | |
9382 | } | |
9383 | return resultobj; | |
9384 | fail: | |
9385 | return NULL; | |
9386 | } | |
9387 | ||
9388 | ||
9389 | static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9390 | PyObject *resultobj; | |
9391 | int arg1 ; | |
9392 | int arg2 ; | |
9393 | bool result; | |
9394 | char *kwnames[] = { | |
9395 | (char *) "encIn",(char *) "encOut", NULL | |
9396 | }; | |
9397 | ||
9398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii:EncodingConverter_CanConvert",kwnames,&arg1,&arg2)) goto fail; | |
9399 | { | |
9400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9401 | result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2); | |
9402 | ||
9403 | wxPyEndAllowThreads(__tstate); | |
9404 | if (PyErr_Occurred()) SWIG_fail; | |
9405 | } | |
9406 | resultobj = PyInt_FromLong((long)result); | |
9407 | return resultobj; | |
9408 | fail: | |
9409 | return NULL; | |
9410 | } | |
9411 | ||
9412 | ||
9413 | static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) { | |
9414 | PyObject *obj; | |
9415 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9416 | SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj); | |
9417 | Py_INCREF(obj); | |
9418 | return Py_BuildValue((char *)""); | |
9419 | } | |
9420 | static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9421 | PyObject *resultobj; | |
9422 | wxDC *arg1 = (wxDC *) 0 ; | |
9423 | PyObject * obj0 = 0 ; | |
9424 | char *kwnames[] = { | |
9425 | (char *) "self", NULL | |
9426 | }; | |
9427 | ||
9428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail; | |
9429 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9430 | { | |
9431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9432 | delete arg1; | |
9433 | ||
9434 | wxPyEndAllowThreads(__tstate); | |
9435 | if (PyErr_Occurred()) SWIG_fail; | |
9436 | } | |
9437 | Py_INCREF(Py_None); resultobj = Py_None; | |
9438 | return resultobj; | |
9439 | fail: | |
9440 | return NULL; | |
9441 | } | |
9442 | ||
9443 | ||
9444 | static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9445 | PyObject *resultobj; | |
9446 | wxDC *arg1 = (wxDC *) 0 ; | |
9447 | PyObject * obj0 = 0 ; | |
9448 | char *kwnames[] = { | |
9449 | (char *) "self", NULL | |
9450 | }; | |
9451 | ||
9452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail; | |
9453 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9454 | { | |
9455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9456 | (arg1)->BeginDrawing(); | |
9457 | ||
9458 | wxPyEndAllowThreads(__tstate); | |
9459 | if (PyErr_Occurred()) SWIG_fail; | |
9460 | } | |
9461 | Py_INCREF(Py_None); resultobj = Py_None; | |
9462 | return resultobj; | |
9463 | fail: | |
9464 | return NULL; | |
9465 | } | |
9466 | ||
9467 | ||
9468 | static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9469 | PyObject *resultobj; | |
9470 | wxDC *arg1 = (wxDC *) 0 ; | |
9471 | PyObject * obj0 = 0 ; | |
9472 | char *kwnames[] = { | |
9473 | (char *) "self", NULL | |
9474 | }; | |
9475 | ||
9476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail; | |
9477 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9478 | { | |
9479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9480 | (arg1)->EndDrawing(); | |
9481 | ||
9482 | wxPyEndAllowThreads(__tstate); | |
9483 | if (PyErr_Occurred()) SWIG_fail; | |
9484 | } | |
9485 | Py_INCREF(Py_None); resultobj = Py_None; | |
9486 | return resultobj; | |
9487 | fail: | |
9488 | return NULL; | |
9489 | } | |
9490 | ||
9491 | ||
9492 | static PyObject *_wrap_DC_FloodFillXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9493 | PyObject *resultobj; | |
9494 | wxDC *arg1 = (wxDC *) 0 ; | |
9495 | int arg2 ; | |
9496 | int arg3 ; | |
9497 | wxColour *arg4 = 0 ; | |
9498 | int arg5 = (int) wxFLOOD_SURFACE ; | |
9499 | bool result; | |
9500 | wxColour temp4 ; | |
9501 | PyObject * obj0 = 0 ; | |
9502 | PyObject * obj3 = 0 ; | |
9503 | char *kwnames[] = { | |
9504 | (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL | |
9505 | }; | |
9506 | ||
9507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO|i:DC_FloodFillXY",kwnames,&obj0,&arg2,&arg3,&obj3,&arg5)) goto fail; | |
9508 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9509 | { | |
9510 | arg4 = &temp4; | |
9511 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
9512 | } | |
9513 | { | |
9514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9515 | result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); | |
9516 | ||
9517 | wxPyEndAllowThreads(__tstate); | |
9518 | if (PyErr_Occurred()) SWIG_fail; | |
9519 | } | |
9520 | resultobj = PyInt_FromLong((long)result); | |
9521 | return resultobj; | |
9522 | fail: | |
9523 | return NULL; | |
9524 | } | |
9525 | ||
9526 | ||
9527 | static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9528 | PyObject *resultobj; | |
9529 | wxDC *arg1 = (wxDC *) 0 ; | |
9530 | wxPoint *arg2 = 0 ; | |
9531 | wxColour *arg3 = 0 ; | |
9532 | int arg4 = (int) wxFLOOD_SURFACE ; | |
9533 | bool result; | |
9534 | wxPoint temp2 ; | |
9535 | wxColour temp3 ; | |
9536 | PyObject * obj0 = 0 ; | |
9537 | PyObject * obj1 = 0 ; | |
9538 | PyObject * obj2 = 0 ; | |
9539 | char *kwnames[] = { | |
9540 | (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL | |
9541 | }; | |
9542 | ||
9543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|i:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail; | |
9544 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9545 | { | |
9546 | arg2 = &temp2; | |
9547 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9548 | } | |
9549 | { | |
9550 | arg3 = &temp3; | |
9551 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
9552 | } | |
9553 | { | |
9554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9555 | result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); | |
9556 | ||
9557 | wxPyEndAllowThreads(__tstate); | |
9558 | if (PyErr_Occurred()) SWIG_fail; | |
9559 | } | |
9560 | resultobj = PyInt_FromLong((long)result); | |
9561 | return resultobj; | |
9562 | fail: | |
9563 | return NULL; | |
9564 | } | |
9565 | ||
9566 | ||
9567 | static PyObject *_wrap_DC_GetPixelXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9568 | PyObject *resultobj; | |
9569 | wxDC *arg1 = (wxDC *) 0 ; | |
9570 | int arg2 ; | |
9571 | int arg3 ; | |
9572 | wxColour result; | |
9573 | PyObject * obj0 = 0 ; | |
9574 | char *kwnames[] = { | |
9575 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9576 | }; | |
9577 | ||
9578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_GetPixelXY",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
9579 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9580 | { | |
9581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9582 | result = wxDC_GetPixelXY(arg1,arg2,arg3); | |
9583 | ||
9584 | wxPyEndAllowThreads(__tstate); | |
9585 | if (PyErr_Occurred()) SWIG_fail; | |
9586 | } | |
9587 | { | |
9588 | wxColour * resultptr; | |
9589 | resultptr = new wxColour((wxColour &) result); | |
9590 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
9591 | } | |
9592 | return resultobj; | |
9593 | fail: | |
9594 | return NULL; | |
9595 | } | |
9596 | ||
9597 | ||
9598 | static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9599 | PyObject *resultobj; | |
9600 | wxDC *arg1 = (wxDC *) 0 ; | |
9601 | wxPoint *arg2 = 0 ; | |
9602 | wxColour result; | |
9603 | wxPoint temp2 ; | |
9604 | PyObject * obj0 = 0 ; | |
9605 | PyObject * obj1 = 0 ; | |
9606 | char *kwnames[] = { | |
9607 | (char *) "self",(char *) "pt", NULL | |
9608 | }; | |
9609 | ||
9610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail; | |
9611 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9612 | { | |
9613 | arg2 = &temp2; | |
9614 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9615 | } | |
9616 | { | |
9617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9618 | result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2); | |
9619 | ||
9620 | wxPyEndAllowThreads(__tstate); | |
9621 | if (PyErr_Occurred()) SWIG_fail; | |
9622 | } | |
9623 | { | |
9624 | wxColour * resultptr; | |
9625 | resultptr = new wxColour((wxColour &) result); | |
9626 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
9627 | } | |
9628 | return resultobj; | |
9629 | fail: | |
9630 | return NULL; | |
9631 | } | |
9632 | ||
9633 | ||
9634 | static PyObject *_wrap_DC_DrawLineXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9635 | PyObject *resultobj; | |
9636 | wxDC *arg1 = (wxDC *) 0 ; | |
9637 | int arg2 ; | |
9638 | int arg3 ; | |
9639 | int arg4 ; | |
9640 | int arg5 ; | |
9641 | PyObject * obj0 = 0 ; | |
9642 | char *kwnames[] = { | |
9643 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
9644 | }; | |
9645 | ||
9646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawLineXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
9647 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9648 | { | |
9649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9650 | (arg1)->DrawLine(arg2,arg3,arg4,arg5); | |
9651 | ||
9652 | wxPyEndAllowThreads(__tstate); | |
9653 | if (PyErr_Occurred()) SWIG_fail; | |
9654 | } | |
9655 | Py_INCREF(Py_None); resultobj = Py_None; | |
9656 | return resultobj; | |
9657 | fail: | |
9658 | return NULL; | |
9659 | } | |
9660 | ||
9661 | ||
9662 | static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9663 | PyObject *resultobj; | |
9664 | wxDC *arg1 = (wxDC *) 0 ; | |
9665 | wxPoint *arg2 = 0 ; | |
9666 | wxPoint *arg3 = 0 ; | |
9667 | wxPoint temp2 ; | |
9668 | wxPoint temp3 ; | |
9669 | PyObject * obj0 = 0 ; | |
9670 | PyObject * obj1 = 0 ; | |
9671 | PyObject * obj2 = 0 ; | |
9672 | char *kwnames[] = { | |
9673 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL | |
9674 | }; | |
9675 | ||
9676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9677 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9678 | { | |
9679 | arg2 = &temp2; | |
9680 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9681 | } | |
9682 | { | |
9683 | arg3 = &temp3; | |
9684 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
9685 | } | |
9686 | { | |
9687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9688 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
9689 | ||
9690 | wxPyEndAllowThreads(__tstate); | |
9691 | if (PyErr_Occurred()) SWIG_fail; | |
9692 | } | |
9693 | Py_INCREF(Py_None); resultobj = Py_None; | |
9694 | return resultobj; | |
9695 | fail: | |
9696 | return NULL; | |
9697 | } | |
9698 | ||
9699 | ||
9700 | static PyObject *_wrap_DC_CrossHairXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9701 | PyObject *resultobj; | |
9702 | wxDC *arg1 = (wxDC *) 0 ; | |
9703 | int arg2 ; | |
9704 | int arg3 ; | |
9705 | PyObject * obj0 = 0 ; | |
9706 | char *kwnames[] = { | |
9707 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9708 | }; | |
9709 | ||
9710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_CrossHairXY",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
9711 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9712 | { | |
9713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9714 | (arg1)->CrossHair(arg2,arg3); | |
9715 | ||
9716 | wxPyEndAllowThreads(__tstate); | |
9717 | if (PyErr_Occurred()) SWIG_fail; | |
9718 | } | |
9719 | Py_INCREF(Py_None); resultobj = Py_None; | |
9720 | return resultobj; | |
9721 | fail: | |
9722 | return NULL; | |
9723 | } | |
9724 | ||
9725 | ||
9726 | static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9727 | PyObject *resultobj; | |
9728 | wxDC *arg1 = (wxDC *) 0 ; | |
9729 | wxPoint *arg2 = 0 ; | |
9730 | wxPoint temp2 ; | |
9731 | PyObject * obj0 = 0 ; | |
9732 | PyObject * obj1 = 0 ; | |
9733 | char *kwnames[] = { | |
9734 | (char *) "self",(char *) "pt", NULL | |
9735 | }; | |
9736 | ||
9737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail; | |
9738 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9739 | { | |
9740 | arg2 = &temp2; | |
9741 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9742 | } | |
9743 | { | |
9744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9745 | (arg1)->CrossHair((wxPoint const &)*arg2); | |
9746 | ||
9747 | wxPyEndAllowThreads(__tstate); | |
9748 | if (PyErr_Occurred()) SWIG_fail; | |
9749 | } | |
9750 | Py_INCREF(Py_None); resultobj = Py_None; | |
9751 | return resultobj; | |
9752 | fail: | |
9753 | return NULL; | |
9754 | } | |
9755 | ||
9756 | ||
9757 | static PyObject *_wrap_DC_DrawArcXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9758 | PyObject *resultobj; | |
9759 | wxDC *arg1 = (wxDC *) 0 ; | |
9760 | int arg2 ; | |
9761 | int arg3 ; | |
9762 | int arg4 ; | |
9763 | int arg5 ; | |
9764 | int arg6 ; | |
9765 | int arg7 ; | |
9766 | PyObject * obj0 = 0 ; | |
9767 | char *kwnames[] = { | |
9768 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL | |
9769 | }; | |
9770 | ||
9771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiiiii:DC_DrawArcXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7)) goto fail; | |
9772 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9773 | { | |
9774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9775 | (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
9776 | ||
9777 | wxPyEndAllowThreads(__tstate); | |
9778 | if (PyErr_Occurred()) SWIG_fail; | |
9779 | } | |
9780 | Py_INCREF(Py_None); resultobj = Py_None; | |
9781 | return resultobj; | |
9782 | fail: | |
9783 | return NULL; | |
9784 | } | |
9785 | ||
9786 | ||
9787 | static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9788 | PyObject *resultobj; | |
9789 | wxDC *arg1 = (wxDC *) 0 ; | |
9790 | wxPoint *arg2 = 0 ; | |
9791 | wxPoint *arg3 = 0 ; | |
9792 | wxPoint *arg4 = 0 ; | |
9793 | wxPoint temp2 ; | |
9794 | wxPoint temp3 ; | |
9795 | wxPoint temp4 ; | |
9796 | PyObject * obj0 = 0 ; | |
9797 | PyObject * obj1 = 0 ; | |
9798 | PyObject * obj2 = 0 ; | |
9799 | PyObject * obj3 = 0 ; | |
9800 | char *kwnames[] = { | |
9801 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL | |
9802 | }; | |
9803 | ||
9804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9805 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9806 | { | |
9807 | arg2 = &temp2; | |
9808 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9809 | } | |
9810 | { | |
9811 | arg3 = &temp3; | |
9812 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
9813 | } | |
9814 | { | |
9815 | arg4 = &temp4; | |
9816 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9817 | } | |
9818 | { | |
9819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9820 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
9821 | ||
9822 | wxPyEndAllowThreads(__tstate); | |
9823 | if (PyErr_Occurred()) SWIG_fail; | |
9824 | } | |
9825 | Py_INCREF(Py_None); resultobj = Py_None; | |
9826 | return resultobj; | |
9827 | fail: | |
9828 | return NULL; | |
9829 | } | |
9830 | ||
9831 | ||
9832 | static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9833 | PyObject *resultobj; | |
9834 | wxDC *arg1 = (wxDC *) 0 ; | |
9835 | int arg2 ; | |
9836 | int arg3 ; | |
9837 | int arg4 ; | |
9838 | int arg5 ; | |
9839 | PyObject * obj0 = 0 ; | |
9840 | char *kwnames[] = { | |
9841 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
9842 | }; | |
9843 | ||
9844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawCheckMarkXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
9845 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9846 | { | |
9847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9848 | (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); | |
9849 | ||
9850 | wxPyEndAllowThreads(__tstate); | |
9851 | if (PyErr_Occurred()) SWIG_fail; | |
9852 | } | |
9853 | Py_INCREF(Py_None); resultobj = Py_None; | |
9854 | return resultobj; | |
9855 | fail: | |
9856 | return NULL; | |
9857 | } | |
9858 | ||
9859 | ||
9860 | static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9861 | PyObject *resultobj; | |
9862 | wxDC *arg1 = (wxDC *) 0 ; | |
9863 | wxRect *arg2 = 0 ; | |
9864 | wxRect temp2 ; | |
9865 | PyObject * obj0 = 0 ; | |
9866 | PyObject * obj1 = 0 ; | |
9867 | char *kwnames[] = { | |
9868 | (char *) "self",(char *) "rect", NULL | |
9869 | }; | |
9870 | ||
9871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail; | |
9872 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9873 | { | |
9874 | arg2 = &temp2; | |
9875 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
9876 | } | |
9877 | { | |
9878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9879 | (arg1)->DrawCheckMark((wxRect const &)*arg2); | |
9880 | ||
9881 | wxPyEndAllowThreads(__tstate); | |
9882 | if (PyErr_Occurred()) SWIG_fail; | |
9883 | } | |
9884 | Py_INCREF(Py_None); resultobj = Py_None; | |
9885 | return resultobj; | |
9886 | fail: | |
9887 | return NULL; | |
9888 | } | |
9889 | ||
9890 | ||
9891 | static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9892 | PyObject *resultobj; | |
9893 | wxDC *arg1 = (wxDC *) 0 ; | |
9894 | int arg2 ; | |
9895 | int arg3 ; | |
9896 | int arg4 ; | |
9897 | int arg5 ; | |
9898 | double arg6 ; | |
9899 | double arg7 ; | |
9900 | PyObject * obj0 = 0 ; | |
9901 | char *kwnames[] = { | |
9902 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL | |
9903 | }; | |
9904 | ||
9905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiiidd:DC_DrawEllipticArcXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7)) goto fail; | |
9906 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9907 | { | |
9908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9909 | (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
9910 | ||
9911 | wxPyEndAllowThreads(__tstate); | |
9912 | if (PyErr_Occurred()) SWIG_fail; | |
9913 | } | |
9914 | Py_INCREF(Py_None); resultobj = Py_None; | |
9915 | return resultobj; | |
9916 | fail: | |
9917 | return NULL; | |
9918 | } | |
9919 | ||
9920 | ||
9921 | static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9922 | PyObject *resultobj; | |
9923 | wxDC *arg1 = (wxDC *) 0 ; | |
9924 | wxPoint *arg2 = 0 ; | |
9925 | wxSize *arg3 = 0 ; | |
9926 | double arg4 ; | |
9927 | double arg5 ; | |
9928 | wxPoint temp2 ; | |
9929 | wxSize temp3 ; | |
9930 | PyObject * obj0 = 0 ; | |
9931 | PyObject * obj1 = 0 ; | |
9932 | PyObject * obj2 = 0 ; | |
9933 | char *kwnames[] = { | |
9934 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL | |
9935 | }; | |
9936 | ||
9937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOdd:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5)) goto fail; | |
9938 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9939 | { | |
9940 | arg2 = &temp2; | |
9941 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9942 | } | |
9943 | { | |
9944 | arg3 = &temp3; | |
9945 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
9946 | } | |
9947 | { | |
9948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9949 | (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); | |
9950 | ||
9951 | wxPyEndAllowThreads(__tstate); | |
9952 | if (PyErr_Occurred()) SWIG_fail; | |
9953 | } | |
9954 | Py_INCREF(Py_None); resultobj = Py_None; | |
9955 | return resultobj; | |
9956 | fail: | |
9957 | return NULL; | |
9958 | } | |
9959 | ||
9960 | ||
9961 | static PyObject *_wrap_DC_DrawPointXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9962 | PyObject *resultobj; | |
9963 | wxDC *arg1 = (wxDC *) 0 ; | |
9964 | int arg2 ; | |
9965 | int arg3 ; | |
9966 | PyObject * obj0 = 0 ; | |
9967 | char *kwnames[] = { | |
9968 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9969 | }; | |
9970 | ||
9971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_DrawPointXY",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
9972 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9973 | { | |
9974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9975 | (arg1)->DrawPoint(arg2,arg3); | |
9976 | ||
9977 | wxPyEndAllowThreads(__tstate); | |
9978 | if (PyErr_Occurred()) SWIG_fail; | |
9979 | } | |
9980 | Py_INCREF(Py_None); resultobj = Py_None; | |
9981 | return resultobj; | |
9982 | fail: | |
9983 | return NULL; | |
9984 | } | |
9985 | ||
9986 | ||
9987 | static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9988 | PyObject *resultobj; | |
9989 | wxDC *arg1 = (wxDC *) 0 ; | |
9990 | wxPoint *arg2 = 0 ; | |
9991 | wxPoint temp2 ; | |
9992 | PyObject * obj0 = 0 ; | |
9993 | PyObject * obj1 = 0 ; | |
9994 | char *kwnames[] = { | |
9995 | (char *) "self",(char *) "pt", NULL | |
9996 | }; | |
9997 | ||
9998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",kwnames,&obj0,&obj1)) goto fail; | |
9999 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10000 | { | |
10001 | arg2 = &temp2; | |
10002 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10003 | } | |
10004 | { | |
10005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10006 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
10007 | ||
10008 | wxPyEndAllowThreads(__tstate); | |
10009 | if (PyErr_Occurred()) SWIG_fail; | |
10010 | } | |
10011 | Py_INCREF(Py_None); resultobj = Py_None; | |
10012 | return resultobj; | |
10013 | fail: | |
10014 | return NULL; | |
10015 | } | |
10016 | ||
10017 | ||
10018 | static PyObject *_wrap_DC_DrawRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10019 | PyObject *resultobj; | |
10020 | wxDC *arg1 = (wxDC *) 0 ; | |
10021 | int arg2 ; | |
10022 | int arg3 ; | |
10023 | int arg4 ; | |
10024 | int arg5 ; | |
10025 | PyObject * obj0 = 0 ; | |
10026 | char *kwnames[] = { | |
10027 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
10028 | }; | |
10029 | ||
10030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawRectangleXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
10031 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10032 | { | |
10033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10034 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
10035 | ||
10036 | wxPyEndAllowThreads(__tstate); | |
10037 | if (PyErr_Occurred()) SWIG_fail; | |
10038 | } | |
10039 | Py_INCREF(Py_None); resultobj = Py_None; | |
10040 | return resultobj; | |
10041 | fail: | |
10042 | return NULL; | |
10043 | } | |
10044 | ||
10045 | ||
10046 | static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10047 | PyObject *resultobj; | |
10048 | wxDC *arg1 = (wxDC *) 0 ; | |
10049 | wxPoint *arg2 = 0 ; | |
10050 | wxSize *arg3 = 0 ; | |
10051 | wxPoint temp2 ; | |
10052 | wxSize temp3 ; | |
10053 | PyObject * obj0 = 0 ; | |
10054 | PyObject * obj1 = 0 ; | |
10055 | PyObject * obj2 = 0 ; | |
10056 | char *kwnames[] = { | |
10057 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
10058 | }; | |
10059 | ||
10060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10061 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10062 | { | |
10063 | arg2 = &temp2; | |
10064 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10065 | } | |
10066 | { | |
10067 | arg3 = &temp3; | |
10068 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
10069 | } | |
10070 | { | |
10071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10072 | (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
10073 | ||
10074 | wxPyEndAllowThreads(__tstate); | |
10075 | if (PyErr_Occurred()) SWIG_fail; | |
10076 | } | |
10077 | Py_INCREF(Py_None); resultobj = Py_None; | |
10078 | return resultobj; | |
10079 | fail: | |
10080 | return NULL; | |
10081 | } | |
10082 | ||
10083 | ||
10084 | static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10085 | PyObject *resultobj; | |
10086 | wxDC *arg1 = (wxDC *) 0 ; | |
10087 | wxRect *arg2 = 0 ; | |
10088 | wxRect temp2 ; | |
10089 | PyObject * obj0 = 0 ; | |
10090 | PyObject * obj1 = 0 ; | |
10091 | char *kwnames[] = { | |
10092 | (char *) "self",(char *) "rect", NULL | |
10093 | }; | |
10094 | ||
10095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail; | |
10096 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10097 | { | |
10098 | arg2 = &temp2; | |
10099 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10100 | } | |
10101 | { | |
10102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10103 | (arg1)->DrawRectangle((wxRect const &)*arg2); | |
10104 | ||
10105 | wxPyEndAllowThreads(__tstate); | |
10106 | if (PyErr_Occurred()) SWIG_fail; | |
10107 | } | |
10108 | Py_INCREF(Py_None); resultobj = Py_None; | |
10109 | return resultobj; | |
10110 | fail: | |
10111 | return NULL; | |
10112 | } | |
10113 | ||
10114 | ||
10115 | static PyObject *_wrap_DC_DrawRoundedRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10116 | PyObject *resultobj; | |
10117 | wxDC *arg1 = (wxDC *) 0 ; | |
10118 | int arg2 ; | |
10119 | int arg3 ; | |
10120 | int arg4 ; | |
10121 | int arg5 ; | |
10122 | double arg6 ; | |
10123 | PyObject * obj0 = 0 ; | |
10124 | char *kwnames[] = { | |
10125 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL | |
10126 | }; | |
10127 | ||
10128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiiid:DC_DrawRoundedRectangleXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
10129 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10130 | { | |
10131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10132 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); | |
10133 | ||
10134 | wxPyEndAllowThreads(__tstate); | |
10135 | if (PyErr_Occurred()) SWIG_fail; | |
10136 | } | |
10137 | Py_INCREF(Py_None); resultobj = Py_None; | |
10138 | return resultobj; | |
10139 | fail: | |
10140 | return NULL; | |
10141 | } | |
10142 | ||
10143 | ||
10144 | static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10145 | PyObject *resultobj; | |
10146 | wxDC *arg1 = (wxDC *) 0 ; | |
10147 | wxPoint *arg2 = 0 ; | |
10148 | wxSize *arg3 = 0 ; | |
10149 | double arg4 ; | |
10150 | wxPoint temp2 ; | |
10151 | wxSize temp3 ; | |
10152 | PyObject * obj0 = 0 ; | |
10153 | PyObject * obj1 = 0 ; | |
10154 | PyObject * obj2 = 0 ; | |
10155 | char *kwnames[] = { | |
10156 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL | |
10157 | }; | |
10158 | ||
10159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOd:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail; | |
10160 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10161 | { | |
10162 | arg2 = &temp2; | |
10163 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10164 | } | |
10165 | { | |
10166 | arg3 = &temp3; | |
10167 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
10168 | } | |
10169 | { | |
10170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10171 | (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); | |
10172 | ||
10173 | wxPyEndAllowThreads(__tstate); | |
10174 | if (PyErr_Occurred()) SWIG_fail; | |
10175 | } | |
10176 | Py_INCREF(Py_None); resultobj = Py_None; | |
10177 | return resultobj; | |
10178 | fail: | |
10179 | return NULL; | |
10180 | } | |
10181 | ||
10182 | ||
10183 | static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10184 | PyObject *resultobj; | |
10185 | wxDC *arg1 = (wxDC *) 0 ; | |
10186 | wxRect *arg2 = 0 ; | |
10187 | double arg3 ; | |
10188 | wxRect temp2 ; | |
10189 | PyObject * obj0 = 0 ; | |
10190 | PyObject * obj1 = 0 ; | |
10191 | char *kwnames[] = { | |
10192 | (char *) "self",(char *) "r",(char *) "radius", NULL | |
10193 | }; | |
10194 | ||
10195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOd:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
10196 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10197 | { | |
10198 | arg2 = &temp2; | |
10199 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10200 | } | |
10201 | { | |
10202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10203 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); | |
10204 | ||
10205 | wxPyEndAllowThreads(__tstate); | |
10206 | if (PyErr_Occurred()) SWIG_fail; | |
10207 | } | |
10208 | Py_INCREF(Py_None); resultobj = Py_None; | |
10209 | return resultobj; | |
10210 | fail: | |
10211 | return NULL; | |
10212 | } | |
10213 | ||
10214 | ||
10215 | static PyObject *_wrap_DC_DrawCircleXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10216 | PyObject *resultobj; | |
10217 | wxDC *arg1 = (wxDC *) 0 ; | |
10218 | int arg2 ; | |
10219 | int arg3 ; | |
10220 | int arg4 ; | |
10221 | PyObject * obj0 = 0 ; | |
10222 | char *kwnames[] = { | |
10223 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL | |
10224 | }; | |
10225 | ||
10226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:DC_DrawCircleXY",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
10227 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10228 | { | |
10229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10230 | (arg1)->DrawCircle(arg2,arg3,arg4); | |
10231 | ||
10232 | wxPyEndAllowThreads(__tstate); | |
10233 | if (PyErr_Occurred()) SWIG_fail; | |
10234 | } | |
10235 | Py_INCREF(Py_None); resultobj = Py_None; | |
10236 | return resultobj; | |
10237 | fail: | |
10238 | return NULL; | |
10239 | } | |
10240 | ||
10241 | ||
10242 | static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10243 | PyObject *resultobj; | |
10244 | wxDC *arg1 = (wxDC *) 0 ; | |
10245 | wxPoint *arg2 = 0 ; | |
10246 | int arg3 ; | |
10247 | wxPoint temp2 ; | |
10248 | PyObject * obj0 = 0 ; | |
10249 | PyObject * obj1 = 0 ; | |
10250 | char *kwnames[] = { | |
10251 | (char *) "self",(char *) "pt",(char *) "radius", NULL | |
10252 | }; | |
10253 | ||
10254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:DC_DrawCircle",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
10255 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10256 | { | |
10257 | arg2 = &temp2; | |
10258 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10259 | } | |
10260 | { | |
10261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10262 | (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); | |
10263 | ||
10264 | wxPyEndAllowThreads(__tstate); | |
10265 | if (PyErr_Occurred()) SWIG_fail; | |
10266 | } | |
10267 | Py_INCREF(Py_None); resultobj = Py_None; | |
10268 | return resultobj; | |
10269 | fail: | |
10270 | return NULL; | |
10271 | } | |
10272 | ||
10273 | ||
10274 | static PyObject *_wrap_DC_DrawEllipseXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10275 | PyObject *resultobj; | |
10276 | wxDC *arg1 = (wxDC *) 0 ; | |
10277 | int arg2 ; | |
10278 | int arg3 ; | |
10279 | int arg4 ; | |
10280 | int arg5 ; | |
10281 | PyObject * obj0 = 0 ; | |
10282 | char *kwnames[] = { | |
10283 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
10284 | }; | |
10285 | ||
10286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawEllipseXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
10287 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10288 | { | |
10289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10290 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); | |
10291 | ||
10292 | wxPyEndAllowThreads(__tstate); | |
10293 | if (PyErr_Occurred()) SWIG_fail; | |
10294 | } | |
10295 | Py_INCREF(Py_None); resultobj = Py_None; | |
10296 | return resultobj; | |
10297 | fail: | |
10298 | return NULL; | |
10299 | } | |
10300 | ||
10301 | ||
10302 | static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10303 | PyObject *resultobj; | |
10304 | wxDC *arg1 = (wxDC *) 0 ; | |
10305 | wxPoint *arg2 = 0 ; | |
10306 | wxSize *arg3 = 0 ; | |
10307 | wxPoint temp2 ; | |
10308 | wxSize temp3 ; | |
10309 | PyObject * obj0 = 0 ; | |
10310 | PyObject * obj1 = 0 ; | |
10311 | PyObject * obj2 = 0 ; | |
10312 | char *kwnames[] = { | |
10313 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
10314 | }; | |
10315 | ||
10316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10317 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10318 | { | |
10319 | arg2 = &temp2; | |
10320 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10321 | } | |
10322 | { | |
10323 | arg3 = &temp3; | |
10324 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
10325 | } | |
10326 | { | |
10327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10328 | (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
10329 | ||
10330 | wxPyEndAllowThreads(__tstate); | |
10331 | if (PyErr_Occurred()) SWIG_fail; | |
10332 | } | |
10333 | Py_INCREF(Py_None); resultobj = Py_None; | |
10334 | return resultobj; | |
10335 | fail: | |
10336 | return NULL; | |
10337 | } | |
10338 | ||
10339 | ||
10340 | static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10341 | PyObject *resultobj; | |
10342 | wxDC *arg1 = (wxDC *) 0 ; | |
10343 | wxRect *arg2 = 0 ; | |
10344 | wxRect temp2 ; | |
10345 | PyObject * obj0 = 0 ; | |
10346 | PyObject * obj1 = 0 ; | |
10347 | char *kwnames[] = { | |
10348 | (char *) "self",(char *) "rect", NULL | |
10349 | }; | |
10350 | ||
10351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail; | |
10352 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10353 | { | |
10354 | arg2 = &temp2; | |
10355 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10356 | } | |
10357 | { | |
10358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10359 | (arg1)->DrawEllipse((wxRect const &)*arg2); | |
10360 | ||
10361 | wxPyEndAllowThreads(__tstate); | |
10362 | if (PyErr_Occurred()) SWIG_fail; | |
10363 | } | |
10364 | Py_INCREF(Py_None); resultobj = Py_None; | |
10365 | return resultobj; | |
10366 | fail: | |
10367 | return NULL; | |
10368 | } | |
10369 | ||
10370 | ||
10371 | static PyObject *_wrap_DC_DrawIconXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10372 | PyObject *resultobj; | |
10373 | wxDC *arg1 = (wxDC *) 0 ; | |
10374 | wxIcon *arg2 = 0 ; | |
10375 | int arg3 ; | |
10376 | int arg4 ; | |
10377 | PyObject * obj0 = 0 ; | |
10378 | PyObject * obj1 = 0 ; | |
10379 | char *kwnames[] = { | |
10380 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL | |
10381 | }; | |
10382 | ||
10383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:DC_DrawIconXY",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail; | |
10384 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10385 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10386 | if (arg2 == NULL) { | |
10387 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10388 | } | |
10389 | { | |
10390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10391 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); | |
10392 | ||
10393 | wxPyEndAllowThreads(__tstate); | |
10394 | if (PyErr_Occurred()) SWIG_fail; | |
10395 | } | |
10396 | Py_INCREF(Py_None); resultobj = Py_None; | |
10397 | return resultobj; | |
10398 | fail: | |
10399 | return NULL; | |
10400 | } | |
10401 | ||
10402 | ||
10403 | static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10404 | PyObject *resultobj; | |
10405 | wxDC *arg1 = (wxDC *) 0 ; | |
10406 | wxIcon *arg2 = 0 ; | |
10407 | wxPoint *arg3 = 0 ; | |
10408 | wxPoint temp3 ; | |
10409 | PyObject * obj0 = 0 ; | |
10410 | PyObject * obj1 = 0 ; | |
10411 | PyObject * obj2 = 0 ; | |
10412 | char *kwnames[] = { | |
10413 | (char *) "self",(char *) "icon",(char *) "pt", NULL | |
10414 | }; | |
10415 | ||
10416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10417 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10418 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10419 | if (arg2 == NULL) { | |
10420 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10421 | } | |
10422 | { | |
10423 | arg3 = &temp3; | |
10424 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10425 | } | |
10426 | { | |
10427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10428 | (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); | |
10429 | ||
10430 | wxPyEndAllowThreads(__tstate); | |
10431 | if (PyErr_Occurred()) SWIG_fail; | |
10432 | } | |
10433 | Py_INCREF(Py_None); resultobj = Py_None; | |
10434 | return resultobj; | |
10435 | fail: | |
10436 | return NULL; | |
10437 | } | |
10438 | ||
10439 | ||
10440 | static PyObject *_wrap_DC_DrawBitmapXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10441 | PyObject *resultobj; | |
10442 | wxDC *arg1 = (wxDC *) 0 ; | |
10443 | wxBitmap *arg2 = 0 ; | |
10444 | int arg3 ; | |
10445 | int arg4 ; | |
10446 | bool arg5 = (bool) False ; | |
10447 | PyObject * obj0 = 0 ; | |
10448 | PyObject * obj1 = 0 ; | |
10449 | PyObject * obj4 = 0 ; | |
10450 | char *kwnames[] = { | |
10451 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL | |
10452 | }; | |
10453 | ||
10454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii|O:DC_DrawBitmapXY",kwnames,&obj0,&obj1,&arg3,&arg4,&obj4)) goto fail; | |
10455 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10456 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10457 | if (arg2 == NULL) { | |
10458 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10459 | } | |
10460 | if (obj4) { | |
10461 | arg5 = PyInt_AsLong(obj4) ? true : false; | |
10462 | if (PyErr_Occurred()) SWIG_fail; | |
10463 | } | |
10464 | { | |
10465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10466 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); | |
10467 | ||
10468 | wxPyEndAllowThreads(__tstate); | |
10469 | if (PyErr_Occurred()) SWIG_fail; | |
10470 | } | |
10471 | Py_INCREF(Py_None); resultobj = Py_None; | |
10472 | return resultobj; | |
10473 | fail: | |
10474 | return NULL; | |
10475 | } | |
10476 | ||
10477 | ||
10478 | static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10479 | PyObject *resultobj; | |
10480 | wxDC *arg1 = (wxDC *) 0 ; | |
10481 | wxBitmap *arg2 = 0 ; | |
10482 | wxPoint *arg3 = 0 ; | |
10483 | bool arg4 = (bool) False ; | |
10484 | wxPoint temp3 ; | |
10485 | PyObject * obj0 = 0 ; | |
10486 | PyObject * obj1 = 0 ; | |
10487 | PyObject * obj2 = 0 ; | |
10488 | PyObject * obj3 = 0 ; | |
10489 | char *kwnames[] = { | |
10490 | (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL | |
10491 | }; | |
10492 | ||
10493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10494 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10495 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10496 | if (arg2 == NULL) { | |
10497 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10498 | } | |
10499 | { | |
10500 | arg3 = &temp3; | |
10501 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10502 | } | |
10503 | if (obj3) { | |
10504 | arg4 = PyInt_AsLong(obj3) ? true : false; | |
10505 | if (PyErr_Occurred()) SWIG_fail; | |
10506 | } | |
10507 | { | |
10508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10509 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); | |
10510 | ||
10511 | wxPyEndAllowThreads(__tstate); | |
10512 | if (PyErr_Occurred()) SWIG_fail; | |
10513 | } | |
10514 | Py_INCREF(Py_None); resultobj = Py_None; | |
10515 | return resultobj; | |
10516 | fail: | |
10517 | return NULL; | |
10518 | } | |
10519 | ||
10520 | ||
10521 | static PyObject *_wrap_DC_DrawTextXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10522 | PyObject *resultobj; | |
10523 | wxDC *arg1 = (wxDC *) 0 ; | |
10524 | wxString *arg2 = 0 ; | |
10525 | int arg3 ; | |
10526 | int arg4 ; | |
10527 | bool temp2 = False ; | |
10528 | PyObject * obj0 = 0 ; | |
10529 | PyObject * obj1 = 0 ; | |
10530 | char *kwnames[] = { | |
10531 | (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL | |
10532 | }; | |
10533 | ||
10534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:DC_DrawTextXY",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail; | |
10535 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10536 | { | |
10537 | arg2 = wxString_in_helper(obj1); | |
10538 | if (arg2 == NULL) SWIG_fail; | |
10539 | temp2 = True; | |
10540 | } | |
10541 | { | |
10542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10543 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); | |
10544 | ||
10545 | wxPyEndAllowThreads(__tstate); | |
10546 | if (PyErr_Occurred()) SWIG_fail; | |
10547 | } | |
10548 | Py_INCREF(Py_None); resultobj = Py_None; | |
10549 | { | |
10550 | if (temp2) | |
10551 | delete arg2; | |
10552 | } | |
10553 | return resultobj; | |
10554 | fail: | |
10555 | { | |
10556 | if (temp2) | |
10557 | delete arg2; | |
10558 | } | |
10559 | return NULL; | |
10560 | } | |
10561 | ||
10562 | ||
10563 | static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10564 | PyObject *resultobj; | |
10565 | wxDC *arg1 = (wxDC *) 0 ; | |
10566 | wxString *arg2 = 0 ; | |
10567 | wxPoint *arg3 = 0 ; | |
10568 | bool temp2 = False ; | |
10569 | wxPoint temp3 ; | |
10570 | PyObject * obj0 = 0 ; | |
10571 | PyObject * obj1 = 0 ; | |
10572 | PyObject * obj2 = 0 ; | |
10573 | char *kwnames[] = { | |
10574 | (char *) "self",(char *) "text",(char *) "pt", NULL | |
10575 | }; | |
10576 | ||
10577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10578 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10579 | { | |
10580 | arg2 = wxString_in_helper(obj1); | |
10581 | if (arg2 == NULL) SWIG_fail; | |
10582 | temp2 = True; | |
10583 | } | |
10584 | { | |
10585 | arg3 = &temp3; | |
10586 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10587 | } | |
10588 | { | |
10589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10590 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
10591 | ||
10592 | wxPyEndAllowThreads(__tstate); | |
10593 | if (PyErr_Occurred()) SWIG_fail; | |
10594 | } | |
10595 | Py_INCREF(Py_None); resultobj = Py_None; | |
10596 | { | |
10597 | if (temp2) | |
10598 | delete arg2; | |
10599 | } | |
10600 | return resultobj; | |
10601 | fail: | |
10602 | { | |
10603 | if (temp2) | |
10604 | delete arg2; | |
10605 | } | |
10606 | return NULL; | |
10607 | } | |
10608 | ||
10609 | ||
10610 | static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10611 | PyObject *resultobj; | |
10612 | wxDC *arg1 = (wxDC *) 0 ; | |
10613 | wxString *arg2 = 0 ; | |
10614 | int arg3 ; | |
10615 | int arg4 ; | |
10616 | double arg5 ; | |
10617 | bool temp2 = False ; | |
10618 | PyObject * obj0 = 0 ; | |
10619 | PyObject * obj1 = 0 ; | |
10620 | char *kwnames[] = { | |
10621 | (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL | |
10622 | }; | |
10623 | ||
10624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiid:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5)) goto fail; | |
10625 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10626 | { | |
10627 | arg2 = wxString_in_helper(obj1); | |
10628 | if (arg2 == NULL) SWIG_fail; | |
10629 | temp2 = True; | |
10630 | } | |
10631 | { | |
10632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10633 | (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); | |
10634 | ||
10635 | wxPyEndAllowThreads(__tstate); | |
10636 | if (PyErr_Occurred()) SWIG_fail; | |
10637 | } | |
10638 | Py_INCREF(Py_None); resultobj = Py_None; | |
10639 | { | |
10640 | if (temp2) | |
10641 | delete arg2; | |
10642 | } | |
10643 | return resultobj; | |
10644 | fail: | |
10645 | { | |
10646 | if (temp2) | |
10647 | delete arg2; | |
10648 | } | |
10649 | return NULL; | |
10650 | } | |
10651 | ||
10652 | ||
10653 | static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10654 | PyObject *resultobj; | |
10655 | wxDC *arg1 = (wxDC *) 0 ; | |
10656 | wxString *arg2 = 0 ; | |
10657 | wxPoint *arg3 = 0 ; | |
10658 | double arg4 ; | |
10659 | bool temp2 = False ; | |
10660 | wxPoint temp3 ; | |
10661 | PyObject * obj0 = 0 ; | |
10662 | PyObject * obj1 = 0 ; | |
10663 | PyObject * obj2 = 0 ; | |
10664 | char *kwnames[] = { | |
10665 | (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL | |
10666 | }; | |
10667 | ||
10668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOd:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail; | |
10669 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10670 | { | |
10671 | arg2 = wxString_in_helper(obj1); | |
10672 | if (arg2 == NULL) SWIG_fail; | |
10673 | temp2 = True; | |
10674 | } | |
10675 | { | |
10676 | arg3 = &temp3; | |
10677 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10678 | } | |
10679 | { | |
10680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10681 | (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); | |
10682 | ||
10683 | wxPyEndAllowThreads(__tstate); | |
10684 | if (PyErr_Occurred()) SWIG_fail; | |
10685 | } | |
10686 | Py_INCREF(Py_None); resultobj = Py_None; | |
10687 | { | |
10688 | if (temp2) | |
10689 | delete arg2; | |
10690 | } | |
10691 | return resultobj; | |
10692 | fail: | |
10693 | { | |
10694 | if (temp2) | |
10695 | delete arg2; | |
10696 | } | |
10697 | return NULL; | |
10698 | } | |
10699 | ||
10700 | ||
10701 | static PyObject *_wrap_DC_BlitXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10702 | PyObject *resultobj; | |
10703 | wxDC *arg1 = (wxDC *) 0 ; | |
10704 | int arg2 ; | |
10705 | int arg3 ; | |
10706 | int arg4 ; | |
10707 | int arg5 ; | |
10708 | wxDC *arg6 = (wxDC *) 0 ; | |
10709 | int arg7 ; | |
10710 | int arg8 ; | |
10711 | int arg9 = (int) wxCOPY ; | |
10712 | bool arg10 = (bool) False ; | |
10713 | int arg11 = (int) -1 ; | |
10714 | int arg12 = (int) -1 ; | |
10715 | bool result; | |
10716 | PyObject * obj0 = 0 ; | |
10717 | PyObject * obj5 = 0 ; | |
10718 | PyObject * obj9 = 0 ; | |
10719 | char *kwnames[] = { | |
10720 | (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 | |
10721 | }; | |
10722 | ||
10723 | 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; | |
10724 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10725 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10726 | if (obj9) { | |
10727 | arg10 = PyInt_AsLong(obj9) ? true : false; | |
10728 | if (PyErr_Occurred()) SWIG_fail; | |
10729 | } | |
10730 | { | |
10731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10732 | result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); | |
10733 | ||
10734 | wxPyEndAllowThreads(__tstate); | |
10735 | if (PyErr_Occurred()) SWIG_fail; | |
10736 | } | |
10737 | resultobj = PyInt_FromLong((long)result); | |
10738 | return resultobj; | |
10739 | fail: | |
10740 | return NULL; | |
10741 | } | |
10742 | ||
10743 | ||
10744 | static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10745 | PyObject *resultobj; | |
10746 | wxDC *arg1 = (wxDC *) 0 ; | |
10747 | wxPoint *arg2 = 0 ; | |
10748 | wxSize *arg3 = 0 ; | |
10749 | wxDC *arg4 = (wxDC *) 0 ; | |
10750 | wxPoint *arg5 = 0 ; | |
10751 | int arg6 = (int) wxCOPY ; | |
10752 | bool arg7 = (bool) False ; | |
10753 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
10754 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
10755 | bool result; | |
10756 | wxPoint temp2 ; | |
10757 | wxSize temp3 ; | |
10758 | wxPoint temp5 ; | |
10759 | wxPoint temp8 ; | |
10760 | PyObject * obj0 = 0 ; | |
10761 | PyObject * obj1 = 0 ; | |
10762 | PyObject * obj2 = 0 ; | |
10763 | PyObject * obj3 = 0 ; | |
10764 | PyObject * obj4 = 0 ; | |
10765 | PyObject * obj6 = 0 ; | |
10766 | PyObject * obj7 = 0 ; | |
10767 | char *kwnames[] = { | |
10768 | (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL | |
10769 | }; | |
10770 | ||
10771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|iOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
10772 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10773 | { | |
10774 | arg2 = &temp2; | |
10775 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10776 | } | |
10777 | { | |
10778 | arg3 = &temp3; | |
10779 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
10780 | } | |
10781 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10782 | { | |
10783 | arg5 = &temp5; | |
10784 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
10785 | } | |
10786 | if (obj6) { | |
10787 | arg7 = PyInt_AsLong(obj6) ? true : false; | |
10788 | if (PyErr_Occurred()) SWIG_fail; | |
10789 | } | |
10790 | if (obj7) { | |
10791 | { | |
10792 | arg8 = &temp8; | |
10793 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
10794 | } | |
10795 | } | |
10796 | { | |
10797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10798 | result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8); | |
10799 | ||
10800 | wxPyEndAllowThreads(__tstate); | |
10801 | if (PyErr_Occurred()) SWIG_fail; | |
10802 | } | |
10803 | resultobj = PyInt_FromLong((long)result); | |
10804 | return resultobj; | |
10805 | fail: | |
10806 | return NULL; | |
10807 | } | |
10808 | ||
10809 | ||
10810 | static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10811 | PyObject *resultobj; | |
10812 | wxDC *arg1 = (wxDC *) 0 ; | |
10813 | int arg2 ; | |
10814 | wxPoint *arg3 = (wxPoint *) 0 ; | |
10815 | int arg4 = (int) 0 ; | |
10816 | int arg5 = (int) 0 ; | |
10817 | PyObject * obj0 = 0 ; | |
10818 | PyObject * obj1 = 0 ; | |
10819 | char *kwnames[] = { | |
10820 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL | |
10821 | }; | |
10822 | ||
10823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|ii:DC_DrawLines",kwnames,&obj0,&obj1,&arg4,&arg5)) goto fail; | |
10824 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10825 | { | |
10826 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
10827 | if (arg3 == NULL) SWIG_fail; | |
10828 | } | |
10829 | { | |
10830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10831 | (arg1)->DrawLines(arg2,arg3,arg4,arg5); | |
10832 | ||
10833 | wxPyEndAllowThreads(__tstate); | |
10834 | if (PyErr_Occurred()) SWIG_fail; | |
10835 | } | |
10836 | Py_INCREF(Py_None); resultobj = Py_None; | |
10837 | { | |
10838 | if (arg3) delete [] arg3; | |
10839 | } | |
10840 | return resultobj; | |
10841 | fail: | |
10842 | { | |
10843 | if (arg3) delete [] arg3; | |
10844 | } | |
10845 | return NULL; | |
10846 | } | |
10847 | ||
10848 | ||
10849 | static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10850 | PyObject *resultobj; | |
10851 | wxDC *arg1 = (wxDC *) 0 ; | |
10852 | int arg2 ; | |
10853 | wxPoint *arg3 = (wxPoint *) 0 ; | |
10854 | int arg4 = (int) 0 ; | |
10855 | int arg5 = (int) 0 ; | |
10856 | int arg6 = (int) wxODDEVEN_RULE ; | |
10857 | PyObject * obj0 = 0 ; | |
10858 | PyObject * obj1 = 0 ; | |
10859 | char *kwnames[] = { | |
10860 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL | |
10861 | }; | |
10862 | ||
10863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iii:DC_DrawPolygon",kwnames,&obj0,&obj1,&arg4,&arg5,&arg6)) goto fail; | |
10864 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10865 | { | |
10866 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
10867 | if (arg3 == NULL) SWIG_fail; | |
10868 | } | |
10869 | { | |
10870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10871 | (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); | |
10872 | ||
10873 | wxPyEndAllowThreads(__tstate); | |
10874 | if (PyErr_Occurred()) SWIG_fail; | |
10875 | } | |
10876 | Py_INCREF(Py_None); resultobj = Py_None; | |
10877 | { | |
10878 | if (arg3) delete [] arg3; | |
10879 | } | |
10880 | return resultobj; | |
10881 | fail: | |
10882 | { | |
10883 | if (arg3) delete [] arg3; | |
10884 | } | |
10885 | return NULL; | |
10886 | } | |
10887 | ||
10888 | ||
10889 | static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10890 | PyObject *resultobj; | |
10891 | wxDC *arg1 = (wxDC *) 0 ; | |
10892 | wxString *arg2 = 0 ; | |
10893 | wxRect *arg3 = 0 ; | |
10894 | int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
10895 | int arg5 = (int) -1 ; | |
10896 | bool temp2 = False ; | |
10897 | wxRect temp3 ; | |
10898 | PyObject * obj0 = 0 ; | |
10899 | PyObject * obj1 = 0 ; | |
10900 | PyObject * obj2 = 0 ; | |
10901 | char *kwnames[] = { | |
10902 | (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
10903 | }; | |
10904 | ||
10905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|ii:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5)) goto fail; | |
10906 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10907 | { | |
10908 | arg2 = wxString_in_helper(obj1); | |
10909 | if (arg2 == NULL) SWIG_fail; | |
10910 | temp2 = True; | |
10911 | } | |
10912 | { | |
10913 | arg3 = &temp3; | |
10914 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
10915 | } | |
10916 | { | |
10917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10918 | (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); | |
10919 | ||
10920 | wxPyEndAllowThreads(__tstate); | |
10921 | if (PyErr_Occurred()) SWIG_fail; | |
10922 | } | |
10923 | Py_INCREF(Py_None); resultobj = Py_None; | |
10924 | { | |
10925 | if (temp2) | |
10926 | delete arg2; | |
10927 | } | |
10928 | return resultobj; | |
10929 | fail: | |
10930 | { | |
10931 | if (temp2) | |
10932 | delete arg2; | |
10933 | } | |
10934 | return NULL; | |
10935 | } | |
10936 | ||
10937 | ||
10938 | static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10939 | PyObject *resultobj; | |
10940 | wxDC *arg1 = (wxDC *) 0 ; | |
10941 | wxString *arg2 = 0 ; | |
10942 | wxBitmap *arg3 = 0 ; | |
10943 | wxRect *arg4 = 0 ; | |
10944 | int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
10945 | int arg6 = (int) -1 ; | |
10946 | wxRect result; | |
10947 | bool temp2 = False ; | |
10948 | wxRect temp4 ; | |
10949 | PyObject * obj0 = 0 ; | |
10950 | PyObject * obj1 = 0 ; | |
10951 | PyObject * obj2 = 0 ; | |
10952 | PyObject * obj3 = 0 ; | |
10953 | char *kwnames[] = { | |
10954 | (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
10955 | }; | |
10956 | ||
10957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|ii:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5,&arg6)) goto fail; | |
10958 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10959 | { | |
10960 | arg2 = wxString_in_helper(obj1); | |
10961 | if (arg2 == NULL) SWIG_fail; | |
10962 | temp2 = True; | |
10963 | } | |
10964 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10965 | if (arg3 == NULL) { | |
10966 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10967 | } | |
10968 | { | |
10969 | arg4 = &temp4; | |
10970 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
10971 | } | |
10972 | { | |
10973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10974 | result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); | |
10975 | ||
10976 | wxPyEndAllowThreads(__tstate); | |
10977 | if (PyErr_Occurred()) SWIG_fail; | |
10978 | } | |
10979 | { | |
10980 | wxRect * resultptr; | |
10981 | resultptr = new wxRect((wxRect &) result); | |
10982 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
10983 | } | |
10984 | { | |
10985 | if (temp2) | |
10986 | delete arg2; | |
10987 | } | |
10988 | return resultobj; | |
10989 | fail: | |
10990 | { | |
10991 | if (temp2) | |
10992 | delete arg2; | |
10993 | } | |
10994 | return NULL; | |
10995 | } | |
10996 | ||
10997 | ||
10998 | static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10999 | PyObject *resultobj; | |
11000 | wxDC *arg1 = (wxDC *) 0 ; | |
11001 | int arg2 ; | |
11002 | wxPoint *arg3 = (wxPoint *) 0 ; | |
11003 | PyObject * obj0 = 0 ; | |
11004 | PyObject * obj1 = 0 ; | |
11005 | char *kwnames[] = { | |
11006 | (char *) "self",(char *) "points", NULL | |
11007 | }; | |
11008 | ||
11009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail; | |
11010 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11011 | { | |
11012 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
11013 | if (arg3 == NULL) SWIG_fail; | |
11014 | } | |
11015 | { | |
11016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11017 | (arg1)->DrawSpline(arg2,arg3); | |
11018 | ||
11019 | wxPyEndAllowThreads(__tstate); | |
11020 | if (PyErr_Occurred()) SWIG_fail; | |
11021 | } | |
11022 | Py_INCREF(Py_None); resultobj = Py_None; | |
11023 | { | |
11024 | if (arg3) delete [] arg3; | |
11025 | } | |
11026 | return resultobj; | |
11027 | fail: | |
11028 | { | |
11029 | if (arg3) delete [] arg3; | |
11030 | } | |
11031 | return NULL; | |
11032 | } | |
11033 | ||
11034 | ||
11035 | static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11036 | PyObject *resultobj; | |
11037 | wxDC *arg1 = (wxDC *) 0 ; | |
11038 | PyObject * obj0 = 0 ; | |
11039 | char *kwnames[] = { | |
11040 | (char *) "self", NULL | |
11041 | }; | |
11042 | ||
11043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail; | |
11044 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11045 | { | |
11046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11047 | (arg1)->Clear(); | |
11048 | ||
11049 | wxPyEndAllowThreads(__tstate); | |
11050 | if (PyErr_Occurred()) SWIG_fail; | |
11051 | } | |
11052 | Py_INCREF(Py_None); resultobj = Py_None; | |
11053 | return resultobj; | |
11054 | fail: | |
11055 | return NULL; | |
11056 | } | |
11057 | ||
11058 | ||
11059 | static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11060 | PyObject *resultobj; | |
11061 | wxDC *arg1 = (wxDC *) 0 ; | |
11062 | wxString *arg2 = 0 ; | |
11063 | bool result; | |
11064 | bool temp2 = False ; | |
11065 | PyObject * obj0 = 0 ; | |
11066 | PyObject * obj1 = 0 ; | |
11067 | char *kwnames[] = { | |
11068 | (char *) "self",(char *) "message", NULL | |
11069 | }; | |
11070 | ||
11071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail; | |
11072 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11073 | { | |
11074 | arg2 = wxString_in_helper(obj1); | |
11075 | if (arg2 == NULL) SWIG_fail; | |
11076 | temp2 = True; | |
11077 | } | |
11078 | { | |
11079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11080 | result = (bool)(arg1)->StartDoc((wxString const &)*arg2); | |
11081 | ||
11082 | wxPyEndAllowThreads(__tstate); | |
11083 | if (PyErr_Occurred()) SWIG_fail; | |
11084 | } | |
11085 | resultobj = PyInt_FromLong((long)result); | |
11086 | { | |
11087 | if (temp2) | |
11088 | delete arg2; | |
11089 | } | |
11090 | return resultobj; | |
11091 | fail: | |
11092 | { | |
11093 | if (temp2) | |
11094 | delete arg2; | |
11095 | } | |
11096 | return NULL; | |
11097 | } | |
11098 | ||
11099 | ||
11100 | static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11101 | PyObject *resultobj; | |
11102 | wxDC *arg1 = (wxDC *) 0 ; | |
11103 | PyObject * obj0 = 0 ; | |
11104 | char *kwnames[] = { | |
11105 | (char *) "self", NULL | |
11106 | }; | |
11107 | ||
11108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail; | |
11109 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11110 | { | |
11111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11112 | (arg1)->EndDoc(); | |
11113 | ||
11114 | wxPyEndAllowThreads(__tstate); | |
11115 | if (PyErr_Occurred()) SWIG_fail; | |
11116 | } | |
11117 | Py_INCREF(Py_None); resultobj = Py_None; | |
11118 | return resultobj; | |
11119 | fail: | |
11120 | return NULL; | |
11121 | } | |
11122 | ||
11123 | ||
11124 | static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11125 | PyObject *resultobj; | |
11126 | wxDC *arg1 = (wxDC *) 0 ; | |
11127 | PyObject * obj0 = 0 ; | |
11128 | char *kwnames[] = { | |
11129 | (char *) "self", NULL | |
11130 | }; | |
11131 | ||
11132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail; | |
11133 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11134 | { | |
11135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11136 | (arg1)->StartPage(); | |
11137 | ||
11138 | wxPyEndAllowThreads(__tstate); | |
11139 | if (PyErr_Occurred()) SWIG_fail; | |
11140 | } | |
11141 | Py_INCREF(Py_None); resultobj = Py_None; | |
11142 | return resultobj; | |
11143 | fail: | |
11144 | return NULL; | |
11145 | } | |
11146 | ||
11147 | ||
11148 | static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11149 | PyObject *resultobj; | |
11150 | wxDC *arg1 = (wxDC *) 0 ; | |
11151 | PyObject * obj0 = 0 ; | |
11152 | char *kwnames[] = { | |
11153 | (char *) "self", NULL | |
11154 | }; | |
11155 | ||
11156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail; | |
11157 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11158 | { | |
11159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11160 | (arg1)->EndPage(); | |
11161 | ||
11162 | wxPyEndAllowThreads(__tstate); | |
11163 | if (PyErr_Occurred()) SWIG_fail; | |
11164 | } | |
11165 | Py_INCREF(Py_None); resultobj = Py_None; | |
11166 | return resultobj; | |
11167 | fail: | |
11168 | return NULL; | |
11169 | } | |
11170 | ||
11171 | ||
11172 | static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11173 | PyObject *resultobj; | |
11174 | wxDC *arg1 = (wxDC *) 0 ; | |
11175 | wxFont *arg2 = 0 ; | |
11176 | PyObject * obj0 = 0 ; | |
11177 | PyObject * obj1 = 0 ; | |
11178 | char *kwnames[] = { | |
11179 | (char *) "self",(char *) "font", NULL | |
11180 | }; | |
11181 | ||
11182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
11183 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11184 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11185 | if (arg2 == NULL) { | |
11186 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11187 | } | |
11188 | { | |
11189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11190 | (arg1)->SetFont((wxFont const &)*arg2); | |
11191 | ||
11192 | wxPyEndAllowThreads(__tstate); | |
11193 | if (PyErr_Occurred()) SWIG_fail; | |
11194 | } | |
11195 | Py_INCREF(Py_None); resultobj = Py_None; | |
11196 | return resultobj; | |
11197 | fail: | |
11198 | return NULL; | |
11199 | } | |
11200 | ||
11201 | ||
11202 | static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11203 | PyObject *resultobj; | |
11204 | wxDC *arg1 = (wxDC *) 0 ; | |
11205 | wxPen *arg2 = 0 ; | |
11206 | PyObject * obj0 = 0 ; | |
11207 | PyObject * obj1 = 0 ; | |
11208 | char *kwnames[] = { | |
11209 | (char *) "self",(char *) "pen", NULL | |
11210 | }; | |
11211 | ||
11212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail; | |
11213 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11214 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11215 | if (arg2 == NULL) { | |
11216 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11217 | } | |
11218 | { | |
11219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11220 | (arg1)->SetPen((wxPen const &)*arg2); | |
11221 | ||
11222 | wxPyEndAllowThreads(__tstate); | |
11223 | if (PyErr_Occurred()) SWIG_fail; | |
11224 | } | |
11225 | Py_INCREF(Py_None); resultobj = Py_None; | |
11226 | return resultobj; | |
11227 | fail: | |
11228 | return NULL; | |
11229 | } | |
11230 | ||
11231 | ||
11232 | static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11233 | PyObject *resultobj; | |
11234 | wxDC *arg1 = (wxDC *) 0 ; | |
11235 | wxBrush *arg2 = 0 ; | |
11236 | PyObject * obj0 = 0 ; | |
11237 | PyObject * obj1 = 0 ; | |
11238 | char *kwnames[] = { | |
11239 | (char *) "self",(char *) "brush", NULL | |
11240 | }; | |
11241 | ||
11242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail; | |
11243 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11244 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11245 | if (arg2 == NULL) { | |
11246 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11247 | } | |
11248 | { | |
11249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11250 | (arg1)->SetBrush((wxBrush const &)*arg2); | |
11251 | ||
11252 | wxPyEndAllowThreads(__tstate); | |
11253 | if (PyErr_Occurred()) SWIG_fail; | |
11254 | } | |
11255 | Py_INCREF(Py_None); resultobj = Py_None; | |
11256 | return resultobj; | |
11257 | fail: | |
11258 | return NULL; | |
11259 | } | |
11260 | ||
11261 | ||
11262 | static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11263 | PyObject *resultobj; | |
11264 | wxDC *arg1 = (wxDC *) 0 ; | |
11265 | wxBrush *arg2 = 0 ; | |
11266 | PyObject * obj0 = 0 ; | |
11267 | PyObject * obj1 = 0 ; | |
11268 | char *kwnames[] = { | |
11269 | (char *) "self",(char *) "brush", NULL | |
11270 | }; | |
11271 | ||
11272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail; | |
11273 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11274 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11275 | if (arg2 == NULL) { | |
11276 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11277 | } | |
11278 | { | |
11279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11280 | (arg1)->SetBackground((wxBrush const &)*arg2); | |
11281 | ||
11282 | wxPyEndAllowThreads(__tstate); | |
11283 | if (PyErr_Occurred()) SWIG_fail; | |
11284 | } | |
11285 | Py_INCREF(Py_None); resultobj = Py_None; | |
11286 | return resultobj; | |
11287 | fail: | |
11288 | return NULL; | |
11289 | } | |
11290 | ||
11291 | ||
11292 | static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11293 | PyObject *resultobj; | |
11294 | wxDC *arg1 = (wxDC *) 0 ; | |
11295 | int arg2 ; | |
11296 | PyObject * obj0 = 0 ; | |
11297 | char *kwnames[] = { | |
11298 | (char *) "self",(char *) "mode", NULL | |
11299 | }; | |
11300 | ||
11301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_SetBackgroundMode",kwnames,&obj0,&arg2)) goto fail; | |
11302 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11303 | { | |
11304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11305 | (arg1)->SetBackgroundMode(arg2); | |
11306 | ||
11307 | wxPyEndAllowThreads(__tstate); | |
11308 | if (PyErr_Occurred()) SWIG_fail; | |
11309 | } | |
11310 | Py_INCREF(Py_None); resultobj = Py_None; | |
11311 | return resultobj; | |
11312 | fail: | |
11313 | return NULL; | |
11314 | } | |
11315 | ||
11316 | ||
11317 | static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11318 | PyObject *resultobj; | |
11319 | wxDC *arg1 = (wxDC *) 0 ; | |
11320 | wxPalette *arg2 = 0 ; | |
11321 | PyObject * obj0 = 0 ; | |
11322 | PyObject * obj1 = 0 ; | |
11323 | char *kwnames[] = { | |
11324 | (char *) "self",(char *) "palette", NULL | |
11325 | }; | |
11326 | ||
11327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail; | |
11328 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11329 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11330 | if (arg2 == NULL) { | |
11331 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11332 | } | |
11333 | { | |
11334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11335 | (arg1)->SetPalette((wxPalette const &)*arg2); | |
11336 | ||
11337 | wxPyEndAllowThreads(__tstate); | |
11338 | if (PyErr_Occurred()) SWIG_fail; | |
11339 | } | |
11340 | Py_INCREF(Py_None); resultobj = Py_None; | |
11341 | return resultobj; | |
11342 | fail: | |
11343 | return NULL; | |
11344 | } | |
11345 | ||
11346 | ||
11347 | static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11348 | PyObject *resultobj; | |
11349 | wxDC *arg1 = (wxDC *) 0 ; | |
11350 | int arg2 ; | |
11351 | int arg3 ; | |
11352 | int arg4 ; | |
11353 | int arg5 ; | |
11354 | PyObject * obj0 = 0 ; | |
11355 | char *kwnames[] = { | |
11356 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11357 | }; | |
11358 | ||
11359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_SetClippingRegion",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
11360 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11361 | { | |
11362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11363 | (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5); | |
11364 | ||
11365 | wxPyEndAllowThreads(__tstate); | |
11366 | if (PyErr_Occurred()) SWIG_fail; | |
11367 | } | |
11368 | Py_INCREF(Py_None); resultobj = Py_None; | |
11369 | return resultobj; | |
11370 | fail: | |
11371 | return NULL; | |
11372 | } | |
11373 | ||
11374 | ||
11375 | static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11376 | PyObject *resultobj; | |
11377 | wxDC *arg1 = (wxDC *) 0 ; | |
11378 | wxRect *arg2 = 0 ; | |
11379 | wxRect temp2 ; | |
11380 | PyObject * obj0 = 0 ; | |
11381 | PyObject * obj1 = 0 ; | |
11382 | char *kwnames[] = { | |
11383 | (char *) "self",(char *) "rect", NULL | |
11384 | }; | |
11385 | ||
11386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail; | |
11387 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11388 | { | |
11389 | arg2 = &temp2; | |
11390 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11391 | } | |
11392 | { | |
11393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11394 | (arg1)->SetClippingRegion((wxRect const &)*arg2); | |
11395 | ||
11396 | wxPyEndAllowThreads(__tstate); | |
11397 | if (PyErr_Occurred()) SWIG_fail; | |
11398 | } | |
11399 | Py_INCREF(Py_None); resultobj = Py_None; | |
11400 | return resultobj; | |
11401 | fail: | |
11402 | return NULL; | |
11403 | } | |
11404 | ||
11405 | ||
11406 | static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11407 | PyObject *resultobj; | |
11408 | wxDC *arg1 = (wxDC *) 0 ; | |
11409 | wxRegion *arg2 = 0 ; | |
11410 | PyObject * obj0 = 0 ; | |
11411 | PyObject * obj1 = 0 ; | |
11412 | char *kwnames[] = { | |
11413 | (char *) "self",(char *) "region", NULL | |
11414 | }; | |
11415 | ||
11416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail; | |
11417 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11418 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11419 | if (arg2 == NULL) { | |
11420 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11421 | } | |
11422 | { | |
11423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11424 | (arg1)->SetClippingRegion((wxRegion const &)*arg2); | |
11425 | ||
11426 | wxPyEndAllowThreads(__tstate); | |
11427 | if (PyErr_Occurred()) SWIG_fail; | |
11428 | } | |
11429 | Py_INCREF(Py_None); resultobj = Py_None; | |
11430 | return resultobj; | |
11431 | fail: | |
11432 | return NULL; | |
11433 | } | |
11434 | ||
11435 | ||
11436 | static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11437 | PyObject *resultobj; | |
11438 | wxDC *arg1 = (wxDC *) 0 ; | |
11439 | PyObject * obj0 = 0 ; | |
11440 | char *kwnames[] = { | |
11441 | (char *) "self", NULL | |
11442 | }; | |
11443 | ||
11444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail; | |
11445 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11446 | { | |
11447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11448 | (arg1)->DestroyClippingRegion(); | |
11449 | ||
11450 | wxPyEndAllowThreads(__tstate); | |
11451 | if (PyErr_Occurred()) SWIG_fail; | |
11452 | } | |
11453 | Py_INCREF(Py_None); resultobj = Py_None; | |
11454 | return resultobj; | |
11455 | fail: | |
11456 | return NULL; | |
11457 | } | |
11458 | ||
11459 | ||
11460 | static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11461 | PyObject *resultobj; | |
11462 | wxDC *arg1 = (wxDC *) 0 ; | |
11463 | int *arg2 = (int *) 0 ; | |
11464 | int *arg3 = (int *) 0 ; | |
11465 | int *arg4 = (int *) 0 ; | |
11466 | int *arg5 = (int *) 0 ; | |
11467 | int temp2 ; | |
11468 | int temp3 ; | |
11469 | int temp4 ; | |
11470 | int temp5 ; | |
11471 | PyObject * obj0 = 0 ; | |
11472 | char *kwnames[] = { | |
11473 | (char *) "self", NULL | |
11474 | }; | |
11475 | ||
11476 | arg2 = &temp2; | |
11477 | arg3 = &temp3; | |
11478 | arg4 = &temp4; | |
11479 | arg5 = &temp5; | |
11480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail; | |
11481 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11482 | { | |
11483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11484 | ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5); | |
11485 | ||
11486 | wxPyEndAllowThreads(__tstate); | |
11487 | if (PyErr_Occurred()) SWIG_fail; | |
11488 | } | |
11489 | Py_INCREF(Py_None); resultobj = Py_None; | |
11490 | { | |
11491 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
11492 | resultobj = t_output_helper(resultobj,o); | |
11493 | } | |
11494 | { | |
11495 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
11496 | resultobj = t_output_helper(resultobj,o); | |
11497 | } | |
11498 | { | |
11499 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
11500 | resultobj = t_output_helper(resultobj,o); | |
11501 | } | |
11502 | { | |
11503 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
11504 | resultobj = t_output_helper(resultobj,o); | |
11505 | } | |
11506 | return resultobj; | |
11507 | fail: | |
11508 | return NULL; | |
11509 | } | |
11510 | ||
11511 | ||
11512 | static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11513 | PyObject *resultobj; | |
11514 | wxDC *arg1 = (wxDC *) 0 ; | |
11515 | wxRect result; | |
11516 | PyObject * obj0 = 0 ; | |
11517 | char *kwnames[] = { | |
11518 | (char *) "self", NULL | |
11519 | }; | |
11520 | ||
11521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail; | |
11522 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11523 | { | |
11524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11525 | result = wxDC_GetClippingRect(arg1); | |
11526 | ||
11527 | wxPyEndAllowThreads(__tstate); | |
11528 | if (PyErr_Occurred()) SWIG_fail; | |
11529 | } | |
11530 | { | |
11531 | wxRect * resultptr; | |
11532 | resultptr = new wxRect((wxRect &) result); | |
11533 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
11534 | } | |
11535 | return resultobj; | |
11536 | fail: | |
11537 | return NULL; | |
11538 | } | |
11539 | ||
11540 | ||
11541 | static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11542 | PyObject *resultobj; | |
11543 | wxDC *arg1 = (wxDC *) 0 ; | |
11544 | int result; | |
11545 | PyObject * obj0 = 0 ; | |
11546 | char *kwnames[] = { | |
11547 | (char *) "self", NULL | |
11548 | }; | |
11549 | ||
11550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail; | |
11551 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11552 | { | |
11553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11554 | result = (int)((wxDC const *)arg1)->GetCharHeight(); | |
11555 | ||
11556 | wxPyEndAllowThreads(__tstate); | |
11557 | if (PyErr_Occurred()) SWIG_fail; | |
11558 | } | |
11559 | resultobj = PyInt_FromLong((long)result); | |
11560 | return resultobj; | |
11561 | fail: | |
11562 | return NULL; | |
11563 | } | |
11564 | ||
11565 | ||
11566 | static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11567 | PyObject *resultobj; | |
11568 | wxDC *arg1 = (wxDC *) 0 ; | |
11569 | int result; | |
11570 | PyObject * obj0 = 0 ; | |
11571 | char *kwnames[] = { | |
11572 | (char *) "self", NULL | |
11573 | }; | |
11574 | ||
11575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail; | |
11576 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11577 | { | |
11578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11579 | result = (int)((wxDC const *)arg1)->GetCharWidth(); | |
11580 | ||
11581 | wxPyEndAllowThreads(__tstate); | |
11582 | if (PyErr_Occurred()) SWIG_fail; | |
11583 | } | |
11584 | resultobj = PyInt_FromLong((long)result); | |
11585 | return resultobj; | |
11586 | fail: | |
11587 | return NULL; | |
11588 | } | |
11589 | ||
11590 | ||
11591 | static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11592 | PyObject *resultobj; | |
11593 | wxDC *arg1 = (wxDC *) 0 ; | |
11594 | wxString *arg2 = 0 ; | |
11595 | int *arg3 = (int *) 0 ; | |
11596 | int *arg4 = (int *) 0 ; | |
11597 | bool temp2 = False ; | |
11598 | int temp3 ; | |
11599 | int temp4 ; | |
11600 | PyObject * obj0 = 0 ; | |
11601 | PyObject * obj1 = 0 ; | |
11602 | char *kwnames[] = { | |
11603 | (char *) "self",(char *) "string", NULL | |
11604 | }; | |
11605 | ||
11606 | arg3 = &temp3; | |
11607 | arg4 = &temp4; | |
11608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; | |
11609 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11610 | { | |
11611 | arg2 = wxString_in_helper(obj1); | |
11612 | if (arg2 == NULL) SWIG_fail; | |
11613 | temp2 = True; | |
11614 | } | |
11615 | { | |
11616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11617 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
11618 | ||
11619 | wxPyEndAllowThreads(__tstate); | |
11620 | if (PyErr_Occurred()) SWIG_fail; | |
11621 | } | |
11622 | Py_INCREF(Py_None); resultobj = Py_None; | |
11623 | { | |
11624 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
11625 | resultobj = t_output_helper(resultobj,o); | |
11626 | } | |
11627 | { | |
11628 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
11629 | resultobj = t_output_helper(resultobj,o); | |
11630 | } | |
11631 | { | |
11632 | if (temp2) | |
11633 | delete arg2; | |
11634 | } | |
11635 | return resultobj; | |
11636 | fail: | |
11637 | { | |
11638 | if (temp2) | |
11639 | delete arg2; | |
11640 | } | |
11641 | return NULL; | |
11642 | } | |
11643 | ||
11644 | ||
11645 | static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11646 | PyObject *resultobj; | |
11647 | wxDC *arg1 = (wxDC *) 0 ; | |
11648 | wxString *arg2 = 0 ; | |
11649 | int *arg3 = (int *) 0 ; | |
11650 | int *arg4 = (int *) 0 ; | |
11651 | int *arg5 = (int *) 0 ; | |
11652 | int *arg6 = (int *) 0 ; | |
11653 | wxFont *arg7 = (wxFont *) NULL ; | |
11654 | bool temp2 = False ; | |
11655 | int temp3 ; | |
11656 | int temp4 ; | |
11657 | int temp5 ; | |
11658 | int temp6 ; | |
11659 | PyObject * obj0 = 0 ; | |
11660 | PyObject * obj1 = 0 ; | |
11661 | PyObject * obj2 = 0 ; | |
11662 | char *kwnames[] = { | |
11663 | (char *) "self",(char *) "string",(char *) "font", NULL | |
11664 | }; | |
11665 | ||
11666 | arg3 = &temp3; | |
11667 | arg4 = &temp4; | |
11668 | arg5 = &temp5; | |
11669 | arg6 = &temp6; | |
11670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11671 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11672 | { | |
11673 | arg2 = wxString_in_helper(obj1); | |
11674 | if (arg2 == NULL) SWIG_fail; | |
11675 | temp2 = True; | |
11676 | } | |
11677 | if (obj2) { | |
11678 | if ((SWIG_ConvertPtr(obj2,(void **) &arg7, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11679 | } | |
11680 | { | |
11681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11682 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7); | |
11683 | ||
11684 | wxPyEndAllowThreads(__tstate); | |
11685 | if (PyErr_Occurred()) SWIG_fail; | |
11686 | } | |
11687 | Py_INCREF(Py_None); resultobj = Py_None; | |
11688 | { | |
11689 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
11690 | resultobj = t_output_helper(resultobj,o); | |
11691 | } | |
11692 | { | |
11693 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
11694 | resultobj = t_output_helper(resultobj,o); | |
11695 | } | |
11696 | { | |
11697 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
11698 | resultobj = t_output_helper(resultobj,o); | |
11699 | } | |
11700 | { | |
11701 | PyObject *o = PyInt_FromLong((long) (*arg6)); | |
11702 | resultobj = t_output_helper(resultobj,o); | |
11703 | } | |
11704 | { | |
11705 | if (temp2) | |
11706 | delete arg2; | |
11707 | } | |
11708 | return resultobj; | |
11709 | fail: | |
11710 | { | |
11711 | if (temp2) | |
11712 | delete arg2; | |
11713 | } | |
11714 | return NULL; | |
11715 | } | |
11716 | ||
11717 | ||
11718 | static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11719 | PyObject *resultobj; | |
11720 | wxDC *arg1 = (wxDC *) 0 ; | |
11721 | wxString *arg2 = 0 ; | |
11722 | int *arg3 = (int *) 0 ; | |
11723 | int *arg4 = (int *) 0 ; | |
11724 | int *arg5 = (int *) 0 ; | |
11725 | wxFont *arg6 = (wxFont *) NULL ; | |
11726 | bool temp2 = False ; | |
11727 | int temp3 ; | |
11728 | int temp4 ; | |
11729 | int temp5 ; | |
11730 | PyObject * obj0 = 0 ; | |
11731 | PyObject * obj1 = 0 ; | |
11732 | PyObject * obj2 = 0 ; | |
11733 | char *kwnames[] = { | |
11734 | (char *) "self",(char *) "text",(char *) "font", NULL | |
11735 | }; | |
11736 | ||
11737 | arg3 = &temp3; | |
11738 | arg4 = &temp4; | |
11739 | arg5 = &temp5; | |
11740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11741 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11742 | { | |
11743 | arg2 = wxString_in_helper(obj1); | |
11744 | if (arg2 == NULL) SWIG_fail; | |
11745 | temp2 = True; | |
11746 | } | |
11747 | if (obj2) { | |
11748 | if ((SWIG_ConvertPtr(obj2,(void **) &arg6, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11749 | } | |
11750 | { | |
11751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11752 | (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
11753 | ||
11754 | wxPyEndAllowThreads(__tstate); | |
11755 | if (PyErr_Occurred()) SWIG_fail; | |
11756 | } | |
11757 | Py_INCREF(Py_None); resultobj = Py_None; | |
11758 | { | |
11759 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
11760 | resultobj = t_output_helper(resultobj,o); | |
11761 | } | |
11762 | { | |
11763 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
11764 | resultobj = t_output_helper(resultobj,o); | |
11765 | } | |
11766 | { | |
11767 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
11768 | resultobj = t_output_helper(resultobj,o); | |
11769 | } | |
11770 | { | |
11771 | if (temp2) | |
11772 | delete arg2; | |
11773 | } | |
11774 | return resultobj; | |
11775 | fail: | |
11776 | { | |
11777 | if (temp2) | |
11778 | delete arg2; | |
11779 | } | |
11780 | return NULL; | |
11781 | } | |
11782 | ||
11783 | ||
11784 | static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11785 | PyObject *resultobj; | |
11786 | wxDC *arg1 = (wxDC *) 0 ; | |
11787 | wxSize result; | |
11788 | PyObject * obj0 = 0 ; | |
11789 | char *kwnames[] = { | |
11790 | (char *) "self", NULL | |
11791 | }; | |
11792 | ||
11793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail; | |
11794 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11795 | { | |
11796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11797 | result = (arg1)->GetSize(); | |
11798 | ||
11799 | wxPyEndAllowThreads(__tstate); | |
11800 | if (PyErr_Occurred()) SWIG_fail; | |
11801 | } | |
11802 | { | |
11803 | wxSize * resultptr; | |
11804 | resultptr = new wxSize((wxSize &) result); | |
11805 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
11806 | } | |
11807 | return resultobj; | |
11808 | fail: | |
11809 | return NULL; | |
11810 | } | |
11811 | ||
11812 | ||
11813 | static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11814 | PyObject *resultobj; | |
11815 | wxDC *arg1 = (wxDC *) 0 ; | |
11816 | int *arg2 = (int *) 0 ; | |
11817 | int *arg3 = (int *) 0 ; | |
11818 | int temp2 ; | |
11819 | int temp3 ; | |
11820 | PyObject * obj0 = 0 ; | |
11821 | char *kwnames[] = { | |
11822 | (char *) "self", NULL | |
11823 | }; | |
11824 | ||
11825 | arg2 = &temp2; | |
11826 | arg3 = &temp3; | |
11827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail; | |
11828 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11829 | { | |
11830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11831 | (arg1)->GetSize(arg2,arg3); | |
11832 | ||
11833 | wxPyEndAllowThreads(__tstate); | |
11834 | if (PyErr_Occurred()) SWIG_fail; | |
11835 | } | |
11836 | Py_INCREF(Py_None); resultobj = Py_None; | |
11837 | { | |
11838 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
11839 | resultobj = t_output_helper(resultobj,o); | |
11840 | } | |
11841 | { | |
11842 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
11843 | resultobj = t_output_helper(resultobj,o); | |
11844 | } | |
11845 | return resultobj; | |
11846 | fail: | |
11847 | return NULL; | |
11848 | } | |
11849 | ||
11850 | ||
11851 | static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11852 | PyObject *resultobj; | |
11853 | wxDC *arg1 = (wxDC *) 0 ; | |
11854 | wxSize result; | |
11855 | PyObject * obj0 = 0 ; | |
11856 | char *kwnames[] = { | |
11857 | (char *) "self", NULL | |
11858 | }; | |
11859 | ||
11860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail; | |
11861 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11862 | { | |
11863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11864 | result = ((wxDC const *)arg1)->GetSizeMM(); | |
11865 | ||
11866 | wxPyEndAllowThreads(__tstate); | |
11867 | if (PyErr_Occurred()) SWIG_fail; | |
11868 | } | |
11869 | { | |
11870 | wxSize * resultptr; | |
11871 | resultptr = new wxSize((wxSize &) result); | |
11872 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
11873 | } | |
11874 | return resultobj; | |
11875 | fail: | |
11876 | return NULL; | |
11877 | } | |
11878 | ||
11879 | ||
11880 | static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11881 | PyObject *resultobj; | |
11882 | wxDC *arg1 = (wxDC *) 0 ; | |
11883 | int *arg2 = (int *) 0 ; | |
11884 | int *arg3 = (int *) 0 ; | |
11885 | int temp2 ; | |
11886 | int temp3 ; | |
11887 | PyObject * obj0 = 0 ; | |
11888 | char *kwnames[] = { | |
11889 | (char *) "self", NULL | |
11890 | }; | |
11891 | ||
11892 | arg2 = &temp2; | |
11893 | arg3 = &temp3; | |
11894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail; | |
11895 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11896 | { | |
11897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11898 | ((wxDC const *)arg1)->GetSizeMM(arg2,arg3); | |
11899 | ||
11900 | wxPyEndAllowThreads(__tstate); | |
11901 | if (PyErr_Occurred()) SWIG_fail; | |
11902 | } | |
11903 | Py_INCREF(Py_None); resultobj = Py_None; | |
11904 | { | |
11905 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
11906 | resultobj = t_output_helper(resultobj,o); | |
11907 | } | |
11908 | { | |
11909 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
11910 | resultobj = t_output_helper(resultobj,o); | |
11911 | } | |
11912 | return resultobj; | |
11913 | fail: | |
11914 | return NULL; | |
11915 | } | |
11916 | ||
11917 | ||
11918 | static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11919 | PyObject *resultobj; | |
11920 | wxDC *arg1 = (wxDC *) 0 ; | |
11921 | int arg2 ; | |
11922 | int result; | |
11923 | PyObject * obj0 = 0 ; | |
11924 | char *kwnames[] = { | |
11925 | (char *) "self",(char *) "x", NULL | |
11926 | }; | |
11927 | ||
11928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalX",kwnames,&obj0,&arg2)) goto fail; | |
11929 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11930 | { | |
11931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11932 | result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2); | |
11933 | ||
11934 | wxPyEndAllowThreads(__tstate); | |
11935 | if (PyErr_Occurred()) SWIG_fail; | |
11936 | } | |
11937 | resultobj = PyInt_FromLong((long)result); | |
11938 | return resultobj; | |
11939 | fail: | |
11940 | return NULL; | |
11941 | } | |
11942 | ||
11943 | ||
11944 | static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11945 | PyObject *resultobj; | |
11946 | wxDC *arg1 = (wxDC *) 0 ; | |
11947 | int arg2 ; | |
11948 | int result; | |
11949 | PyObject * obj0 = 0 ; | |
11950 | char *kwnames[] = { | |
11951 | (char *) "self",(char *) "y", NULL | |
11952 | }; | |
11953 | ||
11954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalY",kwnames,&obj0,&arg2)) goto fail; | |
11955 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11956 | { | |
11957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11958 | result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2); | |
11959 | ||
11960 | wxPyEndAllowThreads(__tstate); | |
11961 | if (PyErr_Occurred()) SWIG_fail; | |
11962 | } | |
11963 | resultobj = PyInt_FromLong((long)result); | |
11964 | return resultobj; | |
11965 | fail: | |
11966 | return NULL; | |
11967 | } | |
11968 | ||
11969 | ||
11970 | static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11971 | PyObject *resultobj; | |
11972 | wxDC *arg1 = (wxDC *) 0 ; | |
11973 | int arg2 ; | |
11974 | int result; | |
11975 | PyObject * obj0 = 0 ; | |
11976 | char *kwnames[] = { | |
11977 | (char *) "self",(char *) "x", NULL | |
11978 | }; | |
11979 | ||
11980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalXRel",kwnames,&obj0,&arg2)) goto fail; | |
11981 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11982 | { | |
11983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11984 | result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2); | |
11985 | ||
11986 | wxPyEndAllowThreads(__tstate); | |
11987 | if (PyErr_Occurred()) SWIG_fail; | |
11988 | } | |
11989 | resultobj = PyInt_FromLong((long)result); | |
11990 | return resultobj; | |
11991 | fail: | |
11992 | return NULL; | |
11993 | } | |
11994 | ||
11995 | ||
11996 | static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11997 | PyObject *resultobj; | |
11998 | wxDC *arg1 = (wxDC *) 0 ; | |
11999 | int arg2 ; | |
12000 | int result; | |
12001 | PyObject * obj0 = 0 ; | |
12002 | char *kwnames[] = { | |
12003 | (char *) "self",(char *) "y", NULL | |
12004 | }; | |
12005 | ||
12006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalYRel",kwnames,&obj0,&arg2)) goto fail; | |
12007 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12008 | { | |
12009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12010 | result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2); | |
12011 | ||
12012 | wxPyEndAllowThreads(__tstate); | |
12013 | if (PyErr_Occurred()) SWIG_fail; | |
12014 | } | |
12015 | resultobj = PyInt_FromLong((long)result); | |
12016 | return resultobj; | |
12017 | fail: | |
12018 | return NULL; | |
12019 | } | |
12020 | ||
12021 | ||
12022 | static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12023 | PyObject *resultobj; | |
12024 | wxDC *arg1 = (wxDC *) 0 ; | |
12025 | int arg2 ; | |
12026 | int result; | |
12027 | PyObject * obj0 = 0 ; | |
12028 | char *kwnames[] = { | |
12029 | (char *) "self",(char *) "x", NULL | |
12030 | }; | |
12031 | ||
12032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceX",kwnames,&obj0,&arg2)) 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)->LogicalToDeviceX(arg2); | |
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_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12049 | PyObject *resultobj; | |
12050 | wxDC *arg1 = (wxDC *) 0 ; | |
12051 | int arg2 ; | |
12052 | int result; | |
12053 | PyObject * obj0 = 0 ; | |
12054 | char *kwnames[] = { | |
12055 | (char *) "self",(char *) "y", NULL | |
12056 | }; | |
12057 | ||
12058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceY",kwnames,&obj0,&arg2)) goto fail; | |
12059 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12060 | { | |
12061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12062 | result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2); | |
12063 | ||
12064 | wxPyEndAllowThreads(__tstate); | |
12065 | if (PyErr_Occurred()) SWIG_fail; | |
12066 | } | |
12067 | resultobj = PyInt_FromLong((long)result); | |
12068 | return resultobj; | |
12069 | fail: | |
12070 | return NULL; | |
12071 | } | |
12072 | ||
12073 | ||
12074 | static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12075 | PyObject *resultobj; | |
12076 | wxDC *arg1 = (wxDC *) 0 ; | |
12077 | int arg2 ; | |
12078 | int result; | |
12079 | PyObject * obj0 = 0 ; | |
12080 | char *kwnames[] = { | |
12081 | (char *) "self",(char *) "x", NULL | |
12082 | }; | |
12083 | ||
12084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceXRel",kwnames,&obj0,&arg2)) goto fail; | |
12085 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12086 | { | |
12087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12088 | result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2); | |
12089 | ||
12090 | wxPyEndAllowThreads(__tstate); | |
12091 | if (PyErr_Occurred()) SWIG_fail; | |
12092 | } | |
12093 | resultobj = PyInt_FromLong((long)result); | |
12094 | return resultobj; | |
12095 | fail: | |
12096 | return NULL; | |
12097 | } | |
12098 | ||
12099 | ||
12100 | static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12101 | PyObject *resultobj; | |
12102 | wxDC *arg1 = (wxDC *) 0 ; | |
12103 | int arg2 ; | |
12104 | int result; | |
12105 | PyObject * obj0 = 0 ; | |
12106 | char *kwnames[] = { | |
12107 | (char *) "self",(char *) "y", NULL | |
12108 | }; | |
12109 | ||
12110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceYRel",kwnames,&obj0,&arg2)) goto fail; | |
12111 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12112 | { | |
12113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12114 | result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2); | |
12115 | ||
12116 | wxPyEndAllowThreads(__tstate); | |
12117 | if (PyErr_Occurred()) SWIG_fail; | |
12118 | } | |
12119 | resultobj = PyInt_FromLong((long)result); | |
12120 | return resultobj; | |
12121 | fail: | |
12122 | return NULL; | |
12123 | } | |
12124 | ||
12125 | ||
12126 | static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12127 | PyObject *resultobj; | |
12128 | wxDC *arg1 = (wxDC *) 0 ; | |
12129 | bool result; | |
12130 | PyObject * obj0 = 0 ; | |
12131 | char *kwnames[] = { | |
12132 | (char *) "self", NULL | |
12133 | }; | |
12134 | ||
12135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail; | |
12136 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12137 | { | |
12138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12139 | result = (bool)((wxDC const *)arg1)->CanDrawBitmap(); | |
12140 | ||
12141 | wxPyEndAllowThreads(__tstate); | |
12142 | if (PyErr_Occurred()) SWIG_fail; | |
12143 | } | |
12144 | resultobj = PyInt_FromLong((long)result); | |
12145 | return resultobj; | |
12146 | fail: | |
12147 | return NULL; | |
12148 | } | |
12149 | ||
12150 | ||
12151 | static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12152 | PyObject *resultobj; | |
12153 | wxDC *arg1 = (wxDC *) 0 ; | |
12154 | bool result; | |
12155 | PyObject * obj0 = 0 ; | |
12156 | char *kwnames[] = { | |
12157 | (char *) "self", NULL | |
12158 | }; | |
12159 | ||
12160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail; | |
12161 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12162 | { | |
12163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12164 | result = (bool)((wxDC const *)arg1)->CanGetTextExtent(); | |
12165 | ||
12166 | wxPyEndAllowThreads(__tstate); | |
12167 | if (PyErr_Occurred()) SWIG_fail; | |
12168 | } | |
12169 | resultobj = PyInt_FromLong((long)result); | |
12170 | return resultobj; | |
12171 | fail: | |
12172 | return NULL; | |
12173 | } | |
12174 | ||
12175 | ||
12176 | static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12177 | PyObject *resultobj; | |
12178 | wxDC *arg1 = (wxDC *) 0 ; | |
12179 | int result; | |
12180 | PyObject * obj0 = 0 ; | |
12181 | char *kwnames[] = { | |
12182 | (char *) "self", NULL | |
12183 | }; | |
12184 | ||
12185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) 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 | result = (int)((wxDC const *)arg1)->GetDepth(); | |
12190 | ||
12191 | wxPyEndAllowThreads(__tstate); | |
12192 | if (PyErr_Occurred()) SWIG_fail; | |
12193 | } | |
12194 | resultobj = PyInt_FromLong((long)result); | |
12195 | return resultobj; | |
12196 | fail: | |
12197 | return NULL; | |
12198 | } | |
12199 | ||
12200 | ||
12201 | static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12202 | PyObject *resultobj; | |
12203 | wxDC *arg1 = (wxDC *) 0 ; | |
12204 | wxSize result; | |
12205 | PyObject * obj0 = 0 ; | |
12206 | char *kwnames[] = { | |
12207 | (char *) "self", NULL | |
12208 | }; | |
12209 | ||
12210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail; | |
12211 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12212 | { | |
12213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12214 | result = ((wxDC const *)arg1)->GetPPI(); | |
12215 | ||
12216 | wxPyEndAllowThreads(__tstate); | |
12217 | if (PyErr_Occurred()) SWIG_fail; | |
12218 | } | |
12219 | { | |
12220 | wxSize * resultptr; | |
12221 | resultptr = new wxSize((wxSize &) result); | |
12222 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
12223 | } | |
12224 | return resultobj; | |
12225 | fail: | |
12226 | return NULL; | |
12227 | } | |
12228 | ||
12229 | ||
12230 | static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12231 | PyObject *resultobj; | |
12232 | wxDC *arg1 = (wxDC *) 0 ; | |
12233 | bool result; | |
12234 | PyObject * obj0 = 0 ; | |
12235 | char *kwnames[] = { | |
12236 | (char *) "self", NULL | |
12237 | }; | |
12238 | ||
12239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail; | |
12240 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12241 | { | |
12242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12243 | result = (bool)((wxDC const *)arg1)->Ok(); | |
12244 | ||
12245 | wxPyEndAllowThreads(__tstate); | |
12246 | if (PyErr_Occurred()) SWIG_fail; | |
12247 | } | |
12248 | resultobj = PyInt_FromLong((long)result); | |
12249 | return resultobj; | |
12250 | fail: | |
12251 | return NULL; | |
12252 | } | |
12253 | ||
12254 | ||
12255 | static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12256 | PyObject *resultobj; | |
12257 | wxDC *arg1 = (wxDC *) 0 ; | |
12258 | int result; | |
12259 | PyObject * obj0 = 0 ; | |
12260 | char *kwnames[] = { | |
12261 | (char *) "self", NULL | |
12262 | }; | |
12263 | ||
12264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail; | |
12265 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12266 | { | |
12267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12268 | result = (int)((wxDC const *)arg1)->GetBackgroundMode(); | |
12269 | ||
12270 | wxPyEndAllowThreads(__tstate); | |
12271 | if (PyErr_Occurred()) SWIG_fail; | |
12272 | } | |
12273 | resultobj = PyInt_FromLong((long)result); | |
12274 | return resultobj; | |
12275 | fail: | |
12276 | return NULL; | |
12277 | } | |
12278 | ||
12279 | ||
12280 | static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12281 | PyObject *resultobj; | |
12282 | wxDC *arg1 = (wxDC *) 0 ; | |
12283 | wxBrush *result; | |
12284 | PyObject * obj0 = 0 ; | |
12285 | char *kwnames[] = { | |
12286 | (char *) "self", NULL | |
12287 | }; | |
12288 | ||
12289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail; | |
12290 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12291 | { | |
12292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12293 | { | |
12294 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground(); | |
12295 | result = (wxBrush *) &_result_ref; | |
12296 | } | |
12297 | ||
12298 | wxPyEndAllowThreads(__tstate); | |
12299 | if (PyErr_Occurred()) SWIG_fail; | |
12300 | } | |
12301 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0); | |
12302 | return resultobj; | |
12303 | fail: | |
12304 | return NULL; | |
12305 | } | |
12306 | ||
12307 | ||
12308 | static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12309 | PyObject *resultobj; | |
12310 | wxDC *arg1 = (wxDC *) 0 ; | |
12311 | wxBrush *result; | |
12312 | PyObject * obj0 = 0 ; | |
12313 | char *kwnames[] = { | |
12314 | (char *) "self", NULL | |
12315 | }; | |
12316 | ||
12317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail; | |
12318 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12319 | { | |
12320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12321 | { | |
12322 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush(); | |
12323 | result = (wxBrush *) &_result_ref; | |
12324 | } | |
12325 | ||
12326 | wxPyEndAllowThreads(__tstate); | |
12327 | if (PyErr_Occurred()) SWIG_fail; | |
12328 | } | |
12329 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0); | |
12330 | return resultobj; | |
12331 | fail: | |
12332 | return NULL; | |
12333 | } | |
12334 | ||
12335 | ||
12336 | static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12337 | PyObject *resultobj; | |
12338 | wxDC *arg1 = (wxDC *) 0 ; | |
12339 | wxFont *result; | |
12340 | PyObject * obj0 = 0 ; | |
12341 | char *kwnames[] = { | |
12342 | (char *) "self", NULL | |
12343 | }; | |
12344 | ||
12345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail; | |
12346 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12347 | { | |
12348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12349 | { | |
12350 | wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont(); | |
12351 | result = (wxFont *) &_result_ref; | |
12352 | } | |
12353 | ||
12354 | wxPyEndAllowThreads(__tstate); | |
12355 | if (PyErr_Occurred()) SWIG_fail; | |
12356 | } | |
12357 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0); | |
12358 | return resultobj; | |
12359 | fail: | |
12360 | return NULL; | |
12361 | } | |
12362 | ||
12363 | ||
12364 | static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12365 | PyObject *resultobj; | |
12366 | wxDC *arg1 = (wxDC *) 0 ; | |
12367 | wxPen *result; | |
12368 | PyObject * obj0 = 0 ; | |
12369 | char *kwnames[] = { | |
12370 | (char *) "self", NULL | |
12371 | }; | |
12372 | ||
12373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail; | |
12374 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12375 | { | |
12376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12377 | { | |
12378 | wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen(); | |
12379 | result = (wxPen *) &_result_ref; | |
12380 | } | |
12381 | ||
12382 | wxPyEndAllowThreads(__tstate); | |
12383 | if (PyErr_Occurred()) SWIG_fail; | |
12384 | } | |
12385 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0); | |
12386 | return resultobj; | |
12387 | fail: | |
12388 | return NULL; | |
12389 | } | |
12390 | ||
12391 | ||
12392 | static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12393 | PyObject *resultobj; | |
12394 | wxDC *arg1 = (wxDC *) 0 ; | |
12395 | wxColour *result; | |
12396 | PyObject * obj0 = 0 ; | |
12397 | char *kwnames[] = { | |
12398 | (char *) "self", NULL | |
12399 | }; | |
12400 | ||
12401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail; | |
12402 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12403 | { | |
12404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12405 | { | |
12406 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground(); | |
12407 | result = (wxColour *) &_result_ref; | |
12408 | } | |
12409 | ||
12410 | wxPyEndAllowThreads(__tstate); | |
12411 | if (PyErr_Occurred()) SWIG_fail; | |
12412 | } | |
12413 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0); | |
12414 | return resultobj; | |
12415 | fail: | |
12416 | return NULL; | |
12417 | } | |
12418 | ||
12419 | ||
12420 | static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12421 | PyObject *resultobj; | |
12422 | wxDC *arg1 = (wxDC *) 0 ; | |
12423 | wxColour *result; | |
12424 | PyObject * obj0 = 0 ; | |
12425 | char *kwnames[] = { | |
12426 | (char *) "self", NULL | |
12427 | }; | |
12428 | ||
12429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail; | |
12430 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12431 | { | |
12432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12433 | { | |
12434 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground(); | |
12435 | result = (wxColour *) &_result_ref; | |
12436 | } | |
12437 | ||
12438 | wxPyEndAllowThreads(__tstate); | |
12439 | if (PyErr_Occurred()) SWIG_fail; | |
12440 | } | |
12441 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0); | |
12442 | return resultobj; | |
12443 | fail: | |
12444 | return NULL; | |
12445 | } | |
12446 | ||
12447 | ||
12448 | static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12449 | PyObject *resultobj; | |
12450 | wxDC *arg1 = (wxDC *) 0 ; | |
12451 | wxColour *arg2 = 0 ; | |
12452 | wxColour temp2 ; | |
12453 | PyObject * obj0 = 0 ; | |
12454 | PyObject * obj1 = 0 ; | |
12455 | char *kwnames[] = { | |
12456 | (char *) "self",(char *) "colour", NULL | |
12457 | }; | |
12458 | ||
12459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail; | |
12460 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12461 | { | |
12462 | arg2 = &temp2; | |
12463 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
12464 | } | |
12465 | { | |
12466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12467 | (arg1)->SetTextForeground((wxColour const &)*arg2); | |
12468 | ||
12469 | wxPyEndAllowThreads(__tstate); | |
12470 | if (PyErr_Occurred()) SWIG_fail; | |
12471 | } | |
12472 | Py_INCREF(Py_None); resultobj = Py_None; | |
12473 | return resultobj; | |
12474 | fail: | |
12475 | return NULL; | |
12476 | } | |
12477 | ||
12478 | ||
12479 | static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12480 | PyObject *resultobj; | |
12481 | wxDC *arg1 = (wxDC *) 0 ; | |
12482 | wxColour *arg2 = 0 ; | |
12483 | wxColour temp2 ; | |
12484 | PyObject * obj0 = 0 ; | |
12485 | PyObject * obj1 = 0 ; | |
12486 | char *kwnames[] = { | |
12487 | (char *) "self",(char *) "colour", NULL | |
12488 | }; | |
12489 | ||
12490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail; | |
12491 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12492 | { | |
12493 | arg2 = &temp2; | |
12494 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
12495 | } | |
12496 | { | |
12497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12498 | (arg1)->SetTextBackground((wxColour const &)*arg2); | |
12499 | ||
12500 | wxPyEndAllowThreads(__tstate); | |
12501 | if (PyErr_Occurred()) SWIG_fail; | |
12502 | } | |
12503 | Py_INCREF(Py_None); resultobj = Py_None; | |
12504 | return resultobj; | |
12505 | fail: | |
12506 | return NULL; | |
12507 | } | |
12508 | ||
12509 | ||
12510 | static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12511 | PyObject *resultobj; | |
12512 | wxDC *arg1 = (wxDC *) 0 ; | |
12513 | int result; | |
12514 | PyObject * obj0 = 0 ; | |
12515 | char *kwnames[] = { | |
12516 | (char *) "self", NULL | |
12517 | }; | |
12518 | ||
12519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail; | |
12520 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12521 | { | |
12522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12523 | result = (int)((wxDC const *)arg1)->GetMapMode(); | |
12524 | ||
12525 | wxPyEndAllowThreads(__tstate); | |
12526 | if (PyErr_Occurred()) SWIG_fail; | |
12527 | } | |
12528 | resultobj = PyInt_FromLong((long)result); | |
12529 | return resultobj; | |
12530 | fail: | |
12531 | return NULL; | |
12532 | } | |
12533 | ||
12534 | ||
12535 | static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12536 | PyObject *resultobj; | |
12537 | wxDC *arg1 = (wxDC *) 0 ; | |
12538 | int arg2 ; | |
12539 | PyObject * obj0 = 0 ; | |
12540 | char *kwnames[] = { | |
12541 | (char *) "self",(char *) "mode", NULL | |
12542 | }; | |
12543 | ||
12544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_SetMapMode",kwnames,&obj0,&arg2)) goto fail; | |
12545 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12546 | { | |
12547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12548 | (arg1)->SetMapMode(arg2); | |
12549 | ||
12550 | wxPyEndAllowThreads(__tstate); | |
12551 | if (PyErr_Occurred()) SWIG_fail; | |
12552 | } | |
12553 | Py_INCREF(Py_None); resultobj = Py_None; | |
12554 | return resultobj; | |
12555 | fail: | |
12556 | return NULL; | |
12557 | } | |
12558 | ||
12559 | ||
12560 | static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12561 | PyObject *resultobj; | |
12562 | wxDC *arg1 = (wxDC *) 0 ; | |
12563 | double *arg2 = (double *) 0 ; | |
12564 | double *arg3 = (double *) 0 ; | |
12565 | double temp2 ; | |
12566 | double temp3 ; | |
12567 | PyObject * obj0 = 0 ; | |
12568 | char *kwnames[] = { | |
12569 | (char *) "self", NULL | |
12570 | }; | |
12571 | ||
12572 | arg2 = &temp2; | |
12573 | arg3 = &temp3; | |
12574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail; | |
12575 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12576 | { | |
12577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12578 | ((wxDC const *)arg1)->GetUserScale(arg2,arg3); | |
12579 | ||
12580 | wxPyEndAllowThreads(__tstate); | |
12581 | if (PyErr_Occurred()) SWIG_fail; | |
12582 | } | |
12583 | Py_INCREF(Py_None); resultobj = Py_None; | |
12584 | { | |
12585 | PyObject *o = PyFloat_FromDouble((double) (*arg2)); | |
12586 | resultobj = t_output_helper(resultobj,o); | |
12587 | } | |
12588 | { | |
12589 | PyObject *o = PyFloat_FromDouble((double) (*arg3)); | |
12590 | resultobj = t_output_helper(resultobj,o); | |
12591 | } | |
12592 | return resultobj; | |
12593 | fail: | |
12594 | return NULL; | |
12595 | } | |
12596 | ||
12597 | ||
12598 | static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12599 | PyObject *resultobj; | |
12600 | wxDC *arg1 = (wxDC *) 0 ; | |
12601 | double arg2 ; | |
12602 | double arg3 ; | |
12603 | PyObject * obj0 = 0 ; | |
12604 | char *kwnames[] = { | |
12605 | (char *) "self",(char *) "x",(char *) "y", NULL | |
12606 | }; | |
12607 | ||
12608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:DC_SetUserScale",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
12609 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12610 | { | |
12611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12612 | (arg1)->SetUserScale(arg2,arg3); | |
12613 | ||
12614 | wxPyEndAllowThreads(__tstate); | |
12615 | if (PyErr_Occurred()) SWIG_fail; | |
12616 | } | |
12617 | Py_INCREF(Py_None); resultobj = Py_None; | |
12618 | return resultobj; | |
12619 | fail: | |
12620 | return NULL; | |
12621 | } | |
12622 | ||
12623 | ||
12624 | static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12625 | PyObject *resultobj; | |
12626 | wxDC *arg1 = (wxDC *) 0 ; | |
12627 | double *arg2 = (double *) 0 ; | |
12628 | double *arg3 = (double *) 0 ; | |
12629 | double temp2 ; | |
12630 | double temp3 ; | |
12631 | PyObject * obj0 = 0 ; | |
12632 | char *kwnames[] = { | |
12633 | (char *) "self", NULL | |
12634 | }; | |
12635 | ||
12636 | arg2 = &temp2; | |
12637 | arg3 = &temp3; | |
12638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail; | |
12639 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12640 | { | |
12641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12642 | (arg1)->GetLogicalScale(arg2,arg3); | |
12643 | ||
12644 | wxPyEndAllowThreads(__tstate); | |
12645 | if (PyErr_Occurred()) SWIG_fail; | |
12646 | } | |
12647 | Py_INCREF(Py_None); resultobj = Py_None; | |
12648 | { | |
12649 | PyObject *o = PyFloat_FromDouble((double) (*arg2)); | |
12650 | resultobj = t_output_helper(resultobj,o); | |
12651 | } | |
12652 | { | |
12653 | PyObject *o = PyFloat_FromDouble((double) (*arg3)); | |
12654 | resultobj = t_output_helper(resultobj,o); | |
12655 | } | |
12656 | return resultobj; | |
12657 | fail: | |
12658 | return NULL; | |
12659 | } | |
12660 | ||
12661 | ||
12662 | static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12663 | PyObject *resultobj; | |
12664 | wxDC *arg1 = (wxDC *) 0 ; | |
12665 | double arg2 ; | |
12666 | double arg3 ; | |
12667 | PyObject * obj0 = 0 ; | |
12668 | char *kwnames[] = { | |
12669 | (char *) "self",(char *) "x",(char *) "y", NULL | |
12670 | }; | |
12671 | ||
12672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:DC_SetLogicalScale",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
12673 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12674 | { | |
12675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12676 | (arg1)->SetLogicalScale(arg2,arg3); | |
12677 | ||
12678 | wxPyEndAllowThreads(__tstate); | |
12679 | if (PyErr_Occurred()) SWIG_fail; | |
12680 | } | |
12681 | Py_INCREF(Py_None); resultobj = Py_None; | |
12682 | return resultobj; | |
12683 | fail: | |
12684 | return NULL; | |
12685 | } | |
12686 | ||
12687 | ||
12688 | static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12689 | PyObject *resultobj; | |
12690 | wxDC *arg1 = (wxDC *) 0 ; | |
12691 | wxPoint result; | |
12692 | PyObject * obj0 = 0 ; | |
12693 | char *kwnames[] = { | |
12694 | (char *) "self", NULL | |
12695 | }; | |
12696 | ||
12697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail; | |
12698 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12699 | { | |
12700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12701 | result = ((wxDC const *)arg1)->GetLogicalOrigin(); | |
12702 | ||
12703 | wxPyEndAllowThreads(__tstate); | |
12704 | if (PyErr_Occurred()) SWIG_fail; | |
12705 | } | |
12706 | { | |
12707 | wxPoint * resultptr; | |
12708 | resultptr = new wxPoint((wxPoint &) result); | |
12709 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
12710 | } | |
12711 | return resultobj; | |
12712 | fail: | |
12713 | return NULL; | |
12714 | } | |
12715 | ||
12716 | ||
12717 | static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12718 | PyObject *resultobj; | |
12719 | wxDC *arg1 = (wxDC *) 0 ; | |
12720 | int *arg2 = (int *) 0 ; | |
12721 | int *arg3 = (int *) 0 ; | |
12722 | int temp2 ; | |
12723 | int temp3 ; | |
12724 | PyObject * obj0 = 0 ; | |
12725 | char *kwnames[] = { | |
12726 | (char *) "self", NULL | |
12727 | }; | |
12728 | ||
12729 | arg2 = &temp2; | |
12730 | arg3 = &temp3; | |
12731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail; | |
12732 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12733 | { | |
12734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12735 | ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3); | |
12736 | ||
12737 | wxPyEndAllowThreads(__tstate); | |
12738 | if (PyErr_Occurred()) SWIG_fail; | |
12739 | } | |
12740 | Py_INCREF(Py_None); resultobj = Py_None; | |
12741 | { | |
12742 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
12743 | resultobj = t_output_helper(resultobj,o); | |
12744 | } | |
12745 | { | |
12746 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12747 | resultobj = t_output_helper(resultobj,o); | |
12748 | } | |
12749 | return resultobj; | |
12750 | fail: | |
12751 | return NULL; | |
12752 | } | |
12753 | ||
12754 | ||
12755 | static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12756 | PyObject *resultobj; | |
12757 | wxDC *arg1 = (wxDC *) 0 ; | |
12758 | int arg2 ; | |
12759 | int arg3 ; | |
12760 | PyObject * obj0 = 0 ; | |
12761 | char *kwnames[] = { | |
12762 | (char *) "self",(char *) "x",(char *) "y", NULL | |
12763 | }; | |
12764 | ||
12765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_SetLogicalOrigin",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
12766 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12767 | { | |
12768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12769 | (arg1)->SetLogicalOrigin(arg2,arg3); | |
12770 | ||
12771 | wxPyEndAllowThreads(__tstate); | |
12772 | if (PyErr_Occurred()) SWIG_fail; | |
12773 | } | |
12774 | Py_INCREF(Py_None); resultobj = Py_None; | |
12775 | return resultobj; | |
12776 | fail: | |
12777 | return NULL; | |
12778 | } | |
12779 | ||
12780 | ||
12781 | static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12782 | PyObject *resultobj; | |
12783 | wxDC *arg1 = (wxDC *) 0 ; | |
12784 | wxPoint result; | |
12785 | PyObject * obj0 = 0 ; | |
12786 | char *kwnames[] = { | |
12787 | (char *) "self", NULL | |
12788 | }; | |
12789 | ||
12790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail; | |
12791 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12792 | { | |
12793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12794 | result = ((wxDC const *)arg1)->GetDeviceOrigin(); | |
12795 | ||
12796 | wxPyEndAllowThreads(__tstate); | |
12797 | if (PyErr_Occurred()) SWIG_fail; | |
12798 | } | |
12799 | { | |
12800 | wxPoint * resultptr; | |
12801 | resultptr = new wxPoint((wxPoint &) result); | |
12802 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
12803 | } | |
12804 | return resultobj; | |
12805 | fail: | |
12806 | return NULL; | |
12807 | } | |
12808 | ||
12809 | ||
12810 | static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12811 | PyObject *resultobj; | |
12812 | wxDC *arg1 = (wxDC *) 0 ; | |
12813 | int *arg2 = (int *) 0 ; | |
12814 | int *arg3 = (int *) 0 ; | |
12815 | int temp2 ; | |
12816 | int temp3 ; | |
12817 | PyObject * obj0 = 0 ; | |
12818 | char *kwnames[] = { | |
12819 | (char *) "self", NULL | |
12820 | }; | |
12821 | ||
12822 | arg2 = &temp2; | |
12823 | arg3 = &temp3; | |
12824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail; | |
12825 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12826 | { | |
12827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12828 | ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3); | |
12829 | ||
12830 | wxPyEndAllowThreads(__tstate); | |
12831 | if (PyErr_Occurred()) SWIG_fail; | |
12832 | } | |
12833 | Py_INCREF(Py_None); resultobj = Py_None; | |
12834 | { | |
12835 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
12836 | resultobj = t_output_helper(resultobj,o); | |
12837 | } | |
12838 | { | |
12839 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12840 | resultobj = t_output_helper(resultobj,o); | |
12841 | } | |
12842 | return resultobj; | |
12843 | fail: | |
12844 | return NULL; | |
12845 | } | |
12846 | ||
12847 | ||
12848 | static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12849 | PyObject *resultobj; | |
12850 | wxDC *arg1 = (wxDC *) 0 ; | |
12851 | int arg2 ; | |
12852 | int arg3 ; | |
12853 | PyObject * obj0 = 0 ; | |
12854 | char *kwnames[] = { | |
12855 | (char *) "self",(char *) "x",(char *) "y", NULL | |
12856 | }; | |
12857 | ||
12858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_SetDeviceOrigin",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
12859 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12860 | { | |
12861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12862 | (arg1)->SetDeviceOrigin(arg2,arg3); | |
12863 | ||
12864 | wxPyEndAllowThreads(__tstate); | |
12865 | if (PyErr_Occurred()) SWIG_fail; | |
12866 | } | |
12867 | Py_INCREF(Py_None); resultobj = Py_None; | |
12868 | return resultobj; | |
12869 | fail: | |
12870 | return NULL; | |
12871 | } | |
12872 | ||
12873 | ||
12874 | static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12875 | PyObject *resultobj; | |
12876 | wxDC *arg1 = (wxDC *) 0 ; | |
12877 | bool arg2 ; | |
12878 | bool arg3 ; | |
12879 | PyObject * obj0 = 0 ; | |
12880 | PyObject * obj1 = 0 ; | |
12881 | PyObject * obj2 = 0 ; | |
12882 | char *kwnames[] = { | |
12883 | (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL | |
12884 | }; | |
12885 | ||
12886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12887 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12888 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
12889 | if (PyErr_Occurred()) SWIG_fail; | |
12890 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
12891 | if (PyErr_Occurred()) SWIG_fail; | |
12892 | { | |
12893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12894 | (arg1)->SetAxisOrientation(arg2,arg3); | |
12895 | ||
12896 | wxPyEndAllowThreads(__tstate); | |
12897 | if (PyErr_Occurred()) SWIG_fail; | |
12898 | } | |
12899 | Py_INCREF(Py_None); resultobj = Py_None; | |
12900 | return resultobj; | |
12901 | fail: | |
12902 | return NULL; | |
12903 | } | |
12904 | ||
12905 | ||
12906 | static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12907 | PyObject *resultobj; | |
12908 | wxDC *arg1 = (wxDC *) 0 ; | |
12909 | int result; | |
12910 | PyObject * obj0 = 0 ; | |
12911 | char *kwnames[] = { | |
12912 | (char *) "self", NULL | |
12913 | }; | |
12914 | ||
12915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail; | |
12916 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12917 | { | |
12918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12919 | result = (int)((wxDC const *)arg1)->GetLogicalFunction(); | |
12920 | ||
12921 | wxPyEndAllowThreads(__tstate); | |
12922 | if (PyErr_Occurred()) SWIG_fail; | |
12923 | } | |
12924 | resultobj = PyInt_FromLong((long)result); | |
12925 | return resultobj; | |
12926 | fail: | |
12927 | return NULL; | |
12928 | } | |
12929 | ||
12930 | ||
12931 | static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12932 | PyObject *resultobj; | |
12933 | wxDC *arg1 = (wxDC *) 0 ; | |
12934 | int arg2 ; | |
12935 | PyObject * obj0 = 0 ; | |
12936 | char *kwnames[] = { | |
12937 | (char *) "self",(char *) "function", NULL | |
12938 | }; | |
12939 | ||
12940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_SetLogicalFunction",kwnames,&obj0,&arg2)) goto fail; | |
12941 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12942 | { | |
12943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12944 | (arg1)->SetLogicalFunction(arg2); | |
12945 | ||
12946 | wxPyEndAllowThreads(__tstate); | |
12947 | if (PyErr_Occurred()) SWIG_fail; | |
12948 | } | |
12949 | Py_INCREF(Py_None); resultobj = Py_None; | |
12950 | return resultobj; | |
12951 | fail: | |
12952 | return NULL; | |
12953 | } | |
12954 | ||
12955 | ||
12956 | static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12957 | PyObject *resultobj; | |
12958 | wxDC *arg1 = (wxDC *) 0 ; | |
12959 | bool arg2 ; | |
12960 | PyObject * obj0 = 0 ; | |
12961 | PyObject * obj1 = 0 ; | |
12962 | char *kwnames[] = { | |
12963 | (char *) "self",(char *) "opt", NULL | |
12964 | }; | |
12965 | ||
12966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail; | |
12967 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12968 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
12969 | if (PyErr_Occurred()) SWIG_fail; | |
12970 | { | |
12971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12972 | (arg1)->SetOptimization(arg2); | |
12973 | ||
12974 | wxPyEndAllowThreads(__tstate); | |
12975 | if (PyErr_Occurred()) SWIG_fail; | |
12976 | } | |
12977 | Py_INCREF(Py_None); resultobj = Py_None; | |
12978 | return resultobj; | |
12979 | fail: | |
12980 | return NULL; | |
12981 | } | |
12982 | ||
12983 | ||
12984 | static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12985 | PyObject *resultobj; | |
12986 | wxDC *arg1 = (wxDC *) 0 ; | |
12987 | bool result; | |
12988 | PyObject * obj0 = 0 ; | |
12989 | char *kwnames[] = { | |
12990 | (char *) "self", NULL | |
12991 | }; | |
12992 | ||
12993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail; | |
12994 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12995 | { | |
12996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12997 | result = (bool)(arg1)->GetOptimization(); | |
12998 | ||
12999 | wxPyEndAllowThreads(__tstate); | |
13000 | if (PyErr_Occurred()) SWIG_fail; | |
13001 | } | |
13002 | resultobj = PyInt_FromLong((long)result); | |
13003 | return resultobj; | |
13004 | fail: | |
13005 | return NULL; | |
13006 | } | |
13007 | ||
13008 | ||
13009 | static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13010 | PyObject *resultobj; | |
13011 | wxDC *arg1 = (wxDC *) 0 ; | |
13012 | int arg2 ; | |
13013 | int arg3 ; | |
13014 | PyObject * obj0 = 0 ; | |
13015 | char *kwnames[] = { | |
13016 | (char *) "self",(char *) "x",(char *) "y", NULL | |
13017 | }; | |
13018 | ||
13019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_CalcBoundingBox",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
13020 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13021 | { | |
13022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13023 | (arg1)->CalcBoundingBox(arg2,arg3); | |
13024 | ||
13025 | wxPyEndAllowThreads(__tstate); | |
13026 | if (PyErr_Occurred()) SWIG_fail; | |
13027 | } | |
13028 | Py_INCREF(Py_None); resultobj = Py_None; | |
13029 | return resultobj; | |
13030 | fail: | |
13031 | return NULL; | |
13032 | } | |
13033 | ||
13034 | ||
13035 | static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13036 | PyObject *resultobj; | |
13037 | wxDC *arg1 = (wxDC *) 0 ; | |
13038 | PyObject * obj0 = 0 ; | |
13039 | char *kwnames[] = { | |
13040 | (char *) "self", NULL | |
13041 | }; | |
13042 | ||
13043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail; | |
13044 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13045 | { | |
13046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13047 | (arg1)->ResetBoundingBox(); | |
13048 | ||
13049 | wxPyEndAllowThreads(__tstate); | |
13050 | if (PyErr_Occurred()) SWIG_fail; | |
13051 | } | |
13052 | Py_INCREF(Py_None); resultobj = Py_None; | |
13053 | return resultobj; | |
13054 | fail: | |
13055 | return NULL; | |
13056 | } | |
13057 | ||
13058 | ||
13059 | static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13060 | PyObject *resultobj; | |
13061 | wxDC *arg1 = (wxDC *) 0 ; | |
13062 | int result; | |
13063 | PyObject * obj0 = 0 ; | |
13064 | char *kwnames[] = { | |
13065 | (char *) "self", NULL | |
13066 | }; | |
13067 | ||
13068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail; | |
13069 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13070 | { | |
13071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13072 | result = (int)((wxDC const *)arg1)->MinX(); | |
13073 | ||
13074 | wxPyEndAllowThreads(__tstate); | |
13075 | if (PyErr_Occurred()) SWIG_fail; | |
13076 | } | |
13077 | resultobj = PyInt_FromLong((long)result); | |
13078 | return resultobj; | |
13079 | fail: | |
13080 | return NULL; | |
13081 | } | |
13082 | ||
13083 | ||
13084 | static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13085 | PyObject *resultobj; | |
13086 | wxDC *arg1 = (wxDC *) 0 ; | |
13087 | int result; | |
13088 | PyObject * obj0 = 0 ; | |
13089 | char *kwnames[] = { | |
13090 | (char *) "self", NULL | |
13091 | }; | |
13092 | ||
13093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail; | |
13094 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13095 | { | |
13096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13097 | result = (int)((wxDC const *)arg1)->MaxX(); | |
13098 | ||
13099 | wxPyEndAllowThreads(__tstate); | |
13100 | if (PyErr_Occurred()) SWIG_fail; | |
13101 | } | |
13102 | resultobj = PyInt_FromLong((long)result); | |
13103 | return resultobj; | |
13104 | fail: | |
13105 | return NULL; | |
13106 | } | |
13107 | ||
13108 | ||
13109 | static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13110 | PyObject *resultobj; | |
13111 | wxDC *arg1 = (wxDC *) 0 ; | |
13112 | int result; | |
13113 | PyObject * obj0 = 0 ; | |
13114 | char *kwnames[] = { | |
13115 | (char *) "self", NULL | |
13116 | }; | |
13117 | ||
13118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail; | |
13119 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13120 | { | |
13121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13122 | result = (int)((wxDC const *)arg1)->MinY(); | |
13123 | ||
13124 | wxPyEndAllowThreads(__tstate); | |
13125 | if (PyErr_Occurred()) SWIG_fail; | |
13126 | } | |
13127 | resultobj = PyInt_FromLong((long)result); | |
13128 | return resultobj; | |
13129 | fail: | |
13130 | return NULL; | |
13131 | } | |
13132 | ||
13133 | ||
13134 | static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13135 | PyObject *resultobj; | |
13136 | wxDC *arg1 = (wxDC *) 0 ; | |
13137 | int result; | |
13138 | PyObject * obj0 = 0 ; | |
13139 | char *kwnames[] = { | |
13140 | (char *) "self", NULL | |
13141 | }; | |
13142 | ||
13143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail; | |
13144 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13145 | { | |
13146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13147 | result = (int)((wxDC const *)arg1)->MaxY(); | |
13148 | ||
13149 | wxPyEndAllowThreads(__tstate); | |
13150 | if (PyErr_Occurred()) SWIG_fail; | |
13151 | } | |
13152 | resultobj = PyInt_FromLong((long)result); | |
13153 | return resultobj; | |
13154 | fail: | |
13155 | return NULL; | |
13156 | } | |
13157 | ||
13158 | ||
13159 | static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13160 | PyObject *resultobj; | |
13161 | wxDC *arg1 = (wxDC *) 0 ; | |
13162 | int *arg2 = (int *) 0 ; | |
13163 | int *arg3 = (int *) 0 ; | |
13164 | int *arg4 = (int *) 0 ; | |
13165 | int *arg5 = (int *) 0 ; | |
13166 | int temp2 ; | |
13167 | int temp3 ; | |
13168 | int temp4 ; | |
13169 | int temp5 ; | |
13170 | PyObject * obj0 = 0 ; | |
13171 | char *kwnames[] = { | |
13172 | (char *) "self", NULL | |
13173 | }; | |
13174 | ||
13175 | arg2 = &temp2; | |
13176 | arg3 = &temp3; | |
13177 | arg4 = &temp4; | |
13178 | arg5 = &temp5; | |
13179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail; | |
13180 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13181 | { | |
13182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13183 | wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5); | |
13184 | ||
13185 | wxPyEndAllowThreads(__tstate); | |
13186 | if (PyErr_Occurred()) SWIG_fail; | |
13187 | } | |
13188 | Py_INCREF(Py_None); resultobj = Py_None; | |
13189 | { | |
13190 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
13191 | resultobj = t_output_helper(resultobj,o); | |
13192 | } | |
13193 | { | |
13194 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13195 | resultobj = t_output_helper(resultobj,o); | |
13196 | } | |
13197 | { | |
13198 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
13199 | resultobj = t_output_helper(resultobj,o); | |
13200 | } | |
13201 | { | |
13202 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
13203 | resultobj = t_output_helper(resultobj,o); | |
13204 | } | |
13205 | return resultobj; | |
13206 | fail: | |
13207 | return NULL; | |
13208 | } | |
13209 | ||
13210 | ||
13211 | static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13212 | PyObject *resultobj; | |
13213 | wxDC *arg1 = (wxDC *) 0 ; | |
13214 | PyObject *arg2 = (PyObject *) 0 ; | |
13215 | PyObject *arg3 = (PyObject *) 0 ; | |
13216 | PyObject *arg4 = (PyObject *) 0 ; | |
13217 | PyObject *result; | |
13218 | PyObject * obj0 = 0 ; | |
13219 | PyObject * obj1 = 0 ; | |
13220 | PyObject * obj2 = 0 ; | |
13221 | PyObject * obj3 = 0 ; | |
13222 | char *kwnames[] = { | |
13223 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
13224 | }; | |
13225 | ||
13226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13227 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13228 | arg2 = obj1; | |
13229 | arg3 = obj2; | |
13230 | arg4 = obj3; | |
13231 | { | |
13232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13233 | result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4); | |
13234 | ||
13235 | wxPyEndAllowThreads(__tstate); | |
13236 | if (PyErr_Occurred()) SWIG_fail; | |
13237 | } | |
13238 | resultobj = result; | |
13239 | return resultobj; | |
13240 | fail: | |
13241 | return NULL; | |
13242 | } | |
13243 | ||
13244 | ||
13245 | static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13246 | PyObject *resultobj; | |
13247 | wxDC *arg1 = (wxDC *) 0 ; | |
13248 | PyObject *arg2 = (PyObject *) 0 ; | |
13249 | PyObject *arg3 = (PyObject *) 0 ; | |
13250 | PyObject *arg4 = (PyObject *) 0 ; | |
13251 | PyObject *result; | |
13252 | PyObject * obj0 = 0 ; | |
13253 | PyObject * obj1 = 0 ; | |
13254 | PyObject * obj2 = 0 ; | |
13255 | PyObject * obj3 = 0 ; | |
13256 | char *kwnames[] = { | |
13257 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
13258 | }; | |
13259 | ||
13260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13261 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13262 | arg2 = obj1; | |
13263 | arg3 = obj2; | |
13264 | arg4 = obj3; | |
13265 | { | |
13266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13267 | result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4); | |
13268 | ||
13269 | wxPyEndAllowThreads(__tstate); | |
13270 | if (PyErr_Occurred()) SWIG_fail; | |
13271 | } | |
13272 | resultobj = result; | |
13273 | return resultobj; | |
13274 | fail: | |
13275 | return NULL; | |
13276 | } | |
13277 | ||
13278 | ||
13279 | static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13280 | PyObject *resultobj; | |
13281 | wxDC *arg1 = (wxDC *) 0 ; | |
13282 | PyObject *arg2 = (PyObject *) 0 ; | |
13283 | PyObject *arg3 = (PyObject *) 0 ; | |
13284 | PyObject *arg4 = (PyObject *) 0 ; | |
13285 | PyObject *result; | |
13286 | PyObject * obj0 = 0 ; | |
13287 | PyObject * obj1 = 0 ; | |
13288 | PyObject * obj2 = 0 ; | |
13289 | PyObject * obj3 = 0 ; | |
13290 | char *kwnames[] = { | |
13291 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
13292 | }; | |
13293 | ||
13294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13295 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13296 | arg2 = obj1; | |
13297 | arg3 = obj2; | |
13298 | arg4 = obj3; | |
13299 | { | |
13300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13301 | result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4); | |
13302 | ||
13303 | wxPyEndAllowThreads(__tstate); | |
13304 | if (PyErr_Occurred()) SWIG_fail; | |
13305 | } | |
13306 | resultobj = result; | |
13307 | return resultobj; | |
13308 | fail: | |
13309 | return NULL; | |
13310 | } | |
13311 | ||
13312 | ||
13313 | static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13314 | PyObject *resultobj; | |
13315 | wxDC *arg1 = (wxDC *) 0 ; | |
13316 | PyObject *arg2 = (PyObject *) 0 ; | |
13317 | PyObject *arg3 = (PyObject *) 0 ; | |
13318 | PyObject *arg4 = (PyObject *) 0 ; | |
13319 | PyObject *result; | |
13320 | PyObject * obj0 = 0 ; | |
13321 | PyObject * obj1 = 0 ; | |
13322 | PyObject * obj2 = 0 ; | |
13323 | PyObject * obj3 = 0 ; | |
13324 | char *kwnames[] = { | |
13325 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
13326 | }; | |
13327 | ||
13328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13329 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13330 | arg2 = obj1; | |
13331 | arg3 = obj2; | |
13332 | arg4 = obj3; | |
13333 | { | |
13334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13335 | result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4); | |
13336 | ||
13337 | wxPyEndAllowThreads(__tstate); | |
13338 | if (PyErr_Occurred()) SWIG_fail; | |
13339 | } | |
13340 | resultobj = result; | |
13341 | return resultobj; | |
13342 | fail: | |
13343 | return NULL; | |
13344 | } | |
13345 | ||
13346 | ||
13347 | static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13348 | PyObject *resultobj; | |
13349 | wxDC *arg1 = (wxDC *) 0 ; | |
13350 | PyObject *arg2 = (PyObject *) 0 ; | |
13351 | PyObject *arg3 = (PyObject *) 0 ; | |
13352 | PyObject *arg4 = (PyObject *) 0 ; | |
13353 | PyObject *result; | |
13354 | PyObject * obj0 = 0 ; | |
13355 | PyObject * obj1 = 0 ; | |
13356 | PyObject * obj2 = 0 ; | |
13357 | PyObject * obj3 = 0 ; | |
13358 | char *kwnames[] = { | |
13359 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
13360 | }; | |
13361 | ||
13362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13363 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13364 | arg2 = obj1; | |
13365 | arg3 = obj2; | |
13366 | arg4 = obj3; | |
13367 | { | |
13368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13369 | result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4); | |
13370 | ||
13371 | wxPyEndAllowThreads(__tstate); | |
13372 | if (PyErr_Occurred()) SWIG_fail; | |
13373 | } | |
13374 | resultobj = result; | |
13375 | return resultobj; | |
13376 | fail: | |
13377 | return NULL; | |
13378 | } | |
13379 | ||
13380 | ||
13381 | static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13382 | PyObject *resultobj; | |
13383 | wxDC *arg1 = (wxDC *) 0 ; | |
13384 | PyObject *arg2 = (PyObject *) 0 ; | |
13385 | PyObject *arg3 = (PyObject *) 0 ; | |
13386 | PyObject *arg4 = (PyObject *) 0 ; | |
13387 | PyObject *arg5 = (PyObject *) 0 ; | |
13388 | PyObject *result; | |
13389 | PyObject * obj0 = 0 ; | |
13390 | PyObject * obj1 = 0 ; | |
13391 | PyObject * obj2 = 0 ; | |
13392 | PyObject * obj3 = 0 ; | |
13393 | PyObject * obj4 = 0 ; | |
13394 | char *kwnames[] = { | |
13395 | (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL | |
13396 | }; | |
13397 | ||
13398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
13399 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13400 | arg2 = obj1; | |
13401 | arg3 = obj2; | |
13402 | arg4 = obj3; | |
13403 | arg5 = obj4; | |
13404 | { | |
13405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13406 | result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5); | |
13407 | ||
13408 | wxPyEndAllowThreads(__tstate); | |
13409 | if (PyErr_Occurred()) SWIG_fail; | |
13410 | } | |
13411 | resultobj = result; | |
13412 | return resultobj; | |
13413 | fail: | |
13414 | return NULL; | |
13415 | } | |
13416 | ||
13417 | ||
13418 | static PyObject * DC_swigregister(PyObject *self, PyObject *args) { | |
13419 | PyObject *obj; | |
13420 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13421 | SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj); | |
13422 | Py_INCREF(obj); | |
13423 | return Py_BuildValue((char *)""); | |
13424 | } | |
13425 | static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13426 | PyObject *resultobj; | |
13427 | wxMemoryDC *result; | |
13428 | char *kwnames[] = { | |
13429 | NULL | |
13430 | }; | |
13431 | ||
13432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail; | |
13433 | { | |
13434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13435 | result = (wxMemoryDC *)new wxMemoryDC(); | |
13436 | ||
13437 | wxPyEndAllowThreads(__tstate); | |
13438 | if (PyErr_Occurred()) SWIG_fail; | |
13439 | } | |
13440 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1); | |
13441 | return resultobj; | |
13442 | fail: | |
13443 | return NULL; | |
13444 | } | |
13445 | ||
13446 | ||
13447 | static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13448 | PyObject *resultobj; | |
13449 | wxDC *arg1 = (wxDC *) 0 ; | |
13450 | wxMemoryDC *result; | |
13451 | PyObject * obj0 = 0 ; | |
13452 | char *kwnames[] = { | |
13453 | (char *) "oldDC", NULL | |
13454 | }; | |
13455 | ||
13456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail; | |
13457 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13458 | { | |
13459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13460 | result = (wxMemoryDC *)new wxMemoryDC(arg1); | |
13461 | ||
13462 | wxPyEndAllowThreads(__tstate); | |
13463 | if (PyErr_Occurred()) SWIG_fail; | |
13464 | } | |
13465 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1); | |
13466 | return resultobj; | |
13467 | fail: | |
13468 | return NULL; | |
13469 | } | |
13470 | ||
13471 | ||
13472 | static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13473 | PyObject *resultobj; | |
13474 | wxMemoryDC *arg1 = (wxMemoryDC *) 0 ; | |
13475 | wxBitmap *arg2 = 0 ; | |
13476 | PyObject * obj0 = 0 ; | |
13477 | PyObject * obj1 = 0 ; | |
13478 | char *kwnames[] = { | |
13479 | (char *) "self",(char *) "bitmap", NULL | |
13480 | }; | |
13481 | ||
13482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail; | |
13483 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13484 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13485 | if (arg2 == NULL) { | |
13486 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13487 | } | |
13488 | { | |
13489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13490 | (arg1)->SelectObject((wxBitmap const &)*arg2); | |
13491 | ||
13492 | wxPyEndAllowThreads(__tstate); | |
13493 | if (PyErr_Occurred()) SWIG_fail; | |
13494 | } | |
13495 | Py_INCREF(Py_None); resultobj = Py_None; | |
13496 | return resultobj; | |
13497 | fail: | |
13498 | return NULL; | |
13499 | } | |
13500 | ||
13501 | ||
13502 | static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) { | |
13503 | PyObject *obj; | |
13504 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13505 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj); | |
13506 | Py_INCREF(obj); | |
13507 | return Py_BuildValue((char *)""); | |
13508 | } | |
13509 | static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13510 | PyObject *resultobj; | |
13511 | wxDC *arg1 = (wxDC *) 0 ; | |
13512 | wxBitmap *arg2 = 0 ; | |
13513 | wxBufferedDC *result; | |
13514 | PyObject * obj0 = 0 ; | |
13515 | PyObject * obj1 = 0 ; | |
13516 | char *kwnames[] = { | |
13517 | (char *) "dc",(char *) "buffer", NULL | |
13518 | }; | |
13519 | ||
13520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_BufferedDC",kwnames,&obj0,&obj1)) goto fail; | |
13521 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13522 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13523 | if (arg2 == NULL) { | |
13524 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13525 | } | |
13526 | { | |
13527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13528 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2); | |
13529 | ||
13530 | wxPyEndAllowThreads(__tstate); | |
13531 | if (PyErr_Occurred()) SWIG_fail; | |
13532 | } | |
13533 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1); | |
13534 | return resultobj; | |
13535 | fail: | |
13536 | return NULL; | |
13537 | } | |
13538 | ||
13539 | ||
13540 | static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13541 | PyObject *resultobj; | |
13542 | wxDC *arg1 = (wxDC *) 0 ; | |
13543 | wxSize *arg2 = 0 ; | |
13544 | wxBufferedDC *result; | |
13545 | wxSize temp2 ; | |
13546 | PyObject * obj0 = 0 ; | |
13547 | PyObject * obj1 = 0 ; | |
13548 | char *kwnames[] = { | |
13549 | (char *) "dc",(char *) "area", NULL | |
13550 | }; | |
13551 | ||
13552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_BufferedDCInternalBuffer",kwnames,&obj0,&obj1)) goto fail; | |
13553 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13554 | { | |
13555 | arg2 = &temp2; | |
13556 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
13557 | } | |
13558 | { | |
13559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13560 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2); | |
13561 | ||
13562 | wxPyEndAllowThreads(__tstate); | |
13563 | if (PyErr_Occurred()) SWIG_fail; | |
13564 | } | |
13565 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1); | |
13566 | return resultobj; | |
13567 | fail: | |
13568 | return NULL; | |
13569 | } | |
13570 | ||
13571 | ||
13572 | static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13573 | PyObject *resultobj; | |
13574 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
13575 | PyObject * obj0 = 0 ; | |
13576 | char *kwnames[] = { | |
13577 | (char *) "self", NULL | |
13578 | }; | |
13579 | ||
13580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail; | |
13581 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBufferedDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13582 | { | |
13583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13584 | (arg1)->UnMask(); | |
13585 | ||
13586 | wxPyEndAllowThreads(__tstate); | |
13587 | if (PyErr_Occurred()) SWIG_fail; | |
13588 | } | |
13589 | Py_INCREF(Py_None); resultobj = Py_None; | |
13590 | return resultobj; | |
13591 | fail: | |
13592 | return NULL; | |
13593 | } | |
13594 | ||
13595 | ||
13596 | static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) { | |
13597 | PyObject *obj; | |
13598 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13599 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj); | |
13600 | Py_INCREF(obj); | |
13601 | return Py_BuildValue((char *)""); | |
13602 | } | |
13603 | static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13604 | PyObject *resultobj; | |
13605 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13606 | wxBitmap const &arg2_defvalue = wxNullBitmap ; | |
13607 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; | |
13608 | wxBufferedPaintDC *result; | |
13609 | PyObject * obj0 = 0 ; | |
13610 | PyObject * obj1 = 0 ; | |
13611 | char *kwnames[] = { | |
13612 | (char *) "window",(char *) "buffer", NULL | |
13613 | }; | |
13614 | ||
13615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail; | |
13616 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13617 | if (obj1) { | |
13618 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13619 | if (arg2 == NULL) { | |
13620 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13621 | } | |
13622 | } | |
13623 | { | |
13624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13625 | result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2); | |
13626 | ||
13627 | wxPyEndAllowThreads(__tstate); | |
13628 | if (PyErr_Occurred()) SWIG_fail; | |
13629 | } | |
13630 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedPaintDC, 1); | |
13631 | return resultobj; | |
13632 | fail: | |
13633 | return NULL; | |
13634 | } | |
13635 | ||
13636 | ||
13637 | static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) { | |
13638 | PyObject *obj; | |
13639 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13640 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj); | |
13641 | Py_INCREF(obj); | |
13642 | return Py_BuildValue((char *)""); | |
13643 | } | |
13644 | static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13645 | PyObject *resultobj; | |
13646 | wxScreenDC *result; | |
13647 | char *kwnames[] = { | |
13648 | NULL | |
13649 | }; | |
13650 | ||
13651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail; | |
13652 | { | |
13653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13654 | result = (wxScreenDC *)new wxScreenDC(); | |
13655 | ||
13656 | wxPyEndAllowThreads(__tstate); | |
13657 | if (PyErr_Occurred()) SWIG_fail; | |
13658 | } | |
13659 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScreenDC, 1); | |
13660 | return resultobj; | |
13661 | fail: | |
13662 | return NULL; | |
13663 | } | |
13664 | ||
13665 | ||
13666 | static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13667 | PyObject *resultobj; | |
13668 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
13669 | wxWindow *arg2 = (wxWindow *) 0 ; | |
13670 | bool result; | |
13671 | PyObject * obj0 = 0 ; | |
13672 | PyObject * obj1 = 0 ; | |
13673 | char *kwnames[] = { | |
13674 | (char *) "self",(char *) "window", NULL | |
13675 | }; | |
13676 | ||
13677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail; | |
13678 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13679 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13680 | { | |
13681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13682 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
13683 | ||
13684 | wxPyEndAllowThreads(__tstate); | |
13685 | if (PyErr_Occurred()) SWIG_fail; | |
13686 | } | |
13687 | resultobj = PyInt_FromLong((long)result); | |
13688 | return resultobj; | |
13689 | fail: | |
13690 | return NULL; | |
13691 | } | |
13692 | ||
13693 | ||
13694 | static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13695 | PyObject *resultobj; | |
13696 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
13697 | wxRect *arg2 = (wxRect *) NULL ; | |
13698 | bool result; | |
13699 | PyObject * obj0 = 0 ; | |
13700 | PyObject * obj1 = 0 ; | |
13701 | char *kwnames[] = { | |
13702 | (char *) "self",(char *) "rect", NULL | |
13703 | }; | |
13704 | ||
13705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail; | |
13706 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13707 | if (obj1) { | |
13708 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13709 | } | |
13710 | { | |
13711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13712 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
13713 | ||
13714 | wxPyEndAllowThreads(__tstate); | |
13715 | if (PyErr_Occurred()) SWIG_fail; | |
13716 | } | |
13717 | resultobj = PyInt_FromLong((long)result); | |
13718 | return resultobj; | |
13719 | fail: | |
13720 | return NULL; | |
13721 | } | |
13722 | ||
13723 | ||
13724 | static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13725 | PyObject *resultobj; | |
13726 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
13727 | bool result; | |
13728 | PyObject * obj0 = 0 ; | |
13729 | char *kwnames[] = { | |
13730 | (char *) "self", NULL | |
13731 | }; | |
13732 | ||
13733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail; | |
13734 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13735 | { | |
13736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13737 | result = (bool)(arg1)->EndDrawingOnTop(); | |
13738 | ||
13739 | wxPyEndAllowThreads(__tstate); | |
13740 | if (PyErr_Occurred()) SWIG_fail; | |
13741 | } | |
13742 | resultobj = PyInt_FromLong((long)result); | |
13743 | return resultobj; | |
13744 | fail: | |
13745 | return NULL; | |
13746 | } | |
13747 | ||
13748 | ||
13749 | static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) { | |
13750 | PyObject *obj; | |
13751 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13752 | SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj); | |
13753 | Py_INCREF(obj); | |
13754 | return Py_BuildValue((char *)""); | |
13755 | } | |
13756 | static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13757 | PyObject *resultobj; | |
13758 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13759 | wxClientDC *result; | |
13760 | PyObject * obj0 = 0 ; | |
13761 | char *kwnames[] = { | |
13762 | (char *) "win", NULL | |
13763 | }; | |
13764 | ||
13765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail; | |
13766 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13767 | { | |
13768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13769 | result = (wxClientDC *)new wxClientDC(arg1); | |
13770 | ||
13771 | wxPyEndAllowThreads(__tstate); | |
13772 | if (PyErr_Occurred()) SWIG_fail; | |
13773 | } | |
13774 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClientDC, 1); | |
13775 | return resultobj; | |
13776 | fail: | |
13777 | return NULL; | |
13778 | } | |
13779 | ||
13780 | ||
13781 | static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) { | |
13782 | PyObject *obj; | |
13783 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13784 | SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj); | |
13785 | Py_INCREF(obj); | |
13786 | return Py_BuildValue((char *)""); | |
13787 | } | |
13788 | static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13789 | PyObject *resultobj; | |
13790 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13791 | wxPaintDC *result; | |
13792 | PyObject * obj0 = 0 ; | |
13793 | char *kwnames[] = { | |
13794 | (char *) "win", NULL | |
13795 | }; | |
13796 | ||
13797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail; | |
13798 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13799 | { | |
13800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13801 | result = (wxPaintDC *)new wxPaintDC(arg1); | |
13802 | ||
13803 | wxPyEndAllowThreads(__tstate); | |
13804 | if (PyErr_Occurred()) SWIG_fail; | |
13805 | } | |
13806 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPaintDC, 1); | |
13807 | return resultobj; | |
13808 | fail: | |
13809 | return NULL; | |
13810 | } | |
13811 | ||
13812 | ||
13813 | static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) { | |
13814 | PyObject *obj; | |
13815 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13816 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj); | |
13817 | Py_INCREF(obj); | |
13818 | return Py_BuildValue((char *)""); | |
13819 | } | |
13820 | static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13821 | PyObject *resultobj; | |
13822 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13823 | wxWindowDC *result; | |
13824 | PyObject * obj0 = 0 ; | |
13825 | char *kwnames[] = { | |
13826 | (char *) "win", NULL | |
13827 | }; | |
13828 | ||
13829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail; | |
13830 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13831 | { | |
13832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13833 | result = (wxWindowDC *)new wxWindowDC(arg1); | |
13834 | ||
13835 | wxPyEndAllowThreads(__tstate); | |
13836 | if (PyErr_Occurred()) SWIG_fail; | |
13837 | } | |
13838 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDC, 1); | |
13839 | return resultobj; | |
13840 | fail: | |
13841 | return NULL; | |
13842 | } | |
13843 | ||
13844 | ||
13845 | static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) { | |
13846 | PyObject *obj; | |
13847 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13848 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj); | |
13849 | Py_INCREF(obj); | |
13850 | return Py_BuildValue((char *)""); | |
13851 | } | |
13852 | static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13853 | PyObject *resultobj; | |
13854 | wxDC *arg1 = 0 ; | |
13855 | bool arg2 ; | |
13856 | wxMirrorDC *result; | |
13857 | PyObject * obj0 = 0 ; | |
13858 | PyObject * obj1 = 0 ; | |
13859 | char *kwnames[] = { | |
13860 | (char *) "dc",(char *) "mirror", NULL | |
13861 | }; | |
13862 | ||
13863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail; | |
13864 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13865 | if (arg1 == NULL) { | |
13866 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13867 | } | |
13868 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
13869 | if (PyErr_Occurred()) SWIG_fail; | |
13870 | { | |
13871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13872 | result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2); | |
13873 | ||
13874 | wxPyEndAllowThreads(__tstate); | |
13875 | if (PyErr_Occurred()) SWIG_fail; | |
13876 | } | |
13877 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMirrorDC, 1); | |
13878 | return resultobj; | |
13879 | fail: | |
13880 | return NULL; | |
13881 | } | |
13882 | ||
13883 | ||
13884 | static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) { | |
13885 | PyObject *obj; | |
13886 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13887 | SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj); | |
13888 | Py_INCREF(obj); | |
13889 | return Py_BuildValue((char *)""); | |
13890 | } | |
13891 | static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13892 | PyObject *resultobj; | |
13893 | wxPrintData *arg1 = 0 ; | |
13894 | wxPostScriptDC *result; | |
13895 | PyObject * obj0 = 0 ; | |
13896 | char *kwnames[] = { | |
13897 | (char *) "printData", NULL | |
13898 | }; | |
13899 | ||
13900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail; | |
13901 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13902 | if (arg1 == NULL) { | |
13903 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13904 | } | |
13905 | { | |
13906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13907 | result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1); | |
13908 | ||
13909 | wxPyEndAllowThreads(__tstate); | |
13910 | if (PyErr_Occurred()) SWIG_fail; | |
13911 | } | |
13912 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPostScriptDC, 1); | |
13913 | return resultobj; | |
13914 | fail: | |
13915 | return NULL; | |
13916 | } | |
13917 | ||
13918 | ||
13919 | static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13920 | PyObject *resultobj; | |
13921 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
13922 | wxPrintData *result; | |
13923 | PyObject * obj0 = 0 ; | |
13924 | char *kwnames[] = { | |
13925 | (char *) "self", NULL | |
13926 | }; | |
13927 | ||
13928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail; | |
13929 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13930 | { | |
13931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13932 | { | |
13933 | wxPrintData &_result_ref = (arg1)->GetPrintData(); | |
13934 | result = (wxPrintData *) &_result_ref; | |
13935 | } | |
13936 | ||
13937 | wxPyEndAllowThreads(__tstate); | |
13938 | if (PyErr_Occurred()) SWIG_fail; | |
13939 | } | |
13940 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrintData, 0); | |
13941 | return resultobj; | |
13942 | fail: | |
13943 | return NULL; | |
13944 | } | |
13945 | ||
13946 | ||
13947 | static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13948 | PyObject *resultobj; | |
13949 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
13950 | wxPrintData *arg2 = 0 ; | |
13951 | PyObject * obj0 = 0 ; | |
13952 | PyObject * obj1 = 0 ; | |
13953 | char *kwnames[] = { | |
13954 | (char *) "self",(char *) "data", NULL | |
13955 | }; | |
13956 | ||
13957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail; | |
13958 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13959 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13960 | if (arg2 == NULL) { | |
13961 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13962 | } | |
13963 | { | |
13964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13965 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
13966 | ||
13967 | wxPyEndAllowThreads(__tstate); | |
13968 | if (PyErr_Occurred()) SWIG_fail; | |
13969 | } | |
13970 | Py_INCREF(Py_None); resultobj = Py_None; | |
13971 | return resultobj; | |
13972 | fail: | |
13973 | return NULL; | |
13974 | } | |
13975 | ||
13976 | ||
13977 | static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13978 | PyObject *resultobj; | |
13979 | int arg1 ; | |
13980 | char *kwnames[] = { | |
13981 | (char *) "ppi", NULL | |
13982 | }; | |
13983 | ||
13984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:PostScriptDC_SetResolution",kwnames,&arg1)) goto fail; | |
13985 | { | |
13986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13987 | wxPostScriptDC::SetResolution(arg1); | |
13988 | ||
13989 | wxPyEndAllowThreads(__tstate); | |
13990 | if (PyErr_Occurred()) SWIG_fail; | |
13991 | } | |
13992 | Py_INCREF(Py_None); resultobj = Py_None; | |
13993 | return resultobj; | |
13994 | fail: | |
13995 | return NULL; | |
13996 | } | |
13997 | ||
13998 | ||
13999 | static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14000 | PyObject *resultobj; | |
14001 | int result; | |
14002 | char *kwnames[] = { | |
14003 | NULL | |
14004 | }; | |
14005 | ||
14006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail; | |
14007 | { | |
14008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14009 | result = (int)wxPostScriptDC::GetResolution(); | |
14010 | ||
14011 | wxPyEndAllowThreads(__tstate); | |
14012 | if (PyErr_Occurred()) SWIG_fail; | |
14013 | } | |
14014 | resultobj = PyInt_FromLong((long)result); | |
14015 | return resultobj; | |
14016 | fail: | |
14017 | return NULL; | |
14018 | } | |
14019 | ||
14020 | ||
14021 | static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) { | |
14022 | PyObject *obj; | |
14023 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14024 | SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj); | |
14025 | Py_INCREF(obj); | |
14026 | return Py_BuildValue((char *)""); | |
14027 | } | |
14028 | static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14029 | PyObject *resultobj; | |
14030 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
14031 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
14032 | wxMetaFile *result; | |
14033 | bool temp1 = False ; | |
14034 | PyObject * obj0 = 0 ; | |
14035 | char *kwnames[] = { | |
14036 | (char *) "filename", NULL | |
14037 | }; | |
14038 | ||
14039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail; | |
14040 | if (obj0) { | |
14041 | { | |
14042 | arg1 = wxString_in_helper(obj0); | |
14043 | if (arg1 == NULL) SWIG_fail; | |
14044 | temp1 = True; | |
14045 | } | |
14046 | } | |
14047 | { | |
14048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14049 | result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1); | |
14050 | ||
14051 | wxPyEndAllowThreads(__tstate); | |
14052 | if (PyErr_Occurred()) SWIG_fail; | |
14053 | } | |
14054 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFile, 1); | |
14055 | { | |
14056 | if (temp1) | |
14057 | delete arg1; | |
14058 | } | |
14059 | return resultobj; | |
14060 | fail: | |
14061 | { | |
14062 | if (temp1) | |
14063 | delete arg1; | |
14064 | } | |
14065 | return NULL; | |
14066 | } | |
14067 | ||
14068 | ||
14069 | static PyObject *_wrap_delete_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14070 | PyObject *resultobj; | |
14071 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
14072 | PyObject * obj0 = 0 ; | |
14073 | char *kwnames[] = { | |
14074 | (char *) "self", NULL | |
14075 | }; | |
14076 | ||
14077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail; | |
14078 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14079 | { | |
14080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14081 | delete arg1; | |
14082 | ||
14083 | wxPyEndAllowThreads(__tstate); | |
14084 | if (PyErr_Occurred()) SWIG_fail; | |
14085 | } | |
14086 | Py_INCREF(Py_None); resultobj = Py_None; | |
14087 | return resultobj; | |
14088 | fail: | |
14089 | return NULL; | |
14090 | } | |
14091 | ||
14092 | ||
14093 | static PyObject *_wrap_MetaFile_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14094 | PyObject *resultobj; | |
14095 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
14096 | bool result; | |
14097 | PyObject * obj0 = 0 ; | |
14098 | char *kwnames[] = { | |
14099 | (char *) "self", NULL | |
14100 | }; | |
14101 | ||
14102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail; | |
14103 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14104 | { | |
14105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14106 | result = (bool)(arg1)->Ok(); | |
14107 | ||
14108 | wxPyEndAllowThreads(__tstate); | |
14109 | if (PyErr_Occurred()) SWIG_fail; | |
14110 | } | |
14111 | resultobj = PyInt_FromLong((long)result); | |
14112 | return resultobj; | |
14113 | fail: | |
14114 | return NULL; | |
14115 | } | |
14116 | ||
14117 | ||
14118 | static PyObject *_wrap_MetaFile_SetClipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14119 | PyObject *resultobj; | |
14120 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
14121 | int arg2 = (int) 0 ; | |
14122 | int arg3 = (int) 0 ; | |
14123 | bool result; | |
14124 | PyObject * obj0 = 0 ; | |
14125 | char *kwnames[] = { | |
14126 | (char *) "self",(char *) "width",(char *) "height", NULL | |
14127 | }; | |
14128 | ||
14129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:MetaFile_SetClipboard",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
14130 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14131 | { | |
14132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14133 | result = (bool)(arg1)->SetClipboard(arg2,arg3); | |
14134 | ||
14135 | wxPyEndAllowThreads(__tstate); | |
14136 | if (PyErr_Occurred()) SWIG_fail; | |
14137 | } | |
14138 | resultobj = PyInt_FromLong((long)result); | |
14139 | return resultobj; | |
14140 | fail: | |
14141 | return NULL; | |
14142 | } | |
14143 | ||
14144 | ||
14145 | static PyObject *_wrap_MetaFile_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14146 | PyObject *resultobj; | |
14147 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
14148 | wxSize result; | |
14149 | PyObject * obj0 = 0 ; | |
14150 | char *kwnames[] = { | |
14151 | (char *) "self", NULL | |
14152 | }; | |
14153 | ||
14154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail; | |
14155 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14156 | { | |
14157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14158 | result = (arg1)->GetSize(); | |
14159 | ||
14160 | wxPyEndAllowThreads(__tstate); | |
14161 | if (PyErr_Occurred()) SWIG_fail; | |
14162 | } | |
14163 | { | |
14164 | wxSize * resultptr; | |
14165 | resultptr = new wxSize((wxSize &) result); | |
14166 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
14167 | } | |
14168 | return resultobj; | |
14169 | fail: | |
14170 | return NULL; | |
14171 | } | |
14172 | ||
14173 | ||
14174 | static PyObject *_wrap_MetaFile_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14175 | PyObject *resultobj; | |
14176 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
14177 | int result; | |
14178 | PyObject * obj0 = 0 ; | |
14179 | char *kwnames[] = { | |
14180 | (char *) "self", NULL | |
14181 | }; | |
14182 | ||
14183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail; | |
14184 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14185 | { | |
14186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14187 | result = (int)(arg1)->GetWidth(); | |
14188 | ||
14189 | wxPyEndAllowThreads(__tstate); | |
14190 | if (PyErr_Occurred()) SWIG_fail; | |
14191 | } | |
14192 | resultobj = PyInt_FromLong((long)result); | |
14193 | return resultobj; | |
14194 | fail: | |
14195 | return NULL; | |
14196 | } | |
14197 | ||
14198 | ||
14199 | static PyObject *_wrap_MetaFile_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14200 | PyObject *resultobj; | |
14201 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
14202 | int result; | |
14203 | PyObject * obj0 = 0 ; | |
14204 | char *kwnames[] = { | |
14205 | (char *) "self", NULL | |
14206 | }; | |
14207 | ||
14208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail; | |
14209 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14210 | { | |
14211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14212 | result = (int)(arg1)->GetHeight(); | |
14213 | ||
14214 | wxPyEndAllowThreads(__tstate); | |
14215 | if (PyErr_Occurred()) SWIG_fail; | |
14216 | } | |
14217 | resultobj = PyInt_FromLong((long)result); | |
14218 | return resultobj; | |
14219 | fail: | |
14220 | return NULL; | |
14221 | } | |
14222 | ||
14223 | ||
14224 | static PyObject *_wrap_MetaFile_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14225 | PyObject *resultobj; | |
14226 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
14227 | wxString *result; | |
14228 | PyObject * obj0 = 0 ; | |
14229 | char *kwnames[] = { | |
14230 | (char *) "self", NULL | |
14231 | }; | |
14232 | ||
14233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetFileName",kwnames,&obj0)) goto fail; | |
14234 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14235 | { | |
14236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14237 | { | |
14238 | wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName(); | |
14239 | result = (wxString *) &_result_ref; | |
14240 | } | |
14241 | ||
14242 | wxPyEndAllowThreads(__tstate); | |
14243 | if (PyErr_Occurred()) SWIG_fail; | |
14244 | } | |
14245 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxString, 0); | |
14246 | return resultobj; | |
14247 | fail: | |
14248 | return NULL; | |
14249 | } | |
14250 | ||
14251 | ||
14252 | static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) { | |
14253 | PyObject *obj; | |
14254 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14255 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj); | |
14256 | Py_INCREF(obj); | |
14257 | return Py_BuildValue((char *)""); | |
14258 | } | |
14259 | static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14260 | PyObject *resultobj; | |
14261 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
14262 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
14263 | int arg2 = (int) 0 ; | |
14264 | int arg3 = (int) 0 ; | |
14265 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
14266 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
14267 | wxMetaFileDC *result; | |
14268 | bool temp1 = False ; | |
14269 | bool temp4 = False ; | |
14270 | PyObject * obj0 = 0 ; | |
14271 | PyObject * obj3 = 0 ; | |
14272 | char *kwnames[] = { | |
14273 | (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL | |
14274 | }; | |
14275 | ||
14276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OiiO:new_MetaFileDC",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail; | |
14277 | if (obj0) { | |
14278 | { | |
14279 | arg1 = wxString_in_helper(obj0); | |
14280 | if (arg1 == NULL) SWIG_fail; | |
14281 | temp1 = True; | |
14282 | } | |
14283 | } | |
14284 | if (obj3) { | |
14285 | { | |
14286 | arg4 = wxString_in_helper(obj3); | |
14287 | if (arg4 == NULL) SWIG_fail; | |
14288 | temp4 = True; | |
14289 | } | |
14290 | } | |
14291 | { | |
14292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14293 | result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4); | |
14294 | ||
14295 | wxPyEndAllowThreads(__tstate); | |
14296 | if (PyErr_Occurred()) SWIG_fail; | |
14297 | } | |
14298 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFileDC, 1); | |
14299 | { | |
14300 | if (temp1) | |
14301 | delete arg1; | |
14302 | } | |
14303 | { | |
14304 | if (temp4) | |
14305 | delete arg4; | |
14306 | } | |
14307 | return resultobj; | |
14308 | fail: | |
14309 | { | |
14310 | if (temp1) | |
14311 | delete arg1; | |
14312 | } | |
14313 | { | |
14314 | if (temp4) | |
14315 | delete arg4; | |
14316 | } | |
14317 | return NULL; | |
14318 | } | |
14319 | ||
14320 | ||
14321 | static PyObject *_wrap_MetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14322 | PyObject *resultobj; | |
14323 | wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ; | |
14324 | wxMetaFile *result; | |
14325 | PyObject * obj0 = 0 ; | |
14326 | char *kwnames[] = { | |
14327 | (char *) "self", NULL | |
14328 | }; | |
14329 | ||
14330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail; | |
14331 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFileDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14332 | { | |
14333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14334 | result = (wxMetaFile *)(arg1)->Close(); | |
14335 | ||
14336 | wxPyEndAllowThreads(__tstate); | |
14337 | if (PyErr_Occurred()) SWIG_fail; | |
14338 | } | |
14339 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFile, 0); | |
14340 | return resultobj; | |
14341 | fail: | |
14342 | return NULL; | |
14343 | } | |
14344 | ||
14345 | ||
14346 | static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) { | |
14347 | PyObject *obj; | |
14348 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14349 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj); | |
14350 | Py_INCREF(obj); | |
14351 | return Py_BuildValue((char *)""); | |
14352 | } | |
14353 | static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14354 | PyObject *resultobj; | |
14355 | wxPrintData *arg1 = 0 ; | |
14356 | wxPrinterDC *result; | |
14357 | PyObject * obj0 = 0 ; | |
14358 | char *kwnames[] = { | |
14359 | (char *) "printData", NULL | |
14360 | }; | |
14361 | ||
14362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail; | |
14363 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14364 | if (arg1 == NULL) { | |
14365 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14366 | } | |
14367 | { | |
14368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14369 | result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1); | |
14370 | ||
14371 | wxPyEndAllowThreads(__tstate); | |
14372 | if (PyErr_Occurred()) SWIG_fail; | |
14373 | } | |
14374 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrinterDC, 1); | |
14375 | return resultobj; | |
14376 | fail: | |
14377 | return NULL; | |
14378 | } | |
14379 | ||
14380 | ||
14381 | static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) { | |
14382 | PyObject *obj; | |
14383 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14384 | SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj); | |
14385 | Py_INCREF(obj); | |
14386 | return Py_BuildValue((char *)""); | |
14387 | } | |
14388 | static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14389 | PyObject *resultobj; | |
14390 | int arg1 ; | |
14391 | int arg2 ; | |
14392 | int arg3 = (int) True ; | |
14393 | int arg4 = (int) 1 ; | |
14394 | wxImageList *result; | |
14395 | char *kwnames[] = { | |
14396 | (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL | |
14397 | }; | |
14398 | ||
14399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii|ii:new_ImageList",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
14400 | { | |
14401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14402 | result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4); | |
14403 | ||
14404 | wxPyEndAllowThreads(__tstate); | |
14405 | if (PyErr_Occurred()) SWIG_fail; | |
14406 | } | |
14407 | { | |
14408 | resultobj = wxPyMake_wxObject(result); | |
14409 | } | |
14410 | return resultobj; | |
14411 | fail: | |
14412 | return NULL; | |
14413 | } | |
14414 | ||
14415 | ||
14416 | static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14417 | PyObject *resultobj; | |
14418 | wxImageList *arg1 = (wxImageList *) 0 ; | |
14419 | PyObject * obj0 = 0 ; | |
14420 | char *kwnames[] = { | |
14421 | (char *) "self", NULL | |
14422 | }; | |
14423 | ||
14424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail; | |
14425 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14426 | { | |
14427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14428 | delete arg1; | |
14429 | ||
14430 | wxPyEndAllowThreads(__tstate); | |
14431 | if (PyErr_Occurred()) SWIG_fail; | |
14432 | } | |
14433 | Py_INCREF(Py_None); resultobj = Py_None; | |
14434 | return resultobj; | |
14435 | fail: | |
14436 | return NULL; | |
14437 | } | |
14438 | ||
14439 | ||
14440 | static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14441 | PyObject *resultobj; | |
14442 | wxImageList *arg1 = (wxImageList *) 0 ; | |
14443 | wxBitmap *arg2 = 0 ; | |
14444 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
14445 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
14446 | int result; | |
14447 | PyObject * obj0 = 0 ; | |
14448 | PyObject * obj1 = 0 ; | |
14449 | PyObject * obj2 = 0 ; | |
14450 | char *kwnames[] = { | |
14451 | (char *) "self",(char *) "bitmap",(char *) "mask", NULL | |
14452 | }; | |
14453 | ||
14454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14455 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14456 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14457 | if (arg2 == NULL) { | |
14458 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14459 | } | |
14460 | if (obj2) { | |
14461 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14462 | if (arg3 == NULL) { | |
14463 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14464 | } | |
14465 | } | |
14466 | { | |
14467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14468 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
14469 | ||
14470 | wxPyEndAllowThreads(__tstate); | |
14471 | if (PyErr_Occurred()) SWIG_fail; | |
14472 | } | |
14473 | resultobj = PyInt_FromLong((long)result); | |
14474 | return resultobj; | |
14475 | fail: | |
14476 | return NULL; | |
14477 | } | |
14478 | ||
14479 | ||
14480 | static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14481 | PyObject *resultobj; | |
14482 | wxImageList *arg1 = (wxImageList *) 0 ; | |
14483 | wxBitmap *arg2 = 0 ; | |
14484 | wxColour *arg3 = 0 ; | |
14485 | int result; | |
14486 | wxColour temp3 ; | |
14487 | PyObject * obj0 = 0 ; | |
14488 | PyObject * obj1 = 0 ; | |
14489 | PyObject * obj2 = 0 ; | |
14490 | char *kwnames[] = { | |
14491 | (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL | |
14492 | }; | |
14493 | ||
14494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14495 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14496 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14497 | if (arg2 == NULL) { | |
14498 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14499 | } | |
14500 | { | |
14501 | arg3 = &temp3; | |
14502 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
14503 | } | |
14504 | { | |
14505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14506 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3); | |
14507 | ||
14508 | wxPyEndAllowThreads(__tstate); | |
14509 | if (PyErr_Occurred()) SWIG_fail; | |
14510 | } | |
14511 | resultobj = PyInt_FromLong((long)result); | |
14512 | return resultobj; | |
14513 | fail: | |
14514 | return NULL; | |
14515 | } | |
14516 | ||
14517 | ||
14518 | static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14519 | PyObject *resultobj; | |
14520 | wxImageList *arg1 = (wxImageList *) 0 ; | |
14521 | wxIcon *arg2 = 0 ; | |
14522 | int result; | |
14523 | PyObject * obj0 = 0 ; | |
14524 | PyObject * obj1 = 0 ; | |
14525 | char *kwnames[] = { | |
14526 | (char *) "self",(char *) "icon", NULL | |
14527 | }; | |
14528 | ||
14529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail; | |
14530 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14531 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14532 | if (arg2 == NULL) { | |
14533 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14534 | } | |
14535 | { | |
14536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14537 | result = (int)(arg1)->Add((wxIcon const &)*arg2); | |
14538 | ||
14539 | wxPyEndAllowThreads(__tstate); | |
14540 | if (PyErr_Occurred()) SWIG_fail; | |
14541 | } | |
14542 | resultobj = PyInt_FromLong((long)result); | |
14543 | return resultobj; | |
14544 | fail: | |
14545 | return NULL; | |
14546 | } | |
14547 | ||
14548 | ||
14549 | static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14550 | PyObject *resultobj; | |
14551 | wxImageList *arg1 = (wxImageList *) 0 ; | |
14552 | int arg2 ; | |
14553 | wxBitmap *arg3 = 0 ; | |
14554 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
14555 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
14556 | bool result; | |
14557 | PyObject * obj0 = 0 ; | |
14558 | PyObject * obj2 = 0 ; | |
14559 | PyObject * obj3 = 0 ; | |
14560 | char *kwnames[] = { | |
14561 | (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL | |
14562 | }; | |
14563 | ||
14564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|O:ImageList_Replace",kwnames,&obj0,&arg2,&obj2,&obj3)) goto fail; | |
14565 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14566 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14567 | if (arg3 == NULL) { | |
14568 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14569 | } | |
14570 | if (obj3) { | |
14571 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14572 | if (arg4 == NULL) { | |
14573 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14574 | } | |
14575 | } | |
14576 | { | |
14577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14578 | result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4); | |
14579 | ||
14580 | wxPyEndAllowThreads(__tstate); | |
14581 | if (PyErr_Occurred()) SWIG_fail; | |
14582 | } | |
14583 | resultobj = PyInt_FromLong((long)result); | |
14584 | return resultobj; | |
14585 | fail: | |
14586 | return NULL; | |
14587 | } | |
14588 | ||
14589 | ||
14590 | static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14591 | PyObject *resultobj; | |
14592 | wxImageList *arg1 = (wxImageList *) 0 ; | |
14593 | int arg2 ; | |
14594 | wxDC *arg3 = 0 ; | |
14595 | int arg4 ; | |
14596 | int arg5 ; | |
14597 | int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ; | |
14598 | bool arg7 = (bool) (bool)False ; | |
14599 | bool result; | |
14600 | PyObject * obj0 = 0 ; | |
14601 | PyObject * obj2 = 0 ; | |
14602 | PyObject * obj6 = 0 ; | |
14603 | char *kwnames[] = { | |
14604 | (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL | |
14605 | }; | |
14606 | ||
14607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiOii|iO:ImageList_Draw",kwnames,&obj0,&arg2,&obj2,&arg4,&arg5,&arg6,&obj6)) goto fail; | |
14608 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14609 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14610 | if (arg3 == NULL) { | |
14611 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14612 | } | |
14613 | if (obj6) { | |
14614 | arg7 = PyInt_AsLong(obj6) ? true : false; | |
14615 | if (PyErr_Occurred()) SWIG_fail; | |
14616 | } | |
14617 | { | |
14618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14619 | result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7); | |
14620 | ||
14621 | wxPyEndAllowThreads(__tstate); | |
14622 | if (PyErr_Occurred()) SWIG_fail; | |
14623 | } | |
14624 | resultobj = PyInt_FromLong((long)result); | |
14625 | return resultobj; | |
14626 | fail: | |
14627 | return NULL; | |
14628 | } | |
14629 | ||
14630 | ||
14631 | static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14632 | PyObject *resultobj; | |
14633 | wxImageList *arg1 = (wxImageList *) 0 ; | |
14634 | int result; | |
14635 | PyObject * obj0 = 0 ; | |
14636 | char *kwnames[] = { | |
14637 | (char *) "self", NULL | |
14638 | }; | |
14639 | ||
14640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail; | |
14641 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14642 | { | |
14643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14644 | result = (int)(arg1)->GetImageCount(); | |
14645 | ||
14646 | wxPyEndAllowThreads(__tstate); | |
14647 | if (PyErr_Occurred()) SWIG_fail; | |
14648 | } | |
14649 | resultobj = PyInt_FromLong((long)result); | |
14650 | return resultobj; | |
14651 | fail: | |
14652 | return NULL; | |
14653 | } | |
14654 | ||
14655 | ||
14656 | static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14657 | PyObject *resultobj; | |
14658 | wxImageList *arg1 = (wxImageList *) 0 ; | |
14659 | int arg2 ; | |
14660 | bool result; | |
14661 | PyObject * obj0 = 0 ; | |
14662 | char *kwnames[] = { | |
14663 | (char *) "self",(char *) "index", NULL | |
14664 | }; | |
14665 | ||
14666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ImageList_Remove",kwnames,&obj0,&arg2)) goto fail; | |
14667 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14668 | { | |
14669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14670 | result = (bool)(arg1)->Remove(arg2); | |
14671 | ||
14672 | wxPyEndAllowThreads(__tstate); | |
14673 | if (PyErr_Occurred()) SWIG_fail; | |
14674 | } | |
14675 | resultobj = PyInt_FromLong((long)result); | |
14676 | return resultobj; | |
14677 | fail: | |
14678 | return NULL; | |
14679 | } | |
14680 | ||
14681 | ||
14682 | static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14683 | PyObject *resultobj; | |
14684 | wxImageList *arg1 = (wxImageList *) 0 ; | |
14685 | bool result; | |
14686 | PyObject * obj0 = 0 ; | |
14687 | char *kwnames[] = { | |
14688 | (char *) "self", NULL | |
14689 | }; | |
14690 | ||
14691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail; | |
14692 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14693 | { | |
14694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14695 | result = (bool)(arg1)->RemoveAll(); | |
14696 | ||
14697 | wxPyEndAllowThreads(__tstate); | |
14698 | if (PyErr_Occurred()) SWIG_fail; | |
14699 | } | |
14700 | resultobj = PyInt_FromLong((long)result); | |
14701 | return resultobj; | |
14702 | fail: | |
14703 | return NULL; | |
14704 | } | |
14705 | ||
14706 | ||
14707 | static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14708 | PyObject *resultobj; | |
14709 | wxImageList *arg1 = (wxImageList *) 0 ; | |
14710 | int arg2 ; | |
14711 | int *arg3 = 0 ; | |
14712 | int *arg4 = 0 ; | |
14713 | int temp3 ; | |
14714 | int temp4 ; | |
14715 | PyObject * obj0 = 0 ; | |
14716 | char *kwnames[] = { | |
14717 | (char *) "self",(char *) "index", NULL | |
14718 | }; | |
14719 | ||
14720 | arg3 = &temp3; | |
14721 | arg4 = &temp4; | |
14722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ImageList_GetSize",kwnames,&obj0,&arg2)) goto fail; | |
14723 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14724 | { | |
14725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14726 | (arg1)->GetSize(arg2,*arg3,*arg4); | |
14727 | ||
14728 | wxPyEndAllowThreads(__tstate); | |
14729 | if (PyErr_Occurred()) SWIG_fail; | |
14730 | } | |
14731 | Py_INCREF(Py_None); resultobj = Py_None; | |
14732 | { | |
14733 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14734 | resultobj = t_output_helper(resultobj,o); | |
14735 | } | |
14736 | { | |
14737 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
14738 | resultobj = t_output_helper(resultobj,o); | |
14739 | } | |
14740 | return resultobj; | |
14741 | fail: | |
14742 | return NULL; | |
14743 | } | |
14744 | ||
14745 | ||
14746 | static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) { | |
14747 | PyObject *obj; | |
14748 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14749 | SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj); | |
14750 | Py_INCREF(obj); | |
14751 | return Py_BuildValue((char *)""); | |
14752 | } | |
14753 | static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14754 | PyObject *resultobj; | |
14755 | wxPenList *arg1 = (wxPenList *) 0 ; | |
14756 | wxPen *arg2 = (wxPen *) 0 ; | |
14757 | PyObject * obj0 = 0 ; | |
14758 | PyObject * obj1 = 0 ; | |
14759 | char *kwnames[] = { | |
14760 | (char *) "self",(char *) "pen", NULL | |
14761 | }; | |
14762 | ||
14763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail; | |
14764 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14765 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14766 | { | |
14767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14768 | (arg1)->AddPen(arg2); | |
14769 | ||
14770 | wxPyEndAllowThreads(__tstate); | |
14771 | if (PyErr_Occurred()) SWIG_fail; | |
14772 | } | |
14773 | Py_INCREF(Py_None); resultobj = Py_None; | |
14774 | return resultobj; | |
14775 | fail: | |
14776 | return NULL; | |
14777 | } | |
14778 | ||
14779 | ||
14780 | static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14781 | PyObject *resultobj; | |
14782 | wxPenList *arg1 = (wxPenList *) 0 ; | |
14783 | wxColour *arg2 = 0 ; | |
14784 | int arg3 ; | |
14785 | int arg4 ; | |
14786 | wxPen *result; | |
14787 | wxColour temp2 ; | |
14788 | PyObject * obj0 = 0 ; | |
14789 | PyObject * obj1 = 0 ; | |
14790 | char *kwnames[] = { | |
14791 | (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL | |
14792 | }; | |
14793 | ||
14794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail; | |
14795 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14796 | { | |
14797 | arg2 = &temp2; | |
14798 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
14799 | } | |
14800 | { | |
14801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14802 | result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4); | |
14803 | ||
14804 | wxPyEndAllowThreads(__tstate); | |
14805 | if (PyErr_Occurred()) SWIG_fail; | |
14806 | } | |
14807 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0); | |
14808 | return resultobj; | |
14809 | fail: | |
14810 | return NULL; | |
14811 | } | |
14812 | ||
14813 | ||
14814 | static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14815 | PyObject *resultobj; | |
14816 | wxPenList *arg1 = (wxPenList *) 0 ; | |
14817 | wxPen *arg2 = (wxPen *) 0 ; | |
14818 | PyObject * obj0 = 0 ; | |
14819 | PyObject * obj1 = 0 ; | |
14820 | char *kwnames[] = { | |
14821 | (char *) "self",(char *) "pen", NULL | |
14822 | }; | |
14823 | ||
14824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail; | |
14825 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14826 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14827 | { | |
14828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14829 | (arg1)->RemovePen(arg2); | |
14830 | ||
14831 | wxPyEndAllowThreads(__tstate); | |
14832 | if (PyErr_Occurred()) SWIG_fail; | |
14833 | } | |
14834 | Py_INCREF(Py_None); resultobj = Py_None; | |
14835 | return resultobj; | |
14836 | fail: | |
14837 | return NULL; | |
14838 | } | |
14839 | ||
14840 | ||
14841 | static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14842 | PyObject *resultobj; | |
14843 | wxPenList *arg1 = (wxPenList *) 0 ; | |
14844 | int result; | |
14845 | PyObject * obj0 = 0 ; | |
14846 | char *kwnames[] = { | |
14847 | (char *) "self", NULL | |
14848 | }; | |
14849 | ||
14850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail; | |
14851 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14852 | { | |
14853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14854 | result = (int)(arg1)->GetCount(); | |
14855 | ||
14856 | wxPyEndAllowThreads(__tstate); | |
14857 | if (PyErr_Occurred()) SWIG_fail; | |
14858 | } | |
14859 | resultobj = PyInt_FromLong((long)result); | |
14860 | return resultobj; | |
14861 | fail: | |
14862 | return NULL; | |
14863 | } | |
14864 | ||
14865 | ||
14866 | static PyObject * PenList_swigregister(PyObject *self, PyObject *args) { | |
14867 | PyObject *obj; | |
14868 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14869 | SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj); | |
14870 | Py_INCREF(obj); | |
14871 | return Py_BuildValue((char *)""); | |
14872 | } | |
14873 | static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14874 | PyObject *resultobj; | |
14875 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
14876 | wxBrush *arg2 = (wxBrush *) 0 ; | |
14877 | PyObject * obj0 = 0 ; | |
14878 | PyObject * obj1 = 0 ; | |
14879 | char *kwnames[] = { | |
14880 | (char *) "self",(char *) "brush", NULL | |
14881 | }; | |
14882 | ||
14883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail; | |
14884 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14885 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14886 | { | |
14887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14888 | (arg1)->AddBrush(arg2); | |
14889 | ||
14890 | wxPyEndAllowThreads(__tstate); | |
14891 | if (PyErr_Occurred()) SWIG_fail; | |
14892 | } | |
14893 | Py_INCREF(Py_None); resultobj = Py_None; | |
14894 | return resultobj; | |
14895 | fail: | |
14896 | return NULL; | |
14897 | } | |
14898 | ||
14899 | ||
14900 | static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14901 | PyObject *resultobj; | |
14902 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
14903 | wxColour *arg2 = 0 ; | |
14904 | int arg3 ; | |
14905 | wxBrush *result; | |
14906 | wxColour temp2 ; | |
14907 | PyObject * obj0 = 0 ; | |
14908 | PyObject * obj1 = 0 ; | |
14909 | char *kwnames[] = { | |
14910 | (char *) "self",(char *) "colour",(char *) "style", NULL | |
14911 | }; | |
14912 | ||
14913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
14914 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14915 | { | |
14916 | arg2 = &temp2; | |
14917 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
14918 | } | |
14919 | { | |
14920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14921 | result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3); | |
14922 | ||
14923 | wxPyEndAllowThreads(__tstate); | |
14924 | if (PyErr_Occurred()) SWIG_fail; | |
14925 | } | |
14926 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0); | |
14927 | return resultobj; | |
14928 | fail: | |
14929 | return NULL; | |
14930 | } | |
14931 | ||
14932 | ||
14933 | static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14934 | PyObject *resultobj; | |
14935 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
14936 | wxBrush *arg2 = (wxBrush *) 0 ; | |
14937 | PyObject * obj0 = 0 ; | |
14938 | PyObject * obj1 = 0 ; | |
14939 | char *kwnames[] = { | |
14940 | (char *) "self",(char *) "brush", NULL | |
14941 | }; | |
14942 | ||
14943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail; | |
14944 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14945 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14946 | { | |
14947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14948 | (arg1)->RemoveBrush(arg2); | |
14949 | ||
14950 | wxPyEndAllowThreads(__tstate); | |
14951 | if (PyErr_Occurred()) SWIG_fail; | |
14952 | } | |
14953 | Py_INCREF(Py_None); resultobj = Py_None; | |
14954 | return resultobj; | |
14955 | fail: | |
14956 | return NULL; | |
14957 | } | |
14958 | ||
14959 | ||
14960 | static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14961 | PyObject *resultobj; | |
14962 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
14963 | int result; | |
14964 | PyObject * obj0 = 0 ; | |
14965 | char *kwnames[] = { | |
14966 | (char *) "self", NULL | |
14967 | }; | |
14968 | ||
14969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail; | |
14970 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14971 | { | |
14972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14973 | result = (int)(arg1)->GetCount(); | |
14974 | ||
14975 | wxPyEndAllowThreads(__tstate); | |
14976 | if (PyErr_Occurred()) SWIG_fail; | |
14977 | } | |
14978 | resultobj = PyInt_FromLong((long)result); | |
14979 | return resultobj; | |
14980 | fail: | |
14981 | return NULL; | |
14982 | } | |
14983 | ||
14984 | ||
14985 | static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) { | |
14986 | PyObject *obj; | |
14987 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14988 | SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj); | |
14989 | Py_INCREF(obj); | |
14990 | return Py_BuildValue((char *)""); | |
14991 | } | |
14992 | static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14993 | PyObject *resultobj; | |
14994 | wxColourDatabase *result; | |
14995 | char *kwnames[] = { | |
14996 | NULL | |
14997 | }; | |
14998 | ||
14999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail; | |
15000 | { | |
15001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15002 | result = (wxColourDatabase *)new wxColourDatabase(); | |
15003 | ||
15004 | wxPyEndAllowThreads(__tstate); | |
15005 | if (PyErr_Occurred()) SWIG_fail; | |
15006 | } | |
15007 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColourDatabase, 1); | |
15008 | return resultobj; | |
15009 | fail: | |
15010 | return NULL; | |
15011 | } | |
15012 | ||
15013 | ||
15014 | static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15015 | PyObject *resultobj; | |
15016 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
15017 | PyObject * obj0 = 0 ; | |
15018 | char *kwnames[] = { | |
15019 | (char *) "self", NULL | |
15020 | }; | |
15021 | ||
15022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail; | |
15023 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15024 | { | |
15025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15026 | delete arg1; | |
15027 | ||
15028 | wxPyEndAllowThreads(__tstate); | |
15029 | if (PyErr_Occurred()) SWIG_fail; | |
15030 | } | |
15031 | Py_INCREF(Py_None); resultobj = Py_None; | |
15032 | return resultobj; | |
15033 | fail: | |
15034 | return NULL; | |
15035 | } | |
15036 | ||
15037 | ||
15038 | static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15039 | PyObject *resultobj; | |
15040 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
15041 | wxString *arg2 = 0 ; | |
15042 | wxColour result; | |
15043 | bool temp2 = False ; | |
15044 | PyObject * obj0 = 0 ; | |
15045 | PyObject * obj1 = 0 ; | |
15046 | char *kwnames[] = { | |
15047 | (char *) "self",(char *) "name", NULL | |
15048 | }; | |
15049 | ||
15050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail; | |
15051 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15052 | { | |
15053 | arg2 = wxString_in_helper(obj1); | |
15054 | if (arg2 == NULL) SWIG_fail; | |
15055 | temp2 = True; | |
15056 | } | |
15057 | { | |
15058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15059 | result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2); | |
15060 | ||
15061 | wxPyEndAllowThreads(__tstate); | |
15062 | if (PyErr_Occurred()) SWIG_fail; | |
15063 | } | |
15064 | { | |
15065 | wxColour * resultptr; | |
15066 | resultptr = new wxColour((wxColour &) result); | |
15067 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
15068 | } | |
15069 | { | |
15070 | if (temp2) | |
15071 | delete arg2; | |
15072 | } | |
15073 | return resultobj; | |
15074 | fail: | |
15075 | { | |
15076 | if (temp2) | |
15077 | delete arg2; | |
15078 | } | |
15079 | return NULL; | |
15080 | } | |
15081 | ||
15082 | ||
15083 | static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15084 | PyObject *resultobj; | |
15085 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
15086 | wxColour *arg2 = 0 ; | |
15087 | wxString result; | |
15088 | wxColour temp2 ; | |
15089 | PyObject * obj0 = 0 ; | |
15090 | PyObject * obj1 = 0 ; | |
15091 | char *kwnames[] = { | |
15092 | (char *) "self",(char *) "colour", NULL | |
15093 | }; | |
15094 | ||
15095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail; | |
15096 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15097 | { | |
15098 | arg2 = &temp2; | |
15099 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
15100 | } | |
15101 | { | |
15102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15103 | result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2); | |
15104 | ||
15105 | wxPyEndAllowThreads(__tstate); | |
15106 | if (PyErr_Occurred()) SWIG_fail; | |
15107 | } | |
15108 | { | |
15109 | #if wxUSE_UNICODE | |
15110 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15111 | #else | |
15112 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15113 | #endif | |
15114 | } | |
15115 | return resultobj; | |
15116 | fail: | |
15117 | return NULL; | |
15118 | } | |
15119 | ||
15120 | ||
15121 | static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15122 | PyObject *resultobj; | |
15123 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
15124 | wxString *arg2 = 0 ; | |
15125 | wxColour *arg3 = 0 ; | |
15126 | bool temp2 = False ; | |
15127 | wxColour temp3 ; | |
15128 | PyObject * obj0 = 0 ; | |
15129 | PyObject * obj1 = 0 ; | |
15130 | PyObject * obj2 = 0 ; | |
15131 | char *kwnames[] = { | |
15132 | (char *) "self",(char *) "name",(char *) "colour", NULL | |
15133 | }; | |
15134 | ||
15135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15136 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15137 | { | |
15138 | arg2 = wxString_in_helper(obj1); | |
15139 | if (arg2 == NULL) SWIG_fail; | |
15140 | temp2 = True; | |
15141 | } | |
15142 | { | |
15143 | arg3 = &temp3; | |
15144 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
15145 | } | |
15146 | { | |
15147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15148 | (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3); | |
15149 | ||
15150 | wxPyEndAllowThreads(__tstate); | |
15151 | if (PyErr_Occurred()) SWIG_fail; | |
15152 | } | |
15153 | Py_INCREF(Py_None); resultobj = Py_None; | |
15154 | { | |
15155 | if (temp2) | |
15156 | delete arg2; | |
15157 | } | |
15158 | return resultobj; | |
15159 | fail: | |
15160 | { | |
15161 | if (temp2) | |
15162 | delete arg2; | |
15163 | } | |
15164 | return NULL; | |
15165 | } | |
15166 | ||
15167 | ||
15168 | static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15169 | PyObject *resultobj; | |
15170 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
15171 | wxString *arg2 = 0 ; | |
15172 | int arg3 ; | |
15173 | int arg4 ; | |
15174 | int arg5 ; | |
15175 | bool temp2 = False ; | |
15176 | PyObject * obj0 = 0 ; | |
15177 | PyObject * obj1 = 0 ; | |
15178 | char *kwnames[] = { | |
15179 | (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL | |
15180 | }; | |
15181 | ||
15182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiii:ColourDatabase_Append",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5)) goto fail; | |
15183 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15184 | { | |
15185 | arg2 = wxString_in_helper(obj1); | |
15186 | if (arg2 == NULL) SWIG_fail; | |
15187 | temp2 = True; | |
15188 | } | |
15189 | { | |
15190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15191 | wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5); | |
15192 | ||
15193 | wxPyEndAllowThreads(__tstate); | |
15194 | if (PyErr_Occurred()) SWIG_fail; | |
15195 | } | |
15196 | Py_INCREF(Py_None); resultobj = Py_None; | |
15197 | { | |
15198 | if (temp2) | |
15199 | delete arg2; | |
15200 | } | |
15201 | return resultobj; | |
15202 | fail: | |
15203 | { | |
15204 | if (temp2) | |
15205 | delete arg2; | |
15206 | } | |
15207 | return NULL; | |
15208 | } | |
15209 | ||
15210 | ||
15211 | static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) { | |
15212 | PyObject *obj; | |
15213 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15214 | SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj); | |
15215 | Py_INCREF(obj); | |
15216 | return Py_BuildValue((char *)""); | |
15217 | } | |
15218 | static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15219 | PyObject *resultobj; | |
15220 | wxFontList *arg1 = (wxFontList *) 0 ; | |
15221 | wxFont *arg2 = (wxFont *) 0 ; | |
15222 | PyObject * obj0 = 0 ; | |
15223 | PyObject * obj1 = 0 ; | |
15224 | char *kwnames[] = { | |
15225 | (char *) "self",(char *) "font", NULL | |
15226 | }; | |
15227 | ||
15228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail; | |
15229 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15230 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15231 | { | |
15232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15233 | (arg1)->AddFont(arg2); | |
15234 | ||
15235 | wxPyEndAllowThreads(__tstate); | |
15236 | if (PyErr_Occurred()) SWIG_fail; | |
15237 | } | |
15238 | Py_INCREF(Py_None); resultobj = Py_None; | |
15239 | return resultobj; | |
15240 | fail: | |
15241 | return NULL; | |
15242 | } | |
15243 | ||
15244 | ||
15245 | static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15246 | PyObject *resultobj; | |
15247 | wxFontList *arg1 = (wxFontList *) 0 ; | |
15248 | int arg2 ; | |
15249 | int arg3 ; | |
15250 | int arg4 ; | |
15251 | int arg5 ; | |
15252 | bool arg6 = (bool) False ; | |
15253 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
15254 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
15255 | int arg8 = (int) wxFONTENCODING_DEFAULT ; | |
15256 | wxFont *result; | |
15257 | bool temp7 = False ; | |
15258 | PyObject * obj0 = 0 ; | |
15259 | PyObject * obj5 = 0 ; | |
15260 | PyObject * obj6 = 0 ; | |
15261 | char *kwnames[] = { | |
15262 | (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL | |
15263 | }; | |
15264 | ||
15265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii|OOi:FontList_FindOrCreateFont",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5,&obj6,&arg8)) goto fail; | |
15266 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15267 | if (obj5) { | |
15268 | arg6 = PyInt_AsLong(obj5) ? true : false; | |
15269 | if (PyErr_Occurred()) SWIG_fail; | |
15270 | } | |
15271 | if (obj6) { | |
15272 | { | |
15273 | arg7 = wxString_in_helper(obj6); | |
15274 | if (arg7 == NULL) SWIG_fail; | |
15275 | temp7 = True; | |
15276 | } | |
15277 | } | |
15278 | { | |
15279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15280 | result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8); | |
15281 | ||
15282 | wxPyEndAllowThreads(__tstate); | |
15283 | if (PyErr_Occurred()) SWIG_fail; | |
15284 | } | |
15285 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0); | |
15286 | { | |
15287 | if (temp7) | |
15288 | delete arg7; | |
15289 | } | |
15290 | return resultobj; | |
15291 | fail: | |
15292 | { | |
15293 | if (temp7) | |
15294 | delete arg7; | |
15295 | } | |
15296 | return NULL; | |
15297 | } | |
15298 | ||
15299 | ||
15300 | static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15301 | PyObject *resultobj; | |
15302 | wxFontList *arg1 = (wxFontList *) 0 ; | |
15303 | wxFont *arg2 = (wxFont *) 0 ; | |
15304 | PyObject * obj0 = 0 ; | |
15305 | PyObject * obj1 = 0 ; | |
15306 | char *kwnames[] = { | |
15307 | (char *) "self",(char *) "font", NULL | |
15308 | }; | |
15309 | ||
15310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail; | |
15311 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15312 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15313 | { | |
15314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15315 | (arg1)->RemoveFont(arg2); | |
15316 | ||
15317 | wxPyEndAllowThreads(__tstate); | |
15318 | if (PyErr_Occurred()) SWIG_fail; | |
15319 | } | |
15320 | Py_INCREF(Py_None); resultobj = Py_None; | |
15321 | return resultobj; | |
15322 | fail: | |
15323 | return NULL; | |
15324 | } | |
15325 | ||
15326 | ||
15327 | static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15328 | PyObject *resultobj; | |
15329 | wxFontList *arg1 = (wxFontList *) 0 ; | |
15330 | int result; | |
15331 | PyObject * obj0 = 0 ; | |
15332 | char *kwnames[] = { | |
15333 | (char *) "self", NULL | |
15334 | }; | |
15335 | ||
15336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail; | |
15337 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15338 | { | |
15339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15340 | result = (int)(arg1)->GetCount(); | |
15341 | ||
15342 | wxPyEndAllowThreads(__tstate); | |
15343 | if (PyErr_Occurred()) SWIG_fail; | |
15344 | } | |
15345 | resultobj = PyInt_FromLong((long)result); | |
15346 | return resultobj; | |
15347 | fail: | |
15348 | return NULL; | |
15349 | } | |
15350 | ||
15351 | ||
15352 | static PyObject * FontList_swigregister(PyObject *self, PyObject *args) { | |
15353 | PyObject *obj; | |
15354 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15355 | SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj); | |
15356 | Py_INCREF(obj); | |
15357 | return Py_BuildValue((char *)""); | |
15358 | } | |
15359 | static int _wrap_NORMAL_FONT_set(PyObject *_val) { | |
15360 | PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only."); | |
15361 | return 1; | |
15362 | } | |
15363 | ||
15364 | ||
15365 | static PyObject *_wrap_NORMAL_FONT_get() { | |
15366 | PyObject *pyobj; | |
15367 | ||
15368 | pyobj = SWIG_NewPointerObj((void *) wxNORMAL_FONT, SWIGTYPE_p_wxFont, 0); | |
15369 | return pyobj; | |
15370 | } | |
15371 | ||
15372 | ||
15373 | static int _wrap_SMALL_FONT_set(PyObject *_val) { | |
15374 | PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only."); | |
15375 | return 1; | |
15376 | } | |
15377 | ||
15378 | ||
15379 | static PyObject *_wrap_SMALL_FONT_get() { | |
15380 | PyObject *pyobj; | |
15381 | ||
15382 | pyobj = SWIG_NewPointerObj((void *) wxSMALL_FONT, SWIGTYPE_p_wxFont, 0); | |
15383 | return pyobj; | |
15384 | } | |
15385 | ||
15386 | ||
15387 | static int _wrap_ITALIC_FONT_set(PyObject *_val) { | |
15388 | PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only."); | |
15389 | return 1; | |
15390 | } | |
15391 | ||
15392 | ||
15393 | static PyObject *_wrap_ITALIC_FONT_get() { | |
15394 | PyObject *pyobj; | |
15395 | ||
15396 | pyobj = SWIG_NewPointerObj((void *) wxITALIC_FONT, SWIGTYPE_p_wxFont, 0); | |
15397 | return pyobj; | |
15398 | } | |
15399 | ||
15400 | ||
15401 | static int _wrap_SWISS_FONT_set(PyObject *_val) { | |
15402 | PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only."); | |
15403 | return 1; | |
15404 | } | |
15405 | ||
15406 | ||
15407 | static PyObject *_wrap_SWISS_FONT_get() { | |
15408 | PyObject *pyobj; | |
15409 | ||
15410 | pyobj = SWIG_NewPointerObj((void *) wxSWISS_FONT, SWIGTYPE_p_wxFont, 0); | |
15411 | return pyobj; | |
15412 | } | |
15413 | ||
15414 | ||
15415 | static int _wrap_RED_PEN_set(PyObject *_val) { | |
15416 | PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only."); | |
15417 | return 1; | |
15418 | } | |
15419 | ||
15420 | ||
15421 | static PyObject *_wrap_RED_PEN_get() { | |
15422 | PyObject *pyobj; | |
15423 | ||
15424 | pyobj = SWIG_NewPointerObj((void *) wxRED_PEN, SWIGTYPE_p_wxPen, 0); | |
15425 | return pyobj; | |
15426 | } | |
15427 | ||
15428 | ||
15429 | static int _wrap_CYAN_PEN_set(PyObject *_val) { | |
15430 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only."); | |
15431 | return 1; | |
15432 | } | |
15433 | ||
15434 | ||
15435 | static PyObject *_wrap_CYAN_PEN_get() { | |
15436 | PyObject *pyobj; | |
15437 | ||
15438 | pyobj = SWIG_NewPointerObj((void *) wxCYAN_PEN, SWIGTYPE_p_wxPen, 0); | |
15439 | return pyobj; | |
15440 | } | |
15441 | ||
15442 | ||
15443 | static int _wrap_GREEN_PEN_set(PyObject *_val) { | |
15444 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only."); | |
15445 | return 1; | |
15446 | } | |
15447 | ||
15448 | ||
15449 | static PyObject *_wrap_GREEN_PEN_get() { | |
15450 | PyObject *pyobj; | |
15451 | ||
15452 | pyobj = SWIG_NewPointerObj((void *) wxGREEN_PEN, SWIGTYPE_p_wxPen, 0); | |
15453 | return pyobj; | |
15454 | } | |
15455 | ||
15456 | ||
15457 | static int _wrap_BLACK_PEN_set(PyObject *_val) { | |
15458 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only."); | |
15459 | return 1; | |
15460 | } | |
15461 | ||
15462 | ||
15463 | static PyObject *_wrap_BLACK_PEN_get() { | |
15464 | PyObject *pyobj; | |
15465 | ||
15466 | pyobj = SWIG_NewPointerObj((void *) wxBLACK_PEN, SWIGTYPE_p_wxPen, 0); | |
15467 | return pyobj; | |
15468 | } | |
15469 | ||
15470 | ||
15471 | static int _wrap_WHITE_PEN_set(PyObject *_val) { | |
15472 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only."); | |
15473 | return 1; | |
15474 | } | |
15475 | ||
15476 | ||
15477 | static PyObject *_wrap_WHITE_PEN_get() { | |
15478 | PyObject *pyobj; | |
15479 | ||
15480 | pyobj = SWIG_NewPointerObj((void *) wxWHITE_PEN, SWIGTYPE_p_wxPen, 0); | |
15481 | return pyobj; | |
15482 | } | |
15483 | ||
15484 | ||
15485 | static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) { | |
15486 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only."); | |
15487 | return 1; | |
15488 | } | |
15489 | ||
15490 | ||
15491 | static PyObject *_wrap_TRANSPARENT_PEN_get() { | |
15492 | PyObject *pyobj; | |
15493 | ||
15494 | pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_PEN, SWIGTYPE_p_wxPen, 0); | |
15495 | return pyobj; | |
15496 | } | |
15497 | ||
15498 | ||
15499 | static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) { | |
15500 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only."); | |
15501 | return 1; | |
15502 | } | |
15503 | ||
15504 | ||
15505 | static PyObject *_wrap_BLACK_DASHED_PEN_get() { | |
15506 | PyObject *pyobj; | |
15507 | ||
15508 | pyobj = SWIG_NewPointerObj((void *) wxBLACK_DASHED_PEN, SWIGTYPE_p_wxPen, 0); | |
15509 | return pyobj; | |
15510 | } | |
15511 | ||
15512 | ||
15513 | static int _wrap_GREY_PEN_set(PyObject *_val) { | |
15514 | PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only."); | |
15515 | return 1; | |
15516 | } | |
15517 | ||
15518 | ||
15519 | static PyObject *_wrap_GREY_PEN_get() { | |
15520 | PyObject *pyobj; | |
15521 | ||
15522 | pyobj = SWIG_NewPointerObj((void *) wxGREY_PEN, SWIGTYPE_p_wxPen, 0); | |
15523 | return pyobj; | |
15524 | } | |
15525 | ||
15526 | ||
15527 | static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) { | |
15528 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only."); | |
15529 | return 1; | |
15530 | } | |
15531 | ||
15532 | ||
15533 | static PyObject *_wrap_MEDIUM_GREY_PEN_get() { | |
15534 | PyObject *pyobj; | |
15535 | ||
15536 | pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_PEN, SWIGTYPE_p_wxPen, 0); | |
15537 | return pyobj; | |
15538 | } | |
15539 | ||
15540 | ||
15541 | static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) { | |
15542 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only."); | |
15543 | return 1; | |
15544 | } | |
15545 | ||
15546 | ||
15547 | static PyObject *_wrap_LIGHT_GREY_PEN_get() { | |
15548 | PyObject *pyobj; | |
15549 | ||
15550 | pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_PEN, SWIGTYPE_p_wxPen, 0); | |
15551 | return pyobj; | |
15552 | } | |
15553 | ||
15554 | ||
15555 | static int _wrap_BLUE_BRUSH_set(PyObject *_val) { | |
15556 | PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only."); | |
15557 | return 1; | |
15558 | } | |
15559 | ||
15560 | ||
15561 | static PyObject *_wrap_BLUE_BRUSH_get() { | |
15562 | PyObject *pyobj; | |
15563 | ||
15564 | pyobj = SWIG_NewPointerObj((void *) wxBLUE_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
15565 | return pyobj; | |
15566 | } | |
15567 | ||
15568 | ||
15569 | static int _wrap_GREEN_BRUSH_set(PyObject *_val) { | |
15570 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only."); | |
15571 | return 1; | |
15572 | } | |
15573 | ||
15574 | ||
15575 | static PyObject *_wrap_GREEN_BRUSH_get() { | |
15576 | PyObject *pyobj; | |
15577 | ||
15578 | pyobj = SWIG_NewPointerObj((void *) wxGREEN_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
15579 | return pyobj; | |
15580 | } | |
15581 | ||
15582 | ||
15583 | static int _wrap_WHITE_BRUSH_set(PyObject *_val) { | |
15584 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only."); | |
15585 | return 1; | |
15586 | } | |
15587 | ||
15588 | ||
15589 | static PyObject *_wrap_WHITE_BRUSH_get() { | |
15590 | PyObject *pyobj; | |
15591 | ||
15592 | pyobj = SWIG_NewPointerObj((void *) wxWHITE_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
15593 | return pyobj; | |
15594 | } | |
15595 | ||
15596 | ||
15597 | static int _wrap_BLACK_BRUSH_set(PyObject *_val) { | |
15598 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only."); | |
15599 | return 1; | |
15600 | } | |
15601 | ||
15602 | ||
15603 | static PyObject *_wrap_BLACK_BRUSH_get() { | |
15604 | PyObject *pyobj; | |
15605 | ||
15606 | pyobj = SWIG_NewPointerObj((void *) wxBLACK_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
15607 | return pyobj; | |
15608 | } | |
15609 | ||
15610 | ||
15611 | static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) { | |
15612 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only."); | |
15613 | return 1; | |
15614 | } | |
15615 | ||
15616 | ||
15617 | static PyObject *_wrap_TRANSPARENT_BRUSH_get() { | |
15618 | PyObject *pyobj; | |
15619 | ||
15620 | pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
15621 | return pyobj; | |
15622 | } | |
15623 | ||
15624 | ||
15625 | static int _wrap_CYAN_BRUSH_set(PyObject *_val) { | |
15626 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only."); | |
15627 | return 1; | |
15628 | } | |
15629 | ||
15630 | ||
15631 | static PyObject *_wrap_CYAN_BRUSH_get() { | |
15632 | PyObject *pyobj; | |
15633 | ||
15634 | pyobj = SWIG_NewPointerObj((void *) wxCYAN_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
15635 | return pyobj; | |
15636 | } | |
15637 | ||
15638 | ||
15639 | static int _wrap_RED_BRUSH_set(PyObject *_val) { | |
15640 | PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only."); | |
15641 | return 1; | |
15642 | } | |
15643 | ||
15644 | ||
15645 | static PyObject *_wrap_RED_BRUSH_get() { | |
15646 | PyObject *pyobj; | |
15647 | ||
15648 | pyobj = SWIG_NewPointerObj((void *) wxRED_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
15649 | return pyobj; | |
15650 | } | |
15651 | ||
15652 | ||
15653 | static int _wrap_GREY_BRUSH_set(PyObject *_val) { | |
15654 | PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only."); | |
15655 | return 1; | |
15656 | } | |
15657 | ||
15658 | ||
15659 | static PyObject *_wrap_GREY_BRUSH_get() { | |
15660 | PyObject *pyobj; | |
15661 | ||
15662 | pyobj = SWIG_NewPointerObj((void *) wxGREY_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
15663 | return pyobj; | |
15664 | } | |
15665 | ||
15666 | ||
15667 | static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) { | |
15668 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only."); | |
15669 | return 1; | |
15670 | } | |
15671 | ||
15672 | ||
15673 | static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() { | |
15674 | PyObject *pyobj; | |
15675 | ||
15676 | pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
15677 | return pyobj; | |
15678 | } | |
15679 | ||
15680 | ||
15681 | static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) { | |
15682 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only."); | |
15683 | return 1; | |
15684 | } | |
15685 | ||
15686 | ||
15687 | static PyObject *_wrap_LIGHT_GREY_BRUSH_get() { | |
15688 | PyObject *pyobj; | |
15689 | ||
15690 | pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
15691 | return pyobj; | |
15692 | } | |
15693 | ||
15694 | ||
15695 | static int _wrap_BLACK_set(PyObject *_val) { | |
15696 | PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only."); | |
15697 | return 1; | |
15698 | } | |
15699 | ||
15700 | ||
15701 | static PyObject *_wrap_BLACK_get() { | |
15702 | PyObject *pyobj; | |
15703 | ||
15704 | pyobj = SWIG_NewPointerObj((void *) wxBLACK, SWIGTYPE_p_wxColour, 0); | |
15705 | return pyobj; | |
15706 | } | |
15707 | ||
15708 | ||
15709 | static int _wrap_WHITE_set(PyObject *_val) { | |
15710 | PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only."); | |
15711 | return 1; | |
15712 | } | |
15713 | ||
15714 | ||
15715 | static PyObject *_wrap_WHITE_get() { | |
15716 | PyObject *pyobj; | |
15717 | ||
15718 | pyobj = SWIG_NewPointerObj((void *) wxWHITE, SWIGTYPE_p_wxColour, 0); | |
15719 | return pyobj; | |
15720 | } | |
15721 | ||
15722 | ||
15723 | static int _wrap_RED_set(PyObject *_val) { | |
15724 | PyErr_SetString(PyExc_TypeError,"Variable RED is read-only."); | |
15725 | return 1; | |
15726 | } | |
15727 | ||
15728 | ||
15729 | static PyObject *_wrap_RED_get() { | |
15730 | PyObject *pyobj; | |
15731 | ||
15732 | pyobj = SWIG_NewPointerObj((void *) wxRED, SWIGTYPE_p_wxColour, 0); | |
15733 | return pyobj; | |
15734 | } | |
15735 | ||
15736 | ||
15737 | static int _wrap_BLUE_set(PyObject *_val) { | |
15738 | PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only."); | |
15739 | return 1; | |
15740 | } | |
15741 | ||
15742 | ||
15743 | static PyObject *_wrap_BLUE_get() { | |
15744 | PyObject *pyobj; | |
15745 | ||
15746 | pyobj = SWIG_NewPointerObj((void *) wxBLUE, SWIGTYPE_p_wxColour, 0); | |
15747 | return pyobj; | |
15748 | } | |
15749 | ||
15750 | ||
15751 | static int _wrap_GREEN_set(PyObject *_val) { | |
15752 | PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only."); | |
15753 | return 1; | |
15754 | } | |
15755 | ||
15756 | ||
15757 | static PyObject *_wrap_GREEN_get() { | |
15758 | PyObject *pyobj; | |
15759 | ||
15760 | pyobj = SWIG_NewPointerObj((void *) wxGREEN, SWIGTYPE_p_wxColour, 0); | |
15761 | return pyobj; | |
15762 | } | |
15763 | ||
15764 | ||
15765 | static int _wrap_CYAN_set(PyObject *_val) { | |
15766 | PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only."); | |
15767 | return 1; | |
15768 | } | |
15769 | ||
15770 | ||
15771 | static PyObject *_wrap_CYAN_get() { | |
15772 | PyObject *pyobj; | |
15773 | ||
15774 | pyobj = SWIG_NewPointerObj((void *) wxCYAN, SWIGTYPE_p_wxColour, 0); | |
15775 | return pyobj; | |
15776 | } | |
15777 | ||
15778 | ||
15779 | static int _wrap_LIGHT_GREY_set(PyObject *_val) { | |
15780 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only."); | |
15781 | return 1; | |
15782 | } | |
15783 | ||
15784 | ||
15785 | static PyObject *_wrap_LIGHT_GREY_get() { | |
15786 | PyObject *pyobj; | |
15787 | ||
15788 | pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY, SWIGTYPE_p_wxColour, 0); | |
15789 | return pyobj; | |
15790 | } | |
15791 | ||
15792 | ||
15793 | static int _wrap_STANDARD_CURSOR_set(PyObject *_val) { | |
15794 | PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only."); | |
15795 | return 1; | |
15796 | } | |
15797 | ||
15798 | ||
15799 | static PyObject *_wrap_STANDARD_CURSOR_get() { | |
15800 | PyObject *pyobj; | |
15801 | ||
15802 | pyobj = SWIG_NewPointerObj((void *) wxSTANDARD_CURSOR, SWIGTYPE_p_wxCursor, 0); | |
15803 | return pyobj; | |
15804 | } | |
15805 | ||
15806 | ||
15807 | static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) { | |
15808 | PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only."); | |
15809 | return 1; | |
15810 | } | |
15811 | ||
15812 | ||
15813 | static PyObject *_wrap_HOURGLASS_CURSOR_get() { | |
15814 | PyObject *pyobj; | |
15815 | ||
15816 | pyobj = SWIG_NewPointerObj((void *) wxHOURGLASS_CURSOR, SWIGTYPE_p_wxCursor, 0); | |
15817 | return pyobj; | |
15818 | } | |
15819 | ||
15820 | ||
15821 | static int _wrap_CROSS_CURSOR_set(PyObject *_val) { | |
15822 | PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only."); | |
15823 | return 1; | |
15824 | } | |
15825 | ||
15826 | ||
15827 | static PyObject *_wrap_CROSS_CURSOR_get() { | |
15828 | PyObject *pyobj; | |
15829 | ||
15830 | pyobj = SWIG_NewPointerObj((void *) wxCROSS_CURSOR, SWIGTYPE_p_wxCursor, 0); | |
15831 | return pyobj; | |
15832 | } | |
15833 | ||
15834 | ||
15835 | static int _wrap_NullBitmap_set(PyObject *_val) { | |
15836 | PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only."); | |
15837 | return 1; | |
15838 | } | |
15839 | ||
15840 | ||
15841 | static PyObject *_wrap_NullBitmap_get() { | |
15842 | PyObject *pyobj; | |
15843 | ||
15844 | pyobj = SWIG_NewPointerObj((void *) &wxNullBitmap, SWIGTYPE_p_wxBitmap, 0); | |
15845 | return pyobj; | |
15846 | } | |
15847 | ||
15848 | ||
15849 | static int _wrap_NullIcon_set(PyObject *_val) { | |
15850 | PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only."); | |
15851 | return 1; | |
15852 | } | |
15853 | ||
15854 | ||
15855 | static PyObject *_wrap_NullIcon_get() { | |
15856 | PyObject *pyobj; | |
15857 | ||
15858 | pyobj = SWIG_NewPointerObj((void *) &wxNullIcon, SWIGTYPE_p_wxIcon, 0); | |
15859 | return pyobj; | |
15860 | } | |
15861 | ||
15862 | ||
15863 | static int _wrap_NullCursor_set(PyObject *_val) { | |
15864 | PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only."); | |
15865 | return 1; | |
15866 | } | |
15867 | ||
15868 | ||
15869 | static PyObject *_wrap_NullCursor_get() { | |
15870 | PyObject *pyobj; | |
15871 | ||
15872 | pyobj = SWIG_NewPointerObj((void *) &wxNullCursor, SWIGTYPE_p_wxCursor, 0); | |
15873 | return pyobj; | |
15874 | } | |
15875 | ||
15876 | ||
15877 | static int _wrap_NullPen_set(PyObject *_val) { | |
15878 | PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only."); | |
15879 | return 1; | |
15880 | } | |
15881 | ||
15882 | ||
15883 | static PyObject *_wrap_NullPen_get() { | |
15884 | PyObject *pyobj; | |
15885 | ||
15886 | pyobj = SWIG_NewPointerObj((void *) &wxNullPen, SWIGTYPE_p_wxPen, 0); | |
15887 | return pyobj; | |
15888 | } | |
15889 | ||
15890 | ||
15891 | static int _wrap_NullBrush_set(PyObject *_val) { | |
15892 | PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only."); | |
15893 | return 1; | |
15894 | } | |
15895 | ||
15896 | ||
15897 | static PyObject *_wrap_NullBrush_get() { | |
15898 | PyObject *pyobj; | |
15899 | ||
15900 | pyobj = SWIG_NewPointerObj((void *) &wxNullBrush, SWIGTYPE_p_wxBrush, 0); | |
15901 | return pyobj; | |
15902 | } | |
15903 | ||
15904 | ||
15905 | static int _wrap_NullPalette_set(PyObject *_val) { | |
15906 | PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only."); | |
15907 | return 1; | |
15908 | } | |
15909 | ||
15910 | ||
15911 | static PyObject *_wrap_NullPalette_get() { | |
15912 | PyObject *pyobj; | |
15913 | ||
15914 | pyobj = SWIG_NewPointerObj((void *) &wxNullPalette, SWIGTYPE_p_wxPalette, 0); | |
15915 | return pyobj; | |
15916 | } | |
15917 | ||
15918 | ||
15919 | static int _wrap_NullFont_set(PyObject *_val) { | |
15920 | PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only."); | |
15921 | return 1; | |
15922 | } | |
15923 | ||
15924 | ||
15925 | static PyObject *_wrap_NullFont_get() { | |
15926 | PyObject *pyobj; | |
15927 | ||
15928 | pyobj = SWIG_NewPointerObj((void *) &wxNullFont, SWIGTYPE_p_wxFont, 0); | |
15929 | return pyobj; | |
15930 | } | |
15931 | ||
15932 | ||
15933 | static int _wrap_NullColour_set(PyObject *_val) { | |
15934 | PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only."); | |
15935 | return 1; | |
15936 | } | |
15937 | ||
15938 | ||
15939 | static PyObject *_wrap_NullColour_get() { | |
15940 | PyObject *pyobj; | |
15941 | ||
15942 | pyobj = SWIG_NewPointerObj((void *) &wxNullColour, SWIGTYPE_p_wxColour, 0); | |
15943 | return pyobj; | |
15944 | } | |
15945 | ||
15946 | ||
15947 | static int _wrap_TheFontList_set(PyObject *_val) { | |
15948 | PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only."); | |
15949 | return 1; | |
15950 | } | |
15951 | ||
15952 | ||
15953 | static PyObject *_wrap_TheFontList_get() { | |
15954 | PyObject *pyobj; | |
15955 | ||
15956 | pyobj = SWIG_NewPointerObj((void *) wxTheFontList, SWIGTYPE_p_wxFontList, 0); | |
15957 | return pyobj; | |
15958 | } | |
15959 | ||
15960 | ||
15961 | static int _wrap_ThePenList_set(PyObject *_val) { | |
15962 | PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only."); | |
15963 | return 1; | |
15964 | } | |
15965 | ||
15966 | ||
15967 | static PyObject *_wrap_ThePenList_get() { | |
15968 | PyObject *pyobj; | |
15969 | ||
15970 | pyobj = SWIG_NewPointerObj((void *) wxThePenList, SWIGTYPE_p_wxPenList, 0); | |
15971 | return pyobj; | |
15972 | } | |
15973 | ||
15974 | ||
15975 | static int _wrap_TheBrushList_set(PyObject *_val) { | |
15976 | PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only."); | |
15977 | return 1; | |
15978 | } | |
15979 | ||
15980 | ||
15981 | static PyObject *_wrap_TheBrushList_get() { | |
15982 | PyObject *pyobj; | |
15983 | ||
15984 | pyobj = SWIG_NewPointerObj((void *) wxTheBrushList, SWIGTYPE_p_wxBrushList, 0); | |
15985 | return pyobj; | |
15986 | } | |
15987 | ||
15988 | ||
15989 | static int _wrap_TheColourDatabase_set(PyObject *_val) { | |
15990 | PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only."); | |
15991 | return 1; | |
15992 | } | |
15993 | ||
15994 | ||
15995 | static PyObject *_wrap_TheColourDatabase_get() { | |
15996 | PyObject *pyobj; | |
15997 | ||
15998 | pyobj = SWIG_NewPointerObj((void *) wxTheColourDatabase, SWIGTYPE_p_wxColourDatabase, 0); | |
15999 | return pyobj; | |
16000 | } | |
16001 | ||
16002 | ||
16003 | static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16004 | PyObject *resultobj; | |
16005 | wxEffects *result; | |
16006 | char *kwnames[] = { | |
16007 | NULL | |
16008 | }; | |
16009 | ||
16010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail; | |
16011 | { | |
16012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16013 | result = (wxEffects *)new wxEffects(); | |
16014 | ||
16015 | wxPyEndAllowThreads(__tstate); | |
16016 | if (PyErr_Occurred()) SWIG_fail; | |
16017 | } | |
16018 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEffects, 1); | |
16019 | return resultobj; | |
16020 | fail: | |
16021 | return NULL; | |
16022 | } | |
16023 | ||
16024 | ||
16025 | static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16026 | PyObject *resultobj; | |
16027 | wxEffects *arg1 = (wxEffects *) 0 ; | |
16028 | wxColour result; | |
16029 | PyObject * obj0 = 0 ; | |
16030 | char *kwnames[] = { | |
16031 | (char *) "self", NULL | |
16032 | }; | |
16033 | ||
16034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail; | |
16035 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16036 | { | |
16037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16038 | result = ((wxEffects const *)arg1)->GetHighlightColour(); | |
16039 | ||
16040 | wxPyEndAllowThreads(__tstate); | |
16041 | if (PyErr_Occurred()) SWIG_fail; | |
16042 | } | |
16043 | { | |
16044 | wxColour * resultptr; | |
16045 | resultptr = new wxColour((wxColour &) result); | |
16046 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
16047 | } | |
16048 | return resultobj; | |
16049 | fail: | |
16050 | return NULL; | |
16051 | } | |
16052 | ||
16053 | ||
16054 | static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16055 | PyObject *resultobj; | |
16056 | wxEffects *arg1 = (wxEffects *) 0 ; | |
16057 | wxColour result; | |
16058 | PyObject * obj0 = 0 ; | |
16059 | char *kwnames[] = { | |
16060 | (char *) "self", NULL | |
16061 | }; | |
16062 | ||
16063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail; | |
16064 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16065 | { | |
16066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16067 | result = ((wxEffects const *)arg1)->GetLightShadow(); | |
16068 | ||
16069 | wxPyEndAllowThreads(__tstate); | |
16070 | if (PyErr_Occurred()) SWIG_fail; | |
16071 | } | |
16072 | { | |
16073 | wxColour * resultptr; | |
16074 | resultptr = new wxColour((wxColour &) result); | |
16075 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
16076 | } | |
16077 | return resultobj; | |
16078 | fail: | |
16079 | return NULL; | |
16080 | } | |
16081 | ||
16082 | ||
16083 | static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16084 | PyObject *resultobj; | |
16085 | wxEffects *arg1 = (wxEffects *) 0 ; | |
16086 | wxColour result; | |
16087 | PyObject * obj0 = 0 ; | |
16088 | char *kwnames[] = { | |
16089 | (char *) "self", NULL | |
16090 | }; | |
16091 | ||
16092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail; | |
16093 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16094 | { | |
16095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16096 | result = ((wxEffects const *)arg1)->GetFaceColour(); | |
16097 | ||
16098 | wxPyEndAllowThreads(__tstate); | |
16099 | if (PyErr_Occurred()) SWIG_fail; | |
16100 | } | |
16101 | { | |
16102 | wxColour * resultptr; | |
16103 | resultptr = new wxColour((wxColour &) result); | |
16104 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
16105 | } | |
16106 | return resultobj; | |
16107 | fail: | |
16108 | return NULL; | |
16109 | } | |
16110 | ||
16111 | ||
16112 | static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16113 | PyObject *resultobj; | |
16114 | wxEffects *arg1 = (wxEffects *) 0 ; | |
16115 | wxColour result; | |
16116 | PyObject * obj0 = 0 ; | |
16117 | char *kwnames[] = { | |
16118 | (char *) "self", NULL | |
16119 | }; | |
16120 | ||
16121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail; | |
16122 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16123 | { | |
16124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16125 | result = ((wxEffects const *)arg1)->GetMediumShadow(); | |
16126 | ||
16127 | wxPyEndAllowThreads(__tstate); | |
16128 | if (PyErr_Occurred()) SWIG_fail; | |
16129 | } | |
16130 | { | |
16131 | wxColour * resultptr; | |
16132 | resultptr = new wxColour((wxColour &) result); | |
16133 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
16134 | } | |
16135 | return resultobj; | |
16136 | fail: | |
16137 | return NULL; | |
16138 | } | |
16139 | ||
16140 | ||
16141 | static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16142 | PyObject *resultobj; | |
16143 | wxEffects *arg1 = (wxEffects *) 0 ; | |
16144 | wxColour result; | |
16145 | PyObject * obj0 = 0 ; | |
16146 | char *kwnames[] = { | |
16147 | (char *) "self", NULL | |
16148 | }; | |
16149 | ||
16150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail; | |
16151 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16152 | { | |
16153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16154 | result = ((wxEffects const *)arg1)->GetDarkShadow(); | |
16155 | ||
16156 | wxPyEndAllowThreads(__tstate); | |
16157 | if (PyErr_Occurred()) SWIG_fail; | |
16158 | } | |
16159 | { | |
16160 | wxColour * resultptr; | |
16161 | resultptr = new wxColour((wxColour &) result); | |
16162 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
16163 | } | |
16164 | return resultobj; | |
16165 | fail: | |
16166 | return NULL; | |
16167 | } | |
16168 | ||
16169 | ||
16170 | static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16171 | PyObject *resultobj; | |
16172 | wxEffects *arg1 = (wxEffects *) 0 ; | |
16173 | wxColour *arg2 = 0 ; | |
16174 | wxColour temp2 ; | |
16175 | PyObject * obj0 = 0 ; | |
16176 | PyObject * obj1 = 0 ; | |
16177 | char *kwnames[] = { | |
16178 | (char *) "self",(char *) "c", NULL | |
16179 | }; | |
16180 | ||
16181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail; | |
16182 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16183 | { | |
16184 | arg2 = &temp2; | |
16185 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16186 | } | |
16187 | { | |
16188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16189 | (arg1)->SetHighlightColour((wxColour const &)*arg2); | |
16190 | ||
16191 | wxPyEndAllowThreads(__tstate); | |
16192 | if (PyErr_Occurred()) SWIG_fail; | |
16193 | } | |
16194 | Py_INCREF(Py_None); resultobj = Py_None; | |
16195 | return resultobj; | |
16196 | fail: | |
16197 | return NULL; | |
16198 | } | |
16199 | ||
16200 | ||
16201 | static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16202 | PyObject *resultobj; | |
16203 | wxEffects *arg1 = (wxEffects *) 0 ; | |
16204 | wxColour *arg2 = 0 ; | |
16205 | wxColour temp2 ; | |
16206 | PyObject * obj0 = 0 ; | |
16207 | PyObject * obj1 = 0 ; | |
16208 | char *kwnames[] = { | |
16209 | (char *) "self",(char *) "c", NULL | |
16210 | }; | |
16211 | ||
16212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail; | |
16213 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16214 | { | |
16215 | arg2 = &temp2; | |
16216 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16217 | } | |
16218 | { | |
16219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16220 | (arg1)->SetLightShadow((wxColour const &)*arg2); | |
16221 | ||
16222 | wxPyEndAllowThreads(__tstate); | |
16223 | if (PyErr_Occurred()) SWIG_fail; | |
16224 | } | |
16225 | Py_INCREF(Py_None); resultobj = Py_None; | |
16226 | return resultobj; | |
16227 | fail: | |
16228 | return NULL; | |
16229 | } | |
16230 | ||
16231 | ||
16232 | static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16233 | PyObject *resultobj; | |
16234 | wxEffects *arg1 = (wxEffects *) 0 ; | |
16235 | wxColour *arg2 = 0 ; | |
16236 | wxColour temp2 ; | |
16237 | PyObject * obj0 = 0 ; | |
16238 | PyObject * obj1 = 0 ; | |
16239 | char *kwnames[] = { | |
16240 | (char *) "self",(char *) "c", NULL | |
16241 | }; | |
16242 | ||
16243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail; | |
16244 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16245 | { | |
16246 | arg2 = &temp2; | |
16247 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16248 | } | |
16249 | { | |
16250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16251 | (arg1)->SetFaceColour((wxColour const &)*arg2); | |
16252 | ||
16253 | wxPyEndAllowThreads(__tstate); | |
16254 | if (PyErr_Occurred()) SWIG_fail; | |
16255 | } | |
16256 | Py_INCREF(Py_None); resultobj = Py_None; | |
16257 | return resultobj; | |
16258 | fail: | |
16259 | return NULL; | |
16260 | } | |
16261 | ||
16262 | ||
16263 | static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16264 | PyObject *resultobj; | |
16265 | wxEffects *arg1 = (wxEffects *) 0 ; | |
16266 | wxColour *arg2 = 0 ; | |
16267 | wxColour temp2 ; | |
16268 | PyObject * obj0 = 0 ; | |
16269 | PyObject * obj1 = 0 ; | |
16270 | char *kwnames[] = { | |
16271 | (char *) "self",(char *) "c", NULL | |
16272 | }; | |
16273 | ||
16274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail; | |
16275 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16276 | { | |
16277 | arg2 = &temp2; | |
16278 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16279 | } | |
16280 | { | |
16281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16282 | (arg1)->SetMediumShadow((wxColour const &)*arg2); | |
16283 | ||
16284 | wxPyEndAllowThreads(__tstate); | |
16285 | if (PyErr_Occurred()) SWIG_fail; | |
16286 | } | |
16287 | Py_INCREF(Py_None); resultobj = Py_None; | |
16288 | return resultobj; | |
16289 | fail: | |
16290 | return NULL; | |
16291 | } | |
16292 | ||
16293 | ||
16294 | static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16295 | PyObject *resultobj; | |
16296 | wxEffects *arg1 = (wxEffects *) 0 ; | |
16297 | wxColour *arg2 = 0 ; | |
16298 | wxColour temp2 ; | |
16299 | PyObject * obj0 = 0 ; | |
16300 | PyObject * obj1 = 0 ; | |
16301 | char *kwnames[] = { | |
16302 | (char *) "self",(char *) "c", NULL | |
16303 | }; | |
16304 | ||
16305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail; | |
16306 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16307 | { | |
16308 | arg2 = &temp2; | |
16309 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16310 | } | |
16311 | { | |
16312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16313 | (arg1)->SetDarkShadow((wxColour const &)*arg2); | |
16314 | ||
16315 | wxPyEndAllowThreads(__tstate); | |
16316 | if (PyErr_Occurred()) SWIG_fail; | |
16317 | } | |
16318 | Py_INCREF(Py_None); resultobj = Py_None; | |
16319 | return resultobj; | |
16320 | fail: | |
16321 | return NULL; | |
16322 | } | |
16323 | ||
16324 | ||
16325 | static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16326 | PyObject *resultobj; | |
16327 | wxEffects *arg1 = (wxEffects *) 0 ; | |
16328 | wxColour *arg2 = 0 ; | |
16329 | wxColour *arg3 = 0 ; | |
16330 | wxColour *arg4 = 0 ; | |
16331 | wxColour *arg5 = 0 ; | |
16332 | wxColour *arg6 = 0 ; | |
16333 | wxColour temp2 ; | |
16334 | wxColour temp3 ; | |
16335 | wxColour temp4 ; | |
16336 | wxColour temp5 ; | |
16337 | wxColour temp6 ; | |
16338 | PyObject * obj0 = 0 ; | |
16339 | PyObject * obj1 = 0 ; | |
16340 | PyObject * obj2 = 0 ; | |
16341 | PyObject * obj3 = 0 ; | |
16342 | PyObject * obj4 = 0 ; | |
16343 | PyObject * obj5 = 0 ; | |
16344 | char *kwnames[] = { | |
16345 | (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL | |
16346 | }; | |
16347 | ||
16348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
16349 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16350 | { | |
16351 | arg2 = &temp2; | |
16352 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16353 | } | |
16354 | { | |
16355 | arg3 = &temp3; | |
16356 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
16357 | } | |
16358 | { | |
16359 | arg4 = &temp4; | |
16360 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
16361 | } | |
16362 | { | |
16363 | arg5 = &temp5; | |
16364 | if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail; | |
16365 | } | |
16366 | { | |
16367 | arg6 = &temp6; | |
16368 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
16369 | } | |
16370 | { | |
16371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16372 | (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6); | |
16373 | ||
16374 | wxPyEndAllowThreads(__tstate); | |
16375 | if (PyErr_Occurred()) SWIG_fail; | |
16376 | } | |
16377 | Py_INCREF(Py_None); resultobj = Py_None; | |
16378 | return resultobj; | |
16379 | fail: | |
16380 | return NULL; | |
16381 | } | |
16382 | ||
16383 | ||
16384 | static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16385 | PyObject *resultobj; | |
16386 | wxEffects *arg1 = (wxEffects *) 0 ; | |
16387 | wxDC *arg2 = 0 ; | |
16388 | wxRect *arg3 = 0 ; | |
16389 | int arg4 = (int) 1 ; | |
16390 | wxRect temp3 ; | |
16391 | PyObject * obj0 = 0 ; | |
16392 | PyObject * obj1 = 0 ; | |
16393 | PyObject * obj2 = 0 ; | |
16394 | char *kwnames[] = { | |
16395 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL | |
16396 | }; | |
16397 | ||
16398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|i:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail; | |
16399 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16400 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16401 | if (arg2 == NULL) { | |
16402 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
16403 | } | |
16404 | { | |
16405 | arg3 = &temp3; | |
16406 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
16407 | } | |
16408 | { | |
16409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16410 | (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4); | |
16411 | ||
16412 | wxPyEndAllowThreads(__tstate); | |
16413 | if (PyErr_Occurred()) SWIG_fail; | |
16414 | } | |
16415 | Py_INCREF(Py_None); resultobj = Py_None; | |
16416 | return resultobj; | |
16417 | fail: | |
16418 | return NULL; | |
16419 | } | |
16420 | ||
16421 | ||
16422 | static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16423 | PyObject *resultobj; | |
16424 | wxEffects *arg1 = (wxEffects *) 0 ; | |
16425 | wxRect *arg2 = 0 ; | |
16426 | wxDC *arg3 = 0 ; | |
16427 | wxBitmap *arg4 = 0 ; | |
16428 | bool result; | |
16429 | wxRect temp2 ; | |
16430 | PyObject * obj0 = 0 ; | |
16431 | PyObject * obj1 = 0 ; | |
16432 | PyObject * obj2 = 0 ; | |
16433 | PyObject * obj3 = 0 ; | |
16434 | char *kwnames[] = { | |
16435 | (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL | |
16436 | }; | |
16437 | ||
16438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
16439 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16440 | { | |
16441 | arg2 = &temp2; | |
16442 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
16443 | } | |
16444 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16445 | if (arg3 == NULL) { | |
16446 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
16447 | } | |
16448 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16449 | if (arg4 == NULL) { | |
16450 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
16451 | } | |
16452 | { | |
16453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16454 | result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4); | |
16455 | ||
16456 | wxPyEndAllowThreads(__tstate); | |
16457 | if (PyErr_Occurred()) SWIG_fail; | |
16458 | } | |
16459 | resultobj = PyInt_FromLong((long)result); | |
16460 | return resultobj; | |
16461 | fail: | |
16462 | return NULL; | |
16463 | } | |
16464 | ||
16465 | ||
16466 | static PyObject * Effects_swigregister(PyObject *self, PyObject *args) { | |
16467 | PyObject *obj; | |
16468 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16469 | SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj); | |
16470 | Py_INCREF(obj); | |
16471 | return Py_BuildValue((char *)""); | |
16472 | } | |
16473 | static PyMethodDef SwigMethods[] = { | |
16474 | { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS }, | |
16475 | { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS }, | |
16476 | { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS }, | |
16477 | { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS }, | |
16478 | { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS }, | |
16479 | { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS }, | |
16480 | { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS }, | |
16481 | { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS }, | |
16482 | { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS }, | |
16483 | { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS }, | |
16484 | { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS }, | |
16485 | { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS }, | |
16486 | { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS }, | |
16487 | { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS }, | |
16488 | { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS }, | |
16489 | { (char *)"Colour_SetRBG", (PyCFunction) _wrap_Colour_SetRBG, METH_VARARGS | METH_KEYWORDS }, | |
16490 | { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS }, | |
16491 | { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS }, | |
16492 | { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS }, | |
16493 | { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS }, | |
16494 | { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS }, | |
16495 | { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS }, | |
16496 | { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
16497 | { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS }, | |
16498 | { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS }, | |
16499 | { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS }, | |
16500 | { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS }, | |
16501 | { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS }, | |
16502 | { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS }, | |
16503 | { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
16504 | { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS }, | |
16505 | { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
16506 | { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
16507 | { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS }, | |
16508 | { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS }, | |
16509 | { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
16510 | { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS }, | |
16511 | { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
16512 | { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
16513 | { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS }, | |
16514 | { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS }, | |
16515 | { (char *)"Pen_GetStipple", (PyCFunction) _wrap_Pen_GetStipple, METH_VARARGS | METH_KEYWORDS }, | |
16516 | { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS }, | |
16517 | { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS }, | |
16518 | { (char *)"new_PyPen", (PyCFunction) _wrap_new_PyPen, METH_VARARGS | METH_KEYWORDS }, | |
16519 | { (char *)"delete_PyPen", (PyCFunction) _wrap_delete_PyPen, METH_VARARGS | METH_KEYWORDS }, | |
16520 | { (char *)"PyPen_SetDashes", (PyCFunction) _wrap_PyPen_SetDashes, METH_VARARGS | METH_KEYWORDS }, | |
16521 | { (char *)"PyPen_swigregister", PyPen_swigregister, METH_VARARGS }, | |
16522 | { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS }, | |
16523 | { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS }, | |
16524 | { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
16525 | { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
16526 | { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS }, | |
16527 | { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
16528 | { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
16529 | { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS }, | |
16530 | { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS }, | |
16531 | { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS }, | |
16532 | { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS }, | |
16533 | { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS }, | |
16534 | { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS }, | |
16535 | { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
16536 | { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS }, | |
16537 | { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
16538 | { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS }, | |
16539 | { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS }, | |
16540 | { (char *)"Bitmap_GetHandle", (PyCFunction) _wrap_Bitmap_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
16541 | { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS }, | |
16542 | { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS }, | |
16543 | { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
16544 | { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
16545 | { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
16546 | { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS }, | |
16547 | { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
16548 | { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
16549 | { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS }, | |
16550 | { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS }, | |
16551 | { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
16552 | { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
16553 | { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
16554 | { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
16555 | { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
16556 | { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
16557 | { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS }, | |
16558 | { (char *)"Bitmap_GetQuality", (PyCFunction) _wrap_Bitmap_GetQuality, METH_VARARGS | METH_KEYWORDS }, | |
16559 | { (char *)"Bitmap_SetQuality", (PyCFunction) _wrap_Bitmap_SetQuality, METH_VARARGS | METH_KEYWORDS }, | |
16560 | { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS }, | |
16561 | { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS }, | |
16562 | { (char *)"new_MaskColour", (PyCFunction) _wrap_new_MaskColour, METH_VARARGS | METH_KEYWORDS }, | |
16563 | { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS }, | |
16564 | { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS }, | |
16565 | { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS }, | |
16566 | { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS }, | |
16567 | { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS }, | |
16568 | { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
16569 | { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
16570 | { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
16571 | { (char *)"Icon_GetHandle", (PyCFunction) _wrap_Icon_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
16572 | { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS }, | |
16573 | { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS }, | |
16574 | { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
16575 | { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
16576 | { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
16577 | { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
16578 | { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
16579 | { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
16580 | { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
16581 | { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
16582 | { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS }, | |
16583 | { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS }, | |
16584 | { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS }, | |
16585 | { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
16586 | { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS }, | |
16587 | { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS }, | |
16588 | { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS }, | |
16589 | { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
16590 | { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS }, | |
16591 | { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS }, | |
16592 | { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS }, | |
16593 | { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
16594 | { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS }, | |
16595 | { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
16596 | { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS }, | |
16597 | { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
16598 | { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS }, | |
16599 | { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS }, | |
16600 | { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS }, | |
16601 | { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS }, | |
16602 | { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS }, | |
16603 | { (char *)"new_CursorFromBits", (PyCFunction) _wrap_new_CursorFromBits, METH_VARARGS | METH_KEYWORDS }, | |
16604 | { (char *)"Cursor_GetHandle", (PyCFunction) _wrap_Cursor_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
16605 | { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS }, | |
16606 | { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS }, | |
16607 | { (char *)"Cursor_GetWidth", (PyCFunction) _wrap_Cursor_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
16608 | { (char *)"Cursor_GetHeight", (PyCFunction) _wrap_Cursor_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
16609 | { (char *)"Cursor_GetDepth", (PyCFunction) _wrap_Cursor_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
16610 | { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
16611 | { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
16612 | { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
16613 | { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
16614 | { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS }, | |
16615 | { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS }, | |
16616 | { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
16617 | { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS }, | |
16618 | { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS }, | |
16619 | { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS }, | |
16620 | { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS }, | |
16621 | { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS }, | |
16622 | { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS }, | |
16623 | { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS }, | |
16624 | { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS }, | |
16625 | { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS }, | |
16626 | { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
16627 | { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
16628 | { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS }, | |
16629 | { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
16630 | { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS }, | |
16631 | { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS }, | |
16632 | { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS }, | |
16633 | { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
16634 | { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS }, | |
16635 | { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS }, | |
16636 | { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS }, | |
16637 | { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS }, | |
16638 | { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS }, | |
16639 | { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS }, | |
16640 | { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS }, | |
16641 | { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS }, | |
16642 | { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
16643 | { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
16644 | { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS }, | |
16645 | { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS }, | |
16646 | { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS }, | |
16647 | { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
16648 | { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS }, | |
16649 | { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
16650 | { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
16651 | { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS }, | |
16652 | { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS }, | |
16653 | { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS }, | |
16654 | { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS }, | |
16655 | { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS }, | |
16656 | { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
16657 | { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
16658 | { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS }, | |
16659 | { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS }, | |
16660 | { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
16661 | { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
16662 | { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS }, | |
16663 | { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
16664 | { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
16665 | { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS }, | |
16666 | { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
16667 | { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
16668 | { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
16669 | { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
16670 | { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
16671 | { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
16672 | { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS }, | |
16673 | { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
16674 | { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS }, | |
16675 | { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS }, | |
16676 | { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS }, | |
16677 | { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS }, | |
16678 | { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS }, | |
16679 | { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS }, | |
16680 | { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS }, | |
16681 | { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS }, | |
16682 | { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS }, | |
16683 | { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS }, | |
16684 | { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS }, | |
16685 | { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS }, | |
16686 | { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS }, | |
16687 | { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS }, | |
16688 | { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS }, | |
16689 | { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS }, | |
16690 | { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS }, | |
16691 | { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS }, | |
16692 | { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS }, | |
16693 | { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS }, | |
16694 | { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS }, | |
16695 | { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS }, | |
16696 | { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS }, | |
16697 | { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
16698 | { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS }, | |
16699 | { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS }, | |
16700 | { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS }, | |
16701 | { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS }, | |
16702 | { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS }, | |
16703 | { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS }, | |
16704 | { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS }, | |
16705 | { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS }, | |
16706 | { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS }, | |
16707 | { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS }, | |
16708 | { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS }, | |
16709 | { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS }, | |
16710 | { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS }, | |
16711 | { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS }, | |
16712 | { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS }, | |
16713 | { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS }, | |
16714 | { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS }, | |
16715 | { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS }, | |
16716 | { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
16717 | { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS }, | |
16718 | { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
16719 | { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS }, | |
16720 | { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
16721 | { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
16722 | { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
16723 | { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
16724 | { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS }, | |
16725 | { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS }, | |
16726 | { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, | |
16727 | { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
16728 | { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS }, | |
16729 | { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
16730 | { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
16731 | { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
16732 | { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
16733 | { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
16734 | { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
16735 | { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS }, | |
16736 | { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, | |
16737 | { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS }, | |
16738 | { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS }, | |
16739 | { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS }, | |
16740 | { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS }, | |
16741 | { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS }, | |
16742 | { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
16743 | { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
16744 | { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS }, | |
16745 | { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS }, | |
16746 | { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS }, | |
16747 | { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
16748 | { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS }, | |
16749 | { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS }, | |
16750 | { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS }, | |
16751 | { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS }, | |
16752 | { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS }, | |
16753 | { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS }, | |
16754 | { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS }, | |
16755 | { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS }, | |
16756 | { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS }, | |
16757 | { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS }, | |
16758 | { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS }, | |
16759 | { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS }, | |
16760 | { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS }, | |
16761 | { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS }, | |
16762 | { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS }, | |
16763 | { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS }, | |
16764 | { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS }, | |
16765 | { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS }, | |
16766 | { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS }, | |
16767 | { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
16768 | { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS }, | |
16769 | { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS }, | |
16770 | { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS }, | |
16771 | { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS }, | |
16772 | { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS }, | |
16773 | { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS }, | |
16774 | { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS }, | |
16775 | { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS }, | |
16776 | { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS }, | |
16777 | { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS }, | |
16778 | { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS }, | |
16779 | { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS }, | |
16780 | { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS }, | |
16781 | { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS }, | |
16782 | { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS }, | |
16783 | { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS }, | |
16784 | { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS }, | |
16785 | { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS }, | |
16786 | { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS }, | |
16787 | { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS }, | |
16788 | { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS }, | |
16789 | { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS }, | |
16790 | { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS }, | |
16791 | { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS }, | |
16792 | { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS }, | |
16793 | { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS }, | |
16794 | { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS }, | |
16795 | { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS }, | |
16796 | { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS }, | |
16797 | { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS }, | |
16798 | { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
16799 | { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS }, | |
16800 | { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS }, | |
16801 | { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS }, | |
16802 | { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS }, | |
16803 | { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS }, | |
16804 | { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS }, | |
16805 | { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS }, | |
16806 | { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS }, | |
16807 | { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS }, | |
16808 | { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS }, | |
16809 | { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS }, | |
16810 | { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS }, | |
16811 | { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS }, | |
16812 | { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS }, | |
16813 | { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS }, | |
16814 | { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS }, | |
16815 | { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS }, | |
16816 | { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS }, | |
16817 | { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS }, | |
16818 | { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS }, | |
16819 | { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS }, | |
16820 | { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS }, | |
16821 | { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS }, | |
16822 | { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS }, | |
16823 | { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS }, | |
16824 | { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS }, | |
16825 | { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
16826 | { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS }, | |
16827 | { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS }, | |
16828 | { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS }, | |
16829 | { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS }, | |
16830 | { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS }, | |
16831 | { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS }, | |
16832 | { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS }, | |
16833 | { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS }, | |
16834 | { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS }, | |
16835 | { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS }, | |
16836 | { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS }, | |
16837 | { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS }, | |
16838 | { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS }, | |
16839 | { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS }, | |
16840 | { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS }, | |
16841 | { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS }, | |
16842 | { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
16843 | { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS }, | |
16844 | { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS }, | |
16845 | { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS }, | |
16846 | { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
16847 | { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS }, | |
16848 | { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS }, | |
16849 | { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS }, | |
16850 | { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS }, | |
16851 | { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS }, | |
16852 | { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS }, | |
16853 | { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS }, | |
16854 | { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
16855 | { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
16856 | { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
16857 | { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
16858 | { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
16859 | { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
16860 | { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
16861 | { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS }, | |
16862 | { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS }, | |
16863 | { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS }, | |
16864 | { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS }, | |
16865 | { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS }, | |
16866 | { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS }, | |
16867 | { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS }, | |
16868 | { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS }, | |
16869 | { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS }, | |
16870 | { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS }, | |
16871 | { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
16872 | { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
16873 | { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
16874 | { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS }, | |
16875 | { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS }, | |
16876 | { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
16877 | { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS }, | |
16878 | { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS }, | |
16879 | { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
16880 | { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS }, | |
16881 | { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
16882 | { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
16883 | { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
16884 | { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
16885 | { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
16886 | { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
16887 | { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
16888 | { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
16889 | { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS }, | |
16890 | { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS }, | |
16891 | { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, | |
16892 | { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS }, | |
16893 | { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, | |
16894 | { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, | |
16895 | { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS }, | |
16896 | { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, | |
16897 | { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS }, | |
16898 | { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, | |
16899 | { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, | |
16900 | { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
16901 | { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
16902 | { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
16903 | { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
16904 | { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS }, | |
16905 | { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS }, | |
16906 | { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS }, | |
16907 | { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS }, | |
16908 | { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
16909 | { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS }, | |
16910 | { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS }, | |
16911 | { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS }, | |
16912 | { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS }, | |
16913 | { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS }, | |
16914 | { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS }, | |
16915 | { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS }, | |
16916 | { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS }, | |
16917 | { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS }, | |
16918 | { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS }, | |
16919 | { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS }, | |
16920 | { (char *)"new_BufferedDC", (PyCFunction) _wrap_new_BufferedDC, METH_VARARGS | METH_KEYWORDS }, | |
16921 | { (char *)"new_BufferedDCInternalBuffer", (PyCFunction) _wrap_new_BufferedDCInternalBuffer, METH_VARARGS | METH_KEYWORDS }, | |
16922 | { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS }, | |
16923 | { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS }, | |
16924 | { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS }, | |
16925 | { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS }, | |
16926 | { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS }, | |
16927 | { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS }, | |
16928 | { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
16929 | { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
16930 | { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS }, | |
16931 | { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS }, | |
16932 | { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS }, | |
16933 | { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS }, | |
16934 | { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS }, | |
16935 | { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS }, | |
16936 | { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS }, | |
16937 | { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS }, | |
16938 | { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS }, | |
16939 | { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS }, | |
16940 | { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
16941 | { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
16942 | { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS }, | |
16943 | { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS }, | |
16944 | { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS }, | |
16945 | { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS }, | |
16946 | { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS }, | |
16947 | { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS }, | |
16948 | { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS }, | |
16949 | { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
16950 | { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
16951 | { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
16952 | { (char *)"MetaFile_GetFileName", (PyCFunction) _wrap_MetaFile_GetFileName, METH_VARARGS | METH_KEYWORDS }, | |
16953 | { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS }, | |
16954 | { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS }, | |
16955 | { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS }, | |
16956 | { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS }, | |
16957 | { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS }, | |
16958 | { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS }, | |
16959 | { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS }, | |
16960 | { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS }, | |
16961 | { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS }, | |
16962 | { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS }, | |
16963 | { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
16964 | { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS }, | |
16965 | { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS }, | |
16966 | { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
16967 | { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS }, | |
16968 | { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS }, | |
16969 | { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
16970 | { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS }, | |
16971 | { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS }, | |
16972 | { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS }, | |
16973 | { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS }, | |
16974 | { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
16975 | { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS }, | |
16976 | { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS }, | |
16977 | { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS }, | |
16978 | { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS }, | |
16979 | { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
16980 | { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS }, | |
16981 | { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS }, | |
16982 | { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS }, | |
16983 | { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS }, | |
16984 | { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS }, | |
16985 | { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS }, | |
16986 | { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS }, | |
16987 | { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS }, | |
16988 | { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS }, | |
16989 | { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS }, | |
16990 | { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS }, | |
16991 | { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
16992 | { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS }, | |
16993 | { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS }, | |
16994 | { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS }, | |
16995 | { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS }, | |
16996 | { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS }, | |
16997 | { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS }, | |
16998 | { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS }, | |
16999 | { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS }, | |
17000 | { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS }, | |
17001 | { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS }, | |
17002 | { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS }, | |
17003 | { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS }, | |
17004 | { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS }, | |
17005 | { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS }, | |
17006 | { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17007 | { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS }, | |
17008 | { NULL, NULL } | |
17009 | }; | |
17010 | ||
17011 | ||
17012 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
17013 | ||
17014 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
17015 | return (void *)((wxWindow *) ((wxControl *) x)); | |
17016 | } | |
17017 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
17018 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
17019 | } | |
17020 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
17021 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
17022 | } | |
17023 | static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) { | |
17024 | return (void *)((wxMemoryDC *) ((wxBufferedDC *) x)); | |
17025 | } | |
17026 | static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) { | |
17027 | return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
17028 | } | |
17029 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
17030 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
17031 | } | |
17032 | static void *_p_wxPenTo_p_wxObject(void *x) { | |
17033 | return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x)); | |
17034 | } | |
17035 | static void *_p_wxRegionIteratorTo_p_wxObject(void *x) { | |
17036 | return (void *)((wxObject *) ((wxRegionIterator *) x)); | |
17037 | } | |
17038 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
17039 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
17040 | } | |
17041 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
17042 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
17043 | } | |
17044 | static void *_p_wxColourDatabaseTo_p_wxObject(void *x) { | |
17045 | return (void *)((wxObject *) ((wxColourDatabase *) x)); | |
17046 | } | |
17047 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
17048 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
17049 | } | |
17050 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
17051 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
17052 | } | |
17053 | static void *_p_wxIconTo_p_wxObject(void *x) { | |
17054 | return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x)); | |
17055 | } | |
17056 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
17057 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
17058 | } | |
17059 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
17060 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
17061 | } | |
17062 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
17063 | return (void *)((wxObject *) ((wxSizer *) x)); | |
17064 | } | |
17065 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
17066 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
17067 | } | |
17068 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
17069 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
17070 | } | |
17071 | static void *_p_wxPenListTo_p_wxObject(void *x) { | |
17072 | return (void *)((wxObject *) ((wxPenList *) x)); | |
17073 | } | |
17074 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
17075 | return (void *)((wxObject *) ((wxEvent *) x)); | |
17076 | } | |
17077 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
17078 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
17079 | } | |
17080 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
17081 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
17082 | } | |
17083 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
17084 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
17085 | } | |
17086 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
17087 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
17088 | } | |
17089 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
17090 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
17091 | } | |
17092 | static void *_p_wxDCTo_p_wxObject(void *x) { | |
17093 | return (void *)((wxObject *) ((wxDC *) x)); | |
17094 | } | |
17095 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
17096 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
17097 | } | |
17098 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
17099 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
17100 | } | |
17101 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
17102 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
17103 | } | |
17104 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
17105 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
17106 | } | |
17107 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
17108 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
17109 | } | |
17110 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
17111 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
17112 | } | |
17113 | static void *_p_wxClientDCTo_p_wxObject(void *x) { | |
17114 | return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x)); | |
17115 | } | |
17116 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
17117 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
17118 | } | |
17119 | static void *_p_wxMemoryDCTo_p_wxObject(void *x) { | |
17120 | return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x)); | |
17121 | } | |
17122 | static void *_p_wxRegionTo_p_wxObject(void *x) { | |
17123 | return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x)); | |
17124 | } | |
17125 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
17126 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
17127 | } | |
17128 | static void *_p_wxWindowDCTo_p_wxObject(void *x) { | |
17129 | return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x)); | |
17130 | } | |
17131 | static void *_p_wxGDIObjectTo_p_wxObject(void *x) { | |
17132 | return (void *)((wxObject *) ((wxGDIObject *) x)); | |
17133 | } | |
17134 | static void *_p_wxEffectsTo_p_wxObject(void *x) { | |
17135 | return (void *)((wxObject *) ((wxEffects *) x)); | |
17136 | } | |
17137 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
17138 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
17139 | } | |
17140 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
17141 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
17142 | } | |
17143 | static void *_p_wxPostScriptDCTo_p_wxObject(void *x) { | |
17144 | return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x)); | |
17145 | } | |
17146 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
17147 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
17148 | } | |
17149 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
17150 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
17151 | } | |
17152 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
17153 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
17154 | } | |
17155 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
17156 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
17157 | } | |
17158 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
17159 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
17160 | } | |
17161 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
17162 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
17163 | } | |
17164 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
17165 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
17166 | } | |
17167 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
17168 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
17169 | } | |
17170 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
17171 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
17172 | } | |
17173 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
17174 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
17175 | } | |
17176 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
17177 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
17178 | } | |
17179 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
17180 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
17181 | } | |
17182 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
17183 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
17184 | } | |
17185 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
17186 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
17187 | } | |
17188 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
17189 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
17190 | } | |
17191 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
17192 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
17193 | } | |
17194 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
17195 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
17196 | } | |
17197 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
17198 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
17199 | } | |
17200 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
17201 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
17202 | } | |
17203 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
17204 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
17205 | } | |
17206 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
17207 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
17208 | } | |
17209 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
17210 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
17211 | } | |
17212 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
17213 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
17214 | } | |
17215 | static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) { | |
17216 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
17217 | } | |
17218 | static void *_p_wxPaintDCTo_p_wxObject(void *x) { | |
17219 | return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x)); | |
17220 | } | |
17221 | static void *_p_wxPrinterDCTo_p_wxObject(void *x) { | |
17222 | return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x)); | |
17223 | } | |
17224 | static void *_p_wxScreenDCTo_p_wxObject(void *x) { | |
17225 | return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x)); | |
17226 | } | |
17227 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
17228 | return (void *)((wxObject *) ((wxImage *) x)); | |
17229 | } | |
17230 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
17231 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
17232 | } | |
17233 | static void *_p_wxPaletteTo_p_wxObject(void *x) { | |
17234 | return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x)); | |
17235 | } | |
17236 | static void *_p_wxBufferedDCTo_p_wxObject(void *x) { | |
17237 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x)); | |
17238 | } | |
17239 | static void *_p_wxImageListTo_p_wxObject(void *x) { | |
17240 | return (void *)((wxObject *) ((wxImageList *) x)); | |
17241 | } | |
17242 | static void *_p_wxCursorTo_p_wxObject(void *x) { | |
17243 | return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x)); | |
17244 | } | |
17245 | static void *_p_wxEncodingConverterTo_p_wxObject(void *x) { | |
17246 | return (void *)((wxObject *) ((wxEncodingConverter *) x)); | |
17247 | } | |
17248 | static void *_p_wxMirrorDCTo_p_wxObject(void *x) { | |
17249 | return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x)); | |
17250 | } | |
17251 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
17252 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
17253 | } | |
17254 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
17255 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
17256 | } | |
17257 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
17258 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
17259 | } | |
17260 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
17261 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
17262 | } | |
17263 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
17264 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
17265 | } | |
17266 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
17267 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
17268 | } | |
17269 | static void *_p_wxMetaFileDCTo_p_wxObject(void *x) { | |
17270 | return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x)); | |
17271 | } | |
17272 | static void *_p_wxBrushListTo_p_wxObject(void *x) { | |
17273 | return (void *)((wxObject *) ((wxBrushList *) x)); | |
17274 | } | |
17275 | static void *_p_wxPyPenTo_p_wxObject(void *x) { | |
17276 | return (void *)((wxObject *) (wxGDIObject *)(wxPen *) ((wxPyPen *) x)); | |
17277 | } | |
17278 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
17279 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
17280 | } | |
17281 | static void *_p_wxBitmapTo_p_wxObject(void *x) { | |
17282 | return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x)); | |
17283 | } | |
17284 | static void *_p_wxMaskTo_p_wxObject(void *x) { | |
17285 | return (void *)((wxObject *) ((wxMask *) x)); | |
17286 | } | |
17287 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
17288 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
17289 | } | |
17290 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
17291 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
17292 | } | |
17293 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
17294 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
17295 | } | |
17296 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
17297 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
17298 | } | |
17299 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
17300 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
17301 | } | |
17302 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
17303 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
17304 | } | |
17305 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
17306 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
17307 | } | |
17308 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
17309 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
17310 | } | |
17311 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
17312 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
17313 | } | |
17314 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
17315 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
17316 | } | |
17317 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
17318 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
17319 | } | |
17320 | static void *_p_wxFontTo_p_wxObject(void *x) { | |
17321 | return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x)); | |
17322 | } | |
17323 | static void *_p_wxBrushTo_p_wxObject(void *x) { | |
17324 | return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x)); | |
17325 | } | |
17326 | static void *_p_wxMetaFileTo_p_wxObject(void *x) { | |
17327 | return (void *)((wxObject *) ((wxMetaFile *) x)); | |
17328 | } | |
17329 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
17330 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
17331 | } | |
17332 | static void *_p_wxColourTo_p_wxObject(void *x) { | |
17333 | return (void *)((wxObject *) ((wxColour *) x)); | |
17334 | } | |
17335 | static void *_p_wxFontListTo_p_wxObject(void *x) { | |
17336 | return (void *)((wxObject *) ((wxFontList *) x)); | |
17337 | } | |
17338 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
17339 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
17340 | } | |
17341 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
17342 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
17343 | } | |
17344 | static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) { | |
17345 | return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
17346 | } | |
17347 | static void *_p_wxBufferedDCTo_p_wxDC(void *x) { | |
17348 | return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x)); | |
17349 | } | |
17350 | static void *_p_wxScreenDCTo_p_wxDC(void *x) { | |
17351 | return (void *)((wxDC *) ((wxScreenDC *) x)); | |
17352 | } | |
17353 | static void *_p_wxMirrorDCTo_p_wxDC(void *x) { | |
17354 | return (void *)((wxDC *) ((wxMirrorDC *) x)); | |
17355 | } | |
17356 | static void *_p_wxMemoryDCTo_p_wxDC(void *x) { | |
17357 | return (void *)((wxDC *) ((wxMemoryDC *) x)); | |
17358 | } | |
17359 | static void *_p_wxWindowDCTo_p_wxDC(void *x) { | |
17360 | return (void *)((wxDC *) ((wxWindowDC *) x)); | |
17361 | } | |
17362 | static void *_p_wxMetaFileDCTo_p_wxDC(void *x) { | |
17363 | return (void *)((wxDC *) ((wxMetaFileDC *) x)); | |
17364 | } | |
17365 | static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) { | |
17366 | return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
17367 | } | |
17368 | static void *_p_wxClientDCTo_p_wxDC(void *x) { | |
17369 | return (void *)((wxDC *) ((wxClientDC *) x)); | |
17370 | } | |
17371 | static void *_p_wxPaintDCTo_p_wxDC(void *x) { | |
17372 | return (void *)((wxDC *) ((wxPaintDC *) x)); | |
17373 | } | |
17374 | static void *_p_wxPostScriptDCTo_p_wxDC(void *x) { | |
17375 | return (void *)((wxDC *) ((wxPostScriptDC *) x)); | |
17376 | } | |
17377 | static void *_p_wxPrinterDCTo_p_wxDC(void *x) { | |
17378 | return (void *)((wxDC *) ((wxPrinterDC *) x)); | |
17379 | } | |
17380 | static void *_p_wxPyPenTo_p_wxGDIObject(void *x) { | |
17381 | return (void *)((wxGDIObject *) (wxPen *) ((wxPyPen *) x)); | |
17382 | } | |
17383 | static void *_p_wxIconTo_p_wxGDIObject(void *x) { | |
17384 | return (void *)((wxGDIObject *) ((wxIcon *) x)); | |
17385 | } | |
17386 | static void *_p_wxPaletteTo_p_wxGDIObject(void *x) { | |
17387 | return (void *)((wxGDIObject *) ((wxPalette *) x)); | |
17388 | } | |
17389 | static void *_p_wxPenTo_p_wxGDIObject(void *x) { | |
17390 | return (void *)((wxGDIObject *) ((wxPen *) x)); | |
17391 | } | |
17392 | static void *_p_wxFontTo_p_wxGDIObject(void *x) { | |
17393 | return (void *)((wxGDIObject *) ((wxFont *) x)); | |
17394 | } | |
17395 | static void *_p_wxCursorTo_p_wxGDIObject(void *x) { | |
17396 | return (void *)((wxGDIObject *) ((wxCursor *) x)); | |
17397 | } | |
17398 | static void *_p_wxBitmapTo_p_wxGDIObject(void *x) { | |
17399 | return (void *)((wxGDIObject *) ((wxBitmap *) x)); | |
17400 | } | |
17401 | static void *_p_wxRegionTo_p_wxGDIObject(void *x) { | |
17402 | return (void *)((wxGDIObject *) ((wxRegion *) x)); | |
17403 | } | |
17404 | static void *_p_wxBrushTo_p_wxGDIObject(void *x) { | |
17405 | return (void *)((wxGDIObject *) ((wxBrush *) x)); | |
17406 | } | |
17407 | static void *_p_wxPyPenTo_p_wxPen(void *x) { | |
17408 | return (void *)((wxPen *) ((wxPyPen *) x)); | |
17409 | } | |
17410 | static swig_type_info _swigt__p_wxPostScriptDC[] = {{"_p_wxPostScriptDC", 0, "wxPostScriptDC *", 0},{"_p_wxPostScriptDC"},{0}}; | |
17411 | static swig_type_info _swigt__p_wxBrush[] = {{"_p_wxBrush", 0, "wxBrush *", 0},{"_p_wxBrush"},{0}}; | |
17412 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}}; | |
17413 | 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}}; | |
17414 | static swig_type_info _swigt__p_wxMirrorDC[] = {{"_p_wxMirrorDC", 0, "wxMirrorDC *", 0},{"_p_wxMirrorDC"},{0}}; | |
17415 | static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "byte *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}}; | |
17416 | static swig_type_info _swigt__p_wxPyFontEnumerator[] = {{"_p_wxPyFontEnumerator", 0, "wxPyFontEnumerator *", 0},{"_p_wxPyFontEnumerator"},{0}}; | |
17417 | static swig_type_info _swigt__p_wxIconLocation[] = {{"_p_wxIconLocation", 0, "wxIconLocation *", 0},{"_p_wxIconLocation"},{0}}; | |
17418 | static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0},{"_p_wxImage"},{0}}; | |
17419 | static swig_type_info _swigt__p_wxMetaFileDC[] = {{"_p_wxMetaFileDC", 0, "wxMetaFileDC *", 0},{"_p_wxMetaFileDC"},{0}}; | |
17420 | static swig_type_info _swigt__p_wxMask[] = {{"_p_wxMask", 0, "wxMask *", 0},{"_p_wxMask"},{0}}; | |
17421 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}}; | |
17422 | 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}}; | |
17423 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}}; | |
17424 | static swig_type_info _swigt__p_double[] = {{"_p_double", 0, "double *", 0},{"_p_double"},{0}}; | |
17425 | 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}}; | |
17426 | static swig_type_info _swigt__p_wxFontMapper[] = {{"_p_wxFontMapper", 0, "wxFontMapper *", 0},{"_p_wxFontMapper"},{0}}; | |
17427 | static swig_type_info _swigt__p_wxEffects[] = {{"_p_wxEffects", 0, "wxEffects *", 0},{"_p_wxEffects"},{0}}; | |
17428 | static swig_type_info _swigt__p_wxNativeEncodingInfo[] = {{"_p_wxNativeEncodingInfo", 0, "wxNativeEncodingInfo *", 0},{"_p_wxNativeEncodingInfo"},{0}}; | |
17429 | static swig_type_info _swigt__p_wxPalette[] = {{"_p_wxPalette", 0, "wxPalette *", 0},{"_p_wxPalette"},{0}}; | |
17430 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}}; | |
17431 | 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_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}}; | |
17432 | static swig_type_info _swigt__p_wxRegionIterator[] = {{"_p_wxRegionIterator", 0, "wxRegionIterator *", 0},{"_p_wxRegionIterator"},{0}}; | |
17433 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}}; | |
17434 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}}; | |
17435 | static swig_type_info _swigt__p_wxPrinterDC[] = {{"_p_wxPrinterDC", 0, "wxPrinterDC *", 0},{"_p_wxPrinterDC"},{0}}; | |
17436 | static swig_type_info _swigt__p_wxIconBundle[] = {{"_p_wxIconBundle", 0, "wxIconBundle *", 0},{"_p_wxIconBundle"},{0}}; | |
17437 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}}; | |
17438 | static swig_type_info _swigt__p_wxDash[] = {{"_p_wxDash", 0, "wxDash *", 0},{"_p_wxDash"},{0}}; | |
17439 | static swig_type_info _swigt__p_wxScreenDC[] = {{"_p_wxScreenDC", 0, "wxScreenDC *", 0},{"_p_wxScreenDC"},{0}}; | |
17440 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}}; | |
17441 | static swig_type_info _swigt__p_wxClientDC[] = {{"_p_wxClientDC", 0, "wxClientDC *", 0},{"_p_wxClientDC"},{0}}; | |
17442 | static swig_type_info _swigt__p_wxBufferedDC[] = {{"_p_wxBufferedDC", 0, "wxBufferedDC *", 0},{"_p_wxBufferedDC"},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxBufferedDC},{0}}; | |
17443 | static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0},{"_p_wxImageList"},{0}}; | |
17444 | static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}}; | |
17445 | 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}}; | |
17446 | static swig_type_info _swigt__p_wxLocale[] = {{"_p_wxLocale", 0, "wxLocale *", 0},{"_p_wxLocale"},{0}}; | |
17447 | static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}}; | |
17448 | static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0},{"_p_wxRegion"},{0}}; | |
17449 | static swig_type_info _swigt__p_wxLanguageInfo[] = {{"_p_wxLanguageInfo", 0, "wxLanguageInfo *", 0},{"_p_wxLanguageInfo"},{0}}; | |
17450 | static swig_type_info _swigt__p_wxConfigBase[] = {{"_p_wxConfigBase", 0, "wxConfigBase *", 0},{"_p_wxConfigBase"},{0}}; | |
17451 | static swig_type_info _swigt__p_wxWindowDC[] = {{"_p_wxWindowDC", 0, "wxWindowDC *", 0},{"_p_wxWindowDC"},{0}}; | |
17452 | static swig_type_info _swigt__p_wxPrintData[] = {{"_p_wxPrintData", 0, "wxPrintData *", 0},{"_p_wxPrintData"},{0}}; | |
17453 | static swig_type_info _swigt__p_wxBrushList[] = {{"_p_wxBrushList", 0, "wxBrushList *", 0},{"_p_wxBrushList"},{0}}; | |
17454 | static swig_type_info _swigt__p_wxFontList[] = {{"_p_wxFontList", 0, "wxFontList *", 0},{"_p_wxFontList"},{0}}; | |
17455 | static swig_type_info _swigt__p_wxPen[] = {{"_p_wxPen", 0, "wxPen *", 0},{"_p_wxPyPen", _p_wxPyPenTo_p_wxPen},{"_p_wxPen"},{0}}; | |
17456 | static swig_type_info _swigt__p_wxBufferedPaintDC[] = {{"_p_wxBufferedPaintDC", 0, "wxBufferedPaintDC *", 0},{"_p_wxBufferedPaintDC"},{0}}; | |
17457 | static swig_type_info _swigt__p_wxPaintDC[] = {{"_p_wxPaintDC", 0, "wxPaintDC *", 0},{"_p_wxPaintDC"},{0}}; | |
17458 | static swig_type_info _swigt__p_wxPenList[] = {{"_p_wxPenList", 0, "wxPenList *", 0},{"_p_wxPenList"},{0}}; | |
17459 | static swig_type_info _swigt__p_wxPyPen[] = {{"_p_wxPyPen", 0, "wxPyPen *", 0},{"_p_wxPyPen"},{0}}; | |
17460 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}}; | |
17461 | static swig_type_info _swigt__p_wxMetaFile[] = {{"_p_wxMetaFile", 0, "wxMetaFile *", 0},{"_p_wxMetaFile"},{0}}; | |
17462 | static swig_type_info _swigt__p_wxNativeFontInfo[] = {{"_p_wxNativeFontInfo", 0, "wxNativeFontInfo *", 0},{"_p_wxNativeFontInfo"},{0}}; | |
17463 | static swig_type_info _swigt__p_wxEncodingConverter[] = {{"_p_wxEncodingConverter", 0, "wxEncodingConverter *", 0},{"_p_wxEncodingConverter"},{0}}; | |
17464 | static swig_type_info _swigt__p_wxColourDatabase[] = {{"_p_wxColourDatabase", 0, "wxColourDatabase *", 0},{"_p_wxColourDatabase"},{0}}; | |
17465 | ||
17466 | static swig_type_info *swig_types_initial[] = { | |
17467 | _swigt__p_wxPostScriptDC, | |
17468 | _swigt__p_wxBrush, | |
17469 | _swigt__p_wxColour, | |
17470 | _swigt__p_wxDC, | |
17471 | _swigt__p_wxMirrorDC, | |
17472 | _swigt__p_byte, | |
17473 | _swigt__p_wxPyFontEnumerator, | |
17474 | _swigt__p_wxIconLocation, | |
17475 | _swigt__p_wxImage, | |
17476 | _swigt__p_wxMetaFileDC, | |
17477 | _swigt__p_wxMask, | |
17478 | _swigt__p_wxFont, | |
17479 | _swigt__p_wxWindow, | |
17480 | _swigt__p_wxSize, | |
17481 | _swigt__p_double, | |
17482 | _swigt__p_wxMemoryDC, | |
17483 | _swigt__p_wxFontMapper, | |
17484 | _swigt__p_wxEffects, | |
17485 | _swigt__p_wxNativeEncodingInfo, | |
17486 | _swigt__p_wxPalette, | |
17487 | _swigt__p_wxBitmap, | |
17488 | _swigt__p_wxObject, | |
17489 | _swigt__p_wxRegionIterator, | |
17490 | _swigt__p_wxRect, | |
17491 | _swigt__p_wxString, | |
17492 | _swigt__p_wxPrinterDC, | |
17493 | _swigt__p_wxIconBundle, | |
17494 | _swigt__p_wxPoint, | |
17495 | _swigt__p_wxDash, | |
17496 | _swigt__p_wxScreenDC, | |
17497 | _swigt__p_wxCursor, | |
17498 | _swigt__p_wxClientDC, | |
17499 | _swigt__p_wxBufferedDC, | |
17500 | _swigt__p_wxImageList, | |
17501 | _swigt__p_unsigned_char, | |
17502 | _swigt__p_wxGDIObject, | |
17503 | _swigt__p_wxLocale, | |
17504 | _swigt__p_wxIcon, | |
17505 | _swigt__p_wxRegion, | |
17506 | _swigt__p_wxLanguageInfo, | |
17507 | _swigt__p_wxConfigBase, | |
17508 | _swigt__p_wxWindowDC, | |
17509 | _swigt__p_wxPrintData, | |
17510 | _swigt__p_wxBrushList, | |
17511 | _swigt__p_wxFontList, | |
17512 | _swigt__p_wxPen, | |
17513 | _swigt__p_wxBufferedPaintDC, | |
17514 | _swigt__p_wxPaintDC, | |
17515 | _swigt__p_wxPenList, | |
17516 | _swigt__p_wxPyPen, | |
17517 | _swigt__p_int, | |
17518 | _swigt__p_wxMetaFile, | |
17519 | _swigt__p_wxNativeFontInfo, | |
17520 | _swigt__p_wxEncodingConverter, | |
17521 | _swigt__p_wxColourDatabase, | |
17522 | 0 | |
17523 | }; | |
17524 | ||
17525 | ||
17526 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
17527 | ||
17528 | static swig_const_info swig_const_table[] = { | |
17529 | { SWIG_PY_INT, (char *)"OutRegion", (long) wxOutRegion, 0, 0, 0}, | |
17530 | { SWIG_PY_INT, (char *)"PartRegion", (long) wxPartRegion, 0, 0, 0}, | |
17531 | { SWIG_PY_INT, (char *)"InRegion", (long) wxInRegion, 0, 0, 0}, | |
17532 | { SWIG_PY_INT, (char *)"FONTFAMILY_DEFAULT", (long) wxFONTFAMILY_DEFAULT, 0, 0, 0}, | |
17533 | { SWIG_PY_INT, (char *)"FONTFAMILY_DECORATIVE", (long) wxFONTFAMILY_DECORATIVE, 0, 0, 0}, | |
17534 | { SWIG_PY_INT, (char *)"FONTFAMILY_ROMAN", (long) wxFONTFAMILY_ROMAN, 0, 0, 0}, | |
17535 | { SWIG_PY_INT, (char *)"FONTFAMILY_SCRIPT", (long) wxFONTFAMILY_SCRIPT, 0, 0, 0}, | |
17536 | { SWIG_PY_INT, (char *)"FONTFAMILY_SWISS", (long) wxFONTFAMILY_SWISS, 0, 0, 0}, | |
17537 | { SWIG_PY_INT, (char *)"FONTFAMILY_MODERN", (long) wxFONTFAMILY_MODERN, 0, 0, 0}, | |
17538 | { SWIG_PY_INT, (char *)"FONTFAMILY_TELETYPE", (long) wxFONTFAMILY_TELETYPE, 0, 0, 0}, | |
17539 | { SWIG_PY_INT, (char *)"FONTFAMILY_MAX", (long) wxFONTFAMILY_MAX, 0, 0, 0}, | |
17540 | { SWIG_PY_INT, (char *)"FONTFAMILY_UNKNOWN", (long) wxFONTFAMILY_UNKNOWN, 0, 0, 0}, | |
17541 | { SWIG_PY_INT, (char *)"FONTSTYLE_NORMAL", (long) wxFONTSTYLE_NORMAL, 0, 0, 0}, | |
17542 | { SWIG_PY_INT, (char *)"FONTSTYLE_ITALIC", (long) wxFONTSTYLE_ITALIC, 0, 0, 0}, | |
17543 | { SWIG_PY_INT, (char *)"FONTSTYLE_SLANT", (long) wxFONTSTYLE_SLANT, 0, 0, 0}, | |
17544 | { SWIG_PY_INT, (char *)"FONTSTYLE_MAX", (long) wxFONTSTYLE_MAX, 0, 0, 0}, | |
17545 | { SWIG_PY_INT, (char *)"FONTWEIGHT_NORMAL", (long) wxFONTWEIGHT_NORMAL, 0, 0, 0}, | |
17546 | { SWIG_PY_INT, (char *)"FONTWEIGHT_LIGHT", (long) wxFONTWEIGHT_LIGHT, 0, 0, 0}, | |
17547 | { SWIG_PY_INT, (char *)"FONTWEIGHT_BOLD", (long) wxFONTWEIGHT_BOLD, 0, 0, 0}, | |
17548 | { SWIG_PY_INT, (char *)"FONTWEIGHT_MAX", (long) wxFONTWEIGHT_MAX, 0, 0, 0}, | |
17549 | { SWIG_PY_INT, (char *)"FONTFLAG_DEFAULT", (long) wxFONTFLAG_DEFAULT, 0, 0, 0}, | |
17550 | { SWIG_PY_INT, (char *)"FONTFLAG_ITALIC", (long) wxFONTFLAG_ITALIC, 0, 0, 0}, | |
17551 | { SWIG_PY_INT, (char *)"FONTFLAG_SLANT", (long) wxFONTFLAG_SLANT, 0, 0, 0}, | |
17552 | { SWIG_PY_INT, (char *)"FONTFLAG_LIGHT", (long) wxFONTFLAG_LIGHT, 0, 0, 0}, | |
17553 | { SWIG_PY_INT, (char *)"FONTFLAG_BOLD", (long) wxFONTFLAG_BOLD, 0, 0, 0}, | |
17554 | { SWIG_PY_INT, (char *)"FONTFLAG_ANTIALIASED", (long) wxFONTFLAG_ANTIALIASED, 0, 0, 0}, | |
17555 | { SWIG_PY_INT, (char *)"FONTFLAG_NOT_ANTIALIASED", (long) wxFONTFLAG_NOT_ANTIALIASED, 0, 0, 0}, | |
17556 | { SWIG_PY_INT, (char *)"FONTFLAG_UNDERLINED", (long) wxFONTFLAG_UNDERLINED, 0, 0, 0}, | |
17557 | { SWIG_PY_INT, (char *)"FONTFLAG_STRIKETHROUGH", (long) wxFONTFLAG_STRIKETHROUGH, 0, 0, 0}, | |
17558 | { SWIG_PY_INT, (char *)"FONTFLAG_MASK", (long) wxFONTFLAG_MASK, 0, 0, 0}, | |
17559 | { SWIG_PY_INT, (char *)"FONTENCODING_SYSTEM", (long) wxFONTENCODING_SYSTEM, 0, 0, 0}, | |
17560 | { SWIG_PY_INT, (char *)"FONTENCODING_DEFAULT", (long) wxFONTENCODING_DEFAULT, 0, 0, 0}, | |
17561 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_1", (long) wxFONTENCODING_ISO8859_1, 0, 0, 0}, | |
17562 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_2", (long) wxFONTENCODING_ISO8859_2, 0, 0, 0}, | |
17563 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_3", (long) wxFONTENCODING_ISO8859_3, 0, 0, 0}, | |
17564 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_4", (long) wxFONTENCODING_ISO8859_4, 0, 0, 0}, | |
17565 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_5", (long) wxFONTENCODING_ISO8859_5, 0, 0, 0}, | |
17566 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_6", (long) wxFONTENCODING_ISO8859_6, 0, 0, 0}, | |
17567 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_7", (long) wxFONTENCODING_ISO8859_7, 0, 0, 0}, | |
17568 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_8", (long) wxFONTENCODING_ISO8859_8, 0, 0, 0}, | |
17569 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_9", (long) wxFONTENCODING_ISO8859_9, 0, 0, 0}, | |
17570 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_10", (long) wxFONTENCODING_ISO8859_10, 0, 0, 0}, | |
17571 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_11", (long) wxFONTENCODING_ISO8859_11, 0, 0, 0}, | |
17572 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_12", (long) wxFONTENCODING_ISO8859_12, 0, 0, 0}, | |
17573 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_13", (long) wxFONTENCODING_ISO8859_13, 0, 0, 0}, | |
17574 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_14", (long) wxFONTENCODING_ISO8859_14, 0, 0, 0}, | |
17575 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_15", (long) wxFONTENCODING_ISO8859_15, 0, 0, 0}, | |
17576 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_MAX", (long) wxFONTENCODING_ISO8859_MAX, 0, 0, 0}, | |
17577 | { SWIG_PY_INT, (char *)"FONTENCODING_KOI8", (long) wxFONTENCODING_KOI8, 0, 0, 0}, | |
17578 | { SWIG_PY_INT, (char *)"FONTENCODING_ALTERNATIVE", (long) wxFONTENCODING_ALTERNATIVE, 0, 0, 0}, | |
17579 | { SWIG_PY_INT, (char *)"FONTENCODING_BULGARIAN", (long) wxFONTENCODING_BULGARIAN, 0, 0, 0}, | |
17580 | { SWIG_PY_INT, (char *)"FONTENCODING_CP437", (long) wxFONTENCODING_CP437, 0, 0, 0}, | |
17581 | { SWIG_PY_INT, (char *)"FONTENCODING_CP850", (long) wxFONTENCODING_CP850, 0, 0, 0}, | |
17582 | { SWIG_PY_INT, (char *)"FONTENCODING_CP852", (long) wxFONTENCODING_CP852, 0, 0, 0}, | |
17583 | { SWIG_PY_INT, (char *)"FONTENCODING_CP855", (long) wxFONTENCODING_CP855, 0, 0, 0}, | |
17584 | { SWIG_PY_INT, (char *)"FONTENCODING_CP866", (long) wxFONTENCODING_CP866, 0, 0, 0}, | |
17585 | { SWIG_PY_INT, (char *)"FONTENCODING_CP874", (long) wxFONTENCODING_CP874, 0, 0, 0}, | |
17586 | { SWIG_PY_INT, (char *)"FONTENCODING_CP932", (long) wxFONTENCODING_CP932, 0, 0, 0}, | |
17587 | { SWIG_PY_INT, (char *)"FONTENCODING_CP936", (long) wxFONTENCODING_CP936, 0, 0, 0}, | |
17588 | { SWIG_PY_INT, (char *)"FONTENCODING_CP949", (long) wxFONTENCODING_CP949, 0, 0, 0}, | |
17589 | { SWIG_PY_INT, (char *)"FONTENCODING_CP950", (long) wxFONTENCODING_CP950, 0, 0, 0}, | |
17590 | { SWIG_PY_INT, (char *)"FONTENCODING_CP1250", (long) wxFONTENCODING_CP1250, 0, 0, 0}, | |
17591 | { SWIG_PY_INT, (char *)"FONTENCODING_CP1251", (long) wxFONTENCODING_CP1251, 0, 0, 0}, | |
17592 | { SWIG_PY_INT, (char *)"FONTENCODING_CP1252", (long) wxFONTENCODING_CP1252, 0, 0, 0}, | |
17593 | { SWIG_PY_INT, (char *)"FONTENCODING_CP1253", (long) wxFONTENCODING_CP1253, 0, 0, 0}, | |
17594 | { SWIG_PY_INT, (char *)"FONTENCODING_CP1254", (long) wxFONTENCODING_CP1254, 0, 0, 0}, | |
17595 | { SWIG_PY_INT, (char *)"FONTENCODING_CP1255", (long) wxFONTENCODING_CP1255, 0, 0, 0}, | |
17596 | { SWIG_PY_INT, (char *)"FONTENCODING_CP1256", (long) wxFONTENCODING_CP1256, 0, 0, 0}, | |
17597 | { SWIG_PY_INT, (char *)"FONTENCODING_CP1257", (long) wxFONTENCODING_CP1257, 0, 0, 0}, | |
17598 | { SWIG_PY_INT, (char *)"FONTENCODING_CP12_MAX", (long) wxFONTENCODING_CP12_MAX, 0, 0, 0}, | |
17599 | { SWIG_PY_INT, (char *)"FONTENCODING_UTF7", (long) wxFONTENCODING_UTF7, 0, 0, 0}, | |
17600 | { SWIG_PY_INT, (char *)"FONTENCODING_UTF8", (long) wxFONTENCODING_UTF8, 0, 0, 0}, | |
17601 | { SWIG_PY_INT, (char *)"FONTENCODING_EUC_JP", (long) wxFONTENCODING_EUC_JP, 0, 0, 0}, | |
17602 | { SWIG_PY_INT, (char *)"FONTENCODING_UTF16BE", (long) wxFONTENCODING_UTF16BE, 0, 0, 0}, | |
17603 | { SWIG_PY_INT, (char *)"FONTENCODING_UTF16LE", (long) wxFONTENCODING_UTF16LE, 0, 0, 0}, | |
17604 | { SWIG_PY_INT, (char *)"FONTENCODING_UTF32BE", (long) wxFONTENCODING_UTF32BE, 0, 0, 0}, | |
17605 | { SWIG_PY_INT, (char *)"FONTENCODING_UTF32LE", (long) wxFONTENCODING_UTF32LE, 0, 0, 0}, | |
17606 | { SWIG_PY_INT, (char *)"FONTENCODING_MAX", (long) wxFONTENCODING_MAX, 0, 0, 0}, | |
17607 | { SWIG_PY_INT, (char *)"FONTENCODING_UTF16", (long) wxFONTENCODING_UTF16, 0, 0, 0}, | |
17608 | { SWIG_PY_INT, (char *)"FONTENCODING_UTF32", (long) wxFONTENCODING_UTF32, 0, 0, 0}, | |
17609 | { SWIG_PY_INT, (char *)"FONTENCODING_UNICODE", (long) wxFONTENCODING_UNICODE, 0, 0, 0}, | |
17610 | { SWIG_PY_INT, (char *)"FONTENCODING_GB2312", (long) wxFONTENCODING_GB2312, 0, 0, 0}, | |
17611 | { SWIG_PY_INT, (char *)"FONTENCODING_BIG5", (long) wxFONTENCODING_BIG5, 0, 0, 0}, | |
17612 | { SWIG_PY_INT, (char *)"FONTENCODING_SHIFT_JIS", (long) wxFONTENCODING_SHIFT_JIS, 0, 0, 0}, | |
17613 | { SWIG_PY_INT, (char *)"LANGUAGE_DEFAULT", (long) wxLANGUAGE_DEFAULT, 0, 0, 0}, | |
17614 | { SWIG_PY_INT, (char *)"LANGUAGE_UNKNOWN", (long) wxLANGUAGE_UNKNOWN, 0, 0, 0}, | |
17615 | { SWIG_PY_INT, (char *)"LANGUAGE_ABKHAZIAN", (long) wxLANGUAGE_ABKHAZIAN, 0, 0, 0}, | |
17616 | { SWIG_PY_INT, (char *)"LANGUAGE_AFAR", (long) wxLANGUAGE_AFAR, 0, 0, 0}, | |
17617 | { SWIG_PY_INT, (char *)"LANGUAGE_AFRIKAANS", (long) wxLANGUAGE_AFRIKAANS, 0, 0, 0}, | |
17618 | { SWIG_PY_INT, (char *)"LANGUAGE_ALBANIAN", (long) wxLANGUAGE_ALBANIAN, 0, 0, 0}, | |
17619 | { SWIG_PY_INT, (char *)"LANGUAGE_AMHARIC", (long) wxLANGUAGE_AMHARIC, 0, 0, 0}, | |
17620 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC", (long) wxLANGUAGE_ARABIC, 0, 0, 0}, | |
17621 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_ALGERIA", (long) wxLANGUAGE_ARABIC_ALGERIA, 0, 0, 0}, | |
17622 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_BAHRAIN", (long) wxLANGUAGE_ARABIC_BAHRAIN, 0, 0, 0}, | |
17623 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_EGYPT", (long) wxLANGUAGE_ARABIC_EGYPT, 0, 0, 0}, | |
17624 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_IRAQ", (long) wxLANGUAGE_ARABIC_IRAQ, 0, 0, 0}, | |
17625 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_JORDAN", (long) wxLANGUAGE_ARABIC_JORDAN, 0, 0, 0}, | |
17626 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_KUWAIT", (long) wxLANGUAGE_ARABIC_KUWAIT, 0, 0, 0}, | |
17627 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_LEBANON", (long) wxLANGUAGE_ARABIC_LEBANON, 0, 0, 0}, | |
17628 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_LIBYA", (long) wxLANGUAGE_ARABIC_LIBYA, 0, 0, 0}, | |
17629 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_MOROCCO", (long) wxLANGUAGE_ARABIC_MOROCCO, 0, 0, 0}, | |
17630 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_OMAN", (long) wxLANGUAGE_ARABIC_OMAN, 0, 0, 0}, | |
17631 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_QATAR", (long) wxLANGUAGE_ARABIC_QATAR, 0, 0, 0}, | |
17632 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_SAUDI_ARABIA", (long) wxLANGUAGE_ARABIC_SAUDI_ARABIA, 0, 0, 0}, | |
17633 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_SUDAN", (long) wxLANGUAGE_ARABIC_SUDAN, 0, 0, 0}, | |
17634 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_SYRIA", (long) wxLANGUAGE_ARABIC_SYRIA, 0, 0, 0}, | |
17635 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_TUNISIA", (long) wxLANGUAGE_ARABIC_TUNISIA, 0, 0, 0}, | |
17636 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_UAE", (long) wxLANGUAGE_ARABIC_UAE, 0, 0, 0}, | |
17637 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_YEMEN", (long) wxLANGUAGE_ARABIC_YEMEN, 0, 0, 0}, | |
17638 | { SWIG_PY_INT, (char *)"LANGUAGE_ARMENIAN", (long) wxLANGUAGE_ARMENIAN, 0, 0, 0}, | |
17639 | { SWIG_PY_INT, (char *)"LANGUAGE_ASSAMESE", (long) wxLANGUAGE_ASSAMESE, 0, 0, 0}, | |
17640 | { SWIG_PY_INT, (char *)"LANGUAGE_AYMARA", (long) wxLANGUAGE_AYMARA, 0, 0, 0}, | |
17641 | { SWIG_PY_INT, (char *)"LANGUAGE_AZERI", (long) wxLANGUAGE_AZERI, 0, 0, 0}, | |
17642 | { SWIG_PY_INT, (char *)"LANGUAGE_AZERI_CYRILLIC", (long) wxLANGUAGE_AZERI_CYRILLIC, 0, 0, 0}, | |
17643 | { SWIG_PY_INT, (char *)"LANGUAGE_AZERI_LATIN", (long) wxLANGUAGE_AZERI_LATIN, 0, 0, 0}, | |
17644 | { SWIG_PY_INT, (char *)"LANGUAGE_BASHKIR", (long) wxLANGUAGE_BASHKIR, 0, 0, 0}, | |
17645 | { SWIG_PY_INT, (char *)"LANGUAGE_BASQUE", (long) wxLANGUAGE_BASQUE, 0, 0, 0}, | |
17646 | { SWIG_PY_INT, (char *)"LANGUAGE_BELARUSIAN", (long) wxLANGUAGE_BELARUSIAN, 0, 0, 0}, | |
17647 | { SWIG_PY_INT, (char *)"LANGUAGE_BENGALI", (long) wxLANGUAGE_BENGALI, 0, 0, 0}, | |
17648 | { SWIG_PY_INT, (char *)"LANGUAGE_BHUTANI", (long) wxLANGUAGE_BHUTANI, 0, 0, 0}, | |
17649 | { SWIG_PY_INT, (char *)"LANGUAGE_BIHARI", (long) wxLANGUAGE_BIHARI, 0, 0, 0}, | |
17650 | { SWIG_PY_INT, (char *)"LANGUAGE_BISLAMA", (long) wxLANGUAGE_BISLAMA, 0, 0, 0}, | |
17651 | { SWIG_PY_INT, (char *)"LANGUAGE_BRETON", (long) wxLANGUAGE_BRETON, 0, 0, 0}, | |
17652 | { SWIG_PY_INT, (char *)"LANGUAGE_BULGARIAN", (long) wxLANGUAGE_BULGARIAN, 0, 0, 0}, | |
17653 | { SWIG_PY_INT, (char *)"LANGUAGE_BURMESE", (long) wxLANGUAGE_BURMESE, 0, 0, 0}, | |
17654 | { SWIG_PY_INT, (char *)"LANGUAGE_CAMBODIAN", (long) wxLANGUAGE_CAMBODIAN, 0, 0, 0}, | |
17655 | { SWIG_PY_INT, (char *)"LANGUAGE_CATALAN", (long) wxLANGUAGE_CATALAN, 0, 0, 0}, | |
17656 | { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE", (long) wxLANGUAGE_CHINESE, 0, 0, 0}, | |
17657 | { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_SIMPLIFIED", (long) wxLANGUAGE_CHINESE_SIMPLIFIED, 0, 0, 0}, | |
17658 | { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_TRADITIONAL", (long) wxLANGUAGE_CHINESE_TRADITIONAL, 0, 0, 0}, | |
17659 | { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_HONGKONG", (long) wxLANGUAGE_CHINESE_HONGKONG, 0, 0, 0}, | |
17660 | { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_MACAU", (long) wxLANGUAGE_CHINESE_MACAU, 0, 0, 0}, | |
17661 | { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_SINGAPORE", (long) wxLANGUAGE_CHINESE_SINGAPORE, 0, 0, 0}, | |
17662 | { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_TAIWAN", (long) wxLANGUAGE_CHINESE_TAIWAN, 0, 0, 0}, | |
17663 | { SWIG_PY_INT, (char *)"LANGUAGE_CORSICAN", (long) wxLANGUAGE_CORSICAN, 0, 0, 0}, | |
17664 | { SWIG_PY_INT, (char *)"LANGUAGE_CROATIAN", (long) wxLANGUAGE_CROATIAN, 0, 0, 0}, | |
17665 | { SWIG_PY_INT, (char *)"LANGUAGE_CZECH", (long) wxLANGUAGE_CZECH, 0, 0, 0}, | |
17666 | { SWIG_PY_INT, (char *)"LANGUAGE_DANISH", (long) wxLANGUAGE_DANISH, 0, 0, 0}, | |
17667 | { SWIG_PY_INT, (char *)"LANGUAGE_DUTCH", (long) wxLANGUAGE_DUTCH, 0, 0, 0}, | |
17668 | { SWIG_PY_INT, (char *)"LANGUAGE_DUTCH_BELGIAN", (long) wxLANGUAGE_DUTCH_BELGIAN, 0, 0, 0}, | |
17669 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH", (long) wxLANGUAGE_ENGLISH, 0, 0, 0}, | |
17670 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_UK", (long) wxLANGUAGE_ENGLISH_UK, 0, 0, 0}, | |
17671 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_US", (long) wxLANGUAGE_ENGLISH_US, 0, 0, 0}, | |
17672 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_AUSTRALIA", (long) wxLANGUAGE_ENGLISH_AUSTRALIA, 0, 0, 0}, | |
17673 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_BELIZE", (long) wxLANGUAGE_ENGLISH_BELIZE, 0, 0, 0}, | |
17674 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_BOTSWANA", (long) wxLANGUAGE_ENGLISH_BOTSWANA, 0, 0, 0}, | |
17675 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_CANADA", (long) wxLANGUAGE_ENGLISH_CANADA, 0, 0, 0}, | |
17676 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_CARIBBEAN", (long) wxLANGUAGE_ENGLISH_CARIBBEAN, 0, 0, 0}, | |
17677 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_DENMARK", (long) wxLANGUAGE_ENGLISH_DENMARK, 0, 0, 0}, | |
17678 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_EIRE", (long) wxLANGUAGE_ENGLISH_EIRE, 0, 0, 0}, | |
17679 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_JAMAICA", (long) wxLANGUAGE_ENGLISH_JAMAICA, 0, 0, 0}, | |
17680 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_NEW_ZEALAND", (long) wxLANGUAGE_ENGLISH_NEW_ZEALAND, 0, 0, 0}, | |
17681 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_PHILIPPINES", (long) wxLANGUAGE_ENGLISH_PHILIPPINES, 0, 0, 0}, | |
17682 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_SOUTH_AFRICA", (long) wxLANGUAGE_ENGLISH_SOUTH_AFRICA, 0, 0, 0}, | |
17683 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_TRINIDAD", (long) wxLANGUAGE_ENGLISH_TRINIDAD, 0, 0, 0}, | |
17684 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_ZIMBABWE", (long) wxLANGUAGE_ENGLISH_ZIMBABWE, 0, 0, 0}, | |
17685 | { SWIG_PY_INT, (char *)"LANGUAGE_ESPERANTO", (long) wxLANGUAGE_ESPERANTO, 0, 0, 0}, | |
17686 | { SWIG_PY_INT, (char *)"LANGUAGE_ESTONIAN", (long) wxLANGUAGE_ESTONIAN, 0, 0, 0}, | |
17687 | { SWIG_PY_INT, (char *)"LANGUAGE_FAEROESE", (long) wxLANGUAGE_FAEROESE, 0, 0, 0}, | |
17688 | { SWIG_PY_INT, (char *)"LANGUAGE_FARSI", (long) wxLANGUAGE_FARSI, 0, 0, 0}, | |
17689 | { SWIG_PY_INT, (char *)"LANGUAGE_FIJI", (long) wxLANGUAGE_FIJI, 0, 0, 0}, | |
17690 | { SWIG_PY_INT, (char *)"LANGUAGE_FINNISH", (long) wxLANGUAGE_FINNISH, 0, 0, 0}, | |
17691 | { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH", (long) wxLANGUAGE_FRENCH, 0, 0, 0}, | |
17692 | { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_BELGIAN", (long) wxLANGUAGE_FRENCH_BELGIAN, 0, 0, 0}, | |
17693 | { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_CANADIAN", (long) wxLANGUAGE_FRENCH_CANADIAN, 0, 0, 0}, | |
17694 | { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_LUXEMBOURG", (long) wxLANGUAGE_FRENCH_LUXEMBOURG, 0, 0, 0}, | |
17695 | { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_MONACO", (long) wxLANGUAGE_FRENCH_MONACO, 0, 0, 0}, | |
17696 | { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_SWISS", (long) wxLANGUAGE_FRENCH_SWISS, 0, 0, 0}, | |
17697 | { SWIG_PY_INT, (char *)"LANGUAGE_FRISIAN", (long) wxLANGUAGE_FRISIAN, 0, 0, 0}, | |
17698 | { SWIG_PY_INT, (char *)"LANGUAGE_GALICIAN", (long) wxLANGUAGE_GALICIAN, 0, 0, 0}, | |
17699 | { SWIG_PY_INT, (char *)"LANGUAGE_GEORGIAN", (long) wxLANGUAGE_GEORGIAN, 0, 0, 0}, | |
17700 | { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN", (long) wxLANGUAGE_GERMAN, 0, 0, 0}, | |
17701 | { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_AUSTRIAN", (long) wxLANGUAGE_GERMAN_AUSTRIAN, 0, 0, 0}, | |
17702 | { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_BELGIUM", (long) wxLANGUAGE_GERMAN_BELGIUM, 0, 0, 0}, | |
17703 | { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_LIECHTENSTEIN", (long) wxLANGUAGE_GERMAN_LIECHTENSTEIN, 0, 0, 0}, | |
17704 | { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_LUXEMBOURG", (long) wxLANGUAGE_GERMAN_LUXEMBOURG, 0, 0, 0}, | |
17705 | { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_SWISS", (long) wxLANGUAGE_GERMAN_SWISS, 0, 0, 0}, | |
17706 | { SWIG_PY_INT, (char *)"LANGUAGE_GREEK", (long) wxLANGUAGE_GREEK, 0, 0, 0}, | |
17707 | { SWIG_PY_INT, (char *)"LANGUAGE_GREENLANDIC", (long) wxLANGUAGE_GREENLANDIC, 0, 0, 0}, | |
17708 | { SWIG_PY_INT, (char *)"LANGUAGE_GUARANI", (long) wxLANGUAGE_GUARANI, 0, 0, 0}, | |
17709 | { SWIG_PY_INT, (char *)"LANGUAGE_GUJARATI", (long) wxLANGUAGE_GUJARATI, 0, 0, 0}, | |
17710 | { SWIG_PY_INT, (char *)"LANGUAGE_HAUSA", (long) wxLANGUAGE_HAUSA, 0, 0, 0}, | |
17711 | { SWIG_PY_INT, (char *)"LANGUAGE_HEBREW", (long) wxLANGUAGE_HEBREW, 0, 0, 0}, | |
17712 | { SWIG_PY_INT, (char *)"LANGUAGE_HINDI", (long) wxLANGUAGE_HINDI, 0, 0, 0}, | |
17713 | { SWIG_PY_INT, (char *)"LANGUAGE_HUNGARIAN", (long) wxLANGUAGE_HUNGARIAN, 0, 0, 0}, | |
17714 | { SWIG_PY_INT, (char *)"LANGUAGE_ICELANDIC", (long) wxLANGUAGE_ICELANDIC, 0, 0, 0}, | |
17715 | { SWIG_PY_INT, (char *)"LANGUAGE_INDONESIAN", (long) wxLANGUAGE_INDONESIAN, 0, 0, 0}, | |
17716 | { SWIG_PY_INT, (char *)"LANGUAGE_INTERLINGUA", (long) wxLANGUAGE_INTERLINGUA, 0, 0, 0}, | |
17717 | { SWIG_PY_INT, (char *)"LANGUAGE_INTERLINGUE", (long) wxLANGUAGE_INTERLINGUE, 0, 0, 0}, | |
17718 | { SWIG_PY_INT, (char *)"LANGUAGE_INUKTITUT", (long) wxLANGUAGE_INUKTITUT, 0, 0, 0}, | |
17719 | { SWIG_PY_INT, (char *)"LANGUAGE_INUPIAK", (long) wxLANGUAGE_INUPIAK, 0, 0, 0}, | |
17720 | { SWIG_PY_INT, (char *)"LANGUAGE_IRISH", (long) wxLANGUAGE_IRISH, 0, 0, 0}, | |
17721 | { SWIG_PY_INT, (char *)"LANGUAGE_ITALIAN", (long) wxLANGUAGE_ITALIAN, 0, 0, 0}, | |
17722 | { SWIG_PY_INT, (char *)"LANGUAGE_ITALIAN_SWISS", (long) wxLANGUAGE_ITALIAN_SWISS, 0, 0, 0}, | |
17723 | { SWIG_PY_INT, (char *)"LANGUAGE_JAPANESE", (long) wxLANGUAGE_JAPANESE, 0, 0, 0}, | |
17724 | { SWIG_PY_INT, (char *)"LANGUAGE_JAVANESE", (long) wxLANGUAGE_JAVANESE, 0, 0, 0}, | |
17725 | { SWIG_PY_INT, (char *)"LANGUAGE_KANNADA", (long) wxLANGUAGE_KANNADA, 0, 0, 0}, | |
17726 | { SWIG_PY_INT, (char *)"LANGUAGE_KASHMIRI", (long) wxLANGUAGE_KASHMIRI, 0, 0, 0}, | |
17727 | { SWIG_PY_INT, (char *)"LANGUAGE_KASHMIRI_INDIA", (long) wxLANGUAGE_KASHMIRI_INDIA, 0, 0, 0}, | |
17728 | { SWIG_PY_INT, (char *)"LANGUAGE_KAZAKH", (long) wxLANGUAGE_KAZAKH, 0, 0, 0}, | |
17729 | { SWIG_PY_INT, (char *)"LANGUAGE_KERNEWEK", (long) wxLANGUAGE_KERNEWEK, 0, 0, 0}, | |
17730 | { SWIG_PY_INT, (char *)"LANGUAGE_KINYARWANDA", (long) wxLANGUAGE_KINYARWANDA, 0, 0, 0}, | |
17731 | { SWIG_PY_INT, (char *)"LANGUAGE_KIRGHIZ", (long) wxLANGUAGE_KIRGHIZ, 0, 0, 0}, | |
17732 | { SWIG_PY_INT, (char *)"LANGUAGE_KIRUNDI", (long) wxLANGUAGE_KIRUNDI, 0, 0, 0}, | |
17733 | { SWIG_PY_INT, (char *)"LANGUAGE_KONKANI", (long) wxLANGUAGE_KONKANI, 0, 0, 0}, | |
17734 | { SWIG_PY_INT, (char *)"LANGUAGE_KOREAN", (long) wxLANGUAGE_KOREAN, 0, 0, 0}, | |
17735 | { SWIG_PY_INT, (char *)"LANGUAGE_KURDISH", (long) wxLANGUAGE_KURDISH, 0, 0, 0}, | |
17736 | { SWIG_PY_INT, (char *)"LANGUAGE_LAOTHIAN", (long) wxLANGUAGE_LAOTHIAN, 0, 0, 0}, | |
17737 | { SWIG_PY_INT, (char *)"LANGUAGE_LATIN", (long) wxLANGUAGE_LATIN, 0, 0, 0}, | |
17738 | { SWIG_PY_INT, (char *)"LANGUAGE_LATVIAN", (long) wxLANGUAGE_LATVIAN, 0, 0, 0}, | |
17739 | { SWIG_PY_INT, (char *)"LANGUAGE_LINGALA", (long) wxLANGUAGE_LINGALA, 0, 0, 0}, | |
17740 | { SWIG_PY_INT, (char *)"LANGUAGE_LITHUANIAN", (long) wxLANGUAGE_LITHUANIAN, 0, 0, 0}, | |
17741 | { SWIG_PY_INT, (char *)"LANGUAGE_MACEDONIAN", (long) wxLANGUAGE_MACEDONIAN, 0, 0, 0}, | |
17742 | { SWIG_PY_INT, (char *)"LANGUAGE_MALAGASY", (long) wxLANGUAGE_MALAGASY, 0, 0, 0}, | |
17743 | { SWIG_PY_INT, (char *)"LANGUAGE_MALAY", (long) wxLANGUAGE_MALAY, 0, 0, 0}, | |
17744 | { SWIG_PY_INT, (char *)"LANGUAGE_MALAYALAM", (long) wxLANGUAGE_MALAYALAM, 0, 0, 0}, | |
17745 | { SWIG_PY_INT, (char *)"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", (long) wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM, 0, 0, 0}, | |
17746 | { SWIG_PY_INT, (char *)"LANGUAGE_MALAY_MALAYSIA", (long) wxLANGUAGE_MALAY_MALAYSIA, 0, 0, 0}, | |
17747 | { SWIG_PY_INT, (char *)"LANGUAGE_MALTESE", (long) wxLANGUAGE_MALTESE, 0, 0, 0}, | |
17748 | { SWIG_PY_INT, (char *)"LANGUAGE_MANIPURI", (long) wxLANGUAGE_MANIPURI, 0, 0, 0}, | |
17749 | { SWIG_PY_INT, (char *)"LANGUAGE_MAORI", (long) wxLANGUAGE_MAORI, 0, 0, 0}, | |
17750 | { SWIG_PY_INT, (char *)"LANGUAGE_MARATHI", (long) wxLANGUAGE_MARATHI, 0, 0, 0}, | |
17751 | { SWIG_PY_INT, (char *)"LANGUAGE_MOLDAVIAN", (long) wxLANGUAGE_MOLDAVIAN, 0, 0, 0}, | |
17752 | { SWIG_PY_INT, (char *)"LANGUAGE_MONGOLIAN", (long) wxLANGUAGE_MONGOLIAN, 0, 0, 0}, | |
17753 | { SWIG_PY_INT, (char *)"LANGUAGE_NAURU", (long) wxLANGUAGE_NAURU, 0, 0, 0}, | |
17754 | { SWIG_PY_INT, (char *)"LANGUAGE_NEPALI", (long) wxLANGUAGE_NEPALI, 0, 0, 0}, | |
17755 | { SWIG_PY_INT, (char *)"LANGUAGE_NEPALI_INDIA", (long) wxLANGUAGE_NEPALI_INDIA, 0, 0, 0}, | |
17756 | { SWIG_PY_INT, (char *)"LANGUAGE_NORWEGIAN_BOKMAL", (long) wxLANGUAGE_NORWEGIAN_BOKMAL, 0, 0, 0}, | |
17757 | { SWIG_PY_INT, (char *)"LANGUAGE_NORWEGIAN_NYNORSK", (long) wxLANGUAGE_NORWEGIAN_NYNORSK, 0, 0, 0}, | |
17758 | { SWIG_PY_INT, (char *)"LANGUAGE_OCCITAN", (long) wxLANGUAGE_OCCITAN, 0, 0, 0}, | |
17759 | { SWIG_PY_INT, (char *)"LANGUAGE_ORIYA", (long) wxLANGUAGE_ORIYA, 0, 0, 0}, | |
17760 | { SWIG_PY_INT, (char *)"LANGUAGE_OROMO", (long) wxLANGUAGE_OROMO, 0, 0, 0}, | |
17761 | { SWIG_PY_INT, (char *)"LANGUAGE_PASHTO", (long) wxLANGUAGE_PASHTO, 0, 0, 0}, | |
17762 | { SWIG_PY_INT, (char *)"LANGUAGE_POLISH", (long) wxLANGUAGE_POLISH, 0, 0, 0}, | |
17763 | { SWIG_PY_INT, (char *)"LANGUAGE_PORTUGUESE", (long) wxLANGUAGE_PORTUGUESE, 0, 0, 0}, | |
17764 | { SWIG_PY_INT, (char *)"LANGUAGE_PORTUGUESE_BRAZILIAN", (long) wxLANGUAGE_PORTUGUESE_BRAZILIAN, 0, 0, 0}, | |
17765 | { SWIG_PY_INT, (char *)"LANGUAGE_PUNJABI", (long) wxLANGUAGE_PUNJABI, 0, 0, 0}, | |
17766 | { SWIG_PY_INT, (char *)"LANGUAGE_QUECHUA", (long) wxLANGUAGE_QUECHUA, 0, 0, 0}, | |
17767 | { SWIG_PY_INT, (char *)"LANGUAGE_RHAETO_ROMANCE", (long) wxLANGUAGE_RHAETO_ROMANCE, 0, 0, 0}, | |
17768 | { SWIG_PY_INT, (char *)"LANGUAGE_ROMANIAN", (long) wxLANGUAGE_ROMANIAN, 0, 0, 0}, | |
17769 | { SWIG_PY_INT, (char *)"LANGUAGE_RUSSIAN", (long) wxLANGUAGE_RUSSIAN, 0, 0, 0}, | |
17770 | { SWIG_PY_INT, (char *)"LANGUAGE_RUSSIAN_UKRAINE", (long) wxLANGUAGE_RUSSIAN_UKRAINE, 0, 0, 0}, | |
17771 | { SWIG_PY_INT, (char *)"LANGUAGE_SAMOAN", (long) wxLANGUAGE_SAMOAN, 0, 0, 0}, | |
17772 | { SWIG_PY_INT, (char *)"LANGUAGE_SANGHO", (long) wxLANGUAGE_SANGHO, 0, 0, 0}, | |
17773 | { SWIG_PY_INT, (char *)"LANGUAGE_SANSKRIT", (long) wxLANGUAGE_SANSKRIT, 0, 0, 0}, | |
17774 | { SWIG_PY_INT, (char *)"LANGUAGE_SCOTS_GAELIC", (long) wxLANGUAGE_SCOTS_GAELIC, 0, 0, 0}, | |
17775 | { SWIG_PY_INT, (char *)"LANGUAGE_SERBIAN", (long) wxLANGUAGE_SERBIAN, 0, 0, 0}, | |
17776 | { SWIG_PY_INT, (char *)"LANGUAGE_SERBIAN_CYRILLIC", (long) wxLANGUAGE_SERBIAN_CYRILLIC, 0, 0, 0}, | |
17777 | { SWIG_PY_INT, (char *)"LANGUAGE_SERBIAN_LATIN", (long) wxLANGUAGE_SERBIAN_LATIN, 0, 0, 0}, | |
17778 | { SWIG_PY_INT, (char *)"LANGUAGE_SERBO_CROATIAN", (long) wxLANGUAGE_SERBO_CROATIAN, 0, 0, 0}, | |
17779 | { SWIG_PY_INT, (char *)"LANGUAGE_SESOTHO", (long) wxLANGUAGE_SESOTHO, 0, 0, 0}, | |
17780 | { SWIG_PY_INT, (char *)"LANGUAGE_SETSWANA", (long) wxLANGUAGE_SETSWANA, 0, 0, 0}, | |
17781 | { SWIG_PY_INT, (char *)"LANGUAGE_SHONA", (long) wxLANGUAGE_SHONA, 0, 0, 0}, | |
17782 | { SWIG_PY_INT, (char *)"LANGUAGE_SINDHI", (long) wxLANGUAGE_SINDHI, 0, 0, 0}, | |
17783 | { SWIG_PY_INT, (char *)"LANGUAGE_SINHALESE", (long) wxLANGUAGE_SINHALESE, 0, 0, 0}, | |
17784 | { SWIG_PY_INT, (char *)"LANGUAGE_SISWATI", (long) wxLANGUAGE_SISWATI, 0, 0, 0}, | |
17785 | { SWIG_PY_INT, (char *)"LANGUAGE_SLOVAK", (long) wxLANGUAGE_SLOVAK, 0, 0, 0}, | |
17786 | { SWIG_PY_INT, (char *)"LANGUAGE_SLOVENIAN", (long) wxLANGUAGE_SLOVENIAN, 0, 0, 0}, | |
17787 | { SWIG_PY_INT, (char *)"LANGUAGE_SOMALI", (long) wxLANGUAGE_SOMALI, 0, 0, 0}, | |
17788 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH", (long) wxLANGUAGE_SPANISH, 0, 0, 0}, | |
17789 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_ARGENTINA", (long) wxLANGUAGE_SPANISH_ARGENTINA, 0, 0, 0}, | |
17790 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_BOLIVIA", (long) wxLANGUAGE_SPANISH_BOLIVIA, 0, 0, 0}, | |
17791 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_CHILE", (long) wxLANGUAGE_SPANISH_CHILE, 0, 0, 0}, | |
17792 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_COLOMBIA", (long) wxLANGUAGE_SPANISH_COLOMBIA, 0, 0, 0}, | |
17793 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_COSTA_RICA", (long) wxLANGUAGE_SPANISH_COSTA_RICA, 0, 0, 0}, | |
17794 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", (long) wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC, 0, 0, 0}, | |
17795 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_ECUADOR", (long) wxLANGUAGE_SPANISH_ECUADOR, 0, 0, 0}, | |
17796 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_EL_SALVADOR", (long) wxLANGUAGE_SPANISH_EL_SALVADOR, 0, 0, 0}, | |
17797 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_GUATEMALA", (long) wxLANGUAGE_SPANISH_GUATEMALA, 0, 0, 0}, | |
17798 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_HONDURAS", (long) wxLANGUAGE_SPANISH_HONDURAS, 0, 0, 0}, | |
17799 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_MEXICAN", (long) wxLANGUAGE_SPANISH_MEXICAN, 0, 0, 0}, | |
17800 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_MODERN", (long) wxLANGUAGE_SPANISH_MODERN, 0, 0, 0}, | |
17801 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_NICARAGUA", (long) wxLANGUAGE_SPANISH_NICARAGUA, 0, 0, 0}, | |
17802 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PANAMA", (long) wxLANGUAGE_SPANISH_PANAMA, 0, 0, 0}, | |
17803 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PARAGUAY", (long) wxLANGUAGE_SPANISH_PARAGUAY, 0, 0, 0}, | |
17804 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PERU", (long) wxLANGUAGE_SPANISH_PERU, 0, 0, 0}, | |
17805 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PUERTO_RICO", (long) wxLANGUAGE_SPANISH_PUERTO_RICO, 0, 0, 0}, | |
17806 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_URUGUAY", (long) wxLANGUAGE_SPANISH_URUGUAY, 0, 0, 0}, | |
17807 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_US", (long) wxLANGUAGE_SPANISH_US, 0, 0, 0}, | |
17808 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_VENEZUELA", (long) wxLANGUAGE_SPANISH_VENEZUELA, 0, 0, 0}, | |
17809 | { SWIG_PY_INT, (char *)"LANGUAGE_SUNDANESE", (long) wxLANGUAGE_SUNDANESE, 0, 0, 0}, | |
17810 | { SWIG_PY_INT, (char *)"LANGUAGE_SWAHILI", (long) wxLANGUAGE_SWAHILI, 0, 0, 0}, | |
17811 | { SWIG_PY_INT, (char *)"LANGUAGE_SWEDISH", (long) wxLANGUAGE_SWEDISH, 0, 0, 0}, | |
17812 | { SWIG_PY_INT, (char *)"LANGUAGE_SWEDISH_FINLAND", (long) wxLANGUAGE_SWEDISH_FINLAND, 0, 0, 0}, | |
17813 | { SWIG_PY_INT, (char *)"LANGUAGE_TAGALOG", (long) wxLANGUAGE_TAGALOG, 0, 0, 0}, | |
17814 | { SWIG_PY_INT, (char *)"LANGUAGE_TAJIK", (long) wxLANGUAGE_TAJIK, 0, 0, 0}, | |
17815 | { SWIG_PY_INT, (char *)"LANGUAGE_TAMIL", (long) wxLANGUAGE_TAMIL, 0, 0, 0}, | |
17816 | { SWIG_PY_INT, (char *)"LANGUAGE_TATAR", (long) wxLANGUAGE_TATAR, 0, 0, 0}, | |
17817 | { SWIG_PY_INT, (char *)"LANGUAGE_TELUGU", (long) wxLANGUAGE_TELUGU, 0, 0, 0}, | |
17818 | { SWIG_PY_INT, (char *)"LANGUAGE_THAI", (long) wxLANGUAGE_THAI, 0, 0, 0}, | |
17819 | { SWIG_PY_INT, (char *)"LANGUAGE_TIBETAN", (long) wxLANGUAGE_TIBETAN, 0, 0, 0}, | |
17820 | { SWIG_PY_INT, (char *)"LANGUAGE_TIGRINYA", (long) wxLANGUAGE_TIGRINYA, 0, 0, 0}, | |
17821 | { SWIG_PY_INT, (char *)"LANGUAGE_TONGA", (long) wxLANGUAGE_TONGA, 0, 0, 0}, | |
17822 | { SWIG_PY_INT, (char *)"LANGUAGE_TSONGA", (long) wxLANGUAGE_TSONGA, 0, 0, 0}, | |
17823 | { SWIG_PY_INT, (char *)"LANGUAGE_TURKISH", (long) wxLANGUAGE_TURKISH, 0, 0, 0}, | |
17824 | { SWIG_PY_INT, (char *)"LANGUAGE_TURKMEN", (long) wxLANGUAGE_TURKMEN, 0, 0, 0}, | |
17825 | { SWIG_PY_INT, (char *)"LANGUAGE_TWI", (long) wxLANGUAGE_TWI, 0, 0, 0}, | |
17826 | { SWIG_PY_INT, (char *)"LANGUAGE_UIGHUR", (long) wxLANGUAGE_UIGHUR, 0, 0, 0}, | |
17827 | { SWIG_PY_INT, (char *)"LANGUAGE_UKRAINIAN", (long) wxLANGUAGE_UKRAINIAN, 0, 0, 0}, | |
17828 | { SWIG_PY_INT, (char *)"LANGUAGE_URDU", (long) wxLANGUAGE_URDU, 0, 0, 0}, | |
17829 | { SWIG_PY_INT, (char *)"LANGUAGE_URDU_INDIA", (long) wxLANGUAGE_URDU_INDIA, 0, 0, 0}, | |
17830 | { SWIG_PY_INT, (char *)"LANGUAGE_URDU_PAKISTAN", (long) wxLANGUAGE_URDU_PAKISTAN, 0, 0, 0}, | |
17831 | { SWIG_PY_INT, (char *)"LANGUAGE_UZBEK", (long) wxLANGUAGE_UZBEK, 0, 0, 0}, | |
17832 | { SWIG_PY_INT, (char *)"LANGUAGE_UZBEK_CYRILLIC", (long) wxLANGUAGE_UZBEK_CYRILLIC, 0, 0, 0}, | |
17833 | { SWIG_PY_INT, (char *)"LANGUAGE_UZBEK_LATIN", (long) wxLANGUAGE_UZBEK_LATIN, 0, 0, 0}, | |
17834 | { SWIG_PY_INT, (char *)"LANGUAGE_VIETNAMESE", (long) wxLANGUAGE_VIETNAMESE, 0, 0, 0}, | |
17835 | { SWIG_PY_INT, (char *)"LANGUAGE_VOLAPUK", (long) wxLANGUAGE_VOLAPUK, 0, 0, 0}, | |
17836 | { SWIG_PY_INT, (char *)"LANGUAGE_WELSH", (long) wxLANGUAGE_WELSH, 0, 0, 0}, | |
17837 | { SWIG_PY_INT, (char *)"LANGUAGE_WOLOF", (long) wxLANGUAGE_WOLOF, 0, 0, 0}, | |
17838 | { SWIG_PY_INT, (char *)"LANGUAGE_XHOSA", (long) wxLANGUAGE_XHOSA, 0, 0, 0}, | |
17839 | { SWIG_PY_INT, (char *)"LANGUAGE_YIDDISH", (long) wxLANGUAGE_YIDDISH, 0, 0, 0}, | |
17840 | { SWIG_PY_INT, (char *)"LANGUAGE_YORUBA", (long) wxLANGUAGE_YORUBA, 0, 0, 0}, | |
17841 | { SWIG_PY_INT, (char *)"LANGUAGE_ZHUANG", (long) wxLANGUAGE_ZHUANG, 0, 0, 0}, | |
17842 | { SWIG_PY_INT, (char *)"LANGUAGE_ZULU", (long) wxLANGUAGE_ZULU, 0, 0, 0}, | |
17843 | { SWIG_PY_INT, (char *)"LANGUAGE_USER_DEFINED", (long) wxLANGUAGE_USER_DEFINED, 0, 0, 0}, | |
17844 | { SWIG_PY_INT, (char *)"LOCALE_CAT_NUMBER", (long) wxLOCALE_CAT_NUMBER, 0, 0, 0}, | |
17845 | { SWIG_PY_INT, (char *)"LOCALE_CAT_DATE", (long) wxLOCALE_CAT_DATE, 0, 0, 0}, | |
17846 | { SWIG_PY_INT, (char *)"LOCALE_CAT_MONEY", (long) wxLOCALE_CAT_MONEY, 0, 0, 0}, | |
17847 | { SWIG_PY_INT, (char *)"LOCALE_CAT_MAX", (long) wxLOCALE_CAT_MAX, 0, 0, 0}, | |
17848 | { SWIG_PY_INT, (char *)"LOCALE_THOUSANDS_SEP", (long) wxLOCALE_THOUSANDS_SEP, 0, 0, 0}, | |
17849 | { SWIG_PY_INT, (char *)"LOCALE_DECIMAL_POINT", (long) wxLOCALE_DECIMAL_POINT, 0, 0, 0}, | |
17850 | { SWIG_PY_INT, (char *)"LOCALE_LOAD_DEFAULT", (long) wxLOCALE_LOAD_DEFAULT, 0, 0, 0}, | |
17851 | { SWIG_PY_INT, (char *)"LOCALE_CONV_ENCODING", (long) wxLOCALE_CONV_ENCODING, 0, 0, 0}, | |
17852 | { SWIG_PY_INT, (char *)"CONVERT_STRICT", (long) wxCONVERT_STRICT, 0, 0, 0}, | |
17853 | { SWIG_PY_INT, (char *)"CONVERT_SUBSTITUTE", (long) wxCONVERT_SUBSTITUTE, 0, 0, 0}, | |
17854 | { SWIG_PY_INT, (char *)"PLATFORM_CURRENT", (long) wxPLATFORM_CURRENT, 0, 0, 0}, | |
17855 | { SWIG_PY_INT, (char *)"PLATFORM_UNIX", (long) wxPLATFORM_UNIX, 0, 0, 0}, | |
17856 | { SWIG_PY_INT, (char *)"PLATFORM_WINDOWS", (long) wxPLATFORM_WINDOWS, 0, 0, 0}, | |
17857 | { SWIG_PY_INT, (char *)"PLATFORM_OS2", (long) wxPLATFORM_OS2, 0, 0, 0}, | |
17858 | { SWIG_PY_INT, (char *)"PLATFORM_MAC", (long) wxPLATFORM_MAC, 0, 0, 0}, | |
17859 | { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_NORMAL", (long) wxIMAGELIST_DRAW_NORMAL, 0, 0, 0}, | |
17860 | { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_TRANSPARENT", (long) wxIMAGELIST_DRAW_TRANSPARENT, 0, 0, 0}, | |
17861 | { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_SELECTED", (long) wxIMAGELIST_DRAW_SELECTED, 0, 0, 0}, | |
17862 | { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_FOCUSED", (long) wxIMAGELIST_DRAW_FOCUSED, 0, 0, 0}, | |
17863 | { SWIG_PY_INT, (char *)"IMAGE_LIST_NORMAL", (long) wxIMAGE_LIST_NORMAL, 0, 0, 0}, | |
17864 | { SWIG_PY_INT, (char *)"IMAGE_LIST_SMALL", (long) wxIMAGE_LIST_SMALL, 0, 0, 0}, | |
17865 | { SWIG_PY_INT, (char *)"IMAGE_LIST_STATE", (long) wxIMAGE_LIST_STATE, 0, 0, 0}, | |
17866 | {0}}; | |
17867 | ||
17868 | #ifdef __cplusplus | |
17869 | } | |
17870 | #endif | |
17871 | ||
17872 | #ifdef __cplusplus | |
17873 | extern "C" | |
17874 | #endif | |
17875 | SWIGEXPORT(void) SWIG_init(void) { | |
17876 | static PyObject *SWIG_globals = 0; | |
17877 | static int typeinit = 0; | |
17878 | PyObject *m, *d; | |
17879 | int i; | |
17880 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
17881 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
17882 | d = PyModule_GetDict(m); | |
17883 | ||
17884 | if (!typeinit) { | |
17885 | for (i = 0; swig_types_initial[i]; i++) { | |
17886 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
17887 | } | |
17888 | typeinit = 1; | |
17889 | } | |
17890 | SWIG_InstallConstants(d,swig_const_table); | |
17891 | ||
17892 | ||
17893 | wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator"); | |
17894 | ||
17895 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
17896 | SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set); | |
17897 | SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set); | |
17898 | SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set); | |
17899 | SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set); | |
17900 | SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set); | |
17901 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set); | |
17902 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set); | |
17903 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set); | |
17904 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set); | |
17905 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set); | |
17906 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set); | |
17907 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set); | |
17908 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set); | |
17909 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set); | |
17910 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set); | |
17911 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set); | |
17912 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set); | |
17913 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set); | |
17914 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set); | |
17915 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set); | |
17916 | SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set); | |
17917 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set); | |
17918 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set); | |
17919 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set); | |
17920 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set); | |
17921 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set); | |
17922 | SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set); | |
17923 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set); | |
17924 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set); | |
17925 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set); | |
17926 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set); | |
17927 | SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set); | |
17928 | SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set); | |
17929 | SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set); | |
17930 | SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set); | |
17931 | SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set); | |
17932 | SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set); | |
17933 | SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set); | |
17934 | SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set); | |
17935 | SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set); | |
17936 | SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set); | |
17937 | SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set); | |
17938 | SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set); | |
17939 | SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set); | |
17940 | SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set); | |
17941 | SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set); | |
17942 | ||
17943 | // Work around a chicken/egg problem in drawlist.cpp | |
17944 | wxPyDrawList_SetAPIPtr(); | |
17945 | ||
17946 | } | |
17947 |