]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
3 | * Version 1.3.20 | |
4 | * | |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
12 | #define SWIG_NOINCLUDE | |
13 | ||
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
27 | }; | |
28 | #endif | |
29 | ||
30 | ||
31 | #include "Python.h" | |
32 | ||
33 | /*************************************************************** -*- c -*- | |
34 | * python/precommon.swg | |
35 | * | |
36 | * Rename all exported symbols from common.swg, to avoid symbol | |
37 | * clashes if multiple interpreters are included | |
38 | * | |
39 | ************************************************************************/ | |
40 | ||
41 | #define SWIG_TypeRegister SWIG_Python_TypeRegister | |
42 | #define SWIG_TypeCheck SWIG_Python_TypeCheck | |
43 | #define SWIG_TypeCast SWIG_Python_TypeCast | |
44 | #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast | |
45 | #define SWIG_TypeName SWIG_Python_TypeName | |
46 | #define SWIG_TypeQuery SWIG_Python_TypeQuery | |
47 | #define SWIG_TypeClientData SWIG_Python_TypeClientData | |
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 | #endif | |
122 | ||
123 | /*********************************************************************** | |
124 | * pyrun.swg for wxPython | |
125 | * | |
126 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
127 | * but not the runtime functions themselves. This helps keep the | |
128 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
129 | * anyway. | |
130 | * | |
131 | ************************************************************************/ | |
132 | ||
133 | ||
134 | #include "Python.h" | |
135 | ||
136 | #ifdef __cplusplus | |
137 | extern "C" { | |
138 | #endif | |
139 | ||
140 | #define SWIG_PY_INT 1 | |
141 | #define SWIG_PY_FLOAT 2 | |
142 | #define SWIG_PY_STRING 3 | |
143 | #define SWIG_PY_POINTER 4 | |
144 | #define SWIG_PY_BINARY 5 | |
145 | ||
146 | /* Flags for pointer conversion */ | |
147 | ||
148 | #define SWIG_POINTER_EXCEPTION 0x1 | |
149 | #define SWIG_POINTER_DISOWN 0x2 | |
150 | ||
151 | /* Exception handling in wrappers */ | |
152 | #define SWIG_fail goto fail | |
153 | ||
154 | /* Constant information structure */ | |
155 | typedef struct swig_const_info { | |
156 | int type; | |
157 | char *name; | |
158 | long lvalue; | |
159 | double dvalue; | |
160 | void *pvalue; | |
161 | swig_type_info **ptype; | |
162 | } swig_const_info; | |
163 | ||
164 | ||
165 | ||
166 | /* Common SWIG API */ | |
167 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
168 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
169 | #define SWIG_NewPointerObj(p, type, flags) \ | |
170 | SWIG_Python_NewPointerObj(p, type, flags) | |
171 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
172 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
173 | ||
174 | /* Python-specific SWIG API */ | |
175 | #define SWIG_newvarlink() \ | |
176 | SWIG_Python_newvarlink() | |
177 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ | |
178 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
179 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ | |
180 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
181 | #define SWIG_PackData(c, ptr, sz) \ | |
182 | SWIG_Python_PackData(c, ptr, sz) | |
183 | #define SWIG_UnpackData(c, ptr, sz) \ | |
184 | SWIG_Python_UnpackData(c, ptr, sz) | |
185 | #define SWIG_NewPackedObj(ptr, sz, type) \ | |
186 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
187 | #define SWIG_InstallConstants(d, constants) \ | |
188 | SWIG_Python_InstallConstants(d, constants) | |
189 | ||
190 | ||
191 | SWIGEXPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); | |
192 | SWIGEXPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
193 | SWIGEXPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
194 | ||
195 | SWIGEXPORT(PyObject *) SWIG_Python_newvarlink(void); | |
196 | SWIGEXPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
197 | SWIGEXPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
198 | SWIGEXPORT(char *) SWIG_Python_PackData(char *c, void *, int); | |
199 | SWIGEXPORT(char *) SWIG_Python_UnpackData(char *c, void *, int); | |
200 | SWIGEXPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
201 | SWIGEXPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
202 | ||
203 | ||
204 | /* Contract support */ | |
205 | ||
206 | #define SWIG_preassert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else | |
207 | #define SWIG_postassert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else | |
208 | ||
209 | #define SWIG_inherit_preassert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else | |
210 | #define SWIG_inherit_postassert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else | |
211 | ||
212 | #define SWIG_invariant(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else | |
213 | #define SWIG_invariant_begin(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else | |
214 | #define SWIG_invariant_end(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else | |
215 | ||
216 | #ifdef __cplusplus | |
217 | } | |
218 | #endif | |
219 | ||
220 | ||
221 | ||
222 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
223 | ||
224 | #define SWIGTYPE_p_wxPostScriptDC swig_types[0] | |
225 | #define SWIGTYPE_p_wxGenericDragImage swig_types[1] | |
226 | #define SWIGTYPE_p_wxBrush swig_types[2] | |
227 | #define SWIGTYPE_p_wxColour swig_types[3] | |
228 | #define SWIGTYPE_p_wxCoord swig_types[4] | |
229 | #define SWIGTYPE_p_wxDC swig_types[5] | |
230 | #define SWIGTYPE_p_wxMirrorDC swig_types[6] | |
231 | #define SWIGTYPE_p_byte swig_types[7] | |
232 | #define SWIGTYPE_p_wxPyFontEnumerator swig_types[8] | |
233 | #define SWIGTYPE_p_wxIconLocation swig_types[9] | |
234 | #define SWIGTYPE_p_wxImage swig_types[10] | |
235 | #define SWIGTYPE_p_wxMetaFileDC swig_types[11] | |
236 | #define SWIGTYPE_p_wxMask swig_types[12] | |
237 | #define SWIGTYPE_p_wxFont swig_types[13] | |
238 | #define SWIGTYPE_p_wxWindow swig_types[14] | |
239 | #define SWIGTYPE_p_wxSize swig_types[15] | |
240 | #define SWIGTYPE_p_double swig_types[16] | |
241 | #define SWIGTYPE_p_wxMemoryDC swig_types[17] | |
242 | #define SWIGTYPE_p_wxFontMapper swig_types[18] | |
243 | #define SWIGTYPE_p_wxListCtrl swig_types[19] | |
244 | #define SWIGTYPE_p_wxEffects swig_types[20] | |
245 | #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[21] | |
246 | #define SWIGTYPE_p_wxPalette swig_types[22] | |
247 | #define SWIGTYPE_p_wxBitmap swig_types[23] | |
248 | #define SWIGTYPE_p_wxObject swig_types[24] | |
249 | #define SWIGTYPE_p_wxRegionIterator swig_types[25] | |
250 | #define SWIGTYPE_p_wxRect swig_types[26] | |
251 | #define SWIGTYPE_p_wxString swig_types[27] | |
252 | #define SWIGTYPE_p_wxPrinterDC swig_types[28] | |
253 | #define SWIGTYPE_p_wxIconBundle swig_types[29] | |
254 | #define SWIGTYPE_p_wxPoint swig_types[30] | |
255 | #define SWIGTYPE_p_wxDash swig_types[31] | |
256 | #define SWIGTYPE_p_wxScreenDC swig_types[32] | |
257 | #define SWIGTYPE_p_wxCursor swig_types[33] | |
258 | #define SWIGTYPE_p_wxClientDC swig_types[34] | |
259 | #define SWIGTYPE_p_wxTreeCtrl swig_types[35] | |
260 | #define SWIGTYPE_p_wxBufferedDC swig_types[36] | |
261 | #define SWIGTYPE_p_wxImageList swig_types[37] | |
262 | #define SWIGTYPE_p_unsigned_char swig_types[38] | |
263 | #define SWIGTYPE_p_wxGDIObject swig_types[39] | |
264 | #define SWIGTYPE_p_wxLocale swig_types[40] | |
265 | #define SWIGTYPE_p_wxIcon swig_types[41] | |
266 | #define SWIGTYPE_p_wxRegion swig_types[42] | |
267 | #define SWIGTYPE_p_wxLanguageInfo swig_types[43] | |
268 | #define SWIGTYPE_p_wxConfigBase swig_types[44] | |
269 | #define SWIGTYPE_p_wxWindowDC swig_types[45] | |
270 | #define SWIGTYPE_p_wxPrintData swig_types[46] | |
271 | #define SWIGTYPE_p_wxBrushList swig_types[47] | |
272 | #define SWIGTYPE_p_wxFontList swig_types[48] | |
273 | #define SWIGTYPE_p_wxPen swig_types[49] | |
274 | #define SWIGTYPE_p_wxBufferedPaintDC swig_types[50] | |
275 | #define SWIGTYPE_p_wxPaintDC swig_types[51] | |
276 | #define SWIGTYPE_p_wxPenList swig_types[52] | |
277 | #define SWIGTYPE_p_wxTreeItemId swig_types[53] | |
278 | #define SWIGTYPE_p_wxPyPen swig_types[54] | |
279 | #define SWIGTYPE_p_int swig_types[55] | |
280 | #define SWIGTYPE_p_wxMetaFile swig_types[56] | |
281 | #define SWIGTYPE_p_wxNativeFontInfo swig_types[57] | |
282 | #define SWIGTYPE_p_wxEncodingConverter swig_types[58] | |
283 | #define SWIGTYPE_p_wxColourDatabase swig_types[59] | |
284 | static swig_type_info *swig_types[61]; | |
285 | ||
286 | /* -------- TYPES TABLE (END) -------- */ | |
287 | ||
288 | ||
289 | /*----------------------------------------------- | |
290 | @(target):= _gdi.so | |
291 | ------------------------------------------------*/ | |
292 | #define SWIG_init init_gdi | |
293 | ||
294 | #define SWIG_name "_gdi" | |
295 | ||
296 | #include "wx/wxPython/wxPython.h" | |
297 | #include "wx/wxPython/pyclasses.h" | |
298 | ||
299 | DECLARE_DEF_STRING(EmptyString); | |
300 | ||
301 | PyObject *wxColour_Get(wxColour *self){ | |
302 | PyObject* rv = PyTuple_New(3); | |
303 | int red = -1; | |
304 | int green = -1; | |
305 | int blue = -1; | |
306 | if (self->Ok()) { | |
307 | red = self->Red(); | |
308 | green = self->Green(); | |
309 | blue = self->Blue(); | |
310 | } | |
311 | PyTuple_SetItem(rv, 0, PyInt_FromLong(red)); | |
312 | PyTuple_SetItem(rv, 1, PyInt_FromLong(green)); | |
313 | PyTuple_SetItem(rv, 2, PyInt_FromLong(blue)); | |
314 | return rv; | |
315 | } | |
316 | ||
317 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
318 | PyObject* o2; | |
319 | PyObject* o3; | |
320 | ||
321 | if (!target) { | |
322 | target = o; | |
323 | } else if (target == Py_None) { | |
324 | Py_DECREF(Py_None); | |
325 | target = o; | |
326 | } else { | |
327 | if (!PyTuple_Check(target)) { | |
328 | o2 = target; | |
329 | target = PyTuple_New(1); | |
330 | PyTuple_SetItem(target, 0, o2); | |
331 | } | |
332 | o3 = PyTuple_New(1); | |
333 | PyTuple_SetItem(o3, 0, o); | |
334 | ||
335 | o2 = target; | |
336 | target = PySequence_Concat(o2, o3); | |
337 | Py_DECREF(o2); | |
338 | Py_DECREF(o3); | |
339 | } | |
340 | return target; | |
341 | } | |
342 | ||
343 | PyObject *wxPen_GetDashes(wxPen *self){ | |
344 | wxDash* dashes; | |
345 | int count = self->GetDashes(&dashes); | |
346 | wxPyBeginBlockThreads(); | |
347 | PyObject* retval = PyList_New(0); | |
348 | for (int x=0; x<count; x++) | |
349 | PyList_Append(retval, PyInt_FromLong(dashes[x])); | |
350 | wxPyEndBlockThreads(); | |
351 | return retval; | |
352 | } | |
353 | ||
354 | wxPyPen::~wxPyPen() | |
355 | { | |
356 | if (m_dash) | |
357 | delete [] m_dash; | |
358 | } | |
359 | ||
360 | void wxPyPen::SetDashes(int nb_dashes, const wxDash *dash) | |
361 | { | |
362 | if (m_dash) | |
363 | delete [] m_dash; | |
364 | m_dash = new wxDash[nb_dashes]; | |
365 | for (int i=0; i<nb_dashes; i++) { | |
366 | m_dash[i] = dash[i]; | |
367 | } | |
368 | wxPen::SetDashes(nb_dashes, m_dash); | |
369 | } | |
370 | ||
371 | ||
372 | #include <wx/image.h> | |
373 | ||
374 | static char** ConvertListOfStrings(PyObject* listOfStrings) { | |
375 | char** cArray = NULL; | |
376 | int count; | |
377 | ||
378 | if (!PyList_Check(listOfStrings)) { | |
379 | PyErr_SetString(PyExc_TypeError, "Expected a list of strings."); | |
380 | return NULL; | |
381 | } | |
382 | count = PyList_Size(listOfStrings); | |
383 | cArray = new char*[count]; | |
384 | ||
385 | for(int x=0; x<count; x++) { | |
386 | // TODO: Need some validation and error checking here | |
387 | cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x)); | |
388 | } | |
389 | return cArray; | |
390 | } | |
391 | ||
392 | ||
393 | wxBitmap *new_wxBitmap(PyObject *listOfStrings){ | |
394 | char** cArray = NULL; | |
395 | wxBitmap* bmp; | |
396 | ||
397 | cArray = ConvertListOfStrings(listOfStrings); | |
398 | if (! cArray) | |
399 | return NULL; | |
400 | bmp = new wxBitmap(cArray); | |
401 | delete [] cArray; | |
402 | return bmp; | |
403 | } | |
404 | wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){ | |
405 | char* buf; | |
406 | int length; | |
407 | PyString_AsStringAndSize(bits, &buf, &length); | |
408 | return new wxBitmap(buf, width, height, depth); | |
409 | } | |
410 | void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){ | |
411 | wxMask *mask = new wxMask(*self, colour); | |
412 | self->SetMask(mask); | |
413 | } | |
414 | ||
415 | #include <wx/iconbndl.h> | |
416 | ||
417 | wxIcon *new_wxIcon(wxBitmap const &bmp){ | |
418 | wxIcon* icon = new wxIcon(); | |
419 | icon->CopyFromBitmap(bmp); | |
420 | return icon; | |
421 | } | |
422 | wxIcon *new_wxIcon(PyObject *listOfStrings){ | |
423 | char** cArray = NULL; | |
424 | wxIcon* icon; | |
425 | ||
426 | cArray = ConvertListOfStrings(listOfStrings); | |
427 | if (! cArray) | |
428 | return NULL; | |
429 | icon = new wxIcon(cArray); | |
430 | delete [] cArray; | |
431 | return icon; | |
432 | } | |
433 | wxIconLocation *new_wxIconLocation(wxString const *filename,int num){ | |
434 | ||
435 | return new wxIconLocation(*filename, num); | |
436 | ||
437 | ||
438 | ||
439 | } | |
440 | void wxIconLocation_SetIndex(wxIconLocation *self,int num){ | |
441 | ||
442 | self->SetIndex(num); | |
443 | ||
444 | ||
445 | ||
446 | } | |
447 | int wxIconLocation_GetIndex(wxIconLocation *self){ | |
448 | ||
449 | return self->GetIndex(); | |
450 | ||
451 | ||
452 | ||
453 | } | |
454 | wxCursor *new_wxCursor(wxString const *cursorName,long flags,int hotSpotX,int hotSpotY){ | |
455 | ||
456 | ||
457 | ||
458 | ||
459 | return new wxCursor(*cursorName, flags, hotSpotX, hotSpotY); | |
460 | ||
461 | } | |
462 | wxCursor *new_wxCursor(PyObject *bits,int width,int height,int hotSpotX,int hotSpotY,PyObject *maskBits){ | |
463 | char* bitsbuf; | |
464 | char* maskbuf = NULL; | |
465 | int length; | |
466 | PyString_AsStringAndSize(bits, &bitsbuf, &length); | |
467 | if (maskBits) | |
468 | PyString_AsStringAndSize(maskBits, &maskbuf, &length); | |
469 | return new wxCursor(bitsbuf, width, height, hotSpotX, hotSpotY, maskbuf); | |
470 | } | |
471 | ||
472 | ||
473 | void wxRegionIterator_Next(wxRegionIterator *self){ | |
474 | (*self) ++; | |
475 | } | |
476 | bool wxRegionIterator___nonzero__(wxRegionIterator *self){ | |
477 | return self->operator bool(); | |
478 | } | |
479 | ||
480 | #include <wx/fontutil.h> | |
481 | #include <wx/fontmap.h> | |
482 | #include <wx/fontenum.h> | |
483 | ||
484 | wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){ | |
485 | return self->ToString(); | |
486 | } | |
487 | ||
488 | wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) | |
489 | { PyErr_SetNone(PyExc_NotImplementedError); return NULL; } | |
490 | ||
491 | bool wxTestFontEncoding(const wxNativeEncodingInfo& info) | |
492 | { PyErr_SetNone(PyExc_NotImplementedError); return false; } | |
493 | ||
494 | PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){ | |
495 | wxFontEncoding alt_enc; | |
496 | if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive)) | |
497 | return PyInt_FromLong(alt_enc); | |
498 | else { | |
499 | Py_INCREF(Py_None); | |
500 | return Py_None; | |
501 | } | |
502 | } | |
503 | wxFont *new_wxFont(wxString const &info){ | |
504 | wxNativeFontInfo nfi; | |
505 | nfi.FromString(info); | |
506 | return new wxFont(nfi); | |
507 | } | |
508 | wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){ | |
509 | return wxFont::New(pointSize, family, flags, face, encoding); | |
510 | } | |
511 | ||
512 | class wxPyFontEnumerator : public wxFontEnumerator { | |
513 | public: | |
514 | wxPyFontEnumerator() {} | |
515 | ~wxPyFontEnumerator() {} | |
516 | ||
517 | DEC_PYCALLBACK_BOOL_STRING(OnFacename); | |
518 | DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding); | |
519 | ||
520 | PYPRIVATE; | |
521 | }; | |
522 | ||
523 | IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename); | |
524 | IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding); | |
525 | ||
526 | ||
527 | PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){ | |
528 | wxArrayString* arr = self->GetEncodings(); | |
529 | return wxArrayString2PyList_helper(*arr); | |
530 | } | |
531 | PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){ | |
532 | wxArrayString* arr = self->GetFacenames(); | |
533 | return wxArrayString2PyList_helper(*arr); | |
534 | } | |
535 | ||
536 | ||
537 | ||
538 | #include "wx/wxPython/pydrawxxx.h" | |
539 | ||
540 | wxColour wxDC_GetPixelXY(wxDC *self,wxCoord x,wxCoord y){ | |
541 | wxColour col; | |
542 | self->GetPixel(x, y, &col); | |
543 | return col; | |
544 | } | |
545 | wxColour wxDC_GetPixel(wxDC *self,wxPoint const &pt){ | |
546 | wxColour col; | |
547 | self->GetPixel(pt, &col); | |
548 | return col; | |
549 | } | |
550 | wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){ | |
551 | wxRect rv; | |
552 | self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); | |
553 | return rv; | |
554 | } | |
555 | wxRect wxDC_GetClippingRect(wxDC *self){ | |
556 | wxRect rect; | |
557 | self->GetClippingBox(rect); | |
558 | return rect; | |
559 | } | |
560 | PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
561 | return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes); | |
562 | } | |
563 | PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
564 | return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes); | |
565 | } | |
566 | PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
567 | return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes); | |
568 | } | |
569 | PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
570 | return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes); | |
571 | } | |
572 | PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
573 | return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes); | |
574 | } | |
575 | PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){ | |
576 | return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList); | |
577 | } | |
578 | ||
579 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
580 | *x1 = dc->MinX(); | |
581 | *y1 = dc->MinY(); | |
582 | *x2 = dc->MaxX(); | |
583 | *y2 = dc->MaxY(); | |
584 | } | |
585 | ||
586 | ||
587 | #include <wx/dcps.h> | |
588 | ||
589 | ||
590 | #include <wx/metafile.h> | |
591 | ||
592 | ||
593 | ||
594 | void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){ | |
595 | self->AddColour(name, wxColour(red, green, blue)); | |
596 | } | |
597 | ||
598 | #include <wx/generic/dragimgg.h> | |
599 | ||
600 | ||
601 | #include <wx/effects.h> | |
602 | ||
603 | #ifdef __cplusplus | |
604 | extern "C" { | |
605 | #endif | |
606 | static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
607 | PyObject *resultobj; | |
608 | wxGDIObject *result; | |
609 | char *kwnames[] = { | |
610 | NULL | |
611 | }; | |
612 | ||
613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail; | |
614 | { | |
615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
616 | result = (wxGDIObject *)new wxGDIObject(); | |
617 | ||
618 | wxPyEndAllowThreads(__tstate); | |
619 | if (PyErr_Occurred()) SWIG_fail; | |
620 | } | |
621 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGDIObject, 1); | |
622 | return resultobj; | |
623 | fail: | |
624 | return NULL; | |
625 | } | |
626 | ||
627 | ||
628 | static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
629 | PyObject *resultobj; | |
630 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
631 | PyObject * obj0 = 0 ; | |
632 | char *kwnames[] = { | |
633 | (char *) "self", NULL | |
634 | }; | |
635 | ||
636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail; | |
637 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
638 | { | |
639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
640 | delete arg1; | |
641 | ||
642 | wxPyEndAllowThreads(__tstate); | |
643 | if (PyErr_Occurred()) SWIG_fail; | |
644 | } | |
645 | Py_INCREF(Py_None); resultobj = Py_None; | |
646 | return resultobj; | |
647 | fail: | |
648 | return NULL; | |
649 | } | |
650 | ||
651 | ||
652 | static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
653 | PyObject *resultobj; | |
654 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
655 | bool result; | |
656 | PyObject * obj0 = 0 ; | |
657 | char *kwnames[] = { | |
658 | (char *) "self", NULL | |
659 | }; | |
660 | ||
661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail; | |
662 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
663 | { | |
664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
665 | result = (bool)(arg1)->GetVisible(); | |
666 | ||
667 | wxPyEndAllowThreads(__tstate); | |
668 | if (PyErr_Occurred()) SWIG_fail; | |
669 | } | |
670 | resultobj = PyInt_FromLong((long)result); | |
671 | return resultobj; | |
672 | fail: | |
673 | return NULL; | |
674 | } | |
675 | ||
676 | ||
677 | static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
678 | PyObject *resultobj; | |
679 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
680 | bool arg2 ; | |
681 | PyObject * obj0 = 0 ; | |
682 | PyObject * obj1 = 0 ; | |
683 | char *kwnames[] = { | |
684 | (char *) "self",(char *) "visible", NULL | |
685 | }; | |
686 | ||
687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail; | |
688 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
689 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
690 | if (PyErr_Occurred()) SWIG_fail; | |
691 | { | |
692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
693 | (arg1)->SetVisible(arg2); | |
694 | ||
695 | wxPyEndAllowThreads(__tstate); | |
696 | if (PyErr_Occurred()) SWIG_fail; | |
697 | } | |
698 | Py_INCREF(Py_None); resultobj = Py_None; | |
699 | return resultobj; | |
700 | fail: | |
701 | return NULL; | |
702 | } | |
703 | ||
704 | ||
705 | static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
706 | PyObject *resultobj; | |
707 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
708 | bool result; | |
709 | PyObject * obj0 = 0 ; | |
710 | char *kwnames[] = { | |
711 | (char *) "self", NULL | |
712 | }; | |
713 | ||
714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail; | |
715 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
716 | { | |
717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
718 | result = (bool)(arg1)->IsNull(); | |
719 | ||
720 | wxPyEndAllowThreads(__tstate); | |
721 | if (PyErr_Occurred()) SWIG_fail; | |
722 | } | |
723 | resultobj = PyInt_FromLong((long)result); | |
724 | return resultobj; | |
725 | fail: | |
726 | return NULL; | |
727 | } | |
728 | ||
729 | ||
730 | static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) { | |
731 | PyObject *obj; | |
732 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
733 | SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj); | |
734 | Py_INCREF(obj); | |
735 | return Py_BuildValue((char *)""); | |
736 | } | |
737 | static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
738 | PyObject *resultobj; | |
739 | unsigned char arg1 = (unsigned char) 0 ; | |
740 | unsigned char arg2 = (unsigned char) 0 ; | |
741 | unsigned char arg3 = (unsigned char) 0 ; | |
742 | wxColour *result; | |
743 | PyObject * obj0 = 0 ; | |
744 | PyObject * obj1 = 0 ; | |
745 | PyObject * obj2 = 0 ; | |
746 | char *kwnames[] = { | |
747 | (char *) "red",(char *) "green",(char *) "blue", NULL | |
748 | }; | |
749 | ||
750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
751 | if (obj0) { | |
752 | arg1 = (unsigned char) PyInt_AsLong(obj0); | |
753 | if (PyErr_Occurred()) SWIG_fail; | |
754 | } | |
755 | if (obj1) { | |
756 | arg2 = (unsigned char) PyInt_AsLong(obj1); | |
757 | if (PyErr_Occurred()) SWIG_fail; | |
758 | } | |
759 | if (obj2) { | |
760 | arg3 = (unsigned char) PyInt_AsLong(obj2); | |
761 | if (PyErr_Occurred()) SWIG_fail; | |
762 | } | |
763 | { | |
764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
765 | result = (wxColour *)new wxColour(arg1,arg2,arg3); | |
766 | ||
767 | wxPyEndAllowThreads(__tstate); | |
768 | if (PyErr_Occurred()) SWIG_fail; | |
769 | } | |
770 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1); | |
771 | return resultobj; | |
772 | fail: | |
773 | return NULL; | |
774 | } | |
775 | ||
776 | ||
777 | static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
778 | PyObject *resultobj; | |
779 | wxColour *arg1 = (wxColour *) 0 ; | |
780 | PyObject * obj0 = 0 ; | |
781 | char *kwnames[] = { | |
782 | (char *) "self", NULL | |
783 | }; | |
784 | ||
785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail; | |
786 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
787 | { | |
788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
789 | delete arg1; | |
790 | ||
791 | wxPyEndAllowThreads(__tstate); | |
792 | if (PyErr_Occurred()) SWIG_fail; | |
793 | } | |
794 | Py_INCREF(Py_None); resultobj = Py_None; | |
795 | return resultobj; | |
796 | fail: | |
797 | return NULL; | |
798 | } | |
799 | ||
800 | ||
801 | static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
802 | PyObject *resultobj; | |
803 | wxString *arg1 = 0 ; | |
804 | wxColour *result; | |
805 | bool temp1 = false ; | |
806 | PyObject * obj0 = 0 ; | |
807 | char *kwnames[] = { | |
808 | (char *) "colorName", NULL | |
809 | }; | |
810 | ||
811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail; | |
812 | { | |
813 | arg1 = wxString_in_helper(obj0); | |
814 | if (arg1 == NULL) SWIG_fail; | |
815 | temp1 = true; | |
816 | } | |
817 | { | |
818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
819 | result = (wxColour *)new wxColour((wxString const &)*arg1); | |
820 | ||
821 | wxPyEndAllowThreads(__tstate); | |
822 | if (PyErr_Occurred()) SWIG_fail; | |
823 | } | |
824 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1); | |
825 | { | |
826 | if (temp1) | |
827 | delete arg1; | |
828 | } | |
829 | return resultobj; | |
830 | fail: | |
831 | { | |
832 | if (temp1) | |
833 | delete arg1; | |
834 | } | |
835 | return NULL; | |
836 | } | |
837 | ||
838 | ||
839 | static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
840 | PyObject *resultobj; | |
841 | unsigned long arg1 ; | |
842 | wxColour *result; | |
843 | PyObject * obj0 = 0 ; | |
844 | char *kwnames[] = { | |
845 | (char *) "colRGB", NULL | |
846 | }; | |
847 | ||
848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail; | |
849 | arg1 = (unsigned long) PyInt_AsLong(obj0); | |
850 | if (PyErr_Occurred()) SWIG_fail; | |
851 | { | |
852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
853 | result = (wxColour *)new wxColour(arg1); | |
854 | ||
855 | wxPyEndAllowThreads(__tstate); | |
856 | if (PyErr_Occurred()) SWIG_fail; | |
857 | } | |
858 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1); | |
859 | return resultobj; | |
860 | fail: | |
861 | return NULL; | |
862 | } | |
863 | ||
864 | ||
865 | static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) { | |
866 | PyObject *resultobj; | |
867 | wxColour *arg1 = (wxColour *) 0 ; | |
868 | unsigned char result; | |
869 | PyObject * obj0 = 0 ; | |
870 | char *kwnames[] = { | |
871 | (char *) "self", NULL | |
872 | }; | |
873 | ||
874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail; | |
875 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
876 | { | |
877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
878 | result = (unsigned char)(arg1)->Red(); | |
879 | ||
880 | wxPyEndAllowThreads(__tstate); | |
881 | if (PyErr_Occurred()) SWIG_fail; | |
882 | } | |
883 | resultobj = PyInt_FromLong((long)result); | |
884 | return resultobj; | |
885 | fail: | |
886 | return NULL; | |
887 | } | |
888 | ||
889 | ||
890 | static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) { | |
891 | PyObject *resultobj; | |
892 | wxColour *arg1 = (wxColour *) 0 ; | |
893 | unsigned char result; | |
894 | PyObject * obj0 = 0 ; | |
895 | char *kwnames[] = { | |
896 | (char *) "self", NULL | |
897 | }; | |
898 | ||
899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail; | |
900 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
901 | { | |
902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
903 | result = (unsigned char)(arg1)->Green(); | |
904 | ||
905 | wxPyEndAllowThreads(__tstate); | |
906 | if (PyErr_Occurred()) SWIG_fail; | |
907 | } | |
908 | resultobj = PyInt_FromLong((long)result); | |
909 | return resultobj; | |
910 | fail: | |
911 | return NULL; | |
912 | } | |
913 | ||
914 | ||
915 | static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
916 | PyObject *resultobj; | |
917 | wxColour *arg1 = (wxColour *) 0 ; | |
918 | unsigned char result; | |
919 | PyObject * obj0 = 0 ; | |
920 | char *kwnames[] = { | |
921 | (char *) "self", NULL | |
922 | }; | |
923 | ||
924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail; | |
925 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
926 | { | |
927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
928 | result = (unsigned char)(arg1)->Blue(); | |
929 | ||
930 | wxPyEndAllowThreads(__tstate); | |
931 | if (PyErr_Occurred()) SWIG_fail; | |
932 | } | |
933 | resultobj = PyInt_FromLong((long)result); | |
934 | return resultobj; | |
935 | fail: | |
936 | return NULL; | |
937 | } | |
938 | ||
939 | ||
940 | static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
941 | PyObject *resultobj; | |
942 | wxColour *arg1 = (wxColour *) 0 ; | |
943 | bool result; | |
944 | PyObject * obj0 = 0 ; | |
945 | char *kwnames[] = { | |
946 | (char *) "self", NULL | |
947 | }; | |
948 | ||
949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail; | |
950 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
951 | { | |
952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
953 | result = (bool)(arg1)->Ok(); | |
954 | ||
955 | wxPyEndAllowThreads(__tstate); | |
956 | if (PyErr_Occurred()) SWIG_fail; | |
957 | } | |
958 | resultobj = PyInt_FromLong((long)result); | |
959 | return resultobj; | |
960 | fail: | |
961 | return NULL; | |
962 | } | |
963 | ||
964 | ||
965 | static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
966 | PyObject *resultobj; | |
967 | wxColour *arg1 = (wxColour *) 0 ; | |
968 | unsigned char arg2 ; | |
969 | unsigned char arg3 ; | |
970 | unsigned char arg4 ; | |
971 | PyObject * obj0 = 0 ; | |
972 | PyObject * obj1 = 0 ; | |
973 | PyObject * obj2 = 0 ; | |
974 | PyObject * obj3 = 0 ; | |
975 | char *kwnames[] = { | |
976 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
977 | }; | |
978 | ||
979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
980 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
981 | arg2 = (unsigned char) PyInt_AsLong(obj1); | |
982 | if (PyErr_Occurred()) SWIG_fail; | |
983 | arg3 = (unsigned char) PyInt_AsLong(obj2); | |
984 | if (PyErr_Occurred()) SWIG_fail; | |
985 | arg4 = (unsigned char) PyInt_AsLong(obj3); | |
986 | if (PyErr_Occurred()) SWIG_fail; | |
987 | { | |
988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
989 | (arg1)->Set(arg2,arg3,arg4); | |
990 | ||
991 | wxPyEndAllowThreads(__tstate); | |
992 | if (PyErr_Occurred()) SWIG_fail; | |
993 | } | |
994 | Py_INCREF(Py_None); resultobj = Py_None; | |
995 | return resultobj; | |
996 | fail: | |
997 | return NULL; | |
998 | } | |
999 | ||
1000 | ||
1001 | static PyObject *_wrap_Colour_SetRBG(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1002 | PyObject *resultobj; | |
1003 | wxColour *arg1 = (wxColour *) 0 ; | |
1004 | unsigned long arg2 ; | |
1005 | PyObject * obj0 = 0 ; | |
1006 | PyObject * obj1 = 0 ; | |
1007 | char *kwnames[] = { | |
1008 | (char *) "self",(char *) "colRGB", NULL | |
1009 | }; | |
1010 | ||
1011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRBG",kwnames,&obj0,&obj1)) goto fail; | |
1012 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1013 | arg2 = (unsigned long) PyInt_AsLong(obj1); | |
1014 | if (PyErr_Occurred()) SWIG_fail; | |
1015 | { | |
1016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1017 | (arg1)->Set(arg2); | |
1018 | ||
1019 | wxPyEndAllowThreads(__tstate); | |
1020 | if (PyErr_Occurred()) SWIG_fail; | |
1021 | } | |
1022 | Py_INCREF(Py_None); resultobj = Py_None; | |
1023 | return resultobj; | |
1024 | fail: | |
1025 | return NULL; | |
1026 | } | |
1027 | ||
1028 | ||
1029 | static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1030 | PyObject *resultobj; | |
1031 | wxColour *arg1 = (wxColour *) 0 ; | |
1032 | wxColour *arg2 = 0 ; | |
1033 | bool result; | |
1034 | wxColour temp2 ; | |
1035 | PyObject * obj0 = 0 ; | |
1036 | PyObject * obj1 = 0 ; | |
1037 | char *kwnames[] = { | |
1038 | (char *) "self",(char *) "colour", NULL | |
1039 | }; | |
1040 | ||
1041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail; | |
1042 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1043 | { | |
1044 | arg2 = &temp2; | |
1045 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1046 | } | |
1047 | { | |
1048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1049 | result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2); | |
1050 | ||
1051 | wxPyEndAllowThreads(__tstate); | |
1052 | if (PyErr_Occurred()) SWIG_fail; | |
1053 | } | |
1054 | resultobj = PyInt_FromLong((long)result); | |
1055 | return resultobj; | |
1056 | fail: | |
1057 | return NULL; | |
1058 | } | |
1059 | ||
1060 | ||
1061 | static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1062 | PyObject *resultobj; | |
1063 | wxColour *arg1 = (wxColour *) 0 ; | |
1064 | wxColour *arg2 = 0 ; | |
1065 | bool result; | |
1066 | wxColour temp2 ; | |
1067 | PyObject * obj0 = 0 ; | |
1068 | PyObject * obj1 = 0 ; | |
1069 | char *kwnames[] = { | |
1070 | (char *) "self",(char *) "colour", NULL | |
1071 | }; | |
1072 | ||
1073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail; | |
1074 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1075 | { | |
1076 | arg2 = &temp2; | |
1077 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1078 | } | |
1079 | { | |
1080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1081 | result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2); | |
1082 | ||
1083 | wxPyEndAllowThreads(__tstate); | |
1084 | if (PyErr_Occurred()) SWIG_fail; | |
1085 | } | |
1086 | resultobj = PyInt_FromLong((long)result); | |
1087 | return resultobj; | |
1088 | fail: | |
1089 | return NULL; | |
1090 | } | |
1091 | ||
1092 | ||
1093 | static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1094 | PyObject *resultobj; | |
1095 | wxColour *arg1 = (wxColour *) 0 ; | |
1096 | PyObject *result; | |
1097 | PyObject * obj0 = 0 ; | |
1098 | char *kwnames[] = { | |
1099 | (char *) "self", NULL | |
1100 | }; | |
1101 | ||
1102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail; | |
1103 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1104 | { | |
1105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1106 | result = (PyObject *)wxColour_Get(arg1); | |
1107 | ||
1108 | wxPyEndAllowThreads(__tstate); | |
1109 | if (PyErr_Occurred()) SWIG_fail; | |
1110 | } | |
1111 | resultobj = result; | |
1112 | return resultobj; | |
1113 | fail: | |
1114 | return NULL; | |
1115 | } | |
1116 | ||
1117 | ||
1118 | static PyObject * Colour_swigregister(PyObject *self, PyObject *args) { | |
1119 | PyObject *obj; | |
1120 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1121 | SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj); | |
1122 | Py_INCREF(obj); | |
1123 | return Py_BuildValue((char *)""); | |
1124 | } | |
1125 | static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1126 | PyObject *resultobj; | |
1127 | int arg1 ; | |
1128 | unsigned char *arg2 = (unsigned char *) 0 ; | |
1129 | unsigned char *arg3 = (unsigned char *) 0 ; | |
1130 | unsigned char *arg4 = (unsigned char *) 0 ; | |
1131 | wxPalette *result; | |
1132 | PyObject * obj1 = 0 ; | |
1133 | PyObject * obj2 = 0 ; | |
1134 | PyObject * obj3 = 0 ; | |
1135 | char *kwnames[] = { | |
1136 | (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1137 | }; | |
1138 | ||
1139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iOOO:new_Palette",kwnames,&arg1,&obj1,&obj2,&obj3)) goto fail; | |
1140 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1141 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1142 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1143 | { | |
1144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1145 | result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4); | |
1146 | ||
1147 | wxPyEndAllowThreads(__tstate); | |
1148 | if (PyErr_Occurred()) SWIG_fail; | |
1149 | } | |
1150 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPalette, 1); | |
1151 | return resultobj; | |
1152 | fail: | |
1153 | return NULL; | |
1154 | } | |
1155 | ||
1156 | ||
1157 | static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1158 | PyObject *resultobj; | |
1159 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1160 | PyObject * obj0 = 0 ; | |
1161 | char *kwnames[] = { | |
1162 | (char *) "self", NULL | |
1163 | }; | |
1164 | ||
1165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail; | |
1166 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1167 | { | |
1168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1169 | delete arg1; | |
1170 | ||
1171 | wxPyEndAllowThreads(__tstate); | |
1172 | if (PyErr_Occurred()) SWIG_fail; | |
1173 | } | |
1174 | Py_INCREF(Py_None); resultobj = Py_None; | |
1175 | return resultobj; | |
1176 | fail: | |
1177 | return NULL; | |
1178 | } | |
1179 | ||
1180 | ||
1181 | static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1182 | PyObject *resultobj; | |
1183 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1184 | byte arg2 ; | |
1185 | byte arg3 ; | |
1186 | byte arg4 ; | |
1187 | int result; | |
1188 | PyObject * obj0 = 0 ; | |
1189 | PyObject * obj1 = 0 ; | |
1190 | PyObject * obj2 = 0 ; | |
1191 | PyObject * obj3 = 0 ; | |
1192 | char *kwnames[] = { | |
1193 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1194 | }; | |
1195 | ||
1196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
1197 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1198 | arg2 = (byte) PyInt_AsLong(obj1); | |
1199 | if (PyErr_Occurred()) SWIG_fail; | |
1200 | arg3 = (byte) PyInt_AsLong(obj2); | |
1201 | if (PyErr_Occurred()) SWIG_fail; | |
1202 | arg4 = (byte) PyInt_AsLong(obj3); | |
1203 | if (PyErr_Occurred()) SWIG_fail; | |
1204 | { | |
1205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1206 | result = (int)(arg1)->GetPixel(arg2,arg3,arg4); | |
1207 | ||
1208 | wxPyEndAllowThreads(__tstate); | |
1209 | if (PyErr_Occurred()) SWIG_fail; | |
1210 | } | |
1211 | resultobj = PyInt_FromLong((long)result); | |
1212 | return resultobj; | |
1213 | fail: | |
1214 | return NULL; | |
1215 | } | |
1216 | ||
1217 | ||
1218 | static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1219 | PyObject *resultobj; | |
1220 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1221 | int arg2 ; | |
1222 | byte *arg3 = (byte *) 0 ; | |
1223 | byte *arg4 = (byte *) 0 ; | |
1224 | byte *arg5 = (byte *) 0 ; | |
1225 | bool result; | |
1226 | byte temp3 ; | |
1227 | byte temp4 ; | |
1228 | byte temp5 ; | |
1229 | PyObject * obj0 = 0 ; | |
1230 | char *kwnames[] = { | |
1231 | (char *) "self",(char *) "pixel", NULL | |
1232 | }; | |
1233 | ||
1234 | arg3 = &temp3; | |
1235 | arg4 = &temp4; | |
1236 | arg5 = &temp5; | |
1237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Palette_GetRGB",kwnames,&obj0,&arg2)) goto fail; | |
1238 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1239 | { | |
1240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1241 | result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5); | |
1242 | ||
1243 | wxPyEndAllowThreads(__tstate); | |
1244 | if (PyErr_Occurred()) SWIG_fail; | |
1245 | } | |
1246 | resultobj = PyInt_FromLong((long)result); | |
1247 | { | |
1248 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
1249 | resultobj = t_output_helper(resultobj,o); | |
1250 | } | |
1251 | { | |
1252 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
1253 | resultobj = t_output_helper(resultobj,o); | |
1254 | } | |
1255 | { | |
1256 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
1257 | resultobj = t_output_helper(resultobj,o); | |
1258 | } | |
1259 | return resultobj; | |
1260 | fail: | |
1261 | return NULL; | |
1262 | } | |
1263 | ||
1264 | ||
1265 | static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1266 | PyObject *resultobj; | |
1267 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1268 | bool result; | |
1269 | PyObject * obj0 = 0 ; | |
1270 | char *kwnames[] = { | |
1271 | (char *) "self", NULL | |
1272 | }; | |
1273 | ||
1274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail; | |
1275 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1276 | { | |
1277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1278 | result = (bool)(arg1)->Ok(); | |
1279 | ||
1280 | wxPyEndAllowThreads(__tstate); | |
1281 | if (PyErr_Occurred()) SWIG_fail; | |
1282 | } | |
1283 | resultobj = PyInt_FromLong((long)result); | |
1284 | return resultobj; | |
1285 | fail: | |
1286 | return NULL; | |
1287 | } | |
1288 | ||
1289 | ||
1290 | static PyObject * Palette_swigregister(PyObject *self, PyObject *args) { | |
1291 | PyObject *obj; | |
1292 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1293 | SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj); | |
1294 | Py_INCREF(obj); | |
1295 | return Py_BuildValue((char *)""); | |
1296 | } | |
1297 | static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1298 | PyObject *resultobj; | |
1299 | wxColour *arg1 = 0 ; | |
1300 | int arg2 = (int) 1 ; | |
1301 | int arg3 = (int) wxSOLID ; | |
1302 | wxPen *result; | |
1303 | wxColour temp1 ; | |
1304 | PyObject * obj0 = 0 ; | |
1305 | char *kwnames[] = { | |
1306 | (char *) "colour",(char *) "width",(char *) "style", NULL | |
1307 | }; | |
1308 | ||
1309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:new_Pen",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
1310 | { | |
1311 | arg1 = &temp1; | |
1312 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
1313 | } | |
1314 | { | |
1315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1316 | result = (wxPen *)new wxPen(*arg1,arg2,arg3); | |
1317 | ||
1318 | wxPyEndAllowThreads(__tstate); | |
1319 | if (PyErr_Occurred()) SWIG_fail; | |
1320 | } | |
1321 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 1); | |
1322 | return resultobj; | |
1323 | fail: | |
1324 | return NULL; | |
1325 | } | |
1326 | ||
1327 | ||
1328 | static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1329 | PyObject *resultobj; | |
1330 | wxPen *arg1 = (wxPen *) 0 ; | |
1331 | PyObject * obj0 = 0 ; | |
1332 | char *kwnames[] = { | |
1333 | (char *) "self", NULL | |
1334 | }; | |
1335 | ||
1336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail; | |
1337 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1338 | { | |
1339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1340 | delete arg1; | |
1341 | ||
1342 | wxPyEndAllowThreads(__tstate); | |
1343 | if (PyErr_Occurred()) SWIG_fail; | |
1344 | } | |
1345 | Py_INCREF(Py_None); resultobj = Py_None; | |
1346 | return resultobj; | |
1347 | fail: | |
1348 | return NULL; | |
1349 | } | |
1350 | ||
1351 | ||
1352 | static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1353 | PyObject *resultobj; | |
1354 | wxPen *arg1 = (wxPen *) 0 ; | |
1355 | int result; | |
1356 | PyObject * obj0 = 0 ; | |
1357 | char *kwnames[] = { | |
1358 | (char *) "self", NULL | |
1359 | }; | |
1360 | ||
1361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail; | |
1362 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1363 | { | |
1364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1365 | result = (int)(arg1)->GetCap(); | |
1366 | ||
1367 | wxPyEndAllowThreads(__tstate); | |
1368 | if (PyErr_Occurred()) SWIG_fail; | |
1369 | } | |
1370 | resultobj = PyInt_FromLong((long)result); | |
1371 | return resultobj; | |
1372 | fail: | |
1373 | return NULL; | |
1374 | } | |
1375 | ||
1376 | ||
1377 | static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1378 | PyObject *resultobj; | |
1379 | wxPen *arg1 = (wxPen *) 0 ; | |
1380 | wxColour result; | |
1381 | PyObject * obj0 = 0 ; | |
1382 | char *kwnames[] = { | |
1383 | (char *) "self", NULL | |
1384 | }; | |
1385 | ||
1386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail; | |
1387 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1388 | { | |
1389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1390 | result = (arg1)->GetColour(); | |
1391 | ||
1392 | wxPyEndAllowThreads(__tstate); | |
1393 | if (PyErr_Occurred()) SWIG_fail; | |
1394 | } | |
1395 | { | |
1396 | wxColour * resultptr; | |
1397 | resultptr = new wxColour((wxColour &) result); | |
1398 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
1399 | } | |
1400 | return resultobj; | |
1401 | fail: | |
1402 | return NULL; | |
1403 | } | |
1404 | ||
1405 | ||
1406 | static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1407 | PyObject *resultobj; | |
1408 | wxPen *arg1 = (wxPen *) 0 ; | |
1409 | int result; | |
1410 | PyObject * obj0 = 0 ; | |
1411 | char *kwnames[] = { | |
1412 | (char *) "self", NULL | |
1413 | }; | |
1414 | ||
1415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail; | |
1416 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1417 | { | |
1418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1419 | result = (int)(arg1)->GetJoin(); | |
1420 | ||
1421 | wxPyEndAllowThreads(__tstate); | |
1422 | if (PyErr_Occurred()) SWIG_fail; | |
1423 | } | |
1424 | resultobj = PyInt_FromLong((long)result); | |
1425 | return resultobj; | |
1426 | fail: | |
1427 | return NULL; | |
1428 | } | |
1429 | ||
1430 | ||
1431 | static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1432 | PyObject *resultobj; | |
1433 | wxPen *arg1 = (wxPen *) 0 ; | |
1434 | int result; | |
1435 | PyObject * obj0 = 0 ; | |
1436 | char *kwnames[] = { | |
1437 | (char *) "self", NULL | |
1438 | }; | |
1439 | ||
1440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail; | |
1441 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1442 | { | |
1443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1444 | result = (int)(arg1)->GetStyle(); | |
1445 | ||
1446 | wxPyEndAllowThreads(__tstate); | |
1447 | if (PyErr_Occurred()) SWIG_fail; | |
1448 | } | |
1449 | resultobj = PyInt_FromLong((long)result); | |
1450 | return resultobj; | |
1451 | fail: | |
1452 | return NULL; | |
1453 | } | |
1454 | ||
1455 | ||
1456 | static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1457 | PyObject *resultobj; | |
1458 | wxPen *arg1 = (wxPen *) 0 ; | |
1459 | int result; | |
1460 | PyObject * obj0 = 0 ; | |
1461 | char *kwnames[] = { | |
1462 | (char *) "self", NULL | |
1463 | }; | |
1464 | ||
1465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail; | |
1466 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1467 | { | |
1468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1469 | result = (int)(arg1)->GetWidth(); | |
1470 | ||
1471 | wxPyEndAllowThreads(__tstate); | |
1472 | if (PyErr_Occurred()) SWIG_fail; | |
1473 | } | |
1474 | resultobj = PyInt_FromLong((long)result); | |
1475 | return resultobj; | |
1476 | fail: | |
1477 | return NULL; | |
1478 | } | |
1479 | ||
1480 | ||
1481 | static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1482 | PyObject *resultobj; | |
1483 | wxPen *arg1 = (wxPen *) 0 ; | |
1484 | bool result; | |
1485 | PyObject * obj0 = 0 ; | |
1486 | char *kwnames[] = { | |
1487 | (char *) "self", NULL | |
1488 | }; | |
1489 | ||
1490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail; | |
1491 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1492 | { | |
1493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1494 | result = (bool)(arg1)->Ok(); | |
1495 | ||
1496 | wxPyEndAllowThreads(__tstate); | |
1497 | if (PyErr_Occurred()) SWIG_fail; | |
1498 | } | |
1499 | resultobj = PyInt_FromLong((long)result); | |
1500 | return resultobj; | |
1501 | fail: | |
1502 | return NULL; | |
1503 | } | |
1504 | ||
1505 | ||
1506 | static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1507 | PyObject *resultobj; | |
1508 | wxPen *arg1 = (wxPen *) 0 ; | |
1509 | int arg2 ; | |
1510 | PyObject * obj0 = 0 ; | |
1511 | char *kwnames[] = { | |
1512 | (char *) "self",(char *) "cap_style", NULL | |
1513 | }; | |
1514 | ||
1515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetCap",kwnames,&obj0,&arg2)) goto fail; | |
1516 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1517 | { | |
1518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1519 | (arg1)->SetCap(arg2); | |
1520 | ||
1521 | wxPyEndAllowThreads(__tstate); | |
1522 | if (PyErr_Occurred()) SWIG_fail; | |
1523 | } | |
1524 | Py_INCREF(Py_None); resultobj = Py_None; | |
1525 | return resultobj; | |
1526 | fail: | |
1527 | return NULL; | |
1528 | } | |
1529 | ||
1530 | ||
1531 | static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1532 | PyObject *resultobj; | |
1533 | wxPen *arg1 = (wxPen *) 0 ; | |
1534 | wxColour *arg2 = 0 ; | |
1535 | wxColour temp2 ; | |
1536 | PyObject * obj0 = 0 ; | |
1537 | PyObject * obj1 = 0 ; | |
1538 | char *kwnames[] = { | |
1539 | (char *) "self",(char *) "colour", NULL | |
1540 | }; | |
1541 | ||
1542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
1543 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1544 | { | |
1545 | arg2 = &temp2; | |
1546 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1547 | } | |
1548 | { | |
1549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1550 | (arg1)->SetColour(*arg2); | |
1551 | ||
1552 | wxPyEndAllowThreads(__tstate); | |
1553 | if (PyErr_Occurred()) SWIG_fail; | |
1554 | } | |
1555 | Py_INCREF(Py_None); resultobj = Py_None; | |
1556 | return resultobj; | |
1557 | fail: | |
1558 | return NULL; | |
1559 | } | |
1560 | ||
1561 | ||
1562 | static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1563 | PyObject *resultobj; | |
1564 | wxPen *arg1 = (wxPen *) 0 ; | |
1565 | int arg2 ; | |
1566 | PyObject * obj0 = 0 ; | |
1567 | char *kwnames[] = { | |
1568 | (char *) "self",(char *) "join_style", NULL | |
1569 | }; | |
1570 | ||
1571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetJoin",kwnames,&obj0,&arg2)) goto fail; | |
1572 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1573 | { | |
1574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1575 | (arg1)->SetJoin(arg2); | |
1576 | ||
1577 | wxPyEndAllowThreads(__tstate); | |
1578 | if (PyErr_Occurred()) SWIG_fail; | |
1579 | } | |
1580 | Py_INCREF(Py_None); resultobj = Py_None; | |
1581 | return resultobj; | |
1582 | fail: | |
1583 | return NULL; | |
1584 | } | |
1585 | ||
1586 | ||
1587 | static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1588 | PyObject *resultobj; | |
1589 | wxPen *arg1 = (wxPen *) 0 ; | |
1590 | int arg2 ; | |
1591 | PyObject * obj0 = 0 ; | |
1592 | char *kwnames[] = { | |
1593 | (char *) "self",(char *) "style", NULL | |
1594 | }; | |
1595 | ||
1596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetStyle",kwnames,&obj0,&arg2)) goto fail; | |
1597 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1598 | { | |
1599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1600 | (arg1)->SetStyle(arg2); | |
1601 | ||
1602 | wxPyEndAllowThreads(__tstate); | |
1603 | if (PyErr_Occurred()) SWIG_fail; | |
1604 | } | |
1605 | Py_INCREF(Py_None); resultobj = Py_None; | |
1606 | return resultobj; | |
1607 | fail: | |
1608 | return NULL; | |
1609 | } | |
1610 | ||
1611 | ||
1612 | static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1613 | PyObject *resultobj; | |
1614 | wxPen *arg1 = (wxPen *) 0 ; | |
1615 | int arg2 ; | |
1616 | PyObject * obj0 = 0 ; | |
1617 | char *kwnames[] = { | |
1618 | (char *) "self",(char *) "width", NULL | |
1619 | }; | |
1620 | ||
1621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetWidth",kwnames,&obj0,&arg2)) goto fail; | |
1622 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1623 | { | |
1624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1625 | (arg1)->SetWidth(arg2); | |
1626 | ||
1627 | wxPyEndAllowThreads(__tstate); | |
1628 | if (PyErr_Occurred()) SWIG_fail; | |
1629 | } | |
1630 | Py_INCREF(Py_None); resultobj = Py_None; | |
1631 | return resultobj; | |
1632 | fail: | |
1633 | return NULL; | |
1634 | } | |
1635 | ||
1636 | ||
1637 | static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1638 | PyObject *resultobj; | |
1639 | wxPen *arg1 = (wxPen *) 0 ; | |
1640 | int arg2 ; | |
1641 | wxDash *arg3 = (wxDash *) 0 ; | |
1642 | PyObject * obj0 = 0 ; | |
1643 | PyObject * obj1 = 0 ; | |
1644 | char *kwnames[] = { | |
1645 | (char *) "self",(char *) "dashes", NULL | |
1646 | }; | |
1647 | ||
1648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail; | |
1649 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1650 | { | |
1651 | arg2 = PyList_Size(obj1); | |
1652 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
1653 | if (arg3 == NULL) SWIG_fail; | |
1654 | } | |
1655 | { | |
1656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1657 | (arg1)->SetDashes(arg2,arg3); | |
1658 | ||
1659 | wxPyEndAllowThreads(__tstate); | |
1660 | if (PyErr_Occurred()) SWIG_fail; | |
1661 | } | |
1662 | Py_INCREF(Py_None); resultobj = Py_None; | |
1663 | { | |
1664 | if (arg3) delete [] arg3; | |
1665 | } | |
1666 | return resultobj; | |
1667 | fail: | |
1668 | { | |
1669 | if (arg3) delete [] arg3; | |
1670 | } | |
1671 | return NULL; | |
1672 | } | |
1673 | ||
1674 | ||
1675 | static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1676 | PyObject *resultobj; | |
1677 | wxPen *arg1 = (wxPen *) 0 ; | |
1678 | PyObject *result; | |
1679 | PyObject * obj0 = 0 ; | |
1680 | char *kwnames[] = { | |
1681 | (char *) "self", NULL | |
1682 | }; | |
1683 | ||
1684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail; | |
1685 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1686 | { | |
1687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1688 | result = (PyObject *)wxPen_GetDashes(arg1); | |
1689 | ||
1690 | wxPyEndAllowThreads(__tstate); | |
1691 | if (PyErr_Occurred()) SWIG_fail; | |
1692 | } | |
1693 | resultobj = result; | |
1694 | return resultobj; | |
1695 | fail: | |
1696 | return NULL; | |
1697 | } | |
1698 | ||
1699 | ||
1700 | static PyObject *_wrap_Pen_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1701 | PyObject *resultobj; | |
1702 | wxPen *arg1 = (wxPen *) 0 ; | |
1703 | wxBitmap *result; | |
1704 | PyObject * obj0 = 0 ; | |
1705 | char *kwnames[] = { | |
1706 | (char *) "self", NULL | |
1707 | }; | |
1708 | ||
1709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStipple",kwnames,&obj0)) goto fail; | |
1710 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1711 | { | |
1712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1713 | result = (wxBitmap *)(arg1)->GetStipple(); | |
1714 | ||
1715 | wxPyEndAllowThreads(__tstate); | |
1716 | if (PyErr_Occurred()) SWIG_fail; | |
1717 | } | |
1718 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
1719 | return resultobj; | |
1720 | fail: | |
1721 | return NULL; | |
1722 | } | |
1723 | ||
1724 | ||
1725 | static PyObject *_wrap_Pen_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1726 | PyObject *resultobj; | |
1727 | wxPen *arg1 = (wxPen *) 0 ; | |
1728 | wxBitmap *arg2 = 0 ; | |
1729 | PyObject * obj0 = 0 ; | |
1730 | PyObject * obj1 = 0 ; | |
1731 | char *kwnames[] = { | |
1732 | (char *) "self",(char *) "stipple", NULL | |
1733 | }; | |
1734 | ||
1735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) goto fail; | |
1736 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1737 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1738 | if (arg2 == NULL) { | |
1739 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1740 | } | |
1741 | { | |
1742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1743 | (arg1)->SetStipple(*arg2); | |
1744 | ||
1745 | wxPyEndAllowThreads(__tstate); | |
1746 | if (PyErr_Occurred()) SWIG_fail; | |
1747 | } | |
1748 | Py_INCREF(Py_None); resultobj = Py_None; | |
1749 | return resultobj; | |
1750 | fail: | |
1751 | return NULL; | |
1752 | } | |
1753 | ||
1754 | ||
1755 | static PyObject * Pen_swigregister(PyObject *self, PyObject *args) { | |
1756 | PyObject *obj; | |
1757 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1758 | SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj); | |
1759 | Py_INCREF(obj); | |
1760 | return Py_BuildValue((char *)""); | |
1761 | } | |
1762 | static PyObject *_wrap_new_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1763 | PyObject *resultobj; | |
1764 | wxColour *arg1 = 0 ; | |
1765 | int arg2 = (int) 1 ; | |
1766 | int arg3 = (int) wxSOLID ; | |
1767 | wxPyPen *result; | |
1768 | wxColour temp1 ; | |
1769 | PyObject * obj0 = 0 ; | |
1770 | char *kwnames[] = { | |
1771 | (char *) "colour",(char *) "width",(char *) "style", NULL | |
1772 | }; | |
1773 | ||
1774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:new_PyPen",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
1775 | { | |
1776 | arg1 = &temp1; | |
1777 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
1778 | } | |
1779 | { | |
1780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1781 | result = (wxPyPen *)new wxPyPen(*arg1,arg2,arg3); | |
1782 | ||
1783 | wxPyEndAllowThreads(__tstate); | |
1784 | if (PyErr_Occurred()) SWIG_fail; | |
1785 | } | |
1786 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyPen, 1); | |
1787 | return resultobj; | |
1788 | fail: | |
1789 | return NULL; | |
1790 | } | |
1791 | ||
1792 | ||
1793 | static PyObject *_wrap_delete_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1794 | PyObject *resultobj; | |
1795 | wxPyPen *arg1 = (wxPyPen *) 0 ; | |
1796 | PyObject * obj0 = 0 ; | |
1797 | char *kwnames[] = { | |
1798 | (char *) "self", NULL | |
1799 | }; | |
1800 | ||
1801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyPen",kwnames,&obj0)) goto fail; | |
1802 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1803 | { | |
1804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1805 | delete arg1; | |
1806 | ||
1807 | wxPyEndAllowThreads(__tstate); | |
1808 | if (PyErr_Occurred()) SWIG_fail; | |
1809 | } | |
1810 | Py_INCREF(Py_None); resultobj = Py_None; | |
1811 | return resultobj; | |
1812 | fail: | |
1813 | return NULL; | |
1814 | } | |
1815 | ||
1816 | ||
1817 | static PyObject *_wrap_PyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1818 | PyObject *resultobj; | |
1819 | wxPyPen *arg1 = (wxPyPen *) 0 ; | |
1820 | int arg2 ; | |
1821 | wxDash *arg3 = (wxDash *) 0 ; | |
1822 | PyObject * obj0 = 0 ; | |
1823 | PyObject * obj1 = 0 ; | |
1824 | char *kwnames[] = { | |
1825 | (char *) "self",(char *) "dashes", NULL | |
1826 | }; | |
1827 | ||
1828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPen_SetDashes",kwnames,&obj0,&obj1)) goto fail; | |
1829 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1830 | { | |
1831 | arg2 = PyList_Size(obj1); | |
1832 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
1833 | if (arg3 == NULL) SWIG_fail; | |
1834 | } | |
1835 | { | |
1836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1837 | (arg1)->SetDashes(arg2,arg3); | |
1838 | ||
1839 | wxPyEndAllowThreads(__tstate); | |
1840 | if (PyErr_Occurred()) SWIG_fail; | |
1841 | } | |
1842 | Py_INCREF(Py_None); resultobj = Py_None; | |
1843 | { | |
1844 | if (arg3) delete [] arg3; | |
1845 | } | |
1846 | return resultobj; | |
1847 | fail: | |
1848 | { | |
1849 | if (arg3) delete [] arg3; | |
1850 | } | |
1851 | return NULL; | |
1852 | } | |
1853 | ||
1854 | ||
1855 | static PyObject * PyPen_swigregister(PyObject *self, PyObject *args) { | |
1856 | PyObject *obj; | |
1857 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1858 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPen, obj); | |
1859 | Py_INCREF(obj); | |
1860 | return Py_BuildValue((char *)""); | |
1861 | } | |
1862 | static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1863 | PyObject *resultobj; | |
1864 | wxColour *arg1 = 0 ; | |
1865 | int arg2 = (int) wxSOLID ; | |
1866 | wxBrush *result; | |
1867 | wxColour temp1 ; | |
1868 | PyObject * obj0 = 0 ; | |
1869 | char *kwnames[] = { | |
1870 | (char *) "colour",(char *) "style", NULL | |
1871 | }; | |
1872 | ||
1873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_Brush",kwnames,&obj0,&arg2)) goto fail; | |
1874 | { | |
1875 | arg1 = &temp1; | |
1876 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
1877 | } | |
1878 | { | |
1879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1880 | result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2); | |
1881 | ||
1882 | wxPyEndAllowThreads(__tstate); | |
1883 | if (PyErr_Occurred()) SWIG_fail; | |
1884 | } | |
1885 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 1); | |
1886 | return resultobj; | |
1887 | fail: | |
1888 | return NULL; | |
1889 | } | |
1890 | ||
1891 | ||
1892 | static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1893 | PyObject *resultobj; | |
1894 | wxBrush *arg1 = (wxBrush *) 0 ; | |
1895 | PyObject * obj0 = 0 ; | |
1896 | char *kwnames[] = { | |
1897 | (char *) "self", NULL | |
1898 | }; | |
1899 | ||
1900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail; | |
1901 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1902 | { | |
1903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1904 | delete arg1; | |
1905 | ||
1906 | wxPyEndAllowThreads(__tstate); | |
1907 | if (PyErr_Occurred()) SWIG_fail; | |
1908 | } | |
1909 | Py_INCREF(Py_None); resultobj = Py_None; | |
1910 | return resultobj; | |
1911 | fail: | |
1912 | return NULL; | |
1913 | } | |
1914 | ||
1915 | ||
1916 | static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1917 | PyObject *resultobj; | |
1918 | wxBrush *arg1 = (wxBrush *) 0 ; | |
1919 | wxColour *arg2 = 0 ; | |
1920 | wxColour temp2 ; | |
1921 | PyObject * obj0 = 0 ; | |
1922 | PyObject * obj1 = 0 ; | |
1923 | char *kwnames[] = { | |
1924 | (char *) "self",(char *) "col", NULL | |
1925 | }; | |
1926 | ||
1927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
1928 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1929 | { | |
1930 | arg2 = &temp2; | |
1931 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1932 | } | |
1933 | { | |
1934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1935 | (arg1)->SetColour((wxColour const &)*arg2); | |
1936 | ||
1937 | wxPyEndAllowThreads(__tstate); | |
1938 | if (PyErr_Occurred()) SWIG_fail; | |
1939 | } | |
1940 | Py_INCREF(Py_None); resultobj = Py_None; | |
1941 | return resultobj; | |
1942 | fail: | |
1943 | return NULL; | |
1944 | } | |
1945 | ||
1946 | ||
1947 | static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1948 | PyObject *resultobj; | |
1949 | wxBrush *arg1 = (wxBrush *) 0 ; | |
1950 | int arg2 ; | |
1951 | PyObject * obj0 = 0 ; | |
1952 | char *kwnames[] = { | |
1953 | (char *) "self",(char *) "style", NULL | |
1954 | }; | |
1955 | ||
1956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Brush_SetStyle",kwnames,&obj0,&arg2)) goto fail; | |
1957 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1958 | { | |
1959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1960 | (arg1)->SetStyle(arg2); | |
1961 | ||
1962 | wxPyEndAllowThreads(__tstate); | |
1963 | if (PyErr_Occurred()) SWIG_fail; | |
1964 | } | |
1965 | Py_INCREF(Py_None); resultobj = Py_None; | |
1966 | return resultobj; | |
1967 | fail: | |
1968 | return NULL; | |
1969 | } | |
1970 | ||
1971 | ||
1972 | static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1973 | PyObject *resultobj; | |
1974 | wxBrush *arg1 = (wxBrush *) 0 ; | |
1975 | wxBitmap *arg2 = 0 ; | |
1976 | PyObject * obj0 = 0 ; | |
1977 | PyObject * obj1 = 0 ; | |
1978 | char *kwnames[] = { | |
1979 | (char *) "self",(char *) "stipple", NULL | |
1980 | }; | |
1981 | ||
1982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail; | |
1983 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1984 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1985 | if (arg2 == NULL) { | |
1986 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1987 | } | |
1988 | { | |
1989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1990 | (arg1)->SetStipple((wxBitmap const &)*arg2); | |
1991 | ||
1992 | wxPyEndAllowThreads(__tstate); | |
1993 | if (PyErr_Occurred()) SWIG_fail; | |
1994 | } | |
1995 | Py_INCREF(Py_None); resultobj = Py_None; | |
1996 | return resultobj; | |
1997 | fail: | |
1998 | return NULL; | |
1999 | } | |
2000 | ||
2001 | ||
2002 | static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2003 | PyObject *resultobj; | |
2004 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2005 | wxColour result; | |
2006 | PyObject * obj0 = 0 ; | |
2007 | char *kwnames[] = { | |
2008 | (char *) "self", NULL | |
2009 | }; | |
2010 | ||
2011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail; | |
2012 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2013 | { | |
2014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2015 | result = ((wxBrush const *)arg1)->GetColour(); | |
2016 | ||
2017 | wxPyEndAllowThreads(__tstate); | |
2018 | if (PyErr_Occurred()) SWIG_fail; | |
2019 | } | |
2020 | { | |
2021 | wxColour * resultptr; | |
2022 | resultptr = new wxColour((wxColour &) result); | |
2023 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
2024 | } | |
2025 | return resultobj; | |
2026 | fail: | |
2027 | return NULL; | |
2028 | } | |
2029 | ||
2030 | ||
2031 | static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2032 | PyObject *resultobj; | |
2033 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2034 | int result; | |
2035 | PyObject * obj0 = 0 ; | |
2036 | char *kwnames[] = { | |
2037 | (char *) "self", NULL | |
2038 | }; | |
2039 | ||
2040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail; | |
2041 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2042 | { | |
2043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2044 | result = (int)((wxBrush const *)arg1)->GetStyle(); | |
2045 | ||
2046 | wxPyEndAllowThreads(__tstate); | |
2047 | if (PyErr_Occurred()) SWIG_fail; | |
2048 | } | |
2049 | resultobj = PyInt_FromLong((long)result); | |
2050 | return resultobj; | |
2051 | fail: | |
2052 | return NULL; | |
2053 | } | |
2054 | ||
2055 | ||
2056 | static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2057 | PyObject *resultobj; | |
2058 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2059 | wxBitmap *result; | |
2060 | PyObject * obj0 = 0 ; | |
2061 | char *kwnames[] = { | |
2062 | (char *) "self", NULL | |
2063 | }; | |
2064 | ||
2065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail; | |
2066 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2067 | { | |
2068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2069 | result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple(); | |
2070 | ||
2071 | wxPyEndAllowThreads(__tstate); | |
2072 | if (PyErr_Occurred()) SWIG_fail; | |
2073 | } | |
2074 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
2075 | return resultobj; | |
2076 | fail: | |
2077 | return NULL; | |
2078 | } | |
2079 | ||
2080 | ||
2081 | static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2082 | PyObject *resultobj; | |
2083 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2084 | bool result; | |
2085 | PyObject * obj0 = 0 ; | |
2086 | char *kwnames[] = { | |
2087 | (char *) "self", NULL | |
2088 | }; | |
2089 | ||
2090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail; | |
2091 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2092 | { | |
2093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2094 | result = (bool)(arg1)->Ok(); | |
2095 | ||
2096 | wxPyEndAllowThreads(__tstate); | |
2097 | if (PyErr_Occurred()) SWIG_fail; | |
2098 | } | |
2099 | resultobj = PyInt_FromLong((long)result); | |
2100 | return resultobj; | |
2101 | fail: | |
2102 | return NULL; | |
2103 | } | |
2104 | ||
2105 | ||
2106 | static PyObject * Brush_swigregister(PyObject *self, PyObject *args) { | |
2107 | PyObject *obj; | |
2108 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2109 | SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj); | |
2110 | Py_INCREF(obj); | |
2111 | return Py_BuildValue((char *)""); | |
2112 | } | |
2113 | static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2114 | PyObject *resultobj; | |
2115 | wxString *arg1 = 0 ; | |
2116 | int arg2 = (int) wxBITMAP_TYPE_ANY ; | |
2117 | wxBitmap *result; | |
2118 | bool temp1 = false ; | |
2119 | PyObject * obj0 = 0 ; | |
2120 | char *kwnames[] = { | |
2121 | (char *) "name",(char *) "type", NULL | |
2122 | }; | |
2123 | ||
2124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_Bitmap",kwnames,&obj0,&arg2)) goto fail; | |
2125 | { | |
2126 | arg1 = wxString_in_helper(obj0); | |
2127 | if (arg1 == NULL) SWIG_fail; | |
2128 | temp1 = true; | |
2129 | } | |
2130 | { | |
2131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2132 | result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2); | |
2133 | ||
2134 | wxPyEndAllowThreads(__tstate); | |
2135 | if (PyErr_Occurred()) SWIG_fail; | |
2136 | } | |
2137 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2138 | { | |
2139 | if (temp1) | |
2140 | delete arg1; | |
2141 | } | |
2142 | return resultobj; | |
2143 | fail: | |
2144 | { | |
2145 | if (temp1) | |
2146 | delete arg1; | |
2147 | } | |
2148 | return NULL; | |
2149 | } | |
2150 | ||
2151 | ||
2152 | static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2153 | PyObject *resultobj; | |
2154 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2155 | PyObject * obj0 = 0 ; | |
2156 | char *kwnames[] = { | |
2157 | (char *) "self", NULL | |
2158 | }; | |
2159 | ||
2160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail; | |
2161 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2162 | { | |
2163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2164 | delete arg1; | |
2165 | ||
2166 | wxPyEndAllowThreads(__tstate); | |
2167 | if (PyErr_Occurred()) SWIG_fail; | |
2168 | } | |
2169 | Py_INCREF(Py_None); resultobj = Py_None; | |
2170 | return resultobj; | |
2171 | fail: | |
2172 | return NULL; | |
2173 | } | |
2174 | ||
2175 | ||
2176 | static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2177 | PyObject *resultobj; | |
2178 | int arg1 ; | |
2179 | int arg2 ; | |
2180 | int arg3 = (int) -1 ; | |
2181 | wxBitmap *result; | |
2182 | char *kwnames[] = { | |
2183 | (char *) "width",(char *) "height",(char *) "depth", NULL | |
2184 | }; | |
2185 | ||
2186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii|i:new_EmptyBitmap",kwnames,&arg1,&arg2,&arg3)) goto fail; | |
2187 | { | |
2188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2189 | result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3); | |
2190 | ||
2191 | wxPyEndAllowThreads(__tstate); | |
2192 | if (PyErr_Occurred()) SWIG_fail; | |
2193 | } | |
2194 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2195 | return resultobj; | |
2196 | fail: | |
2197 | return NULL; | |
2198 | } | |
2199 | ||
2200 | ||
2201 | static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2202 | PyObject *resultobj; | |
2203 | wxIcon *arg1 = 0 ; | |
2204 | wxBitmap *result; | |
2205 | PyObject * obj0 = 0 ; | |
2206 | char *kwnames[] = { | |
2207 | (char *) "icon", NULL | |
2208 | }; | |
2209 | ||
2210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail; | |
2211 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2212 | if (arg1 == NULL) { | |
2213 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2214 | } | |
2215 | { | |
2216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2217 | result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1); | |
2218 | ||
2219 | wxPyEndAllowThreads(__tstate); | |
2220 | if (PyErr_Occurred()) SWIG_fail; | |
2221 | } | |
2222 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2223 | return resultobj; | |
2224 | fail: | |
2225 | return NULL; | |
2226 | } | |
2227 | ||
2228 | ||
2229 | static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2230 | PyObject *resultobj; | |
2231 | wxImage *arg1 = 0 ; | |
2232 | int arg2 = (int) -1 ; | |
2233 | wxBitmap *result; | |
2234 | PyObject * obj0 = 0 ; | |
2235 | char *kwnames[] = { | |
2236 | (char *) "image",(char *) "depth", NULL | |
2237 | }; | |
2238 | ||
2239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_BitmapFromImage",kwnames,&obj0,&arg2)) goto fail; | |
2240 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2241 | if (arg1 == NULL) { | |
2242 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2243 | } | |
2244 | { | |
2245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2246 | result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2); | |
2247 | ||
2248 | wxPyEndAllowThreads(__tstate); | |
2249 | if (PyErr_Occurred()) SWIG_fail; | |
2250 | } | |
2251 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2252 | return resultobj; | |
2253 | fail: | |
2254 | return NULL; | |
2255 | } | |
2256 | ||
2257 | ||
2258 | static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2259 | PyObject *resultobj; | |
2260 | PyObject *arg1 = (PyObject *) 0 ; | |
2261 | wxBitmap *result; | |
2262 | PyObject * obj0 = 0 ; | |
2263 | char *kwnames[] = { | |
2264 | (char *) "listOfStrings", NULL | |
2265 | }; | |
2266 | ||
2267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail; | |
2268 | arg1 = obj0; | |
2269 | { | |
2270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2271 | result = (wxBitmap *)new_wxBitmap(arg1); | |
2272 | ||
2273 | wxPyEndAllowThreads(__tstate); | |
2274 | if (PyErr_Occurred()) SWIG_fail; | |
2275 | } | |
2276 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2277 | return resultobj; | |
2278 | fail: | |
2279 | return NULL; | |
2280 | } | |
2281 | ||
2282 | ||
2283 | static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2284 | PyObject *resultobj; | |
2285 | PyObject *arg1 = (PyObject *) 0 ; | |
2286 | int arg2 ; | |
2287 | int arg3 ; | |
2288 | int arg4 = (int) 1 ; | |
2289 | wxBitmap *result; | |
2290 | PyObject * obj0 = 0 ; | |
2291 | char *kwnames[] = { | |
2292 | (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL | |
2293 | }; | |
2294 | ||
2295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|i:new_BitmapFromBits",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
2296 | arg1 = obj0; | |
2297 | { | |
2298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2299 | result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4); | |
2300 | ||
2301 | wxPyEndAllowThreads(__tstate); | |
2302 | if (PyErr_Occurred()) SWIG_fail; | |
2303 | } | |
2304 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2305 | return resultobj; | |
2306 | fail: | |
2307 | return NULL; | |
2308 | } | |
2309 | ||
2310 | ||
2311 | static PyObject *_wrap_Bitmap_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2312 | PyObject *resultobj; | |
2313 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2314 | wxPalette *arg2 = 0 ; | |
2315 | PyObject * obj0 = 0 ; | |
2316 | PyObject * obj1 = 0 ; | |
2317 | char *kwnames[] = { | |
2318 | (char *) "self",(char *) "palette", NULL | |
2319 | }; | |
2320 | ||
2321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) goto fail; | |
2322 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2323 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2324 | if (arg2 == NULL) { | |
2325 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2326 | } | |
2327 | { | |
2328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2329 | (arg1)->SetPalette(*arg2); | |
2330 | ||
2331 | wxPyEndAllowThreads(__tstate); | |
2332 | if (PyErr_Occurred()) SWIG_fail; | |
2333 | } | |
2334 | Py_INCREF(Py_None); resultobj = Py_None; | |
2335 | return resultobj; | |
2336 | fail: | |
2337 | return NULL; | |
2338 | } | |
2339 | ||
2340 | ||
2341 | static PyObject *_wrap_Bitmap_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2342 | PyObject *resultobj; | |
2343 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2344 | long result; | |
2345 | PyObject * obj0 = 0 ; | |
2346 | char *kwnames[] = { | |
2347 | (char *) "self", NULL | |
2348 | }; | |
2349 | ||
2350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHandle",kwnames,&obj0)) goto fail; | |
2351 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2352 | { | |
2353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2354 | result = (long)(arg1)->GetHandle(); | |
2355 | ||
2356 | wxPyEndAllowThreads(__tstate); | |
2357 | if (PyErr_Occurred()) SWIG_fail; | |
2358 | } | |
2359 | resultobj = PyInt_FromLong((long)result); | |
2360 | return resultobj; | |
2361 | fail: | |
2362 | return NULL; | |
2363 | } | |
2364 | ||
2365 | ||
2366 | static PyObject *_wrap_Bitmap_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2367 | PyObject *resultobj; | |
2368 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2369 | long arg2 ; | |
2370 | PyObject * obj0 = 0 ; | |
2371 | char *kwnames[] = { | |
2372 | (char *) "self",(char *) "handle", NULL | |
2373 | }; | |
2374 | ||
2375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:Bitmap_SetHandle",kwnames,&obj0,&arg2)) goto fail; | |
2376 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2377 | { | |
2378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2379 | (arg1)->SetHandle(arg2); | |
2380 | ||
2381 | wxPyEndAllowThreads(__tstate); | |
2382 | if (PyErr_Occurred()) SWIG_fail; | |
2383 | } | |
2384 | Py_INCREF(Py_None); resultobj = Py_None; | |
2385 | return resultobj; | |
2386 | fail: | |
2387 | return NULL; | |
2388 | } | |
2389 | ||
2390 | ||
2391 | static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2392 | PyObject *resultobj; | |
2393 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2394 | bool result; | |
2395 | PyObject * obj0 = 0 ; | |
2396 | char *kwnames[] = { | |
2397 | (char *) "self", NULL | |
2398 | }; | |
2399 | ||
2400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail; | |
2401 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2402 | { | |
2403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2404 | result = (bool)(arg1)->Ok(); | |
2405 | ||
2406 | wxPyEndAllowThreads(__tstate); | |
2407 | if (PyErr_Occurred()) SWIG_fail; | |
2408 | } | |
2409 | resultobj = PyInt_FromLong((long)result); | |
2410 | return resultobj; | |
2411 | fail: | |
2412 | return NULL; | |
2413 | } | |
2414 | ||
2415 | ||
2416 | static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2417 | PyObject *resultobj; | |
2418 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2419 | int result; | |
2420 | PyObject * obj0 = 0 ; | |
2421 | char *kwnames[] = { | |
2422 | (char *) "self", NULL | |
2423 | }; | |
2424 | ||
2425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail; | |
2426 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2427 | { | |
2428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2429 | result = (int)(arg1)->GetWidth(); | |
2430 | ||
2431 | wxPyEndAllowThreads(__tstate); | |
2432 | if (PyErr_Occurred()) SWIG_fail; | |
2433 | } | |
2434 | resultobj = PyInt_FromLong((long)result); | |
2435 | return resultobj; | |
2436 | fail: | |
2437 | return NULL; | |
2438 | } | |
2439 | ||
2440 | ||
2441 | static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2442 | PyObject *resultobj; | |
2443 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2444 | int result; | |
2445 | PyObject * obj0 = 0 ; | |
2446 | char *kwnames[] = { | |
2447 | (char *) "self", NULL | |
2448 | }; | |
2449 | ||
2450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail; | |
2451 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2452 | { | |
2453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2454 | result = (int)(arg1)->GetHeight(); | |
2455 | ||
2456 | wxPyEndAllowThreads(__tstate); | |
2457 | if (PyErr_Occurred()) SWIG_fail; | |
2458 | } | |
2459 | resultobj = PyInt_FromLong((long)result); | |
2460 | return resultobj; | |
2461 | fail: | |
2462 | return NULL; | |
2463 | } | |
2464 | ||
2465 | ||
2466 | static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2467 | PyObject *resultobj; | |
2468 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2469 | int result; | |
2470 | PyObject * obj0 = 0 ; | |
2471 | char *kwnames[] = { | |
2472 | (char *) "self", NULL | |
2473 | }; | |
2474 | ||
2475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail; | |
2476 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2477 | { | |
2478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2479 | result = (int)(arg1)->GetDepth(); | |
2480 | ||
2481 | wxPyEndAllowThreads(__tstate); | |
2482 | if (PyErr_Occurred()) SWIG_fail; | |
2483 | } | |
2484 | resultobj = PyInt_FromLong((long)result); | |
2485 | return resultobj; | |
2486 | fail: | |
2487 | return NULL; | |
2488 | } | |
2489 | ||
2490 | ||
2491 | static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2492 | PyObject *resultobj; | |
2493 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2494 | SwigValueWrapper< wxImage > result; | |
2495 | PyObject * obj0 = 0 ; | |
2496 | char *kwnames[] = { | |
2497 | (char *) "self", NULL | |
2498 | }; | |
2499 | ||
2500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail; | |
2501 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2502 | { | |
2503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2504 | result = ((wxBitmap const *)arg1)->ConvertToImage(); | |
2505 | ||
2506 | wxPyEndAllowThreads(__tstate); | |
2507 | if (PyErr_Occurred()) SWIG_fail; | |
2508 | } | |
2509 | { | |
2510 | wxImage * resultptr; | |
2511 | resultptr = new wxImage((wxImage &) result); | |
2512 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
2513 | } | |
2514 | return resultobj; | |
2515 | fail: | |
2516 | return NULL; | |
2517 | } | |
2518 | ||
2519 | ||
2520 | static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2521 | PyObject *resultobj; | |
2522 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2523 | wxMask *result; | |
2524 | PyObject * obj0 = 0 ; | |
2525 | char *kwnames[] = { | |
2526 | (char *) "self", NULL | |
2527 | }; | |
2528 | ||
2529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail; | |
2530 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2531 | { | |
2532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2533 | result = (wxMask *)((wxBitmap const *)arg1)->GetMask(); | |
2534 | ||
2535 | wxPyEndAllowThreads(__tstate); | |
2536 | if (PyErr_Occurred()) SWIG_fail; | |
2537 | } | |
2538 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 0); | |
2539 | return resultobj; | |
2540 | fail: | |
2541 | return NULL; | |
2542 | } | |
2543 | ||
2544 | ||
2545 | static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2546 | PyObject *resultobj; | |
2547 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2548 | wxMask *arg2 = (wxMask *) 0 ; | |
2549 | PyObject * obj0 = 0 ; | |
2550 | PyObject * obj1 = 0 ; | |
2551 | char *kwnames[] = { | |
2552 | (char *) "self",(char *) "mask", NULL | |
2553 | }; | |
2554 | ||
2555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
2556 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2557 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2558 | { | |
2559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2560 | (arg1)->SetMask(arg2); | |
2561 | ||
2562 | wxPyEndAllowThreads(__tstate); | |
2563 | if (PyErr_Occurred()) SWIG_fail; | |
2564 | } | |
2565 | Py_INCREF(Py_None); resultobj = Py_None; | |
2566 | return resultobj; | |
2567 | fail: | |
2568 | return NULL; | |
2569 | } | |
2570 | ||
2571 | ||
2572 | static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2573 | PyObject *resultobj; | |
2574 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2575 | wxColour *arg2 = 0 ; | |
2576 | wxColour temp2 ; | |
2577 | PyObject * obj0 = 0 ; | |
2578 | PyObject * obj1 = 0 ; | |
2579 | char *kwnames[] = { | |
2580 | (char *) "self",(char *) "colour", NULL | |
2581 | }; | |
2582 | ||
2583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail; | |
2584 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2585 | { | |
2586 | arg2 = &temp2; | |
2587 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
2588 | } | |
2589 | { | |
2590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2591 | wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2); | |
2592 | ||
2593 | wxPyEndAllowThreads(__tstate); | |
2594 | if (PyErr_Occurred()) SWIG_fail; | |
2595 | } | |
2596 | Py_INCREF(Py_None); resultobj = Py_None; | |
2597 | return resultobj; | |
2598 | fail: | |
2599 | return NULL; | |
2600 | } | |
2601 | ||
2602 | ||
2603 | static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2604 | PyObject *resultobj; | |
2605 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2606 | wxRect *arg2 = 0 ; | |
2607 | SwigValueWrapper< wxBitmap > result; | |
2608 | wxRect temp2 ; | |
2609 | PyObject * obj0 = 0 ; | |
2610 | PyObject * obj1 = 0 ; | |
2611 | char *kwnames[] = { | |
2612 | (char *) "self",(char *) "rect", NULL | |
2613 | }; | |
2614 | ||
2615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail; | |
2616 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2617 | { | |
2618 | arg2 = &temp2; | |
2619 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
2620 | } | |
2621 | { | |
2622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2623 | result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2); | |
2624 | ||
2625 | wxPyEndAllowThreads(__tstate); | |
2626 | if (PyErr_Occurred()) SWIG_fail; | |
2627 | } | |
2628 | { | |
2629 | wxBitmap * resultptr; | |
2630 | resultptr = new wxBitmap((wxBitmap &) result); | |
2631 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
2632 | } | |
2633 | return resultobj; | |
2634 | fail: | |
2635 | return NULL; | |
2636 | } | |
2637 | ||
2638 | ||
2639 | static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2640 | PyObject *resultobj; | |
2641 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2642 | wxString *arg2 = 0 ; | |
2643 | int arg3 ; | |
2644 | wxPalette *arg4 = (wxPalette *) (wxPalette *) NULL ; | |
2645 | bool result; | |
2646 | bool temp2 = false ; | |
2647 | PyObject * obj0 = 0 ; | |
2648 | PyObject * obj1 = 0 ; | |
2649 | PyObject * obj3 = 0 ; | |
2650 | char *kwnames[] = { | |
2651 | (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL | |
2652 | }; | |
2653 | ||
2654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&arg3,&obj3)) goto fail; | |
2655 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2656 | { | |
2657 | arg2 = wxString_in_helper(obj1); | |
2658 | if (arg2 == NULL) SWIG_fail; | |
2659 | temp2 = true; | |
2660 | } | |
2661 | if (obj3) { | |
2662 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2663 | } | |
2664 | { | |
2665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2666 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4); | |
2667 | ||
2668 | wxPyEndAllowThreads(__tstate); | |
2669 | if (PyErr_Occurred()) SWIG_fail; | |
2670 | } | |
2671 | resultobj = PyInt_FromLong((long)result); | |
2672 | { | |
2673 | if (temp2) | |
2674 | delete arg2; | |
2675 | } | |
2676 | return resultobj; | |
2677 | fail: | |
2678 | { | |
2679 | if (temp2) | |
2680 | delete arg2; | |
2681 | } | |
2682 | return NULL; | |
2683 | } | |
2684 | ||
2685 | ||
2686 | static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2687 | PyObject *resultobj; | |
2688 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2689 | wxString *arg2 = 0 ; | |
2690 | int arg3 ; | |
2691 | bool result; | |
2692 | bool temp2 = false ; | |
2693 | PyObject * obj0 = 0 ; | |
2694 | PyObject * obj1 = 0 ; | |
2695 | char *kwnames[] = { | |
2696 | (char *) "self",(char *) "name",(char *) "type", NULL | |
2697 | }; | |
2698 | ||
2699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:Bitmap_LoadFile",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
2700 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2701 | { | |
2702 | arg2 = wxString_in_helper(obj1); | |
2703 | if (arg2 == NULL) SWIG_fail; | |
2704 | temp2 = true; | |
2705 | } | |
2706 | { | |
2707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2708 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3); | |
2709 | ||
2710 | wxPyEndAllowThreads(__tstate); | |
2711 | if (PyErr_Occurred()) SWIG_fail; | |
2712 | } | |
2713 | resultobj = PyInt_FromLong((long)result); | |
2714 | { | |
2715 | if (temp2) | |
2716 | delete arg2; | |
2717 | } | |
2718 | return resultobj; | |
2719 | fail: | |
2720 | { | |
2721 | if (temp2) | |
2722 | delete arg2; | |
2723 | } | |
2724 | return NULL; | |
2725 | } | |
2726 | ||
2727 | ||
2728 | static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2729 | PyObject *resultobj; | |
2730 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2731 | wxIcon *arg2 = 0 ; | |
2732 | bool result; | |
2733 | PyObject * obj0 = 0 ; | |
2734 | PyObject * obj1 = 0 ; | |
2735 | char *kwnames[] = { | |
2736 | (char *) "self",(char *) "icon", NULL | |
2737 | }; | |
2738 | ||
2739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail; | |
2740 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2741 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2742 | if (arg2 == NULL) { | |
2743 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2744 | } | |
2745 | { | |
2746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2747 | result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2); | |
2748 | ||
2749 | wxPyEndAllowThreads(__tstate); | |
2750 | if (PyErr_Occurred()) SWIG_fail; | |
2751 | } | |
2752 | resultobj = PyInt_FromLong((long)result); | |
2753 | return resultobj; | |
2754 | fail: | |
2755 | return NULL; | |
2756 | } | |
2757 | ||
2758 | ||
2759 | static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2760 | PyObject *resultobj; | |
2761 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2762 | int arg2 ; | |
2763 | PyObject * obj0 = 0 ; | |
2764 | char *kwnames[] = { | |
2765 | (char *) "self",(char *) "height", NULL | |
2766 | }; | |
2767 | ||
2768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Bitmap_SetHeight",kwnames,&obj0,&arg2)) goto fail; | |
2769 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2770 | { | |
2771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2772 | (arg1)->SetHeight(arg2); | |
2773 | ||
2774 | wxPyEndAllowThreads(__tstate); | |
2775 | if (PyErr_Occurred()) SWIG_fail; | |
2776 | } | |
2777 | Py_INCREF(Py_None); resultobj = Py_None; | |
2778 | return resultobj; | |
2779 | fail: | |
2780 | return NULL; | |
2781 | } | |
2782 | ||
2783 | ||
2784 | static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2785 | PyObject *resultobj; | |
2786 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2787 | int arg2 ; | |
2788 | PyObject * obj0 = 0 ; | |
2789 | char *kwnames[] = { | |
2790 | (char *) "self",(char *) "width", NULL | |
2791 | }; | |
2792 | ||
2793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Bitmap_SetWidth",kwnames,&obj0,&arg2)) goto fail; | |
2794 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2795 | { | |
2796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2797 | (arg1)->SetWidth(arg2); | |
2798 | ||
2799 | wxPyEndAllowThreads(__tstate); | |
2800 | if (PyErr_Occurred()) SWIG_fail; | |
2801 | } | |
2802 | Py_INCREF(Py_None); resultobj = Py_None; | |
2803 | return resultobj; | |
2804 | fail: | |
2805 | return NULL; | |
2806 | } | |
2807 | ||
2808 | ||
2809 | static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2810 | PyObject *resultobj; | |
2811 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2812 | int arg2 ; | |
2813 | PyObject * obj0 = 0 ; | |
2814 | char *kwnames[] = { | |
2815 | (char *) "self",(char *) "depth", NULL | |
2816 | }; | |
2817 | ||
2818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Bitmap_SetDepth",kwnames,&obj0,&arg2)) goto fail; | |
2819 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2820 | { | |
2821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2822 | (arg1)->SetDepth(arg2); | |
2823 | ||
2824 | wxPyEndAllowThreads(__tstate); | |
2825 | if (PyErr_Occurred()) SWIG_fail; | |
2826 | } | |
2827 | Py_INCREF(Py_None); resultobj = Py_None; | |
2828 | return resultobj; | |
2829 | fail: | |
2830 | return NULL; | |
2831 | } | |
2832 | ||
2833 | ||
2834 | static PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2835 | PyObject *resultobj; | |
2836 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2837 | wxCursor *arg2 = 0 ; | |
2838 | bool result; | |
2839 | PyObject * obj0 = 0 ; | |
2840 | PyObject * obj1 = 0 ; | |
2841 | char *kwnames[] = { | |
2842 | (char *) "self",(char *) "cursor", NULL | |
2843 | }; | |
2844 | ||
2845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) goto fail; | |
2846 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2847 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2848 | if (arg2 == NULL) { | |
2849 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2850 | } | |
2851 | { | |
2852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2853 | result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2); | |
2854 | ||
2855 | wxPyEndAllowThreads(__tstate); | |
2856 | if (PyErr_Occurred()) SWIG_fail; | |
2857 | } | |
2858 | resultobj = PyInt_FromLong((long)result); | |
2859 | return resultobj; | |
2860 | fail: | |
2861 | return NULL; | |
2862 | } | |
2863 | ||
2864 | ||
2865 | static PyObject *_wrap_Bitmap_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2866 | PyObject *resultobj; | |
2867 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2868 | int result; | |
2869 | PyObject * obj0 = 0 ; | |
2870 | char *kwnames[] = { | |
2871 | (char *) "self", NULL | |
2872 | }; | |
2873 | ||
2874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetQuality",kwnames,&obj0)) goto fail; | |
2875 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2876 | { | |
2877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2878 | result = (int)(arg1)->GetQuality(); | |
2879 | ||
2880 | wxPyEndAllowThreads(__tstate); | |
2881 | if (PyErr_Occurred()) SWIG_fail; | |
2882 | } | |
2883 | resultobj = PyInt_FromLong((long)result); | |
2884 | return resultobj; | |
2885 | fail: | |
2886 | return NULL; | |
2887 | } | |
2888 | ||
2889 | ||
2890 | static PyObject *_wrap_Bitmap_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2891 | PyObject *resultobj; | |
2892 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2893 | int arg2 ; | |
2894 | PyObject * obj0 = 0 ; | |
2895 | char *kwnames[] = { | |
2896 | (char *) "self",(char *) "q", NULL | |
2897 | }; | |
2898 | ||
2899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Bitmap_SetQuality",kwnames,&obj0,&arg2)) goto fail; | |
2900 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2901 | { | |
2902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2903 | (arg1)->SetQuality(arg2); | |
2904 | ||
2905 | wxPyEndAllowThreads(__tstate); | |
2906 | if (PyErr_Occurred()) SWIG_fail; | |
2907 | } | |
2908 | Py_INCREF(Py_None); resultobj = Py_None; | |
2909 | return resultobj; | |
2910 | fail: | |
2911 | return NULL; | |
2912 | } | |
2913 | ||
2914 | ||
2915 | static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) { | |
2916 | PyObject *obj; | |
2917 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2918 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj); | |
2919 | Py_INCREF(obj); | |
2920 | return Py_BuildValue((char *)""); | |
2921 | } | |
2922 | static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2923 | PyObject *resultobj; | |
2924 | wxBitmap *arg1 = 0 ; | |
2925 | wxMask *result; | |
2926 | PyObject * obj0 = 0 ; | |
2927 | char *kwnames[] = { | |
2928 | (char *) "bitmap", NULL | |
2929 | }; | |
2930 | ||
2931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Mask",kwnames,&obj0)) goto fail; | |
2932 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2933 | if (arg1 == NULL) { | |
2934 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2935 | } | |
2936 | { | |
2937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2938 | result = (wxMask *)new wxMask((wxBitmap const &)*arg1); | |
2939 | ||
2940 | wxPyEndAllowThreads(__tstate); | |
2941 | if (PyErr_Occurred()) SWIG_fail; | |
2942 | } | |
2943 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1); | |
2944 | return resultobj; | |
2945 | fail: | |
2946 | return NULL; | |
2947 | } | |
2948 | ||
2949 | ||
2950 | static PyObject *_wrap_new_MaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2951 | PyObject *resultobj; | |
2952 | wxBitmap *arg1 = 0 ; | |
2953 | wxColour *arg2 = 0 ; | |
2954 | wxMask *result; | |
2955 | wxColour temp2 ; | |
2956 | PyObject * obj0 = 0 ; | |
2957 | PyObject * obj1 = 0 ; | |
2958 | char *kwnames[] = { | |
2959 | (char *) "bitmap",(char *) "colour", NULL | |
2960 | }; | |
2961 | ||
2962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MaskColour",kwnames,&obj0,&obj1)) goto fail; | |
2963 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2964 | if (arg1 == NULL) { | |
2965 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2966 | } | |
2967 | { | |
2968 | arg2 = &temp2; | |
2969 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
2970 | } | |
2971 | { | |
2972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2973 | result = (wxMask *)new wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2); | |
2974 | ||
2975 | wxPyEndAllowThreads(__tstate); | |
2976 | if (PyErr_Occurred()) SWIG_fail; | |
2977 | } | |
2978 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1); | |
2979 | return resultobj; | |
2980 | fail: | |
2981 | return NULL; | |
2982 | } | |
2983 | ||
2984 | ||
2985 | static PyObject * Mask_swigregister(PyObject *self, PyObject *args) { | |
2986 | PyObject *obj; | |
2987 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2988 | SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj); | |
2989 | Py_INCREF(obj); | |
2990 | return Py_BuildValue((char *)""); | |
2991 | } | |
2992 | static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2993 | PyObject *resultobj; | |
2994 | wxString *arg1 = 0 ; | |
2995 | long arg2 ; | |
2996 | int arg3 = (int) -1 ; | |
2997 | int arg4 = (int) -1 ; | |
2998 | wxIcon *result; | |
2999 | bool temp1 = false ; | |
3000 | PyObject * obj0 = 0 ; | |
3001 | char *kwnames[] = { | |
3002 | (char *) "name",(char *) "flags",(char *) "desiredWidth",(char *) "desiredHeight", NULL | |
3003 | }; | |
3004 | ||
3005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|ii:new_Icon",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
3006 | { | |
3007 | arg1 = wxString_in_helper(obj0); | |
3008 | if (arg1 == NULL) SWIG_fail; | |
3009 | temp1 = true; | |
3010 | } | |
3011 | { | |
3012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3013 | result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4); | |
3014 | ||
3015 | wxPyEndAllowThreads(__tstate); | |
3016 | if (PyErr_Occurred()) SWIG_fail; | |
3017 | } | |
3018 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
3019 | { | |
3020 | if (temp1) | |
3021 | delete arg1; | |
3022 | } | |
3023 | return resultobj; | |
3024 | fail: | |
3025 | { | |
3026 | if (temp1) | |
3027 | delete arg1; | |
3028 | } | |
3029 | return NULL; | |
3030 | } | |
3031 | ||
3032 | ||
3033 | static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3034 | PyObject *resultobj; | |
3035 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3036 | PyObject * obj0 = 0 ; | |
3037 | char *kwnames[] = { | |
3038 | (char *) "self", NULL | |
3039 | }; | |
3040 | ||
3041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail; | |
3042 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3043 | { | |
3044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3045 | delete arg1; | |
3046 | ||
3047 | wxPyEndAllowThreads(__tstate); | |
3048 | if (PyErr_Occurred()) SWIG_fail; | |
3049 | } | |
3050 | Py_INCREF(Py_None); resultobj = Py_None; | |
3051 | return resultobj; | |
3052 | fail: | |
3053 | return NULL; | |
3054 | } | |
3055 | ||
3056 | ||
3057 | static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3058 | PyObject *resultobj; | |
3059 | wxIcon *result; | |
3060 | char *kwnames[] = { | |
3061 | NULL | |
3062 | }; | |
3063 | ||
3064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail; | |
3065 | { | |
3066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3067 | result = (wxIcon *)new wxIcon(); | |
3068 | ||
3069 | wxPyEndAllowThreads(__tstate); | |
3070 | if (PyErr_Occurred()) SWIG_fail; | |
3071 | } | |
3072 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
3073 | return resultobj; | |
3074 | fail: | |
3075 | return NULL; | |
3076 | } | |
3077 | ||
3078 | ||
3079 | static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3080 | PyObject *resultobj; | |
3081 | wxIconLocation *arg1 = 0 ; | |
3082 | wxIcon *result; | |
3083 | PyObject * obj0 = 0 ; | |
3084 | char *kwnames[] = { | |
3085 | (char *) "loc", NULL | |
3086 | }; | |
3087 | ||
3088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail; | |
3089 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3090 | if (arg1 == NULL) { | |
3091 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3092 | } | |
3093 | { | |
3094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3095 | result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1); | |
3096 | ||
3097 | wxPyEndAllowThreads(__tstate); | |
3098 | if (PyErr_Occurred()) SWIG_fail; | |
3099 | } | |
3100 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
3101 | return resultobj; | |
3102 | fail: | |
3103 | return NULL; | |
3104 | } | |
3105 | ||
3106 | ||
3107 | static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3108 | PyObject *resultobj; | |
3109 | wxBitmap *arg1 = 0 ; | |
3110 | wxIcon *result; | |
3111 | PyObject * obj0 = 0 ; | |
3112 | char *kwnames[] = { | |
3113 | (char *) "bmp", NULL | |
3114 | }; | |
3115 | ||
3116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail; | |
3117 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3118 | if (arg1 == NULL) { | |
3119 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3120 | } | |
3121 | { | |
3122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3123 | result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1); | |
3124 | ||
3125 | wxPyEndAllowThreads(__tstate); | |
3126 | if (PyErr_Occurred()) SWIG_fail; | |
3127 | } | |
3128 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
3129 | return resultobj; | |
3130 | fail: | |
3131 | return NULL; | |
3132 | } | |
3133 | ||
3134 | ||
3135 | static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3136 | PyObject *resultobj; | |
3137 | PyObject *arg1 = (PyObject *) 0 ; | |
3138 | wxIcon *result; | |
3139 | PyObject * obj0 = 0 ; | |
3140 | char *kwnames[] = { | |
3141 | (char *) "listOfStrings", NULL | |
3142 | }; | |
3143 | ||
3144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail; | |
3145 | arg1 = obj0; | |
3146 | { | |
3147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3148 | result = (wxIcon *)new_wxIcon(arg1); | |
3149 | ||
3150 | wxPyEndAllowThreads(__tstate); | |
3151 | if (PyErr_Occurred()) SWIG_fail; | |
3152 | } | |
3153 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
3154 | return resultobj; | |
3155 | fail: | |
3156 | return NULL; | |
3157 | } | |
3158 | ||
3159 | ||
3160 | static PyObject *_wrap_Icon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3161 | PyObject *resultobj; | |
3162 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3163 | wxString *arg2 = 0 ; | |
3164 | long arg3 ; | |
3165 | bool result; | |
3166 | bool temp2 = false ; | |
3167 | PyObject * obj0 = 0 ; | |
3168 | PyObject * obj1 = 0 ; | |
3169 | char *kwnames[] = { | |
3170 | (char *) "self",(char *) "name",(char *) "flags", NULL | |
3171 | }; | |
3172 | ||
3173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOl:Icon_LoadFile",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
3174 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3175 | { | |
3176 | arg2 = wxString_in_helper(obj1); | |
3177 | if (arg2 == NULL) SWIG_fail; | |
3178 | temp2 = true; | |
3179 | } | |
3180 | { | |
3181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3182 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3); | |
3183 | ||
3184 | wxPyEndAllowThreads(__tstate); | |
3185 | if (PyErr_Occurred()) SWIG_fail; | |
3186 | } | |
3187 | resultobj = PyInt_FromLong((long)result); | |
3188 | { | |
3189 | if (temp2) | |
3190 | delete arg2; | |
3191 | } | |
3192 | return resultobj; | |
3193 | fail: | |
3194 | { | |
3195 | if (temp2) | |
3196 | delete arg2; | |
3197 | } | |
3198 | return NULL; | |
3199 | } | |
3200 | ||
3201 | ||
3202 | static PyObject *_wrap_Icon_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3203 | PyObject *resultobj; | |
3204 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3205 | long result; | |
3206 | PyObject * obj0 = 0 ; | |
3207 | char *kwnames[] = { | |
3208 | (char *) "self", NULL | |
3209 | }; | |
3210 | ||
3211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHandle",kwnames,&obj0)) goto fail; | |
3212 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3213 | { | |
3214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3215 | result = (long)(arg1)->GetHandle(); | |
3216 | ||
3217 | wxPyEndAllowThreads(__tstate); | |
3218 | if (PyErr_Occurred()) SWIG_fail; | |
3219 | } | |
3220 | resultobj = PyInt_FromLong((long)result); | |
3221 | return resultobj; | |
3222 | fail: | |
3223 | return NULL; | |
3224 | } | |
3225 | ||
3226 | ||
3227 | static PyObject *_wrap_Icon_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3228 | PyObject *resultobj; | |
3229 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3230 | long arg2 ; | |
3231 | PyObject * obj0 = 0 ; | |
3232 | char *kwnames[] = { | |
3233 | (char *) "self",(char *) "handle", NULL | |
3234 | }; | |
3235 | ||
3236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:Icon_SetHandle",kwnames,&obj0,&arg2)) goto fail; | |
3237 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3238 | { | |
3239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3240 | (arg1)->SetHandle(arg2); | |
3241 | ||
3242 | wxPyEndAllowThreads(__tstate); | |
3243 | if (PyErr_Occurred()) SWIG_fail; | |
3244 | } | |
3245 | Py_INCREF(Py_None); resultobj = Py_None; | |
3246 | return resultobj; | |
3247 | fail: | |
3248 | return NULL; | |
3249 | } | |
3250 | ||
3251 | ||
3252 | static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3253 | PyObject *resultobj; | |
3254 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3255 | bool result; | |
3256 | PyObject * obj0 = 0 ; | |
3257 | char *kwnames[] = { | |
3258 | (char *) "self", NULL | |
3259 | }; | |
3260 | ||
3261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail; | |
3262 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3263 | { | |
3264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3265 | result = (bool)(arg1)->Ok(); | |
3266 | ||
3267 | wxPyEndAllowThreads(__tstate); | |
3268 | if (PyErr_Occurred()) SWIG_fail; | |
3269 | } | |
3270 | resultobj = PyInt_FromLong((long)result); | |
3271 | return resultobj; | |
3272 | fail: | |
3273 | return NULL; | |
3274 | } | |
3275 | ||
3276 | ||
3277 | static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3278 | PyObject *resultobj; | |
3279 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3280 | int result; | |
3281 | PyObject * obj0 = 0 ; | |
3282 | char *kwnames[] = { | |
3283 | (char *) "self", NULL | |
3284 | }; | |
3285 | ||
3286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail; | |
3287 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3288 | { | |
3289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3290 | result = (int)(arg1)->GetWidth(); | |
3291 | ||
3292 | wxPyEndAllowThreads(__tstate); | |
3293 | if (PyErr_Occurred()) SWIG_fail; | |
3294 | } | |
3295 | resultobj = PyInt_FromLong((long)result); | |
3296 | return resultobj; | |
3297 | fail: | |
3298 | return NULL; | |
3299 | } | |
3300 | ||
3301 | ||
3302 | static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3303 | PyObject *resultobj; | |
3304 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3305 | int result; | |
3306 | PyObject * obj0 = 0 ; | |
3307 | char *kwnames[] = { | |
3308 | (char *) "self", NULL | |
3309 | }; | |
3310 | ||
3311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail; | |
3312 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3313 | { | |
3314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3315 | result = (int)(arg1)->GetHeight(); | |
3316 | ||
3317 | wxPyEndAllowThreads(__tstate); | |
3318 | if (PyErr_Occurred()) SWIG_fail; | |
3319 | } | |
3320 | resultobj = PyInt_FromLong((long)result); | |
3321 | return resultobj; | |
3322 | fail: | |
3323 | return NULL; | |
3324 | } | |
3325 | ||
3326 | ||
3327 | static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3328 | PyObject *resultobj; | |
3329 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3330 | int result; | |
3331 | PyObject * obj0 = 0 ; | |
3332 | char *kwnames[] = { | |
3333 | (char *) "self", NULL | |
3334 | }; | |
3335 | ||
3336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail; | |
3337 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3338 | { | |
3339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3340 | result = (int)(arg1)->GetDepth(); | |
3341 | ||
3342 | wxPyEndAllowThreads(__tstate); | |
3343 | if (PyErr_Occurred()) SWIG_fail; | |
3344 | } | |
3345 | resultobj = PyInt_FromLong((long)result); | |
3346 | return resultobj; | |
3347 | fail: | |
3348 | return NULL; | |
3349 | } | |
3350 | ||
3351 | ||
3352 | static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3353 | PyObject *resultobj; | |
3354 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3355 | int arg2 ; | |
3356 | PyObject * obj0 = 0 ; | |
3357 | char *kwnames[] = { | |
3358 | (char *) "self",(char *) "w", NULL | |
3359 | }; | |
3360 | ||
3361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Icon_SetWidth",kwnames,&obj0,&arg2)) goto fail; | |
3362 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3363 | { | |
3364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3365 | (arg1)->SetWidth(arg2); | |
3366 | ||
3367 | wxPyEndAllowThreads(__tstate); | |
3368 | if (PyErr_Occurred()) SWIG_fail; | |
3369 | } | |
3370 | Py_INCREF(Py_None); resultobj = Py_None; | |
3371 | return resultobj; | |
3372 | fail: | |
3373 | return NULL; | |
3374 | } | |
3375 | ||
3376 | ||
3377 | static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3378 | PyObject *resultobj; | |
3379 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3380 | int arg2 ; | |
3381 | PyObject * obj0 = 0 ; | |
3382 | char *kwnames[] = { | |
3383 | (char *) "self",(char *) "h", NULL | |
3384 | }; | |
3385 | ||
3386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Icon_SetHeight",kwnames,&obj0,&arg2)) goto fail; | |
3387 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3388 | { | |
3389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3390 | (arg1)->SetHeight(arg2); | |
3391 | ||
3392 | wxPyEndAllowThreads(__tstate); | |
3393 | if (PyErr_Occurred()) SWIG_fail; | |
3394 | } | |
3395 | Py_INCREF(Py_None); resultobj = Py_None; | |
3396 | return resultobj; | |
3397 | fail: | |
3398 | return NULL; | |
3399 | } | |
3400 | ||
3401 | ||
3402 | static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3403 | PyObject *resultobj; | |
3404 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3405 | int arg2 ; | |
3406 | PyObject * obj0 = 0 ; | |
3407 | char *kwnames[] = { | |
3408 | (char *) "self",(char *) "d", NULL | |
3409 | }; | |
3410 | ||
3411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Icon_SetDepth",kwnames,&obj0,&arg2)) goto fail; | |
3412 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3413 | { | |
3414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3415 | (arg1)->SetDepth(arg2); | |
3416 | ||
3417 | wxPyEndAllowThreads(__tstate); | |
3418 | if (PyErr_Occurred()) SWIG_fail; | |
3419 | } | |
3420 | Py_INCREF(Py_None); resultobj = Py_None; | |
3421 | return resultobj; | |
3422 | fail: | |
3423 | return NULL; | |
3424 | } | |
3425 | ||
3426 | ||
3427 | static PyObject *_wrap_Icon_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3428 | PyObject *resultobj; | |
3429 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3430 | wxSize *arg2 = 0 ; | |
3431 | wxSize temp2 ; | |
3432 | PyObject * obj0 = 0 ; | |
3433 | PyObject * obj1 = 0 ; | |
3434 | char *kwnames[] = { | |
3435 | (char *) "self",(char *) "size", NULL | |
3436 | }; | |
3437 | ||
3438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
3439 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3440 | { | |
3441 | arg2 = &temp2; | |
3442 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3443 | } | |
3444 | { | |
3445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3446 | (arg1)->SetSize((wxSize const &)*arg2); | |
3447 | ||
3448 | wxPyEndAllowThreads(__tstate); | |
3449 | if (PyErr_Occurred()) SWIG_fail; | |
3450 | } | |
3451 | Py_INCREF(Py_None); resultobj = Py_None; | |
3452 | return resultobj; | |
3453 | fail: | |
3454 | return NULL; | |
3455 | } | |
3456 | ||
3457 | ||
3458 | static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3459 | PyObject *resultobj; | |
3460 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3461 | wxBitmap *arg2 = 0 ; | |
3462 | PyObject * obj0 = 0 ; | |
3463 | PyObject * obj1 = 0 ; | |
3464 | char *kwnames[] = { | |
3465 | (char *) "self",(char *) "bmp", NULL | |
3466 | }; | |
3467 | ||
3468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail; | |
3469 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3470 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3471 | if (arg2 == NULL) { | |
3472 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3473 | } | |
3474 | { | |
3475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3476 | (arg1)->CopyFromBitmap((wxBitmap const &)*arg2); | |
3477 | ||
3478 | wxPyEndAllowThreads(__tstate); | |
3479 | if (PyErr_Occurred()) SWIG_fail; | |
3480 | } | |
3481 | Py_INCREF(Py_None); resultobj = Py_None; | |
3482 | return resultobj; | |
3483 | fail: | |
3484 | return NULL; | |
3485 | } | |
3486 | ||
3487 | ||
3488 | static PyObject * Icon_swigregister(PyObject *self, PyObject *args) { | |
3489 | PyObject *obj; | |
3490 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3491 | SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj); | |
3492 | Py_INCREF(obj); | |
3493 | return Py_BuildValue((char *)""); | |
3494 | } | |
3495 | static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3496 | PyObject *resultobj; | |
3497 | wxString *arg1 = (wxString *) &wxPyEmptyString ; | |
3498 | int arg2 = (int) 0 ; | |
3499 | wxIconLocation *result; | |
3500 | PyObject * obj0 = 0 ; | |
3501 | char *kwnames[] = { | |
3502 | (char *) "filename",(char *) "num", NULL | |
3503 | }; | |
3504 | ||
3505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|Oi:new_IconLocation",kwnames,&obj0,&arg2)) goto fail; | |
3506 | if (obj0) { | |
3507 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3508 | } | |
3509 | { | |
3510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3511 | result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2); | |
3512 | ||
3513 | wxPyEndAllowThreads(__tstate); | |
3514 | if (PyErr_Occurred()) SWIG_fail; | |
3515 | } | |
3516 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconLocation, 1); | |
3517 | return resultobj; | |
3518 | fail: | |
3519 | return NULL; | |
3520 | } | |
3521 | ||
3522 | ||
3523 | static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3524 | PyObject *resultobj; | |
3525 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3526 | PyObject * obj0 = 0 ; | |
3527 | char *kwnames[] = { | |
3528 | (char *) "self", NULL | |
3529 | }; | |
3530 | ||
3531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail; | |
3532 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3533 | { | |
3534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3535 | delete arg1; | |
3536 | ||
3537 | wxPyEndAllowThreads(__tstate); | |
3538 | if (PyErr_Occurred()) SWIG_fail; | |
3539 | } | |
3540 | Py_INCREF(Py_None); resultobj = Py_None; | |
3541 | return resultobj; | |
3542 | fail: | |
3543 | return NULL; | |
3544 | } | |
3545 | ||
3546 | ||
3547 | static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3548 | PyObject *resultobj; | |
3549 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3550 | bool result; | |
3551 | PyObject * obj0 = 0 ; | |
3552 | char *kwnames[] = { | |
3553 | (char *) "self", NULL | |
3554 | }; | |
3555 | ||
3556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail; | |
3557 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3558 | { | |
3559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3560 | result = (bool)((wxIconLocation const *)arg1)->IsOk(); | |
3561 | ||
3562 | wxPyEndAllowThreads(__tstate); | |
3563 | if (PyErr_Occurred()) SWIG_fail; | |
3564 | } | |
3565 | resultobj = PyInt_FromLong((long)result); | |
3566 | return resultobj; | |
3567 | fail: | |
3568 | return NULL; | |
3569 | } | |
3570 | ||
3571 | ||
3572 | static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3573 | PyObject *resultobj; | |
3574 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3575 | wxString *arg2 = 0 ; | |
3576 | bool temp2 = false ; | |
3577 | PyObject * obj0 = 0 ; | |
3578 | PyObject * obj1 = 0 ; | |
3579 | char *kwnames[] = { | |
3580 | (char *) "self",(char *) "filename", NULL | |
3581 | }; | |
3582 | ||
3583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail; | |
3584 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3585 | { | |
3586 | arg2 = wxString_in_helper(obj1); | |
3587 | if (arg2 == NULL) SWIG_fail; | |
3588 | temp2 = true; | |
3589 | } | |
3590 | { | |
3591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3592 | (arg1)->SetFileName((wxString const &)*arg2); | |
3593 | ||
3594 | wxPyEndAllowThreads(__tstate); | |
3595 | if (PyErr_Occurred()) SWIG_fail; | |
3596 | } | |
3597 | Py_INCREF(Py_None); resultobj = Py_None; | |
3598 | { | |
3599 | if (temp2) | |
3600 | delete arg2; | |
3601 | } | |
3602 | return resultobj; | |
3603 | fail: | |
3604 | { | |
3605 | if (temp2) | |
3606 | delete arg2; | |
3607 | } | |
3608 | return NULL; | |
3609 | } | |
3610 | ||
3611 | ||
3612 | static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3613 | PyObject *resultobj; | |
3614 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3615 | wxString *result; | |
3616 | PyObject * obj0 = 0 ; | |
3617 | char *kwnames[] = { | |
3618 | (char *) "self", NULL | |
3619 | }; | |
3620 | ||
3621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail; | |
3622 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3623 | { | |
3624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3625 | { | |
3626 | wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName(); | |
3627 | result = (wxString *) &_result_ref; | |
3628 | } | |
3629 | ||
3630 | wxPyEndAllowThreads(__tstate); | |
3631 | if (PyErr_Occurred()) SWIG_fail; | |
3632 | } | |
3633 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxString, 0); | |
3634 | return resultobj; | |
3635 | fail: | |
3636 | return NULL; | |
3637 | } | |
3638 | ||
3639 | ||
3640 | static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3641 | PyObject *resultobj; | |
3642 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3643 | int arg2 ; | |
3644 | PyObject * obj0 = 0 ; | |
3645 | char *kwnames[] = { | |
3646 | (char *) "self",(char *) "num", NULL | |
3647 | }; | |
3648 | ||
3649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:IconLocation_SetIndex",kwnames,&obj0,&arg2)) goto fail; | |
3650 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3651 | { | |
3652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3653 | wxIconLocation_SetIndex(arg1,arg2); | |
3654 | ||
3655 | wxPyEndAllowThreads(__tstate); | |
3656 | if (PyErr_Occurred()) SWIG_fail; | |
3657 | } | |
3658 | Py_INCREF(Py_None); resultobj = Py_None; | |
3659 | return resultobj; | |
3660 | fail: | |
3661 | return NULL; | |
3662 | } | |
3663 | ||
3664 | ||
3665 | static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3666 | PyObject *resultobj; | |
3667 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3668 | int result; | |
3669 | PyObject * obj0 = 0 ; | |
3670 | char *kwnames[] = { | |
3671 | (char *) "self", NULL | |
3672 | }; | |
3673 | ||
3674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail; | |
3675 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3676 | { | |
3677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3678 | result = (int)wxIconLocation_GetIndex(arg1); | |
3679 | ||
3680 | wxPyEndAllowThreads(__tstate); | |
3681 | if (PyErr_Occurred()) SWIG_fail; | |
3682 | } | |
3683 | resultobj = PyInt_FromLong((long)result); | |
3684 | return resultobj; | |
3685 | fail: | |
3686 | return NULL; | |
3687 | } | |
3688 | ||
3689 | ||
3690 | static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) { | |
3691 | PyObject *obj; | |
3692 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3693 | SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj); | |
3694 | Py_INCREF(obj); | |
3695 | return Py_BuildValue((char *)""); | |
3696 | } | |
3697 | static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3698 | PyObject *resultobj; | |
3699 | wxIconBundle *result; | |
3700 | char *kwnames[] = { | |
3701 | NULL | |
3702 | }; | |
3703 | ||
3704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail; | |
3705 | { | |
3706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3707 | result = (wxIconBundle *)new wxIconBundle(); | |
3708 | ||
3709 | wxPyEndAllowThreads(__tstate); | |
3710 | if (PyErr_Occurred()) SWIG_fail; | |
3711 | } | |
3712 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1); | |
3713 | return resultobj; | |
3714 | fail: | |
3715 | return NULL; | |
3716 | } | |
3717 | ||
3718 | ||
3719 | static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3720 | PyObject *resultobj; | |
3721 | wxString *arg1 = 0 ; | |
3722 | long arg2 ; | |
3723 | wxIconBundle *result; | |
3724 | bool temp1 = false ; | |
3725 | PyObject * obj0 = 0 ; | |
3726 | char *kwnames[] = { | |
3727 | (char *) "file",(char *) "type", NULL | |
3728 | }; | |
3729 | ||
3730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:new_IconBundleFromFile",kwnames,&obj0,&arg2)) goto fail; | |
3731 | { | |
3732 | arg1 = wxString_in_helper(obj0); | |
3733 | if (arg1 == NULL) SWIG_fail; | |
3734 | temp1 = true; | |
3735 | } | |
3736 | { | |
3737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3738 | result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2); | |
3739 | ||
3740 | wxPyEndAllowThreads(__tstate); | |
3741 | if (PyErr_Occurred()) SWIG_fail; | |
3742 | } | |
3743 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1); | |
3744 | { | |
3745 | if (temp1) | |
3746 | delete arg1; | |
3747 | } | |
3748 | return resultobj; | |
3749 | fail: | |
3750 | { | |
3751 | if (temp1) | |
3752 | delete arg1; | |
3753 | } | |
3754 | return NULL; | |
3755 | } | |
3756 | ||
3757 | ||
3758 | static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3759 | PyObject *resultobj; | |
3760 | wxIcon *arg1 = 0 ; | |
3761 | wxIconBundle *result; | |
3762 | PyObject * obj0 = 0 ; | |
3763 | char *kwnames[] = { | |
3764 | (char *) "icon", NULL | |
3765 | }; | |
3766 | ||
3767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail; | |
3768 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3769 | if (arg1 == NULL) { | |
3770 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3771 | } | |
3772 | { | |
3773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3774 | result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1); | |
3775 | ||
3776 | wxPyEndAllowThreads(__tstate); | |
3777 | if (PyErr_Occurred()) SWIG_fail; | |
3778 | } | |
3779 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1); | |
3780 | return resultobj; | |
3781 | fail: | |
3782 | return NULL; | |
3783 | } | |
3784 | ||
3785 | ||
3786 | static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3787 | PyObject *resultobj; | |
3788 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
3789 | PyObject * obj0 = 0 ; | |
3790 | char *kwnames[] = { | |
3791 | (char *) "self", NULL | |
3792 | }; | |
3793 | ||
3794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail; | |
3795 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3796 | { | |
3797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3798 | delete arg1; | |
3799 | ||
3800 | wxPyEndAllowThreads(__tstate); | |
3801 | if (PyErr_Occurred()) SWIG_fail; | |
3802 | } | |
3803 | Py_INCREF(Py_None); resultobj = Py_None; | |
3804 | return resultobj; | |
3805 | fail: | |
3806 | return NULL; | |
3807 | } | |
3808 | ||
3809 | ||
3810 | static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3811 | PyObject *resultobj; | |
3812 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
3813 | wxIcon *arg2 = 0 ; | |
3814 | PyObject * obj0 = 0 ; | |
3815 | PyObject * obj1 = 0 ; | |
3816 | char *kwnames[] = { | |
3817 | (char *) "self",(char *) "icon", NULL | |
3818 | }; | |
3819 | ||
3820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail; | |
3821 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3822 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3823 | if (arg2 == NULL) { | |
3824 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3825 | } | |
3826 | { | |
3827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3828 | (arg1)->AddIcon((wxIcon const &)*arg2); | |
3829 | ||
3830 | wxPyEndAllowThreads(__tstate); | |
3831 | if (PyErr_Occurred()) SWIG_fail; | |
3832 | } | |
3833 | Py_INCREF(Py_None); resultobj = Py_None; | |
3834 | return resultobj; | |
3835 | fail: | |
3836 | return NULL; | |
3837 | } | |
3838 | ||
3839 | ||
3840 | static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3841 | PyObject *resultobj; | |
3842 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
3843 | wxString *arg2 = 0 ; | |
3844 | long arg3 ; | |
3845 | bool temp2 = false ; | |
3846 | PyObject * obj0 = 0 ; | |
3847 | PyObject * obj1 = 0 ; | |
3848 | char *kwnames[] = { | |
3849 | (char *) "self",(char *) "file",(char *) "type", NULL | |
3850 | }; | |
3851 | ||
3852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOl:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
3853 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3854 | { | |
3855 | arg2 = wxString_in_helper(obj1); | |
3856 | if (arg2 == NULL) SWIG_fail; | |
3857 | temp2 = true; | |
3858 | } | |
3859 | { | |
3860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3861 | (arg1)->AddIcon((wxString const &)*arg2,arg3); | |
3862 | ||
3863 | wxPyEndAllowThreads(__tstate); | |
3864 | if (PyErr_Occurred()) SWIG_fail; | |
3865 | } | |
3866 | Py_INCREF(Py_None); resultobj = Py_None; | |
3867 | { | |
3868 | if (temp2) | |
3869 | delete arg2; | |
3870 | } | |
3871 | return resultobj; | |
3872 | fail: | |
3873 | { | |
3874 | if (temp2) | |
3875 | delete arg2; | |
3876 | } | |
3877 | return NULL; | |
3878 | } | |
3879 | ||
3880 | ||
3881 | static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3882 | PyObject *resultobj; | |
3883 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
3884 | wxSize *arg2 = 0 ; | |
3885 | wxIcon *result; | |
3886 | wxSize temp2 ; | |
3887 | PyObject * obj0 = 0 ; | |
3888 | PyObject * obj1 = 0 ; | |
3889 | char *kwnames[] = { | |
3890 | (char *) "self",(char *) "size", NULL | |
3891 | }; | |
3892 | ||
3893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail; | |
3894 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3895 | { | |
3896 | arg2 = &temp2; | |
3897 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3898 | } | |
3899 | { | |
3900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3901 | { | |
3902 | wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2); | |
3903 | result = (wxIcon *) &_result_ref; | |
3904 | } | |
3905 | ||
3906 | wxPyEndAllowThreads(__tstate); | |
3907 | if (PyErr_Occurred()) SWIG_fail; | |
3908 | } | |
3909 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 0); | |
3910 | return resultobj; | |
3911 | fail: | |
3912 | return NULL; | |
3913 | } | |
3914 | ||
3915 | ||
3916 | static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) { | |
3917 | PyObject *obj; | |
3918 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3919 | SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj); | |
3920 | Py_INCREF(obj); | |
3921 | return Py_BuildValue((char *)""); | |
3922 | } | |
3923 | static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3924 | PyObject *resultobj; | |
3925 | wxString *arg1 = (wxString *) 0 ; | |
3926 | long arg2 ; | |
3927 | int arg3 = (int) 0 ; | |
3928 | int arg4 = (int) 0 ; | |
3929 | wxCursor *result; | |
3930 | PyObject * obj0 = 0 ; | |
3931 | char *kwnames[] = { | |
3932 | (char *) "cursorName",(char *) "flags",(char *) "hotSpotX",(char *) "hotSpotY", NULL | |
3933 | }; | |
3934 | ||
3935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|ii:new_Cursor",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
3936 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3937 | { | |
3938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3939 | result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4); | |
3940 | ||
3941 | wxPyEndAllowThreads(__tstate); | |
3942 | if (PyErr_Occurred()) SWIG_fail; | |
3943 | } | |
3944 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1); | |
3945 | return resultobj; | |
3946 | fail: | |
3947 | return NULL; | |
3948 | } | |
3949 | ||
3950 | ||
3951 | static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3952 | PyObject *resultobj; | |
3953 | wxCursor *arg1 = (wxCursor *) 0 ; | |
3954 | PyObject * obj0 = 0 ; | |
3955 | char *kwnames[] = { | |
3956 | (char *) "self", NULL | |
3957 | }; | |
3958 | ||
3959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail; | |
3960 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3961 | { | |
3962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3963 | delete arg1; | |
3964 | ||
3965 | wxPyEndAllowThreads(__tstate); | |
3966 | if (PyErr_Occurred()) SWIG_fail; | |
3967 | } | |
3968 | Py_INCREF(Py_None); resultobj = Py_None; | |
3969 | return resultobj; | |
3970 | fail: | |
3971 | return NULL; | |
3972 | } | |
3973 | ||
3974 | ||
3975 | static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3976 | PyObject *resultobj; | |
3977 | int arg1 ; | |
3978 | wxCursor *result; | |
3979 | char *kwnames[] = { | |
3980 | (char *) "id", NULL | |
3981 | }; | |
3982 | ||
3983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:new_StockCursor",kwnames,&arg1)) goto fail; | |
3984 | { | |
3985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3986 | result = (wxCursor *)new wxCursor(arg1); | |
3987 | ||
3988 | wxPyEndAllowThreads(__tstate); | |
3989 | if (PyErr_Occurred()) SWIG_fail; | |
3990 | } | |
3991 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1); | |
3992 | return resultobj; | |
3993 | fail: | |
3994 | return NULL; | |
3995 | } | |
3996 | ||
3997 | ||
3998 | static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3999 | PyObject *resultobj; | |
4000 | wxImage *arg1 = 0 ; | |
4001 | wxCursor *result; | |
4002 | PyObject * obj0 = 0 ; | |
4003 | char *kwnames[] = { | |
4004 | (char *) "image", NULL | |
4005 | }; | |
4006 | ||
4007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail; | |
4008 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4009 | if (arg1 == NULL) { | |
4010 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4011 | } | |
4012 | { | |
4013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4014 | result = (wxCursor *)new wxCursor((wxImage const &)*arg1); | |
4015 | ||
4016 | wxPyEndAllowThreads(__tstate); | |
4017 | if (PyErr_Occurred()) SWIG_fail; | |
4018 | } | |
4019 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1); | |
4020 | return resultobj; | |
4021 | fail: | |
4022 | return NULL; | |
4023 | } | |
4024 | ||
4025 | ||
4026 | static PyObject *_wrap_new_CursorFromBits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4027 | PyObject *resultobj; | |
4028 | PyObject *arg1 = (PyObject *) 0 ; | |
4029 | int arg2 ; | |
4030 | int arg3 ; | |
4031 | int arg4 = (int) -1 ; | |
4032 | int arg5 = (int) -1 ; | |
4033 | PyObject *arg6 = (PyObject *) 0 ; | |
4034 | wxCursor *result; | |
4035 | PyObject * obj0 = 0 ; | |
4036 | PyObject * obj5 = 0 ; | |
4037 | char *kwnames[] = { | |
4038 | (char *) "bits",(char *) "width",(char *) "height",(char *) "hotSpotX",(char *) "hotSpotY",(char *) "maskBits", NULL | |
4039 | }; | |
4040 | ||
4041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|iiO:new_CursorFromBits",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5)) goto fail; | |
4042 | arg1 = obj0; | |
4043 | if (obj5) { | |
4044 | arg6 = obj5; | |
4045 | } | |
4046 | { | |
4047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4048 | result = (wxCursor *)new_wxCursor(arg1,arg2,arg3,arg4,arg5,arg6); | |
4049 | ||
4050 | wxPyEndAllowThreads(__tstate); | |
4051 | if (PyErr_Occurred()) SWIG_fail; | |
4052 | } | |
4053 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1); | |
4054 | return resultobj; | |
4055 | fail: | |
4056 | return NULL; | |
4057 | } | |
4058 | ||
4059 | ||
4060 | static PyObject *_wrap_Cursor_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4061 | PyObject *resultobj; | |
4062 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4063 | long result; | |
4064 | PyObject * obj0 = 0 ; | |
4065 | char *kwnames[] = { | |
4066 | (char *) "self", NULL | |
4067 | }; | |
4068 | ||
4069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHandle",kwnames,&obj0)) goto fail; | |
4070 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4071 | { | |
4072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4073 | result = (long)(arg1)->GetHandle(); | |
4074 | ||
4075 | wxPyEndAllowThreads(__tstate); | |
4076 | if (PyErr_Occurred()) SWIG_fail; | |
4077 | } | |
4078 | resultobj = PyInt_FromLong((long)result); | |
4079 | return resultobj; | |
4080 | fail: | |
4081 | return NULL; | |
4082 | } | |
4083 | ||
4084 | ||
4085 | static PyObject *_wrap_Cursor_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4086 | PyObject *resultobj; | |
4087 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4088 | long arg2 ; | |
4089 | PyObject * obj0 = 0 ; | |
4090 | char *kwnames[] = { | |
4091 | (char *) "self",(char *) "handle", NULL | |
4092 | }; | |
4093 | ||
4094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:Cursor_SetHandle",kwnames,&obj0,&arg2)) goto fail; | |
4095 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4096 | { | |
4097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4098 | (arg1)->SetHandle(arg2); | |
4099 | ||
4100 | wxPyEndAllowThreads(__tstate); | |
4101 | if (PyErr_Occurred()) SWIG_fail; | |
4102 | } | |
4103 | Py_INCREF(Py_None); resultobj = Py_None; | |
4104 | return resultobj; | |
4105 | fail: | |
4106 | return NULL; | |
4107 | } | |
4108 | ||
4109 | ||
4110 | static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4111 | PyObject *resultobj; | |
4112 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4113 | bool result; | |
4114 | PyObject * obj0 = 0 ; | |
4115 | char *kwnames[] = { | |
4116 | (char *) "self", NULL | |
4117 | }; | |
4118 | ||
4119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail; | |
4120 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4121 | { | |
4122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4123 | result = (bool)(arg1)->Ok(); | |
4124 | ||
4125 | wxPyEndAllowThreads(__tstate); | |
4126 | if (PyErr_Occurred()) SWIG_fail; | |
4127 | } | |
4128 | resultobj = PyInt_FromLong((long)result); | |
4129 | return resultobj; | |
4130 | fail: | |
4131 | return NULL; | |
4132 | } | |
4133 | ||
4134 | ||
4135 | static PyObject *_wrap_Cursor_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4136 | PyObject *resultobj; | |
4137 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4138 | int result; | |
4139 | PyObject * obj0 = 0 ; | |
4140 | char *kwnames[] = { | |
4141 | (char *) "self", NULL | |
4142 | }; | |
4143 | ||
4144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetWidth",kwnames,&obj0)) goto fail; | |
4145 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4146 | { | |
4147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4148 | result = (int)(arg1)->GetWidth(); | |
4149 | ||
4150 | wxPyEndAllowThreads(__tstate); | |
4151 | if (PyErr_Occurred()) SWIG_fail; | |
4152 | } | |
4153 | resultobj = PyInt_FromLong((long)result); | |
4154 | return resultobj; | |
4155 | fail: | |
4156 | return NULL; | |
4157 | } | |
4158 | ||
4159 | ||
4160 | static PyObject *_wrap_Cursor_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4161 | PyObject *resultobj; | |
4162 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4163 | int result; | |
4164 | PyObject * obj0 = 0 ; | |
4165 | char *kwnames[] = { | |
4166 | (char *) "self", NULL | |
4167 | }; | |
4168 | ||
4169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHeight",kwnames,&obj0)) goto fail; | |
4170 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4171 | { | |
4172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4173 | result = (int)(arg1)->GetHeight(); | |
4174 | ||
4175 | wxPyEndAllowThreads(__tstate); | |
4176 | if (PyErr_Occurred()) SWIG_fail; | |
4177 | } | |
4178 | resultobj = PyInt_FromLong((long)result); | |
4179 | return resultobj; | |
4180 | fail: | |
4181 | return NULL; | |
4182 | } | |
4183 | ||
4184 | ||
4185 | static PyObject *_wrap_Cursor_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4186 | PyObject *resultobj; | |
4187 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4188 | int result; | |
4189 | PyObject * obj0 = 0 ; | |
4190 | char *kwnames[] = { | |
4191 | (char *) "self", NULL | |
4192 | }; | |
4193 | ||
4194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetDepth",kwnames,&obj0)) goto fail; | |
4195 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4196 | { | |
4197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4198 | result = (int)(arg1)->GetDepth(); | |
4199 | ||
4200 | wxPyEndAllowThreads(__tstate); | |
4201 | if (PyErr_Occurred()) SWIG_fail; | |
4202 | } | |
4203 | resultobj = PyInt_FromLong((long)result); | |
4204 | return resultobj; | |
4205 | fail: | |
4206 | return NULL; | |
4207 | } | |
4208 | ||
4209 | ||
4210 | static PyObject *_wrap_Cursor_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4211 | PyObject *resultobj; | |
4212 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4213 | int arg2 ; | |
4214 | PyObject * obj0 = 0 ; | |
4215 | char *kwnames[] = { | |
4216 | (char *) "self",(char *) "w", NULL | |
4217 | }; | |
4218 | ||
4219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Cursor_SetWidth",kwnames,&obj0,&arg2)) goto fail; | |
4220 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4221 | { | |
4222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4223 | (arg1)->SetWidth(arg2); | |
4224 | ||
4225 | wxPyEndAllowThreads(__tstate); | |
4226 | if (PyErr_Occurred()) SWIG_fail; | |
4227 | } | |
4228 | Py_INCREF(Py_None); resultobj = Py_None; | |
4229 | return resultobj; | |
4230 | fail: | |
4231 | return NULL; | |
4232 | } | |
4233 | ||
4234 | ||
4235 | static PyObject *_wrap_Cursor_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4236 | PyObject *resultobj; | |
4237 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4238 | int arg2 ; | |
4239 | PyObject * obj0 = 0 ; | |
4240 | char *kwnames[] = { | |
4241 | (char *) "self",(char *) "h", NULL | |
4242 | }; | |
4243 | ||
4244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Cursor_SetHeight",kwnames,&obj0,&arg2)) goto fail; | |
4245 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4246 | { | |
4247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4248 | (arg1)->SetHeight(arg2); | |
4249 | ||
4250 | wxPyEndAllowThreads(__tstate); | |
4251 | if (PyErr_Occurred()) SWIG_fail; | |
4252 | } | |
4253 | Py_INCREF(Py_None); resultobj = Py_None; | |
4254 | return resultobj; | |
4255 | fail: | |
4256 | return NULL; | |
4257 | } | |
4258 | ||
4259 | ||
4260 | static PyObject *_wrap_Cursor_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4261 | PyObject *resultobj; | |
4262 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4263 | int arg2 ; | |
4264 | PyObject * obj0 = 0 ; | |
4265 | char *kwnames[] = { | |
4266 | (char *) "self",(char *) "d", NULL | |
4267 | }; | |
4268 | ||
4269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Cursor_SetDepth",kwnames,&obj0,&arg2)) goto fail; | |
4270 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4271 | { | |
4272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4273 | (arg1)->SetDepth(arg2); | |
4274 | ||
4275 | wxPyEndAllowThreads(__tstate); | |
4276 | if (PyErr_Occurred()) SWIG_fail; | |
4277 | } | |
4278 | Py_INCREF(Py_None); resultobj = Py_None; | |
4279 | return resultobj; | |
4280 | fail: | |
4281 | return NULL; | |
4282 | } | |
4283 | ||
4284 | ||
4285 | static PyObject *_wrap_Cursor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4286 | PyObject *resultobj; | |
4287 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4288 | wxSize *arg2 = 0 ; | |
4289 | wxSize temp2 ; | |
4290 | PyObject * obj0 = 0 ; | |
4291 | PyObject * obj1 = 0 ; | |
4292 | char *kwnames[] = { | |
4293 | (char *) "self",(char *) "size", NULL | |
4294 | }; | |
4295 | ||
4296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
4297 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4298 | { | |
4299 | arg2 = &temp2; | |
4300 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4301 | } | |
4302 | { | |
4303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4304 | (arg1)->SetSize((wxSize const &)*arg2); | |
4305 | ||
4306 | wxPyEndAllowThreads(__tstate); | |
4307 | if (PyErr_Occurred()) SWIG_fail; | |
4308 | } | |
4309 | Py_INCREF(Py_None); resultobj = Py_None; | |
4310 | return resultobj; | |
4311 | fail: | |
4312 | return NULL; | |
4313 | } | |
4314 | ||
4315 | ||
4316 | static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) { | |
4317 | PyObject *obj; | |
4318 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4319 | SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj); | |
4320 | Py_INCREF(obj); | |
4321 | return Py_BuildValue((char *)""); | |
4322 | } | |
4323 | static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4324 | PyObject *resultobj; | |
4325 | wxCoord arg1 = (wxCoord) 0 ; | |
4326 | wxCoord arg2 = (wxCoord) 0 ; | |
4327 | wxCoord arg3 = (wxCoord) 0 ; | |
4328 | wxCoord arg4 = (wxCoord) 0 ; | |
4329 | wxRegion *result; | |
4330 | char *kwnames[] = { | |
4331 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4332 | }; | |
4333 | ||
4334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_Region",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
4335 | { | |
4336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4337 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4); | |
4338 | ||
4339 | wxPyEndAllowThreads(__tstate); | |
4340 | if (PyErr_Occurred()) SWIG_fail; | |
4341 | } | |
4342 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1); | |
4343 | return resultobj; | |
4344 | fail: | |
4345 | return NULL; | |
4346 | } | |
4347 | ||
4348 | ||
4349 | static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4350 | PyObject *resultobj; | |
4351 | wxBitmap *arg1 = 0 ; | |
4352 | wxColour const &arg2_defvalue = wxNullColour ; | |
4353 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
4354 | int arg3 = (int) 0 ; | |
4355 | wxRegion *result; | |
4356 | wxColour temp2 ; | |
4357 | PyObject * obj0 = 0 ; | |
4358 | PyObject * obj1 = 0 ; | |
4359 | char *kwnames[] = { | |
4360 | (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
4361 | }; | |
4362 | ||
4363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|Oi:new_RegionFromBitmap",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
4364 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4365 | if (arg1 == NULL) { | |
4366 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4367 | } | |
4368 | if (obj1) { | |
4369 | { | |
4370 | arg2 = &temp2; | |
4371 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
4372 | } | |
4373 | } | |
4374 | { | |
4375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4376 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3); | |
4377 | ||
4378 | wxPyEndAllowThreads(__tstate); | |
4379 | if (PyErr_Occurred()) SWIG_fail; | |
4380 | } | |
4381 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1); | |
4382 | return resultobj; | |
4383 | fail: | |
4384 | return NULL; | |
4385 | } | |
4386 | ||
4387 | ||
4388 | static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4389 | PyObject *resultobj; | |
4390 | int arg1 ; | |
4391 | wxPoint *arg2 = (wxPoint *) 0 ; | |
4392 | int arg3 = (int) wxWINDING_RULE ; | |
4393 | wxRegion *result; | |
4394 | PyObject * obj0 = 0 ; | |
4395 | char *kwnames[] = { | |
4396 | (char *) "points",(char *) "fillStyle", NULL | |
4397 | }; | |
4398 | ||
4399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_RegionFromPoints",kwnames,&obj0,&arg3)) goto fail; | |
4400 | { | |
4401 | arg2 = wxPoint_LIST_helper(obj0, &arg1); | |
4402 | if (arg2 == NULL) SWIG_fail; | |
4403 | } | |
4404 | { | |
4405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4406 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3); | |
4407 | ||
4408 | wxPyEndAllowThreads(__tstate); | |
4409 | if (PyErr_Occurred()) SWIG_fail; | |
4410 | } | |
4411 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1); | |
4412 | { | |
4413 | if (arg2) delete [] arg2; | |
4414 | } | |
4415 | return resultobj; | |
4416 | fail: | |
4417 | { | |
4418 | if (arg2) delete [] arg2; | |
4419 | } | |
4420 | return NULL; | |
4421 | } | |
4422 | ||
4423 | ||
4424 | static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4425 | PyObject *resultobj; | |
4426 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4427 | PyObject * obj0 = 0 ; | |
4428 | char *kwnames[] = { | |
4429 | (char *) "self", NULL | |
4430 | }; | |
4431 | ||
4432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail; | |
4433 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4434 | { | |
4435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4436 | delete arg1; | |
4437 | ||
4438 | wxPyEndAllowThreads(__tstate); | |
4439 | if (PyErr_Occurred()) SWIG_fail; | |
4440 | } | |
4441 | Py_INCREF(Py_None); resultobj = Py_None; | |
4442 | return resultobj; | |
4443 | fail: | |
4444 | return NULL; | |
4445 | } | |
4446 | ||
4447 | ||
4448 | static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4449 | PyObject *resultobj; | |
4450 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4451 | PyObject * obj0 = 0 ; | |
4452 | char *kwnames[] = { | |
4453 | (char *) "self", NULL | |
4454 | }; | |
4455 | ||
4456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail; | |
4457 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4458 | { | |
4459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4460 | (arg1)->Clear(); | |
4461 | ||
4462 | wxPyEndAllowThreads(__tstate); | |
4463 | if (PyErr_Occurred()) SWIG_fail; | |
4464 | } | |
4465 | Py_INCREF(Py_None); resultobj = Py_None; | |
4466 | return resultobj; | |
4467 | fail: | |
4468 | return NULL; | |
4469 | } | |
4470 | ||
4471 | ||
4472 | static PyObject *_wrap_Region_Offset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4473 | PyObject *resultobj; | |
4474 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4475 | wxCoord arg2 ; | |
4476 | wxCoord arg3 ; | |
4477 | bool result; | |
4478 | PyObject * obj0 = 0 ; | |
4479 | char *kwnames[] = { | |
4480 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4481 | }; | |
4482 | ||
4483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Region_Offset",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
4484 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4485 | { | |
4486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4487 | result = (bool)(arg1)->Offset(arg2,arg3); | |
4488 | ||
4489 | wxPyEndAllowThreads(__tstate); | |
4490 | if (PyErr_Occurred()) SWIG_fail; | |
4491 | } | |
4492 | resultobj = PyInt_FromLong((long)result); | |
4493 | return resultobj; | |
4494 | fail: | |
4495 | return NULL; | |
4496 | } | |
4497 | ||
4498 | ||
4499 | static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4500 | PyObject *resultobj; | |
4501 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4502 | wxCoord arg2 ; | |
4503 | wxCoord arg3 ; | |
4504 | int result; | |
4505 | PyObject * obj0 = 0 ; | |
4506 | char *kwnames[] = { | |
4507 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4508 | }; | |
4509 | ||
4510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Region_Contains",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
4511 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4512 | { | |
4513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4514 | result = (int)(arg1)->Contains(arg2,arg3); | |
4515 | ||
4516 | wxPyEndAllowThreads(__tstate); | |
4517 | if (PyErr_Occurred()) SWIG_fail; | |
4518 | } | |
4519 | resultobj = PyInt_FromLong((long)result); | |
4520 | return resultobj; | |
4521 | fail: | |
4522 | return NULL; | |
4523 | } | |
4524 | ||
4525 | ||
4526 | static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4527 | PyObject *resultobj; | |
4528 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4529 | wxPoint *arg2 = 0 ; | |
4530 | int result; | |
4531 | wxPoint temp2 ; | |
4532 | PyObject * obj0 = 0 ; | |
4533 | PyObject * obj1 = 0 ; | |
4534 | char *kwnames[] = { | |
4535 | (char *) "self",(char *) "pt", NULL | |
4536 | }; | |
4537 | ||
4538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail; | |
4539 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4540 | { | |
4541 | arg2 = &temp2; | |
4542 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4543 | } | |
4544 | { | |
4545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4546 | result = (int)(arg1)->Contains((wxPoint const &)*arg2); | |
4547 | ||
4548 | wxPyEndAllowThreads(__tstate); | |
4549 | if (PyErr_Occurred()) SWIG_fail; | |
4550 | } | |
4551 | resultobj = PyInt_FromLong((long)result); | |
4552 | return resultobj; | |
4553 | fail: | |
4554 | return NULL; | |
4555 | } | |
4556 | ||
4557 | ||
4558 | static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4559 | PyObject *resultobj; | |
4560 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4561 | wxRect *arg2 = 0 ; | |
4562 | int result; | |
4563 | wxRect temp2 ; | |
4564 | PyObject * obj0 = 0 ; | |
4565 | PyObject * obj1 = 0 ; | |
4566 | char *kwnames[] = { | |
4567 | (char *) "self",(char *) "rect", NULL | |
4568 | }; | |
4569 | ||
4570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail; | |
4571 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4572 | { | |
4573 | arg2 = &temp2; | |
4574 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4575 | } | |
4576 | { | |
4577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4578 | result = (int)(arg1)->Contains((wxRect const &)*arg2); | |
4579 | ||
4580 | wxPyEndAllowThreads(__tstate); | |
4581 | if (PyErr_Occurred()) SWIG_fail; | |
4582 | } | |
4583 | resultobj = PyInt_FromLong((long)result); | |
4584 | return resultobj; | |
4585 | fail: | |
4586 | return NULL; | |
4587 | } | |
4588 | ||
4589 | ||
4590 | static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4591 | PyObject *resultobj; | |
4592 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4593 | wxCoord arg2 ; | |
4594 | wxCoord arg3 ; | |
4595 | wxCoord arg4 ; | |
4596 | wxCoord arg5 ; | |
4597 | int result; | |
4598 | PyObject * obj0 = 0 ; | |
4599 | char *kwnames[] = { | |
4600 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
4601 | }; | |
4602 | ||
4603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_ContainsRectDim",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
4604 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4605 | { | |
4606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4607 | result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5); | |
4608 | ||
4609 | wxPyEndAllowThreads(__tstate); | |
4610 | if (PyErr_Occurred()) SWIG_fail; | |
4611 | } | |
4612 | resultobj = PyInt_FromLong((long)result); | |
4613 | return resultobj; | |
4614 | fail: | |
4615 | return NULL; | |
4616 | } | |
4617 | ||
4618 | ||
4619 | static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4620 | PyObject *resultobj; | |
4621 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4622 | wxRect result; | |
4623 | PyObject * obj0 = 0 ; | |
4624 | char *kwnames[] = { | |
4625 | (char *) "self", NULL | |
4626 | }; | |
4627 | ||
4628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail; | |
4629 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4630 | { | |
4631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4632 | result = (arg1)->GetBox(); | |
4633 | ||
4634 | wxPyEndAllowThreads(__tstate); | |
4635 | if (PyErr_Occurred()) SWIG_fail; | |
4636 | } | |
4637 | { | |
4638 | wxRect * resultptr; | |
4639 | resultptr = new wxRect((wxRect &) result); | |
4640 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
4641 | } | |
4642 | return resultobj; | |
4643 | fail: | |
4644 | return NULL; | |
4645 | } | |
4646 | ||
4647 | ||
4648 | static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4649 | PyObject *resultobj; | |
4650 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4651 | wxCoord arg2 ; | |
4652 | wxCoord arg3 ; | |
4653 | wxCoord arg4 ; | |
4654 | wxCoord arg5 ; | |
4655 | bool result; | |
4656 | PyObject * obj0 = 0 ; | |
4657 | char *kwnames[] = { | |
4658 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4659 | }; | |
4660 | ||
4661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Intersect",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
4662 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4663 | { | |
4664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4665 | result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5); | |
4666 | ||
4667 | wxPyEndAllowThreads(__tstate); | |
4668 | if (PyErr_Occurred()) SWIG_fail; | |
4669 | } | |
4670 | resultobj = PyInt_FromLong((long)result); | |
4671 | return resultobj; | |
4672 | fail: | |
4673 | return NULL; | |
4674 | } | |
4675 | ||
4676 | ||
4677 | static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4678 | PyObject *resultobj; | |
4679 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4680 | wxRect *arg2 = 0 ; | |
4681 | bool result; | |
4682 | wxRect temp2 ; | |
4683 | PyObject * obj0 = 0 ; | |
4684 | PyObject * obj1 = 0 ; | |
4685 | char *kwnames[] = { | |
4686 | (char *) "self",(char *) "rect", NULL | |
4687 | }; | |
4688 | ||
4689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail; | |
4690 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4691 | { | |
4692 | arg2 = &temp2; | |
4693 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4694 | } | |
4695 | { | |
4696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4697 | result = (bool)(arg1)->Intersect((wxRect const &)*arg2); | |
4698 | ||
4699 | wxPyEndAllowThreads(__tstate); | |
4700 | if (PyErr_Occurred()) SWIG_fail; | |
4701 | } | |
4702 | resultobj = PyInt_FromLong((long)result); | |
4703 | return resultobj; | |
4704 | fail: | |
4705 | return NULL; | |
4706 | } | |
4707 | ||
4708 | ||
4709 | static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4710 | PyObject *resultobj; | |
4711 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4712 | wxRegion *arg2 = 0 ; | |
4713 | bool result; | |
4714 | PyObject * obj0 = 0 ; | |
4715 | PyObject * obj1 = 0 ; | |
4716 | char *kwnames[] = { | |
4717 | (char *) "self",(char *) "region", NULL | |
4718 | }; | |
4719 | ||
4720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail; | |
4721 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4722 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4723 | if (arg2 == NULL) { | |
4724 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4725 | } | |
4726 | { | |
4727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4728 | result = (bool)(arg1)->Intersect((wxRegion const &)*arg2); | |
4729 | ||
4730 | wxPyEndAllowThreads(__tstate); | |
4731 | if (PyErr_Occurred()) SWIG_fail; | |
4732 | } | |
4733 | resultobj = PyInt_FromLong((long)result); | |
4734 | return resultobj; | |
4735 | fail: | |
4736 | return NULL; | |
4737 | } | |
4738 | ||
4739 | ||
4740 | static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4741 | PyObject *resultobj; | |
4742 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4743 | bool result; | |
4744 | PyObject * obj0 = 0 ; | |
4745 | char *kwnames[] = { | |
4746 | (char *) "self", NULL | |
4747 | }; | |
4748 | ||
4749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail; | |
4750 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4751 | { | |
4752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4753 | result = (bool)(arg1)->IsEmpty(); | |
4754 | ||
4755 | wxPyEndAllowThreads(__tstate); | |
4756 | if (PyErr_Occurred()) SWIG_fail; | |
4757 | } | |
4758 | resultobj = PyInt_FromLong((long)result); | |
4759 | return resultobj; | |
4760 | fail: | |
4761 | return NULL; | |
4762 | } | |
4763 | ||
4764 | ||
4765 | static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4766 | PyObject *resultobj; | |
4767 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4768 | wxCoord arg2 ; | |
4769 | wxCoord arg3 ; | |
4770 | wxCoord arg4 ; | |
4771 | wxCoord arg5 ; | |
4772 | bool result; | |
4773 | PyObject * obj0 = 0 ; | |
4774 | char *kwnames[] = { | |
4775 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4776 | }; | |
4777 | ||
4778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Union",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
4779 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4780 | { | |
4781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4782 | result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5); | |
4783 | ||
4784 | wxPyEndAllowThreads(__tstate); | |
4785 | if (PyErr_Occurred()) SWIG_fail; | |
4786 | } | |
4787 | resultobj = PyInt_FromLong((long)result); | |
4788 | return resultobj; | |
4789 | fail: | |
4790 | return NULL; | |
4791 | } | |
4792 | ||
4793 | ||
4794 | static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4795 | PyObject *resultobj; | |
4796 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4797 | wxRect *arg2 = 0 ; | |
4798 | bool result; | |
4799 | wxRect temp2 ; | |
4800 | PyObject * obj0 = 0 ; | |
4801 | PyObject * obj1 = 0 ; | |
4802 | char *kwnames[] = { | |
4803 | (char *) "self",(char *) "rect", NULL | |
4804 | }; | |
4805 | ||
4806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail; | |
4807 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4808 | { | |
4809 | arg2 = &temp2; | |
4810 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4811 | } | |
4812 | { | |
4813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4814 | result = (bool)(arg1)->Union((wxRect const &)*arg2); | |
4815 | ||
4816 | wxPyEndAllowThreads(__tstate); | |
4817 | if (PyErr_Occurred()) SWIG_fail; | |
4818 | } | |
4819 | resultobj = PyInt_FromLong((long)result); | |
4820 | return resultobj; | |
4821 | fail: | |
4822 | return NULL; | |
4823 | } | |
4824 | ||
4825 | ||
4826 | static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4827 | PyObject *resultobj; | |
4828 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4829 | wxRegion *arg2 = 0 ; | |
4830 | bool result; | |
4831 | PyObject * obj0 = 0 ; | |
4832 | PyObject * obj1 = 0 ; | |
4833 | char *kwnames[] = { | |
4834 | (char *) "self",(char *) "region", NULL | |
4835 | }; | |
4836 | ||
4837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail; | |
4838 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4839 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4840 | if (arg2 == NULL) { | |
4841 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4842 | } | |
4843 | { | |
4844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4845 | result = (bool)(arg1)->Union((wxRegion const &)*arg2); | |
4846 | ||
4847 | wxPyEndAllowThreads(__tstate); | |
4848 | if (PyErr_Occurred()) SWIG_fail; | |
4849 | } | |
4850 | resultobj = PyInt_FromLong((long)result); | |
4851 | return resultobj; | |
4852 | fail: | |
4853 | return NULL; | |
4854 | } | |
4855 | ||
4856 | ||
4857 | static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4858 | PyObject *resultobj; | |
4859 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4860 | wxCoord arg2 ; | |
4861 | wxCoord arg3 ; | |
4862 | wxCoord arg4 ; | |
4863 | wxCoord arg5 ; | |
4864 | bool result; | |
4865 | PyObject * obj0 = 0 ; | |
4866 | char *kwnames[] = { | |
4867 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4868 | }; | |
4869 | ||
4870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Subtract",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
4871 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4872 | { | |
4873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4874 | result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5); | |
4875 | ||
4876 | wxPyEndAllowThreads(__tstate); | |
4877 | if (PyErr_Occurred()) SWIG_fail; | |
4878 | } | |
4879 | resultobj = PyInt_FromLong((long)result); | |
4880 | return resultobj; | |
4881 | fail: | |
4882 | return NULL; | |
4883 | } | |
4884 | ||
4885 | ||
4886 | static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4887 | PyObject *resultobj; | |
4888 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4889 | wxRect *arg2 = 0 ; | |
4890 | bool result; | |
4891 | wxRect temp2 ; | |
4892 | PyObject * obj0 = 0 ; | |
4893 | PyObject * obj1 = 0 ; | |
4894 | char *kwnames[] = { | |
4895 | (char *) "self",(char *) "rect", NULL | |
4896 | }; | |
4897 | ||
4898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail; | |
4899 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4900 | { | |
4901 | arg2 = &temp2; | |
4902 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4903 | } | |
4904 | { | |
4905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4906 | result = (bool)(arg1)->Subtract((wxRect const &)*arg2); | |
4907 | ||
4908 | wxPyEndAllowThreads(__tstate); | |
4909 | if (PyErr_Occurred()) SWIG_fail; | |
4910 | } | |
4911 | resultobj = PyInt_FromLong((long)result); | |
4912 | return resultobj; | |
4913 | fail: | |
4914 | return NULL; | |
4915 | } | |
4916 | ||
4917 | ||
4918 | static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4919 | PyObject *resultobj; | |
4920 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4921 | wxRegion *arg2 = 0 ; | |
4922 | bool result; | |
4923 | PyObject * obj0 = 0 ; | |
4924 | PyObject * obj1 = 0 ; | |
4925 | char *kwnames[] = { | |
4926 | (char *) "self",(char *) "region", NULL | |
4927 | }; | |
4928 | ||
4929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail; | |
4930 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4931 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4932 | if (arg2 == NULL) { | |
4933 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4934 | } | |
4935 | { | |
4936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4937 | result = (bool)(arg1)->Subtract((wxRegion const &)*arg2); | |
4938 | ||
4939 | wxPyEndAllowThreads(__tstate); | |
4940 | if (PyErr_Occurred()) SWIG_fail; | |
4941 | } | |
4942 | resultobj = PyInt_FromLong((long)result); | |
4943 | return resultobj; | |
4944 | fail: | |
4945 | return NULL; | |
4946 | } | |
4947 | ||
4948 | ||
4949 | static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4950 | PyObject *resultobj; | |
4951 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4952 | wxCoord arg2 ; | |
4953 | wxCoord arg3 ; | |
4954 | wxCoord arg4 ; | |
4955 | wxCoord arg5 ; | |
4956 | bool result; | |
4957 | PyObject * obj0 = 0 ; | |
4958 | char *kwnames[] = { | |
4959 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4960 | }; | |
4961 | ||
4962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Xor",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
4963 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4964 | { | |
4965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4966 | result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5); | |
4967 | ||
4968 | wxPyEndAllowThreads(__tstate); | |
4969 | if (PyErr_Occurred()) SWIG_fail; | |
4970 | } | |
4971 | resultobj = PyInt_FromLong((long)result); | |
4972 | return resultobj; | |
4973 | fail: | |
4974 | return NULL; | |
4975 | } | |
4976 | ||
4977 | ||
4978 | static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4979 | PyObject *resultobj; | |
4980 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4981 | wxRect *arg2 = 0 ; | |
4982 | bool result; | |
4983 | wxRect temp2 ; | |
4984 | PyObject * obj0 = 0 ; | |
4985 | PyObject * obj1 = 0 ; | |
4986 | char *kwnames[] = { | |
4987 | (char *) "self",(char *) "rect", NULL | |
4988 | }; | |
4989 | ||
4990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail; | |
4991 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4992 | { | |
4993 | arg2 = &temp2; | |
4994 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4995 | } | |
4996 | { | |
4997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4998 | result = (bool)(arg1)->Xor((wxRect const &)*arg2); | |
4999 | ||
5000 | wxPyEndAllowThreads(__tstate); | |
5001 | if (PyErr_Occurred()) SWIG_fail; | |
5002 | } | |
5003 | resultobj = PyInt_FromLong((long)result); | |
5004 | return resultobj; | |
5005 | fail: | |
5006 | return NULL; | |
5007 | } | |
5008 | ||
5009 | ||
5010 | static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5011 | PyObject *resultobj; | |
5012 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5013 | wxRegion *arg2 = 0 ; | |
5014 | bool result; | |
5015 | PyObject * obj0 = 0 ; | |
5016 | PyObject * obj1 = 0 ; | |
5017 | char *kwnames[] = { | |
5018 | (char *) "self",(char *) "region", NULL | |
5019 | }; | |
5020 | ||
5021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail; | |
5022 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5023 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5024 | if (arg2 == NULL) { | |
5025 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5026 | } | |
5027 | { | |
5028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5029 | result = (bool)(arg1)->Xor((wxRegion const &)*arg2); | |
5030 | ||
5031 | wxPyEndAllowThreads(__tstate); | |
5032 | if (PyErr_Occurred()) SWIG_fail; | |
5033 | } | |
5034 | resultobj = PyInt_FromLong((long)result); | |
5035 | return resultobj; | |
5036 | fail: | |
5037 | return NULL; | |
5038 | } | |
5039 | ||
5040 | ||
5041 | static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5042 | PyObject *resultobj; | |
5043 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5044 | SwigValueWrapper< wxBitmap > result; | |
5045 | PyObject * obj0 = 0 ; | |
5046 | char *kwnames[] = { | |
5047 | (char *) "self", NULL | |
5048 | }; | |
5049 | ||
5050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail; | |
5051 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5052 | { | |
5053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5054 | result = (arg1)->ConvertToBitmap(); | |
5055 | ||
5056 | wxPyEndAllowThreads(__tstate); | |
5057 | if (PyErr_Occurred()) SWIG_fail; | |
5058 | } | |
5059 | { | |
5060 | wxBitmap * resultptr; | |
5061 | resultptr = new wxBitmap((wxBitmap &) result); | |
5062 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
5063 | } | |
5064 | return resultobj; | |
5065 | fail: | |
5066 | return NULL; | |
5067 | } | |
5068 | ||
5069 | ||
5070 | static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5071 | PyObject *resultobj; | |
5072 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5073 | wxBitmap *arg2 = 0 ; | |
5074 | wxColour const &arg3_defvalue = wxNullColour ; | |
5075 | wxColour *arg3 = (wxColour *) &arg3_defvalue ; | |
5076 | int arg4 = (int) 0 ; | |
5077 | bool result; | |
5078 | wxColour temp3 ; | |
5079 | PyObject * obj0 = 0 ; | |
5080 | PyObject * obj1 = 0 ; | |
5081 | PyObject * obj2 = 0 ; | |
5082 | char *kwnames[] = { | |
5083 | (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
5084 | }; | |
5085 | ||
5086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|Oi:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail; | |
5087 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5088 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5089 | if (arg2 == NULL) { | |
5090 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5091 | } | |
5092 | if (obj2) { | |
5093 | { | |
5094 | arg3 = &temp3; | |
5095 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
5096 | } | |
5097 | } | |
5098 | { | |
5099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5100 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4); | |
5101 | ||
5102 | wxPyEndAllowThreads(__tstate); | |
5103 | if (PyErr_Occurred()) SWIG_fail; | |
5104 | } | |
5105 | resultobj = PyInt_FromLong((long)result); | |
5106 | return resultobj; | |
5107 | fail: | |
5108 | return NULL; | |
5109 | } | |
5110 | ||
5111 | ||
5112 | static PyObject * Region_swigregister(PyObject *self, PyObject *args) { | |
5113 | PyObject *obj; | |
5114 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5115 | SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj); | |
5116 | Py_INCREF(obj); | |
5117 | return Py_BuildValue((char *)""); | |
5118 | } | |
5119 | static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5120 | PyObject *resultobj; | |
5121 | wxRegion *arg1 = 0 ; | |
5122 | wxRegionIterator *result; | |
5123 | PyObject * obj0 = 0 ; | |
5124 | char *kwnames[] = { | |
5125 | (char *) "region", NULL | |
5126 | }; | |
5127 | ||
5128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail; | |
5129 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5130 | if (arg1 == NULL) { | |
5131 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5132 | } | |
5133 | { | |
5134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5135 | result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1); | |
5136 | ||
5137 | wxPyEndAllowThreads(__tstate); | |
5138 | if (PyErr_Occurred()) SWIG_fail; | |
5139 | } | |
5140 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegionIterator, 1); | |
5141 | return resultobj; | |
5142 | fail: | |
5143 | return NULL; | |
5144 | } | |
5145 | ||
5146 | ||
5147 | static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5148 | PyObject *resultobj; | |
5149 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5150 | PyObject * obj0 = 0 ; | |
5151 | char *kwnames[] = { | |
5152 | (char *) "self", NULL | |
5153 | }; | |
5154 | ||
5155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail; | |
5156 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5157 | { | |
5158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5159 | delete arg1; | |
5160 | ||
5161 | wxPyEndAllowThreads(__tstate); | |
5162 | if (PyErr_Occurred()) SWIG_fail; | |
5163 | } | |
5164 | Py_INCREF(Py_None); resultobj = Py_None; | |
5165 | return resultobj; | |
5166 | fail: | |
5167 | return NULL; | |
5168 | } | |
5169 | ||
5170 | ||
5171 | static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5172 | PyObject *resultobj; | |
5173 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5174 | wxCoord result; | |
5175 | PyObject * obj0 = 0 ; | |
5176 | char *kwnames[] = { | |
5177 | (char *) "self", NULL | |
5178 | }; | |
5179 | ||
5180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail; | |
5181 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5182 | { | |
5183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5184 | result = (wxCoord)(arg1)->GetX(); | |
5185 | ||
5186 | wxPyEndAllowThreads(__tstate); | |
5187 | if (PyErr_Occurred()) SWIG_fail; | |
5188 | } | |
5189 | resultobj = PyInt_FromLong((long)result); | |
5190 | return resultobj; | |
5191 | fail: | |
5192 | return NULL; | |
5193 | } | |
5194 | ||
5195 | ||
5196 | static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5197 | PyObject *resultobj; | |
5198 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5199 | wxCoord result; | |
5200 | PyObject * obj0 = 0 ; | |
5201 | char *kwnames[] = { | |
5202 | (char *) "self", NULL | |
5203 | }; | |
5204 | ||
5205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail; | |
5206 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5207 | { | |
5208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5209 | result = (wxCoord)(arg1)->GetY(); | |
5210 | ||
5211 | wxPyEndAllowThreads(__tstate); | |
5212 | if (PyErr_Occurred()) SWIG_fail; | |
5213 | } | |
5214 | resultobj = PyInt_FromLong((long)result); | |
5215 | return resultobj; | |
5216 | fail: | |
5217 | return NULL; | |
5218 | } | |
5219 | ||
5220 | ||
5221 | static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5222 | PyObject *resultobj; | |
5223 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5224 | wxCoord result; | |
5225 | PyObject * obj0 = 0 ; | |
5226 | char *kwnames[] = { | |
5227 | (char *) "self", NULL | |
5228 | }; | |
5229 | ||
5230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail; | |
5231 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5232 | { | |
5233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5234 | result = (wxCoord)(arg1)->GetW(); | |
5235 | ||
5236 | wxPyEndAllowThreads(__tstate); | |
5237 | if (PyErr_Occurred()) SWIG_fail; | |
5238 | } | |
5239 | resultobj = PyInt_FromLong((long)result); | |
5240 | return resultobj; | |
5241 | fail: | |
5242 | return NULL; | |
5243 | } | |
5244 | ||
5245 | ||
5246 | static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5247 | PyObject *resultobj; | |
5248 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5249 | wxCoord result; | |
5250 | PyObject * obj0 = 0 ; | |
5251 | char *kwnames[] = { | |
5252 | (char *) "self", NULL | |
5253 | }; | |
5254 | ||
5255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail; | |
5256 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5257 | { | |
5258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5259 | result = (wxCoord)(arg1)->GetWidth(); | |
5260 | ||
5261 | wxPyEndAllowThreads(__tstate); | |
5262 | if (PyErr_Occurred()) SWIG_fail; | |
5263 | } | |
5264 | resultobj = PyInt_FromLong((long)result); | |
5265 | return resultobj; | |
5266 | fail: | |
5267 | return NULL; | |
5268 | } | |
5269 | ||
5270 | ||
5271 | static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5272 | PyObject *resultobj; | |
5273 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5274 | wxCoord result; | |
5275 | PyObject * obj0 = 0 ; | |
5276 | char *kwnames[] = { | |
5277 | (char *) "self", NULL | |
5278 | }; | |
5279 | ||
5280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail; | |
5281 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5282 | { | |
5283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5284 | result = (wxCoord)(arg1)->GetH(); | |
5285 | ||
5286 | wxPyEndAllowThreads(__tstate); | |
5287 | if (PyErr_Occurred()) SWIG_fail; | |
5288 | } | |
5289 | resultobj = PyInt_FromLong((long)result); | |
5290 | return resultobj; | |
5291 | fail: | |
5292 | return NULL; | |
5293 | } | |
5294 | ||
5295 | ||
5296 | static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5297 | PyObject *resultobj; | |
5298 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5299 | wxCoord result; | |
5300 | PyObject * obj0 = 0 ; | |
5301 | char *kwnames[] = { | |
5302 | (char *) "self", NULL | |
5303 | }; | |
5304 | ||
5305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail; | |
5306 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5307 | { | |
5308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5309 | result = (wxCoord)(arg1)->GetHeight(); | |
5310 | ||
5311 | wxPyEndAllowThreads(__tstate); | |
5312 | if (PyErr_Occurred()) SWIG_fail; | |
5313 | } | |
5314 | resultobj = PyInt_FromLong((long)result); | |
5315 | return resultobj; | |
5316 | fail: | |
5317 | return NULL; | |
5318 | } | |
5319 | ||
5320 | ||
5321 | static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5322 | PyObject *resultobj; | |
5323 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5324 | wxRect result; | |
5325 | PyObject * obj0 = 0 ; | |
5326 | char *kwnames[] = { | |
5327 | (char *) "self", NULL | |
5328 | }; | |
5329 | ||
5330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail; | |
5331 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5332 | { | |
5333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5334 | result = (arg1)->GetRect(); | |
5335 | ||
5336 | wxPyEndAllowThreads(__tstate); | |
5337 | if (PyErr_Occurred()) SWIG_fail; | |
5338 | } | |
5339 | { | |
5340 | wxRect * resultptr; | |
5341 | resultptr = new wxRect((wxRect &) result); | |
5342 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
5343 | } | |
5344 | return resultobj; | |
5345 | fail: | |
5346 | return NULL; | |
5347 | } | |
5348 | ||
5349 | ||
5350 | static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5351 | PyObject *resultobj; | |
5352 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5353 | bool result; | |
5354 | PyObject * obj0 = 0 ; | |
5355 | char *kwnames[] = { | |
5356 | (char *) "self", NULL | |
5357 | }; | |
5358 | ||
5359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail; | |
5360 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5361 | { | |
5362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5363 | result = (bool)(arg1)->HaveRects(); | |
5364 | ||
5365 | wxPyEndAllowThreads(__tstate); | |
5366 | if (PyErr_Occurred()) SWIG_fail; | |
5367 | } | |
5368 | resultobj = PyInt_FromLong((long)result); | |
5369 | return resultobj; | |
5370 | fail: | |
5371 | return NULL; | |
5372 | } | |
5373 | ||
5374 | ||
5375 | static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5376 | PyObject *resultobj; | |
5377 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5378 | PyObject * obj0 = 0 ; | |
5379 | char *kwnames[] = { | |
5380 | (char *) "self", NULL | |
5381 | }; | |
5382 | ||
5383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail; | |
5384 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5385 | { | |
5386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5387 | (arg1)->Reset(); | |
5388 | ||
5389 | wxPyEndAllowThreads(__tstate); | |
5390 | if (PyErr_Occurred()) SWIG_fail; | |
5391 | } | |
5392 | Py_INCREF(Py_None); resultobj = Py_None; | |
5393 | return resultobj; | |
5394 | fail: | |
5395 | return NULL; | |
5396 | } | |
5397 | ||
5398 | ||
5399 | static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5400 | PyObject *resultobj; | |
5401 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5402 | PyObject * obj0 = 0 ; | |
5403 | char *kwnames[] = { | |
5404 | (char *) "self", NULL | |
5405 | }; | |
5406 | ||
5407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail; | |
5408 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5409 | { | |
5410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5411 | wxRegionIterator_Next(arg1); | |
5412 | ||
5413 | wxPyEndAllowThreads(__tstate); | |
5414 | if (PyErr_Occurred()) SWIG_fail; | |
5415 | } | |
5416 | Py_INCREF(Py_None); resultobj = Py_None; | |
5417 | return resultobj; | |
5418 | fail: | |
5419 | return NULL; | |
5420 | } | |
5421 | ||
5422 | ||
5423 | static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5424 | PyObject *resultobj; | |
5425 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5426 | bool result; | |
5427 | PyObject * obj0 = 0 ; | |
5428 | char *kwnames[] = { | |
5429 | (char *) "self", NULL | |
5430 | }; | |
5431 | ||
5432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail; | |
5433 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5434 | { | |
5435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5436 | result = (bool)wxRegionIterator___nonzero__(arg1); | |
5437 | ||
5438 | wxPyEndAllowThreads(__tstate); | |
5439 | if (PyErr_Occurred()) SWIG_fail; | |
5440 | } | |
5441 | resultobj = PyInt_FromLong((long)result); | |
5442 | return resultobj; | |
5443 | fail: | |
5444 | return NULL; | |
5445 | } | |
5446 | ||
5447 | ||
5448 | static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) { | |
5449 | PyObject *obj; | |
5450 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5451 | SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj); | |
5452 | Py_INCREF(obj); | |
5453 | return Py_BuildValue((char *)""); | |
5454 | } | |
5455 | static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5456 | PyObject *resultobj; | |
5457 | wxNativeFontInfo *result; | |
5458 | char *kwnames[] = { | |
5459 | NULL | |
5460 | }; | |
5461 | ||
5462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail; | |
5463 | { | |
5464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5465 | result = (wxNativeFontInfo *)new wxNativeFontInfo(); | |
5466 | ||
5467 | wxPyEndAllowThreads(__tstate); | |
5468 | if (PyErr_Occurred()) SWIG_fail; | |
5469 | } | |
5470 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 1); | |
5471 | return resultobj; | |
5472 | fail: | |
5473 | return NULL; | |
5474 | } | |
5475 | ||
5476 | ||
5477 | static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5478 | PyObject *resultobj; | |
5479 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5480 | PyObject * obj0 = 0 ; | |
5481 | char *kwnames[] = { | |
5482 | (char *) "self", NULL | |
5483 | }; | |
5484 | ||
5485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail; | |
5486 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5487 | { | |
5488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5489 | delete arg1; | |
5490 | ||
5491 | wxPyEndAllowThreads(__tstate); | |
5492 | if (PyErr_Occurred()) SWIG_fail; | |
5493 | } | |
5494 | Py_INCREF(Py_None); resultobj = Py_None; | |
5495 | return resultobj; | |
5496 | fail: | |
5497 | return NULL; | |
5498 | } | |
5499 | ||
5500 | ||
5501 | static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5502 | PyObject *resultobj; | |
5503 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5504 | PyObject * obj0 = 0 ; | |
5505 | char *kwnames[] = { | |
5506 | (char *) "self", NULL | |
5507 | }; | |
5508 | ||
5509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail; | |
5510 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5511 | { | |
5512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5513 | (arg1)->Init(); | |
5514 | ||
5515 | wxPyEndAllowThreads(__tstate); | |
5516 | if (PyErr_Occurred()) SWIG_fail; | |
5517 | } | |
5518 | Py_INCREF(Py_None); resultobj = Py_None; | |
5519 | return resultobj; | |
5520 | fail: | |
5521 | return NULL; | |
5522 | } | |
5523 | ||
5524 | ||
5525 | static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5526 | PyObject *resultobj; | |
5527 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5528 | wxFont *arg2 = 0 ; | |
5529 | PyObject * obj0 = 0 ; | |
5530 | PyObject * obj1 = 0 ; | |
5531 | char *kwnames[] = { | |
5532 | (char *) "self",(char *) "font", NULL | |
5533 | }; | |
5534 | ||
5535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail; | |
5536 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5537 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5538 | if (arg2 == NULL) { | |
5539 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5540 | } | |
5541 | { | |
5542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5543 | (arg1)->InitFromFont((wxFont const &)*arg2); | |
5544 | ||
5545 | wxPyEndAllowThreads(__tstate); | |
5546 | if (PyErr_Occurred()) SWIG_fail; | |
5547 | } | |
5548 | Py_INCREF(Py_None); resultobj = Py_None; | |
5549 | return resultobj; | |
5550 | fail: | |
5551 | return NULL; | |
5552 | } | |
5553 | ||
5554 | ||
5555 | static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5556 | PyObject *resultobj; | |
5557 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5558 | int result; | |
5559 | PyObject * obj0 = 0 ; | |
5560 | char *kwnames[] = { | |
5561 | (char *) "self", NULL | |
5562 | }; | |
5563 | ||
5564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail; | |
5565 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5566 | { | |
5567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5568 | result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize(); | |
5569 | ||
5570 | wxPyEndAllowThreads(__tstate); | |
5571 | if (PyErr_Occurred()) SWIG_fail; | |
5572 | } | |
5573 | resultobj = PyInt_FromLong((long)result); | |
5574 | return resultobj; | |
5575 | fail: | |
5576 | return NULL; | |
5577 | } | |
5578 | ||
5579 | ||
5580 | static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5581 | PyObject *resultobj; | |
5582 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5583 | int result; | |
5584 | PyObject * obj0 = 0 ; | |
5585 | char *kwnames[] = { | |
5586 | (char *) "self", NULL | |
5587 | }; | |
5588 | ||
5589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail; | |
5590 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5591 | { | |
5592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5593 | result = (int)((wxNativeFontInfo const *)arg1)->GetStyle(); | |
5594 | ||
5595 | wxPyEndAllowThreads(__tstate); | |
5596 | if (PyErr_Occurred()) SWIG_fail; | |
5597 | } | |
5598 | resultobj = PyInt_FromLong((long)result); | |
5599 | return resultobj; | |
5600 | fail: | |
5601 | return NULL; | |
5602 | } | |
5603 | ||
5604 | ||
5605 | static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5606 | PyObject *resultobj; | |
5607 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5608 | int result; | |
5609 | PyObject * obj0 = 0 ; | |
5610 | char *kwnames[] = { | |
5611 | (char *) "self", NULL | |
5612 | }; | |
5613 | ||
5614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail; | |
5615 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5616 | { | |
5617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5618 | result = (int)((wxNativeFontInfo const *)arg1)->GetWeight(); | |
5619 | ||
5620 | wxPyEndAllowThreads(__tstate); | |
5621 | if (PyErr_Occurred()) SWIG_fail; | |
5622 | } | |
5623 | resultobj = PyInt_FromLong((long)result); | |
5624 | return resultobj; | |
5625 | fail: | |
5626 | return NULL; | |
5627 | } | |
5628 | ||
5629 | ||
5630 | static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5631 | PyObject *resultobj; | |
5632 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5633 | bool result; | |
5634 | PyObject * obj0 = 0 ; | |
5635 | char *kwnames[] = { | |
5636 | (char *) "self", NULL | |
5637 | }; | |
5638 | ||
5639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail; | |
5640 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5641 | { | |
5642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5643 | result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined(); | |
5644 | ||
5645 | wxPyEndAllowThreads(__tstate); | |
5646 | if (PyErr_Occurred()) SWIG_fail; | |
5647 | } | |
5648 | resultobj = PyInt_FromLong((long)result); | |
5649 | return resultobj; | |
5650 | fail: | |
5651 | return NULL; | |
5652 | } | |
5653 | ||
5654 | ||
5655 | static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5656 | PyObject *resultobj; | |
5657 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5658 | wxString result; | |
5659 | PyObject * obj0 = 0 ; | |
5660 | char *kwnames[] = { | |
5661 | (char *) "self", NULL | |
5662 | }; | |
5663 | ||
5664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail; | |
5665 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5666 | { | |
5667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5668 | result = ((wxNativeFontInfo const *)arg1)->GetFaceName(); | |
5669 | ||
5670 | wxPyEndAllowThreads(__tstate); | |
5671 | if (PyErr_Occurred()) SWIG_fail; | |
5672 | } | |
5673 | { | |
5674 | #if wxUSE_UNICODE | |
5675 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5676 | #else | |
5677 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5678 | #endif | |
5679 | } | |
5680 | return resultobj; | |
5681 | fail: | |
5682 | return NULL; | |
5683 | } | |
5684 | ||
5685 | ||
5686 | static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5687 | PyObject *resultobj; | |
5688 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5689 | int result; | |
5690 | PyObject * obj0 = 0 ; | |
5691 | char *kwnames[] = { | |
5692 | (char *) "self", NULL | |
5693 | }; | |
5694 | ||
5695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail; | |
5696 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5697 | { | |
5698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5699 | result = (int)((wxNativeFontInfo const *)arg1)->GetFamily(); | |
5700 | ||
5701 | wxPyEndAllowThreads(__tstate); | |
5702 | if (PyErr_Occurred()) SWIG_fail; | |
5703 | } | |
5704 | resultobj = PyInt_FromLong((long)result); | |
5705 | return resultobj; | |
5706 | fail: | |
5707 | return NULL; | |
5708 | } | |
5709 | ||
5710 | ||
5711 | static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5712 | PyObject *resultobj; | |
5713 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5714 | int result; | |
5715 | PyObject * obj0 = 0 ; | |
5716 | char *kwnames[] = { | |
5717 | (char *) "self", NULL | |
5718 | }; | |
5719 | ||
5720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail; | |
5721 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5722 | { | |
5723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5724 | result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding(); | |
5725 | ||
5726 | wxPyEndAllowThreads(__tstate); | |
5727 | if (PyErr_Occurred()) SWIG_fail; | |
5728 | } | |
5729 | resultobj = PyInt_FromLong((long)result); | |
5730 | return resultobj; | |
5731 | fail: | |
5732 | return NULL; | |
5733 | } | |
5734 | ||
5735 | ||
5736 | static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5737 | PyObject *resultobj; | |
5738 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5739 | int arg2 ; | |
5740 | PyObject * obj0 = 0 ; | |
5741 | char *kwnames[] = { | |
5742 | (char *) "self",(char *) "pointsize", NULL | |
5743 | }; | |
5744 | ||
5745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetPointSize",kwnames,&obj0,&arg2)) goto fail; | |
5746 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5747 | { | |
5748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5749 | (arg1)->SetPointSize(arg2); | |
5750 | ||
5751 | wxPyEndAllowThreads(__tstate); | |
5752 | if (PyErr_Occurred()) SWIG_fail; | |
5753 | } | |
5754 | Py_INCREF(Py_None); resultobj = Py_None; | |
5755 | return resultobj; | |
5756 | fail: | |
5757 | return NULL; | |
5758 | } | |
5759 | ||
5760 | ||
5761 | static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5762 | PyObject *resultobj; | |
5763 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5764 | int arg2 ; | |
5765 | PyObject * obj0 = 0 ; | |
5766 | char *kwnames[] = { | |
5767 | (char *) "self",(char *) "style", NULL | |
5768 | }; | |
5769 | ||
5770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetStyle",kwnames,&obj0,&arg2)) goto fail; | |
5771 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5772 | { | |
5773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5774 | (arg1)->SetStyle((wxFontStyle )arg2); | |
5775 | ||
5776 | wxPyEndAllowThreads(__tstate); | |
5777 | if (PyErr_Occurred()) SWIG_fail; | |
5778 | } | |
5779 | Py_INCREF(Py_None); resultobj = Py_None; | |
5780 | return resultobj; | |
5781 | fail: | |
5782 | return NULL; | |
5783 | } | |
5784 | ||
5785 | ||
5786 | static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5787 | PyObject *resultobj; | |
5788 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5789 | int arg2 ; | |
5790 | PyObject * obj0 = 0 ; | |
5791 | char *kwnames[] = { | |
5792 | (char *) "self",(char *) "weight", NULL | |
5793 | }; | |
5794 | ||
5795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetWeight",kwnames,&obj0,&arg2)) goto fail; | |
5796 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5797 | { | |
5798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5799 | (arg1)->SetWeight((wxFontWeight )arg2); | |
5800 | ||
5801 | wxPyEndAllowThreads(__tstate); | |
5802 | if (PyErr_Occurred()) SWIG_fail; | |
5803 | } | |
5804 | Py_INCREF(Py_None); resultobj = Py_None; | |
5805 | return resultobj; | |
5806 | fail: | |
5807 | return NULL; | |
5808 | } | |
5809 | ||
5810 | ||
5811 | static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5812 | PyObject *resultobj; | |
5813 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5814 | bool arg2 ; | |
5815 | PyObject * obj0 = 0 ; | |
5816 | PyObject * obj1 = 0 ; | |
5817 | char *kwnames[] = { | |
5818 | (char *) "self",(char *) "underlined", NULL | |
5819 | }; | |
5820 | ||
5821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; | |
5822 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5823 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
5824 | if (PyErr_Occurred()) SWIG_fail; | |
5825 | { | |
5826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5827 | (arg1)->SetUnderlined(arg2); | |
5828 | ||
5829 | wxPyEndAllowThreads(__tstate); | |
5830 | if (PyErr_Occurred()) SWIG_fail; | |
5831 | } | |
5832 | Py_INCREF(Py_None); resultobj = Py_None; | |
5833 | return resultobj; | |
5834 | fail: | |
5835 | return NULL; | |
5836 | } | |
5837 | ||
5838 | ||
5839 | static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5840 | PyObject *resultobj; | |
5841 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5842 | wxString arg2 ; | |
5843 | wxString *argp2 ; | |
5844 | PyObject * obj0 = 0 ; | |
5845 | PyObject * obj1 = 0 ; | |
5846 | char *kwnames[] = { | |
5847 | (char *) "self",(char *) "facename", NULL | |
5848 | }; | |
5849 | ||
5850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail; | |
5851 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5852 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
5853 | arg2 = *argp2; | |
5854 | { | |
5855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5856 | (arg1)->SetFaceName(arg2); | |
5857 | ||
5858 | wxPyEndAllowThreads(__tstate); | |
5859 | if (PyErr_Occurred()) SWIG_fail; | |
5860 | } | |
5861 | Py_INCREF(Py_None); resultobj = Py_None; | |
5862 | return resultobj; | |
5863 | fail: | |
5864 | return NULL; | |
5865 | } | |
5866 | ||
5867 | ||
5868 | static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5869 | PyObject *resultobj; | |
5870 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5871 | int arg2 ; | |
5872 | PyObject * obj0 = 0 ; | |
5873 | char *kwnames[] = { | |
5874 | (char *) "self",(char *) "family", NULL | |
5875 | }; | |
5876 | ||
5877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetFamily",kwnames,&obj0,&arg2)) goto fail; | |
5878 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5879 | { | |
5880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5881 | (arg1)->SetFamily((wxFontFamily )arg2); | |
5882 | ||
5883 | wxPyEndAllowThreads(__tstate); | |
5884 | if (PyErr_Occurred()) SWIG_fail; | |
5885 | } | |
5886 | Py_INCREF(Py_None); resultobj = Py_None; | |
5887 | return resultobj; | |
5888 | fail: | |
5889 | return NULL; | |
5890 | } | |
5891 | ||
5892 | ||
5893 | static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5894 | PyObject *resultobj; | |
5895 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5896 | int arg2 ; | |
5897 | PyObject * obj0 = 0 ; | |
5898 | char *kwnames[] = { | |
5899 | (char *) "self",(char *) "encoding", NULL | |
5900 | }; | |
5901 | ||
5902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetEncoding",kwnames,&obj0,&arg2)) goto fail; | |
5903 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5904 | { | |
5905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5906 | (arg1)->SetEncoding((wxFontEncoding )arg2); | |
5907 | ||
5908 | wxPyEndAllowThreads(__tstate); | |
5909 | if (PyErr_Occurred()) SWIG_fail; | |
5910 | } | |
5911 | Py_INCREF(Py_None); resultobj = Py_None; | |
5912 | return resultobj; | |
5913 | fail: | |
5914 | return NULL; | |
5915 | } | |
5916 | ||
5917 | ||
5918 | static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5919 | PyObject *resultobj; | |
5920 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5921 | wxString *arg2 = 0 ; | |
5922 | bool result; | |
5923 | bool temp2 = false ; | |
5924 | PyObject * obj0 = 0 ; | |
5925 | PyObject * obj1 = 0 ; | |
5926 | char *kwnames[] = { | |
5927 | (char *) "self",(char *) "s", NULL | |
5928 | }; | |
5929 | ||
5930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail; | |
5931 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5932 | { | |
5933 | arg2 = wxString_in_helper(obj1); | |
5934 | if (arg2 == NULL) SWIG_fail; | |
5935 | temp2 = true; | |
5936 | } | |
5937 | { | |
5938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5939 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
5940 | ||
5941 | wxPyEndAllowThreads(__tstate); | |
5942 | if (PyErr_Occurred()) SWIG_fail; | |
5943 | } | |
5944 | resultobj = PyInt_FromLong((long)result); | |
5945 | { | |
5946 | if (temp2) | |
5947 | delete arg2; | |
5948 | } | |
5949 | return resultobj; | |
5950 | fail: | |
5951 | { | |
5952 | if (temp2) | |
5953 | delete arg2; | |
5954 | } | |
5955 | return NULL; | |
5956 | } | |
5957 | ||
5958 | ||
5959 | static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5960 | PyObject *resultobj; | |
5961 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5962 | wxString result; | |
5963 | PyObject * obj0 = 0 ; | |
5964 | char *kwnames[] = { | |
5965 | (char *) "self", NULL | |
5966 | }; | |
5967 | ||
5968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail; | |
5969 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5970 | { | |
5971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5972 | result = ((wxNativeFontInfo const *)arg1)->ToString(); | |
5973 | ||
5974 | wxPyEndAllowThreads(__tstate); | |
5975 | if (PyErr_Occurred()) SWIG_fail; | |
5976 | } | |
5977 | { | |
5978 | #if wxUSE_UNICODE | |
5979 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5980 | #else | |
5981 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5982 | #endif | |
5983 | } | |
5984 | return resultobj; | |
5985 | fail: | |
5986 | return NULL; | |
5987 | } | |
5988 | ||
5989 | ||
5990 | static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5991 | PyObject *resultobj; | |
5992 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5993 | wxString result; | |
5994 | PyObject * obj0 = 0 ; | |
5995 | char *kwnames[] = { | |
5996 | (char *) "self", NULL | |
5997 | }; | |
5998 | ||
5999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail; | |
6000 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6001 | { | |
6002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6003 | result = wxNativeFontInfo___str__(arg1); | |
6004 | ||
6005 | wxPyEndAllowThreads(__tstate); | |
6006 | if (PyErr_Occurred()) SWIG_fail; | |
6007 | } | |
6008 | { | |
6009 | #if wxUSE_UNICODE | |
6010 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6011 | #else | |
6012 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6013 | #endif | |
6014 | } | |
6015 | return resultobj; | |
6016 | fail: | |
6017 | return NULL; | |
6018 | } | |
6019 | ||
6020 | ||
6021 | static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6022 | PyObject *resultobj; | |
6023 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6024 | wxString *arg2 = 0 ; | |
6025 | bool result; | |
6026 | bool temp2 = false ; | |
6027 | PyObject * obj0 = 0 ; | |
6028 | PyObject * obj1 = 0 ; | |
6029 | char *kwnames[] = { | |
6030 | (char *) "self",(char *) "s", NULL | |
6031 | }; | |
6032 | ||
6033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail; | |
6034 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6035 | { | |
6036 | arg2 = wxString_in_helper(obj1); | |
6037 | if (arg2 == NULL) SWIG_fail; | |
6038 | temp2 = true; | |
6039 | } | |
6040 | { | |
6041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6042 | result = (bool)(arg1)->FromUserString((wxString const &)*arg2); | |
6043 | ||
6044 | wxPyEndAllowThreads(__tstate); | |
6045 | if (PyErr_Occurred()) SWIG_fail; | |
6046 | } | |
6047 | resultobj = PyInt_FromLong((long)result); | |
6048 | { | |
6049 | if (temp2) | |
6050 | delete arg2; | |
6051 | } | |
6052 | return resultobj; | |
6053 | fail: | |
6054 | { | |
6055 | if (temp2) | |
6056 | delete arg2; | |
6057 | } | |
6058 | return NULL; | |
6059 | } | |
6060 | ||
6061 | ||
6062 | static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6063 | PyObject *resultobj; | |
6064 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6065 | wxString result; | |
6066 | PyObject * obj0 = 0 ; | |
6067 | char *kwnames[] = { | |
6068 | (char *) "self", NULL | |
6069 | }; | |
6070 | ||
6071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail; | |
6072 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6073 | { | |
6074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6075 | result = ((wxNativeFontInfo const *)arg1)->ToUserString(); | |
6076 | ||
6077 | wxPyEndAllowThreads(__tstate); | |
6078 | if (PyErr_Occurred()) SWIG_fail; | |
6079 | } | |
6080 | { | |
6081 | #if wxUSE_UNICODE | |
6082 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6083 | #else | |
6084 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6085 | #endif | |
6086 | } | |
6087 | return resultobj; | |
6088 | fail: | |
6089 | return NULL; | |
6090 | } | |
6091 | ||
6092 | ||
6093 | static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) { | |
6094 | PyObject *obj; | |
6095 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6096 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj); | |
6097 | Py_INCREF(obj); | |
6098 | return Py_BuildValue((char *)""); | |
6099 | } | |
6100 | static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6101 | PyObject *resultobj; | |
6102 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6103 | wxString arg2 ; | |
6104 | wxString *argp2 ; | |
6105 | PyObject * obj0 = 0 ; | |
6106 | PyObject * obj1 = 0 ; | |
6107 | char *kwnames[] = { | |
6108 | (char *) "self",(char *) "facename", NULL | |
6109 | }; | |
6110 | ||
6111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail; | |
6112 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6113 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
6114 | arg2 = *argp2; | |
6115 | if (arg1) (arg1)->facename = arg2; | |
6116 | ||
6117 | Py_INCREF(Py_None); resultobj = Py_None; | |
6118 | return resultobj; | |
6119 | fail: | |
6120 | return NULL; | |
6121 | } | |
6122 | ||
6123 | ||
6124 | static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6125 | PyObject *resultobj; | |
6126 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6127 | wxString result; | |
6128 | PyObject * obj0 = 0 ; | |
6129 | char *kwnames[] = { | |
6130 | (char *) "self", NULL | |
6131 | }; | |
6132 | ||
6133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail; | |
6134 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6135 | result = ((arg1)->facename); | |
6136 | ||
6137 | { | |
6138 | #if wxUSE_UNICODE | |
6139 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6140 | #else | |
6141 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6142 | #endif | |
6143 | } | |
6144 | return resultobj; | |
6145 | fail: | |
6146 | return NULL; | |
6147 | } | |
6148 | ||
6149 | ||
6150 | static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6151 | PyObject *resultobj; | |
6152 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6153 | int arg2 ; | |
6154 | PyObject * obj0 = 0 ; | |
6155 | char *kwnames[] = { | |
6156 | (char *) "self",(char *) "encoding", NULL | |
6157 | }; | |
6158 | ||
6159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeEncodingInfo_encoding_set",kwnames,&obj0,&arg2)) goto fail; | |
6160 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6161 | if (arg1) (arg1)->encoding = (wxFontEncoding )arg2; | |
6162 | ||
6163 | Py_INCREF(Py_None); resultobj = Py_None; | |
6164 | return resultobj; | |
6165 | fail: | |
6166 | return NULL; | |
6167 | } | |
6168 | ||
6169 | ||
6170 | static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6171 | PyObject *resultobj; | |
6172 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6173 | int result; | |
6174 | PyObject * obj0 = 0 ; | |
6175 | char *kwnames[] = { | |
6176 | (char *) "self", NULL | |
6177 | }; | |
6178 | ||
6179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail; | |
6180 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6181 | result = (int) ((arg1)->encoding); | |
6182 | ||
6183 | resultobj = PyInt_FromLong((long)result); | |
6184 | return resultobj; | |
6185 | fail: | |
6186 | return NULL; | |
6187 | } | |
6188 | ||
6189 | ||
6190 | static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6191 | PyObject *resultobj; | |
6192 | wxNativeEncodingInfo *result; | |
6193 | char *kwnames[] = { | |
6194 | NULL | |
6195 | }; | |
6196 | ||
6197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail; | |
6198 | { | |
6199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6200 | result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo(); | |
6201 | ||
6202 | wxPyEndAllowThreads(__tstate); | |
6203 | if (PyErr_Occurred()) SWIG_fail; | |
6204 | } | |
6205 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 1); | |
6206 | return resultobj; | |
6207 | fail: | |
6208 | return NULL; | |
6209 | } | |
6210 | ||
6211 | ||
6212 | static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6213 | PyObject *resultobj; | |
6214 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6215 | PyObject * obj0 = 0 ; | |
6216 | char *kwnames[] = { | |
6217 | (char *) "self", NULL | |
6218 | }; | |
6219 | ||
6220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail; | |
6221 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6222 | { | |
6223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6224 | delete arg1; | |
6225 | ||
6226 | wxPyEndAllowThreads(__tstate); | |
6227 | if (PyErr_Occurred()) SWIG_fail; | |
6228 | } | |
6229 | Py_INCREF(Py_None); resultobj = Py_None; | |
6230 | return resultobj; | |
6231 | fail: | |
6232 | return NULL; | |
6233 | } | |
6234 | ||
6235 | ||
6236 | static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6237 | PyObject *resultobj; | |
6238 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6239 | wxString *arg2 = 0 ; | |
6240 | bool result; | |
6241 | bool temp2 = false ; | |
6242 | PyObject * obj0 = 0 ; | |
6243 | PyObject * obj1 = 0 ; | |
6244 | char *kwnames[] = { | |
6245 | (char *) "self",(char *) "s", NULL | |
6246 | }; | |
6247 | ||
6248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail; | |
6249 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6250 | { | |
6251 | arg2 = wxString_in_helper(obj1); | |
6252 | if (arg2 == NULL) SWIG_fail; | |
6253 | temp2 = true; | |
6254 | } | |
6255 | { | |
6256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6257 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
6258 | ||
6259 | wxPyEndAllowThreads(__tstate); | |
6260 | if (PyErr_Occurred()) SWIG_fail; | |
6261 | } | |
6262 | resultobj = PyInt_FromLong((long)result); | |
6263 | { | |
6264 | if (temp2) | |
6265 | delete arg2; | |
6266 | } | |
6267 | return resultobj; | |
6268 | fail: | |
6269 | { | |
6270 | if (temp2) | |
6271 | delete arg2; | |
6272 | } | |
6273 | return NULL; | |
6274 | } | |
6275 | ||
6276 | ||
6277 | static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6278 | PyObject *resultobj; | |
6279 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6280 | wxString result; | |
6281 | PyObject * obj0 = 0 ; | |
6282 | char *kwnames[] = { | |
6283 | (char *) "self", NULL | |
6284 | }; | |
6285 | ||
6286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail; | |
6287 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6288 | { | |
6289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6290 | result = ((wxNativeEncodingInfo const *)arg1)->ToString(); | |
6291 | ||
6292 | wxPyEndAllowThreads(__tstate); | |
6293 | if (PyErr_Occurred()) SWIG_fail; | |
6294 | } | |
6295 | { | |
6296 | #if wxUSE_UNICODE | |
6297 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6298 | #else | |
6299 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6300 | #endif | |
6301 | } | |
6302 | return resultobj; | |
6303 | fail: | |
6304 | return NULL; | |
6305 | } | |
6306 | ||
6307 | ||
6308 | static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) { | |
6309 | PyObject *obj; | |
6310 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6311 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj); | |
6312 | Py_INCREF(obj); | |
6313 | return Py_BuildValue((char *)""); | |
6314 | } | |
6315 | static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6316 | PyObject *resultobj; | |
6317 | int arg1 ; | |
6318 | wxNativeEncodingInfo *result; | |
6319 | char *kwnames[] = { | |
6320 | (char *) "encoding", NULL | |
6321 | }; | |
6322 | ||
6323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:GetNativeFontEncoding",kwnames,&arg1)) goto fail; | |
6324 | { | |
6325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6326 | result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1); | |
6327 | ||
6328 | wxPyEndAllowThreads(__tstate); | |
6329 | if (PyErr_Occurred()) SWIG_fail; | |
6330 | } | |
6331 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 0); | |
6332 | return resultobj; | |
6333 | fail: | |
6334 | return NULL; | |
6335 | } | |
6336 | ||
6337 | ||
6338 | static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6339 | PyObject *resultobj; | |
6340 | wxNativeEncodingInfo *arg1 = 0 ; | |
6341 | bool result; | |
6342 | PyObject * obj0 = 0 ; | |
6343 | char *kwnames[] = { | |
6344 | (char *) "info", NULL | |
6345 | }; | |
6346 | ||
6347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail; | |
6348 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6349 | if (arg1 == NULL) { | |
6350 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6351 | } | |
6352 | { | |
6353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6354 | result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1); | |
6355 | ||
6356 | wxPyEndAllowThreads(__tstate); | |
6357 | if (PyErr_Occurred()) SWIG_fail; | |
6358 | } | |
6359 | resultobj = PyInt_FromLong((long)result); | |
6360 | return resultobj; | |
6361 | fail: | |
6362 | return NULL; | |
6363 | } | |
6364 | ||
6365 | ||
6366 | static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6367 | PyObject *resultobj; | |
6368 | wxFontMapper *result; | |
6369 | char *kwnames[] = { | |
6370 | NULL | |
6371 | }; | |
6372 | ||
6373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail; | |
6374 | { | |
6375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6376 | result = (wxFontMapper *)new wxFontMapper(); | |
6377 | ||
6378 | wxPyEndAllowThreads(__tstate); | |
6379 | if (PyErr_Occurred()) SWIG_fail; | |
6380 | } | |
6381 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 1); | |
6382 | return resultobj; | |
6383 | fail: | |
6384 | return NULL; | |
6385 | } | |
6386 | ||
6387 | ||
6388 | static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6389 | PyObject *resultobj; | |
6390 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6391 | PyObject * obj0 = 0 ; | |
6392 | char *kwnames[] = { | |
6393 | (char *) "self", NULL | |
6394 | }; | |
6395 | ||
6396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail; | |
6397 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6398 | { | |
6399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6400 | delete arg1; | |
6401 | ||
6402 | wxPyEndAllowThreads(__tstate); | |
6403 | if (PyErr_Occurred()) SWIG_fail; | |
6404 | } | |
6405 | Py_INCREF(Py_None); resultobj = Py_None; | |
6406 | return resultobj; | |
6407 | fail: | |
6408 | return NULL; | |
6409 | } | |
6410 | ||
6411 | ||
6412 | static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6413 | PyObject *resultobj; | |
6414 | wxFontMapper *result; | |
6415 | char *kwnames[] = { | |
6416 | NULL | |
6417 | }; | |
6418 | ||
6419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail; | |
6420 | { | |
6421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6422 | result = (wxFontMapper *)wxFontMapper::Get(); | |
6423 | ||
6424 | wxPyEndAllowThreads(__tstate); | |
6425 | if (PyErr_Occurred()) SWIG_fail; | |
6426 | } | |
6427 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0); | |
6428 | return resultobj; | |
6429 | fail: | |
6430 | return NULL; | |
6431 | } | |
6432 | ||
6433 | ||
6434 | static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6435 | PyObject *resultobj; | |
6436 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6437 | wxFontMapper *result; | |
6438 | PyObject * obj0 = 0 ; | |
6439 | char *kwnames[] = { | |
6440 | (char *) "mapper", NULL | |
6441 | }; | |
6442 | ||
6443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail; | |
6444 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6445 | { | |
6446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6447 | result = (wxFontMapper *)wxFontMapper::Set(arg1); | |
6448 | ||
6449 | wxPyEndAllowThreads(__tstate); | |
6450 | if (PyErr_Occurred()) SWIG_fail; | |
6451 | } | |
6452 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0); | |
6453 | return resultobj; | |
6454 | fail: | |
6455 | return NULL; | |
6456 | } | |
6457 | ||
6458 | ||
6459 | static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6460 | PyObject *resultobj; | |
6461 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6462 | wxString *arg2 = 0 ; | |
6463 | bool arg3 = (bool) true ; | |
6464 | int result; | |
6465 | bool temp2 = false ; | |
6466 | PyObject * obj0 = 0 ; | |
6467 | PyObject * obj1 = 0 ; | |
6468 | PyObject * obj2 = 0 ; | |
6469 | char *kwnames[] = { | |
6470 | (char *) "self",(char *) "charset",(char *) "interactive", NULL | |
6471 | }; | |
6472 | ||
6473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6474 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6475 | { | |
6476 | arg2 = wxString_in_helper(obj1); | |
6477 | if (arg2 == NULL) SWIG_fail; | |
6478 | temp2 = true; | |
6479 | } | |
6480 | if (obj2) { | |
6481 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
6482 | if (PyErr_Occurred()) SWIG_fail; | |
6483 | } | |
6484 | { | |
6485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6486 | result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3); | |
6487 | ||
6488 | wxPyEndAllowThreads(__tstate); | |
6489 | if (PyErr_Occurred()) SWIG_fail; | |
6490 | } | |
6491 | resultobj = PyInt_FromLong((long)result); | |
6492 | { | |
6493 | if (temp2) | |
6494 | delete arg2; | |
6495 | } | |
6496 | return resultobj; | |
6497 | fail: | |
6498 | { | |
6499 | if (temp2) | |
6500 | delete arg2; | |
6501 | } | |
6502 | return NULL; | |
6503 | } | |
6504 | ||
6505 | ||
6506 | static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6507 | PyObject *resultobj; | |
6508 | size_t result; | |
6509 | char *kwnames[] = { | |
6510 | NULL | |
6511 | }; | |
6512 | ||
6513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail; | |
6514 | { | |
6515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6516 | result = (size_t)wxFontMapper::GetSupportedEncodingsCount(); | |
6517 | ||
6518 | wxPyEndAllowThreads(__tstate); | |
6519 | if (PyErr_Occurred()) SWIG_fail; | |
6520 | } | |
6521 | resultobj = PyInt_FromLong((long)result); | |
6522 | return resultobj; | |
6523 | fail: | |
6524 | return NULL; | |
6525 | } | |
6526 | ||
6527 | ||
6528 | static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6529 | PyObject *resultobj; | |
6530 | size_t arg1 ; | |
6531 | int result; | |
6532 | PyObject * obj0 = 0 ; | |
6533 | char *kwnames[] = { | |
6534 | (char *) "n", NULL | |
6535 | }; | |
6536 | ||
6537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail; | |
6538 | arg1 = (size_t) PyInt_AsLong(obj0); | |
6539 | if (PyErr_Occurred()) SWIG_fail; | |
6540 | { | |
6541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6542 | result = (int)wxFontMapper::GetEncoding(arg1); | |
6543 | ||
6544 | wxPyEndAllowThreads(__tstate); | |
6545 | if (PyErr_Occurred()) SWIG_fail; | |
6546 | } | |
6547 | resultobj = PyInt_FromLong((long)result); | |
6548 | return resultobj; | |
6549 | fail: | |
6550 | return NULL; | |
6551 | } | |
6552 | ||
6553 | ||
6554 | static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6555 | PyObject *resultobj; | |
6556 | int arg1 ; | |
6557 | wxString result; | |
6558 | char *kwnames[] = { | |
6559 | (char *) "encoding", NULL | |
6560 | }; | |
6561 | ||
6562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:FontMapper_GetEncodingName",kwnames,&arg1)) goto fail; | |
6563 | { | |
6564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6565 | result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1); | |
6566 | ||
6567 | wxPyEndAllowThreads(__tstate); | |
6568 | if (PyErr_Occurred()) SWIG_fail; | |
6569 | } | |
6570 | { | |
6571 | #if wxUSE_UNICODE | |
6572 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6573 | #else | |
6574 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6575 | #endif | |
6576 | } | |
6577 | return resultobj; | |
6578 | fail: | |
6579 | return NULL; | |
6580 | } | |
6581 | ||
6582 | ||
6583 | static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6584 | PyObject *resultobj; | |
6585 | int arg1 ; | |
6586 | wxString result; | |
6587 | char *kwnames[] = { | |
6588 | (char *) "encoding", NULL | |
6589 | }; | |
6590 | ||
6591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:FontMapper_GetEncodingDescription",kwnames,&arg1)) goto fail; | |
6592 | { | |
6593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6594 | result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1); | |
6595 | ||
6596 | wxPyEndAllowThreads(__tstate); | |
6597 | if (PyErr_Occurred()) SWIG_fail; | |
6598 | } | |
6599 | { | |
6600 | #if wxUSE_UNICODE | |
6601 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6602 | #else | |
6603 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6604 | #endif | |
6605 | } | |
6606 | return resultobj; | |
6607 | fail: | |
6608 | return NULL; | |
6609 | } | |
6610 | ||
6611 | ||
6612 | static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6613 | PyObject *resultobj; | |
6614 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6615 | wxConfigBase *arg2 = (wxConfigBase *) 0 ; | |
6616 | PyObject * obj0 = 0 ; | |
6617 | PyObject * obj1 = 0 ; | |
6618 | char *kwnames[] = { | |
6619 | (char *) "self",(char *) "config", NULL | |
6620 | }; | |
6621 | ||
6622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail; | |
6623 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6624 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6625 | { | |
6626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6627 | (arg1)->SetConfig(arg2); | |
6628 | ||
6629 | wxPyEndAllowThreads(__tstate); | |
6630 | if (PyErr_Occurred()) SWIG_fail; | |
6631 | } | |
6632 | Py_INCREF(Py_None); resultobj = Py_None; | |
6633 | return resultobj; | |
6634 | fail: | |
6635 | return NULL; | |
6636 | } | |
6637 | ||
6638 | ||
6639 | static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6640 | PyObject *resultobj; | |
6641 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6642 | wxString *arg2 = 0 ; | |
6643 | bool temp2 = false ; | |
6644 | PyObject * obj0 = 0 ; | |
6645 | PyObject * obj1 = 0 ; | |
6646 | char *kwnames[] = { | |
6647 | (char *) "self",(char *) "prefix", NULL | |
6648 | }; | |
6649 | ||
6650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail; | |
6651 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6652 | { | |
6653 | arg2 = wxString_in_helper(obj1); | |
6654 | if (arg2 == NULL) SWIG_fail; | |
6655 | temp2 = true; | |
6656 | } | |
6657 | { | |
6658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6659 | (arg1)->SetConfigPath((wxString const &)*arg2); | |
6660 | ||
6661 | wxPyEndAllowThreads(__tstate); | |
6662 | if (PyErr_Occurred()) SWIG_fail; | |
6663 | } | |
6664 | Py_INCREF(Py_None); resultobj = Py_None; | |
6665 | { | |
6666 | if (temp2) | |
6667 | delete arg2; | |
6668 | } | |
6669 | return resultobj; | |
6670 | fail: | |
6671 | { | |
6672 | if (temp2) | |
6673 | delete arg2; | |
6674 | } | |
6675 | return NULL; | |
6676 | } | |
6677 | ||
6678 | ||
6679 | static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6680 | PyObject *resultobj; | |
6681 | wxString result; | |
6682 | char *kwnames[] = { | |
6683 | NULL | |
6684 | }; | |
6685 | ||
6686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail; | |
6687 | { | |
6688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6689 | result = wxFontMapper::GetDefaultConfigPath(); | |
6690 | ||
6691 | wxPyEndAllowThreads(__tstate); | |
6692 | if (PyErr_Occurred()) SWIG_fail; | |
6693 | } | |
6694 | { | |
6695 | #if wxUSE_UNICODE | |
6696 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6697 | #else | |
6698 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6699 | #endif | |
6700 | } | |
6701 | return resultobj; | |
6702 | fail: | |
6703 | return NULL; | |
6704 | } | |
6705 | ||
6706 | ||
6707 | static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6708 | PyObject *resultobj; | |
6709 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6710 | int arg2 ; | |
6711 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
6712 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
6713 | bool arg4 = (bool) TRUE ; | |
6714 | PyObject *result; | |
6715 | bool temp3 = false ; | |
6716 | PyObject * obj0 = 0 ; | |
6717 | PyObject * obj2 = 0 ; | |
6718 | PyObject * obj3 = 0 ; | |
6719 | char *kwnames[] = { | |
6720 | (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL | |
6721 | }; | |
6722 | ||
6723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&arg2,&obj2,&obj3)) goto fail; | |
6724 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6725 | if (obj2) { | |
6726 | { | |
6727 | arg3 = wxString_in_helper(obj2); | |
6728 | if (arg3 == NULL) SWIG_fail; | |
6729 | temp3 = true; | |
6730 | } | |
6731 | } | |
6732 | if (obj3) { | |
6733 | arg4 = PyInt_AsLong(obj3) ? true : false; | |
6734 | if (PyErr_Occurred()) SWIG_fail; | |
6735 | } | |
6736 | { | |
6737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6738 | result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4); | |
6739 | ||
6740 | wxPyEndAllowThreads(__tstate); | |
6741 | if (PyErr_Occurred()) SWIG_fail; | |
6742 | } | |
6743 | resultobj = result; | |
6744 | { | |
6745 | if (temp3) | |
6746 | delete arg3; | |
6747 | } | |
6748 | return resultobj; | |
6749 | fail: | |
6750 | { | |
6751 | if (temp3) | |
6752 | delete arg3; | |
6753 | } | |
6754 | return NULL; | |
6755 | } | |
6756 | ||
6757 | ||
6758 | static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6759 | PyObject *resultobj; | |
6760 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6761 | int arg2 ; | |
6762 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
6763 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
6764 | bool result; | |
6765 | bool temp3 = false ; | |
6766 | PyObject * obj0 = 0 ; | |
6767 | PyObject * obj2 = 0 ; | |
6768 | char *kwnames[] = { | |
6769 | (char *) "self",(char *) "encoding",(char *) "facename", NULL | |
6770 | }; | |
6771 | ||
6772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
6773 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6774 | if (obj2) { | |
6775 | { | |
6776 | arg3 = wxString_in_helper(obj2); | |
6777 | if (arg3 == NULL) SWIG_fail; | |
6778 | temp3 = true; | |
6779 | } | |
6780 | } | |
6781 | { | |
6782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6783 | result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3); | |
6784 | ||
6785 | wxPyEndAllowThreads(__tstate); | |
6786 | if (PyErr_Occurred()) SWIG_fail; | |
6787 | } | |
6788 | resultobj = PyInt_FromLong((long)result); | |
6789 | { | |
6790 | if (temp3) | |
6791 | delete arg3; | |
6792 | } | |
6793 | return resultobj; | |
6794 | fail: | |
6795 | { | |
6796 | if (temp3) | |
6797 | delete arg3; | |
6798 | } | |
6799 | return NULL; | |
6800 | } | |
6801 | ||
6802 | ||
6803 | static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6804 | PyObject *resultobj; | |
6805 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6806 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6807 | PyObject * obj0 = 0 ; | |
6808 | PyObject * obj1 = 0 ; | |
6809 | char *kwnames[] = { | |
6810 | (char *) "self",(char *) "parent", NULL | |
6811 | }; | |
6812 | ||
6813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail; | |
6814 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6815 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6816 | { | |
6817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6818 | (arg1)->SetDialogParent(arg2); | |
6819 | ||
6820 | wxPyEndAllowThreads(__tstate); | |
6821 | if (PyErr_Occurred()) SWIG_fail; | |
6822 | } | |
6823 | Py_INCREF(Py_None); resultobj = Py_None; | |
6824 | return resultobj; | |
6825 | fail: | |
6826 | return NULL; | |
6827 | } | |
6828 | ||
6829 | ||
6830 | static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6831 | PyObject *resultobj; | |
6832 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6833 | wxString *arg2 = 0 ; | |
6834 | bool temp2 = false ; | |
6835 | PyObject * obj0 = 0 ; | |
6836 | PyObject * obj1 = 0 ; | |
6837 | char *kwnames[] = { | |
6838 | (char *) "self",(char *) "title", NULL | |
6839 | }; | |
6840 | ||
6841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail; | |
6842 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6843 | { | |
6844 | arg2 = wxString_in_helper(obj1); | |
6845 | if (arg2 == NULL) SWIG_fail; | |
6846 | temp2 = true; | |
6847 | } | |
6848 | { | |
6849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6850 | (arg1)->SetDialogTitle((wxString const &)*arg2); | |
6851 | ||
6852 | wxPyEndAllowThreads(__tstate); | |
6853 | if (PyErr_Occurred()) SWIG_fail; | |
6854 | } | |
6855 | Py_INCREF(Py_None); resultobj = Py_None; | |
6856 | { | |
6857 | if (temp2) | |
6858 | delete arg2; | |
6859 | } | |
6860 | return resultobj; | |
6861 | fail: | |
6862 | { | |
6863 | if (temp2) | |
6864 | delete arg2; | |
6865 | } | |
6866 | return NULL; | |
6867 | } | |
6868 | ||
6869 | ||
6870 | static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) { | |
6871 | PyObject *obj; | |
6872 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6873 | SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj); | |
6874 | Py_INCREF(obj); | |
6875 | return Py_BuildValue((char *)""); | |
6876 | } | |
6877 | static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6878 | PyObject *resultobj; | |
6879 | int arg1 ; | |
6880 | int arg2 ; | |
6881 | int arg3 ; | |
6882 | int arg4 ; | |
6883 | bool arg5 = (bool) FALSE ; | |
6884 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
6885 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
6886 | int arg7 = (int) wxFONTENCODING_DEFAULT ; | |
6887 | wxFont *result; | |
6888 | bool temp6 = false ; | |
6889 | PyObject * obj4 = 0 ; | |
6890 | PyObject * obj5 = 0 ; | |
6891 | char *kwnames[] = { | |
6892 | (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL | |
6893 | }; | |
6894 | ||
6895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iiii|OOi:new_Font",kwnames,&arg1,&arg2,&arg3,&arg4,&obj4,&obj5,&arg7)) goto fail; | |
6896 | if (obj4) { | |
6897 | arg5 = PyInt_AsLong(obj4) ? true : false; | |
6898 | if (PyErr_Occurred()) SWIG_fail; | |
6899 | } | |
6900 | if (obj5) { | |
6901 | { | |
6902 | arg6 = wxString_in_helper(obj5); | |
6903 | if (arg6 == NULL) SWIG_fail; | |
6904 | temp6 = true; | |
6905 | } | |
6906 | } | |
6907 | { | |
6908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6909 | result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7); | |
6910 | ||
6911 | wxPyEndAllowThreads(__tstate); | |
6912 | if (PyErr_Occurred()) SWIG_fail; | |
6913 | } | |
6914 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1); | |
6915 | { | |
6916 | if (temp6) | |
6917 | delete arg6; | |
6918 | } | |
6919 | return resultobj; | |
6920 | fail: | |
6921 | { | |
6922 | if (temp6) | |
6923 | delete arg6; | |
6924 | } | |
6925 | return NULL; | |
6926 | } | |
6927 | ||
6928 | ||
6929 | static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6930 | PyObject *resultobj; | |
6931 | wxFont *arg1 = (wxFont *) 0 ; | |
6932 | PyObject * obj0 = 0 ; | |
6933 | char *kwnames[] = { | |
6934 | (char *) "self", NULL | |
6935 | }; | |
6936 | ||
6937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail; | |
6938 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6939 | { | |
6940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6941 | delete arg1; | |
6942 | ||
6943 | wxPyEndAllowThreads(__tstate); | |
6944 | if (PyErr_Occurred()) SWIG_fail; | |
6945 | } | |
6946 | Py_INCREF(Py_None); resultobj = Py_None; | |
6947 | return resultobj; | |
6948 | fail: | |
6949 | return NULL; | |
6950 | } | |
6951 | ||
6952 | ||
6953 | static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6954 | PyObject *resultobj; | |
6955 | wxNativeFontInfo *arg1 = 0 ; | |
6956 | wxFont *result; | |
6957 | PyObject * obj0 = 0 ; | |
6958 | char *kwnames[] = { | |
6959 | (char *) "info", NULL | |
6960 | }; | |
6961 | ||
6962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail; | |
6963 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6964 | if (arg1 == NULL) { | |
6965 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6966 | } | |
6967 | { | |
6968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6969 | result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1); | |
6970 | ||
6971 | wxPyEndAllowThreads(__tstate); | |
6972 | if (PyErr_Occurred()) SWIG_fail; | |
6973 | } | |
6974 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1); | |
6975 | return resultobj; | |
6976 | fail: | |
6977 | return NULL; | |
6978 | } | |
6979 | ||
6980 | ||
6981 | static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6982 | PyObject *resultobj; | |
6983 | wxString *arg1 = 0 ; | |
6984 | wxFont *result; | |
6985 | bool temp1 = false ; | |
6986 | PyObject * obj0 = 0 ; | |
6987 | char *kwnames[] = { | |
6988 | (char *) "info", NULL | |
6989 | }; | |
6990 | ||
6991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail; | |
6992 | { | |
6993 | arg1 = wxString_in_helper(obj0); | |
6994 | if (arg1 == NULL) SWIG_fail; | |
6995 | temp1 = true; | |
6996 | } | |
6997 | { | |
6998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6999 | result = (wxFont *)new_wxFont((wxString const &)*arg1); | |
7000 | ||
7001 | wxPyEndAllowThreads(__tstate); | |
7002 | if (PyErr_Occurred()) SWIG_fail; | |
7003 | } | |
7004 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1); | |
7005 | { | |
7006 | if (temp1) | |
7007 | delete arg1; | |
7008 | } | |
7009 | return resultobj; | |
7010 | fail: | |
7011 | { | |
7012 | if (temp1) | |
7013 | delete arg1; | |
7014 | } | |
7015 | return NULL; | |
7016 | } | |
7017 | ||
7018 | ||
7019 | static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7020 | PyObject *resultobj; | |
7021 | int arg1 ; | |
7022 | int arg2 ; | |
7023 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
7024 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
7025 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
7026 | int arg5 = (int) wxFONTENCODING_DEFAULT ; | |
7027 | wxFont *result; | |
7028 | bool temp4 = false ; | |
7029 | PyObject * obj3 = 0 ; | |
7030 | char *kwnames[] = { | |
7031 | (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
7032 | }; | |
7033 | ||
7034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii|iOi:new_Font2",kwnames,&arg1,&arg2,&arg3,&obj3,&arg5)) goto fail; | |
7035 | if (obj3) { | |
7036 | { | |
7037 | arg4 = wxString_in_helper(obj3); | |
7038 | if (arg4 == NULL) SWIG_fail; | |
7039 | temp4 = true; | |
7040 | } | |
7041 | } | |
7042 | { | |
7043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7044 | result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5); | |
7045 | ||
7046 | wxPyEndAllowThreads(__tstate); | |
7047 | if (PyErr_Occurred()) SWIG_fail; | |
7048 | } | |
7049 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1); | |
7050 | { | |
7051 | if (temp4) | |
7052 | delete arg4; | |
7053 | } | |
7054 | return resultobj; | |
7055 | fail: | |
7056 | { | |
7057 | if (temp4) | |
7058 | delete arg4; | |
7059 | } | |
7060 | return NULL; | |
7061 | } | |
7062 | ||
7063 | ||
7064 | static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7065 | PyObject *resultobj; | |
7066 | wxFont *arg1 = (wxFont *) 0 ; | |
7067 | bool result; | |
7068 | PyObject * obj0 = 0 ; | |
7069 | char *kwnames[] = { | |
7070 | (char *) "self", NULL | |
7071 | }; | |
7072 | ||
7073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail; | |
7074 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7075 | { | |
7076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7077 | result = (bool)((wxFont const *)arg1)->Ok(); | |
7078 | ||
7079 | wxPyEndAllowThreads(__tstate); | |
7080 | if (PyErr_Occurred()) SWIG_fail; | |
7081 | } | |
7082 | resultobj = PyInt_FromLong((long)result); | |
7083 | return resultobj; | |
7084 | fail: | |
7085 | return NULL; | |
7086 | } | |
7087 | ||
7088 | ||
7089 | static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7090 | PyObject *resultobj; | |
7091 | wxFont *arg1 = (wxFont *) 0 ; | |
7092 | wxFont *arg2 = 0 ; | |
7093 | bool result; | |
7094 | PyObject * obj0 = 0 ; | |
7095 | PyObject * obj1 = 0 ; | |
7096 | char *kwnames[] = { | |
7097 | (char *) "self",(char *) "font", NULL | |
7098 | }; | |
7099 | ||
7100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail; | |
7101 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7102 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7103 | if (arg2 == NULL) { | |
7104 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7105 | } | |
7106 | { | |
7107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7108 | result = (bool)((wxFont const *)arg1)->operator ==((wxFont const &)*arg2); | |
7109 | ||
7110 | wxPyEndAllowThreads(__tstate); | |
7111 | if (PyErr_Occurred()) SWIG_fail; | |
7112 | } | |
7113 | resultobj = PyInt_FromLong((long)result); | |
7114 | return resultobj; | |
7115 | fail: | |
7116 | return NULL; | |
7117 | } | |
7118 | ||
7119 | ||
7120 | static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7121 | PyObject *resultobj; | |
7122 | wxFont *arg1 = (wxFont *) 0 ; | |
7123 | wxFont *arg2 = 0 ; | |
7124 | bool result; | |
7125 | PyObject * obj0 = 0 ; | |
7126 | PyObject * obj1 = 0 ; | |
7127 | char *kwnames[] = { | |
7128 | (char *) "self",(char *) "font", NULL | |
7129 | }; | |
7130 | ||
7131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail; | |
7132 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7133 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7134 | if (arg2 == NULL) { | |
7135 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7136 | } | |
7137 | { | |
7138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7139 | result = (bool)((wxFont const *)arg1)->operator !=((wxFont const &)*arg2); | |
7140 | ||
7141 | wxPyEndAllowThreads(__tstate); | |
7142 | if (PyErr_Occurred()) SWIG_fail; | |
7143 | } | |
7144 | resultobj = PyInt_FromLong((long)result); | |
7145 | return resultobj; | |
7146 | fail: | |
7147 | return NULL; | |
7148 | } | |
7149 | ||
7150 | ||
7151 | static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7152 | PyObject *resultobj; | |
7153 | wxFont *arg1 = (wxFont *) 0 ; | |
7154 | int result; | |
7155 | PyObject * obj0 = 0 ; | |
7156 | char *kwnames[] = { | |
7157 | (char *) "self", NULL | |
7158 | }; | |
7159 | ||
7160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail; | |
7161 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7162 | { | |
7163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7164 | result = (int)((wxFont const *)arg1)->GetPointSize(); | |
7165 | ||
7166 | wxPyEndAllowThreads(__tstate); | |
7167 | if (PyErr_Occurred()) SWIG_fail; | |
7168 | } | |
7169 | resultobj = PyInt_FromLong((long)result); | |
7170 | return resultobj; | |
7171 | fail: | |
7172 | return NULL; | |
7173 | } | |
7174 | ||
7175 | ||
7176 | static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7177 | PyObject *resultobj; | |
7178 | wxFont *arg1 = (wxFont *) 0 ; | |
7179 | int result; | |
7180 | PyObject * obj0 = 0 ; | |
7181 | char *kwnames[] = { | |
7182 | (char *) "self", NULL | |
7183 | }; | |
7184 | ||
7185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail; | |
7186 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7187 | { | |
7188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7189 | result = (int)((wxFont const *)arg1)->GetFamily(); | |
7190 | ||
7191 | wxPyEndAllowThreads(__tstate); | |
7192 | if (PyErr_Occurred()) SWIG_fail; | |
7193 | } | |
7194 | resultobj = PyInt_FromLong((long)result); | |
7195 | return resultobj; | |
7196 | fail: | |
7197 | return NULL; | |
7198 | } | |
7199 | ||
7200 | ||
7201 | static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7202 | PyObject *resultobj; | |
7203 | wxFont *arg1 = (wxFont *) 0 ; | |
7204 | int result; | |
7205 | PyObject * obj0 = 0 ; | |
7206 | char *kwnames[] = { | |
7207 | (char *) "self", NULL | |
7208 | }; | |
7209 | ||
7210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail; | |
7211 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7212 | { | |
7213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7214 | result = (int)((wxFont const *)arg1)->GetStyle(); | |
7215 | ||
7216 | wxPyEndAllowThreads(__tstate); | |
7217 | if (PyErr_Occurred()) SWIG_fail; | |
7218 | } | |
7219 | resultobj = PyInt_FromLong((long)result); | |
7220 | return resultobj; | |
7221 | fail: | |
7222 | return NULL; | |
7223 | } | |
7224 | ||
7225 | ||
7226 | static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7227 | PyObject *resultobj; | |
7228 | wxFont *arg1 = (wxFont *) 0 ; | |
7229 | int result; | |
7230 | PyObject * obj0 = 0 ; | |
7231 | char *kwnames[] = { | |
7232 | (char *) "self", NULL | |
7233 | }; | |
7234 | ||
7235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail; | |
7236 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7237 | { | |
7238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7239 | result = (int)((wxFont const *)arg1)->GetWeight(); | |
7240 | ||
7241 | wxPyEndAllowThreads(__tstate); | |
7242 | if (PyErr_Occurred()) SWIG_fail; | |
7243 | } | |
7244 | resultobj = PyInt_FromLong((long)result); | |
7245 | return resultobj; | |
7246 | fail: | |
7247 | return NULL; | |
7248 | } | |
7249 | ||
7250 | ||
7251 | static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7252 | PyObject *resultobj; | |
7253 | wxFont *arg1 = (wxFont *) 0 ; | |
7254 | bool result; | |
7255 | PyObject * obj0 = 0 ; | |
7256 | char *kwnames[] = { | |
7257 | (char *) "self", NULL | |
7258 | }; | |
7259 | ||
7260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail; | |
7261 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7262 | { | |
7263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7264 | result = (bool)((wxFont const *)arg1)->GetUnderlined(); | |
7265 | ||
7266 | wxPyEndAllowThreads(__tstate); | |
7267 | if (PyErr_Occurred()) SWIG_fail; | |
7268 | } | |
7269 | resultobj = PyInt_FromLong((long)result); | |
7270 | return resultobj; | |
7271 | fail: | |
7272 | return NULL; | |
7273 | } | |
7274 | ||
7275 | ||
7276 | static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7277 | PyObject *resultobj; | |
7278 | wxFont *arg1 = (wxFont *) 0 ; | |
7279 | wxString result; | |
7280 | PyObject * obj0 = 0 ; | |
7281 | char *kwnames[] = { | |
7282 | (char *) "self", NULL | |
7283 | }; | |
7284 | ||
7285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail; | |
7286 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7287 | { | |
7288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7289 | result = ((wxFont const *)arg1)->GetFaceName(); | |
7290 | ||
7291 | wxPyEndAllowThreads(__tstate); | |
7292 | if (PyErr_Occurred()) SWIG_fail; | |
7293 | } | |
7294 | { | |
7295 | #if wxUSE_UNICODE | |
7296 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7297 | #else | |
7298 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7299 | #endif | |
7300 | } | |
7301 | return resultobj; | |
7302 | fail: | |
7303 | return NULL; | |
7304 | } | |
7305 | ||
7306 | ||
7307 | static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7308 | PyObject *resultobj; | |
7309 | wxFont *arg1 = (wxFont *) 0 ; | |
7310 | int result; | |
7311 | PyObject * obj0 = 0 ; | |
7312 | char *kwnames[] = { | |
7313 | (char *) "self", NULL | |
7314 | }; | |
7315 | ||
7316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail; | |
7317 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7318 | { | |
7319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7320 | result = (int)((wxFont const *)arg1)->GetEncoding(); | |
7321 | ||
7322 | wxPyEndAllowThreads(__tstate); | |
7323 | if (PyErr_Occurred()) SWIG_fail; | |
7324 | } | |
7325 | resultobj = PyInt_FromLong((long)result); | |
7326 | return resultobj; | |
7327 | fail: | |
7328 | return NULL; | |
7329 | } | |
7330 | ||
7331 | ||
7332 | static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7333 | PyObject *resultobj; | |
7334 | wxFont *arg1 = (wxFont *) 0 ; | |
7335 | wxNativeFontInfo *result; | |
7336 | PyObject * obj0 = 0 ; | |
7337 | char *kwnames[] = { | |
7338 | (char *) "self", NULL | |
7339 | }; | |
7340 | ||
7341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail; | |
7342 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7343 | { | |
7344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7345 | result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo(); | |
7346 | ||
7347 | wxPyEndAllowThreads(__tstate); | |
7348 | if (PyErr_Occurred()) SWIG_fail; | |
7349 | } | |
7350 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 0); | |
7351 | return resultobj; | |
7352 | fail: | |
7353 | return NULL; | |
7354 | } | |
7355 | ||
7356 | ||
7357 | static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7358 | PyObject *resultobj; | |
7359 | wxFont *arg1 = (wxFont *) 0 ; | |
7360 | bool result; | |
7361 | PyObject * obj0 = 0 ; | |
7362 | char *kwnames[] = { | |
7363 | (char *) "self", NULL | |
7364 | }; | |
7365 | ||
7366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail; | |
7367 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7368 | { | |
7369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7370 | result = (bool)((wxFont const *)arg1)->IsFixedWidth(); | |
7371 | ||
7372 | wxPyEndAllowThreads(__tstate); | |
7373 | if (PyErr_Occurred()) SWIG_fail; | |
7374 | } | |
7375 | resultobj = PyInt_FromLong((long)result); | |
7376 | return resultobj; | |
7377 | fail: | |
7378 | return NULL; | |
7379 | } | |
7380 | ||
7381 | ||
7382 | static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7383 | PyObject *resultobj; | |
7384 | wxFont *arg1 = (wxFont *) 0 ; | |
7385 | wxString result; | |
7386 | PyObject * obj0 = 0 ; | |
7387 | char *kwnames[] = { | |
7388 | (char *) "self", NULL | |
7389 | }; | |
7390 | ||
7391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail; | |
7392 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7393 | { | |
7394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7395 | result = ((wxFont const *)arg1)->GetNativeFontInfoDesc(); | |
7396 | ||
7397 | wxPyEndAllowThreads(__tstate); | |
7398 | if (PyErr_Occurred()) SWIG_fail; | |
7399 | } | |
7400 | { | |
7401 | #if wxUSE_UNICODE | |
7402 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7403 | #else | |
7404 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7405 | #endif | |
7406 | } | |
7407 | return resultobj; | |
7408 | fail: | |
7409 | return NULL; | |
7410 | } | |
7411 | ||
7412 | ||
7413 | static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7414 | PyObject *resultobj; | |
7415 | wxFont *arg1 = (wxFont *) 0 ; | |
7416 | wxString result; | |
7417 | PyObject * obj0 = 0 ; | |
7418 | char *kwnames[] = { | |
7419 | (char *) "self", NULL | |
7420 | }; | |
7421 | ||
7422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail; | |
7423 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7424 | { | |
7425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7426 | result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc(); | |
7427 | ||
7428 | wxPyEndAllowThreads(__tstate); | |
7429 | if (PyErr_Occurred()) SWIG_fail; | |
7430 | } | |
7431 | { | |
7432 | #if wxUSE_UNICODE | |
7433 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7434 | #else | |
7435 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7436 | #endif | |
7437 | } | |
7438 | return resultobj; | |
7439 | fail: | |
7440 | return NULL; | |
7441 | } | |
7442 | ||
7443 | ||
7444 | static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7445 | PyObject *resultobj; | |
7446 | wxFont *arg1 = (wxFont *) 0 ; | |
7447 | int arg2 ; | |
7448 | PyObject * obj0 = 0 ; | |
7449 | char *kwnames[] = { | |
7450 | (char *) "self",(char *) "pointSize", NULL | |
7451 | }; | |
7452 | ||
7453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetPointSize",kwnames,&obj0,&arg2)) goto fail; | |
7454 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7455 | { | |
7456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7457 | (arg1)->SetPointSize(arg2); | |
7458 | ||
7459 | wxPyEndAllowThreads(__tstate); | |
7460 | if (PyErr_Occurred()) SWIG_fail; | |
7461 | } | |
7462 | Py_INCREF(Py_None); resultobj = Py_None; | |
7463 | return resultobj; | |
7464 | fail: | |
7465 | return NULL; | |
7466 | } | |
7467 | ||
7468 | ||
7469 | static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7470 | PyObject *resultobj; | |
7471 | wxFont *arg1 = (wxFont *) 0 ; | |
7472 | int arg2 ; | |
7473 | PyObject * obj0 = 0 ; | |
7474 | char *kwnames[] = { | |
7475 | (char *) "self",(char *) "family", NULL | |
7476 | }; | |
7477 | ||
7478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetFamily",kwnames,&obj0,&arg2)) goto fail; | |
7479 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7480 | { | |
7481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7482 | (arg1)->SetFamily(arg2); | |
7483 | ||
7484 | wxPyEndAllowThreads(__tstate); | |
7485 | if (PyErr_Occurred()) SWIG_fail; | |
7486 | } | |
7487 | Py_INCREF(Py_None); resultobj = Py_None; | |
7488 | return resultobj; | |
7489 | fail: | |
7490 | return NULL; | |
7491 | } | |
7492 | ||
7493 | ||
7494 | static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7495 | PyObject *resultobj; | |
7496 | wxFont *arg1 = (wxFont *) 0 ; | |
7497 | int arg2 ; | |
7498 | PyObject * obj0 = 0 ; | |
7499 | char *kwnames[] = { | |
7500 | (char *) "self",(char *) "style", NULL | |
7501 | }; | |
7502 | ||
7503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetStyle",kwnames,&obj0,&arg2)) goto fail; | |
7504 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7505 | { | |
7506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7507 | (arg1)->SetStyle(arg2); | |
7508 | ||
7509 | wxPyEndAllowThreads(__tstate); | |
7510 | if (PyErr_Occurred()) SWIG_fail; | |
7511 | } | |
7512 | Py_INCREF(Py_None); resultobj = Py_None; | |
7513 | return resultobj; | |
7514 | fail: | |
7515 | return NULL; | |
7516 | } | |
7517 | ||
7518 | ||
7519 | static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7520 | PyObject *resultobj; | |
7521 | wxFont *arg1 = (wxFont *) 0 ; | |
7522 | int arg2 ; | |
7523 | PyObject * obj0 = 0 ; | |
7524 | char *kwnames[] = { | |
7525 | (char *) "self",(char *) "weight", NULL | |
7526 | }; | |
7527 | ||
7528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetWeight",kwnames,&obj0,&arg2)) goto fail; | |
7529 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7530 | { | |
7531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7532 | (arg1)->SetWeight(arg2); | |
7533 | ||
7534 | wxPyEndAllowThreads(__tstate); | |
7535 | if (PyErr_Occurred()) SWIG_fail; | |
7536 | } | |
7537 | Py_INCREF(Py_None); resultobj = Py_None; | |
7538 | return resultobj; | |
7539 | fail: | |
7540 | return NULL; | |
7541 | } | |
7542 | ||
7543 | ||
7544 | static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7545 | PyObject *resultobj; | |
7546 | wxFont *arg1 = (wxFont *) 0 ; | |
7547 | wxString *arg2 = 0 ; | |
7548 | bool temp2 = false ; | |
7549 | PyObject * obj0 = 0 ; | |
7550 | PyObject * obj1 = 0 ; | |
7551 | char *kwnames[] = { | |
7552 | (char *) "self",(char *) "faceName", NULL | |
7553 | }; | |
7554 | ||
7555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail; | |
7556 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7557 | { | |
7558 | arg2 = wxString_in_helper(obj1); | |
7559 | if (arg2 == NULL) SWIG_fail; | |
7560 | temp2 = true; | |
7561 | } | |
7562 | { | |
7563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7564 | (arg1)->SetFaceName((wxString const &)*arg2); | |
7565 | ||
7566 | wxPyEndAllowThreads(__tstate); | |
7567 | if (PyErr_Occurred()) SWIG_fail; | |
7568 | } | |
7569 | Py_INCREF(Py_None); resultobj = Py_None; | |
7570 | { | |
7571 | if (temp2) | |
7572 | delete arg2; | |
7573 | } | |
7574 | return resultobj; | |
7575 | fail: | |
7576 | { | |
7577 | if (temp2) | |
7578 | delete arg2; | |
7579 | } | |
7580 | return NULL; | |
7581 | } | |
7582 | ||
7583 | ||
7584 | static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7585 | PyObject *resultobj; | |
7586 | wxFont *arg1 = (wxFont *) 0 ; | |
7587 | bool arg2 ; | |
7588 | PyObject * obj0 = 0 ; | |
7589 | PyObject * obj1 = 0 ; | |
7590 | char *kwnames[] = { | |
7591 | (char *) "self",(char *) "underlined", NULL | |
7592 | }; | |
7593 | ||
7594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; | |
7595 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7596 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
7597 | if (PyErr_Occurred()) SWIG_fail; | |
7598 | { | |
7599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7600 | (arg1)->SetUnderlined(arg2); | |
7601 | ||
7602 | wxPyEndAllowThreads(__tstate); | |
7603 | if (PyErr_Occurred()) SWIG_fail; | |
7604 | } | |
7605 | Py_INCREF(Py_None); resultobj = Py_None; | |
7606 | return resultobj; | |
7607 | fail: | |
7608 | return NULL; | |
7609 | } | |
7610 | ||
7611 | ||
7612 | static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7613 | PyObject *resultobj; | |
7614 | wxFont *arg1 = (wxFont *) 0 ; | |
7615 | int arg2 ; | |
7616 | PyObject * obj0 = 0 ; | |
7617 | char *kwnames[] = { | |
7618 | (char *) "self",(char *) "encoding", NULL | |
7619 | }; | |
7620 | ||
7621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetEncoding",kwnames,&obj0,&arg2)) goto fail; | |
7622 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7623 | { | |
7624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7625 | (arg1)->SetEncoding((wxFontEncoding )arg2); | |
7626 | ||
7627 | wxPyEndAllowThreads(__tstate); | |
7628 | if (PyErr_Occurred()) SWIG_fail; | |
7629 | } | |
7630 | Py_INCREF(Py_None); resultobj = Py_None; | |
7631 | return resultobj; | |
7632 | fail: | |
7633 | return NULL; | |
7634 | } | |
7635 | ||
7636 | ||
7637 | static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7638 | PyObject *resultobj; | |
7639 | wxFont *arg1 = (wxFont *) 0 ; | |
7640 | wxNativeFontInfo *arg2 = 0 ; | |
7641 | PyObject * obj0 = 0 ; | |
7642 | PyObject * obj1 = 0 ; | |
7643 | char *kwnames[] = { | |
7644 | (char *) "self",(char *) "info", NULL | |
7645 | }; | |
7646 | ||
7647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail; | |
7648 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7649 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7650 | if (arg2 == NULL) { | |
7651 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7652 | } | |
7653 | { | |
7654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7655 | (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2); | |
7656 | ||
7657 | wxPyEndAllowThreads(__tstate); | |
7658 | if (PyErr_Occurred()) SWIG_fail; | |
7659 | } | |
7660 | Py_INCREF(Py_None); resultobj = Py_None; | |
7661 | return resultobj; | |
7662 | fail: | |
7663 | return NULL; | |
7664 | } | |
7665 | ||
7666 | ||
7667 | static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7668 | PyObject *resultobj; | |
7669 | wxFont *arg1 = (wxFont *) 0 ; | |
7670 | wxString *arg2 = 0 ; | |
7671 | bool temp2 = false ; | |
7672 | PyObject * obj0 = 0 ; | |
7673 | PyObject * obj1 = 0 ; | |
7674 | char *kwnames[] = { | |
7675 | (char *) "self",(char *) "info", NULL | |
7676 | }; | |
7677 | ||
7678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail; | |
7679 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7680 | { | |
7681 | arg2 = wxString_in_helper(obj1); | |
7682 | if (arg2 == NULL) SWIG_fail; | |
7683 | temp2 = true; | |
7684 | } | |
7685 | { | |
7686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7687 | (arg1)->SetNativeFontInfo((wxString const &)*arg2); | |
7688 | ||
7689 | wxPyEndAllowThreads(__tstate); | |
7690 | if (PyErr_Occurred()) SWIG_fail; | |
7691 | } | |
7692 | Py_INCREF(Py_None); resultobj = Py_None; | |
7693 | { | |
7694 | if (temp2) | |
7695 | delete arg2; | |
7696 | } | |
7697 | return resultobj; | |
7698 | fail: | |
7699 | { | |
7700 | if (temp2) | |
7701 | delete arg2; | |
7702 | } | |
7703 | return NULL; | |
7704 | } | |
7705 | ||
7706 | ||
7707 | static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7708 | PyObject *resultobj; | |
7709 | wxFont *arg1 = (wxFont *) 0 ; | |
7710 | wxString *arg2 = 0 ; | |
7711 | bool temp2 = false ; | |
7712 | PyObject * obj0 = 0 ; | |
7713 | PyObject * obj1 = 0 ; | |
7714 | char *kwnames[] = { | |
7715 | (char *) "self",(char *) "info", NULL | |
7716 | }; | |
7717 | ||
7718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail; | |
7719 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7720 | { | |
7721 | arg2 = wxString_in_helper(obj1); | |
7722 | if (arg2 == NULL) SWIG_fail; | |
7723 | temp2 = true; | |
7724 | } | |
7725 | { | |
7726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7727 | (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2); | |
7728 | ||
7729 | wxPyEndAllowThreads(__tstate); | |
7730 | if (PyErr_Occurred()) SWIG_fail; | |
7731 | } | |
7732 | Py_INCREF(Py_None); resultobj = Py_None; | |
7733 | { | |
7734 | if (temp2) | |
7735 | delete arg2; | |
7736 | } | |
7737 | return resultobj; | |
7738 | fail: | |
7739 | { | |
7740 | if (temp2) | |
7741 | delete arg2; | |
7742 | } | |
7743 | return NULL; | |
7744 | } | |
7745 | ||
7746 | ||
7747 | static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7748 | PyObject *resultobj; | |
7749 | wxFont *arg1 = (wxFont *) 0 ; | |
7750 | wxString result; | |
7751 | PyObject * obj0 = 0 ; | |
7752 | char *kwnames[] = { | |
7753 | (char *) "self", NULL | |
7754 | }; | |
7755 | ||
7756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail; | |
7757 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7758 | { | |
7759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7760 | result = ((wxFont const *)arg1)->GetFamilyString(); | |
7761 | ||
7762 | wxPyEndAllowThreads(__tstate); | |
7763 | if (PyErr_Occurred()) SWIG_fail; | |
7764 | } | |
7765 | { | |
7766 | #if wxUSE_UNICODE | |
7767 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7768 | #else | |
7769 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7770 | #endif | |
7771 | } | |
7772 | return resultobj; | |
7773 | fail: | |
7774 | return NULL; | |
7775 | } | |
7776 | ||
7777 | ||
7778 | static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7779 | PyObject *resultobj; | |
7780 | wxFont *arg1 = (wxFont *) 0 ; | |
7781 | wxString result; | |
7782 | PyObject * obj0 = 0 ; | |
7783 | char *kwnames[] = { | |
7784 | (char *) "self", NULL | |
7785 | }; | |
7786 | ||
7787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail; | |
7788 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7789 | { | |
7790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7791 | result = ((wxFont const *)arg1)->GetStyleString(); | |
7792 | ||
7793 | wxPyEndAllowThreads(__tstate); | |
7794 | if (PyErr_Occurred()) SWIG_fail; | |
7795 | } | |
7796 | { | |
7797 | #if wxUSE_UNICODE | |
7798 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7799 | #else | |
7800 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7801 | #endif | |
7802 | } | |
7803 | return resultobj; | |
7804 | fail: | |
7805 | return NULL; | |
7806 | } | |
7807 | ||
7808 | ||
7809 | static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7810 | PyObject *resultobj; | |
7811 | wxFont *arg1 = (wxFont *) 0 ; | |
7812 | wxString result; | |
7813 | PyObject * obj0 = 0 ; | |
7814 | char *kwnames[] = { | |
7815 | (char *) "self", NULL | |
7816 | }; | |
7817 | ||
7818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail; | |
7819 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7820 | { | |
7821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7822 | result = ((wxFont const *)arg1)->GetWeightString(); | |
7823 | ||
7824 | wxPyEndAllowThreads(__tstate); | |
7825 | if (PyErr_Occurred()) SWIG_fail; | |
7826 | } | |
7827 | { | |
7828 | #if wxUSE_UNICODE | |
7829 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7830 | #else | |
7831 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7832 | #endif | |
7833 | } | |
7834 | return resultobj; | |
7835 | fail: | |
7836 | return NULL; | |
7837 | } | |
7838 | ||
7839 | ||
7840 | static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7841 | PyObject *resultobj; | |
7842 | wxFont *arg1 = (wxFont *) 0 ; | |
7843 | bool arg2 = (bool) TRUE ; | |
7844 | PyObject * obj0 = 0 ; | |
7845 | PyObject * obj1 = 0 ; | |
7846 | char *kwnames[] = { | |
7847 | (char *) "self",(char *) "no", NULL | |
7848 | }; | |
7849 | ||
7850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail; | |
7851 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7852 | if (obj1) { | |
7853 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
7854 | if (PyErr_Occurred()) SWIG_fail; | |
7855 | } | |
7856 | { | |
7857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7858 | (arg1)->SetNoAntiAliasing(arg2); | |
7859 | ||
7860 | wxPyEndAllowThreads(__tstate); | |
7861 | if (PyErr_Occurred()) SWIG_fail; | |
7862 | } | |
7863 | Py_INCREF(Py_None); resultobj = Py_None; | |
7864 | return resultobj; | |
7865 | fail: | |
7866 | return NULL; | |
7867 | } | |
7868 | ||
7869 | ||
7870 | static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7871 | PyObject *resultobj; | |
7872 | wxFont *arg1 = (wxFont *) 0 ; | |
7873 | bool result; | |
7874 | PyObject * obj0 = 0 ; | |
7875 | char *kwnames[] = { | |
7876 | (char *) "self", NULL | |
7877 | }; | |
7878 | ||
7879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail; | |
7880 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7881 | { | |
7882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7883 | result = (bool)(arg1)->GetNoAntiAliasing(); | |
7884 | ||
7885 | wxPyEndAllowThreads(__tstate); | |
7886 | if (PyErr_Occurred()) SWIG_fail; | |
7887 | } | |
7888 | resultobj = PyInt_FromLong((long)result); | |
7889 | return resultobj; | |
7890 | fail: | |
7891 | return NULL; | |
7892 | } | |
7893 | ||
7894 | ||
7895 | static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7896 | PyObject *resultobj; | |
7897 | int result; | |
7898 | char *kwnames[] = { | |
7899 | NULL | |
7900 | }; | |
7901 | ||
7902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail; | |
7903 | { | |
7904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7905 | result = (int)wxFont::GetDefaultEncoding(); | |
7906 | ||
7907 | wxPyEndAllowThreads(__tstate); | |
7908 | if (PyErr_Occurred()) SWIG_fail; | |
7909 | } | |
7910 | resultobj = PyInt_FromLong((long)result); | |
7911 | return resultobj; | |
7912 | fail: | |
7913 | return NULL; | |
7914 | } | |
7915 | ||
7916 | ||
7917 | static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7918 | PyObject *resultobj; | |
7919 | int arg1 ; | |
7920 | char *kwnames[] = { | |
7921 | (char *) "encoding", NULL | |
7922 | }; | |
7923 | ||
7924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Font_SetDefaultEncoding",kwnames,&arg1)) goto fail; | |
7925 | { | |
7926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7927 | wxFont::SetDefaultEncoding((wxFontEncoding )arg1); | |
7928 | ||
7929 | wxPyEndAllowThreads(__tstate); | |
7930 | if (PyErr_Occurred()) SWIG_fail; | |
7931 | } | |
7932 | Py_INCREF(Py_None); resultobj = Py_None; | |
7933 | return resultobj; | |
7934 | fail: | |
7935 | return NULL; | |
7936 | } | |
7937 | ||
7938 | ||
7939 | static PyObject * Font_swigregister(PyObject *self, PyObject *args) { | |
7940 | PyObject *obj; | |
7941 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7942 | SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj); | |
7943 | Py_INCREF(obj); | |
7944 | return Py_BuildValue((char *)""); | |
7945 | } | |
7946 | static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7947 | PyObject *resultobj; | |
7948 | wxPyFontEnumerator *result; | |
7949 | char *kwnames[] = { | |
7950 | NULL | |
7951 | }; | |
7952 | ||
7953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail; | |
7954 | { | |
7955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7956 | result = (wxPyFontEnumerator *)new wxPyFontEnumerator(); | |
7957 | ||
7958 | wxPyEndAllowThreads(__tstate); | |
7959 | if (PyErr_Occurred()) SWIG_fail; | |
7960 | } | |
7961 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFontEnumerator, 1); | |
7962 | return resultobj; | |
7963 | fail: | |
7964 | return NULL; | |
7965 | } | |
7966 | ||
7967 | ||
7968 | static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7969 | PyObject *resultobj; | |
7970 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
7971 | PyObject * obj0 = 0 ; | |
7972 | char *kwnames[] = { | |
7973 | (char *) "self", NULL | |
7974 | }; | |
7975 | ||
7976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail; | |
7977 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7978 | { | |
7979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7980 | delete arg1; | |
7981 | ||
7982 | wxPyEndAllowThreads(__tstate); | |
7983 | if (PyErr_Occurred()) SWIG_fail; | |
7984 | } | |
7985 | Py_INCREF(Py_None); resultobj = Py_None; | |
7986 | return resultobj; | |
7987 | fail: | |
7988 | return NULL; | |
7989 | } | |
7990 | ||
7991 | ||
7992 | static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7993 | PyObject *resultobj; | |
7994 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
7995 | PyObject *arg2 = (PyObject *) 0 ; | |
7996 | PyObject *arg3 = (PyObject *) 0 ; | |
7997 | bool arg4 ; | |
7998 | PyObject * obj0 = 0 ; | |
7999 | PyObject * obj1 = 0 ; | |
8000 | PyObject * obj2 = 0 ; | |
8001 | PyObject * obj3 = 0 ; | |
8002 | char *kwnames[] = { | |
8003 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
8004 | }; | |
8005 | ||
8006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8007 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8008 | arg2 = obj1; | |
8009 | arg3 = obj2; | |
8010 | arg4 = PyInt_AsLong(obj3) ? true : false; | |
8011 | if (PyErr_Occurred()) SWIG_fail; | |
8012 | { | |
8013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8014 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
8015 | ||
8016 | wxPyEndAllowThreads(__tstate); | |
8017 | if (PyErr_Occurred()) SWIG_fail; | |
8018 | } | |
8019 | Py_INCREF(Py_None); resultobj = Py_None; | |
8020 | return resultobj; | |
8021 | fail: | |
8022 | return NULL; | |
8023 | } | |
8024 | ||
8025 | ||
8026 | static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8027 | PyObject *resultobj; | |
8028 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8029 | int arg2 = (int) wxFONTENCODING_SYSTEM ; | |
8030 | bool arg3 = (bool) FALSE ; | |
8031 | bool result; | |
8032 | PyObject * obj0 = 0 ; | |
8033 | PyObject * obj2 = 0 ; | |
8034 | char *kwnames[] = { | |
8035 | (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL | |
8036 | }; | |
8037 | ||
8038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
8039 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8040 | if (obj2) { | |
8041 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
8042 | if (PyErr_Occurred()) SWIG_fail; | |
8043 | } | |
8044 | { | |
8045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8046 | result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3); | |
8047 | ||
8048 | wxPyEndAllowThreads(__tstate); | |
8049 | if (PyErr_Occurred()) SWIG_fail; | |
8050 | } | |
8051 | resultobj = PyInt_FromLong((long)result); | |
8052 | return resultobj; | |
8053 | fail: | |
8054 | return NULL; | |
8055 | } | |
8056 | ||
8057 | ||
8058 | static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8059 | PyObject *resultobj; | |
8060 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8061 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
8062 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
8063 | bool result; | |
8064 | bool temp2 = false ; | |
8065 | PyObject * obj0 = 0 ; | |
8066 | PyObject * obj1 = 0 ; | |
8067 | char *kwnames[] = { | |
8068 | (char *) "self",(char *) "facename", NULL | |
8069 | }; | |
8070 | ||
8071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail; | |
8072 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8073 | if (obj1) { | |
8074 | { | |
8075 | arg2 = wxString_in_helper(obj1); | |
8076 | if (arg2 == NULL) SWIG_fail; | |
8077 | temp2 = true; | |
8078 | } | |
8079 | } | |
8080 | { | |
8081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8082 | result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2); | |
8083 | ||
8084 | wxPyEndAllowThreads(__tstate); | |
8085 | if (PyErr_Occurred()) SWIG_fail; | |
8086 | } | |
8087 | resultobj = PyInt_FromLong((long)result); | |
8088 | { | |
8089 | if (temp2) | |
8090 | delete arg2; | |
8091 | } | |
8092 | return resultobj; | |
8093 | fail: | |
8094 | { | |
8095 | if (temp2) | |
8096 | delete arg2; | |
8097 | } | |
8098 | return NULL; | |
8099 | } | |
8100 | ||
8101 | ||
8102 | static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8103 | PyObject *resultobj; | |
8104 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8105 | PyObject *result; | |
8106 | PyObject * obj0 = 0 ; | |
8107 | char *kwnames[] = { | |
8108 | (char *) "self", NULL | |
8109 | }; | |
8110 | ||
8111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail; | |
8112 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8113 | { | |
8114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8115 | result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1); | |
8116 | ||
8117 | wxPyEndAllowThreads(__tstate); | |
8118 | if (PyErr_Occurred()) SWIG_fail; | |
8119 | } | |
8120 | resultobj = result; | |
8121 | return resultobj; | |
8122 | fail: | |
8123 | return NULL; | |
8124 | } | |
8125 | ||
8126 | ||
8127 | static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8128 | PyObject *resultobj; | |
8129 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8130 | PyObject *result; | |
8131 | PyObject * obj0 = 0 ; | |
8132 | char *kwnames[] = { | |
8133 | (char *) "self", NULL | |
8134 | }; | |
8135 | ||
8136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail; | |
8137 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8138 | { | |
8139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8140 | result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1); | |
8141 | ||
8142 | wxPyEndAllowThreads(__tstate); | |
8143 | if (PyErr_Occurred()) SWIG_fail; | |
8144 | } | |
8145 | resultobj = result; | |
8146 | return resultobj; | |
8147 | fail: | |
8148 | return NULL; | |
8149 | } | |
8150 | ||
8151 | ||
8152 | static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) { | |
8153 | PyObject *obj; | |
8154 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8155 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj); | |
8156 | Py_INCREF(obj); | |
8157 | return Py_BuildValue((char *)""); | |
8158 | } | |
8159 | static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8160 | PyObject *resultobj; | |
8161 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
8162 | int arg2 ; | |
8163 | PyObject * obj0 = 0 ; | |
8164 | char *kwnames[] = { | |
8165 | (char *) "self",(char *) "Language", NULL | |
8166 | }; | |
8167 | ||
8168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:LanguageInfo_Language_set",kwnames,&obj0,&arg2)) goto fail; | |
8169 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8170 | if (arg1) (arg1)->Language = arg2; | |
8171 | ||
8172 | Py_INCREF(Py_None); resultobj = Py_None; | |
8173 | return resultobj; | |
8174 | fail: | |
8175 | return NULL; | |
8176 | } | |
8177 | ||
8178 | ||
8179 | static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8180 | PyObject *resultobj; | |
8181 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
8182 | int result; | |
8183 | PyObject * obj0 = 0 ; | |
8184 | char *kwnames[] = { | |
8185 | (char *) "self", NULL | |
8186 | }; | |
8187 | ||
8188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail; | |
8189 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8190 | result = (int) ((arg1)->Language); | |
8191 | ||
8192 | resultobj = PyInt_FromLong((long)result); | |
8193 | return resultobj; | |
8194 | fail: | |
8195 | return NULL; | |
8196 | } | |
8197 | ||
8198 | ||
8199 | static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8200 | PyObject *resultobj; | |
8201 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
8202 | wxString arg2 ; | |
8203 | wxString *argp2 ; | |
8204 | PyObject * obj0 = 0 ; | |
8205 | PyObject * obj1 = 0 ; | |
8206 | char *kwnames[] = { | |
8207 | (char *) "self",(char *) "CanonicalName", NULL | |
8208 | }; | |
8209 | ||
8210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail; | |
8211 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8212 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
8213 | arg2 = *argp2; | |
8214 | if (arg1) (arg1)->CanonicalName = arg2; | |
8215 | ||
8216 | Py_INCREF(Py_None); resultobj = Py_None; | |
8217 | return resultobj; | |
8218 | fail: | |
8219 | return NULL; | |
8220 | } | |
8221 | ||
8222 | ||
8223 | static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8224 | PyObject *resultobj; | |
8225 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
8226 | wxString result; | |
8227 | PyObject * obj0 = 0 ; | |
8228 | char *kwnames[] = { | |
8229 | (char *) "self", NULL | |
8230 | }; | |
8231 | ||
8232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail; | |
8233 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8234 | result = ((arg1)->CanonicalName); | |
8235 | ||
8236 | { | |
8237 | #if wxUSE_UNICODE | |
8238 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8239 | #else | |
8240 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8241 | #endif | |
8242 | } | |
8243 | return resultobj; | |
8244 | fail: | |
8245 | return NULL; | |
8246 | } | |
8247 | ||
8248 | ||
8249 | static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8250 | PyObject *resultobj; | |
8251 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
8252 | wxString arg2 ; | |
8253 | wxString *argp2 ; | |
8254 | PyObject * obj0 = 0 ; | |
8255 | PyObject * obj1 = 0 ; | |
8256 | char *kwnames[] = { | |
8257 | (char *) "self",(char *) "Description", NULL | |
8258 | }; | |
8259 | ||
8260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail; | |
8261 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8262 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
8263 | arg2 = *argp2; | |
8264 | if (arg1) (arg1)->Description = arg2; | |
8265 | ||
8266 | Py_INCREF(Py_None); resultobj = Py_None; | |
8267 | return resultobj; | |
8268 | fail: | |
8269 | return NULL; | |
8270 | } | |
8271 | ||
8272 | ||
8273 | static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8274 | PyObject *resultobj; | |
8275 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
8276 | wxString result; | |
8277 | PyObject * obj0 = 0 ; | |
8278 | char *kwnames[] = { | |
8279 | (char *) "self", NULL | |
8280 | }; | |
8281 | ||
8282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail; | |
8283 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8284 | result = ((arg1)->Description); | |
8285 | ||
8286 | { | |
8287 | #if wxUSE_UNICODE | |
8288 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8289 | #else | |
8290 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8291 | #endif | |
8292 | } | |
8293 | return resultobj; | |
8294 | fail: | |
8295 | return NULL; | |
8296 | } | |
8297 | ||
8298 | ||
8299 | static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) { | |
8300 | PyObject *obj; | |
8301 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8302 | SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj); | |
8303 | Py_INCREF(obj); | |
8304 | return Py_BuildValue((char *)""); | |
8305 | } | |
8306 | static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8307 | PyObject *resultobj; | |
8308 | int arg1 = (int) wxLANGUAGE_DEFAULT ; | |
8309 | int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
8310 | wxLocale *result; | |
8311 | char *kwnames[] = { | |
8312 | (char *) "language",(char *) "flags", NULL | |
8313 | }; | |
8314 | ||
8315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_Locale",kwnames,&arg1,&arg2)) goto fail; | |
8316 | { | |
8317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8318 | result = (wxLocale *)new wxLocale(arg1,arg2); | |
8319 | ||
8320 | wxPyEndAllowThreads(__tstate); | |
8321 | if (PyErr_Occurred()) SWIG_fail; | |
8322 | } | |
8323 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 1); | |
8324 | return resultobj; | |
8325 | fail: | |
8326 | return NULL; | |
8327 | } | |
8328 | ||
8329 | ||
8330 | static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8331 | PyObject *resultobj; | |
8332 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8333 | PyObject * obj0 = 0 ; | |
8334 | char *kwnames[] = { | |
8335 | (char *) "self", NULL | |
8336 | }; | |
8337 | ||
8338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail; | |
8339 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8340 | { | |
8341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8342 | delete arg1; | |
8343 | ||
8344 | wxPyEndAllowThreads(__tstate); | |
8345 | if (PyErr_Occurred()) SWIG_fail; | |
8346 | } | |
8347 | Py_INCREF(Py_None); resultobj = Py_None; | |
8348 | return resultobj; | |
8349 | fail: | |
8350 | return NULL; | |
8351 | } | |
8352 | ||
8353 | ||
8354 | static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8355 | PyObject *resultobj; | |
8356 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8357 | wxString *arg2 = 0 ; | |
8358 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
8359 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
8360 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
8361 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
8362 | bool arg5 = (bool) TRUE ; | |
8363 | bool arg6 = (bool) FALSE ; | |
8364 | bool result; | |
8365 | bool temp2 = false ; | |
8366 | bool temp3 = false ; | |
8367 | bool temp4 = false ; | |
8368 | PyObject * obj0 = 0 ; | |
8369 | PyObject * obj1 = 0 ; | |
8370 | PyObject * obj2 = 0 ; | |
8371 | PyObject * obj3 = 0 ; | |
8372 | PyObject * obj4 = 0 ; | |
8373 | PyObject * obj5 = 0 ; | |
8374 | char *kwnames[] = { | |
8375 | (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL | |
8376 | }; | |
8377 | ||
8378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
8379 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8380 | { | |
8381 | arg2 = wxString_in_helper(obj1); | |
8382 | if (arg2 == NULL) SWIG_fail; | |
8383 | temp2 = true; | |
8384 | } | |
8385 | if (obj2) { | |
8386 | { | |
8387 | arg3 = wxString_in_helper(obj2); | |
8388 | if (arg3 == NULL) SWIG_fail; | |
8389 | temp3 = true; | |
8390 | } | |
8391 | } | |
8392 | if (obj3) { | |
8393 | { | |
8394 | arg4 = wxString_in_helper(obj3); | |
8395 | if (arg4 == NULL) SWIG_fail; | |
8396 | temp4 = true; | |
8397 | } | |
8398 | } | |
8399 | if (obj4) { | |
8400 | arg5 = PyInt_AsLong(obj4) ? true : false; | |
8401 | if (PyErr_Occurred()) SWIG_fail; | |
8402 | } | |
8403 | if (obj5) { | |
8404 | arg6 = PyInt_AsLong(obj5) ? true : false; | |
8405 | if (PyErr_Occurred()) SWIG_fail; | |
8406 | } | |
8407 | { | |
8408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8409 | result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6); | |
8410 | ||
8411 | wxPyEndAllowThreads(__tstate); | |
8412 | if (PyErr_Occurred()) SWIG_fail; | |
8413 | } | |
8414 | resultobj = PyInt_FromLong((long)result); | |
8415 | { | |
8416 | if (temp2) | |
8417 | delete arg2; | |
8418 | } | |
8419 | { | |
8420 | if (temp3) | |
8421 | delete arg3; | |
8422 | } | |
8423 | { | |
8424 | if (temp4) | |
8425 | delete arg4; | |
8426 | } | |
8427 | return resultobj; | |
8428 | fail: | |
8429 | { | |
8430 | if (temp2) | |
8431 | delete arg2; | |
8432 | } | |
8433 | { | |
8434 | if (temp3) | |
8435 | delete arg3; | |
8436 | } | |
8437 | { | |
8438 | if (temp4) | |
8439 | delete arg4; | |
8440 | } | |
8441 | return NULL; | |
8442 | } | |
8443 | ||
8444 | ||
8445 | static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8446 | PyObject *resultobj; | |
8447 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8448 | int arg2 = (int) wxLANGUAGE_DEFAULT ; | |
8449 | int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
8450 | bool result; | |
8451 | PyObject * obj0 = 0 ; | |
8452 | char *kwnames[] = { | |
8453 | (char *) "self",(char *) "language",(char *) "flags", NULL | |
8454 | }; | |
8455 | ||
8456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:Locale_Init2",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
8457 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8458 | { | |
8459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8460 | result = (bool)(arg1)->Init(arg2,arg3); | |
8461 | ||
8462 | wxPyEndAllowThreads(__tstate); | |
8463 | if (PyErr_Occurred()) SWIG_fail; | |
8464 | } | |
8465 | resultobj = PyInt_FromLong((long)result); | |
8466 | return resultobj; | |
8467 | fail: | |
8468 | return NULL; | |
8469 | } | |
8470 | ||
8471 | ||
8472 | static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8473 | PyObject *resultobj; | |
8474 | int result; | |
8475 | char *kwnames[] = { | |
8476 | NULL | |
8477 | }; | |
8478 | ||
8479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail; | |
8480 | { | |
8481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8482 | result = (int)wxLocale::GetSystemLanguage(); | |
8483 | ||
8484 | wxPyEndAllowThreads(__tstate); | |
8485 | if (PyErr_Occurred()) SWIG_fail; | |
8486 | } | |
8487 | resultobj = PyInt_FromLong((long)result); | |
8488 | return resultobj; | |
8489 | fail: | |
8490 | return NULL; | |
8491 | } | |
8492 | ||
8493 | ||
8494 | static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8495 | PyObject *resultobj; | |
8496 | int result; | |
8497 | char *kwnames[] = { | |
8498 | NULL | |
8499 | }; | |
8500 | ||
8501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail; | |
8502 | { | |
8503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8504 | result = (int)wxLocale::GetSystemEncoding(); | |
8505 | ||
8506 | wxPyEndAllowThreads(__tstate); | |
8507 | if (PyErr_Occurred()) SWIG_fail; | |
8508 | } | |
8509 | resultobj = PyInt_FromLong((long)result); | |
8510 | return resultobj; | |
8511 | fail: | |
8512 | return NULL; | |
8513 | } | |
8514 | ||
8515 | ||
8516 | static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8517 | PyObject *resultobj; | |
8518 | wxString result; | |
8519 | char *kwnames[] = { | |
8520 | NULL | |
8521 | }; | |
8522 | ||
8523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail; | |
8524 | { | |
8525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8526 | result = wxLocale::GetSystemEncodingName(); | |
8527 | ||
8528 | wxPyEndAllowThreads(__tstate); | |
8529 | if (PyErr_Occurred()) SWIG_fail; | |
8530 | } | |
8531 | { | |
8532 | #if wxUSE_UNICODE | |
8533 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8534 | #else | |
8535 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8536 | #endif | |
8537 | } | |
8538 | return resultobj; | |
8539 | fail: | |
8540 | return NULL; | |
8541 | } | |
8542 | ||
8543 | ||
8544 | static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8545 | PyObject *resultobj; | |
8546 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8547 | bool result; | |
8548 | PyObject * obj0 = 0 ; | |
8549 | char *kwnames[] = { | |
8550 | (char *) "self", NULL | |
8551 | }; | |
8552 | ||
8553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail; | |
8554 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8555 | { | |
8556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8557 | result = (bool)((wxLocale const *)arg1)->IsOk(); | |
8558 | ||
8559 | wxPyEndAllowThreads(__tstate); | |
8560 | if (PyErr_Occurred()) SWIG_fail; | |
8561 | } | |
8562 | resultobj = PyInt_FromLong((long)result); | |
8563 | return resultobj; | |
8564 | fail: | |
8565 | return NULL; | |
8566 | } | |
8567 | ||
8568 | ||
8569 | static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8570 | PyObject *resultobj; | |
8571 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8572 | wxString result; | |
8573 | PyObject * obj0 = 0 ; | |
8574 | char *kwnames[] = { | |
8575 | (char *) "self", NULL | |
8576 | }; | |
8577 | ||
8578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail; | |
8579 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8580 | { | |
8581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8582 | result = ((wxLocale const *)arg1)->GetLocale(); | |
8583 | ||
8584 | wxPyEndAllowThreads(__tstate); | |
8585 | if (PyErr_Occurred()) SWIG_fail; | |
8586 | } | |
8587 | { | |
8588 | #if wxUSE_UNICODE | |
8589 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8590 | #else | |
8591 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8592 | #endif | |
8593 | } | |
8594 | return resultobj; | |
8595 | fail: | |
8596 | return NULL; | |
8597 | } | |
8598 | ||
8599 | ||
8600 | static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8601 | PyObject *resultobj; | |
8602 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8603 | int result; | |
8604 | PyObject * obj0 = 0 ; | |
8605 | char *kwnames[] = { | |
8606 | (char *) "self", NULL | |
8607 | }; | |
8608 | ||
8609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail; | |
8610 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8611 | { | |
8612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8613 | result = (int)((wxLocale const *)arg1)->GetLanguage(); | |
8614 | ||
8615 | wxPyEndAllowThreads(__tstate); | |
8616 | if (PyErr_Occurred()) SWIG_fail; | |
8617 | } | |
8618 | resultobj = PyInt_FromLong((long)result); | |
8619 | return resultobj; | |
8620 | fail: | |
8621 | return NULL; | |
8622 | } | |
8623 | ||
8624 | ||
8625 | static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8626 | PyObject *resultobj; | |
8627 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8628 | wxString result; | |
8629 | PyObject * obj0 = 0 ; | |
8630 | char *kwnames[] = { | |
8631 | (char *) "self", NULL | |
8632 | }; | |
8633 | ||
8634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail; | |
8635 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8636 | { | |
8637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8638 | result = ((wxLocale const *)arg1)->GetSysName(); | |
8639 | ||
8640 | wxPyEndAllowThreads(__tstate); | |
8641 | if (PyErr_Occurred()) SWIG_fail; | |
8642 | } | |
8643 | { | |
8644 | #if wxUSE_UNICODE | |
8645 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8646 | #else | |
8647 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8648 | #endif | |
8649 | } | |
8650 | return resultobj; | |
8651 | fail: | |
8652 | return NULL; | |
8653 | } | |
8654 | ||
8655 | ||
8656 | static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8657 | PyObject *resultobj; | |
8658 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8659 | wxString result; | |
8660 | PyObject * obj0 = 0 ; | |
8661 | char *kwnames[] = { | |
8662 | (char *) "self", NULL | |
8663 | }; | |
8664 | ||
8665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail; | |
8666 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8667 | { | |
8668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8669 | result = ((wxLocale const *)arg1)->GetCanonicalName(); | |
8670 | ||
8671 | wxPyEndAllowThreads(__tstate); | |
8672 | if (PyErr_Occurred()) SWIG_fail; | |
8673 | } | |
8674 | { | |
8675 | #if wxUSE_UNICODE | |
8676 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8677 | #else | |
8678 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8679 | #endif | |
8680 | } | |
8681 | return resultobj; | |
8682 | fail: | |
8683 | return NULL; | |
8684 | } | |
8685 | ||
8686 | ||
8687 | static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8688 | PyObject *resultobj; | |
8689 | wxString *arg1 = 0 ; | |
8690 | bool temp1 = false ; | |
8691 | PyObject * obj0 = 0 ; | |
8692 | char *kwnames[] = { | |
8693 | (char *) "prefix", NULL | |
8694 | }; | |
8695 | ||
8696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail; | |
8697 | { | |
8698 | arg1 = wxString_in_helper(obj0); | |
8699 | if (arg1 == NULL) SWIG_fail; | |
8700 | temp1 = true; | |
8701 | } | |
8702 | { | |
8703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8704 | wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1); | |
8705 | ||
8706 | wxPyEndAllowThreads(__tstate); | |
8707 | if (PyErr_Occurred()) SWIG_fail; | |
8708 | } | |
8709 | Py_INCREF(Py_None); resultobj = Py_None; | |
8710 | { | |
8711 | if (temp1) | |
8712 | delete arg1; | |
8713 | } | |
8714 | return resultobj; | |
8715 | fail: | |
8716 | { | |
8717 | if (temp1) | |
8718 | delete arg1; | |
8719 | } | |
8720 | return NULL; | |
8721 | } | |
8722 | ||
8723 | ||
8724 | static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8725 | PyObject *resultobj; | |
8726 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8727 | wxString *arg2 = 0 ; | |
8728 | bool result; | |
8729 | bool temp2 = false ; | |
8730 | PyObject * obj0 = 0 ; | |
8731 | PyObject * obj1 = 0 ; | |
8732 | char *kwnames[] = { | |
8733 | (char *) "self",(char *) "szDomain", NULL | |
8734 | }; | |
8735 | ||
8736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail; | |
8737 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8738 | { | |
8739 | arg2 = wxString_in_helper(obj1); | |
8740 | if (arg2 == NULL) SWIG_fail; | |
8741 | temp2 = true; | |
8742 | } | |
8743 | { | |
8744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8745 | result = (bool)(arg1)->AddCatalog((wxString const &)*arg2); | |
8746 | ||
8747 | wxPyEndAllowThreads(__tstate); | |
8748 | if (PyErr_Occurred()) SWIG_fail; | |
8749 | } | |
8750 | resultobj = PyInt_FromLong((long)result); | |
8751 | { | |
8752 | if (temp2) | |
8753 | delete arg2; | |
8754 | } | |
8755 | return resultobj; | |
8756 | fail: | |
8757 | { | |
8758 | if (temp2) | |
8759 | delete arg2; | |
8760 | } | |
8761 | return NULL; | |
8762 | } | |
8763 | ||
8764 | ||
8765 | static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8766 | PyObject *resultobj; | |
8767 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8768 | wxString *arg2 = 0 ; | |
8769 | bool result; | |
8770 | bool temp2 = false ; | |
8771 | PyObject * obj0 = 0 ; | |
8772 | PyObject * obj1 = 0 ; | |
8773 | char *kwnames[] = { | |
8774 | (char *) "self",(char *) "szDomain", NULL | |
8775 | }; | |
8776 | ||
8777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail; | |
8778 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8779 | { | |
8780 | arg2 = wxString_in_helper(obj1); | |
8781 | if (arg2 == NULL) SWIG_fail; | |
8782 | temp2 = true; | |
8783 | } | |
8784 | { | |
8785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8786 | result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2); | |
8787 | ||
8788 | wxPyEndAllowThreads(__tstate); | |
8789 | if (PyErr_Occurred()) SWIG_fail; | |
8790 | } | |
8791 | resultobj = PyInt_FromLong((long)result); | |
8792 | { | |
8793 | if (temp2) | |
8794 | delete arg2; | |
8795 | } | |
8796 | return resultobj; | |
8797 | fail: | |
8798 | { | |
8799 | if (temp2) | |
8800 | delete arg2; | |
8801 | } | |
8802 | return NULL; | |
8803 | } | |
8804 | ||
8805 | ||
8806 | static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8807 | PyObject *resultobj; | |
8808 | int arg1 ; | |
8809 | wxLanguageInfo *result; | |
8810 | char *kwnames[] = { | |
8811 | (char *) "lang", NULL | |
8812 | }; | |
8813 | ||
8814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Locale_GetLanguageInfo",kwnames,&arg1)) goto fail; | |
8815 | { | |
8816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8817 | result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1); | |
8818 | ||
8819 | wxPyEndAllowThreads(__tstate); | |
8820 | if (PyErr_Occurred()) SWIG_fail; | |
8821 | } | |
8822 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0); | |
8823 | return resultobj; | |
8824 | fail: | |
8825 | return NULL; | |
8826 | } | |
8827 | ||
8828 | ||
8829 | static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8830 | PyObject *resultobj; | |
8831 | int arg1 ; | |
8832 | wxString result; | |
8833 | char *kwnames[] = { | |
8834 | (char *) "lang", NULL | |
8835 | }; | |
8836 | ||
8837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Locale_GetLanguageName",kwnames,&arg1)) goto fail; | |
8838 | { | |
8839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8840 | result = wxLocale::GetLanguageName(arg1); | |
8841 | ||
8842 | wxPyEndAllowThreads(__tstate); | |
8843 | if (PyErr_Occurred()) SWIG_fail; | |
8844 | } | |
8845 | { | |
8846 | #if wxUSE_UNICODE | |
8847 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8848 | #else | |
8849 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8850 | #endif | |
8851 | } | |
8852 | return resultobj; | |
8853 | fail: | |
8854 | return NULL; | |
8855 | } | |
8856 | ||
8857 | ||
8858 | static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8859 | PyObject *resultobj; | |
8860 | wxString *arg1 = 0 ; | |
8861 | wxLanguageInfo *result; | |
8862 | bool temp1 = false ; | |
8863 | PyObject * obj0 = 0 ; | |
8864 | char *kwnames[] = { | |
8865 | (char *) "locale", NULL | |
8866 | }; | |
8867 | ||
8868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail; | |
8869 | { | |
8870 | arg1 = wxString_in_helper(obj0); | |
8871 | if (arg1 == NULL) SWIG_fail; | |
8872 | temp1 = true; | |
8873 | } | |
8874 | { | |
8875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8876 | result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1); | |
8877 | ||
8878 | wxPyEndAllowThreads(__tstate); | |
8879 | if (PyErr_Occurred()) SWIG_fail; | |
8880 | } | |
8881 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0); | |
8882 | { | |
8883 | if (temp1) | |
8884 | delete arg1; | |
8885 | } | |
8886 | return resultobj; | |
8887 | fail: | |
8888 | { | |
8889 | if (temp1) | |
8890 | delete arg1; | |
8891 | } | |
8892 | return NULL; | |
8893 | } | |
8894 | ||
8895 | ||
8896 | static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8897 | PyObject *resultobj; | |
8898 | wxLanguageInfo *arg1 = 0 ; | |
8899 | PyObject * obj0 = 0 ; | |
8900 | char *kwnames[] = { | |
8901 | (char *) "info", NULL | |
8902 | }; | |
8903 | ||
8904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail; | |
8905 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8906 | if (arg1 == NULL) { | |
8907 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8908 | } | |
8909 | { | |
8910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8911 | wxLocale::AddLanguage((wxLanguageInfo const &)*arg1); | |
8912 | ||
8913 | wxPyEndAllowThreads(__tstate); | |
8914 | if (PyErr_Occurred()) SWIG_fail; | |
8915 | } | |
8916 | Py_INCREF(Py_None); resultobj = Py_None; | |
8917 | return resultobj; | |
8918 | fail: | |
8919 | return NULL; | |
8920 | } | |
8921 | ||
8922 | ||
8923 | static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8924 | PyObject *resultobj; | |
8925 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8926 | wxString *arg2 = 0 ; | |
8927 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
8928 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
8929 | wxString result; | |
8930 | bool temp2 = false ; | |
8931 | bool temp3 = false ; | |
8932 | PyObject * obj0 = 0 ; | |
8933 | PyObject * obj1 = 0 ; | |
8934 | PyObject * obj2 = 0 ; | |
8935 | char *kwnames[] = { | |
8936 | (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL | |
8937 | }; | |
8938 | ||
8939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8940 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8941 | { | |
8942 | arg2 = wxString_in_helper(obj1); | |
8943 | if (arg2 == NULL) SWIG_fail; | |
8944 | temp2 = true; | |
8945 | } | |
8946 | if (obj2) { | |
8947 | { | |
8948 | arg3 = wxString_in_helper(obj2); | |
8949 | if (arg3 == NULL) SWIG_fail; | |
8950 | temp3 = true; | |
8951 | } | |
8952 | } | |
8953 | { | |
8954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8955 | result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3); | |
8956 | ||
8957 | wxPyEndAllowThreads(__tstate); | |
8958 | if (PyErr_Occurred()) SWIG_fail; | |
8959 | } | |
8960 | { | |
8961 | #if wxUSE_UNICODE | |
8962 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8963 | #else | |
8964 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8965 | #endif | |
8966 | } | |
8967 | { | |
8968 | if (temp2) | |
8969 | delete arg2; | |
8970 | } | |
8971 | { | |
8972 | if (temp3) | |
8973 | delete arg3; | |
8974 | } | |
8975 | return resultobj; | |
8976 | fail: | |
8977 | { | |
8978 | if (temp2) | |
8979 | delete arg2; | |
8980 | } | |
8981 | { | |
8982 | if (temp3) | |
8983 | delete arg3; | |
8984 | } | |
8985 | return NULL; | |
8986 | } | |
8987 | ||
8988 | ||
8989 | static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8990 | PyObject *resultobj; | |
8991 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8992 | wxString *result; | |
8993 | PyObject * obj0 = 0 ; | |
8994 | char *kwnames[] = { | |
8995 | (char *) "self", NULL | |
8996 | }; | |
8997 | ||
8998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail; | |
8999 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9000 | { | |
9001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9002 | { | |
9003 | wxString const &_result_ref = ((wxLocale const *)arg1)->GetName(); | |
9004 | result = (wxString *) &_result_ref; | |
9005 | } | |
9006 | ||
9007 | wxPyEndAllowThreads(__tstate); | |
9008 | if (PyErr_Occurred()) SWIG_fail; | |
9009 | } | |
9010 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxString, 0); | |
9011 | return resultobj; | |
9012 | fail: | |
9013 | return NULL; | |
9014 | } | |
9015 | ||
9016 | ||
9017 | static PyObject * Locale_swigregister(PyObject *self, PyObject *args) { | |
9018 | PyObject *obj; | |
9019 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9020 | SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj); | |
9021 | Py_INCREF(obj); | |
9022 | return Py_BuildValue((char *)""); | |
9023 | } | |
9024 | static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9025 | PyObject *resultobj; | |
9026 | wxLocale *result; | |
9027 | char *kwnames[] = { | |
9028 | NULL | |
9029 | }; | |
9030 | ||
9031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail; | |
9032 | { | |
9033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9034 | result = (wxLocale *)wxGetLocale(); | |
9035 | ||
9036 | wxPyEndAllowThreads(__tstate); | |
9037 | if (PyErr_Occurred()) SWIG_fail; | |
9038 | } | |
9039 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 0); | |
9040 | return resultobj; | |
9041 | fail: | |
9042 | return NULL; | |
9043 | } | |
9044 | ||
9045 | ||
9046 | static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) { | |
9047 | PyObject *resultobj; | |
9048 | wxString *arg1 = 0 ; | |
9049 | wxString result; | |
9050 | bool temp1 = false ; | |
9051 | PyObject * obj0 = 0 ; | |
9052 | ||
9053 | if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail; | |
9054 | { | |
9055 | arg1 = wxString_in_helper(obj0); | |
9056 | if (arg1 == NULL) SWIG_fail; | |
9057 | temp1 = true; | |
9058 | } | |
9059 | { | |
9060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9061 | result = wxGetTranslation((wxString const &)*arg1); | |
9062 | ||
9063 | wxPyEndAllowThreads(__tstate); | |
9064 | if (PyErr_Occurred()) SWIG_fail; | |
9065 | } | |
9066 | { | |
9067 | #if wxUSE_UNICODE | |
9068 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9069 | #else | |
9070 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9071 | #endif | |
9072 | } | |
9073 | { | |
9074 | if (temp1) | |
9075 | delete arg1; | |
9076 | } | |
9077 | return resultobj; | |
9078 | fail: | |
9079 | { | |
9080 | if (temp1) | |
9081 | delete arg1; | |
9082 | } | |
9083 | return NULL; | |
9084 | } | |
9085 | ||
9086 | ||
9087 | static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) { | |
9088 | PyObject *resultobj; | |
9089 | wxString *arg1 = 0 ; | |
9090 | wxString *arg2 = 0 ; | |
9091 | size_t arg3 ; | |
9092 | wxString result; | |
9093 | bool temp1 = false ; | |
9094 | bool temp2 = false ; | |
9095 | PyObject * obj0 = 0 ; | |
9096 | PyObject * obj1 = 0 ; | |
9097 | PyObject * obj2 = 0 ; | |
9098 | ||
9099 | if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail; | |
9100 | { | |
9101 | arg1 = wxString_in_helper(obj0); | |
9102 | if (arg1 == NULL) SWIG_fail; | |
9103 | temp1 = true; | |
9104 | } | |
9105 | { | |
9106 | arg2 = wxString_in_helper(obj1); | |
9107 | if (arg2 == NULL) SWIG_fail; | |
9108 | temp2 = true; | |
9109 | } | |
9110 | arg3 = (size_t) PyInt_AsLong(obj2); | |
9111 | if (PyErr_Occurred()) SWIG_fail; | |
9112 | { | |
9113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9114 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
9115 | ||
9116 | wxPyEndAllowThreads(__tstate); | |
9117 | if (PyErr_Occurred()) SWIG_fail; | |
9118 | } | |
9119 | { | |
9120 | #if wxUSE_UNICODE | |
9121 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9122 | #else | |
9123 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9124 | #endif | |
9125 | } | |
9126 | { | |
9127 | if (temp1) | |
9128 | delete arg1; | |
9129 | } | |
9130 | { | |
9131 | if (temp2) | |
9132 | delete arg2; | |
9133 | } | |
9134 | return resultobj; | |
9135 | fail: | |
9136 | { | |
9137 | if (temp1) | |
9138 | delete arg1; | |
9139 | } | |
9140 | { | |
9141 | if (temp2) | |
9142 | delete arg2; | |
9143 | } | |
9144 | return NULL; | |
9145 | } | |
9146 | ||
9147 | ||
9148 | static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) { | |
9149 | int argc; | |
9150 | PyObject *argv[4]; | |
9151 | int ii; | |
9152 | ||
9153 | argc = PyObject_Length(args); | |
9154 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
9155 | argv[ii] = PyTuple_GetItem(args,ii); | |
9156 | } | |
9157 | if (argc == 1) { | |
9158 | int _v; | |
9159 | { | |
9160 | void *ptr; | |
9161 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) { | |
9162 | _v = 0; | |
9163 | PyErr_Clear(); | |
9164 | } else { | |
9165 | _v = 1; | |
9166 | } | |
9167 | } | |
9168 | if (_v) { | |
9169 | return _wrap_GetTranslation__SWIG_0(self,args); | |
9170 | } | |
9171 | } | |
9172 | if (argc == 3) { | |
9173 | int _v; | |
9174 | { | |
9175 | void *ptr; | |
9176 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) { | |
9177 | _v = 0; | |
9178 | PyErr_Clear(); | |
9179 | } else { | |
9180 | _v = 1; | |
9181 | } | |
9182 | } | |
9183 | if (_v) { | |
9184 | { | |
9185 | void *ptr; | |
9186 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) { | |
9187 | _v = 0; | |
9188 | PyErr_Clear(); | |
9189 | } else { | |
9190 | _v = 1; | |
9191 | } | |
9192 | } | |
9193 | if (_v) { | |
9194 | { | |
9195 | _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0; | |
9196 | } | |
9197 | if (_v) { | |
9198 | return _wrap_GetTranslation__SWIG_1(self,args); | |
9199 | } | |
9200 | } | |
9201 | } | |
9202 | } | |
9203 | ||
9204 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'"); | |
9205 | return NULL; | |
9206 | } | |
9207 | ||
9208 | ||
9209 | static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9210 | PyObject *resultobj; | |
9211 | wxEncodingConverter *result; | |
9212 | char *kwnames[] = { | |
9213 | NULL | |
9214 | }; | |
9215 | ||
9216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail; | |
9217 | { | |
9218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9219 | result = (wxEncodingConverter *)new wxEncodingConverter(); | |
9220 | ||
9221 | wxPyEndAllowThreads(__tstate); | |
9222 | if (PyErr_Occurred()) SWIG_fail; | |
9223 | } | |
9224 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEncodingConverter, 1); | |
9225 | return resultobj; | |
9226 | fail: | |
9227 | return NULL; | |
9228 | } | |
9229 | ||
9230 | ||
9231 | static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9232 | PyObject *resultobj; | |
9233 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
9234 | PyObject * obj0 = 0 ; | |
9235 | char *kwnames[] = { | |
9236 | (char *) "self", NULL | |
9237 | }; | |
9238 | ||
9239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail; | |
9240 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9241 | { | |
9242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9243 | delete arg1; | |
9244 | ||
9245 | wxPyEndAllowThreads(__tstate); | |
9246 | if (PyErr_Occurred()) SWIG_fail; | |
9247 | } | |
9248 | Py_INCREF(Py_None); resultobj = Py_None; | |
9249 | return resultobj; | |
9250 | fail: | |
9251 | return NULL; | |
9252 | } | |
9253 | ||
9254 | ||
9255 | static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9256 | PyObject *resultobj; | |
9257 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
9258 | int arg2 ; | |
9259 | int arg3 ; | |
9260 | int arg4 = (int) wxCONVERT_STRICT ; | |
9261 | bool result; | |
9262 | PyObject * obj0 = 0 ; | |
9263 | char *kwnames[] = { | |
9264 | (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL | |
9265 | }; | |
9266 | ||
9267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|i:EncodingConverter_Init",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
9268 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9269 | { | |
9270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9271 | result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4); | |
9272 | ||
9273 | wxPyEndAllowThreads(__tstate); | |
9274 | if (PyErr_Occurred()) SWIG_fail; | |
9275 | } | |
9276 | resultobj = PyInt_FromLong((long)result); | |
9277 | return resultobj; | |
9278 | fail: | |
9279 | return NULL; | |
9280 | } | |
9281 | ||
9282 | ||
9283 | static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9284 | PyObject *resultobj; | |
9285 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
9286 | wxString *arg2 = 0 ; | |
9287 | wxString result; | |
9288 | bool temp2 = false ; | |
9289 | PyObject * obj0 = 0 ; | |
9290 | PyObject * obj1 = 0 ; | |
9291 | char *kwnames[] = { | |
9292 | (char *) "self",(char *) "input", NULL | |
9293 | }; | |
9294 | ||
9295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail; | |
9296 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9297 | { | |
9298 | arg2 = wxString_in_helper(obj1); | |
9299 | if (arg2 == NULL) SWIG_fail; | |
9300 | temp2 = true; | |
9301 | } | |
9302 | { | |
9303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9304 | result = (arg1)->Convert((wxString const &)*arg2); | |
9305 | ||
9306 | wxPyEndAllowThreads(__tstate); | |
9307 | if (PyErr_Occurred()) SWIG_fail; | |
9308 | } | |
9309 | { | |
9310 | #if wxUSE_UNICODE | |
9311 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9312 | #else | |
9313 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9314 | #endif | |
9315 | } | |
9316 | { | |
9317 | if (temp2) | |
9318 | delete arg2; | |
9319 | } | |
9320 | return resultobj; | |
9321 | fail: | |
9322 | { | |
9323 | if (temp2) | |
9324 | delete arg2; | |
9325 | } | |
9326 | return NULL; | |
9327 | } | |
9328 | ||
9329 | ||
9330 | static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9331 | PyObject *resultobj; | |
9332 | int arg1 ; | |
9333 | int arg2 = (int) wxPLATFORM_CURRENT ; | |
9334 | wxFontEncodingArray result; | |
9335 | char *kwnames[] = { | |
9336 | (char *) "enc",(char *) "platform", NULL | |
9337 | }; | |
9338 | ||
9339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|i:EncodingConverter_GetPlatformEquivalents",kwnames,&arg1,&arg2)) goto fail; | |
9340 | { | |
9341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9342 | result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2); | |
9343 | ||
9344 | wxPyEndAllowThreads(__tstate); | |
9345 | if (PyErr_Occurred()) SWIG_fail; | |
9346 | } | |
9347 | { | |
9348 | resultobj = PyList_New(0); | |
9349 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
9350 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
9351 | PyList_Append(resultobj, number); | |
9352 | Py_DECREF(number); | |
9353 | } | |
9354 | } | |
9355 | return resultobj; | |
9356 | fail: | |
9357 | return NULL; | |
9358 | } | |
9359 | ||
9360 | ||
9361 | static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9362 | PyObject *resultobj; | |
9363 | int arg1 ; | |
9364 | wxFontEncodingArray result; | |
9365 | char *kwnames[] = { | |
9366 | (char *) "enc", NULL | |
9367 | }; | |
9368 | ||
9369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:EncodingConverter_GetAllEquivalents",kwnames,&arg1)) goto fail; | |
9370 | { | |
9371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9372 | result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1); | |
9373 | ||
9374 | wxPyEndAllowThreads(__tstate); | |
9375 | if (PyErr_Occurred()) SWIG_fail; | |
9376 | } | |
9377 | { | |
9378 | resultobj = PyList_New(0); | |
9379 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
9380 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
9381 | PyList_Append(resultobj, number); | |
9382 | Py_DECREF(number); | |
9383 | } | |
9384 | } | |
9385 | return resultobj; | |
9386 | fail: | |
9387 | return NULL; | |
9388 | } | |
9389 | ||
9390 | ||
9391 | static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9392 | PyObject *resultobj; | |
9393 | int arg1 ; | |
9394 | int arg2 ; | |
9395 | bool result; | |
9396 | char *kwnames[] = { | |
9397 | (char *) "encIn",(char *) "encOut", NULL | |
9398 | }; | |
9399 | ||
9400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii:EncodingConverter_CanConvert",kwnames,&arg1,&arg2)) goto fail; | |
9401 | { | |
9402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9403 | result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2); | |
9404 | ||
9405 | wxPyEndAllowThreads(__tstate); | |
9406 | if (PyErr_Occurred()) SWIG_fail; | |
9407 | } | |
9408 | resultobj = PyInt_FromLong((long)result); | |
9409 | return resultobj; | |
9410 | fail: | |
9411 | return NULL; | |
9412 | } | |
9413 | ||
9414 | ||
9415 | static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) { | |
9416 | PyObject *obj; | |
9417 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9418 | SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj); | |
9419 | Py_INCREF(obj); | |
9420 | return Py_BuildValue((char *)""); | |
9421 | } | |
9422 | static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9423 | PyObject *resultobj; | |
9424 | wxDC *arg1 = (wxDC *) 0 ; | |
9425 | PyObject * obj0 = 0 ; | |
9426 | char *kwnames[] = { | |
9427 | (char *) "self", NULL | |
9428 | }; | |
9429 | ||
9430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail; | |
9431 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9432 | { | |
9433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9434 | delete arg1; | |
9435 | ||
9436 | wxPyEndAllowThreads(__tstate); | |
9437 | if (PyErr_Occurred()) SWIG_fail; | |
9438 | } | |
9439 | Py_INCREF(Py_None); resultobj = Py_None; | |
9440 | return resultobj; | |
9441 | fail: | |
9442 | return NULL; | |
9443 | } | |
9444 | ||
9445 | ||
9446 | static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9447 | PyObject *resultobj; | |
9448 | wxDC *arg1 = (wxDC *) 0 ; | |
9449 | PyObject * obj0 = 0 ; | |
9450 | char *kwnames[] = { | |
9451 | (char *) "self", NULL | |
9452 | }; | |
9453 | ||
9454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail; | |
9455 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9456 | { | |
9457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9458 | (arg1)->BeginDrawing(); | |
9459 | ||
9460 | wxPyEndAllowThreads(__tstate); | |
9461 | if (PyErr_Occurred()) SWIG_fail; | |
9462 | } | |
9463 | Py_INCREF(Py_None); resultobj = Py_None; | |
9464 | return resultobj; | |
9465 | fail: | |
9466 | return NULL; | |
9467 | } | |
9468 | ||
9469 | ||
9470 | static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9471 | PyObject *resultobj; | |
9472 | wxDC *arg1 = (wxDC *) 0 ; | |
9473 | PyObject * obj0 = 0 ; | |
9474 | char *kwnames[] = { | |
9475 | (char *) "self", NULL | |
9476 | }; | |
9477 | ||
9478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail; | |
9479 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9480 | { | |
9481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9482 | (arg1)->EndDrawing(); | |
9483 | ||
9484 | wxPyEndAllowThreads(__tstate); | |
9485 | if (PyErr_Occurred()) SWIG_fail; | |
9486 | } | |
9487 | Py_INCREF(Py_None); resultobj = Py_None; | |
9488 | return resultobj; | |
9489 | fail: | |
9490 | return NULL; | |
9491 | } | |
9492 | ||
9493 | ||
9494 | static PyObject *_wrap_DC_FloodFillXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9495 | PyObject *resultobj; | |
9496 | wxDC *arg1 = (wxDC *) 0 ; | |
9497 | wxCoord arg2 ; | |
9498 | wxCoord arg3 ; | |
9499 | wxColour *arg4 = 0 ; | |
9500 | int arg5 = (int) wxFLOOD_SURFACE ; | |
9501 | bool result; | |
9502 | wxColour temp4 ; | |
9503 | PyObject * obj0 = 0 ; | |
9504 | PyObject * obj3 = 0 ; | |
9505 | char *kwnames[] = { | |
9506 | (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL | |
9507 | }; | |
9508 | ||
9509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO|i:DC_FloodFillXY",kwnames,&obj0,&arg2,&arg3,&obj3,&arg5)) goto fail; | |
9510 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9511 | { | |
9512 | arg4 = &temp4; | |
9513 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
9514 | } | |
9515 | { | |
9516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9517 | result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); | |
9518 | ||
9519 | wxPyEndAllowThreads(__tstate); | |
9520 | if (PyErr_Occurred()) SWIG_fail; | |
9521 | } | |
9522 | resultobj = PyInt_FromLong((long)result); | |
9523 | return resultobj; | |
9524 | fail: | |
9525 | return NULL; | |
9526 | } | |
9527 | ||
9528 | ||
9529 | static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9530 | PyObject *resultobj; | |
9531 | wxDC *arg1 = (wxDC *) 0 ; | |
9532 | wxPoint *arg2 = 0 ; | |
9533 | wxColour *arg3 = 0 ; | |
9534 | int arg4 = (int) wxFLOOD_SURFACE ; | |
9535 | bool result; | |
9536 | wxPoint temp2 ; | |
9537 | wxColour temp3 ; | |
9538 | PyObject * obj0 = 0 ; | |
9539 | PyObject * obj1 = 0 ; | |
9540 | PyObject * obj2 = 0 ; | |
9541 | char *kwnames[] = { | |
9542 | (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL | |
9543 | }; | |
9544 | ||
9545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|i:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail; | |
9546 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9547 | { | |
9548 | arg2 = &temp2; | |
9549 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9550 | } | |
9551 | { | |
9552 | arg3 = &temp3; | |
9553 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
9554 | } | |
9555 | { | |
9556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9557 | result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); | |
9558 | ||
9559 | wxPyEndAllowThreads(__tstate); | |
9560 | if (PyErr_Occurred()) SWIG_fail; | |
9561 | } | |
9562 | resultobj = PyInt_FromLong((long)result); | |
9563 | return resultobj; | |
9564 | fail: | |
9565 | return NULL; | |
9566 | } | |
9567 | ||
9568 | ||
9569 | static PyObject *_wrap_DC_GetPixelXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9570 | PyObject *resultobj; | |
9571 | wxDC *arg1 = (wxDC *) 0 ; | |
9572 | wxCoord arg2 ; | |
9573 | wxCoord arg3 ; | |
9574 | wxColour result; | |
9575 | PyObject * obj0 = 0 ; | |
9576 | char *kwnames[] = { | |
9577 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9578 | }; | |
9579 | ||
9580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_GetPixelXY",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
9581 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9582 | { | |
9583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9584 | result = wxDC_GetPixelXY(arg1,arg2,arg3); | |
9585 | ||
9586 | wxPyEndAllowThreads(__tstate); | |
9587 | if (PyErr_Occurred()) SWIG_fail; | |
9588 | } | |
9589 | { | |
9590 | wxColour * resultptr; | |
9591 | resultptr = new wxColour((wxColour &) result); | |
9592 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
9593 | } | |
9594 | return resultobj; | |
9595 | fail: | |
9596 | return NULL; | |
9597 | } | |
9598 | ||
9599 | ||
9600 | static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9601 | PyObject *resultobj; | |
9602 | wxDC *arg1 = (wxDC *) 0 ; | |
9603 | wxPoint *arg2 = 0 ; | |
9604 | wxColour result; | |
9605 | wxPoint temp2 ; | |
9606 | PyObject * obj0 = 0 ; | |
9607 | PyObject * obj1 = 0 ; | |
9608 | char *kwnames[] = { | |
9609 | (char *) "self",(char *) "pt", NULL | |
9610 | }; | |
9611 | ||
9612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail; | |
9613 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9614 | { | |
9615 | arg2 = &temp2; | |
9616 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9617 | } | |
9618 | { | |
9619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9620 | result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2); | |
9621 | ||
9622 | wxPyEndAllowThreads(__tstate); | |
9623 | if (PyErr_Occurred()) SWIG_fail; | |
9624 | } | |
9625 | { | |
9626 | wxColour * resultptr; | |
9627 | resultptr = new wxColour((wxColour &) result); | |
9628 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
9629 | } | |
9630 | return resultobj; | |
9631 | fail: | |
9632 | return NULL; | |
9633 | } | |
9634 | ||
9635 | ||
9636 | static PyObject *_wrap_DC_DrawLineXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9637 | PyObject *resultobj; | |
9638 | wxDC *arg1 = (wxDC *) 0 ; | |
9639 | wxCoord arg2 ; | |
9640 | wxCoord arg3 ; | |
9641 | wxCoord arg4 ; | |
9642 | wxCoord arg5 ; | |
9643 | PyObject * obj0 = 0 ; | |
9644 | char *kwnames[] = { | |
9645 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
9646 | }; | |
9647 | ||
9648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawLineXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
9649 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9650 | { | |
9651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9652 | (arg1)->DrawLine(arg2,arg3,arg4,arg5); | |
9653 | ||
9654 | wxPyEndAllowThreads(__tstate); | |
9655 | if (PyErr_Occurred()) SWIG_fail; | |
9656 | } | |
9657 | Py_INCREF(Py_None); resultobj = Py_None; | |
9658 | return resultobj; | |
9659 | fail: | |
9660 | return NULL; | |
9661 | } | |
9662 | ||
9663 | ||
9664 | static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9665 | PyObject *resultobj; | |
9666 | wxDC *arg1 = (wxDC *) 0 ; | |
9667 | wxPoint *arg2 = 0 ; | |
9668 | wxPoint *arg3 = 0 ; | |
9669 | wxPoint temp2 ; | |
9670 | wxPoint temp3 ; | |
9671 | PyObject * obj0 = 0 ; | |
9672 | PyObject * obj1 = 0 ; | |
9673 | PyObject * obj2 = 0 ; | |
9674 | char *kwnames[] = { | |
9675 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL | |
9676 | }; | |
9677 | ||
9678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9679 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9680 | { | |
9681 | arg2 = &temp2; | |
9682 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9683 | } | |
9684 | { | |
9685 | arg3 = &temp3; | |
9686 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
9687 | } | |
9688 | { | |
9689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9690 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
9691 | ||
9692 | wxPyEndAllowThreads(__tstate); | |
9693 | if (PyErr_Occurred()) SWIG_fail; | |
9694 | } | |
9695 | Py_INCREF(Py_None); resultobj = Py_None; | |
9696 | return resultobj; | |
9697 | fail: | |
9698 | return NULL; | |
9699 | } | |
9700 | ||
9701 | ||
9702 | static PyObject *_wrap_DC_CrossHairXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9703 | PyObject *resultobj; | |
9704 | wxDC *arg1 = (wxDC *) 0 ; | |
9705 | wxCoord arg2 ; | |
9706 | wxCoord arg3 ; | |
9707 | PyObject * obj0 = 0 ; | |
9708 | char *kwnames[] = { | |
9709 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9710 | }; | |
9711 | ||
9712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_CrossHairXY",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
9713 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9714 | { | |
9715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9716 | (arg1)->CrossHair(arg2,arg3); | |
9717 | ||
9718 | wxPyEndAllowThreads(__tstate); | |
9719 | if (PyErr_Occurred()) SWIG_fail; | |
9720 | } | |
9721 | Py_INCREF(Py_None); resultobj = Py_None; | |
9722 | return resultobj; | |
9723 | fail: | |
9724 | return NULL; | |
9725 | } | |
9726 | ||
9727 | ||
9728 | static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9729 | PyObject *resultobj; | |
9730 | wxDC *arg1 = (wxDC *) 0 ; | |
9731 | wxPoint *arg2 = 0 ; | |
9732 | wxPoint temp2 ; | |
9733 | PyObject * obj0 = 0 ; | |
9734 | PyObject * obj1 = 0 ; | |
9735 | char *kwnames[] = { | |
9736 | (char *) "self",(char *) "pt", NULL | |
9737 | }; | |
9738 | ||
9739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail; | |
9740 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9741 | { | |
9742 | arg2 = &temp2; | |
9743 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9744 | } | |
9745 | { | |
9746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9747 | (arg1)->CrossHair((wxPoint const &)*arg2); | |
9748 | ||
9749 | wxPyEndAllowThreads(__tstate); | |
9750 | if (PyErr_Occurred()) SWIG_fail; | |
9751 | } | |
9752 | Py_INCREF(Py_None); resultobj = Py_None; | |
9753 | return resultobj; | |
9754 | fail: | |
9755 | return NULL; | |
9756 | } | |
9757 | ||
9758 | ||
9759 | static PyObject *_wrap_DC_DrawArcXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9760 | PyObject *resultobj; | |
9761 | wxDC *arg1 = (wxDC *) 0 ; | |
9762 | wxCoord arg2 ; | |
9763 | wxCoord arg3 ; | |
9764 | wxCoord arg4 ; | |
9765 | wxCoord arg5 ; | |
9766 | wxCoord arg6 ; | |
9767 | wxCoord arg7 ; | |
9768 | PyObject * obj0 = 0 ; | |
9769 | char *kwnames[] = { | |
9770 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL | |
9771 | }; | |
9772 | ||
9773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiiiii:DC_DrawArcXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7)) goto fail; | |
9774 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9775 | { | |
9776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9777 | (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
9778 | ||
9779 | wxPyEndAllowThreads(__tstate); | |
9780 | if (PyErr_Occurred()) SWIG_fail; | |
9781 | } | |
9782 | Py_INCREF(Py_None); resultobj = Py_None; | |
9783 | return resultobj; | |
9784 | fail: | |
9785 | return NULL; | |
9786 | } | |
9787 | ||
9788 | ||
9789 | static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9790 | PyObject *resultobj; | |
9791 | wxDC *arg1 = (wxDC *) 0 ; | |
9792 | wxPoint *arg2 = 0 ; | |
9793 | wxPoint *arg3 = 0 ; | |
9794 | wxPoint *arg4 = 0 ; | |
9795 | wxPoint temp2 ; | |
9796 | wxPoint temp3 ; | |
9797 | wxPoint temp4 ; | |
9798 | PyObject * obj0 = 0 ; | |
9799 | PyObject * obj1 = 0 ; | |
9800 | PyObject * obj2 = 0 ; | |
9801 | PyObject * obj3 = 0 ; | |
9802 | char *kwnames[] = { | |
9803 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL | |
9804 | }; | |
9805 | ||
9806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9807 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9808 | { | |
9809 | arg2 = &temp2; | |
9810 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9811 | } | |
9812 | { | |
9813 | arg3 = &temp3; | |
9814 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
9815 | } | |
9816 | { | |
9817 | arg4 = &temp4; | |
9818 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9819 | } | |
9820 | { | |
9821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9822 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
9823 | ||
9824 | wxPyEndAllowThreads(__tstate); | |
9825 | if (PyErr_Occurred()) SWIG_fail; | |
9826 | } | |
9827 | Py_INCREF(Py_None); resultobj = Py_None; | |
9828 | return resultobj; | |
9829 | fail: | |
9830 | return NULL; | |
9831 | } | |
9832 | ||
9833 | ||
9834 | static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9835 | PyObject *resultobj; | |
9836 | wxDC *arg1 = (wxDC *) 0 ; | |
9837 | wxCoord arg2 ; | |
9838 | wxCoord arg3 ; | |
9839 | wxCoord arg4 ; | |
9840 | wxCoord arg5 ; | |
9841 | PyObject * obj0 = 0 ; | |
9842 | char *kwnames[] = { | |
9843 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
9844 | }; | |
9845 | ||
9846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawCheckMarkXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
9847 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9848 | { | |
9849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9850 | (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); | |
9851 | ||
9852 | wxPyEndAllowThreads(__tstate); | |
9853 | if (PyErr_Occurred()) SWIG_fail; | |
9854 | } | |
9855 | Py_INCREF(Py_None); resultobj = Py_None; | |
9856 | return resultobj; | |
9857 | fail: | |
9858 | return NULL; | |
9859 | } | |
9860 | ||
9861 | ||
9862 | static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9863 | PyObject *resultobj; | |
9864 | wxDC *arg1 = (wxDC *) 0 ; | |
9865 | wxRect *arg2 = 0 ; | |
9866 | wxRect temp2 ; | |
9867 | PyObject * obj0 = 0 ; | |
9868 | PyObject * obj1 = 0 ; | |
9869 | char *kwnames[] = { | |
9870 | (char *) "self",(char *) "rect", NULL | |
9871 | }; | |
9872 | ||
9873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail; | |
9874 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9875 | { | |
9876 | arg2 = &temp2; | |
9877 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
9878 | } | |
9879 | { | |
9880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9881 | (arg1)->DrawCheckMark((wxRect const &)*arg2); | |
9882 | ||
9883 | wxPyEndAllowThreads(__tstate); | |
9884 | if (PyErr_Occurred()) SWIG_fail; | |
9885 | } | |
9886 | Py_INCREF(Py_None); resultobj = Py_None; | |
9887 | return resultobj; | |
9888 | fail: | |
9889 | return NULL; | |
9890 | } | |
9891 | ||
9892 | ||
9893 | static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9894 | PyObject *resultobj; | |
9895 | wxDC *arg1 = (wxDC *) 0 ; | |
9896 | wxCoord arg2 ; | |
9897 | wxCoord arg3 ; | |
9898 | wxCoord arg4 ; | |
9899 | wxCoord arg5 ; | |
9900 | double arg6 ; | |
9901 | double arg7 ; | |
9902 | PyObject * obj0 = 0 ; | |
9903 | char *kwnames[] = { | |
9904 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL | |
9905 | }; | |
9906 | ||
9907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiiidd:DC_DrawEllipticArcXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7)) goto fail; | |
9908 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9909 | { | |
9910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9911 | (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
9912 | ||
9913 | wxPyEndAllowThreads(__tstate); | |
9914 | if (PyErr_Occurred()) SWIG_fail; | |
9915 | } | |
9916 | Py_INCREF(Py_None); resultobj = Py_None; | |
9917 | return resultobj; | |
9918 | fail: | |
9919 | return NULL; | |
9920 | } | |
9921 | ||
9922 | ||
9923 | static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9924 | PyObject *resultobj; | |
9925 | wxDC *arg1 = (wxDC *) 0 ; | |
9926 | wxPoint *arg2 = 0 ; | |
9927 | wxSize *arg3 = 0 ; | |
9928 | double arg4 ; | |
9929 | double arg5 ; | |
9930 | wxPoint temp2 ; | |
9931 | wxSize temp3 ; | |
9932 | PyObject * obj0 = 0 ; | |
9933 | PyObject * obj1 = 0 ; | |
9934 | PyObject * obj2 = 0 ; | |
9935 | char *kwnames[] = { | |
9936 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL | |
9937 | }; | |
9938 | ||
9939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOdd:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5)) goto fail; | |
9940 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9941 | { | |
9942 | arg2 = &temp2; | |
9943 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9944 | } | |
9945 | { | |
9946 | arg3 = &temp3; | |
9947 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
9948 | } | |
9949 | { | |
9950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9951 | (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); | |
9952 | ||
9953 | wxPyEndAllowThreads(__tstate); | |
9954 | if (PyErr_Occurred()) SWIG_fail; | |
9955 | } | |
9956 | Py_INCREF(Py_None); resultobj = Py_None; | |
9957 | return resultobj; | |
9958 | fail: | |
9959 | return NULL; | |
9960 | } | |
9961 | ||
9962 | ||
9963 | static PyObject *_wrap_DC_DrawPointXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9964 | PyObject *resultobj; | |
9965 | wxDC *arg1 = (wxDC *) 0 ; | |
9966 | wxCoord arg2 ; | |
9967 | wxCoord arg3 ; | |
9968 | PyObject * obj0 = 0 ; | |
9969 | char *kwnames[] = { | |
9970 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9971 | }; | |
9972 | ||
9973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_DrawPointXY",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
9974 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9975 | { | |
9976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9977 | (arg1)->DrawPoint(arg2,arg3); | |
9978 | ||
9979 | wxPyEndAllowThreads(__tstate); | |
9980 | if (PyErr_Occurred()) SWIG_fail; | |
9981 | } | |
9982 | Py_INCREF(Py_None); resultobj = Py_None; | |
9983 | return resultobj; | |
9984 | fail: | |
9985 | return NULL; | |
9986 | } | |
9987 | ||
9988 | ||
9989 | static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9990 | PyObject *resultobj; | |
9991 | wxDC *arg1 = (wxDC *) 0 ; | |
9992 | wxPoint *arg2 = 0 ; | |
9993 | wxPoint temp2 ; | |
9994 | PyObject * obj0 = 0 ; | |
9995 | PyObject * obj1 = 0 ; | |
9996 | char *kwnames[] = { | |
9997 | (char *) "self",(char *) "pt", NULL | |
9998 | }; | |
9999 | ||
10000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",kwnames,&obj0,&obj1)) goto fail; | |
10001 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10002 | { | |
10003 | arg2 = &temp2; | |
10004 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10005 | } | |
10006 | { | |
10007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10008 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
10009 | ||
10010 | wxPyEndAllowThreads(__tstate); | |
10011 | if (PyErr_Occurred()) SWIG_fail; | |
10012 | } | |
10013 | Py_INCREF(Py_None); resultobj = Py_None; | |
10014 | return resultobj; | |
10015 | fail: | |
10016 | return NULL; | |
10017 | } | |
10018 | ||
10019 | ||
10020 | static PyObject *_wrap_DC_DrawRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10021 | PyObject *resultobj; | |
10022 | wxDC *arg1 = (wxDC *) 0 ; | |
10023 | wxCoord arg2 ; | |
10024 | wxCoord arg3 ; | |
10025 | wxCoord arg4 ; | |
10026 | wxCoord arg5 ; | |
10027 | PyObject * obj0 = 0 ; | |
10028 | char *kwnames[] = { | |
10029 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
10030 | }; | |
10031 | ||
10032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawRectangleXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
10033 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10034 | { | |
10035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10036 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
10037 | ||
10038 | wxPyEndAllowThreads(__tstate); | |
10039 | if (PyErr_Occurred()) SWIG_fail; | |
10040 | } | |
10041 | Py_INCREF(Py_None); resultobj = Py_None; | |
10042 | return resultobj; | |
10043 | fail: | |
10044 | return NULL; | |
10045 | } | |
10046 | ||
10047 | ||
10048 | static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10049 | PyObject *resultobj; | |
10050 | wxDC *arg1 = (wxDC *) 0 ; | |
10051 | wxPoint *arg2 = 0 ; | |
10052 | wxSize *arg3 = 0 ; | |
10053 | wxPoint temp2 ; | |
10054 | wxSize temp3 ; | |
10055 | PyObject * obj0 = 0 ; | |
10056 | PyObject * obj1 = 0 ; | |
10057 | PyObject * obj2 = 0 ; | |
10058 | char *kwnames[] = { | |
10059 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
10060 | }; | |
10061 | ||
10062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10063 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10064 | { | |
10065 | arg2 = &temp2; | |
10066 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10067 | } | |
10068 | { | |
10069 | arg3 = &temp3; | |
10070 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
10071 | } | |
10072 | { | |
10073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10074 | (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
10075 | ||
10076 | wxPyEndAllowThreads(__tstate); | |
10077 | if (PyErr_Occurred()) SWIG_fail; | |
10078 | } | |
10079 | Py_INCREF(Py_None); resultobj = Py_None; | |
10080 | return resultobj; | |
10081 | fail: | |
10082 | return NULL; | |
10083 | } | |
10084 | ||
10085 | ||
10086 | static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10087 | PyObject *resultobj; | |
10088 | wxDC *arg1 = (wxDC *) 0 ; | |
10089 | wxRect *arg2 = 0 ; | |
10090 | wxRect temp2 ; | |
10091 | PyObject * obj0 = 0 ; | |
10092 | PyObject * obj1 = 0 ; | |
10093 | char *kwnames[] = { | |
10094 | (char *) "self",(char *) "rect", NULL | |
10095 | }; | |
10096 | ||
10097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail; | |
10098 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10099 | { | |
10100 | arg2 = &temp2; | |
10101 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10102 | } | |
10103 | { | |
10104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10105 | (arg1)->DrawRectangle((wxRect const &)*arg2); | |
10106 | ||
10107 | wxPyEndAllowThreads(__tstate); | |
10108 | if (PyErr_Occurred()) SWIG_fail; | |
10109 | } | |
10110 | Py_INCREF(Py_None); resultobj = Py_None; | |
10111 | return resultobj; | |
10112 | fail: | |
10113 | return NULL; | |
10114 | } | |
10115 | ||
10116 | ||
10117 | static PyObject *_wrap_DC_DrawRoundedRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10118 | PyObject *resultobj; | |
10119 | wxDC *arg1 = (wxDC *) 0 ; | |
10120 | wxCoord arg2 ; | |
10121 | wxCoord arg3 ; | |
10122 | wxCoord arg4 ; | |
10123 | wxCoord arg5 ; | |
10124 | double arg6 ; | |
10125 | PyObject * obj0 = 0 ; | |
10126 | char *kwnames[] = { | |
10127 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL | |
10128 | }; | |
10129 | ||
10130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiiid:DC_DrawRoundedRectangleXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
10131 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10132 | { | |
10133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10134 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); | |
10135 | ||
10136 | wxPyEndAllowThreads(__tstate); | |
10137 | if (PyErr_Occurred()) SWIG_fail; | |
10138 | } | |
10139 | Py_INCREF(Py_None); resultobj = Py_None; | |
10140 | return resultobj; | |
10141 | fail: | |
10142 | return NULL; | |
10143 | } | |
10144 | ||
10145 | ||
10146 | static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10147 | PyObject *resultobj; | |
10148 | wxDC *arg1 = (wxDC *) 0 ; | |
10149 | wxPoint *arg2 = 0 ; | |
10150 | wxSize *arg3 = 0 ; | |
10151 | double arg4 ; | |
10152 | wxPoint temp2 ; | |
10153 | wxSize temp3 ; | |
10154 | PyObject * obj0 = 0 ; | |
10155 | PyObject * obj1 = 0 ; | |
10156 | PyObject * obj2 = 0 ; | |
10157 | char *kwnames[] = { | |
10158 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL | |
10159 | }; | |
10160 | ||
10161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOd:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail; | |
10162 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10163 | { | |
10164 | arg2 = &temp2; | |
10165 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10166 | } | |
10167 | { | |
10168 | arg3 = &temp3; | |
10169 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
10170 | } | |
10171 | { | |
10172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10173 | (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); | |
10174 | ||
10175 | wxPyEndAllowThreads(__tstate); | |
10176 | if (PyErr_Occurred()) SWIG_fail; | |
10177 | } | |
10178 | Py_INCREF(Py_None); resultobj = Py_None; | |
10179 | return resultobj; | |
10180 | fail: | |
10181 | return NULL; | |
10182 | } | |
10183 | ||
10184 | ||
10185 | static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10186 | PyObject *resultobj; | |
10187 | wxDC *arg1 = (wxDC *) 0 ; | |
10188 | wxRect *arg2 = 0 ; | |
10189 | double arg3 ; | |
10190 | wxRect temp2 ; | |
10191 | PyObject * obj0 = 0 ; | |
10192 | PyObject * obj1 = 0 ; | |
10193 | char *kwnames[] = { | |
10194 | (char *) "self",(char *) "r",(char *) "radius", NULL | |
10195 | }; | |
10196 | ||
10197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOd:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
10198 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10199 | { | |
10200 | arg2 = &temp2; | |
10201 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10202 | } | |
10203 | { | |
10204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10205 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); | |
10206 | ||
10207 | wxPyEndAllowThreads(__tstate); | |
10208 | if (PyErr_Occurred()) SWIG_fail; | |
10209 | } | |
10210 | Py_INCREF(Py_None); resultobj = Py_None; | |
10211 | return resultobj; | |
10212 | fail: | |
10213 | return NULL; | |
10214 | } | |
10215 | ||
10216 | ||
10217 | static PyObject *_wrap_DC_DrawCircleXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10218 | PyObject *resultobj; | |
10219 | wxDC *arg1 = (wxDC *) 0 ; | |
10220 | wxCoord arg2 ; | |
10221 | wxCoord arg3 ; | |
10222 | wxCoord arg4 ; | |
10223 | PyObject * obj0 = 0 ; | |
10224 | char *kwnames[] = { | |
10225 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL | |
10226 | }; | |
10227 | ||
10228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:DC_DrawCircleXY",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
10229 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10230 | { | |
10231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10232 | (arg1)->DrawCircle(arg2,arg3,arg4); | |
10233 | ||
10234 | wxPyEndAllowThreads(__tstate); | |
10235 | if (PyErr_Occurred()) SWIG_fail; | |
10236 | } | |
10237 | Py_INCREF(Py_None); resultobj = Py_None; | |
10238 | return resultobj; | |
10239 | fail: | |
10240 | return NULL; | |
10241 | } | |
10242 | ||
10243 | ||
10244 | static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10245 | PyObject *resultobj; | |
10246 | wxDC *arg1 = (wxDC *) 0 ; | |
10247 | wxPoint *arg2 = 0 ; | |
10248 | wxCoord arg3 ; | |
10249 | wxPoint temp2 ; | |
10250 | PyObject * obj0 = 0 ; | |
10251 | PyObject * obj1 = 0 ; | |
10252 | char *kwnames[] = { | |
10253 | (char *) "self",(char *) "pt",(char *) "radius", NULL | |
10254 | }; | |
10255 | ||
10256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:DC_DrawCircle",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
10257 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10258 | { | |
10259 | arg2 = &temp2; | |
10260 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10261 | } | |
10262 | { | |
10263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10264 | (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); | |
10265 | ||
10266 | wxPyEndAllowThreads(__tstate); | |
10267 | if (PyErr_Occurred()) SWIG_fail; | |
10268 | } | |
10269 | Py_INCREF(Py_None); resultobj = Py_None; | |
10270 | return resultobj; | |
10271 | fail: | |
10272 | return NULL; | |
10273 | } | |
10274 | ||
10275 | ||
10276 | static PyObject *_wrap_DC_DrawEllipseXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10277 | PyObject *resultobj; | |
10278 | wxDC *arg1 = (wxDC *) 0 ; | |
10279 | wxCoord arg2 ; | |
10280 | wxCoord arg3 ; | |
10281 | wxCoord arg4 ; | |
10282 | wxCoord arg5 ; | |
10283 | PyObject * obj0 = 0 ; | |
10284 | char *kwnames[] = { | |
10285 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
10286 | }; | |
10287 | ||
10288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawEllipseXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
10289 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10290 | { | |
10291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10292 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); | |
10293 | ||
10294 | wxPyEndAllowThreads(__tstate); | |
10295 | if (PyErr_Occurred()) SWIG_fail; | |
10296 | } | |
10297 | Py_INCREF(Py_None); resultobj = Py_None; | |
10298 | return resultobj; | |
10299 | fail: | |
10300 | return NULL; | |
10301 | } | |
10302 | ||
10303 | ||
10304 | static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10305 | PyObject *resultobj; | |
10306 | wxDC *arg1 = (wxDC *) 0 ; | |
10307 | wxPoint *arg2 = 0 ; | |
10308 | wxSize *arg3 = 0 ; | |
10309 | wxPoint temp2 ; | |
10310 | wxSize temp3 ; | |
10311 | PyObject * obj0 = 0 ; | |
10312 | PyObject * obj1 = 0 ; | |
10313 | PyObject * obj2 = 0 ; | |
10314 | char *kwnames[] = { | |
10315 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
10316 | }; | |
10317 | ||
10318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10319 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10320 | { | |
10321 | arg2 = &temp2; | |
10322 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10323 | } | |
10324 | { | |
10325 | arg3 = &temp3; | |
10326 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
10327 | } | |
10328 | { | |
10329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10330 | (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
10331 | ||
10332 | wxPyEndAllowThreads(__tstate); | |
10333 | if (PyErr_Occurred()) SWIG_fail; | |
10334 | } | |
10335 | Py_INCREF(Py_None); resultobj = Py_None; | |
10336 | return resultobj; | |
10337 | fail: | |
10338 | return NULL; | |
10339 | } | |
10340 | ||
10341 | ||
10342 | static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10343 | PyObject *resultobj; | |
10344 | wxDC *arg1 = (wxDC *) 0 ; | |
10345 | wxRect *arg2 = 0 ; | |
10346 | wxRect temp2 ; | |
10347 | PyObject * obj0 = 0 ; | |
10348 | PyObject * obj1 = 0 ; | |
10349 | char *kwnames[] = { | |
10350 | (char *) "self",(char *) "rect", NULL | |
10351 | }; | |
10352 | ||
10353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail; | |
10354 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10355 | { | |
10356 | arg2 = &temp2; | |
10357 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10358 | } | |
10359 | { | |
10360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10361 | (arg1)->DrawEllipse((wxRect const &)*arg2); | |
10362 | ||
10363 | wxPyEndAllowThreads(__tstate); | |
10364 | if (PyErr_Occurred()) SWIG_fail; | |
10365 | } | |
10366 | Py_INCREF(Py_None); resultobj = Py_None; | |
10367 | return resultobj; | |
10368 | fail: | |
10369 | return NULL; | |
10370 | } | |
10371 | ||
10372 | ||
10373 | static PyObject *_wrap_DC_DrawIconXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10374 | PyObject *resultobj; | |
10375 | wxDC *arg1 = (wxDC *) 0 ; | |
10376 | wxIcon *arg2 = 0 ; | |
10377 | wxCoord arg3 ; | |
10378 | wxCoord arg4 ; | |
10379 | PyObject * obj0 = 0 ; | |
10380 | PyObject * obj1 = 0 ; | |
10381 | char *kwnames[] = { | |
10382 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL | |
10383 | }; | |
10384 | ||
10385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:DC_DrawIconXY",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail; | |
10386 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10387 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10388 | if (arg2 == NULL) { | |
10389 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10390 | } | |
10391 | { | |
10392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10393 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); | |
10394 | ||
10395 | wxPyEndAllowThreads(__tstate); | |
10396 | if (PyErr_Occurred()) SWIG_fail; | |
10397 | } | |
10398 | Py_INCREF(Py_None); resultobj = Py_None; | |
10399 | return resultobj; | |
10400 | fail: | |
10401 | return NULL; | |
10402 | } | |
10403 | ||
10404 | ||
10405 | static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10406 | PyObject *resultobj; | |
10407 | wxDC *arg1 = (wxDC *) 0 ; | |
10408 | wxIcon *arg2 = 0 ; | |
10409 | wxPoint *arg3 = 0 ; | |
10410 | wxPoint temp3 ; | |
10411 | PyObject * obj0 = 0 ; | |
10412 | PyObject * obj1 = 0 ; | |
10413 | PyObject * obj2 = 0 ; | |
10414 | char *kwnames[] = { | |
10415 | (char *) "self",(char *) "icon",(char *) "pt", NULL | |
10416 | }; | |
10417 | ||
10418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10419 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10420 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10421 | if (arg2 == NULL) { | |
10422 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10423 | } | |
10424 | { | |
10425 | arg3 = &temp3; | |
10426 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10427 | } | |
10428 | { | |
10429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10430 | (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); | |
10431 | ||
10432 | wxPyEndAllowThreads(__tstate); | |
10433 | if (PyErr_Occurred()) SWIG_fail; | |
10434 | } | |
10435 | Py_INCREF(Py_None); resultobj = Py_None; | |
10436 | return resultobj; | |
10437 | fail: | |
10438 | return NULL; | |
10439 | } | |
10440 | ||
10441 | ||
10442 | static PyObject *_wrap_DC_DrawBitmapXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10443 | PyObject *resultobj; | |
10444 | wxDC *arg1 = (wxDC *) 0 ; | |
10445 | wxBitmap *arg2 = 0 ; | |
10446 | wxCoord arg3 ; | |
10447 | wxCoord arg4 ; | |
10448 | bool arg5 = (bool) FALSE ; | |
10449 | PyObject * obj0 = 0 ; | |
10450 | PyObject * obj1 = 0 ; | |
10451 | PyObject * obj4 = 0 ; | |
10452 | char *kwnames[] = { | |
10453 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL | |
10454 | }; | |
10455 | ||
10456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii|O:DC_DrawBitmapXY",kwnames,&obj0,&obj1,&arg3,&arg4,&obj4)) goto fail; | |
10457 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10458 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10459 | if (arg2 == NULL) { | |
10460 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10461 | } | |
10462 | if (obj4) { | |
10463 | arg5 = PyInt_AsLong(obj4) ? true : false; | |
10464 | if (PyErr_Occurred()) SWIG_fail; | |
10465 | } | |
10466 | { | |
10467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10468 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); | |
10469 | ||
10470 | wxPyEndAllowThreads(__tstate); | |
10471 | if (PyErr_Occurred()) SWIG_fail; | |
10472 | } | |
10473 | Py_INCREF(Py_None); resultobj = Py_None; | |
10474 | return resultobj; | |
10475 | fail: | |
10476 | return NULL; | |
10477 | } | |
10478 | ||
10479 | ||
10480 | static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10481 | PyObject *resultobj; | |
10482 | wxDC *arg1 = (wxDC *) 0 ; | |
10483 | wxBitmap *arg2 = 0 ; | |
10484 | wxPoint *arg3 = 0 ; | |
10485 | bool arg4 = (bool) FALSE ; | |
10486 | wxPoint temp3 ; | |
10487 | PyObject * obj0 = 0 ; | |
10488 | PyObject * obj1 = 0 ; | |
10489 | PyObject * obj2 = 0 ; | |
10490 | PyObject * obj3 = 0 ; | |
10491 | char *kwnames[] = { | |
10492 | (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL | |
10493 | }; | |
10494 | ||
10495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10496 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10497 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10498 | if (arg2 == NULL) { | |
10499 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10500 | } | |
10501 | { | |
10502 | arg3 = &temp3; | |
10503 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10504 | } | |
10505 | if (obj3) { | |
10506 | arg4 = PyInt_AsLong(obj3) ? true : false; | |
10507 | if (PyErr_Occurred()) SWIG_fail; | |
10508 | } | |
10509 | { | |
10510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10511 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); | |
10512 | ||
10513 | wxPyEndAllowThreads(__tstate); | |
10514 | if (PyErr_Occurred()) SWIG_fail; | |
10515 | } | |
10516 | Py_INCREF(Py_None); resultobj = Py_None; | |
10517 | return resultobj; | |
10518 | fail: | |
10519 | return NULL; | |
10520 | } | |
10521 | ||
10522 | ||
10523 | static PyObject *_wrap_DC_DrawTextXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10524 | PyObject *resultobj; | |
10525 | wxDC *arg1 = (wxDC *) 0 ; | |
10526 | wxString *arg2 = 0 ; | |
10527 | wxCoord arg3 ; | |
10528 | wxCoord arg4 ; | |
10529 | bool temp2 = false ; | |
10530 | PyObject * obj0 = 0 ; | |
10531 | PyObject * obj1 = 0 ; | |
10532 | char *kwnames[] = { | |
10533 | (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL | |
10534 | }; | |
10535 | ||
10536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:DC_DrawTextXY",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail; | |
10537 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10538 | { | |
10539 | arg2 = wxString_in_helper(obj1); | |
10540 | if (arg2 == NULL) SWIG_fail; | |
10541 | temp2 = true; | |
10542 | } | |
10543 | { | |
10544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10545 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); | |
10546 | ||
10547 | wxPyEndAllowThreads(__tstate); | |
10548 | if (PyErr_Occurred()) SWIG_fail; | |
10549 | } | |
10550 | Py_INCREF(Py_None); resultobj = Py_None; | |
10551 | { | |
10552 | if (temp2) | |
10553 | delete arg2; | |
10554 | } | |
10555 | return resultobj; | |
10556 | fail: | |
10557 | { | |
10558 | if (temp2) | |
10559 | delete arg2; | |
10560 | } | |
10561 | return NULL; | |
10562 | } | |
10563 | ||
10564 | ||
10565 | static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10566 | PyObject *resultobj; | |
10567 | wxDC *arg1 = (wxDC *) 0 ; | |
10568 | wxString *arg2 = 0 ; | |
10569 | wxPoint *arg3 = 0 ; | |
10570 | bool temp2 = false ; | |
10571 | wxPoint temp3 ; | |
10572 | PyObject * obj0 = 0 ; | |
10573 | PyObject * obj1 = 0 ; | |
10574 | PyObject * obj2 = 0 ; | |
10575 | char *kwnames[] = { | |
10576 | (char *) "self",(char *) "text",(char *) "pt", NULL | |
10577 | }; | |
10578 | ||
10579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10580 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10581 | { | |
10582 | arg2 = wxString_in_helper(obj1); | |
10583 | if (arg2 == NULL) SWIG_fail; | |
10584 | temp2 = true; | |
10585 | } | |
10586 | { | |
10587 | arg3 = &temp3; | |
10588 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10589 | } | |
10590 | { | |
10591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10592 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
10593 | ||
10594 | wxPyEndAllowThreads(__tstate); | |
10595 | if (PyErr_Occurred()) SWIG_fail; | |
10596 | } | |
10597 | Py_INCREF(Py_None); resultobj = Py_None; | |
10598 | { | |
10599 | if (temp2) | |
10600 | delete arg2; | |
10601 | } | |
10602 | return resultobj; | |
10603 | fail: | |
10604 | { | |
10605 | if (temp2) | |
10606 | delete arg2; | |
10607 | } | |
10608 | return NULL; | |
10609 | } | |
10610 | ||
10611 | ||
10612 | static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10613 | PyObject *resultobj; | |
10614 | wxDC *arg1 = (wxDC *) 0 ; | |
10615 | wxString *arg2 = 0 ; | |
10616 | wxCoord arg3 ; | |
10617 | wxCoord arg4 ; | |
10618 | double arg5 ; | |
10619 | bool temp2 = false ; | |
10620 | PyObject * obj0 = 0 ; | |
10621 | PyObject * obj1 = 0 ; | |
10622 | char *kwnames[] = { | |
10623 | (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL | |
10624 | }; | |
10625 | ||
10626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiid:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5)) goto fail; | |
10627 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10628 | { | |
10629 | arg2 = wxString_in_helper(obj1); | |
10630 | if (arg2 == NULL) SWIG_fail; | |
10631 | temp2 = true; | |
10632 | } | |
10633 | { | |
10634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10635 | (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); | |
10636 | ||
10637 | wxPyEndAllowThreads(__tstate); | |
10638 | if (PyErr_Occurred()) SWIG_fail; | |
10639 | } | |
10640 | Py_INCREF(Py_None); resultobj = Py_None; | |
10641 | { | |
10642 | if (temp2) | |
10643 | delete arg2; | |
10644 | } | |
10645 | return resultobj; | |
10646 | fail: | |
10647 | { | |
10648 | if (temp2) | |
10649 | delete arg2; | |
10650 | } | |
10651 | return NULL; | |
10652 | } | |
10653 | ||
10654 | ||
10655 | static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10656 | PyObject *resultobj; | |
10657 | wxDC *arg1 = (wxDC *) 0 ; | |
10658 | wxString *arg2 = 0 ; | |
10659 | wxPoint *arg3 = 0 ; | |
10660 | double arg4 ; | |
10661 | bool temp2 = false ; | |
10662 | wxPoint temp3 ; | |
10663 | PyObject * obj0 = 0 ; | |
10664 | PyObject * obj1 = 0 ; | |
10665 | PyObject * obj2 = 0 ; | |
10666 | char *kwnames[] = { | |
10667 | (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL | |
10668 | }; | |
10669 | ||
10670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOd:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail; | |
10671 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10672 | { | |
10673 | arg2 = wxString_in_helper(obj1); | |
10674 | if (arg2 == NULL) SWIG_fail; | |
10675 | temp2 = true; | |
10676 | } | |
10677 | { | |
10678 | arg3 = &temp3; | |
10679 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10680 | } | |
10681 | { | |
10682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10683 | (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); | |
10684 | ||
10685 | wxPyEndAllowThreads(__tstate); | |
10686 | if (PyErr_Occurred()) SWIG_fail; | |
10687 | } | |
10688 | Py_INCREF(Py_None); resultobj = Py_None; | |
10689 | { | |
10690 | if (temp2) | |
10691 | delete arg2; | |
10692 | } | |
10693 | return resultobj; | |
10694 | fail: | |
10695 | { | |
10696 | if (temp2) | |
10697 | delete arg2; | |
10698 | } | |
10699 | return NULL; | |
10700 | } | |
10701 | ||
10702 | ||
10703 | static PyObject *_wrap_DC_BlitXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10704 | PyObject *resultobj; | |
10705 | wxDC *arg1 = (wxDC *) 0 ; | |
10706 | wxCoord arg2 ; | |
10707 | wxCoord arg3 ; | |
10708 | wxCoord arg4 ; | |
10709 | wxCoord arg5 ; | |
10710 | wxDC *arg6 = (wxDC *) 0 ; | |
10711 | wxCoord arg7 ; | |
10712 | wxCoord arg8 ; | |
10713 | int arg9 = (int) wxCOPY ; | |
10714 | bool arg10 = (bool) FALSE ; | |
10715 | wxCoord arg11 = (wxCoord) -1 ; | |
10716 | wxCoord arg12 = (wxCoord) -1 ; | |
10717 | bool result; | |
10718 | PyObject * obj0 = 0 ; | |
10719 | PyObject * obj5 = 0 ; | |
10720 | PyObject * obj9 = 0 ; | |
10721 | char *kwnames[] = { | |
10722 | (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 | |
10723 | }; | |
10724 | ||
10725 | 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; | |
10726 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10727 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10728 | if (obj9) { | |
10729 | arg10 = PyInt_AsLong(obj9) ? true : false; | |
10730 | if (PyErr_Occurred()) SWIG_fail; | |
10731 | } | |
10732 | { | |
10733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10734 | result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); | |
10735 | ||
10736 | wxPyEndAllowThreads(__tstate); | |
10737 | if (PyErr_Occurred()) SWIG_fail; | |
10738 | } | |
10739 | resultobj = PyInt_FromLong((long)result); | |
10740 | return resultobj; | |
10741 | fail: | |
10742 | return NULL; | |
10743 | } | |
10744 | ||
10745 | ||
10746 | static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10747 | PyObject *resultobj; | |
10748 | wxDC *arg1 = (wxDC *) 0 ; | |
10749 | wxPoint *arg2 = 0 ; | |
10750 | wxSize *arg3 = 0 ; | |
10751 | wxDC *arg4 = (wxDC *) 0 ; | |
10752 | wxPoint *arg5 = 0 ; | |
10753 | int arg6 = (int) wxCOPY ; | |
10754 | bool arg7 = (bool) FALSE ; | |
10755 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
10756 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
10757 | bool result; | |
10758 | wxPoint temp2 ; | |
10759 | wxSize temp3 ; | |
10760 | wxPoint temp5 ; | |
10761 | wxPoint temp8 ; | |
10762 | PyObject * obj0 = 0 ; | |
10763 | PyObject * obj1 = 0 ; | |
10764 | PyObject * obj2 = 0 ; | |
10765 | PyObject * obj3 = 0 ; | |
10766 | PyObject * obj4 = 0 ; | |
10767 | PyObject * obj6 = 0 ; | |
10768 | PyObject * obj7 = 0 ; | |
10769 | char *kwnames[] = { | |
10770 | (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL | |
10771 | }; | |
10772 | ||
10773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|iOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
10774 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10775 | { | |
10776 | arg2 = &temp2; | |
10777 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10778 | } | |
10779 | { | |
10780 | arg3 = &temp3; | |
10781 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
10782 | } | |
10783 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10784 | { | |
10785 | arg5 = &temp5; | |
10786 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
10787 | } | |
10788 | if (obj6) { | |
10789 | arg7 = PyInt_AsLong(obj6) ? true : false; | |
10790 | if (PyErr_Occurred()) SWIG_fail; | |
10791 | } | |
10792 | if (obj7) { | |
10793 | { | |
10794 | arg8 = &temp8; | |
10795 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
10796 | } | |
10797 | } | |
10798 | { | |
10799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10800 | result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8); | |
10801 | ||
10802 | wxPyEndAllowThreads(__tstate); | |
10803 | if (PyErr_Occurred()) SWIG_fail; | |
10804 | } | |
10805 | resultobj = PyInt_FromLong((long)result); | |
10806 | return resultobj; | |
10807 | fail: | |
10808 | return NULL; | |
10809 | } | |
10810 | ||
10811 | ||
10812 | static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10813 | PyObject *resultobj; | |
10814 | wxDC *arg1 = (wxDC *) 0 ; | |
10815 | int arg2 ; | |
10816 | wxPoint *arg3 = (wxPoint *) 0 ; | |
10817 | wxCoord arg4 = (wxCoord) 0 ; | |
10818 | wxCoord arg5 = (wxCoord) 0 ; | |
10819 | PyObject * obj0 = 0 ; | |
10820 | PyObject * obj1 = 0 ; | |
10821 | char *kwnames[] = { | |
10822 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL | |
10823 | }; | |
10824 | ||
10825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|ii:DC_DrawLines",kwnames,&obj0,&obj1,&arg4,&arg5)) goto fail; | |
10826 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10827 | { | |
10828 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
10829 | if (arg3 == NULL) SWIG_fail; | |
10830 | } | |
10831 | { | |
10832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10833 | (arg1)->DrawLines(arg2,arg3,arg4,arg5); | |
10834 | ||
10835 | wxPyEndAllowThreads(__tstate); | |
10836 | if (PyErr_Occurred()) SWIG_fail; | |
10837 | } | |
10838 | Py_INCREF(Py_None); resultobj = Py_None; | |
10839 | { | |
10840 | if (arg3) delete [] arg3; | |
10841 | } | |
10842 | return resultobj; | |
10843 | fail: | |
10844 | { | |
10845 | if (arg3) delete [] arg3; | |
10846 | } | |
10847 | return NULL; | |
10848 | } | |
10849 | ||
10850 | ||
10851 | static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10852 | PyObject *resultobj; | |
10853 | wxDC *arg1 = (wxDC *) 0 ; | |
10854 | int arg2 ; | |
10855 | wxPoint *arg3 = (wxPoint *) 0 ; | |
10856 | wxCoord arg4 = (wxCoord) 0 ; | |
10857 | wxCoord arg5 = (wxCoord) 0 ; | |
10858 | int arg6 = (int) wxODDEVEN_RULE ; | |
10859 | PyObject * obj0 = 0 ; | |
10860 | PyObject * obj1 = 0 ; | |
10861 | char *kwnames[] = { | |
10862 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL | |
10863 | }; | |
10864 | ||
10865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iii:DC_DrawPolygon",kwnames,&obj0,&obj1,&arg4,&arg5,&arg6)) goto fail; | |
10866 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10867 | { | |
10868 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
10869 | if (arg3 == NULL) SWIG_fail; | |
10870 | } | |
10871 | { | |
10872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10873 | (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); | |
10874 | ||
10875 | wxPyEndAllowThreads(__tstate); | |
10876 | if (PyErr_Occurred()) SWIG_fail; | |
10877 | } | |
10878 | Py_INCREF(Py_None); resultobj = Py_None; | |
10879 | { | |
10880 | if (arg3) delete [] arg3; | |
10881 | } | |
10882 | return resultobj; | |
10883 | fail: | |
10884 | { | |
10885 | if (arg3) delete [] arg3; | |
10886 | } | |
10887 | return NULL; | |
10888 | } | |
10889 | ||
10890 | ||
10891 | static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10892 | PyObject *resultobj; | |
10893 | wxDC *arg1 = (wxDC *) 0 ; | |
10894 | wxString *arg2 = 0 ; | |
10895 | wxRect *arg3 = 0 ; | |
10896 | int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
10897 | int arg5 = (int) -1 ; | |
10898 | bool temp2 = false ; | |
10899 | wxRect temp3 ; | |
10900 | PyObject * obj0 = 0 ; | |
10901 | PyObject * obj1 = 0 ; | |
10902 | PyObject * obj2 = 0 ; | |
10903 | char *kwnames[] = { | |
10904 | (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
10905 | }; | |
10906 | ||
10907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|ii:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5)) goto fail; | |
10908 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10909 | { | |
10910 | arg2 = wxString_in_helper(obj1); | |
10911 | if (arg2 == NULL) SWIG_fail; | |
10912 | temp2 = true; | |
10913 | } | |
10914 | { | |
10915 | arg3 = &temp3; | |
10916 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
10917 | } | |
10918 | { | |
10919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10920 | (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); | |
10921 | ||
10922 | wxPyEndAllowThreads(__tstate); | |
10923 | if (PyErr_Occurred()) SWIG_fail; | |
10924 | } | |
10925 | Py_INCREF(Py_None); resultobj = Py_None; | |
10926 | { | |
10927 | if (temp2) | |
10928 | delete arg2; | |
10929 | } | |
10930 | return resultobj; | |
10931 | fail: | |
10932 | { | |
10933 | if (temp2) | |
10934 | delete arg2; | |
10935 | } | |
10936 | return NULL; | |
10937 | } | |
10938 | ||
10939 | ||
10940 | static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10941 | PyObject *resultobj; | |
10942 | wxDC *arg1 = (wxDC *) 0 ; | |
10943 | wxString *arg2 = 0 ; | |
10944 | wxBitmap *arg3 = 0 ; | |
10945 | wxRect *arg4 = 0 ; | |
10946 | int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
10947 | int arg6 = (int) -1 ; | |
10948 | wxRect result; | |
10949 | bool temp2 = false ; | |
10950 | wxRect temp4 ; | |
10951 | PyObject * obj0 = 0 ; | |
10952 | PyObject * obj1 = 0 ; | |
10953 | PyObject * obj2 = 0 ; | |
10954 | PyObject * obj3 = 0 ; | |
10955 | char *kwnames[] = { | |
10956 | (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
10957 | }; | |
10958 | ||
10959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|ii:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5,&arg6)) goto fail; | |
10960 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10961 | { | |
10962 | arg2 = wxString_in_helper(obj1); | |
10963 | if (arg2 == NULL) SWIG_fail; | |
10964 | temp2 = true; | |
10965 | } | |
10966 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10967 | if (arg3 == NULL) { | |
10968 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10969 | } | |
10970 | { | |
10971 | arg4 = &temp4; | |
10972 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
10973 | } | |
10974 | { | |
10975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10976 | result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); | |
10977 | ||
10978 | wxPyEndAllowThreads(__tstate); | |
10979 | if (PyErr_Occurred()) SWIG_fail; | |
10980 | } | |
10981 | { | |
10982 | wxRect * resultptr; | |
10983 | resultptr = new wxRect((wxRect &) result); | |
10984 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
10985 | } | |
10986 | { | |
10987 | if (temp2) | |
10988 | delete arg2; | |
10989 | } | |
10990 | return resultobj; | |
10991 | fail: | |
10992 | { | |
10993 | if (temp2) | |
10994 | delete arg2; | |
10995 | } | |
10996 | return NULL; | |
10997 | } | |
10998 | ||
10999 | ||
11000 | static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11001 | PyObject *resultobj; | |
11002 | wxDC *arg1 = (wxDC *) 0 ; | |
11003 | int arg2 ; | |
11004 | wxPoint *arg3 = (wxPoint *) 0 ; | |
11005 | PyObject * obj0 = 0 ; | |
11006 | PyObject * obj1 = 0 ; | |
11007 | char *kwnames[] = { | |
11008 | (char *) "self",(char *) "points", NULL | |
11009 | }; | |
11010 | ||
11011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail; | |
11012 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11013 | { | |
11014 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
11015 | if (arg3 == NULL) SWIG_fail; | |
11016 | } | |
11017 | { | |
11018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11019 | (arg1)->DrawSpline(arg2,arg3); | |
11020 | ||
11021 | wxPyEndAllowThreads(__tstate); | |
11022 | if (PyErr_Occurred()) SWIG_fail; | |
11023 | } | |
11024 | Py_INCREF(Py_None); resultobj = Py_None; | |
11025 | { | |
11026 | if (arg3) delete [] arg3; | |
11027 | } | |
11028 | return resultobj; | |
11029 | fail: | |
11030 | { | |
11031 | if (arg3) delete [] arg3; | |
11032 | } | |
11033 | return NULL; | |
11034 | } | |
11035 | ||
11036 | ||
11037 | static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11038 | PyObject *resultobj; | |
11039 | wxDC *arg1 = (wxDC *) 0 ; | |
11040 | PyObject * obj0 = 0 ; | |
11041 | char *kwnames[] = { | |
11042 | (char *) "self", NULL | |
11043 | }; | |
11044 | ||
11045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail; | |
11046 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11047 | { | |
11048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11049 | (arg1)->Clear(); | |
11050 | ||
11051 | wxPyEndAllowThreads(__tstate); | |
11052 | if (PyErr_Occurred()) SWIG_fail; | |
11053 | } | |
11054 | Py_INCREF(Py_None); resultobj = Py_None; | |
11055 | return resultobj; | |
11056 | fail: | |
11057 | return NULL; | |
11058 | } | |
11059 | ||
11060 | ||
11061 | static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11062 | PyObject *resultobj; | |
11063 | wxDC *arg1 = (wxDC *) 0 ; | |
11064 | wxString *arg2 = 0 ; | |
11065 | bool result; | |
11066 | bool temp2 = false ; | |
11067 | PyObject * obj0 = 0 ; | |
11068 | PyObject * obj1 = 0 ; | |
11069 | char *kwnames[] = { | |
11070 | (char *) "self",(char *) "message", NULL | |
11071 | }; | |
11072 | ||
11073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail; | |
11074 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11075 | { | |
11076 | arg2 = wxString_in_helper(obj1); | |
11077 | if (arg2 == NULL) SWIG_fail; | |
11078 | temp2 = true; | |
11079 | } | |
11080 | { | |
11081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11082 | result = (bool)(arg1)->StartDoc((wxString const &)*arg2); | |
11083 | ||
11084 | wxPyEndAllowThreads(__tstate); | |
11085 | if (PyErr_Occurred()) SWIG_fail; | |
11086 | } | |
11087 | resultobj = PyInt_FromLong((long)result); | |
11088 | { | |
11089 | if (temp2) | |
11090 | delete arg2; | |
11091 | } | |
11092 | return resultobj; | |
11093 | fail: | |
11094 | { | |
11095 | if (temp2) | |
11096 | delete arg2; | |
11097 | } | |
11098 | return NULL; | |
11099 | } | |
11100 | ||
11101 | ||
11102 | static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11103 | PyObject *resultobj; | |
11104 | wxDC *arg1 = (wxDC *) 0 ; | |
11105 | PyObject * obj0 = 0 ; | |
11106 | char *kwnames[] = { | |
11107 | (char *) "self", NULL | |
11108 | }; | |
11109 | ||
11110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail; | |
11111 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11112 | { | |
11113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11114 | (arg1)->EndDoc(); | |
11115 | ||
11116 | wxPyEndAllowThreads(__tstate); | |
11117 | if (PyErr_Occurred()) SWIG_fail; | |
11118 | } | |
11119 | Py_INCREF(Py_None); resultobj = Py_None; | |
11120 | return resultobj; | |
11121 | fail: | |
11122 | return NULL; | |
11123 | } | |
11124 | ||
11125 | ||
11126 | static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11127 | PyObject *resultobj; | |
11128 | wxDC *arg1 = (wxDC *) 0 ; | |
11129 | PyObject * obj0 = 0 ; | |
11130 | char *kwnames[] = { | |
11131 | (char *) "self", NULL | |
11132 | }; | |
11133 | ||
11134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail; | |
11135 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11136 | { | |
11137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11138 | (arg1)->StartPage(); | |
11139 | ||
11140 | wxPyEndAllowThreads(__tstate); | |
11141 | if (PyErr_Occurred()) SWIG_fail; | |
11142 | } | |
11143 | Py_INCREF(Py_None); resultobj = Py_None; | |
11144 | return resultobj; | |
11145 | fail: | |
11146 | return NULL; | |
11147 | } | |
11148 | ||
11149 | ||
11150 | static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11151 | PyObject *resultobj; | |
11152 | wxDC *arg1 = (wxDC *) 0 ; | |
11153 | PyObject * obj0 = 0 ; | |
11154 | char *kwnames[] = { | |
11155 | (char *) "self", NULL | |
11156 | }; | |
11157 | ||
11158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail; | |
11159 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11160 | { | |
11161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11162 | (arg1)->EndPage(); | |
11163 | ||
11164 | wxPyEndAllowThreads(__tstate); | |
11165 | if (PyErr_Occurred()) SWIG_fail; | |
11166 | } | |
11167 | Py_INCREF(Py_None); resultobj = Py_None; | |
11168 | return resultobj; | |
11169 | fail: | |
11170 | return NULL; | |
11171 | } | |
11172 | ||
11173 | ||
11174 | static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11175 | PyObject *resultobj; | |
11176 | wxDC *arg1 = (wxDC *) 0 ; | |
11177 | wxFont *arg2 = 0 ; | |
11178 | PyObject * obj0 = 0 ; | |
11179 | PyObject * obj1 = 0 ; | |
11180 | char *kwnames[] = { | |
11181 | (char *) "self",(char *) "font", NULL | |
11182 | }; | |
11183 | ||
11184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
11185 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11186 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11187 | if (arg2 == NULL) { | |
11188 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11189 | } | |
11190 | { | |
11191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11192 | (arg1)->SetFont((wxFont const &)*arg2); | |
11193 | ||
11194 | wxPyEndAllowThreads(__tstate); | |
11195 | if (PyErr_Occurred()) SWIG_fail; | |
11196 | } | |
11197 | Py_INCREF(Py_None); resultobj = Py_None; | |
11198 | return resultobj; | |
11199 | fail: | |
11200 | return NULL; | |
11201 | } | |
11202 | ||
11203 | ||
11204 | static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11205 | PyObject *resultobj; | |
11206 | wxDC *arg1 = (wxDC *) 0 ; | |
11207 | wxPen *arg2 = 0 ; | |
11208 | PyObject * obj0 = 0 ; | |
11209 | PyObject * obj1 = 0 ; | |
11210 | char *kwnames[] = { | |
11211 | (char *) "self",(char *) "pen", NULL | |
11212 | }; | |
11213 | ||
11214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail; | |
11215 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11216 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11217 | if (arg2 == NULL) { | |
11218 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11219 | } | |
11220 | { | |
11221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11222 | (arg1)->SetPen((wxPen const &)*arg2); | |
11223 | ||
11224 | wxPyEndAllowThreads(__tstate); | |
11225 | if (PyErr_Occurred()) SWIG_fail; | |
11226 | } | |
11227 | Py_INCREF(Py_None); resultobj = Py_None; | |
11228 | return resultobj; | |
11229 | fail: | |
11230 | return NULL; | |
11231 | } | |
11232 | ||
11233 | ||
11234 | static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11235 | PyObject *resultobj; | |
11236 | wxDC *arg1 = (wxDC *) 0 ; | |
11237 | wxBrush *arg2 = 0 ; | |
11238 | PyObject * obj0 = 0 ; | |
11239 | PyObject * obj1 = 0 ; | |
11240 | char *kwnames[] = { | |
11241 | (char *) "self",(char *) "brush", NULL | |
11242 | }; | |
11243 | ||
11244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail; | |
11245 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11246 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11247 | if (arg2 == NULL) { | |
11248 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11249 | } | |
11250 | { | |
11251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11252 | (arg1)->SetBrush((wxBrush const &)*arg2); | |
11253 | ||
11254 | wxPyEndAllowThreads(__tstate); | |
11255 | if (PyErr_Occurred()) SWIG_fail; | |
11256 | } | |
11257 | Py_INCREF(Py_None); resultobj = Py_None; | |
11258 | return resultobj; | |
11259 | fail: | |
11260 | return NULL; | |
11261 | } | |
11262 | ||
11263 | ||
11264 | static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11265 | PyObject *resultobj; | |
11266 | wxDC *arg1 = (wxDC *) 0 ; | |
11267 | wxBrush *arg2 = 0 ; | |
11268 | PyObject * obj0 = 0 ; | |
11269 | PyObject * obj1 = 0 ; | |
11270 | char *kwnames[] = { | |
11271 | (char *) "self",(char *) "brush", NULL | |
11272 | }; | |
11273 | ||
11274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail; | |
11275 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11276 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11277 | if (arg2 == NULL) { | |
11278 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11279 | } | |
11280 | { | |
11281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11282 | (arg1)->SetBackground((wxBrush const &)*arg2); | |
11283 | ||
11284 | wxPyEndAllowThreads(__tstate); | |
11285 | if (PyErr_Occurred()) SWIG_fail; | |
11286 | } | |
11287 | Py_INCREF(Py_None); resultobj = Py_None; | |
11288 | return resultobj; | |
11289 | fail: | |
11290 | return NULL; | |
11291 | } | |
11292 | ||
11293 | ||
11294 | static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11295 | PyObject *resultobj; | |
11296 | wxDC *arg1 = (wxDC *) 0 ; | |
11297 | int arg2 ; | |
11298 | PyObject * obj0 = 0 ; | |
11299 | char *kwnames[] = { | |
11300 | (char *) "self",(char *) "mode", NULL | |
11301 | }; | |
11302 | ||
11303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_SetBackgroundMode",kwnames,&obj0,&arg2)) goto fail; | |
11304 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11305 | { | |
11306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11307 | (arg1)->SetBackgroundMode(arg2); | |
11308 | ||
11309 | wxPyEndAllowThreads(__tstate); | |
11310 | if (PyErr_Occurred()) SWIG_fail; | |
11311 | } | |
11312 | Py_INCREF(Py_None); resultobj = Py_None; | |
11313 | return resultobj; | |
11314 | fail: | |
11315 | return NULL; | |
11316 | } | |
11317 | ||
11318 | ||
11319 | static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11320 | PyObject *resultobj; | |
11321 | wxDC *arg1 = (wxDC *) 0 ; | |
11322 | wxPalette *arg2 = 0 ; | |
11323 | PyObject * obj0 = 0 ; | |
11324 | PyObject * obj1 = 0 ; | |
11325 | char *kwnames[] = { | |
11326 | (char *) "self",(char *) "palette", NULL | |
11327 | }; | |
11328 | ||
11329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail; | |
11330 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11331 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11332 | if (arg2 == NULL) { | |
11333 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11334 | } | |
11335 | { | |
11336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11337 | (arg1)->SetPalette((wxPalette const &)*arg2); | |
11338 | ||
11339 | wxPyEndAllowThreads(__tstate); | |
11340 | if (PyErr_Occurred()) SWIG_fail; | |
11341 | } | |
11342 | Py_INCREF(Py_None); resultobj = Py_None; | |
11343 | return resultobj; | |
11344 | fail: | |
11345 | return NULL; | |
11346 | } | |
11347 | ||
11348 | ||
11349 | static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11350 | PyObject *resultobj; | |
11351 | wxDC *arg1 = (wxDC *) 0 ; | |
11352 | wxCoord arg2 ; | |
11353 | wxCoord arg3 ; | |
11354 | wxCoord arg4 ; | |
11355 | wxCoord arg5 ; | |
11356 | PyObject * obj0 = 0 ; | |
11357 | char *kwnames[] = { | |
11358 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11359 | }; | |
11360 | ||
11361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_SetClippingRegion",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
11362 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11363 | { | |
11364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11365 | (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5); | |
11366 | ||
11367 | wxPyEndAllowThreads(__tstate); | |
11368 | if (PyErr_Occurred()) SWIG_fail; | |
11369 | } | |
11370 | Py_INCREF(Py_None); resultobj = Py_None; | |
11371 | return resultobj; | |
11372 | fail: | |
11373 | return NULL; | |
11374 | } | |
11375 | ||
11376 | ||
11377 | static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11378 | PyObject *resultobj; | |
11379 | wxDC *arg1 = (wxDC *) 0 ; | |
11380 | wxRect *arg2 = 0 ; | |
11381 | wxRect temp2 ; | |
11382 | PyObject * obj0 = 0 ; | |
11383 | PyObject * obj1 = 0 ; | |
11384 | char *kwnames[] = { | |
11385 | (char *) "self",(char *) "rect", NULL | |
11386 | }; | |
11387 | ||
11388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail; | |
11389 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11390 | { | |
11391 | arg2 = &temp2; | |
11392 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11393 | } | |
11394 | { | |
11395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11396 | (arg1)->SetClippingRegion((wxRect const &)*arg2); | |
11397 | ||
11398 | wxPyEndAllowThreads(__tstate); | |
11399 | if (PyErr_Occurred()) SWIG_fail; | |
11400 | } | |
11401 | Py_INCREF(Py_None); resultobj = Py_None; | |
11402 | return resultobj; | |
11403 | fail: | |
11404 | return NULL; | |
11405 | } | |
11406 | ||
11407 | ||
11408 | static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11409 | PyObject *resultobj; | |
11410 | wxDC *arg1 = (wxDC *) 0 ; | |
11411 | wxRegion *arg2 = 0 ; | |
11412 | PyObject * obj0 = 0 ; | |
11413 | PyObject * obj1 = 0 ; | |
11414 | char *kwnames[] = { | |
11415 | (char *) "self",(char *) "region", NULL | |
11416 | }; | |
11417 | ||
11418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail; | |
11419 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11420 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11421 | if (arg2 == NULL) { | |
11422 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11423 | } | |
11424 | { | |
11425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11426 | (arg1)->SetClippingRegion((wxRegion const &)*arg2); | |
11427 | ||
11428 | wxPyEndAllowThreads(__tstate); | |
11429 | if (PyErr_Occurred()) SWIG_fail; | |
11430 | } | |
11431 | Py_INCREF(Py_None); resultobj = Py_None; | |
11432 | return resultobj; | |
11433 | fail: | |
11434 | return NULL; | |
11435 | } | |
11436 | ||
11437 | ||
11438 | static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11439 | PyObject *resultobj; | |
11440 | wxDC *arg1 = (wxDC *) 0 ; | |
11441 | PyObject * obj0 = 0 ; | |
11442 | char *kwnames[] = { | |
11443 | (char *) "self", NULL | |
11444 | }; | |
11445 | ||
11446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail; | |
11447 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11448 | { | |
11449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11450 | (arg1)->DestroyClippingRegion(); | |
11451 | ||
11452 | wxPyEndAllowThreads(__tstate); | |
11453 | if (PyErr_Occurred()) SWIG_fail; | |
11454 | } | |
11455 | Py_INCREF(Py_None); resultobj = Py_None; | |
11456 | return resultobj; | |
11457 | fail: | |
11458 | return NULL; | |
11459 | } | |
11460 | ||
11461 | ||
11462 | static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11463 | PyObject *resultobj; | |
11464 | wxDC *arg1 = (wxDC *) 0 ; | |
11465 | wxCoord *arg2 = (wxCoord *) 0 ; | |
11466 | wxCoord *arg3 = (wxCoord *) 0 ; | |
11467 | wxCoord *arg4 = (wxCoord *) 0 ; | |
11468 | wxCoord *arg5 = (wxCoord *) 0 ; | |
11469 | wxCoord temp2 ; | |
11470 | wxCoord temp3 ; | |
11471 | wxCoord temp4 ; | |
11472 | wxCoord temp5 ; | |
11473 | PyObject * obj0 = 0 ; | |
11474 | char *kwnames[] = { | |
11475 | (char *) "self", NULL | |
11476 | }; | |
11477 | ||
11478 | arg2 = &temp2; | |
11479 | arg3 = &temp3; | |
11480 | arg4 = &temp4; | |
11481 | arg5 = &temp5; | |
11482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail; | |
11483 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11484 | { | |
11485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11486 | ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5); | |
11487 | ||
11488 | wxPyEndAllowThreads(__tstate); | |
11489 | if (PyErr_Occurred()) SWIG_fail; | |
11490 | } | |
11491 | Py_INCREF(Py_None); resultobj = Py_None; | |
11492 | { | |
11493 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
11494 | resultobj = t_output_helper(resultobj,o); | |
11495 | } | |
11496 | { | |
11497 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
11498 | resultobj = t_output_helper(resultobj,o); | |
11499 | } | |
11500 | { | |
11501 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
11502 | resultobj = t_output_helper(resultobj,o); | |
11503 | } | |
11504 | { | |
11505 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
11506 | resultobj = t_output_helper(resultobj,o); | |
11507 | } | |
11508 | return resultobj; | |
11509 | fail: | |
11510 | return NULL; | |
11511 | } | |
11512 | ||
11513 | ||
11514 | static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11515 | PyObject *resultobj; | |
11516 | wxDC *arg1 = (wxDC *) 0 ; | |
11517 | wxRect result; | |
11518 | PyObject * obj0 = 0 ; | |
11519 | char *kwnames[] = { | |
11520 | (char *) "self", NULL | |
11521 | }; | |
11522 | ||
11523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail; | |
11524 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11525 | { | |
11526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11527 | result = wxDC_GetClippingRect(arg1); | |
11528 | ||
11529 | wxPyEndAllowThreads(__tstate); | |
11530 | if (PyErr_Occurred()) SWIG_fail; | |
11531 | } | |
11532 | { | |
11533 | wxRect * resultptr; | |
11534 | resultptr = new wxRect((wxRect &) result); | |
11535 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
11536 | } | |
11537 | return resultobj; | |
11538 | fail: | |
11539 | return NULL; | |
11540 | } | |
11541 | ||
11542 | ||
11543 | static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11544 | PyObject *resultobj; | |
11545 | wxDC *arg1 = (wxDC *) 0 ; | |
11546 | wxCoord result; | |
11547 | PyObject * obj0 = 0 ; | |
11548 | char *kwnames[] = { | |
11549 | (char *) "self", NULL | |
11550 | }; | |
11551 | ||
11552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail; | |
11553 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11554 | { | |
11555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11556 | result = (wxCoord)((wxDC const *)arg1)->GetCharHeight(); | |
11557 | ||
11558 | wxPyEndAllowThreads(__tstate); | |
11559 | if (PyErr_Occurred()) SWIG_fail; | |
11560 | } | |
11561 | resultobj = PyInt_FromLong((long)result); | |
11562 | return resultobj; | |
11563 | fail: | |
11564 | return NULL; | |
11565 | } | |
11566 | ||
11567 | ||
11568 | static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11569 | PyObject *resultobj; | |
11570 | wxDC *arg1 = (wxDC *) 0 ; | |
11571 | wxCoord result; | |
11572 | PyObject * obj0 = 0 ; | |
11573 | char *kwnames[] = { | |
11574 | (char *) "self", NULL | |
11575 | }; | |
11576 | ||
11577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail; | |
11578 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11579 | { | |
11580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11581 | result = (wxCoord)((wxDC const *)arg1)->GetCharWidth(); | |
11582 | ||
11583 | wxPyEndAllowThreads(__tstate); | |
11584 | if (PyErr_Occurred()) SWIG_fail; | |
11585 | } | |
11586 | resultobj = PyInt_FromLong((long)result); | |
11587 | return resultobj; | |
11588 | fail: | |
11589 | return NULL; | |
11590 | } | |
11591 | ||
11592 | ||
11593 | static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11594 | PyObject *resultobj; | |
11595 | wxDC *arg1 = (wxDC *) 0 ; | |
11596 | wxString *arg2 = 0 ; | |
11597 | wxCoord *arg3 = (wxCoord *) 0 ; | |
11598 | wxCoord *arg4 = (wxCoord *) 0 ; | |
11599 | bool temp2 = false ; | |
11600 | wxCoord temp3 ; | |
11601 | wxCoord temp4 ; | |
11602 | PyObject * obj0 = 0 ; | |
11603 | PyObject * obj1 = 0 ; | |
11604 | char *kwnames[] = { | |
11605 | (char *) "self",(char *) "string", NULL | |
11606 | }; | |
11607 | ||
11608 | arg3 = &temp3; | |
11609 | arg4 = &temp4; | |
11610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; | |
11611 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11612 | { | |
11613 | arg2 = wxString_in_helper(obj1); | |
11614 | if (arg2 == NULL) SWIG_fail; | |
11615 | temp2 = true; | |
11616 | } | |
11617 | { | |
11618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11619 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
11620 | ||
11621 | wxPyEndAllowThreads(__tstate); | |
11622 | if (PyErr_Occurred()) SWIG_fail; | |
11623 | } | |
11624 | Py_INCREF(Py_None); resultobj = Py_None; | |
11625 | { | |
11626 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
11627 | resultobj = t_output_helper(resultobj,o); | |
11628 | } | |
11629 | { | |
11630 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
11631 | resultobj = t_output_helper(resultobj,o); | |
11632 | } | |
11633 | { | |
11634 | if (temp2) | |
11635 | delete arg2; | |
11636 | } | |
11637 | return resultobj; | |
11638 | fail: | |
11639 | { | |
11640 | if (temp2) | |
11641 | delete arg2; | |
11642 | } | |
11643 | return NULL; | |
11644 | } | |
11645 | ||
11646 | ||
11647 | static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11648 | PyObject *resultobj; | |
11649 | wxDC *arg1 = (wxDC *) 0 ; | |
11650 | wxString *arg2 = 0 ; | |
11651 | wxCoord *arg3 = (wxCoord *) 0 ; | |
11652 | wxCoord *arg4 = (wxCoord *) 0 ; | |
11653 | wxCoord *arg5 = (wxCoord *) 0 ; | |
11654 | wxCoord *arg6 = (wxCoord *) 0 ; | |
11655 | wxFont *arg7 = (wxFont *) NULL ; | |
11656 | bool temp2 = false ; | |
11657 | wxCoord temp3 ; | |
11658 | wxCoord temp4 ; | |
11659 | wxCoord temp5 ; | |
11660 | wxCoord temp6 ; | |
11661 | PyObject * obj0 = 0 ; | |
11662 | PyObject * obj1 = 0 ; | |
11663 | PyObject * obj2 = 0 ; | |
11664 | char *kwnames[] = { | |
11665 | (char *) "self",(char *) "string",(char *) "font", NULL | |
11666 | }; | |
11667 | ||
11668 | arg3 = &temp3; | |
11669 | arg4 = &temp4; | |
11670 | arg5 = &temp5; | |
11671 | arg6 = &temp6; | |
11672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11673 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11674 | { | |
11675 | arg2 = wxString_in_helper(obj1); | |
11676 | if (arg2 == NULL) SWIG_fail; | |
11677 | temp2 = true; | |
11678 | } | |
11679 | if (obj2) { | |
11680 | if ((SWIG_ConvertPtr(obj2,(void **) &arg7, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11681 | } | |
11682 | { | |
11683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11684 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7); | |
11685 | ||
11686 | wxPyEndAllowThreads(__tstate); | |
11687 | if (PyErr_Occurred()) SWIG_fail; | |
11688 | } | |
11689 | Py_INCREF(Py_None); resultobj = Py_None; | |
11690 | { | |
11691 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
11692 | resultobj = t_output_helper(resultobj,o); | |
11693 | } | |
11694 | { | |
11695 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
11696 | resultobj = t_output_helper(resultobj,o); | |
11697 | } | |
11698 | { | |
11699 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
11700 | resultobj = t_output_helper(resultobj,o); | |
11701 | } | |
11702 | { | |
11703 | PyObject *o = PyInt_FromLong((long) (*arg6)); | |
11704 | resultobj = t_output_helper(resultobj,o); | |
11705 | } | |
11706 | { | |
11707 | if (temp2) | |
11708 | delete arg2; | |
11709 | } | |
11710 | return resultobj; | |
11711 | fail: | |
11712 | { | |
11713 | if (temp2) | |
11714 | delete arg2; | |
11715 | } | |
11716 | return NULL; | |
11717 | } | |
11718 | ||
11719 | ||
11720 | static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11721 | PyObject *resultobj; | |
11722 | wxDC *arg1 = (wxDC *) 0 ; | |
11723 | wxString *arg2 = 0 ; | |
11724 | wxCoord *arg3 = (wxCoord *) 0 ; | |
11725 | wxCoord *arg4 = (wxCoord *) 0 ; | |
11726 | wxCoord *arg5 = (wxCoord *) 0 ; | |
11727 | wxFont *arg6 = (wxFont *) NULL ; | |
11728 | bool temp2 = false ; | |
11729 | wxCoord temp3 ; | |
11730 | wxCoord temp4 ; | |
11731 | wxCoord temp5 ; | |
11732 | PyObject * obj0 = 0 ; | |
11733 | PyObject * obj1 = 0 ; | |
11734 | PyObject * obj2 = 0 ; | |
11735 | char *kwnames[] = { | |
11736 | (char *) "self",(char *) "text",(char *) "font", NULL | |
11737 | }; | |
11738 | ||
11739 | arg3 = &temp3; | |
11740 | arg4 = &temp4; | |
11741 | arg5 = &temp5; | |
11742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11743 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11744 | { | |
11745 | arg2 = wxString_in_helper(obj1); | |
11746 | if (arg2 == NULL) SWIG_fail; | |
11747 | temp2 = true; | |
11748 | } | |
11749 | if (obj2) { | |
11750 | if ((SWIG_ConvertPtr(obj2,(void **) &arg6, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11751 | } | |
11752 | { | |
11753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11754 | (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
11755 | ||
11756 | wxPyEndAllowThreads(__tstate); | |
11757 | if (PyErr_Occurred()) SWIG_fail; | |
11758 | } | |
11759 | Py_INCREF(Py_None); resultobj = Py_None; | |
11760 | { | |
11761 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
11762 | resultobj = t_output_helper(resultobj,o); | |
11763 | } | |
11764 | { | |
11765 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
11766 | resultobj = t_output_helper(resultobj,o); | |
11767 | } | |
11768 | { | |
11769 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
11770 | resultobj = t_output_helper(resultobj,o); | |
11771 | } | |
11772 | { | |
11773 | if (temp2) | |
11774 | delete arg2; | |
11775 | } | |
11776 | return resultobj; | |
11777 | fail: | |
11778 | { | |
11779 | if (temp2) | |
11780 | delete arg2; | |
11781 | } | |
11782 | return NULL; | |
11783 | } | |
11784 | ||
11785 | ||
11786 | static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11787 | PyObject *resultobj; | |
11788 | wxDC *arg1 = (wxDC *) 0 ; | |
11789 | int *arg2 = (int *) 0 ; | |
11790 | int *arg3 = (int *) 0 ; | |
11791 | int temp2 ; | |
11792 | int temp3 ; | |
11793 | PyObject * obj0 = 0 ; | |
11794 | char *kwnames[] = { | |
11795 | (char *) "self", NULL | |
11796 | }; | |
11797 | ||
11798 | arg2 = &temp2; | |
11799 | arg3 = &temp3; | |
11800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail; | |
11801 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11802 | { | |
11803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11804 | (arg1)->GetSize(arg2,arg3); | |
11805 | ||
11806 | wxPyEndAllowThreads(__tstate); | |
11807 | if (PyErr_Occurred()) SWIG_fail; | |
11808 | } | |
11809 | Py_INCREF(Py_None); resultobj = Py_None; | |
11810 | { | |
11811 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
11812 | resultobj = t_output_helper(resultobj,o); | |
11813 | } | |
11814 | { | |
11815 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
11816 | resultobj = t_output_helper(resultobj,o); | |
11817 | } | |
11818 | return resultobj; | |
11819 | fail: | |
11820 | return NULL; | |
11821 | } | |
11822 | ||
11823 | ||
11824 | static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11825 | PyObject *resultobj; | |
11826 | wxDC *arg1 = (wxDC *) 0 ; | |
11827 | wxSize result; | |
11828 | PyObject * obj0 = 0 ; | |
11829 | char *kwnames[] = { | |
11830 | (char *) "self", NULL | |
11831 | }; | |
11832 | ||
11833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail; | |
11834 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11835 | { | |
11836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11837 | result = (arg1)->GetSize(); | |
11838 | ||
11839 | wxPyEndAllowThreads(__tstate); | |
11840 | if (PyErr_Occurred()) SWIG_fail; | |
11841 | } | |
11842 | { | |
11843 | wxSize * resultptr; | |
11844 | resultptr = new wxSize((wxSize &) result); | |
11845 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
11846 | } | |
11847 | return resultobj; | |
11848 | fail: | |
11849 | return NULL; | |
11850 | } | |
11851 | ||
11852 | ||
11853 | static PyObject *_wrap_DC_GetSizeMMWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11854 | PyObject *resultobj; | |
11855 | wxDC *arg1 = (wxDC *) 0 ; | |
11856 | int *arg2 = (int *) 0 ; | |
11857 | int *arg3 = (int *) 0 ; | |
11858 | int temp2 ; | |
11859 | int temp3 ; | |
11860 | PyObject * obj0 = 0 ; | |
11861 | char *kwnames[] = { | |
11862 | (char *) "self", NULL | |
11863 | }; | |
11864 | ||
11865 | arg2 = &temp2; | |
11866 | arg3 = &temp3; | |
11867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMWH",kwnames,&obj0)) goto fail; | |
11868 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11869 | { | |
11870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11871 | ((wxDC const *)arg1)->GetSizeMM(arg2,arg3); | |
11872 | ||
11873 | wxPyEndAllowThreads(__tstate); | |
11874 | if (PyErr_Occurred()) SWIG_fail; | |
11875 | } | |
11876 | Py_INCREF(Py_None); resultobj = Py_None; | |
11877 | { | |
11878 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
11879 | resultobj = t_output_helper(resultobj,o); | |
11880 | } | |
11881 | { | |
11882 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
11883 | resultobj = t_output_helper(resultobj,o); | |
11884 | } | |
11885 | return resultobj; | |
11886 | fail: | |
11887 | return NULL; | |
11888 | } | |
11889 | ||
11890 | ||
11891 | static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11892 | PyObject *resultobj; | |
11893 | wxDC *arg1 = (wxDC *) 0 ; | |
11894 | wxSize result; | |
11895 | PyObject * obj0 = 0 ; | |
11896 | char *kwnames[] = { | |
11897 | (char *) "self", NULL | |
11898 | }; | |
11899 | ||
11900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail; | |
11901 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11902 | { | |
11903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11904 | result = ((wxDC const *)arg1)->GetSizeMM(); | |
11905 | ||
11906 | wxPyEndAllowThreads(__tstate); | |
11907 | if (PyErr_Occurred()) SWIG_fail; | |
11908 | } | |
11909 | { | |
11910 | wxSize * resultptr; | |
11911 | resultptr = new wxSize((wxSize &) result); | |
11912 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
11913 | } | |
11914 | return resultobj; | |
11915 | fail: | |
11916 | return NULL; | |
11917 | } | |
11918 | ||
11919 | ||
11920 | static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11921 | PyObject *resultobj; | |
11922 | wxDC *arg1 = (wxDC *) 0 ; | |
11923 | wxCoord arg2 ; | |
11924 | wxCoord result; | |
11925 | PyObject * obj0 = 0 ; | |
11926 | char *kwnames[] = { | |
11927 | (char *) "self",(char *) "x", NULL | |
11928 | }; | |
11929 | ||
11930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalX",kwnames,&obj0,&arg2)) goto fail; | |
11931 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11932 | { | |
11933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11934 | result = (wxCoord)((wxDC const *)arg1)->DeviceToLogicalX(arg2); | |
11935 | ||
11936 | wxPyEndAllowThreads(__tstate); | |
11937 | if (PyErr_Occurred()) SWIG_fail; | |
11938 | } | |
11939 | resultobj = PyInt_FromLong((long)result); | |
11940 | return resultobj; | |
11941 | fail: | |
11942 | return NULL; | |
11943 | } | |
11944 | ||
11945 | ||
11946 | static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11947 | PyObject *resultobj; | |
11948 | wxDC *arg1 = (wxDC *) 0 ; | |
11949 | wxCoord arg2 ; | |
11950 | wxCoord result; | |
11951 | PyObject * obj0 = 0 ; | |
11952 | char *kwnames[] = { | |
11953 | (char *) "self",(char *) "y", NULL | |
11954 | }; | |
11955 | ||
11956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalY",kwnames,&obj0,&arg2)) goto fail; | |
11957 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11958 | { | |
11959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11960 | result = (wxCoord)((wxDC const *)arg1)->DeviceToLogicalY(arg2); | |
11961 | ||
11962 | wxPyEndAllowThreads(__tstate); | |
11963 | if (PyErr_Occurred()) SWIG_fail; | |
11964 | } | |
11965 | resultobj = PyInt_FromLong((long)result); | |
11966 | return resultobj; | |
11967 | fail: | |
11968 | return NULL; | |
11969 | } | |
11970 | ||
11971 | ||
11972 | static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11973 | PyObject *resultobj; | |
11974 | wxDC *arg1 = (wxDC *) 0 ; | |
11975 | wxCoord arg2 ; | |
11976 | wxCoord result; | |
11977 | PyObject * obj0 = 0 ; | |
11978 | char *kwnames[] = { | |
11979 | (char *) "self",(char *) "x", NULL | |
11980 | }; | |
11981 | ||
11982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalXRel",kwnames,&obj0,&arg2)) goto fail; | |
11983 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11984 | { | |
11985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11986 | result = (wxCoord)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2); | |
11987 | ||
11988 | wxPyEndAllowThreads(__tstate); | |
11989 | if (PyErr_Occurred()) SWIG_fail; | |
11990 | } | |
11991 | resultobj = PyInt_FromLong((long)result); | |
11992 | return resultobj; | |
11993 | fail: | |
11994 | return NULL; | |
11995 | } | |
11996 | ||
11997 | ||
11998 | static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11999 | PyObject *resultobj; | |
12000 | wxDC *arg1 = (wxDC *) 0 ; | |
12001 | wxCoord arg2 ; | |
12002 | wxCoord result; | |
12003 | PyObject * obj0 = 0 ; | |
12004 | char *kwnames[] = { | |
12005 | (char *) "self",(char *) "y", NULL | |
12006 | }; | |
12007 | ||
12008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalYRel",kwnames,&obj0,&arg2)) goto fail; | |
12009 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12010 | { | |
12011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12012 | result = (wxCoord)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2); | |
12013 | ||
12014 | wxPyEndAllowThreads(__tstate); | |
12015 | if (PyErr_Occurred()) SWIG_fail; | |
12016 | } | |
12017 | resultobj = PyInt_FromLong((long)result); | |
12018 | return resultobj; | |
12019 | fail: | |
12020 | return NULL; | |
12021 | } | |
12022 | ||
12023 | ||
12024 | static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12025 | PyObject *resultobj; | |
12026 | wxDC *arg1 = (wxDC *) 0 ; | |
12027 | wxCoord arg2 ; | |
12028 | wxCoord result; | |
12029 | PyObject * obj0 = 0 ; | |
12030 | char *kwnames[] = { | |
12031 | (char *) "self",(char *) "x", NULL | |
12032 | }; | |
12033 | ||
12034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceX",kwnames,&obj0,&arg2)) goto fail; | |
12035 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12036 | { | |
12037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12038 | result = (wxCoord)((wxDC const *)arg1)->LogicalToDeviceX(arg2); | |
12039 | ||
12040 | wxPyEndAllowThreads(__tstate); | |
12041 | if (PyErr_Occurred()) SWIG_fail; | |
12042 | } | |
12043 | resultobj = PyInt_FromLong((long)result); | |
12044 | return resultobj; | |
12045 | fail: | |
12046 | return NULL; | |
12047 | } | |
12048 | ||
12049 | ||
12050 | static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12051 | PyObject *resultobj; | |
12052 | wxDC *arg1 = (wxDC *) 0 ; | |
12053 | wxCoord arg2 ; | |
12054 | wxCoord result; | |
12055 | PyObject * obj0 = 0 ; | |
12056 | char *kwnames[] = { | |
12057 | (char *) "self",(char *) "y", NULL | |
12058 | }; | |
12059 | ||
12060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceY",kwnames,&obj0,&arg2)) goto fail; | |
12061 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12062 | { | |
12063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12064 | result = (wxCoord)((wxDC const *)arg1)->LogicalToDeviceY(arg2); | |
12065 | ||
12066 | wxPyEndAllowThreads(__tstate); | |
12067 | if (PyErr_Occurred()) SWIG_fail; | |
12068 | } | |
12069 | resultobj = PyInt_FromLong((long)result); | |
12070 | return resultobj; | |
12071 | fail: | |
12072 | return NULL; | |
12073 | } | |
12074 | ||
12075 | ||
12076 | static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12077 | PyObject *resultobj; | |
12078 | wxDC *arg1 = (wxDC *) 0 ; | |
12079 | wxCoord arg2 ; | |
12080 | wxCoord result; | |
12081 | PyObject * obj0 = 0 ; | |
12082 | char *kwnames[] = { | |
12083 | (char *) "self",(char *) "x", NULL | |
12084 | }; | |
12085 | ||
12086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceXRel",kwnames,&obj0,&arg2)) goto fail; | |
12087 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12088 | { | |
12089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12090 | result = (wxCoord)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2); | |
12091 | ||
12092 | wxPyEndAllowThreads(__tstate); | |
12093 | if (PyErr_Occurred()) SWIG_fail; | |
12094 | } | |
12095 | resultobj = PyInt_FromLong((long)result); | |
12096 | return resultobj; | |
12097 | fail: | |
12098 | return NULL; | |
12099 | } | |
12100 | ||
12101 | ||
12102 | static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12103 | PyObject *resultobj; | |
12104 | wxDC *arg1 = (wxDC *) 0 ; | |
12105 | wxCoord arg2 ; | |
12106 | wxCoord result; | |
12107 | PyObject * obj0 = 0 ; | |
12108 | char *kwnames[] = { | |
12109 | (char *) "self",(char *) "y", NULL | |
12110 | }; | |
12111 | ||
12112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceYRel",kwnames,&obj0,&arg2)) goto fail; | |
12113 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12114 | { | |
12115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12116 | result = (wxCoord)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2); | |
12117 | ||
12118 | wxPyEndAllowThreads(__tstate); | |
12119 | if (PyErr_Occurred()) SWIG_fail; | |
12120 | } | |
12121 | resultobj = PyInt_FromLong((long)result); | |
12122 | return resultobj; | |
12123 | fail: | |
12124 | return NULL; | |
12125 | } | |
12126 | ||
12127 | ||
12128 | static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12129 | PyObject *resultobj; | |
12130 | wxDC *arg1 = (wxDC *) 0 ; | |
12131 | bool result; | |
12132 | PyObject * obj0 = 0 ; | |
12133 | char *kwnames[] = { | |
12134 | (char *) "self", NULL | |
12135 | }; | |
12136 | ||
12137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail; | |
12138 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12139 | { | |
12140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12141 | result = (bool)((wxDC const *)arg1)->CanDrawBitmap(); | |
12142 | ||
12143 | wxPyEndAllowThreads(__tstate); | |
12144 | if (PyErr_Occurred()) SWIG_fail; | |
12145 | } | |
12146 | resultobj = PyInt_FromLong((long)result); | |
12147 | return resultobj; | |
12148 | fail: | |
12149 | return NULL; | |
12150 | } | |
12151 | ||
12152 | ||
12153 | static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12154 | PyObject *resultobj; | |
12155 | wxDC *arg1 = (wxDC *) 0 ; | |
12156 | bool result; | |
12157 | PyObject * obj0 = 0 ; | |
12158 | char *kwnames[] = { | |
12159 | (char *) "self", NULL | |
12160 | }; | |
12161 | ||
12162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail; | |
12163 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12164 | { | |
12165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12166 | result = (bool)((wxDC const *)arg1)->CanGetTextExtent(); | |
12167 | ||
12168 | wxPyEndAllowThreads(__tstate); | |
12169 | if (PyErr_Occurred()) SWIG_fail; | |
12170 | } | |
12171 | resultobj = PyInt_FromLong((long)result); | |
12172 | return resultobj; | |
12173 | fail: | |
12174 | return NULL; | |
12175 | } | |
12176 | ||
12177 | ||
12178 | static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12179 | PyObject *resultobj; | |
12180 | wxDC *arg1 = (wxDC *) 0 ; | |
12181 | int result; | |
12182 | PyObject * obj0 = 0 ; | |
12183 | char *kwnames[] = { | |
12184 | (char *) "self", NULL | |
12185 | }; | |
12186 | ||
12187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail; | |
12188 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12189 | { | |
12190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12191 | result = (int)((wxDC const *)arg1)->GetDepth(); | |
12192 | ||
12193 | wxPyEndAllowThreads(__tstate); | |
12194 | if (PyErr_Occurred()) SWIG_fail; | |
12195 | } | |
12196 | resultobj = PyInt_FromLong((long)result); | |
12197 | return resultobj; | |
12198 | fail: | |
12199 | return NULL; | |
12200 | } | |
12201 | ||
12202 | ||
12203 | static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12204 | PyObject *resultobj; | |
12205 | wxDC *arg1 = (wxDC *) 0 ; | |
12206 | wxSize result; | |
12207 | PyObject * obj0 = 0 ; | |
12208 | char *kwnames[] = { | |
12209 | (char *) "self", NULL | |
12210 | }; | |
12211 | ||
12212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail; | |
12213 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12214 | { | |
12215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12216 | result = ((wxDC const *)arg1)->GetPPI(); | |
12217 | ||
12218 | wxPyEndAllowThreads(__tstate); | |
12219 | if (PyErr_Occurred()) SWIG_fail; | |
12220 | } | |
12221 | { | |
12222 | wxSize * resultptr; | |
12223 | resultptr = new wxSize((wxSize &) result); | |
12224 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
12225 | } | |
12226 | return resultobj; | |
12227 | fail: | |
12228 | return NULL; | |
12229 | } | |
12230 | ||
12231 | ||
12232 | static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12233 | PyObject *resultobj; | |
12234 | wxDC *arg1 = (wxDC *) 0 ; | |
12235 | bool result; | |
12236 | PyObject * obj0 = 0 ; | |
12237 | char *kwnames[] = { | |
12238 | (char *) "self", NULL | |
12239 | }; | |
12240 | ||
12241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail; | |
12242 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12243 | { | |
12244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12245 | result = (bool)((wxDC const *)arg1)->Ok(); | |
12246 | ||
12247 | wxPyEndAllowThreads(__tstate); | |
12248 | if (PyErr_Occurred()) SWIG_fail; | |
12249 | } | |
12250 | resultobj = PyInt_FromLong((long)result); | |
12251 | return resultobj; | |
12252 | fail: | |
12253 | return NULL; | |
12254 | } | |
12255 | ||
12256 | ||
12257 | static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12258 | PyObject *resultobj; | |
12259 | wxDC *arg1 = (wxDC *) 0 ; | |
12260 | int result; | |
12261 | PyObject * obj0 = 0 ; | |
12262 | char *kwnames[] = { | |
12263 | (char *) "self", NULL | |
12264 | }; | |
12265 | ||
12266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail; | |
12267 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12268 | { | |
12269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12270 | result = (int)((wxDC const *)arg1)->GetBackgroundMode(); | |
12271 | ||
12272 | wxPyEndAllowThreads(__tstate); | |
12273 | if (PyErr_Occurred()) SWIG_fail; | |
12274 | } | |
12275 | resultobj = PyInt_FromLong((long)result); | |
12276 | return resultobj; | |
12277 | fail: | |
12278 | return NULL; | |
12279 | } | |
12280 | ||
12281 | ||
12282 | static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12283 | PyObject *resultobj; | |
12284 | wxDC *arg1 = (wxDC *) 0 ; | |
12285 | wxBrush *result; | |
12286 | PyObject * obj0 = 0 ; | |
12287 | char *kwnames[] = { | |
12288 | (char *) "self", NULL | |
12289 | }; | |
12290 | ||
12291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail; | |
12292 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12293 | { | |
12294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12295 | { | |
12296 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground(); | |
12297 | result = (wxBrush *) &_result_ref; | |
12298 | } | |
12299 | ||
12300 | wxPyEndAllowThreads(__tstate); | |
12301 | if (PyErr_Occurred()) SWIG_fail; | |
12302 | } | |
12303 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0); | |
12304 | return resultobj; | |
12305 | fail: | |
12306 | return NULL; | |
12307 | } | |
12308 | ||
12309 | ||
12310 | static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12311 | PyObject *resultobj; | |
12312 | wxDC *arg1 = (wxDC *) 0 ; | |
12313 | wxBrush *result; | |
12314 | PyObject * obj0 = 0 ; | |
12315 | char *kwnames[] = { | |
12316 | (char *) "self", NULL | |
12317 | }; | |
12318 | ||
12319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail; | |
12320 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12321 | { | |
12322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12323 | { | |
12324 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush(); | |
12325 | result = (wxBrush *) &_result_ref; | |
12326 | } | |
12327 | ||
12328 | wxPyEndAllowThreads(__tstate); | |
12329 | if (PyErr_Occurred()) SWIG_fail; | |
12330 | } | |
12331 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0); | |
12332 | return resultobj; | |
12333 | fail: | |
12334 | return NULL; | |
12335 | } | |
12336 | ||
12337 | ||
12338 | static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12339 | PyObject *resultobj; | |
12340 | wxDC *arg1 = (wxDC *) 0 ; | |
12341 | wxFont *result; | |
12342 | PyObject * obj0 = 0 ; | |
12343 | char *kwnames[] = { | |
12344 | (char *) "self", NULL | |
12345 | }; | |
12346 | ||
12347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail; | |
12348 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12349 | { | |
12350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12351 | { | |
12352 | wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont(); | |
12353 | result = (wxFont *) &_result_ref; | |
12354 | } | |
12355 | ||
12356 | wxPyEndAllowThreads(__tstate); | |
12357 | if (PyErr_Occurred()) SWIG_fail; | |
12358 | } | |
12359 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0); | |
12360 | return resultobj; | |
12361 | fail: | |
12362 | return NULL; | |
12363 | } | |
12364 | ||
12365 | ||
12366 | static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12367 | PyObject *resultobj; | |
12368 | wxDC *arg1 = (wxDC *) 0 ; | |
12369 | wxPen *result; | |
12370 | PyObject * obj0 = 0 ; | |
12371 | char *kwnames[] = { | |
12372 | (char *) "self", NULL | |
12373 | }; | |
12374 | ||
12375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail; | |
12376 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12377 | { | |
12378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12379 | { | |
12380 | wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen(); | |
12381 | result = (wxPen *) &_result_ref; | |
12382 | } | |
12383 | ||
12384 | wxPyEndAllowThreads(__tstate); | |
12385 | if (PyErr_Occurred()) SWIG_fail; | |
12386 | } | |
12387 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0); | |
12388 | return resultobj; | |
12389 | fail: | |
12390 | return NULL; | |
12391 | } | |
12392 | ||
12393 | ||
12394 | static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12395 | PyObject *resultobj; | |
12396 | wxDC *arg1 = (wxDC *) 0 ; | |
12397 | wxColour *result; | |
12398 | PyObject * obj0 = 0 ; | |
12399 | char *kwnames[] = { | |
12400 | (char *) "self", NULL | |
12401 | }; | |
12402 | ||
12403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail; | |
12404 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12405 | { | |
12406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12407 | { | |
12408 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground(); | |
12409 | result = (wxColour *) &_result_ref; | |
12410 | } | |
12411 | ||
12412 | wxPyEndAllowThreads(__tstate); | |
12413 | if (PyErr_Occurred()) SWIG_fail; | |
12414 | } | |
12415 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0); | |
12416 | return resultobj; | |
12417 | fail: | |
12418 | return NULL; | |
12419 | } | |
12420 | ||
12421 | ||
12422 | static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12423 | PyObject *resultobj; | |
12424 | wxDC *arg1 = (wxDC *) 0 ; | |
12425 | wxColour *result; | |
12426 | PyObject * obj0 = 0 ; | |
12427 | char *kwnames[] = { | |
12428 | (char *) "self", NULL | |
12429 | }; | |
12430 | ||
12431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail; | |
12432 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12433 | { | |
12434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12435 | { | |
12436 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground(); | |
12437 | result = (wxColour *) &_result_ref; | |
12438 | } | |
12439 | ||
12440 | wxPyEndAllowThreads(__tstate); | |
12441 | if (PyErr_Occurred()) SWIG_fail; | |
12442 | } | |
12443 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0); | |
12444 | return resultobj; | |
12445 | fail: | |
12446 | return NULL; | |
12447 | } | |
12448 | ||
12449 | ||
12450 | static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12451 | PyObject *resultobj; | |
12452 | wxDC *arg1 = (wxDC *) 0 ; | |
12453 | wxColour *arg2 = 0 ; | |
12454 | wxColour temp2 ; | |
12455 | PyObject * obj0 = 0 ; | |
12456 | PyObject * obj1 = 0 ; | |
12457 | char *kwnames[] = { | |
12458 | (char *) "self",(char *) "colour", NULL | |
12459 | }; | |
12460 | ||
12461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail; | |
12462 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12463 | { | |
12464 | arg2 = &temp2; | |
12465 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
12466 | } | |
12467 | { | |
12468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12469 | (arg1)->SetTextForeground((wxColour const &)*arg2); | |
12470 | ||
12471 | wxPyEndAllowThreads(__tstate); | |
12472 | if (PyErr_Occurred()) SWIG_fail; | |
12473 | } | |
12474 | Py_INCREF(Py_None); resultobj = Py_None; | |
12475 | return resultobj; | |
12476 | fail: | |
12477 | return NULL; | |
12478 | } | |
12479 | ||
12480 | ||
12481 | static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12482 | PyObject *resultobj; | |
12483 | wxDC *arg1 = (wxDC *) 0 ; | |
12484 | wxColour *arg2 = 0 ; | |
12485 | wxColour temp2 ; | |
12486 | PyObject * obj0 = 0 ; | |
12487 | PyObject * obj1 = 0 ; | |
12488 | char *kwnames[] = { | |
12489 | (char *) "self",(char *) "colour", NULL | |
12490 | }; | |
12491 | ||
12492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail; | |
12493 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12494 | { | |
12495 | arg2 = &temp2; | |
12496 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
12497 | } | |
12498 | { | |
12499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12500 | (arg1)->SetTextBackground((wxColour const &)*arg2); | |
12501 | ||
12502 | wxPyEndAllowThreads(__tstate); | |
12503 | if (PyErr_Occurred()) SWIG_fail; | |
12504 | } | |
12505 | Py_INCREF(Py_None); resultobj = Py_None; | |
12506 | return resultobj; | |
12507 | fail: | |
12508 | return NULL; | |
12509 | } | |
12510 | ||
12511 | ||
12512 | static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12513 | PyObject *resultobj; | |
12514 | wxDC *arg1 = (wxDC *) 0 ; | |
12515 | int result; | |
12516 | PyObject * obj0 = 0 ; | |
12517 | char *kwnames[] = { | |
12518 | (char *) "self", NULL | |
12519 | }; | |
12520 | ||
12521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail; | |
12522 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12523 | { | |
12524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12525 | result = (int)((wxDC const *)arg1)->GetMapMode(); | |
12526 | ||
12527 | wxPyEndAllowThreads(__tstate); | |
12528 | if (PyErr_Occurred()) SWIG_fail; | |
12529 | } | |
12530 | resultobj = PyInt_FromLong((long)result); | |
12531 | return resultobj; | |
12532 | fail: | |
12533 | return NULL; | |
12534 | } | |
12535 | ||
12536 | ||
12537 | static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12538 | PyObject *resultobj; | |
12539 | wxDC *arg1 = (wxDC *) 0 ; | |
12540 | int arg2 ; | |
12541 | PyObject * obj0 = 0 ; | |
12542 | char *kwnames[] = { | |
12543 | (char *) "self",(char *) "mode", NULL | |
12544 | }; | |
12545 | ||
12546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_SetMapMode",kwnames,&obj0,&arg2)) goto fail; | |
12547 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12548 | { | |
12549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12550 | (arg1)->SetMapMode(arg2); | |
12551 | ||
12552 | wxPyEndAllowThreads(__tstate); | |
12553 | if (PyErr_Occurred()) SWIG_fail; | |
12554 | } | |
12555 | Py_INCREF(Py_None); resultobj = Py_None; | |
12556 | return resultobj; | |
12557 | fail: | |
12558 | return NULL; | |
12559 | } | |
12560 | ||
12561 | ||
12562 | static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12563 | PyObject *resultobj; | |
12564 | wxDC *arg1 = (wxDC *) 0 ; | |
12565 | double *arg2 = (double *) 0 ; | |
12566 | double *arg3 = (double *) 0 ; | |
12567 | double temp2 ; | |
12568 | double temp3 ; | |
12569 | PyObject * obj0 = 0 ; | |
12570 | char *kwnames[] = { | |
12571 | (char *) "self", NULL | |
12572 | }; | |
12573 | ||
12574 | arg2 = &temp2; | |
12575 | arg3 = &temp3; | |
12576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail; | |
12577 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12578 | { | |
12579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12580 | ((wxDC const *)arg1)->GetUserScale(arg2,arg3); | |
12581 | ||
12582 | wxPyEndAllowThreads(__tstate); | |
12583 | if (PyErr_Occurred()) SWIG_fail; | |
12584 | } | |
12585 | Py_INCREF(Py_None); resultobj = Py_None; | |
12586 | { | |
12587 | PyObject *o = PyFloat_FromDouble((double) (*arg2)); | |
12588 | resultobj = t_output_helper(resultobj,o); | |
12589 | } | |
12590 | { | |
12591 | PyObject *o = PyFloat_FromDouble((double) (*arg3)); | |
12592 | resultobj = t_output_helper(resultobj,o); | |
12593 | } | |
12594 | return resultobj; | |
12595 | fail: | |
12596 | return NULL; | |
12597 | } | |
12598 | ||
12599 | ||
12600 | static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12601 | PyObject *resultobj; | |
12602 | wxDC *arg1 = (wxDC *) 0 ; | |
12603 | double arg2 ; | |
12604 | double arg3 ; | |
12605 | PyObject * obj0 = 0 ; | |
12606 | char *kwnames[] = { | |
12607 | (char *) "self",(char *) "x",(char *) "y", NULL | |
12608 | }; | |
12609 | ||
12610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:DC_SetUserScale",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
12611 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12612 | { | |
12613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12614 | (arg1)->SetUserScale(arg2,arg3); | |
12615 | ||
12616 | wxPyEndAllowThreads(__tstate); | |
12617 | if (PyErr_Occurred()) SWIG_fail; | |
12618 | } | |
12619 | Py_INCREF(Py_None); resultobj = Py_None; | |
12620 | return resultobj; | |
12621 | fail: | |
12622 | return NULL; | |
12623 | } | |
12624 | ||
12625 | ||
12626 | static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12627 | PyObject *resultobj; | |
12628 | wxDC *arg1 = (wxDC *) 0 ; | |
12629 | double *arg2 = (double *) 0 ; | |
12630 | double *arg3 = (double *) 0 ; | |
12631 | double temp2 ; | |
12632 | double temp3 ; | |
12633 | PyObject * obj0 = 0 ; | |
12634 | char *kwnames[] = { | |
12635 | (char *) "self", NULL | |
12636 | }; | |
12637 | ||
12638 | arg2 = &temp2; | |
12639 | arg3 = &temp3; | |
12640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail; | |
12641 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12642 | { | |
12643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12644 | (arg1)->GetLogicalScale(arg2,arg3); | |
12645 | ||
12646 | wxPyEndAllowThreads(__tstate); | |
12647 | if (PyErr_Occurred()) SWIG_fail; | |
12648 | } | |
12649 | Py_INCREF(Py_None); resultobj = Py_None; | |
12650 | { | |
12651 | PyObject *o = PyFloat_FromDouble((double) (*arg2)); | |
12652 | resultobj = t_output_helper(resultobj,o); | |
12653 | } | |
12654 | { | |
12655 | PyObject *o = PyFloat_FromDouble((double) (*arg3)); | |
12656 | resultobj = t_output_helper(resultobj,o); | |
12657 | } | |
12658 | return resultobj; | |
12659 | fail: | |
12660 | return NULL; | |
12661 | } | |
12662 | ||
12663 | ||
12664 | static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12665 | PyObject *resultobj; | |
12666 | wxDC *arg1 = (wxDC *) 0 ; | |
12667 | double arg2 ; | |
12668 | double arg3 ; | |
12669 | PyObject * obj0 = 0 ; | |
12670 | char *kwnames[] = { | |
12671 | (char *) "self",(char *) "x",(char *) "y", NULL | |
12672 | }; | |
12673 | ||
12674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:DC_SetLogicalScale",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
12675 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12676 | { | |
12677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12678 | (arg1)->SetLogicalScale(arg2,arg3); | |
12679 | ||
12680 | wxPyEndAllowThreads(__tstate); | |
12681 | if (PyErr_Occurred()) SWIG_fail; | |
12682 | } | |
12683 | Py_INCREF(Py_None); resultobj = Py_None; | |
12684 | return resultobj; | |
12685 | fail: | |
12686 | return NULL; | |
12687 | } | |
12688 | ||
12689 | ||
12690 | static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12691 | PyObject *resultobj; | |
12692 | wxDC *arg1 = (wxDC *) 0 ; | |
12693 | wxCoord *arg2 = (wxCoord *) 0 ; | |
12694 | wxCoord *arg3 = (wxCoord *) 0 ; | |
12695 | wxCoord temp2 ; | |
12696 | wxCoord temp3 ; | |
12697 | PyObject * obj0 = 0 ; | |
12698 | char *kwnames[] = { | |
12699 | (char *) "self", NULL | |
12700 | }; | |
12701 | ||
12702 | arg2 = &temp2; | |
12703 | arg3 = &temp3; | |
12704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail; | |
12705 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12706 | { | |
12707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12708 | ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3); | |
12709 | ||
12710 | wxPyEndAllowThreads(__tstate); | |
12711 | if (PyErr_Occurred()) SWIG_fail; | |
12712 | } | |
12713 | Py_INCREF(Py_None); resultobj = Py_None; | |
12714 | { | |
12715 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
12716 | resultobj = t_output_helper(resultobj,o); | |
12717 | } | |
12718 | { | |
12719 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12720 | resultobj = t_output_helper(resultobj,o); | |
12721 | } | |
12722 | return resultobj; | |
12723 | fail: | |
12724 | return NULL; | |
12725 | } | |
12726 | ||
12727 | ||
12728 | static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12729 | PyObject *resultobj; | |
12730 | wxDC *arg1 = (wxDC *) 0 ; | |
12731 | wxPoint result; | |
12732 | PyObject * obj0 = 0 ; | |
12733 | char *kwnames[] = { | |
12734 | (char *) "self", NULL | |
12735 | }; | |
12736 | ||
12737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail; | |
12738 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12739 | { | |
12740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12741 | result = ((wxDC const *)arg1)->GetLogicalOrigin(); | |
12742 | ||
12743 | wxPyEndAllowThreads(__tstate); | |
12744 | if (PyErr_Occurred()) SWIG_fail; | |
12745 | } | |
12746 | { | |
12747 | wxPoint * resultptr; | |
12748 | resultptr = new wxPoint((wxPoint &) result); | |
12749 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
12750 | } | |
12751 | return resultobj; | |
12752 | fail: | |
12753 | return NULL; | |
12754 | } | |
12755 | ||
12756 | ||
12757 | static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12758 | PyObject *resultobj; | |
12759 | wxDC *arg1 = (wxDC *) 0 ; | |
12760 | wxCoord arg2 ; | |
12761 | wxCoord arg3 ; | |
12762 | PyObject * obj0 = 0 ; | |
12763 | char *kwnames[] = { | |
12764 | (char *) "self",(char *) "x",(char *) "y", NULL | |
12765 | }; | |
12766 | ||
12767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_SetLogicalOrigin",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
12768 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12769 | { | |
12770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12771 | (arg1)->SetLogicalOrigin(arg2,arg3); | |
12772 | ||
12773 | wxPyEndAllowThreads(__tstate); | |
12774 | if (PyErr_Occurred()) SWIG_fail; | |
12775 | } | |
12776 | Py_INCREF(Py_None); resultobj = Py_None; | |
12777 | return resultobj; | |
12778 | fail: | |
12779 | return NULL; | |
12780 | } | |
12781 | ||
12782 | ||
12783 | static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12784 | PyObject *resultobj; | |
12785 | wxDC *arg1 = (wxDC *) 0 ; | |
12786 | wxCoord *arg2 = (wxCoord *) 0 ; | |
12787 | wxCoord *arg3 = (wxCoord *) 0 ; | |
12788 | wxCoord temp2 ; | |
12789 | wxCoord temp3 ; | |
12790 | PyObject * obj0 = 0 ; | |
12791 | char *kwnames[] = { | |
12792 | (char *) "self", NULL | |
12793 | }; | |
12794 | ||
12795 | arg2 = &temp2; | |
12796 | arg3 = &temp3; | |
12797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail; | |
12798 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12799 | { | |
12800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12801 | ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3); | |
12802 | ||
12803 | wxPyEndAllowThreads(__tstate); | |
12804 | if (PyErr_Occurred()) SWIG_fail; | |
12805 | } | |
12806 | Py_INCREF(Py_None); resultobj = Py_None; | |
12807 | { | |
12808 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
12809 | resultobj = t_output_helper(resultobj,o); | |
12810 | } | |
12811 | { | |
12812 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12813 | resultobj = t_output_helper(resultobj,o); | |
12814 | } | |
12815 | return resultobj; | |
12816 | fail: | |
12817 | return NULL; | |
12818 | } | |
12819 | ||
12820 | ||
12821 | static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12822 | PyObject *resultobj; | |
12823 | wxDC *arg1 = (wxDC *) 0 ; | |
12824 | wxPoint result; | |
12825 | PyObject * obj0 = 0 ; | |
12826 | char *kwnames[] = { | |
12827 | (char *) "self", NULL | |
12828 | }; | |
12829 | ||
12830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail; | |
12831 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12832 | { | |
12833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12834 | result = ((wxDC const *)arg1)->GetDeviceOrigin(); | |
12835 | ||
12836 | wxPyEndAllowThreads(__tstate); | |
12837 | if (PyErr_Occurred()) SWIG_fail; | |
12838 | } | |
12839 | { | |
12840 | wxPoint * resultptr; | |
12841 | resultptr = new wxPoint((wxPoint &) result); | |
12842 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
12843 | } | |
12844 | return resultobj; | |
12845 | fail: | |
12846 | return NULL; | |
12847 | } | |
12848 | ||
12849 | ||
12850 | static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12851 | PyObject *resultobj; | |
12852 | wxDC *arg1 = (wxDC *) 0 ; | |
12853 | wxCoord arg2 ; | |
12854 | wxCoord arg3 ; | |
12855 | PyObject * obj0 = 0 ; | |
12856 | char *kwnames[] = { | |
12857 | (char *) "self",(char *) "x",(char *) "y", NULL | |
12858 | }; | |
12859 | ||
12860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_SetDeviceOrigin",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
12861 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12862 | { | |
12863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12864 | (arg1)->SetDeviceOrigin(arg2,arg3); | |
12865 | ||
12866 | wxPyEndAllowThreads(__tstate); | |
12867 | if (PyErr_Occurred()) SWIG_fail; | |
12868 | } | |
12869 | Py_INCREF(Py_None); resultobj = Py_None; | |
12870 | return resultobj; | |
12871 | fail: | |
12872 | return NULL; | |
12873 | } | |
12874 | ||
12875 | ||
12876 | static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12877 | PyObject *resultobj; | |
12878 | wxDC *arg1 = (wxDC *) 0 ; | |
12879 | bool arg2 ; | |
12880 | bool arg3 ; | |
12881 | PyObject * obj0 = 0 ; | |
12882 | PyObject * obj1 = 0 ; | |
12883 | PyObject * obj2 = 0 ; | |
12884 | char *kwnames[] = { | |
12885 | (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL | |
12886 | }; | |
12887 | ||
12888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12889 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12890 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
12891 | if (PyErr_Occurred()) SWIG_fail; | |
12892 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
12893 | if (PyErr_Occurred()) SWIG_fail; | |
12894 | { | |
12895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12896 | (arg1)->SetAxisOrientation(arg2,arg3); | |
12897 | ||
12898 | wxPyEndAllowThreads(__tstate); | |
12899 | if (PyErr_Occurred()) SWIG_fail; | |
12900 | } | |
12901 | Py_INCREF(Py_None); resultobj = Py_None; | |
12902 | return resultobj; | |
12903 | fail: | |
12904 | return NULL; | |
12905 | } | |
12906 | ||
12907 | ||
12908 | static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12909 | PyObject *resultobj; | |
12910 | wxDC *arg1 = (wxDC *) 0 ; | |
12911 | int result; | |
12912 | PyObject * obj0 = 0 ; | |
12913 | char *kwnames[] = { | |
12914 | (char *) "self", NULL | |
12915 | }; | |
12916 | ||
12917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail; | |
12918 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12919 | { | |
12920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12921 | result = (int)((wxDC const *)arg1)->GetLogicalFunction(); | |
12922 | ||
12923 | wxPyEndAllowThreads(__tstate); | |
12924 | if (PyErr_Occurred()) SWIG_fail; | |
12925 | } | |
12926 | resultobj = PyInt_FromLong((long)result); | |
12927 | return resultobj; | |
12928 | fail: | |
12929 | return NULL; | |
12930 | } | |
12931 | ||
12932 | ||
12933 | static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12934 | PyObject *resultobj; | |
12935 | wxDC *arg1 = (wxDC *) 0 ; | |
12936 | int arg2 ; | |
12937 | PyObject * obj0 = 0 ; | |
12938 | char *kwnames[] = { | |
12939 | (char *) "self",(char *) "function", NULL | |
12940 | }; | |
12941 | ||
12942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_SetLogicalFunction",kwnames,&obj0,&arg2)) goto fail; | |
12943 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12944 | { | |
12945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12946 | (arg1)->SetLogicalFunction(arg2); | |
12947 | ||
12948 | wxPyEndAllowThreads(__tstate); | |
12949 | if (PyErr_Occurred()) SWIG_fail; | |
12950 | } | |
12951 | Py_INCREF(Py_None); resultobj = Py_None; | |
12952 | return resultobj; | |
12953 | fail: | |
12954 | return NULL; | |
12955 | } | |
12956 | ||
12957 | ||
12958 | static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12959 | PyObject *resultobj; | |
12960 | wxDC *arg1 = (wxDC *) 0 ; | |
12961 | bool arg2 ; | |
12962 | PyObject * obj0 = 0 ; | |
12963 | PyObject * obj1 = 0 ; | |
12964 | char *kwnames[] = { | |
12965 | (char *) "self",(char *) "opt", NULL | |
12966 | }; | |
12967 | ||
12968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail; | |
12969 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12970 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
12971 | if (PyErr_Occurred()) SWIG_fail; | |
12972 | { | |
12973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12974 | (arg1)->SetOptimization(arg2); | |
12975 | ||
12976 | wxPyEndAllowThreads(__tstate); | |
12977 | if (PyErr_Occurred()) SWIG_fail; | |
12978 | } | |
12979 | Py_INCREF(Py_None); resultobj = Py_None; | |
12980 | return resultobj; | |
12981 | fail: | |
12982 | return NULL; | |
12983 | } | |
12984 | ||
12985 | ||
12986 | static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12987 | PyObject *resultobj; | |
12988 | wxDC *arg1 = (wxDC *) 0 ; | |
12989 | bool result; | |
12990 | PyObject * obj0 = 0 ; | |
12991 | char *kwnames[] = { | |
12992 | (char *) "self", NULL | |
12993 | }; | |
12994 | ||
12995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail; | |
12996 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12997 | { | |
12998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12999 | result = (bool)(arg1)->GetOptimization(); | |
13000 | ||
13001 | wxPyEndAllowThreads(__tstate); | |
13002 | if (PyErr_Occurred()) SWIG_fail; | |
13003 | } | |
13004 | resultobj = PyInt_FromLong((long)result); | |
13005 | return resultobj; | |
13006 | fail: | |
13007 | return NULL; | |
13008 | } | |
13009 | ||
13010 | ||
13011 | static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13012 | PyObject *resultobj; | |
13013 | wxDC *arg1 = (wxDC *) 0 ; | |
13014 | wxCoord arg2 ; | |
13015 | wxCoord arg3 ; | |
13016 | PyObject * obj0 = 0 ; | |
13017 | char *kwnames[] = { | |
13018 | (char *) "self",(char *) "x",(char *) "y", NULL | |
13019 | }; | |
13020 | ||
13021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_CalcBoundingBox",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
13022 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13023 | { | |
13024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13025 | (arg1)->CalcBoundingBox(arg2,arg3); | |
13026 | ||
13027 | wxPyEndAllowThreads(__tstate); | |
13028 | if (PyErr_Occurred()) SWIG_fail; | |
13029 | } | |
13030 | Py_INCREF(Py_None); resultobj = Py_None; | |
13031 | return resultobj; | |
13032 | fail: | |
13033 | return NULL; | |
13034 | } | |
13035 | ||
13036 | ||
13037 | static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13038 | PyObject *resultobj; | |
13039 | wxDC *arg1 = (wxDC *) 0 ; | |
13040 | PyObject * obj0 = 0 ; | |
13041 | char *kwnames[] = { | |
13042 | (char *) "self", NULL | |
13043 | }; | |
13044 | ||
13045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail; | |
13046 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13047 | { | |
13048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13049 | (arg1)->ResetBoundingBox(); | |
13050 | ||
13051 | wxPyEndAllowThreads(__tstate); | |
13052 | if (PyErr_Occurred()) SWIG_fail; | |
13053 | } | |
13054 | Py_INCREF(Py_None); resultobj = Py_None; | |
13055 | return resultobj; | |
13056 | fail: | |
13057 | return NULL; | |
13058 | } | |
13059 | ||
13060 | ||
13061 | static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13062 | PyObject *resultobj; | |
13063 | wxDC *arg1 = (wxDC *) 0 ; | |
13064 | wxCoord result; | |
13065 | PyObject * obj0 = 0 ; | |
13066 | char *kwnames[] = { | |
13067 | (char *) "self", NULL | |
13068 | }; | |
13069 | ||
13070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail; | |
13071 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13072 | { | |
13073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13074 | result = (wxCoord)((wxDC const *)arg1)->MinX(); | |
13075 | ||
13076 | wxPyEndAllowThreads(__tstate); | |
13077 | if (PyErr_Occurred()) SWIG_fail; | |
13078 | } | |
13079 | resultobj = PyInt_FromLong((long)result); | |
13080 | return resultobj; | |
13081 | fail: | |
13082 | return NULL; | |
13083 | } | |
13084 | ||
13085 | ||
13086 | static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13087 | PyObject *resultobj; | |
13088 | wxDC *arg1 = (wxDC *) 0 ; | |
13089 | wxCoord result; | |
13090 | PyObject * obj0 = 0 ; | |
13091 | char *kwnames[] = { | |
13092 | (char *) "self", NULL | |
13093 | }; | |
13094 | ||
13095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail; | |
13096 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13097 | { | |
13098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13099 | result = (wxCoord)((wxDC const *)arg1)->MaxX(); | |
13100 | ||
13101 | wxPyEndAllowThreads(__tstate); | |
13102 | if (PyErr_Occurred()) SWIG_fail; | |
13103 | } | |
13104 | resultobj = PyInt_FromLong((long)result); | |
13105 | return resultobj; | |
13106 | fail: | |
13107 | return NULL; | |
13108 | } | |
13109 | ||
13110 | ||
13111 | static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13112 | PyObject *resultobj; | |
13113 | wxDC *arg1 = (wxDC *) 0 ; | |
13114 | wxCoord result; | |
13115 | PyObject * obj0 = 0 ; | |
13116 | char *kwnames[] = { | |
13117 | (char *) "self", NULL | |
13118 | }; | |
13119 | ||
13120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail; | |
13121 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13122 | { | |
13123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13124 | result = (wxCoord)((wxDC const *)arg1)->MinY(); | |
13125 | ||
13126 | wxPyEndAllowThreads(__tstate); | |
13127 | if (PyErr_Occurred()) SWIG_fail; | |
13128 | } | |
13129 | resultobj = PyInt_FromLong((long)result); | |
13130 | return resultobj; | |
13131 | fail: | |
13132 | return NULL; | |
13133 | } | |
13134 | ||
13135 | ||
13136 | static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13137 | PyObject *resultobj; | |
13138 | wxDC *arg1 = (wxDC *) 0 ; | |
13139 | wxCoord result; | |
13140 | PyObject * obj0 = 0 ; | |
13141 | char *kwnames[] = { | |
13142 | (char *) "self", NULL | |
13143 | }; | |
13144 | ||
13145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail; | |
13146 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13147 | { | |
13148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13149 | result = (wxCoord)((wxDC const *)arg1)->MaxY(); | |
13150 | ||
13151 | wxPyEndAllowThreads(__tstate); | |
13152 | if (PyErr_Occurred()) SWIG_fail; | |
13153 | } | |
13154 | resultobj = PyInt_FromLong((long)result); | |
13155 | return resultobj; | |
13156 | fail: | |
13157 | return NULL; | |
13158 | } | |
13159 | ||
13160 | ||
13161 | static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13162 | PyObject *resultobj; | |
13163 | wxDC *arg1 = (wxDC *) 0 ; | |
13164 | int *arg2 = (int *) 0 ; | |
13165 | int *arg3 = (int *) 0 ; | |
13166 | int *arg4 = (int *) 0 ; | |
13167 | int *arg5 = (int *) 0 ; | |
13168 | int temp2 ; | |
13169 | int temp3 ; | |
13170 | int temp4 ; | |
13171 | int temp5 ; | |
13172 | PyObject * obj0 = 0 ; | |
13173 | char *kwnames[] = { | |
13174 | (char *) "self", NULL | |
13175 | }; | |
13176 | ||
13177 | arg2 = &temp2; | |
13178 | arg3 = &temp3; | |
13179 | arg4 = &temp4; | |
13180 | arg5 = &temp5; | |
13181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail; | |
13182 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13183 | { | |
13184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13185 | wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5); | |
13186 | ||
13187 | wxPyEndAllowThreads(__tstate); | |
13188 | if (PyErr_Occurred()) SWIG_fail; | |
13189 | } | |
13190 | Py_INCREF(Py_None); resultobj = Py_None; | |
13191 | { | |
13192 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
13193 | resultobj = t_output_helper(resultobj,o); | |
13194 | } | |
13195 | { | |
13196 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13197 | resultobj = t_output_helper(resultobj,o); | |
13198 | } | |
13199 | { | |
13200 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
13201 | resultobj = t_output_helper(resultobj,o); | |
13202 | } | |
13203 | { | |
13204 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
13205 | resultobj = t_output_helper(resultobj,o); | |
13206 | } | |
13207 | return resultobj; | |
13208 | fail: | |
13209 | return NULL; | |
13210 | } | |
13211 | ||
13212 | ||
13213 | static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13214 | PyObject *resultobj; | |
13215 | wxDC *arg1 = (wxDC *) 0 ; | |
13216 | PyObject *arg2 = (PyObject *) 0 ; | |
13217 | PyObject *arg3 = (PyObject *) 0 ; | |
13218 | PyObject *arg4 = (PyObject *) 0 ; | |
13219 | PyObject *result; | |
13220 | PyObject * obj0 = 0 ; | |
13221 | PyObject * obj1 = 0 ; | |
13222 | PyObject * obj2 = 0 ; | |
13223 | PyObject * obj3 = 0 ; | |
13224 | char *kwnames[] = { | |
13225 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
13226 | }; | |
13227 | ||
13228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13229 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13230 | arg2 = obj1; | |
13231 | arg3 = obj2; | |
13232 | arg4 = obj3; | |
13233 | { | |
13234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13235 | result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4); | |
13236 | ||
13237 | wxPyEndAllowThreads(__tstate); | |
13238 | if (PyErr_Occurred()) SWIG_fail; | |
13239 | } | |
13240 | resultobj = result; | |
13241 | return resultobj; | |
13242 | fail: | |
13243 | return NULL; | |
13244 | } | |
13245 | ||
13246 | ||
13247 | static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13248 | PyObject *resultobj; | |
13249 | wxDC *arg1 = (wxDC *) 0 ; | |
13250 | PyObject *arg2 = (PyObject *) 0 ; | |
13251 | PyObject *arg3 = (PyObject *) 0 ; | |
13252 | PyObject *arg4 = (PyObject *) 0 ; | |
13253 | PyObject *result; | |
13254 | PyObject * obj0 = 0 ; | |
13255 | PyObject * obj1 = 0 ; | |
13256 | PyObject * obj2 = 0 ; | |
13257 | PyObject * obj3 = 0 ; | |
13258 | char *kwnames[] = { | |
13259 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
13260 | }; | |
13261 | ||
13262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13263 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13264 | arg2 = obj1; | |
13265 | arg3 = obj2; | |
13266 | arg4 = obj3; | |
13267 | { | |
13268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13269 | result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4); | |
13270 | ||
13271 | wxPyEndAllowThreads(__tstate); | |
13272 | if (PyErr_Occurred()) SWIG_fail; | |
13273 | } | |
13274 | resultobj = result; | |
13275 | return resultobj; | |
13276 | fail: | |
13277 | return NULL; | |
13278 | } | |
13279 | ||
13280 | ||
13281 | static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13282 | PyObject *resultobj; | |
13283 | wxDC *arg1 = (wxDC *) 0 ; | |
13284 | PyObject *arg2 = (PyObject *) 0 ; | |
13285 | PyObject *arg3 = (PyObject *) 0 ; | |
13286 | PyObject *arg4 = (PyObject *) 0 ; | |
13287 | PyObject *result; | |
13288 | PyObject * obj0 = 0 ; | |
13289 | PyObject * obj1 = 0 ; | |
13290 | PyObject * obj2 = 0 ; | |
13291 | PyObject * obj3 = 0 ; | |
13292 | char *kwnames[] = { | |
13293 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
13294 | }; | |
13295 | ||
13296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13297 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13298 | arg2 = obj1; | |
13299 | arg3 = obj2; | |
13300 | arg4 = obj3; | |
13301 | { | |
13302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13303 | result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4); | |
13304 | ||
13305 | wxPyEndAllowThreads(__tstate); | |
13306 | if (PyErr_Occurred()) SWIG_fail; | |
13307 | } | |
13308 | resultobj = result; | |
13309 | return resultobj; | |
13310 | fail: | |
13311 | return NULL; | |
13312 | } | |
13313 | ||
13314 | ||
13315 | static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13316 | PyObject *resultobj; | |
13317 | wxDC *arg1 = (wxDC *) 0 ; | |
13318 | PyObject *arg2 = (PyObject *) 0 ; | |
13319 | PyObject *arg3 = (PyObject *) 0 ; | |
13320 | PyObject *arg4 = (PyObject *) 0 ; | |
13321 | PyObject *result; | |
13322 | PyObject * obj0 = 0 ; | |
13323 | PyObject * obj1 = 0 ; | |
13324 | PyObject * obj2 = 0 ; | |
13325 | PyObject * obj3 = 0 ; | |
13326 | char *kwnames[] = { | |
13327 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
13328 | }; | |
13329 | ||
13330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13331 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13332 | arg2 = obj1; | |
13333 | arg3 = obj2; | |
13334 | arg4 = obj3; | |
13335 | { | |
13336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13337 | result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4); | |
13338 | ||
13339 | wxPyEndAllowThreads(__tstate); | |
13340 | if (PyErr_Occurred()) SWIG_fail; | |
13341 | } | |
13342 | resultobj = result; | |
13343 | return resultobj; | |
13344 | fail: | |
13345 | return NULL; | |
13346 | } | |
13347 | ||
13348 | ||
13349 | static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13350 | PyObject *resultobj; | |
13351 | wxDC *arg1 = (wxDC *) 0 ; | |
13352 | PyObject *arg2 = (PyObject *) 0 ; | |
13353 | PyObject *arg3 = (PyObject *) 0 ; | |
13354 | PyObject *arg4 = (PyObject *) 0 ; | |
13355 | PyObject *result; | |
13356 | PyObject * obj0 = 0 ; | |
13357 | PyObject * obj1 = 0 ; | |
13358 | PyObject * obj2 = 0 ; | |
13359 | PyObject * obj3 = 0 ; | |
13360 | char *kwnames[] = { | |
13361 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
13362 | }; | |
13363 | ||
13364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13365 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13366 | arg2 = obj1; | |
13367 | arg3 = obj2; | |
13368 | arg4 = obj3; | |
13369 | { | |
13370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13371 | result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4); | |
13372 | ||
13373 | wxPyEndAllowThreads(__tstate); | |
13374 | if (PyErr_Occurred()) SWIG_fail; | |
13375 | } | |
13376 | resultobj = result; | |
13377 | return resultobj; | |
13378 | fail: | |
13379 | return NULL; | |
13380 | } | |
13381 | ||
13382 | ||
13383 | static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13384 | PyObject *resultobj; | |
13385 | wxDC *arg1 = (wxDC *) 0 ; | |
13386 | PyObject *arg2 = (PyObject *) 0 ; | |
13387 | PyObject *arg3 = (PyObject *) 0 ; | |
13388 | PyObject *arg4 = (PyObject *) 0 ; | |
13389 | PyObject *arg5 = (PyObject *) 0 ; | |
13390 | PyObject *result; | |
13391 | PyObject * obj0 = 0 ; | |
13392 | PyObject * obj1 = 0 ; | |
13393 | PyObject * obj2 = 0 ; | |
13394 | PyObject * obj3 = 0 ; | |
13395 | PyObject * obj4 = 0 ; | |
13396 | char *kwnames[] = { | |
13397 | (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL | |
13398 | }; | |
13399 | ||
13400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
13401 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13402 | arg2 = obj1; | |
13403 | arg3 = obj2; | |
13404 | arg4 = obj3; | |
13405 | arg5 = obj4; | |
13406 | { | |
13407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13408 | result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5); | |
13409 | ||
13410 | wxPyEndAllowThreads(__tstate); | |
13411 | if (PyErr_Occurred()) SWIG_fail; | |
13412 | } | |
13413 | resultobj = result; | |
13414 | return resultobj; | |
13415 | fail: | |
13416 | return NULL; | |
13417 | } | |
13418 | ||
13419 | ||
13420 | static PyObject * DC_swigregister(PyObject *self, PyObject *args) { | |
13421 | PyObject *obj; | |
13422 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13423 | SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj); | |
13424 | Py_INCREF(obj); | |
13425 | return Py_BuildValue((char *)""); | |
13426 | } | |
13427 | static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13428 | PyObject *resultobj; | |
13429 | wxMemoryDC *result; | |
13430 | char *kwnames[] = { | |
13431 | NULL | |
13432 | }; | |
13433 | ||
13434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail; | |
13435 | { | |
13436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13437 | result = (wxMemoryDC *)new wxMemoryDC(); | |
13438 | ||
13439 | wxPyEndAllowThreads(__tstate); | |
13440 | if (PyErr_Occurred()) SWIG_fail; | |
13441 | } | |
13442 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1); | |
13443 | return resultobj; | |
13444 | fail: | |
13445 | return NULL; | |
13446 | } | |
13447 | ||
13448 | ||
13449 | static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13450 | PyObject *resultobj; | |
13451 | wxDC *arg1 = (wxDC *) 0 ; | |
13452 | wxMemoryDC *result; | |
13453 | PyObject * obj0 = 0 ; | |
13454 | char *kwnames[] = { | |
13455 | (char *) "oldDC", NULL | |
13456 | }; | |
13457 | ||
13458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail; | |
13459 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13460 | { | |
13461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13462 | result = (wxMemoryDC *)new wxMemoryDC(arg1); | |
13463 | ||
13464 | wxPyEndAllowThreads(__tstate); | |
13465 | if (PyErr_Occurred()) SWIG_fail; | |
13466 | } | |
13467 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1); | |
13468 | return resultobj; | |
13469 | fail: | |
13470 | return NULL; | |
13471 | } | |
13472 | ||
13473 | ||
13474 | static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13475 | PyObject *resultobj; | |
13476 | wxMemoryDC *arg1 = (wxMemoryDC *) 0 ; | |
13477 | wxBitmap *arg2 = 0 ; | |
13478 | PyObject * obj0 = 0 ; | |
13479 | PyObject * obj1 = 0 ; | |
13480 | char *kwnames[] = { | |
13481 | (char *) "self",(char *) "bitmap", NULL | |
13482 | }; | |
13483 | ||
13484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail; | |
13485 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13486 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13487 | if (arg2 == NULL) { | |
13488 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13489 | } | |
13490 | { | |
13491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13492 | (arg1)->SelectObject((wxBitmap const &)*arg2); | |
13493 | ||
13494 | wxPyEndAllowThreads(__tstate); | |
13495 | if (PyErr_Occurred()) SWIG_fail; | |
13496 | } | |
13497 | Py_INCREF(Py_None); resultobj = Py_None; | |
13498 | return resultobj; | |
13499 | fail: | |
13500 | return NULL; | |
13501 | } | |
13502 | ||
13503 | ||
13504 | static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) { | |
13505 | PyObject *obj; | |
13506 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13507 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj); | |
13508 | Py_INCREF(obj); | |
13509 | return Py_BuildValue((char *)""); | |
13510 | } | |
13511 | static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13512 | PyObject *resultobj; | |
13513 | wxDC *arg1 = (wxDC *) 0 ; | |
13514 | wxBitmap *arg2 = 0 ; | |
13515 | wxBufferedDC *result; | |
13516 | PyObject * obj0 = 0 ; | |
13517 | PyObject * obj1 = 0 ; | |
13518 | char *kwnames[] = { | |
13519 | (char *) "dc",(char *) "buffer", NULL | |
13520 | }; | |
13521 | ||
13522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_BufferedDC",kwnames,&obj0,&obj1)) goto fail; | |
13523 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13524 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13525 | if (arg2 == NULL) { | |
13526 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13527 | } | |
13528 | { | |
13529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13530 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2); | |
13531 | ||
13532 | wxPyEndAllowThreads(__tstate); | |
13533 | if (PyErr_Occurred()) SWIG_fail; | |
13534 | } | |
13535 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1); | |
13536 | return resultobj; | |
13537 | fail: | |
13538 | return NULL; | |
13539 | } | |
13540 | ||
13541 | ||
13542 | static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13543 | PyObject *resultobj; | |
13544 | wxDC *arg1 = (wxDC *) 0 ; | |
13545 | wxSize *arg2 = 0 ; | |
13546 | wxBufferedDC *result; | |
13547 | wxSize temp2 ; | |
13548 | PyObject * obj0 = 0 ; | |
13549 | PyObject * obj1 = 0 ; | |
13550 | char *kwnames[] = { | |
13551 | (char *) "dc",(char *) "area", NULL | |
13552 | }; | |
13553 | ||
13554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_BufferedDCInternalBuffer",kwnames,&obj0,&obj1)) goto fail; | |
13555 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13556 | { | |
13557 | arg2 = &temp2; | |
13558 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
13559 | } | |
13560 | { | |
13561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13562 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2); | |
13563 | ||
13564 | wxPyEndAllowThreads(__tstate); | |
13565 | if (PyErr_Occurred()) SWIG_fail; | |
13566 | } | |
13567 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1); | |
13568 | return resultobj; | |
13569 | fail: | |
13570 | return NULL; | |
13571 | } | |
13572 | ||
13573 | ||
13574 | static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13575 | PyObject *resultobj; | |
13576 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
13577 | PyObject * obj0 = 0 ; | |
13578 | char *kwnames[] = { | |
13579 | (char *) "self", NULL | |
13580 | }; | |
13581 | ||
13582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail; | |
13583 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBufferedDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13584 | { | |
13585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13586 | (arg1)->UnMask(); | |
13587 | ||
13588 | wxPyEndAllowThreads(__tstate); | |
13589 | if (PyErr_Occurred()) SWIG_fail; | |
13590 | } | |
13591 | Py_INCREF(Py_None); resultobj = Py_None; | |
13592 | return resultobj; | |
13593 | fail: | |
13594 | return NULL; | |
13595 | } | |
13596 | ||
13597 | ||
13598 | static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) { | |
13599 | PyObject *obj; | |
13600 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13601 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj); | |
13602 | Py_INCREF(obj); | |
13603 | return Py_BuildValue((char *)""); | |
13604 | } | |
13605 | static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13606 | PyObject *resultobj; | |
13607 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13608 | wxBitmap const &arg2_defvalue = wxNullBitmap ; | |
13609 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; | |
13610 | wxBufferedPaintDC *result; | |
13611 | PyObject * obj0 = 0 ; | |
13612 | PyObject * obj1 = 0 ; | |
13613 | char *kwnames[] = { | |
13614 | (char *) "window",(char *) "buffer", NULL | |
13615 | }; | |
13616 | ||
13617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail; | |
13618 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13619 | if (obj1) { | |
13620 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13621 | if (arg2 == NULL) { | |
13622 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13623 | } | |
13624 | } | |
13625 | { | |
13626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13627 | result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2); | |
13628 | ||
13629 | wxPyEndAllowThreads(__tstate); | |
13630 | if (PyErr_Occurred()) SWIG_fail; | |
13631 | } | |
13632 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedPaintDC, 1); | |
13633 | return resultobj; | |
13634 | fail: | |
13635 | return NULL; | |
13636 | } | |
13637 | ||
13638 | ||
13639 | static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) { | |
13640 | PyObject *obj; | |
13641 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13642 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj); | |
13643 | Py_INCREF(obj); | |
13644 | return Py_BuildValue((char *)""); | |
13645 | } | |
13646 | static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13647 | PyObject *resultobj; | |
13648 | wxScreenDC *result; | |
13649 | char *kwnames[] = { | |
13650 | NULL | |
13651 | }; | |
13652 | ||
13653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail; | |
13654 | { | |
13655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13656 | result = (wxScreenDC *)new wxScreenDC(); | |
13657 | ||
13658 | wxPyEndAllowThreads(__tstate); | |
13659 | if (PyErr_Occurred()) SWIG_fail; | |
13660 | } | |
13661 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScreenDC, 1); | |
13662 | return resultobj; | |
13663 | fail: | |
13664 | return NULL; | |
13665 | } | |
13666 | ||
13667 | ||
13668 | static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13669 | PyObject *resultobj; | |
13670 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
13671 | wxWindow *arg2 = (wxWindow *) 0 ; | |
13672 | bool result; | |
13673 | PyObject * obj0 = 0 ; | |
13674 | PyObject * obj1 = 0 ; | |
13675 | char *kwnames[] = { | |
13676 | (char *) "self",(char *) "window", NULL | |
13677 | }; | |
13678 | ||
13679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail; | |
13680 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13681 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13682 | { | |
13683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13684 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
13685 | ||
13686 | wxPyEndAllowThreads(__tstate); | |
13687 | if (PyErr_Occurred()) SWIG_fail; | |
13688 | } | |
13689 | resultobj = PyInt_FromLong((long)result); | |
13690 | return resultobj; | |
13691 | fail: | |
13692 | return NULL; | |
13693 | } | |
13694 | ||
13695 | ||
13696 | static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13697 | PyObject *resultobj; | |
13698 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
13699 | wxRect *arg2 = (wxRect *) NULL ; | |
13700 | bool result; | |
13701 | PyObject * obj0 = 0 ; | |
13702 | PyObject * obj1 = 0 ; | |
13703 | char *kwnames[] = { | |
13704 | (char *) "self",(char *) "rect", NULL | |
13705 | }; | |
13706 | ||
13707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail; | |
13708 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13709 | if (obj1) { | |
13710 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13711 | } | |
13712 | { | |
13713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13714 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
13715 | ||
13716 | wxPyEndAllowThreads(__tstate); | |
13717 | if (PyErr_Occurred()) SWIG_fail; | |
13718 | } | |
13719 | resultobj = PyInt_FromLong((long)result); | |
13720 | return resultobj; | |
13721 | fail: | |
13722 | return NULL; | |
13723 | } | |
13724 | ||
13725 | ||
13726 | static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13727 | PyObject *resultobj; | |
13728 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
13729 | bool result; | |
13730 | PyObject * obj0 = 0 ; | |
13731 | char *kwnames[] = { | |
13732 | (char *) "self", NULL | |
13733 | }; | |
13734 | ||
13735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail; | |
13736 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13737 | { | |
13738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13739 | result = (bool)(arg1)->EndDrawingOnTop(); | |
13740 | ||
13741 | wxPyEndAllowThreads(__tstate); | |
13742 | if (PyErr_Occurred()) SWIG_fail; | |
13743 | } | |
13744 | resultobj = PyInt_FromLong((long)result); | |
13745 | return resultobj; | |
13746 | fail: | |
13747 | return NULL; | |
13748 | } | |
13749 | ||
13750 | ||
13751 | static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) { | |
13752 | PyObject *obj; | |
13753 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13754 | SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj); | |
13755 | Py_INCREF(obj); | |
13756 | return Py_BuildValue((char *)""); | |
13757 | } | |
13758 | static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13759 | PyObject *resultobj; | |
13760 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13761 | wxClientDC *result; | |
13762 | PyObject * obj0 = 0 ; | |
13763 | char *kwnames[] = { | |
13764 | (char *) "win", NULL | |
13765 | }; | |
13766 | ||
13767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail; | |
13768 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13769 | { | |
13770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13771 | result = (wxClientDC *)new wxClientDC(arg1); | |
13772 | ||
13773 | wxPyEndAllowThreads(__tstate); | |
13774 | if (PyErr_Occurred()) SWIG_fail; | |
13775 | } | |
13776 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClientDC, 1); | |
13777 | return resultobj; | |
13778 | fail: | |
13779 | return NULL; | |
13780 | } | |
13781 | ||
13782 | ||
13783 | static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) { | |
13784 | PyObject *obj; | |
13785 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13786 | SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj); | |
13787 | Py_INCREF(obj); | |
13788 | return Py_BuildValue((char *)""); | |
13789 | } | |
13790 | static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13791 | PyObject *resultobj; | |
13792 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13793 | wxPaintDC *result; | |
13794 | PyObject * obj0 = 0 ; | |
13795 | char *kwnames[] = { | |
13796 | (char *) "win", NULL | |
13797 | }; | |
13798 | ||
13799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail; | |
13800 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13801 | { | |
13802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13803 | result = (wxPaintDC *)new wxPaintDC(arg1); | |
13804 | ||
13805 | wxPyEndAllowThreads(__tstate); | |
13806 | if (PyErr_Occurred()) SWIG_fail; | |
13807 | } | |
13808 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPaintDC, 1); | |
13809 | return resultobj; | |
13810 | fail: | |
13811 | return NULL; | |
13812 | } | |
13813 | ||
13814 | ||
13815 | static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) { | |
13816 | PyObject *obj; | |
13817 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13818 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj); | |
13819 | Py_INCREF(obj); | |
13820 | return Py_BuildValue((char *)""); | |
13821 | } | |
13822 | static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13823 | PyObject *resultobj; | |
13824 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13825 | wxWindowDC *result; | |
13826 | PyObject * obj0 = 0 ; | |
13827 | char *kwnames[] = { | |
13828 | (char *) "win", NULL | |
13829 | }; | |
13830 | ||
13831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail; | |
13832 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13833 | { | |
13834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13835 | result = (wxWindowDC *)new wxWindowDC(arg1); | |
13836 | ||
13837 | wxPyEndAllowThreads(__tstate); | |
13838 | if (PyErr_Occurred()) SWIG_fail; | |
13839 | } | |
13840 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDC, 1); | |
13841 | return resultobj; | |
13842 | fail: | |
13843 | return NULL; | |
13844 | } | |
13845 | ||
13846 | ||
13847 | static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) { | |
13848 | PyObject *obj; | |
13849 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13850 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj); | |
13851 | Py_INCREF(obj); | |
13852 | return Py_BuildValue((char *)""); | |
13853 | } | |
13854 | static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13855 | PyObject *resultobj; | |
13856 | wxDC *arg1 = 0 ; | |
13857 | bool arg2 ; | |
13858 | wxMirrorDC *result; | |
13859 | PyObject * obj0 = 0 ; | |
13860 | PyObject * obj1 = 0 ; | |
13861 | char *kwnames[] = { | |
13862 | (char *) "dc",(char *) "mirror", NULL | |
13863 | }; | |
13864 | ||
13865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail; | |
13866 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13867 | if (arg1 == NULL) { | |
13868 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13869 | } | |
13870 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
13871 | if (PyErr_Occurred()) SWIG_fail; | |
13872 | { | |
13873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13874 | result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2); | |
13875 | ||
13876 | wxPyEndAllowThreads(__tstate); | |
13877 | if (PyErr_Occurred()) SWIG_fail; | |
13878 | } | |
13879 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMirrorDC, 1); | |
13880 | return resultobj; | |
13881 | fail: | |
13882 | return NULL; | |
13883 | } | |
13884 | ||
13885 | ||
13886 | static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) { | |
13887 | PyObject *obj; | |
13888 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13889 | SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj); | |
13890 | Py_INCREF(obj); | |
13891 | return Py_BuildValue((char *)""); | |
13892 | } | |
13893 | static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13894 | PyObject *resultobj; | |
13895 | wxPrintData *arg1 = 0 ; | |
13896 | wxPostScriptDC *result; | |
13897 | PyObject * obj0 = 0 ; | |
13898 | char *kwnames[] = { | |
13899 | (char *) "printData", NULL | |
13900 | }; | |
13901 | ||
13902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail; | |
13903 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13904 | if (arg1 == NULL) { | |
13905 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13906 | } | |
13907 | { | |
13908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13909 | result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1); | |
13910 | ||
13911 | wxPyEndAllowThreads(__tstate); | |
13912 | if (PyErr_Occurred()) SWIG_fail; | |
13913 | } | |
13914 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPostScriptDC, 1); | |
13915 | return resultobj; | |
13916 | fail: | |
13917 | return NULL; | |
13918 | } | |
13919 | ||
13920 | ||
13921 | static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13922 | PyObject *resultobj; | |
13923 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
13924 | wxPrintData *result; | |
13925 | PyObject * obj0 = 0 ; | |
13926 | char *kwnames[] = { | |
13927 | (char *) "self", NULL | |
13928 | }; | |
13929 | ||
13930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail; | |
13931 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13932 | { | |
13933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13934 | { | |
13935 | wxPrintData &_result_ref = (arg1)->GetPrintData(); | |
13936 | result = (wxPrintData *) &_result_ref; | |
13937 | } | |
13938 | ||
13939 | wxPyEndAllowThreads(__tstate); | |
13940 | if (PyErr_Occurred()) SWIG_fail; | |
13941 | } | |
13942 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrintData, 0); | |
13943 | return resultobj; | |
13944 | fail: | |
13945 | return NULL; | |
13946 | } | |
13947 | ||
13948 | ||
13949 | static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13950 | PyObject *resultobj; | |
13951 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
13952 | wxPrintData *arg2 = 0 ; | |
13953 | PyObject * obj0 = 0 ; | |
13954 | PyObject * obj1 = 0 ; | |
13955 | char *kwnames[] = { | |
13956 | (char *) "self",(char *) "data", NULL | |
13957 | }; | |
13958 | ||
13959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail; | |
13960 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13961 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13962 | if (arg2 == NULL) { | |
13963 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13964 | } | |
13965 | { | |
13966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13967 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
13968 | ||
13969 | wxPyEndAllowThreads(__tstate); | |
13970 | if (PyErr_Occurred()) SWIG_fail; | |
13971 | } | |
13972 | Py_INCREF(Py_None); resultobj = Py_None; | |
13973 | return resultobj; | |
13974 | fail: | |
13975 | return NULL; | |
13976 | } | |
13977 | ||
13978 | ||
13979 | static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13980 | PyObject *resultobj; | |
13981 | int arg1 ; | |
13982 | char *kwnames[] = { | |
13983 | (char *) "ppi", NULL | |
13984 | }; | |
13985 | ||
13986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:PostScriptDC_SetResolution",kwnames,&arg1)) goto fail; | |
13987 | { | |
13988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13989 | wxPostScriptDC::SetResolution(arg1); | |
13990 | ||
13991 | wxPyEndAllowThreads(__tstate); | |
13992 | if (PyErr_Occurred()) SWIG_fail; | |
13993 | } | |
13994 | Py_INCREF(Py_None); resultobj = Py_None; | |
13995 | return resultobj; | |
13996 | fail: | |
13997 | return NULL; | |
13998 | } | |
13999 | ||
14000 | ||
14001 | static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14002 | PyObject *resultobj; | |
14003 | int result; | |
14004 | char *kwnames[] = { | |
14005 | NULL | |
14006 | }; | |
14007 | ||
14008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail; | |
14009 | { | |
14010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14011 | result = (int)wxPostScriptDC::GetResolution(); | |
14012 | ||
14013 | wxPyEndAllowThreads(__tstate); | |
14014 | if (PyErr_Occurred()) SWIG_fail; | |
14015 | } | |
14016 | resultobj = PyInt_FromLong((long)result); | |
14017 | return resultobj; | |
14018 | fail: | |
14019 | return NULL; | |
14020 | } | |
14021 | ||
14022 | ||
14023 | static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) { | |
14024 | PyObject *obj; | |
14025 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14026 | SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj); | |
14027 | Py_INCREF(obj); | |
14028 | return Py_BuildValue((char *)""); | |
14029 | } | |
14030 | static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14031 | PyObject *resultobj; | |
14032 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
14033 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
14034 | wxMetaFile *result; | |
14035 | bool temp1 = false ; | |
14036 | PyObject * obj0 = 0 ; | |
14037 | char *kwnames[] = { | |
14038 | (char *) "filename", NULL | |
14039 | }; | |
14040 | ||
14041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail; | |
14042 | if (obj0) { | |
14043 | { | |
14044 | arg1 = wxString_in_helper(obj0); | |
14045 | if (arg1 == NULL) SWIG_fail; | |
14046 | temp1 = true; | |
14047 | } | |
14048 | } | |
14049 | { | |
14050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14051 | result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1); | |
14052 | ||
14053 | wxPyEndAllowThreads(__tstate); | |
14054 | if (PyErr_Occurred()) SWIG_fail; | |
14055 | } | |
14056 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFile, 1); | |
14057 | { | |
14058 | if (temp1) | |
14059 | delete arg1; | |
14060 | } | |
14061 | return resultobj; | |
14062 | fail: | |
14063 | { | |
14064 | if (temp1) | |
14065 | delete arg1; | |
14066 | } | |
14067 | return NULL; | |
14068 | } | |
14069 | ||
14070 | ||
14071 | static PyObject *_wrap_delete_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14072 | PyObject *resultobj; | |
14073 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
14074 | PyObject * obj0 = 0 ; | |
14075 | char *kwnames[] = { | |
14076 | (char *) "self", NULL | |
14077 | }; | |
14078 | ||
14079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail; | |
14080 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14081 | { | |
14082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14083 | delete arg1; | |
14084 | ||
14085 | wxPyEndAllowThreads(__tstate); | |
14086 | if (PyErr_Occurred()) SWIG_fail; | |
14087 | } | |
14088 | Py_INCREF(Py_None); resultobj = Py_None; | |
14089 | return resultobj; | |
14090 | fail: | |
14091 | return NULL; | |
14092 | } | |
14093 | ||
14094 | ||
14095 | static PyObject *_wrap_MetaFile_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14096 | PyObject *resultobj; | |
14097 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
14098 | bool result; | |
14099 | PyObject * obj0 = 0 ; | |
14100 | char *kwnames[] = { | |
14101 | (char *) "self", NULL | |
14102 | }; | |
14103 | ||
14104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail; | |
14105 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14106 | { | |
14107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14108 | result = (bool)(arg1)->Ok(); | |
14109 | ||
14110 | wxPyEndAllowThreads(__tstate); | |
14111 | if (PyErr_Occurred()) SWIG_fail; | |
14112 | } | |
14113 | resultobj = PyInt_FromLong((long)result); | |
14114 | return resultobj; | |
14115 | fail: | |
14116 | return NULL; | |
14117 | } | |
14118 | ||
14119 | ||
14120 | static PyObject *_wrap_MetaFile_SetClipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14121 | PyObject *resultobj; | |
14122 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
14123 | int arg2 = (int) 0 ; | |
14124 | int arg3 = (int) 0 ; | |
14125 | bool result; | |
14126 | PyObject * obj0 = 0 ; | |
14127 | char *kwnames[] = { | |
14128 | (char *) "self",(char *) "width",(char *) "height", NULL | |
14129 | }; | |
14130 | ||
14131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:MetaFile_SetClipboard",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
14132 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14133 | { | |
14134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14135 | result = (bool)(arg1)->SetClipboard(arg2,arg3); | |
14136 | ||
14137 | wxPyEndAllowThreads(__tstate); | |
14138 | if (PyErr_Occurred()) SWIG_fail; | |
14139 | } | |
14140 | resultobj = PyInt_FromLong((long)result); | |
14141 | return resultobj; | |
14142 | fail: | |
14143 | return NULL; | |
14144 | } | |
14145 | ||
14146 | ||
14147 | static PyObject *_wrap_MetaFile_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14148 | PyObject *resultobj; | |
14149 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
14150 | wxSize result; | |
14151 | PyObject * obj0 = 0 ; | |
14152 | char *kwnames[] = { | |
14153 | (char *) "self", NULL | |
14154 | }; | |
14155 | ||
14156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail; | |
14157 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14158 | { | |
14159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14160 | result = (arg1)->GetSize(); | |
14161 | ||
14162 | wxPyEndAllowThreads(__tstate); | |
14163 | if (PyErr_Occurred()) SWIG_fail; | |
14164 | } | |
14165 | { | |
14166 | wxSize * resultptr; | |
14167 | resultptr = new wxSize((wxSize &) result); | |
14168 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
14169 | } | |
14170 | return resultobj; | |
14171 | fail: | |
14172 | return NULL; | |
14173 | } | |
14174 | ||
14175 | ||
14176 | static PyObject *_wrap_MetaFile_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14177 | PyObject *resultobj; | |
14178 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
14179 | int result; | |
14180 | PyObject * obj0 = 0 ; | |
14181 | char *kwnames[] = { | |
14182 | (char *) "self", NULL | |
14183 | }; | |
14184 | ||
14185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail; | |
14186 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14187 | { | |
14188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14189 | result = (int)(arg1)->GetWidth(); | |
14190 | ||
14191 | wxPyEndAllowThreads(__tstate); | |
14192 | if (PyErr_Occurred()) SWIG_fail; | |
14193 | } | |
14194 | resultobj = PyInt_FromLong((long)result); | |
14195 | return resultobj; | |
14196 | fail: | |
14197 | return NULL; | |
14198 | } | |
14199 | ||
14200 | ||
14201 | static PyObject *_wrap_MetaFile_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14202 | PyObject *resultobj; | |
14203 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
14204 | int result; | |
14205 | PyObject * obj0 = 0 ; | |
14206 | char *kwnames[] = { | |
14207 | (char *) "self", NULL | |
14208 | }; | |
14209 | ||
14210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail; | |
14211 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14212 | { | |
14213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14214 | result = (int)(arg1)->GetHeight(); | |
14215 | ||
14216 | wxPyEndAllowThreads(__tstate); | |
14217 | if (PyErr_Occurred()) SWIG_fail; | |
14218 | } | |
14219 | resultobj = PyInt_FromLong((long)result); | |
14220 | return resultobj; | |
14221 | fail: | |
14222 | return NULL; | |
14223 | } | |
14224 | ||
14225 | ||
14226 | static PyObject *_wrap_MetaFile_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14227 | PyObject *resultobj; | |
14228 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
14229 | wxString *result; | |
14230 | PyObject * obj0 = 0 ; | |
14231 | char *kwnames[] = { | |
14232 | (char *) "self", NULL | |
14233 | }; | |
14234 | ||
14235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetFileName",kwnames,&obj0)) goto fail; | |
14236 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14237 | { | |
14238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14239 | { | |
14240 | wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName(); | |
14241 | result = (wxString *) &_result_ref; | |
14242 | } | |
14243 | ||
14244 | wxPyEndAllowThreads(__tstate); | |
14245 | if (PyErr_Occurred()) SWIG_fail; | |
14246 | } | |
14247 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxString, 0); | |
14248 | return resultobj; | |
14249 | fail: | |
14250 | return NULL; | |
14251 | } | |
14252 | ||
14253 | ||
14254 | static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) { | |
14255 | PyObject *obj; | |
14256 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14257 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj); | |
14258 | Py_INCREF(obj); | |
14259 | return Py_BuildValue((char *)""); | |
14260 | } | |
14261 | static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14262 | PyObject *resultobj; | |
14263 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
14264 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
14265 | int arg2 = (int) 0 ; | |
14266 | int arg3 = (int) 0 ; | |
14267 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
14268 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
14269 | wxMetaFileDC *result; | |
14270 | bool temp1 = false ; | |
14271 | bool temp4 = false ; | |
14272 | PyObject * obj0 = 0 ; | |
14273 | PyObject * obj3 = 0 ; | |
14274 | char *kwnames[] = { | |
14275 | (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL | |
14276 | }; | |
14277 | ||
14278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OiiO:new_MetaFileDC",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail; | |
14279 | if (obj0) { | |
14280 | { | |
14281 | arg1 = wxString_in_helper(obj0); | |
14282 | if (arg1 == NULL) SWIG_fail; | |
14283 | temp1 = true; | |
14284 | } | |
14285 | } | |
14286 | if (obj3) { | |
14287 | { | |
14288 | arg4 = wxString_in_helper(obj3); | |
14289 | if (arg4 == NULL) SWIG_fail; | |
14290 | temp4 = true; | |
14291 | } | |
14292 | } | |
14293 | { | |
14294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14295 | result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4); | |
14296 | ||
14297 | wxPyEndAllowThreads(__tstate); | |
14298 | if (PyErr_Occurred()) SWIG_fail; | |
14299 | } | |
14300 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFileDC, 1); | |
14301 | { | |
14302 | if (temp1) | |
14303 | delete arg1; | |
14304 | } | |
14305 | { | |
14306 | if (temp4) | |
14307 | delete arg4; | |
14308 | } | |
14309 | return resultobj; | |
14310 | fail: | |
14311 | { | |
14312 | if (temp1) | |
14313 | delete arg1; | |
14314 | } | |
14315 | { | |
14316 | if (temp4) | |
14317 | delete arg4; | |
14318 | } | |
14319 | return NULL; | |
14320 | } | |
14321 | ||
14322 | ||
14323 | static PyObject *_wrap_MetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14324 | PyObject *resultobj; | |
14325 | wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ; | |
14326 | wxMetaFile *result; | |
14327 | PyObject * obj0 = 0 ; | |
14328 | char *kwnames[] = { | |
14329 | (char *) "self", NULL | |
14330 | }; | |
14331 | ||
14332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail; | |
14333 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFileDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14334 | { | |
14335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14336 | result = (wxMetaFile *)(arg1)->Close(); | |
14337 | ||
14338 | wxPyEndAllowThreads(__tstate); | |
14339 | if (PyErr_Occurred()) SWIG_fail; | |
14340 | } | |
14341 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFile, 0); | |
14342 | return resultobj; | |
14343 | fail: | |
14344 | return NULL; | |
14345 | } | |
14346 | ||
14347 | ||
14348 | static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) { | |
14349 | PyObject *obj; | |
14350 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14351 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj); | |
14352 | Py_INCREF(obj); | |
14353 | return Py_BuildValue((char *)""); | |
14354 | } | |
14355 | static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14356 | PyObject *resultobj; | |
14357 | wxPrintData *arg1 = 0 ; | |
14358 | wxPrinterDC *result; | |
14359 | PyObject * obj0 = 0 ; | |
14360 | char *kwnames[] = { | |
14361 | (char *) "printData", NULL | |
14362 | }; | |
14363 | ||
14364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail; | |
14365 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14366 | if (arg1 == NULL) { | |
14367 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14368 | } | |
14369 | { | |
14370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14371 | result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1); | |
14372 | ||
14373 | wxPyEndAllowThreads(__tstate); | |
14374 | if (PyErr_Occurred()) SWIG_fail; | |
14375 | } | |
14376 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrinterDC, 1); | |
14377 | return resultobj; | |
14378 | fail: | |
14379 | return NULL; | |
14380 | } | |
14381 | ||
14382 | ||
14383 | static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) { | |
14384 | PyObject *obj; | |
14385 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14386 | SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj); | |
14387 | Py_INCREF(obj); | |
14388 | return Py_BuildValue((char *)""); | |
14389 | } | |
14390 | static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14391 | PyObject *resultobj; | |
14392 | int arg1 ; | |
14393 | int arg2 ; | |
14394 | int arg3 = (int) TRUE ; | |
14395 | int arg4 = (int) 1 ; | |
14396 | wxImageList *result; | |
14397 | char *kwnames[] = { | |
14398 | (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL | |
14399 | }; | |
14400 | ||
14401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii|ii:new_ImageList",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
14402 | { | |
14403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14404 | result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4); | |
14405 | ||
14406 | wxPyEndAllowThreads(__tstate); | |
14407 | if (PyErr_Occurred()) SWIG_fail; | |
14408 | } | |
14409 | { | |
14410 | resultobj = wxPyMake_wxObject(result); | |
14411 | } | |
14412 | return resultobj; | |
14413 | fail: | |
14414 | return NULL; | |
14415 | } | |
14416 | ||
14417 | ||
14418 | static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14419 | PyObject *resultobj; | |
14420 | wxImageList *arg1 = (wxImageList *) 0 ; | |
14421 | PyObject * obj0 = 0 ; | |
14422 | char *kwnames[] = { | |
14423 | (char *) "self", NULL | |
14424 | }; | |
14425 | ||
14426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail; | |
14427 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14428 | { | |
14429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14430 | delete arg1; | |
14431 | ||
14432 | wxPyEndAllowThreads(__tstate); | |
14433 | if (PyErr_Occurred()) SWIG_fail; | |
14434 | } | |
14435 | Py_INCREF(Py_None); resultobj = Py_None; | |
14436 | return resultobj; | |
14437 | fail: | |
14438 | return NULL; | |
14439 | } | |
14440 | ||
14441 | ||
14442 | static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14443 | PyObject *resultobj; | |
14444 | wxImageList *arg1 = (wxImageList *) 0 ; | |
14445 | wxBitmap *arg2 = 0 ; | |
14446 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
14447 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
14448 | int result; | |
14449 | PyObject * obj0 = 0 ; | |
14450 | PyObject * obj1 = 0 ; | |
14451 | PyObject * obj2 = 0 ; | |
14452 | char *kwnames[] = { | |
14453 | (char *) "self",(char *) "bitmap",(char *) "mask", NULL | |
14454 | }; | |
14455 | ||
14456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14457 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14458 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14459 | if (arg2 == NULL) { | |
14460 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14461 | } | |
14462 | if (obj2) { | |
14463 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14464 | if (arg3 == NULL) { | |
14465 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14466 | } | |
14467 | } | |
14468 | { | |
14469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14470 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
14471 | ||
14472 | wxPyEndAllowThreads(__tstate); | |
14473 | if (PyErr_Occurred()) SWIG_fail; | |
14474 | } | |
14475 | resultobj = PyInt_FromLong((long)result); | |
14476 | return resultobj; | |
14477 | fail: | |
14478 | return NULL; | |
14479 | } | |
14480 | ||
14481 | ||
14482 | static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14483 | PyObject *resultobj; | |
14484 | wxImageList *arg1 = (wxImageList *) 0 ; | |
14485 | wxBitmap *arg2 = 0 ; | |
14486 | wxColour *arg3 = 0 ; | |
14487 | int result; | |
14488 | wxColour temp3 ; | |
14489 | PyObject * obj0 = 0 ; | |
14490 | PyObject * obj1 = 0 ; | |
14491 | PyObject * obj2 = 0 ; | |
14492 | char *kwnames[] = { | |
14493 | (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL | |
14494 | }; | |
14495 | ||
14496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14497 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14498 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14499 | if (arg2 == NULL) { | |
14500 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14501 | } | |
14502 | { | |
14503 | arg3 = &temp3; | |
14504 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
14505 | } | |
14506 | { | |
14507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14508 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3); | |
14509 | ||
14510 | wxPyEndAllowThreads(__tstate); | |
14511 | if (PyErr_Occurred()) SWIG_fail; | |
14512 | } | |
14513 | resultobj = PyInt_FromLong((long)result); | |
14514 | return resultobj; | |
14515 | fail: | |
14516 | return NULL; | |
14517 | } | |
14518 | ||
14519 | ||
14520 | static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14521 | PyObject *resultobj; | |
14522 | wxImageList *arg1 = (wxImageList *) 0 ; | |
14523 | wxIcon *arg2 = 0 ; | |
14524 | int result; | |
14525 | PyObject * obj0 = 0 ; | |
14526 | PyObject * obj1 = 0 ; | |
14527 | char *kwnames[] = { | |
14528 | (char *) "self",(char *) "icon", NULL | |
14529 | }; | |
14530 | ||
14531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail; | |
14532 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14533 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14534 | if (arg2 == NULL) { | |
14535 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14536 | } | |
14537 | { | |
14538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14539 | result = (int)(arg1)->Add((wxIcon const &)*arg2); | |
14540 | ||
14541 | wxPyEndAllowThreads(__tstate); | |
14542 | if (PyErr_Occurred()) SWIG_fail; | |
14543 | } | |
14544 | resultobj = PyInt_FromLong((long)result); | |
14545 | return resultobj; | |
14546 | fail: | |
14547 | return NULL; | |
14548 | } | |
14549 | ||
14550 | ||
14551 | static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14552 | PyObject *resultobj; | |
14553 | wxImageList *arg1 = (wxImageList *) 0 ; | |
14554 | int arg2 ; | |
14555 | wxBitmap *arg3 = 0 ; | |
14556 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
14557 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
14558 | bool result; | |
14559 | PyObject * obj0 = 0 ; | |
14560 | PyObject * obj2 = 0 ; | |
14561 | PyObject * obj3 = 0 ; | |
14562 | char *kwnames[] = { | |
14563 | (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL | |
14564 | }; | |
14565 | ||
14566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|O:ImageList_Replace",kwnames,&obj0,&arg2,&obj2,&obj3)) goto fail; | |
14567 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14568 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14569 | if (arg3 == NULL) { | |
14570 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14571 | } | |
14572 | if (obj3) { | |
14573 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14574 | if (arg4 == NULL) { | |
14575 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14576 | } | |
14577 | } | |
14578 | { | |
14579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14580 | result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4); | |
14581 | ||
14582 | wxPyEndAllowThreads(__tstate); | |
14583 | if (PyErr_Occurred()) SWIG_fail; | |
14584 | } | |
14585 | resultobj = PyInt_FromLong((long)result); | |
14586 | return resultobj; | |
14587 | fail: | |
14588 | return NULL; | |
14589 | } | |
14590 | ||
14591 | ||
14592 | static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14593 | PyObject *resultobj; | |
14594 | wxImageList *arg1 = (wxImageList *) 0 ; | |
14595 | int arg2 ; | |
14596 | wxDC *arg3 = 0 ; | |
14597 | int arg4 ; | |
14598 | int arg5 ; | |
14599 | int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ; | |
14600 | bool arg7 = (bool) (bool)FALSE ; | |
14601 | bool result; | |
14602 | PyObject * obj0 = 0 ; | |
14603 | PyObject * obj2 = 0 ; | |
14604 | PyObject * obj6 = 0 ; | |
14605 | char *kwnames[] = { | |
14606 | (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL | |
14607 | }; | |
14608 | ||
14609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiOii|iO:ImageList_Draw",kwnames,&obj0,&arg2,&obj2,&arg4,&arg5,&arg6,&obj6)) goto fail; | |
14610 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14611 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14612 | if (arg3 == NULL) { | |
14613 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14614 | } | |
14615 | if (obj6) { | |
14616 | arg7 = PyInt_AsLong(obj6) ? true : false; | |
14617 | if (PyErr_Occurred()) SWIG_fail; | |
14618 | } | |
14619 | { | |
14620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14621 | result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7); | |
14622 | ||
14623 | wxPyEndAllowThreads(__tstate); | |
14624 | if (PyErr_Occurred()) SWIG_fail; | |
14625 | } | |
14626 | resultobj = PyInt_FromLong((long)result); | |
14627 | return resultobj; | |
14628 | fail: | |
14629 | return NULL; | |
14630 | } | |
14631 | ||
14632 | ||
14633 | static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14634 | PyObject *resultobj; | |
14635 | wxImageList *arg1 = (wxImageList *) 0 ; | |
14636 | int result; | |
14637 | PyObject * obj0 = 0 ; | |
14638 | char *kwnames[] = { | |
14639 | (char *) "self", NULL | |
14640 | }; | |
14641 | ||
14642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail; | |
14643 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14644 | { | |
14645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14646 | result = (int)(arg1)->GetImageCount(); | |
14647 | ||
14648 | wxPyEndAllowThreads(__tstate); | |
14649 | if (PyErr_Occurred()) SWIG_fail; | |
14650 | } | |
14651 | resultobj = PyInt_FromLong((long)result); | |
14652 | return resultobj; | |
14653 | fail: | |
14654 | return NULL; | |
14655 | } | |
14656 | ||
14657 | ||
14658 | static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14659 | PyObject *resultobj; | |
14660 | wxImageList *arg1 = (wxImageList *) 0 ; | |
14661 | int arg2 ; | |
14662 | bool result; | |
14663 | PyObject * obj0 = 0 ; | |
14664 | char *kwnames[] = { | |
14665 | (char *) "self",(char *) "index", NULL | |
14666 | }; | |
14667 | ||
14668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ImageList_Remove",kwnames,&obj0,&arg2)) goto fail; | |
14669 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14670 | { | |
14671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14672 | result = (bool)(arg1)->Remove(arg2); | |
14673 | ||
14674 | wxPyEndAllowThreads(__tstate); | |
14675 | if (PyErr_Occurred()) SWIG_fail; | |
14676 | } | |
14677 | resultobj = PyInt_FromLong((long)result); | |
14678 | return resultobj; | |
14679 | fail: | |
14680 | return NULL; | |
14681 | } | |
14682 | ||
14683 | ||
14684 | static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14685 | PyObject *resultobj; | |
14686 | wxImageList *arg1 = (wxImageList *) 0 ; | |
14687 | bool result; | |
14688 | PyObject * obj0 = 0 ; | |
14689 | char *kwnames[] = { | |
14690 | (char *) "self", NULL | |
14691 | }; | |
14692 | ||
14693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail; | |
14694 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14695 | { | |
14696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14697 | result = (bool)(arg1)->RemoveAll(); | |
14698 | ||
14699 | wxPyEndAllowThreads(__tstate); | |
14700 | if (PyErr_Occurred()) SWIG_fail; | |
14701 | } | |
14702 | resultobj = PyInt_FromLong((long)result); | |
14703 | return resultobj; | |
14704 | fail: | |
14705 | return NULL; | |
14706 | } | |
14707 | ||
14708 | ||
14709 | static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14710 | PyObject *resultobj; | |
14711 | wxImageList *arg1 = (wxImageList *) 0 ; | |
14712 | int arg2 ; | |
14713 | int *arg3 = 0 ; | |
14714 | int *arg4 = 0 ; | |
14715 | int temp3 ; | |
14716 | int temp4 ; | |
14717 | PyObject * obj0 = 0 ; | |
14718 | char *kwnames[] = { | |
14719 | (char *) "self",(char *) "index", NULL | |
14720 | }; | |
14721 | ||
14722 | arg3 = &temp3; | |
14723 | arg4 = &temp4; | |
14724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ImageList_GetSize",kwnames,&obj0,&arg2)) goto fail; | |
14725 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14726 | { | |
14727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14728 | (arg1)->GetSize(arg2,*arg3,*arg4); | |
14729 | ||
14730 | wxPyEndAllowThreads(__tstate); | |
14731 | if (PyErr_Occurred()) SWIG_fail; | |
14732 | } | |
14733 | Py_INCREF(Py_None); resultobj = Py_None; | |
14734 | { | |
14735 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14736 | resultobj = t_output_helper(resultobj,o); | |
14737 | } | |
14738 | { | |
14739 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
14740 | resultobj = t_output_helper(resultobj,o); | |
14741 | } | |
14742 | return resultobj; | |
14743 | fail: | |
14744 | return NULL; | |
14745 | } | |
14746 | ||
14747 | ||
14748 | static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) { | |
14749 | PyObject *obj; | |
14750 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14751 | SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj); | |
14752 | Py_INCREF(obj); | |
14753 | return Py_BuildValue((char *)""); | |
14754 | } | |
14755 | static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14756 | PyObject *resultobj; | |
14757 | wxPenList *arg1 = (wxPenList *) 0 ; | |
14758 | wxPen *arg2 = (wxPen *) 0 ; | |
14759 | PyObject * obj0 = 0 ; | |
14760 | PyObject * obj1 = 0 ; | |
14761 | char *kwnames[] = { | |
14762 | (char *) "self",(char *) "pen", NULL | |
14763 | }; | |
14764 | ||
14765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail; | |
14766 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14767 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14768 | { | |
14769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14770 | (arg1)->AddPen(arg2); | |
14771 | ||
14772 | wxPyEndAllowThreads(__tstate); | |
14773 | if (PyErr_Occurred()) SWIG_fail; | |
14774 | } | |
14775 | Py_INCREF(Py_None); resultobj = Py_None; | |
14776 | return resultobj; | |
14777 | fail: | |
14778 | return NULL; | |
14779 | } | |
14780 | ||
14781 | ||
14782 | static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14783 | PyObject *resultobj; | |
14784 | wxPenList *arg1 = (wxPenList *) 0 ; | |
14785 | wxColour *arg2 = 0 ; | |
14786 | int arg3 ; | |
14787 | int arg4 ; | |
14788 | wxPen *result; | |
14789 | wxColour temp2 ; | |
14790 | PyObject * obj0 = 0 ; | |
14791 | PyObject * obj1 = 0 ; | |
14792 | char *kwnames[] = { | |
14793 | (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL | |
14794 | }; | |
14795 | ||
14796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail; | |
14797 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14798 | { | |
14799 | arg2 = &temp2; | |
14800 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
14801 | } | |
14802 | { | |
14803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14804 | result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4); | |
14805 | ||
14806 | wxPyEndAllowThreads(__tstate); | |
14807 | if (PyErr_Occurred()) SWIG_fail; | |
14808 | } | |
14809 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0); | |
14810 | return resultobj; | |
14811 | fail: | |
14812 | return NULL; | |
14813 | } | |
14814 | ||
14815 | ||
14816 | static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14817 | PyObject *resultobj; | |
14818 | wxPenList *arg1 = (wxPenList *) 0 ; | |
14819 | wxPen *arg2 = (wxPen *) 0 ; | |
14820 | PyObject * obj0 = 0 ; | |
14821 | PyObject * obj1 = 0 ; | |
14822 | char *kwnames[] = { | |
14823 | (char *) "self",(char *) "pen", NULL | |
14824 | }; | |
14825 | ||
14826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail; | |
14827 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14828 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14829 | { | |
14830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14831 | (arg1)->RemovePen(arg2); | |
14832 | ||
14833 | wxPyEndAllowThreads(__tstate); | |
14834 | if (PyErr_Occurred()) SWIG_fail; | |
14835 | } | |
14836 | Py_INCREF(Py_None); resultobj = Py_None; | |
14837 | return resultobj; | |
14838 | fail: | |
14839 | return NULL; | |
14840 | } | |
14841 | ||
14842 | ||
14843 | static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14844 | PyObject *resultobj; | |
14845 | wxPenList *arg1 = (wxPenList *) 0 ; | |
14846 | int result; | |
14847 | PyObject * obj0 = 0 ; | |
14848 | char *kwnames[] = { | |
14849 | (char *) "self", NULL | |
14850 | }; | |
14851 | ||
14852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail; | |
14853 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14854 | { | |
14855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14856 | result = (int)(arg1)->GetCount(); | |
14857 | ||
14858 | wxPyEndAllowThreads(__tstate); | |
14859 | if (PyErr_Occurred()) SWIG_fail; | |
14860 | } | |
14861 | resultobj = PyInt_FromLong((long)result); | |
14862 | return resultobj; | |
14863 | fail: | |
14864 | return NULL; | |
14865 | } | |
14866 | ||
14867 | ||
14868 | static PyObject * PenList_swigregister(PyObject *self, PyObject *args) { | |
14869 | PyObject *obj; | |
14870 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14871 | SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj); | |
14872 | Py_INCREF(obj); | |
14873 | return Py_BuildValue((char *)""); | |
14874 | } | |
14875 | static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14876 | PyObject *resultobj; | |
14877 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
14878 | wxBrush *arg2 = (wxBrush *) 0 ; | |
14879 | PyObject * obj0 = 0 ; | |
14880 | PyObject * obj1 = 0 ; | |
14881 | char *kwnames[] = { | |
14882 | (char *) "self",(char *) "brush", NULL | |
14883 | }; | |
14884 | ||
14885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail; | |
14886 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14887 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14888 | { | |
14889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14890 | (arg1)->AddBrush(arg2); | |
14891 | ||
14892 | wxPyEndAllowThreads(__tstate); | |
14893 | if (PyErr_Occurred()) SWIG_fail; | |
14894 | } | |
14895 | Py_INCREF(Py_None); resultobj = Py_None; | |
14896 | return resultobj; | |
14897 | fail: | |
14898 | return NULL; | |
14899 | } | |
14900 | ||
14901 | ||
14902 | static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14903 | PyObject *resultobj; | |
14904 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
14905 | wxColour *arg2 = 0 ; | |
14906 | int arg3 ; | |
14907 | wxBrush *result; | |
14908 | wxColour temp2 ; | |
14909 | PyObject * obj0 = 0 ; | |
14910 | PyObject * obj1 = 0 ; | |
14911 | char *kwnames[] = { | |
14912 | (char *) "self",(char *) "colour",(char *) "style", NULL | |
14913 | }; | |
14914 | ||
14915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
14916 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14917 | { | |
14918 | arg2 = &temp2; | |
14919 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
14920 | } | |
14921 | { | |
14922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14923 | result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3); | |
14924 | ||
14925 | wxPyEndAllowThreads(__tstate); | |
14926 | if (PyErr_Occurred()) SWIG_fail; | |
14927 | } | |
14928 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0); | |
14929 | return resultobj; | |
14930 | fail: | |
14931 | return NULL; | |
14932 | } | |
14933 | ||
14934 | ||
14935 | static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14936 | PyObject *resultobj; | |
14937 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
14938 | wxBrush *arg2 = (wxBrush *) 0 ; | |
14939 | PyObject * obj0 = 0 ; | |
14940 | PyObject * obj1 = 0 ; | |
14941 | char *kwnames[] = { | |
14942 | (char *) "self",(char *) "brush", NULL | |
14943 | }; | |
14944 | ||
14945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail; | |
14946 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14947 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14948 | { | |
14949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14950 | (arg1)->RemoveBrush(arg2); | |
14951 | ||
14952 | wxPyEndAllowThreads(__tstate); | |
14953 | if (PyErr_Occurred()) SWIG_fail; | |
14954 | } | |
14955 | Py_INCREF(Py_None); resultobj = Py_None; | |
14956 | return resultobj; | |
14957 | fail: | |
14958 | return NULL; | |
14959 | } | |
14960 | ||
14961 | ||
14962 | static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14963 | PyObject *resultobj; | |
14964 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
14965 | int result; | |
14966 | PyObject * obj0 = 0 ; | |
14967 | char *kwnames[] = { | |
14968 | (char *) "self", NULL | |
14969 | }; | |
14970 | ||
14971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail; | |
14972 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14973 | { | |
14974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14975 | result = (int)(arg1)->GetCount(); | |
14976 | ||
14977 | wxPyEndAllowThreads(__tstate); | |
14978 | if (PyErr_Occurred()) SWIG_fail; | |
14979 | } | |
14980 | resultobj = PyInt_FromLong((long)result); | |
14981 | return resultobj; | |
14982 | fail: | |
14983 | return NULL; | |
14984 | } | |
14985 | ||
14986 | ||
14987 | static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) { | |
14988 | PyObject *obj; | |
14989 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14990 | SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj); | |
14991 | Py_INCREF(obj); | |
14992 | return Py_BuildValue((char *)""); | |
14993 | } | |
14994 | static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14995 | PyObject *resultobj; | |
14996 | wxColourDatabase *result; | |
14997 | char *kwnames[] = { | |
14998 | NULL | |
14999 | }; | |
15000 | ||
15001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail; | |
15002 | { | |
15003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15004 | result = (wxColourDatabase *)new wxColourDatabase(); | |
15005 | ||
15006 | wxPyEndAllowThreads(__tstate); | |
15007 | if (PyErr_Occurred()) SWIG_fail; | |
15008 | } | |
15009 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColourDatabase, 1); | |
15010 | return resultobj; | |
15011 | fail: | |
15012 | return NULL; | |
15013 | } | |
15014 | ||
15015 | ||
15016 | static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15017 | PyObject *resultobj; | |
15018 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
15019 | PyObject * obj0 = 0 ; | |
15020 | char *kwnames[] = { | |
15021 | (char *) "self", NULL | |
15022 | }; | |
15023 | ||
15024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail; | |
15025 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15026 | { | |
15027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15028 | delete arg1; | |
15029 | ||
15030 | wxPyEndAllowThreads(__tstate); | |
15031 | if (PyErr_Occurred()) SWIG_fail; | |
15032 | } | |
15033 | Py_INCREF(Py_None); resultobj = Py_None; | |
15034 | return resultobj; | |
15035 | fail: | |
15036 | return NULL; | |
15037 | } | |
15038 | ||
15039 | ||
15040 | static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15041 | PyObject *resultobj; | |
15042 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
15043 | wxString *arg2 = 0 ; | |
15044 | wxColour result; | |
15045 | bool temp2 = false ; | |
15046 | PyObject * obj0 = 0 ; | |
15047 | PyObject * obj1 = 0 ; | |
15048 | char *kwnames[] = { | |
15049 | (char *) "self",(char *) "name", NULL | |
15050 | }; | |
15051 | ||
15052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail; | |
15053 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15054 | { | |
15055 | arg2 = wxString_in_helper(obj1); | |
15056 | if (arg2 == NULL) SWIG_fail; | |
15057 | temp2 = true; | |
15058 | } | |
15059 | { | |
15060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15061 | result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2); | |
15062 | ||
15063 | wxPyEndAllowThreads(__tstate); | |
15064 | if (PyErr_Occurred()) SWIG_fail; | |
15065 | } | |
15066 | { | |
15067 | wxColour * resultptr; | |
15068 | resultptr = new wxColour((wxColour &) result); | |
15069 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
15070 | } | |
15071 | { | |
15072 | if (temp2) | |
15073 | delete arg2; | |
15074 | } | |
15075 | return resultobj; | |
15076 | fail: | |
15077 | { | |
15078 | if (temp2) | |
15079 | delete arg2; | |
15080 | } | |
15081 | return NULL; | |
15082 | } | |
15083 | ||
15084 | ||
15085 | static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15086 | PyObject *resultobj; | |
15087 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
15088 | wxColour *arg2 = 0 ; | |
15089 | wxString result; | |
15090 | wxColour temp2 ; | |
15091 | PyObject * obj0 = 0 ; | |
15092 | PyObject * obj1 = 0 ; | |
15093 | char *kwnames[] = { | |
15094 | (char *) "self",(char *) "colour", NULL | |
15095 | }; | |
15096 | ||
15097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail; | |
15098 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15099 | { | |
15100 | arg2 = &temp2; | |
15101 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
15102 | } | |
15103 | { | |
15104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15105 | result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2); | |
15106 | ||
15107 | wxPyEndAllowThreads(__tstate); | |
15108 | if (PyErr_Occurred()) SWIG_fail; | |
15109 | } | |
15110 | { | |
15111 | #if wxUSE_UNICODE | |
15112 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15113 | #else | |
15114 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15115 | #endif | |
15116 | } | |
15117 | return resultobj; | |
15118 | fail: | |
15119 | return NULL; | |
15120 | } | |
15121 | ||
15122 | ||
15123 | static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15124 | PyObject *resultobj; | |
15125 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
15126 | wxString *arg2 = 0 ; | |
15127 | wxColour *arg3 = 0 ; | |
15128 | bool temp2 = false ; | |
15129 | wxColour temp3 ; | |
15130 | PyObject * obj0 = 0 ; | |
15131 | PyObject * obj1 = 0 ; | |
15132 | PyObject * obj2 = 0 ; | |
15133 | char *kwnames[] = { | |
15134 | (char *) "self",(char *) "name",(char *) "colour", NULL | |
15135 | }; | |
15136 | ||
15137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15138 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15139 | { | |
15140 | arg2 = wxString_in_helper(obj1); | |
15141 | if (arg2 == NULL) SWIG_fail; | |
15142 | temp2 = true; | |
15143 | } | |
15144 | { | |
15145 | arg3 = &temp3; | |
15146 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
15147 | } | |
15148 | { | |
15149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15150 | (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3); | |
15151 | ||
15152 | wxPyEndAllowThreads(__tstate); | |
15153 | if (PyErr_Occurred()) SWIG_fail; | |
15154 | } | |
15155 | Py_INCREF(Py_None); resultobj = Py_None; | |
15156 | { | |
15157 | if (temp2) | |
15158 | delete arg2; | |
15159 | } | |
15160 | return resultobj; | |
15161 | fail: | |
15162 | { | |
15163 | if (temp2) | |
15164 | delete arg2; | |
15165 | } | |
15166 | return NULL; | |
15167 | } | |
15168 | ||
15169 | ||
15170 | static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15171 | PyObject *resultobj; | |
15172 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
15173 | wxString *arg2 = 0 ; | |
15174 | int arg3 ; | |
15175 | int arg4 ; | |
15176 | int arg5 ; | |
15177 | bool temp2 = false ; | |
15178 | PyObject * obj0 = 0 ; | |
15179 | PyObject * obj1 = 0 ; | |
15180 | char *kwnames[] = { | |
15181 | (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL | |
15182 | }; | |
15183 | ||
15184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiii:ColourDatabase_Append",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5)) goto fail; | |
15185 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15186 | { | |
15187 | arg2 = wxString_in_helper(obj1); | |
15188 | if (arg2 == NULL) SWIG_fail; | |
15189 | temp2 = true; | |
15190 | } | |
15191 | { | |
15192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15193 | wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5); | |
15194 | ||
15195 | wxPyEndAllowThreads(__tstate); | |
15196 | if (PyErr_Occurred()) SWIG_fail; | |
15197 | } | |
15198 | Py_INCREF(Py_None); resultobj = Py_None; | |
15199 | { | |
15200 | if (temp2) | |
15201 | delete arg2; | |
15202 | } | |
15203 | return resultobj; | |
15204 | fail: | |
15205 | { | |
15206 | if (temp2) | |
15207 | delete arg2; | |
15208 | } | |
15209 | return NULL; | |
15210 | } | |
15211 | ||
15212 | ||
15213 | static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) { | |
15214 | PyObject *obj; | |
15215 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15216 | SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj); | |
15217 | Py_INCREF(obj); | |
15218 | return Py_BuildValue((char *)""); | |
15219 | } | |
15220 | static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15221 | PyObject *resultobj; | |
15222 | wxFontList *arg1 = (wxFontList *) 0 ; | |
15223 | wxFont *arg2 = (wxFont *) 0 ; | |
15224 | PyObject * obj0 = 0 ; | |
15225 | PyObject * obj1 = 0 ; | |
15226 | char *kwnames[] = { | |
15227 | (char *) "self",(char *) "font", NULL | |
15228 | }; | |
15229 | ||
15230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail; | |
15231 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15232 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15233 | { | |
15234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15235 | (arg1)->AddFont(arg2); | |
15236 | ||
15237 | wxPyEndAllowThreads(__tstate); | |
15238 | if (PyErr_Occurred()) SWIG_fail; | |
15239 | } | |
15240 | Py_INCREF(Py_None); resultobj = Py_None; | |
15241 | return resultobj; | |
15242 | fail: | |
15243 | return NULL; | |
15244 | } | |
15245 | ||
15246 | ||
15247 | static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15248 | PyObject *resultobj; | |
15249 | wxFontList *arg1 = (wxFontList *) 0 ; | |
15250 | int arg2 ; | |
15251 | int arg3 ; | |
15252 | int arg4 ; | |
15253 | int arg5 ; | |
15254 | bool arg6 = (bool) FALSE ; | |
15255 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
15256 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
15257 | int arg8 = (int) wxFONTENCODING_DEFAULT ; | |
15258 | wxFont *result; | |
15259 | bool temp7 = false ; | |
15260 | PyObject * obj0 = 0 ; | |
15261 | PyObject * obj5 = 0 ; | |
15262 | PyObject * obj6 = 0 ; | |
15263 | char *kwnames[] = { | |
15264 | (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL | |
15265 | }; | |
15266 | ||
15267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii|OOi:FontList_FindOrCreateFont",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5,&obj6,&arg8)) goto fail; | |
15268 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15269 | if (obj5) { | |
15270 | arg6 = PyInt_AsLong(obj5) ? true : false; | |
15271 | if (PyErr_Occurred()) SWIG_fail; | |
15272 | } | |
15273 | if (obj6) { | |
15274 | { | |
15275 | arg7 = wxString_in_helper(obj6); | |
15276 | if (arg7 == NULL) SWIG_fail; | |
15277 | temp7 = true; | |
15278 | } | |
15279 | } | |
15280 | { | |
15281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15282 | result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8); | |
15283 | ||
15284 | wxPyEndAllowThreads(__tstate); | |
15285 | if (PyErr_Occurred()) SWIG_fail; | |
15286 | } | |
15287 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0); | |
15288 | { | |
15289 | if (temp7) | |
15290 | delete arg7; | |
15291 | } | |
15292 | return resultobj; | |
15293 | fail: | |
15294 | { | |
15295 | if (temp7) | |
15296 | delete arg7; | |
15297 | } | |
15298 | return NULL; | |
15299 | } | |
15300 | ||
15301 | ||
15302 | static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15303 | PyObject *resultobj; | |
15304 | wxFontList *arg1 = (wxFontList *) 0 ; | |
15305 | wxFont *arg2 = (wxFont *) 0 ; | |
15306 | PyObject * obj0 = 0 ; | |
15307 | PyObject * obj1 = 0 ; | |
15308 | char *kwnames[] = { | |
15309 | (char *) "self",(char *) "font", NULL | |
15310 | }; | |
15311 | ||
15312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail; | |
15313 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15314 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15315 | { | |
15316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15317 | (arg1)->RemoveFont(arg2); | |
15318 | ||
15319 | wxPyEndAllowThreads(__tstate); | |
15320 | if (PyErr_Occurred()) SWIG_fail; | |
15321 | } | |
15322 | Py_INCREF(Py_None); resultobj = Py_None; | |
15323 | return resultobj; | |
15324 | fail: | |
15325 | return NULL; | |
15326 | } | |
15327 | ||
15328 | ||
15329 | static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15330 | PyObject *resultobj; | |
15331 | wxFontList *arg1 = (wxFontList *) 0 ; | |
15332 | int result; | |
15333 | PyObject * obj0 = 0 ; | |
15334 | char *kwnames[] = { | |
15335 | (char *) "self", NULL | |
15336 | }; | |
15337 | ||
15338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail; | |
15339 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15340 | { | |
15341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15342 | result = (int)(arg1)->GetCount(); | |
15343 | ||
15344 | wxPyEndAllowThreads(__tstate); | |
15345 | if (PyErr_Occurred()) SWIG_fail; | |
15346 | } | |
15347 | resultobj = PyInt_FromLong((long)result); | |
15348 | return resultobj; | |
15349 | fail: | |
15350 | return NULL; | |
15351 | } | |
15352 | ||
15353 | ||
15354 | static PyObject * FontList_swigregister(PyObject *self, PyObject *args) { | |
15355 | PyObject *obj; | |
15356 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15357 | SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj); | |
15358 | Py_INCREF(obj); | |
15359 | return Py_BuildValue((char *)""); | |
15360 | } | |
15361 | static int _wrap_NORMAL_FONT_set(PyObject *_val) { | |
15362 | PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only."); | |
15363 | return 1; | |
15364 | } | |
15365 | ||
15366 | ||
15367 | static PyObject *_wrap_NORMAL_FONT_get() { | |
15368 | PyObject *pyobj; | |
15369 | ||
15370 | pyobj = SWIG_NewPointerObj((void *) wxNORMAL_FONT, SWIGTYPE_p_wxFont, 0); | |
15371 | return pyobj; | |
15372 | } | |
15373 | ||
15374 | ||
15375 | static int _wrap_SMALL_FONT_set(PyObject *_val) { | |
15376 | PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only."); | |
15377 | return 1; | |
15378 | } | |
15379 | ||
15380 | ||
15381 | static PyObject *_wrap_SMALL_FONT_get() { | |
15382 | PyObject *pyobj; | |
15383 | ||
15384 | pyobj = SWIG_NewPointerObj((void *) wxSMALL_FONT, SWIGTYPE_p_wxFont, 0); | |
15385 | return pyobj; | |
15386 | } | |
15387 | ||
15388 | ||
15389 | static int _wrap_ITALIC_FONT_set(PyObject *_val) { | |
15390 | PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only."); | |
15391 | return 1; | |
15392 | } | |
15393 | ||
15394 | ||
15395 | static PyObject *_wrap_ITALIC_FONT_get() { | |
15396 | PyObject *pyobj; | |
15397 | ||
15398 | pyobj = SWIG_NewPointerObj((void *) wxITALIC_FONT, SWIGTYPE_p_wxFont, 0); | |
15399 | return pyobj; | |
15400 | } | |
15401 | ||
15402 | ||
15403 | static int _wrap_SWISS_FONT_set(PyObject *_val) { | |
15404 | PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only."); | |
15405 | return 1; | |
15406 | } | |
15407 | ||
15408 | ||
15409 | static PyObject *_wrap_SWISS_FONT_get() { | |
15410 | PyObject *pyobj; | |
15411 | ||
15412 | pyobj = SWIG_NewPointerObj((void *) wxSWISS_FONT, SWIGTYPE_p_wxFont, 0); | |
15413 | return pyobj; | |
15414 | } | |
15415 | ||
15416 | ||
15417 | static int _wrap_RED_PEN_set(PyObject *_val) { | |
15418 | PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only."); | |
15419 | return 1; | |
15420 | } | |
15421 | ||
15422 | ||
15423 | static PyObject *_wrap_RED_PEN_get() { | |
15424 | PyObject *pyobj; | |
15425 | ||
15426 | pyobj = SWIG_NewPointerObj((void *) wxRED_PEN, SWIGTYPE_p_wxPen, 0); | |
15427 | return pyobj; | |
15428 | } | |
15429 | ||
15430 | ||
15431 | static int _wrap_CYAN_PEN_set(PyObject *_val) { | |
15432 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only."); | |
15433 | return 1; | |
15434 | } | |
15435 | ||
15436 | ||
15437 | static PyObject *_wrap_CYAN_PEN_get() { | |
15438 | PyObject *pyobj; | |
15439 | ||
15440 | pyobj = SWIG_NewPointerObj((void *) wxCYAN_PEN, SWIGTYPE_p_wxPen, 0); | |
15441 | return pyobj; | |
15442 | } | |
15443 | ||
15444 | ||
15445 | static int _wrap_GREEN_PEN_set(PyObject *_val) { | |
15446 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only."); | |
15447 | return 1; | |
15448 | } | |
15449 | ||
15450 | ||
15451 | static PyObject *_wrap_GREEN_PEN_get() { | |
15452 | PyObject *pyobj; | |
15453 | ||
15454 | pyobj = SWIG_NewPointerObj((void *) wxGREEN_PEN, SWIGTYPE_p_wxPen, 0); | |
15455 | return pyobj; | |
15456 | } | |
15457 | ||
15458 | ||
15459 | static int _wrap_BLACK_PEN_set(PyObject *_val) { | |
15460 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only."); | |
15461 | return 1; | |
15462 | } | |
15463 | ||
15464 | ||
15465 | static PyObject *_wrap_BLACK_PEN_get() { | |
15466 | PyObject *pyobj; | |
15467 | ||
15468 | pyobj = SWIG_NewPointerObj((void *) wxBLACK_PEN, SWIGTYPE_p_wxPen, 0); | |
15469 | return pyobj; | |
15470 | } | |
15471 | ||
15472 | ||
15473 | static int _wrap_WHITE_PEN_set(PyObject *_val) { | |
15474 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only."); | |
15475 | return 1; | |
15476 | } | |
15477 | ||
15478 | ||
15479 | static PyObject *_wrap_WHITE_PEN_get() { | |
15480 | PyObject *pyobj; | |
15481 | ||
15482 | pyobj = SWIG_NewPointerObj((void *) wxWHITE_PEN, SWIGTYPE_p_wxPen, 0); | |
15483 | return pyobj; | |
15484 | } | |
15485 | ||
15486 | ||
15487 | static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) { | |
15488 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only."); | |
15489 | return 1; | |
15490 | } | |
15491 | ||
15492 | ||
15493 | static PyObject *_wrap_TRANSPARENT_PEN_get() { | |
15494 | PyObject *pyobj; | |
15495 | ||
15496 | pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_PEN, SWIGTYPE_p_wxPen, 0); | |
15497 | return pyobj; | |
15498 | } | |
15499 | ||
15500 | ||
15501 | static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) { | |
15502 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only."); | |
15503 | return 1; | |
15504 | } | |
15505 | ||
15506 | ||
15507 | static PyObject *_wrap_BLACK_DASHED_PEN_get() { | |
15508 | PyObject *pyobj; | |
15509 | ||
15510 | pyobj = SWIG_NewPointerObj((void *) wxBLACK_DASHED_PEN, SWIGTYPE_p_wxPen, 0); | |
15511 | return pyobj; | |
15512 | } | |
15513 | ||
15514 | ||
15515 | static int _wrap_GREY_PEN_set(PyObject *_val) { | |
15516 | PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only."); | |
15517 | return 1; | |
15518 | } | |
15519 | ||
15520 | ||
15521 | static PyObject *_wrap_GREY_PEN_get() { | |
15522 | PyObject *pyobj; | |
15523 | ||
15524 | pyobj = SWIG_NewPointerObj((void *) wxGREY_PEN, SWIGTYPE_p_wxPen, 0); | |
15525 | return pyobj; | |
15526 | } | |
15527 | ||
15528 | ||
15529 | static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) { | |
15530 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only."); | |
15531 | return 1; | |
15532 | } | |
15533 | ||
15534 | ||
15535 | static PyObject *_wrap_MEDIUM_GREY_PEN_get() { | |
15536 | PyObject *pyobj; | |
15537 | ||
15538 | pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_PEN, SWIGTYPE_p_wxPen, 0); | |
15539 | return pyobj; | |
15540 | } | |
15541 | ||
15542 | ||
15543 | static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) { | |
15544 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only."); | |
15545 | return 1; | |
15546 | } | |
15547 | ||
15548 | ||
15549 | static PyObject *_wrap_LIGHT_GREY_PEN_get() { | |
15550 | PyObject *pyobj; | |
15551 | ||
15552 | pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_PEN, SWIGTYPE_p_wxPen, 0); | |
15553 | return pyobj; | |
15554 | } | |
15555 | ||
15556 | ||
15557 | static int _wrap_BLUE_BRUSH_set(PyObject *_val) { | |
15558 | PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only."); | |
15559 | return 1; | |
15560 | } | |
15561 | ||
15562 | ||
15563 | static PyObject *_wrap_BLUE_BRUSH_get() { | |
15564 | PyObject *pyobj; | |
15565 | ||
15566 | pyobj = SWIG_NewPointerObj((void *) wxBLUE_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
15567 | return pyobj; | |
15568 | } | |
15569 | ||
15570 | ||
15571 | static int _wrap_GREEN_BRUSH_set(PyObject *_val) { | |
15572 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only."); | |
15573 | return 1; | |
15574 | } | |
15575 | ||
15576 | ||
15577 | static PyObject *_wrap_GREEN_BRUSH_get() { | |
15578 | PyObject *pyobj; | |
15579 | ||
15580 | pyobj = SWIG_NewPointerObj((void *) wxGREEN_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
15581 | return pyobj; | |
15582 | } | |
15583 | ||
15584 | ||
15585 | static int _wrap_WHITE_BRUSH_set(PyObject *_val) { | |
15586 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only."); | |
15587 | return 1; | |
15588 | } | |
15589 | ||
15590 | ||
15591 | static PyObject *_wrap_WHITE_BRUSH_get() { | |
15592 | PyObject *pyobj; | |
15593 | ||
15594 | pyobj = SWIG_NewPointerObj((void *) wxWHITE_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
15595 | return pyobj; | |
15596 | } | |
15597 | ||
15598 | ||
15599 | static int _wrap_BLACK_BRUSH_set(PyObject *_val) { | |
15600 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only."); | |
15601 | return 1; | |
15602 | } | |
15603 | ||
15604 | ||
15605 | static PyObject *_wrap_BLACK_BRUSH_get() { | |
15606 | PyObject *pyobj; | |
15607 | ||
15608 | pyobj = SWIG_NewPointerObj((void *) wxBLACK_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
15609 | return pyobj; | |
15610 | } | |
15611 | ||
15612 | ||
15613 | static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) { | |
15614 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only."); | |
15615 | return 1; | |
15616 | } | |
15617 | ||
15618 | ||
15619 | static PyObject *_wrap_TRANSPARENT_BRUSH_get() { | |
15620 | PyObject *pyobj; | |
15621 | ||
15622 | pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
15623 | return pyobj; | |
15624 | } | |
15625 | ||
15626 | ||
15627 | static int _wrap_CYAN_BRUSH_set(PyObject *_val) { | |
15628 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only."); | |
15629 | return 1; | |
15630 | } | |
15631 | ||
15632 | ||
15633 | static PyObject *_wrap_CYAN_BRUSH_get() { | |
15634 | PyObject *pyobj; | |
15635 | ||
15636 | pyobj = SWIG_NewPointerObj((void *) wxCYAN_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
15637 | return pyobj; | |
15638 | } | |
15639 | ||
15640 | ||
15641 | static int _wrap_RED_BRUSH_set(PyObject *_val) { | |
15642 | PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only."); | |
15643 | return 1; | |
15644 | } | |
15645 | ||
15646 | ||
15647 | static PyObject *_wrap_RED_BRUSH_get() { | |
15648 | PyObject *pyobj; | |
15649 | ||
15650 | pyobj = SWIG_NewPointerObj((void *) wxRED_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
15651 | return pyobj; | |
15652 | } | |
15653 | ||
15654 | ||
15655 | static int _wrap_GREY_BRUSH_set(PyObject *_val) { | |
15656 | PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only."); | |
15657 | return 1; | |
15658 | } | |
15659 | ||
15660 | ||
15661 | static PyObject *_wrap_GREY_BRUSH_get() { | |
15662 | PyObject *pyobj; | |
15663 | ||
15664 | pyobj = SWIG_NewPointerObj((void *) wxGREY_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
15665 | return pyobj; | |
15666 | } | |
15667 | ||
15668 | ||
15669 | static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) { | |
15670 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only."); | |
15671 | return 1; | |
15672 | } | |
15673 | ||
15674 | ||
15675 | static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() { | |
15676 | PyObject *pyobj; | |
15677 | ||
15678 | pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
15679 | return pyobj; | |
15680 | } | |
15681 | ||
15682 | ||
15683 | static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) { | |
15684 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only."); | |
15685 | return 1; | |
15686 | } | |
15687 | ||
15688 | ||
15689 | static PyObject *_wrap_LIGHT_GREY_BRUSH_get() { | |
15690 | PyObject *pyobj; | |
15691 | ||
15692 | pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
15693 | return pyobj; | |
15694 | } | |
15695 | ||
15696 | ||
15697 | static int _wrap_BLACK_set(PyObject *_val) { | |
15698 | PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only."); | |
15699 | return 1; | |
15700 | } | |
15701 | ||
15702 | ||
15703 | static PyObject *_wrap_BLACK_get() { | |
15704 | PyObject *pyobj; | |
15705 | ||
15706 | pyobj = SWIG_NewPointerObj((void *) wxBLACK, SWIGTYPE_p_wxColour, 0); | |
15707 | return pyobj; | |
15708 | } | |
15709 | ||
15710 | ||
15711 | static int _wrap_WHITE_set(PyObject *_val) { | |
15712 | PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only."); | |
15713 | return 1; | |
15714 | } | |
15715 | ||
15716 | ||
15717 | static PyObject *_wrap_WHITE_get() { | |
15718 | PyObject *pyobj; | |
15719 | ||
15720 | pyobj = SWIG_NewPointerObj((void *) wxWHITE, SWIGTYPE_p_wxColour, 0); | |
15721 | return pyobj; | |
15722 | } | |
15723 | ||
15724 | ||
15725 | static int _wrap_RED_set(PyObject *_val) { | |
15726 | PyErr_SetString(PyExc_TypeError,"Variable RED is read-only."); | |
15727 | return 1; | |
15728 | } | |
15729 | ||
15730 | ||
15731 | static PyObject *_wrap_RED_get() { | |
15732 | PyObject *pyobj; | |
15733 | ||
15734 | pyobj = SWIG_NewPointerObj((void *) wxRED, SWIGTYPE_p_wxColour, 0); | |
15735 | return pyobj; | |
15736 | } | |
15737 | ||
15738 | ||
15739 | static int _wrap_BLUE_set(PyObject *_val) { | |
15740 | PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only."); | |
15741 | return 1; | |
15742 | } | |
15743 | ||
15744 | ||
15745 | static PyObject *_wrap_BLUE_get() { | |
15746 | PyObject *pyobj; | |
15747 | ||
15748 | pyobj = SWIG_NewPointerObj((void *) wxBLUE, SWIGTYPE_p_wxColour, 0); | |
15749 | return pyobj; | |
15750 | } | |
15751 | ||
15752 | ||
15753 | static int _wrap_GREEN_set(PyObject *_val) { | |
15754 | PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only."); | |
15755 | return 1; | |
15756 | } | |
15757 | ||
15758 | ||
15759 | static PyObject *_wrap_GREEN_get() { | |
15760 | PyObject *pyobj; | |
15761 | ||
15762 | pyobj = SWIG_NewPointerObj((void *) wxGREEN, SWIGTYPE_p_wxColour, 0); | |
15763 | return pyobj; | |
15764 | } | |
15765 | ||
15766 | ||
15767 | static int _wrap_CYAN_set(PyObject *_val) { | |
15768 | PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only."); | |
15769 | return 1; | |
15770 | } | |
15771 | ||
15772 | ||
15773 | static PyObject *_wrap_CYAN_get() { | |
15774 | PyObject *pyobj; | |
15775 | ||
15776 | pyobj = SWIG_NewPointerObj((void *) wxCYAN, SWIGTYPE_p_wxColour, 0); | |
15777 | return pyobj; | |
15778 | } | |
15779 | ||
15780 | ||
15781 | static int _wrap_LIGHT_GREY_set(PyObject *_val) { | |
15782 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only."); | |
15783 | return 1; | |
15784 | } | |
15785 | ||
15786 | ||
15787 | static PyObject *_wrap_LIGHT_GREY_get() { | |
15788 | PyObject *pyobj; | |
15789 | ||
15790 | pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY, SWIGTYPE_p_wxColour, 0); | |
15791 | return pyobj; | |
15792 | } | |
15793 | ||
15794 | ||
15795 | static int _wrap_STANDARD_CURSOR_set(PyObject *_val) { | |
15796 | PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only."); | |
15797 | return 1; | |
15798 | } | |
15799 | ||
15800 | ||
15801 | static PyObject *_wrap_STANDARD_CURSOR_get() { | |
15802 | PyObject *pyobj; | |
15803 | ||
15804 | pyobj = SWIG_NewPointerObj((void *) wxSTANDARD_CURSOR, SWIGTYPE_p_wxCursor, 0); | |
15805 | return pyobj; | |
15806 | } | |
15807 | ||
15808 | ||
15809 | static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) { | |
15810 | PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only."); | |
15811 | return 1; | |
15812 | } | |
15813 | ||
15814 | ||
15815 | static PyObject *_wrap_HOURGLASS_CURSOR_get() { | |
15816 | PyObject *pyobj; | |
15817 | ||
15818 | pyobj = SWIG_NewPointerObj((void *) wxHOURGLASS_CURSOR, SWIGTYPE_p_wxCursor, 0); | |
15819 | return pyobj; | |
15820 | } | |
15821 | ||
15822 | ||
15823 | static int _wrap_CROSS_CURSOR_set(PyObject *_val) { | |
15824 | PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only."); | |
15825 | return 1; | |
15826 | } | |
15827 | ||
15828 | ||
15829 | static PyObject *_wrap_CROSS_CURSOR_get() { | |
15830 | PyObject *pyobj; | |
15831 | ||
15832 | pyobj = SWIG_NewPointerObj((void *) wxCROSS_CURSOR, SWIGTYPE_p_wxCursor, 0); | |
15833 | return pyobj; | |
15834 | } | |
15835 | ||
15836 | ||
15837 | static int _wrap_NullBitmap_set(PyObject *_val) { | |
15838 | PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only."); | |
15839 | return 1; | |
15840 | } | |
15841 | ||
15842 | ||
15843 | static PyObject *_wrap_NullBitmap_get() { | |
15844 | PyObject *pyobj; | |
15845 | ||
15846 | pyobj = SWIG_NewPointerObj((void *) &wxNullBitmap, SWIGTYPE_p_wxBitmap, 0); | |
15847 | return pyobj; | |
15848 | } | |
15849 | ||
15850 | ||
15851 | static int _wrap_NullIcon_set(PyObject *_val) { | |
15852 | PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only."); | |
15853 | return 1; | |
15854 | } | |
15855 | ||
15856 | ||
15857 | static PyObject *_wrap_NullIcon_get() { | |
15858 | PyObject *pyobj; | |
15859 | ||
15860 | pyobj = SWIG_NewPointerObj((void *) &wxNullIcon, SWIGTYPE_p_wxIcon, 0); | |
15861 | return pyobj; | |
15862 | } | |
15863 | ||
15864 | ||
15865 | static int _wrap_NullCursor_set(PyObject *_val) { | |
15866 | PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only."); | |
15867 | return 1; | |
15868 | } | |
15869 | ||
15870 | ||
15871 | static PyObject *_wrap_NullCursor_get() { | |
15872 | PyObject *pyobj; | |
15873 | ||
15874 | pyobj = SWIG_NewPointerObj((void *) &wxNullCursor, SWIGTYPE_p_wxCursor, 0); | |
15875 | return pyobj; | |
15876 | } | |
15877 | ||
15878 | ||
15879 | static int _wrap_NullPen_set(PyObject *_val) { | |
15880 | PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only."); | |
15881 | return 1; | |
15882 | } | |
15883 | ||
15884 | ||
15885 | static PyObject *_wrap_NullPen_get() { | |
15886 | PyObject *pyobj; | |
15887 | ||
15888 | pyobj = SWIG_NewPointerObj((void *) &wxNullPen, SWIGTYPE_p_wxPen, 0); | |
15889 | return pyobj; | |
15890 | } | |
15891 | ||
15892 | ||
15893 | static int _wrap_NullBrush_set(PyObject *_val) { | |
15894 | PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only."); | |
15895 | return 1; | |
15896 | } | |
15897 | ||
15898 | ||
15899 | static PyObject *_wrap_NullBrush_get() { | |
15900 | PyObject *pyobj; | |
15901 | ||
15902 | pyobj = SWIG_NewPointerObj((void *) &wxNullBrush, SWIGTYPE_p_wxBrush, 0); | |
15903 | return pyobj; | |
15904 | } | |
15905 | ||
15906 | ||
15907 | static int _wrap_NullPalette_set(PyObject *_val) { | |
15908 | PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only."); | |
15909 | return 1; | |
15910 | } | |
15911 | ||
15912 | ||
15913 | static PyObject *_wrap_NullPalette_get() { | |
15914 | PyObject *pyobj; | |
15915 | ||
15916 | pyobj = SWIG_NewPointerObj((void *) &wxNullPalette, SWIGTYPE_p_wxPalette, 0); | |
15917 | return pyobj; | |
15918 | } | |
15919 | ||
15920 | ||
15921 | static int _wrap_NullFont_set(PyObject *_val) { | |
15922 | PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only."); | |
15923 | return 1; | |
15924 | } | |
15925 | ||
15926 | ||
15927 | static PyObject *_wrap_NullFont_get() { | |
15928 | PyObject *pyobj; | |
15929 | ||
15930 | pyobj = SWIG_NewPointerObj((void *) &wxNullFont, SWIGTYPE_p_wxFont, 0); | |
15931 | return pyobj; | |
15932 | } | |
15933 | ||
15934 | ||
15935 | static int _wrap_NullColour_set(PyObject *_val) { | |
15936 | PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only."); | |
15937 | return 1; | |
15938 | } | |
15939 | ||
15940 | ||
15941 | static PyObject *_wrap_NullColour_get() { | |
15942 | PyObject *pyobj; | |
15943 | ||
15944 | pyobj = SWIG_NewPointerObj((void *) &wxNullColour, SWIGTYPE_p_wxColour, 0); | |
15945 | return pyobj; | |
15946 | } | |
15947 | ||
15948 | ||
15949 | static int _wrap_TheFontList_set(PyObject *_val) { | |
15950 | PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only."); | |
15951 | return 1; | |
15952 | } | |
15953 | ||
15954 | ||
15955 | static PyObject *_wrap_TheFontList_get() { | |
15956 | PyObject *pyobj; | |
15957 | ||
15958 | pyobj = SWIG_NewPointerObj((void *) wxTheFontList, SWIGTYPE_p_wxFontList, 0); | |
15959 | return pyobj; | |
15960 | } | |
15961 | ||
15962 | ||
15963 | static int _wrap_ThePenList_set(PyObject *_val) { | |
15964 | PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only."); | |
15965 | return 1; | |
15966 | } | |
15967 | ||
15968 | ||
15969 | static PyObject *_wrap_ThePenList_get() { | |
15970 | PyObject *pyobj; | |
15971 | ||
15972 | pyobj = SWIG_NewPointerObj((void *) wxThePenList, SWIGTYPE_p_wxPenList, 0); | |
15973 | return pyobj; | |
15974 | } | |
15975 | ||
15976 | ||
15977 | static int _wrap_TheBrushList_set(PyObject *_val) { | |
15978 | PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only."); | |
15979 | return 1; | |
15980 | } | |
15981 | ||
15982 | ||
15983 | static PyObject *_wrap_TheBrushList_get() { | |
15984 | PyObject *pyobj; | |
15985 | ||
15986 | pyobj = SWIG_NewPointerObj((void *) wxTheBrushList, SWIGTYPE_p_wxBrushList, 0); | |
15987 | return pyobj; | |
15988 | } | |
15989 | ||
15990 | ||
15991 | static int _wrap_TheColourDatabase_set(PyObject *_val) { | |
15992 | PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only."); | |
15993 | return 1; | |
15994 | } | |
15995 | ||
15996 | ||
15997 | static PyObject *_wrap_TheColourDatabase_get() { | |
15998 | PyObject *pyobj; | |
15999 | ||
16000 | pyobj = SWIG_NewPointerObj((void *) wxTheColourDatabase, SWIGTYPE_p_wxColourDatabase, 0); | |
16001 | return pyobj; | |
16002 | } | |
16003 | ||
16004 | ||
16005 | static PyObject *_wrap_new_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16006 | PyObject *resultobj; | |
16007 | wxBitmap *arg1 = 0 ; | |
16008 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
16009 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
16010 | wxGenericDragImage *result; | |
16011 | PyObject * obj0 = 0 ; | |
16012 | PyObject * obj1 = 0 ; | |
16013 | char *kwnames[] = { | |
16014 | (char *) "image",(char *) "cursor", NULL | |
16015 | }; | |
16016 | ||
16017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail; | |
16018 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16019 | if (arg1 == NULL) { | |
16020 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
16021 | } | |
16022 | if (obj1) { | |
16023 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16024 | if (arg2 == NULL) { | |
16025 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
16026 | } | |
16027 | } | |
16028 | { | |
16029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16030 | result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2); | |
16031 | ||
16032 | wxPyEndAllowThreads(__tstate); | |
16033 | if (PyErr_Occurred()) SWIG_fail; | |
16034 | } | |
16035 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
16036 | return resultobj; | |
16037 | fail: | |
16038 | return NULL; | |
16039 | } | |
16040 | ||
16041 | ||
16042 | static PyObject *_wrap_new_DragIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16043 | PyObject *resultobj; | |
16044 | wxIcon *arg1 = 0 ; | |
16045 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
16046 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
16047 | wxGenericDragImage *result; | |
16048 | PyObject * obj0 = 0 ; | |
16049 | PyObject * obj1 = 0 ; | |
16050 | char *kwnames[] = { | |
16051 | (char *) "image",(char *) "cursor", NULL | |
16052 | }; | |
16053 | ||
16054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail; | |
16055 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16056 | if (arg1 == NULL) { | |
16057 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
16058 | } | |
16059 | if (obj1) { | |
16060 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16061 | if (arg2 == NULL) { | |
16062 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
16063 | } | |
16064 | } | |
16065 | { | |
16066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16067 | result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2); | |
16068 | ||
16069 | wxPyEndAllowThreads(__tstate); | |
16070 | if (PyErr_Occurred()) SWIG_fail; | |
16071 | } | |
16072 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
16073 | return resultobj; | |
16074 | fail: | |
16075 | return NULL; | |
16076 | } | |
16077 | ||
16078 | ||
16079 | static PyObject *_wrap_new_DragString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16080 | PyObject *resultobj; | |
16081 | wxString *arg1 = 0 ; | |
16082 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
16083 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
16084 | wxGenericDragImage *result; | |
16085 | bool temp1 = false ; | |
16086 | PyObject * obj0 = 0 ; | |
16087 | PyObject * obj1 = 0 ; | |
16088 | char *kwnames[] = { | |
16089 | (char *) "str",(char *) "cursor", NULL | |
16090 | }; | |
16091 | ||
16092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail; | |
16093 | { | |
16094 | arg1 = wxString_in_helper(obj0); | |
16095 | if (arg1 == NULL) SWIG_fail; | |
16096 | temp1 = true; | |
16097 | } | |
16098 | if (obj1) { | |
16099 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16100 | if (arg2 == NULL) { | |
16101 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
16102 | } | |
16103 | } | |
16104 | { | |
16105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16106 | result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2); | |
16107 | ||
16108 | wxPyEndAllowThreads(__tstate); | |
16109 | if (PyErr_Occurred()) SWIG_fail; | |
16110 | } | |
16111 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
16112 | { | |
16113 | if (temp1) | |
16114 | delete arg1; | |
16115 | } | |
16116 | return resultobj; | |
16117 | fail: | |
16118 | { | |
16119 | if (temp1) | |
16120 | delete arg1; | |
16121 | } | |
16122 | return NULL; | |
16123 | } | |
16124 | ||
16125 | ||
16126 | static PyObject *_wrap_new_DragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16127 | PyObject *resultobj; | |
16128 | wxTreeCtrl *arg1 = 0 ; | |
16129 | wxTreeItemId *arg2 = 0 ; | |
16130 | wxGenericDragImage *result; | |
16131 | PyObject * obj0 = 0 ; | |
16132 | PyObject * obj1 = 0 ; | |
16133 | char *kwnames[] = { | |
16134 | (char *) "treeCtrl",(char *) "id", NULL | |
16135 | }; | |
16136 | ||
16137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail; | |
16138 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16139 | if (arg1 == NULL) { | |
16140 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
16141 | } | |
16142 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16143 | if (arg2 == NULL) { | |
16144 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
16145 | } | |
16146 | { | |
16147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16148 | result = (wxGenericDragImage *)new wxGenericDragImage((wxTreeCtrl const &)*arg1,*arg2); | |
16149 | ||
16150 | wxPyEndAllowThreads(__tstate); | |
16151 | if (PyErr_Occurred()) SWIG_fail; | |
16152 | } | |
16153 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
16154 | return resultobj; | |
16155 | fail: | |
16156 | return NULL; | |
16157 | } | |
16158 | ||
16159 | ||
16160 | static PyObject *_wrap_new_DragListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16161 | PyObject *resultobj; | |
16162 | wxListCtrl *arg1 = 0 ; | |
16163 | long arg2 ; | |
16164 | wxGenericDragImage *result; | |
16165 | PyObject * obj0 = 0 ; | |
16166 | char *kwnames[] = { | |
16167 | (char *) "listCtrl",(char *) "id", NULL | |
16168 | }; | |
16169 | ||
16170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:new_DragListItem",kwnames,&obj0,&arg2)) goto fail; | |
16171 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16172 | if (arg1 == NULL) { | |
16173 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
16174 | } | |
16175 | { | |
16176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16177 | result = (wxGenericDragImage *)new wxGenericDragImage((wxListCtrl const &)*arg1,arg2); | |
16178 | ||
16179 | wxPyEndAllowThreads(__tstate); | |
16180 | if (PyErr_Occurred()) SWIG_fail; | |
16181 | } | |
16182 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
16183 | return resultobj; | |
16184 | fail: | |
16185 | return NULL; | |
16186 | } | |
16187 | ||
16188 | ||
16189 | static PyObject *_wrap_delete_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16190 | PyObject *resultobj; | |
16191 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
16192 | PyObject * obj0 = 0 ; | |
16193 | char *kwnames[] = { | |
16194 | (char *) "self", NULL | |
16195 | }; | |
16196 | ||
16197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail; | |
16198 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16199 | { | |
16200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16201 | delete arg1; | |
16202 | ||
16203 | wxPyEndAllowThreads(__tstate); | |
16204 | if (PyErr_Occurred()) SWIG_fail; | |
16205 | } | |
16206 | Py_INCREF(Py_None); resultobj = Py_None; | |
16207 | return resultobj; | |
16208 | fail: | |
16209 | return NULL; | |
16210 | } | |
16211 | ||
16212 | ||
16213 | static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16214 | PyObject *resultobj; | |
16215 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
16216 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
16217 | PyObject * obj0 = 0 ; | |
16218 | PyObject * obj1 = 0 ; | |
16219 | char *kwnames[] = { | |
16220 | (char *) "self",(char *) "bitmap", NULL | |
16221 | }; | |
16222 | ||
16223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail; | |
16224 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16225 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16226 | { | |
16227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16228 | (arg1)->SetBackingBitmap(arg2); | |
16229 | ||
16230 | wxPyEndAllowThreads(__tstate); | |
16231 | if (PyErr_Occurred()) SWIG_fail; | |
16232 | } | |
16233 | Py_INCREF(Py_None); resultobj = Py_None; | |
16234 | return resultobj; | |
16235 | fail: | |
16236 | return NULL; | |
16237 | } | |
16238 | ||
16239 | ||
16240 | static PyObject *_wrap_DragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16241 | PyObject *resultobj; | |
16242 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
16243 | wxPoint *arg2 = 0 ; | |
16244 | wxWindow *arg3 = (wxWindow *) 0 ; | |
16245 | bool arg4 = (bool) FALSE ; | |
16246 | wxRect *arg5 = (wxRect *) NULL ; | |
16247 | bool result; | |
16248 | wxPoint temp2 ; | |
16249 | PyObject * obj0 = 0 ; | |
16250 | PyObject * obj1 = 0 ; | |
16251 | PyObject * obj2 = 0 ; | |
16252 | PyObject * obj3 = 0 ; | |
16253 | PyObject * obj4 = 0 ; | |
16254 | char *kwnames[] = { | |
16255 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL | |
16256 | }; | |
16257 | ||
16258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
16259 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16260 | { | |
16261 | arg2 = &temp2; | |
16262 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
16263 | } | |
16264 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16265 | if (obj3) { | |
16266 | arg4 = PyInt_AsLong(obj3) ? true : false; | |
16267 | if (PyErr_Occurred()) SWIG_fail; | |
16268 | } | |
16269 | if (obj4) { | |
16270 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16271 | } | |
16272 | { | |
16273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16274 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5); | |
16275 | ||
16276 | wxPyEndAllowThreads(__tstate); | |
16277 | if (PyErr_Occurred()) SWIG_fail; | |
16278 | } | |
16279 | resultobj = PyInt_FromLong((long)result); | |
16280 | return resultobj; | |
16281 | fail: | |
16282 | return NULL; | |
16283 | } | |
16284 | ||
16285 | ||
16286 | static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16287 | PyObject *resultobj; | |
16288 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
16289 | wxPoint *arg2 = 0 ; | |
16290 | wxWindow *arg3 = (wxWindow *) 0 ; | |
16291 | wxWindow *arg4 = (wxWindow *) 0 ; | |
16292 | bool result; | |
16293 | wxPoint temp2 ; | |
16294 | PyObject * obj0 = 0 ; | |
16295 | PyObject * obj1 = 0 ; | |
16296 | PyObject * obj2 = 0 ; | |
16297 | PyObject * obj3 = 0 ; | |
16298 | char *kwnames[] = { | |
16299 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL | |
16300 | }; | |
16301 | ||
16302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
16303 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16304 | { | |
16305 | arg2 = &temp2; | |
16306 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
16307 | } | |
16308 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16309 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16310 | { | |
16311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16312 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4); | |
16313 | ||
16314 | wxPyEndAllowThreads(__tstate); | |
16315 | if (PyErr_Occurred()) SWIG_fail; | |
16316 | } | |
16317 | resultobj = PyInt_FromLong((long)result); | |
16318 | return resultobj; | |
16319 | fail: | |
16320 | return NULL; | |
16321 | } | |
16322 | ||
16323 | ||
16324 | static PyObject *_wrap_DragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16325 | PyObject *resultobj; | |
16326 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
16327 | bool result; | |
16328 | PyObject * obj0 = 0 ; | |
16329 | char *kwnames[] = { | |
16330 | (char *) "self", NULL | |
16331 | }; | |
16332 | ||
16333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail; | |
16334 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16335 | { | |
16336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16337 | result = (bool)(arg1)->EndDrag(); | |
16338 | ||
16339 | wxPyEndAllowThreads(__tstate); | |
16340 | if (PyErr_Occurred()) SWIG_fail; | |
16341 | } | |
16342 | resultobj = PyInt_FromLong((long)result); | |
16343 | return resultobj; | |
16344 | fail: | |
16345 | return NULL; | |
16346 | } | |
16347 | ||
16348 | ||
16349 | static PyObject *_wrap_DragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16350 | PyObject *resultobj; | |
16351 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
16352 | wxPoint *arg2 = 0 ; | |
16353 | bool result; | |
16354 | wxPoint temp2 ; | |
16355 | PyObject * obj0 = 0 ; | |
16356 | PyObject * obj1 = 0 ; | |
16357 | char *kwnames[] = { | |
16358 | (char *) "self",(char *) "pt", NULL | |
16359 | }; | |
16360 | ||
16361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail; | |
16362 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16363 | { | |
16364 | arg2 = &temp2; | |
16365 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
16366 | } | |
16367 | { | |
16368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16369 | result = (bool)(arg1)->Move((wxPoint const &)*arg2); | |
16370 | ||
16371 | wxPyEndAllowThreads(__tstate); | |
16372 | if (PyErr_Occurred()) SWIG_fail; | |
16373 | } | |
16374 | resultobj = PyInt_FromLong((long)result); | |
16375 | return resultobj; | |
16376 | fail: | |
16377 | return NULL; | |
16378 | } | |
16379 | ||
16380 | ||
16381 | static PyObject *_wrap_DragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16382 | PyObject *resultobj; | |
16383 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
16384 | bool result; | |
16385 | PyObject * obj0 = 0 ; | |
16386 | char *kwnames[] = { | |
16387 | (char *) "self", NULL | |
16388 | }; | |
16389 | ||
16390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail; | |
16391 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16392 | { | |
16393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16394 | result = (bool)(arg1)->Show(); | |
16395 | ||
16396 | wxPyEndAllowThreads(__tstate); | |
16397 | if (PyErr_Occurred()) SWIG_fail; | |
16398 | } | |
16399 | resultobj = PyInt_FromLong((long)result); | |
16400 | return resultobj; | |
16401 | fail: | |
16402 | return NULL; | |
16403 | } | |
16404 | ||
16405 | ||
16406 | static PyObject *_wrap_DragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16407 | PyObject *resultobj; | |
16408 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
16409 | bool result; | |
16410 | PyObject * obj0 = 0 ; | |
16411 | char *kwnames[] = { | |
16412 | (char *) "self", NULL | |
16413 | }; | |
16414 | ||
16415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail; | |
16416 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16417 | { | |
16418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16419 | result = (bool)(arg1)->Hide(); | |
16420 | ||
16421 | wxPyEndAllowThreads(__tstate); | |
16422 | if (PyErr_Occurred()) SWIG_fail; | |
16423 | } | |
16424 | resultobj = PyInt_FromLong((long)result); | |
16425 | return resultobj; | |
16426 | fail: | |
16427 | return NULL; | |
16428 | } | |
16429 | ||
16430 | ||
16431 | static PyObject *_wrap_DragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16432 | PyObject *resultobj; | |
16433 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
16434 | wxPoint *arg2 = 0 ; | |
16435 | wxRect result; | |
16436 | wxPoint temp2 ; | |
16437 | PyObject * obj0 = 0 ; | |
16438 | PyObject * obj1 = 0 ; | |
16439 | char *kwnames[] = { | |
16440 | (char *) "self",(char *) "pos", NULL | |
16441 | }; | |
16442 | ||
16443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail; | |
16444 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16445 | { | |
16446 | arg2 = &temp2; | |
16447 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
16448 | } | |
16449 | { | |
16450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16451 | result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2); | |
16452 | ||
16453 | wxPyEndAllowThreads(__tstate); | |
16454 | if (PyErr_Occurred()) SWIG_fail; | |
16455 | } | |
16456 | { | |
16457 | wxRect * resultptr; | |
16458 | resultptr = new wxRect((wxRect &) result); | |
16459 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
16460 | } | |
16461 | return resultobj; | |
16462 | fail: | |
16463 | return NULL; | |
16464 | } | |
16465 | ||
16466 | ||
16467 | static PyObject *_wrap_DragImage_DoDrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16468 | PyObject *resultobj; | |
16469 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
16470 | wxDC *arg2 = 0 ; | |
16471 | wxPoint *arg3 = 0 ; | |
16472 | bool result; | |
16473 | wxPoint temp3 ; | |
16474 | PyObject * obj0 = 0 ; | |
16475 | PyObject * obj1 = 0 ; | |
16476 | PyObject * obj2 = 0 ; | |
16477 | char *kwnames[] = { | |
16478 | (char *) "self",(char *) "dc",(char *) "pos", NULL | |
16479 | }; | |
16480 | ||
16481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16482 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16483 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16484 | if (arg2 == NULL) { | |
16485 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
16486 | } | |
16487 | { | |
16488 | arg3 = &temp3; | |
16489 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
16490 | } | |
16491 | { | |
16492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16493 | result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3); | |
16494 | ||
16495 | wxPyEndAllowThreads(__tstate); | |
16496 | if (PyErr_Occurred()) SWIG_fail; | |
16497 | } | |
16498 | resultobj = PyInt_FromLong((long)result); | |
16499 | return resultobj; | |
16500 | fail: | |
16501 | return NULL; | |
16502 | } | |
16503 | ||
16504 | ||
16505 | static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16506 | PyObject *resultobj; | |
16507 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
16508 | wxDC *arg2 = 0 ; | |
16509 | wxMemoryDC *arg3 = 0 ; | |
16510 | wxRect *arg4 = 0 ; | |
16511 | wxRect *arg5 = 0 ; | |
16512 | bool result; | |
16513 | wxRect temp4 ; | |
16514 | wxRect temp5 ; | |
16515 | PyObject * obj0 = 0 ; | |
16516 | PyObject * obj1 = 0 ; | |
16517 | PyObject * obj2 = 0 ; | |
16518 | PyObject * obj3 = 0 ; | |
16519 | PyObject * obj4 = 0 ; | |
16520 | char *kwnames[] = { | |
16521 | (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL | |
16522 | }; | |
16523 | ||
16524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
16525 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16526 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16527 | if (arg2 == NULL) { | |
16528 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
16529 | } | |
16530 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxMemoryDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16531 | if (arg3 == NULL) { | |
16532 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
16533 | } | |
16534 | { | |
16535 | arg4 = &temp4; | |
16536 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
16537 | } | |
16538 | { | |
16539 | arg5 = &temp5; | |
16540 | if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail; | |
16541 | } | |
16542 | { | |
16543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16544 | result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5); | |
16545 | ||
16546 | wxPyEndAllowThreads(__tstate); | |
16547 | if (PyErr_Occurred()) SWIG_fail; | |
16548 | } | |
16549 | resultobj = PyInt_FromLong((long)result); | |
16550 | return resultobj; | |
16551 | fail: | |
16552 | return NULL; | |
16553 | } | |
16554 | ||
16555 | ||
16556 | static PyObject *_wrap_DragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16557 | PyObject *resultobj; | |
16558 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
16559 | wxPoint *arg2 = 0 ; | |
16560 | wxPoint *arg3 = 0 ; | |
16561 | bool arg4 ; | |
16562 | bool arg5 ; | |
16563 | bool result; | |
16564 | wxPoint temp2 ; | |
16565 | wxPoint temp3 ; | |
16566 | PyObject * obj0 = 0 ; | |
16567 | PyObject * obj1 = 0 ; | |
16568 | PyObject * obj2 = 0 ; | |
16569 | PyObject * obj3 = 0 ; | |
16570 | PyObject * obj4 = 0 ; | |
16571 | char *kwnames[] = { | |
16572 | (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL | |
16573 | }; | |
16574 | ||
16575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
16576 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16577 | { | |
16578 | arg2 = &temp2; | |
16579 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
16580 | } | |
16581 | { | |
16582 | arg3 = &temp3; | |
16583 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
16584 | } | |
16585 | arg4 = PyInt_AsLong(obj3) ? true : false; | |
16586 | if (PyErr_Occurred()) SWIG_fail; | |
16587 | arg5 = PyInt_AsLong(obj4) ? true : false; | |
16588 | if (PyErr_Occurred()) SWIG_fail; | |
16589 | { | |
16590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16591 | result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5); | |
16592 | ||
16593 | wxPyEndAllowThreads(__tstate); | |
16594 | if (PyErr_Occurred()) SWIG_fail; | |
16595 | } | |
16596 | resultobj = PyInt_FromLong((long)result); | |
16597 | return resultobj; | |
16598 | fail: | |
16599 | return NULL; | |
16600 | } | |
16601 | ||
16602 | ||
16603 | static PyObject * DragImage_swigregister(PyObject *self, PyObject *args) { | |
16604 | PyObject *obj; | |
16605 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16606 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj); | |
16607 | Py_INCREF(obj); | |
16608 | return Py_BuildValue((char *)""); | |
16609 | } | |
16610 | static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16611 | PyObject *resultobj; | |
16612 | wxEffects *result; | |
16613 | char *kwnames[] = { | |
16614 | NULL | |
16615 | }; | |
16616 | ||
16617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail; | |
16618 | { | |
16619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16620 | result = (wxEffects *)new wxEffects(); | |
16621 | ||
16622 | wxPyEndAllowThreads(__tstate); | |
16623 | if (PyErr_Occurred()) SWIG_fail; | |
16624 | } | |
16625 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEffects, 1); | |
16626 | return resultobj; | |
16627 | fail: | |
16628 | return NULL; | |
16629 | } | |
16630 | ||
16631 | ||
16632 | static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16633 | PyObject *resultobj; | |
16634 | wxEffects *arg1 = (wxEffects *) 0 ; | |
16635 | wxColour result; | |
16636 | PyObject * obj0 = 0 ; | |
16637 | char *kwnames[] = { | |
16638 | (char *) "self", NULL | |
16639 | }; | |
16640 | ||
16641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail; | |
16642 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16643 | { | |
16644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16645 | result = ((wxEffects const *)arg1)->GetHighlightColour(); | |
16646 | ||
16647 | wxPyEndAllowThreads(__tstate); | |
16648 | if (PyErr_Occurred()) SWIG_fail; | |
16649 | } | |
16650 | { | |
16651 | wxColour * resultptr; | |
16652 | resultptr = new wxColour((wxColour &) result); | |
16653 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
16654 | } | |
16655 | return resultobj; | |
16656 | fail: | |
16657 | return NULL; | |
16658 | } | |
16659 | ||
16660 | ||
16661 | static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16662 | PyObject *resultobj; | |
16663 | wxEffects *arg1 = (wxEffects *) 0 ; | |
16664 | wxColour result; | |
16665 | PyObject * obj0 = 0 ; | |
16666 | char *kwnames[] = { | |
16667 | (char *) "self", NULL | |
16668 | }; | |
16669 | ||
16670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail; | |
16671 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16672 | { | |
16673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16674 | result = ((wxEffects const *)arg1)->GetLightShadow(); | |
16675 | ||
16676 | wxPyEndAllowThreads(__tstate); | |
16677 | if (PyErr_Occurred()) SWIG_fail; | |
16678 | } | |
16679 | { | |
16680 | wxColour * resultptr; | |
16681 | resultptr = new wxColour((wxColour &) result); | |
16682 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
16683 | } | |
16684 | return resultobj; | |
16685 | fail: | |
16686 | return NULL; | |
16687 | } | |
16688 | ||
16689 | ||
16690 | static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16691 | PyObject *resultobj; | |
16692 | wxEffects *arg1 = (wxEffects *) 0 ; | |
16693 | wxColour result; | |
16694 | PyObject * obj0 = 0 ; | |
16695 | char *kwnames[] = { | |
16696 | (char *) "self", NULL | |
16697 | }; | |
16698 | ||
16699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail; | |
16700 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16701 | { | |
16702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16703 | result = ((wxEffects const *)arg1)->GetFaceColour(); | |
16704 | ||
16705 | wxPyEndAllowThreads(__tstate); | |
16706 | if (PyErr_Occurred()) SWIG_fail; | |
16707 | } | |
16708 | { | |
16709 | wxColour * resultptr; | |
16710 | resultptr = new wxColour((wxColour &) result); | |
16711 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
16712 | } | |
16713 | return resultobj; | |
16714 | fail: | |
16715 | return NULL; | |
16716 | } | |
16717 | ||
16718 | ||
16719 | static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16720 | PyObject *resultobj; | |
16721 | wxEffects *arg1 = (wxEffects *) 0 ; | |
16722 | wxColour result; | |
16723 | PyObject * obj0 = 0 ; | |
16724 | char *kwnames[] = { | |
16725 | (char *) "self", NULL | |
16726 | }; | |
16727 | ||
16728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail; | |
16729 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16730 | { | |
16731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16732 | result = ((wxEffects const *)arg1)->GetMediumShadow(); | |
16733 | ||
16734 | wxPyEndAllowThreads(__tstate); | |
16735 | if (PyErr_Occurred()) SWIG_fail; | |
16736 | } | |
16737 | { | |
16738 | wxColour * resultptr; | |
16739 | resultptr = new wxColour((wxColour &) result); | |
16740 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
16741 | } | |
16742 | return resultobj; | |
16743 | fail: | |
16744 | return NULL; | |
16745 | } | |
16746 | ||
16747 | ||
16748 | static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16749 | PyObject *resultobj; | |
16750 | wxEffects *arg1 = (wxEffects *) 0 ; | |
16751 | wxColour result; | |
16752 | PyObject * obj0 = 0 ; | |
16753 | char *kwnames[] = { | |
16754 | (char *) "self", NULL | |
16755 | }; | |
16756 | ||
16757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail; | |
16758 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16759 | { | |
16760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16761 | result = ((wxEffects const *)arg1)->GetDarkShadow(); | |
16762 | ||
16763 | wxPyEndAllowThreads(__tstate); | |
16764 | if (PyErr_Occurred()) SWIG_fail; | |
16765 | } | |
16766 | { | |
16767 | wxColour * resultptr; | |
16768 | resultptr = new wxColour((wxColour &) result); | |
16769 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
16770 | } | |
16771 | return resultobj; | |
16772 | fail: | |
16773 | return NULL; | |
16774 | } | |
16775 | ||
16776 | ||
16777 | static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16778 | PyObject *resultobj; | |
16779 | wxEffects *arg1 = (wxEffects *) 0 ; | |
16780 | wxColour *arg2 = 0 ; | |
16781 | wxColour temp2 ; | |
16782 | PyObject * obj0 = 0 ; | |
16783 | PyObject * obj1 = 0 ; | |
16784 | char *kwnames[] = { | |
16785 | (char *) "self",(char *) "c", NULL | |
16786 | }; | |
16787 | ||
16788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail; | |
16789 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16790 | { | |
16791 | arg2 = &temp2; | |
16792 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16793 | } | |
16794 | { | |
16795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16796 | (arg1)->SetHighlightColour((wxColour const &)*arg2); | |
16797 | ||
16798 | wxPyEndAllowThreads(__tstate); | |
16799 | if (PyErr_Occurred()) SWIG_fail; | |
16800 | } | |
16801 | Py_INCREF(Py_None); resultobj = Py_None; | |
16802 | return resultobj; | |
16803 | fail: | |
16804 | return NULL; | |
16805 | } | |
16806 | ||
16807 | ||
16808 | static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16809 | PyObject *resultobj; | |
16810 | wxEffects *arg1 = (wxEffects *) 0 ; | |
16811 | wxColour *arg2 = 0 ; | |
16812 | wxColour temp2 ; | |
16813 | PyObject * obj0 = 0 ; | |
16814 | PyObject * obj1 = 0 ; | |
16815 | char *kwnames[] = { | |
16816 | (char *) "self",(char *) "c", NULL | |
16817 | }; | |
16818 | ||
16819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail; | |
16820 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16821 | { | |
16822 | arg2 = &temp2; | |
16823 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16824 | } | |
16825 | { | |
16826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16827 | (arg1)->SetLightShadow((wxColour const &)*arg2); | |
16828 | ||
16829 | wxPyEndAllowThreads(__tstate); | |
16830 | if (PyErr_Occurred()) SWIG_fail; | |
16831 | } | |
16832 | Py_INCREF(Py_None); resultobj = Py_None; | |
16833 | return resultobj; | |
16834 | fail: | |
16835 | return NULL; | |
16836 | } | |
16837 | ||
16838 | ||
16839 | static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16840 | PyObject *resultobj; | |
16841 | wxEffects *arg1 = (wxEffects *) 0 ; | |
16842 | wxColour *arg2 = 0 ; | |
16843 | wxColour temp2 ; | |
16844 | PyObject * obj0 = 0 ; | |
16845 | PyObject * obj1 = 0 ; | |
16846 | char *kwnames[] = { | |
16847 | (char *) "self",(char *) "c", NULL | |
16848 | }; | |
16849 | ||
16850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail; | |
16851 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16852 | { | |
16853 | arg2 = &temp2; | |
16854 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16855 | } | |
16856 | { | |
16857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16858 | (arg1)->SetFaceColour((wxColour const &)*arg2); | |
16859 | ||
16860 | wxPyEndAllowThreads(__tstate); | |
16861 | if (PyErr_Occurred()) SWIG_fail; | |
16862 | } | |
16863 | Py_INCREF(Py_None); resultobj = Py_None; | |
16864 | return resultobj; | |
16865 | fail: | |
16866 | return NULL; | |
16867 | } | |
16868 | ||
16869 | ||
16870 | static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16871 | PyObject *resultobj; | |
16872 | wxEffects *arg1 = (wxEffects *) 0 ; | |
16873 | wxColour *arg2 = 0 ; | |
16874 | wxColour temp2 ; | |
16875 | PyObject * obj0 = 0 ; | |
16876 | PyObject * obj1 = 0 ; | |
16877 | char *kwnames[] = { | |
16878 | (char *) "self",(char *) "c", NULL | |
16879 | }; | |
16880 | ||
16881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail; | |
16882 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16883 | { | |
16884 | arg2 = &temp2; | |
16885 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16886 | } | |
16887 | { | |
16888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16889 | (arg1)->SetMediumShadow((wxColour const &)*arg2); | |
16890 | ||
16891 | wxPyEndAllowThreads(__tstate); | |
16892 | if (PyErr_Occurred()) SWIG_fail; | |
16893 | } | |
16894 | Py_INCREF(Py_None); resultobj = Py_None; | |
16895 | return resultobj; | |
16896 | fail: | |
16897 | return NULL; | |
16898 | } | |
16899 | ||
16900 | ||
16901 | static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16902 | PyObject *resultobj; | |
16903 | wxEffects *arg1 = (wxEffects *) 0 ; | |
16904 | wxColour *arg2 = 0 ; | |
16905 | wxColour temp2 ; | |
16906 | PyObject * obj0 = 0 ; | |
16907 | PyObject * obj1 = 0 ; | |
16908 | char *kwnames[] = { | |
16909 | (char *) "self",(char *) "c", NULL | |
16910 | }; | |
16911 | ||
16912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail; | |
16913 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16914 | { | |
16915 | arg2 = &temp2; | |
16916 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16917 | } | |
16918 | { | |
16919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16920 | (arg1)->SetDarkShadow((wxColour const &)*arg2); | |
16921 | ||
16922 | wxPyEndAllowThreads(__tstate); | |
16923 | if (PyErr_Occurred()) SWIG_fail; | |
16924 | } | |
16925 | Py_INCREF(Py_None); resultobj = Py_None; | |
16926 | return resultobj; | |
16927 | fail: | |
16928 | return NULL; | |
16929 | } | |
16930 | ||
16931 | ||
16932 | static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16933 | PyObject *resultobj; | |
16934 | wxEffects *arg1 = (wxEffects *) 0 ; | |
16935 | wxColour *arg2 = 0 ; | |
16936 | wxColour *arg3 = 0 ; | |
16937 | wxColour *arg4 = 0 ; | |
16938 | wxColour *arg5 = 0 ; | |
16939 | wxColour *arg6 = 0 ; | |
16940 | wxColour temp2 ; | |
16941 | wxColour temp3 ; | |
16942 | wxColour temp4 ; | |
16943 | wxColour temp5 ; | |
16944 | wxColour temp6 ; | |
16945 | PyObject * obj0 = 0 ; | |
16946 | PyObject * obj1 = 0 ; | |
16947 | PyObject * obj2 = 0 ; | |
16948 | PyObject * obj3 = 0 ; | |
16949 | PyObject * obj4 = 0 ; | |
16950 | PyObject * obj5 = 0 ; | |
16951 | char *kwnames[] = { | |
16952 | (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL | |
16953 | }; | |
16954 | ||
16955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
16956 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16957 | { | |
16958 | arg2 = &temp2; | |
16959 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16960 | } | |
16961 | { | |
16962 | arg3 = &temp3; | |
16963 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
16964 | } | |
16965 | { | |
16966 | arg4 = &temp4; | |
16967 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
16968 | } | |
16969 | { | |
16970 | arg5 = &temp5; | |
16971 | if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail; | |
16972 | } | |
16973 | { | |
16974 | arg6 = &temp6; | |
16975 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
16976 | } | |
16977 | { | |
16978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16979 | (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6); | |
16980 | ||
16981 | wxPyEndAllowThreads(__tstate); | |
16982 | if (PyErr_Occurred()) SWIG_fail; | |
16983 | } | |
16984 | Py_INCREF(Py_None); resultobj = Py_None; | |
16985 | return resultobj; | |
16986 | fail: | |
16987 | return NULL; | |
16988 | } | |
16989 | ||
16990 | ||
16991 | static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16992 | PyObject *resultobj; | |
16993 | wxEffects *arg1 = (wxEffects *) 0 ; | |
16994 | wxDC *arg2 = 0 ; | |
16995 | wxRect *arg3 = 0 ; | |
16996 | int arg4 = (int) 1 ; | |
16997 | wxRect temp3 ; | |
16998 | PyObject * obj0 = 0 ; | |
16999 | PyObject * obj1 = 0 ; | |
17000 | PyObject * obj2 = 0 ; | |
17001 | char *kwnames[] = { | |
17002 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL | |
17003 | }; | |
17004 | ||
17005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|i:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail; | |
17006 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17007 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17008 | if (arg2 == NULL) { | |
17009 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17010 | } | |
17011 | { | |
17012 | arg3 = &temp3; | |
17013 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
17014 | } | |
17015 | { | |
17016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17017 | (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4); | |
17018 | ||
17019 | wxPyEndAllowThreads(__tstate); | |
17020 | if (PyErr_Occurred()) SWIG_fail; | |
17021 | } | |
17022 | Py_INCREF(Py_None); resultobj = Py_None; | |
17023 | return resultobj; | |
17024 | fail: | |
17025 | return NULL; | |
17026 | } | |
17027 | ||
17028 | ||
17029 | static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17030 | PyObject *resultobj; | |
17031 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17032 | wxRect *arg2 = 0 ; | |
17033 | wxDC *arg3 = 0 ; | |
17034 | wxBitmap *arg4 = 0 ; | |
17035 | bool result; | |
17036 | wxRect temp2 ; | |
17037 | PyObject * obj0 = 0 ; | |
17038 | PyObject * obj1 = 0 ; | |
17039 | PyObject * obj2 = 0 ; | |
17040 | PyObject * obj3 = 0 ; | |
17041 | char *kwnames[] = { | |
17042 | (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL | |
17043 | }; | |
17044 | ||
17045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
17046 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17047 | { | |
17048 | arg2 = &temp2; | |
17049 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
17050 | } | |
17051 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17052 | if (arg3 == NULL) { | |
17053 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17054 | } | |
17055 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17056 | if (arg4 == NULL) { | |
17057 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17058 | } | |
17059 | { | |
17060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17061 | result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4); | |
17062 | ||
17063 | wxPyEndAllowThreads(__tstate); | |
17064 | if (PyErr_Occurred()) SWIG_fail; | |
17065 | } | |
17066 | resultobj = PyInt_FromLong((long)result); | |
17067 | return resultobj; | |
17068 | fail: | |
17069 | return NULL; | |
17070 | } | |
17071 | ||
17072 | ||
17073 | static PyObject * Effects_swigregister(PyObject *self, PyObject *args) { | |
17074 | PyObject *obj; | |
17075 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17076 | SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj); | |
17077 | Py_INCREF(obj); | |
17078 | return Py_BuildValue((char *)""); | |
17079 | } | |
17080 | static PyMethodDef SwigMethods[] = { | |
17081 | { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS }, | |
17082 | { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS }, | |
17083 | { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS }, | |
17084 | { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS }, | |
17085 | { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS }, | |
17086 | { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS }, | |
17087 | { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS }, | |
17088 | { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS }, | |
17089 | { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS }, | |
17090 | { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS }, | |
17091 | { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS }, | |
17092 | { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS }, | |
17093 | { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS }, | |
17094 | { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17095 | { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS }, | |
17096 | { (char *)"Colour_SetRBG", (PyCFunction) _wrap_Colour_SetRBG, METH_VARARGS | METH_KEYWORDS }, | |
17097 | { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS }, | |
17098 | { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS }, | |
17099 | { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS }, | |
17100 | { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS }, | |
17101 | { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS }, | |
17102 | { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS }, | |
17103 | { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
17104 | { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS }, | |
17105 | { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17106 | { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS }, | |
17107 | { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS }, | |
17108 | { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS }, | |
17109 | { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS }, | |
17110 | { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
17111 | { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS }, | |
17112 | { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17113 | { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17114 | { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17115 | { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS }, | |
17116 | { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
17117 | { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS }, | |
17118 | { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17119 | { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17120 | { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS }, | |
17121 | { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS }, | |
17122 | { (char *)"Pen_GetStipple", (PyCFunction) _wrap_Pen_GetStipple, METH_VARARGS | METH_KEYWORDS }, | |
17123 | { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS }, | |
17124 | { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS }, | |
17125 | { (char *)"new_PyPen", (PyCFunction) _wrap_new_PyPen, METH_VARARGS | METH_KEYWORDS }, | |
17126 | { (char *)"delete_PyPen", (PyCFunction) _wrap_delete_PyPen, METH_VARARGS | METH_KEYWORDS }, | |
17127 | { (char *)"PyPen_SetDashes", (PyCFunction) _wrap_PyPen_SetDashes, METH_VARARGS | METH_KEYWORDS }, | |
17128 | { (char *)"PyPen_swigregister", PyPen_swigregister, METH_VARARGS }, | |
17129 | { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS }, | |
17130 | { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS }, | |
17131 | { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
17132 | { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17133 | { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS }, | |
17134 | { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
17135 | { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17136 | { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS }, | |
17137 | { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17138 | { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS }, | |
17139 | { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS }, | |
17140 | { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS }, | |
17141 | { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17142 | { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
17143 | { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS }, | |
17144 | { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
17145 | { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS }, | |
17146 | { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS }, | |
17147 | { (char *)"Bitmap_GetHandle", (PyCFunction) _wrap_Bitmap_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
17148 | { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS }, | |
17149 | { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17150 | { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17151 | { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
17152 | { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
17153 | { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS }, | |
17154 | { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
17155 | { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
17156 | { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS }, | |
17157 | { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17158 | { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
17159 | { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
17160 | { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
17161 | { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
17162 | { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17163 | { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
17164 | { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS }, | |
17165 | { (char *)"Bitmap_GetQuality", (PyCFunction) _wrap_Bitmap_GetQuality, METH_VARARGS | METH_KEYWORDS }, | |
17166 | { (char *)"Bitmap_SetQuality", (PyCFunction) _wrap_Bitmap_SetQuality, METH_VARARGS | METH_KEYWORDS }, | |
17167 | { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS }, | |
17168 | { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS }, | |
17169 | { (char *)"new_MaskColour", (PyCFunction) _wrap_new_MaskColour, METH_VARARGS | METH_KEYWORDS }, | |
17170 | { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS }, | |
17171 | { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS }, | |
17172 | { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS }, | |
17173 | { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS }, | |
17174 | { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS }, | |
17175 | { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17176 | { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
17177 | { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
17178 | { (char *)"Icon_GetHandle", (PyCFunction) _wrap_Icon_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
17179 | { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS }, | |
17180 | { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17181 | { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17182 | { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
17183 | { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
17184 | { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17185 | { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
17186 | { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
17187 | { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
17188 | { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17189 | { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS }, | |
17190 | { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS }, | |
17191 | { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS }, | |
17192 | { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
17193 | { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS }, | |
17194 | { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS }, | |
17195 | { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS }, | |
17196 | { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
17197 | { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS }, | |
17198 | { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS }, | |
17199 | { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS }, | |
17200 | { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
17201 | { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS }, | |
17202 | { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
17203 | { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS }, | |
17204 | { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
17205 | { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS }, | |
17206 | { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS }, | |
17207 | { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS }, | |
17208 | { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS }, | |
17209 | { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS }, | |
17210 | { (char *)"new_CursorFromBits", (PyCFunction) _wrap_new_CursorFromBits, METH_VARARGS | METH_KEYWORDS }, | |
17211 | { (char *)"Cursor_GetHandle", (PyCFunction) _wrap_Cursor_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
17212 | { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS }, | |
17213 | { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17214 | { (char *)"Cursor_GetWidth", (PyCFunction) _wrap_Cursor_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17215 | { (char *)"Cursor_GetHeight", (PyCFunction) _wrap_Cursor_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
17216 | { (char *)"Cursor_GetDepth", (PyCFunction) _wrap_Cursor_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
17217 | { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17218 | { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
17219 | { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
17220 | { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
17221 | { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS }, | |
17222 | { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS }, | |
17223 | { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17224 | { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS }, | |
17225 | { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS }, | |
17226 | { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS }, | |
17227 | { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS }, | |
17228 | { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS }, | |
17229 | { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS }, | |
17230 | { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS }, | |
17231 | { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS }, | |
17232 | { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS }, | |
17233 | { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
17234 | { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
17235 | { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS }, | |
17236 | { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
17237 | { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS }, | |
17238 | { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS }, | |
17239 | { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS }, | |
17240 | { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
17241 | { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS }, | |
17242 | { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS }, | |
17243 | { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS }, | |
17244 | { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS }, | |
17245 | { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS }, | |
17246 | { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17247 | { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17248 | { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS }, | |
17249 | { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
17250 | { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
17251 | { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS }, | |
17252 | { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS }, | |
17253 | { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS }, | |
17254 | { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17255 | { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS }, | |
17256 | { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
17257 | { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
17258 | { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS }, | |
17259 | { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS }, | |
17260 | { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS }, | |
17261 | { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS }, | |
17262 | { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS }, | |
17263 | { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
17264 | { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
17265 | { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS }, | |
17266 | { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS }, | |
17267 | { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
17268 | { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17269 | { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS }, | |
17270 | { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
17271 | { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
17272 | { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS }, | |
17273 | { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17274 | { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
17275 | { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17276 | { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
17277 | { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
17278 | { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
17279 | { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS }, | |
17280 | { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17281 | { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS }, | |
17282 | { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS }, | |
17283 | { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS }, | |
17284 | { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS }, | |
17285 | { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS }, | |
17286 | { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS }, | |
17287 | { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS }, | |
17288 | { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS }, | |
17289 | { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS }, | |
17290 | { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS }, | |
17291 | { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS }, | |
17292 | { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS }, | |
17293 | { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS }, | |
17294 | { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS }, | |
17295 | { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS }, | |
17296 | { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17297 | { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17298 | { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS }, | |
17299 | { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS }, | |
17300 | { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS }, | |
17301 | { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS }, | |
17302 | { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17303 | { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS }, | |
17304 | { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17305 | { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS }, | |
17306 | { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS }, | |
17307 | { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS }, | |
17308 | { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS }, | |
17309 | { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS }, | |
17310 | { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17311 | { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS }, | |
17312 | { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS }, | |
17313 | { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS }, | |
17314 | { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS }, | |
17315 | { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS }, | |
17316 | { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS }, | |
17317 | { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS }, | |
17318 | { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS }, | |
17319 | { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS }, | |
17320 | { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17321 | { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS }, | |
17322 | { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS }, | |
17323 | { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
17324 | { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS }, | |
17325 | { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17326 | { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS }, | |
17327 | { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
17328 | { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
17329 | { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17330 | { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
17331 | { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS }, | |
17332 | { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS }, | |
17333 | { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, | |
17334 | { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
17335 | { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS }, | |
17336 | { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17337 | { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
17338 | { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
17339 | { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
17340 | { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17341 | { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
17342 | { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS }, | |
17343 | { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, | |
17344 | { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS }, | |
17345 | { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS }, | |
17346 | { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS }, | |
17347 | { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS }, | |
17348 | { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS }, | |
17349 | { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17350 | { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17351 | { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS }, | |
17352 | { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS }, | |
17353 | { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS }, | |
17354 | { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
17355 | { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS }, | |
17356 | { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS }, | |
17357 | { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS }, | |
17358 | { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS }, | |
17359 | { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS }, | |
17360 | { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS }, | |
17361 | { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS }, | |
17362 | { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS }, | |
17363 | { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS }, | |
17364 | { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS }, | |
17365 | { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS }, | |
17366 | { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS }, | |
17367 | { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS }, | |
17368 | { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS }, | |
17369 | { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS }, | |
17370 | { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS }, | |
17371 | { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS }, | |
17372 | { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17373 | { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS }, | |
17374 | { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
17375 | { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS }, | |
17376 | { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS }, | |
17377 | { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS }, | |
17378 | { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS }, | |
17379 | { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS }, | |
17380 | { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS }, | |
17381 | { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS }, | |
17382 | { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS }, | |
17383 | { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS }, | |
17384 | { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS }, | |
17385 | { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS }, | |
17386 | { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS }, | |
17387 | { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS }, | |
17388 | { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS }, | |
17389 | { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS }, | |
17390 | { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS }, | |
17391 | { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS }, | |
17392 | { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS }, | |
17393 | { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS }, | |
17394 | { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS }, | |
17395 | { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS }, | |
17396 | { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS }, | |
17397 | { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS }, | |
17398 | { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS }, | |
17399 | { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS }, | |
17400 | { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS }, | |
17401 | { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS }, | |
17402 | { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS }, | |
17403 | { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS }, | |
17404 | { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS }, | |
17405 | { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
17406 | { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS }, | |
17407 | { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS }, | |
17408 | { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS }, | |
17409 | { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS }, | |
17410 | { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS }, | |
17411 | { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS }, | |
17412 | { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS }, | |
17413 | { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS }, | |
17414 | { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS }, | |
17415 | { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS }, | |
17416 | { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS }, | |
17417 | { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS }, | |
17418 | { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS }, | |
17419 | { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS }, | |
17420 | { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS }, | |
17421 | { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS }, | |
17422 | { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS }, | |
17423 | { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS }, | |
17424 | { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS }, | |
17425 | { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS }, | |
17426 | { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS }, | |
17427 | { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS }, | |
17428 | { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS }, | |
17429 | { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS }, | |
17430 | { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS }, | |
17431 | { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS }, | |
17432 | { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17433 | { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS }, | |
17434 | { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS }, | |
17435 | { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS }, | |
17436 | { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS }, | |
17437 | { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS }, | |
17438 | { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS }, | |
17439 | { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS }, | |
17440 | { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS }, | |
17441 | { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS }, | |
17442 | { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS }, | |
17443 | { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS }, | |
17444 | { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS }, | |
17445 | { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS }, | |
17446 | { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS }, | |
17447 | { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS }, | |
17448 | { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS }, | |
17449 | { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
17450 | { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS }, | |
17451 | { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS }, | |
17452 | { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS }, | |
17453 | { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
17454 | { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS }, | |
17455 | { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS }, | |
17456 | { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS }, | |
17457 | { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS }, | |
17458 | { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS }, | |
17459 | { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS }, | |
17460 | { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS }, | |
17461 | { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
17462 | { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
17463 | { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
17464 | { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
17465 | { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
17466 | { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
17467 | { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
17468 | { (char *)"DC_GetSizeMMWH", (PyCFunction) _wrap_DC_GetSizeMMWH, METH_VARARGS | METH_KEYWORDS }, | |
17469 | { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS }, | |
17470 | { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS }, | |
17471 | { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS }, | |
17472 | { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS }, | |
17473 | { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS }, | |
17474 | { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS }, | |
17475 | { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS }, | |
17476 | { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS }, | |
17477 | { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS }, | |
17478 | { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17479 | { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
17480 | { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
17481 | { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS }, | |
17482 | { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17483 | { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
17484 | { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS }, | |
17485 | { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS }, | |
17486 | { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
17487 | { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS }, | |
17488 | { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
17489 | { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
17490 | { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
17491 | { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
17492 | { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
17493 | { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
17494 | { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
17495 | { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
17496 | { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS }, | |
17497 | { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS }, | |
17498 | { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS }, | |
17499 | { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, | |
17500 | { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, | |
17501 | { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS }, | |
17502 | { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, | |
17503 | { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, | |
17504 | { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS }, | |
17505 | { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, | |
17506 | { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, | |
17507 | { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
17508 | { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
17509 | { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
17510 | { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
17511 | { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS }, | |
17512 | { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS }, | |
17513 | { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS }, | |
17514 | { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS }, | |
17515 | { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
17516 | { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS }, | |
17517 | { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS }, | |
17518 | { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS }, | |
17519 | { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS }, | |
17520 | { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS }, | |
17521 | { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS }, | |
17522 | { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS }, | |
17523 | { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS }, | |
17524 | { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS }, | |
17525 | { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS }, | |
17526 | { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS }, | |
17527 | { (char *)"new_BufferedDC", (PyCFunction) _wrap_new_BufferedDC, METH_VARARGS | METH_KEYWORDS }, | |
17528 | { (char *)"new_BufferedDCInternalBuffer", (PyCFunction) _wrap_new_BufferedDCInternalBuffer, METH_VARARGS | METH_KEYWORDS }, | |
17529 | { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS }, | |
17530 | { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS }, | |
17531 | { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS }, | |
17532 | { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS }, | |
17533 | { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS }, | |
17534 | { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS }, | |
17535 | { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
17536 | { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
17537 | { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS }, | |
17538 | { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS }, | |
17539 | { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS }, | |
17540 | { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS }, | |
17541 | { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS }, | |
17542 | { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS }, | |
17543 | { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS }, | |
17544 | { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS }, | |
17545 | { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS }, | |
17546 | { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS }, | |
17547 | { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
17548 | { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
17549 | { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS }, | |
17550 | { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS }, | |
17551 | { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS }, | |
17552 | { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS }, | |
17553 | { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS }, | |
17554 | { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17555 | { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS }, | |
17556 | { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
17557 | { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17558 | { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
17559 | { (char *)"MetaFile_GetFileName", (PyCFunction) _wrap_MetaFile_GetFileName, METH_VARARGS | METH_KEYWORDS }, | |
17560 | { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS }, | |
17561 | { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS }, | |
17562 | { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS }, | |
17563 | { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS }, | |
17564 | { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS }, | |
17565 | { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS }, | |
17566 | { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS }, | |
17567 | { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS }, | |
17568 | { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS }, | |
17569 | { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS }, | |
17570 | { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
17571 | { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS }, | |
17572 | { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS }, | |
17573 | { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
17574 | { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS }, | |
17575 | { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS }, | |
17576 | { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
17577 | { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS }, | |
17578 | { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS }, | |
17579 | { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS }, | |
17580 | { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS }, | |
17581 | { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
17582 | { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS }, | |
17583 | { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS }, | |
17584 | { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS }, | |
17585 | { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS }, | |
17586 | { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
17587 | { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS }, | |
17588 | { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS }, | |
17589 | { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS }, | |
17590 | { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS }, | |
17591 | { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS }, | |
17592 | { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS }, | |
17593 | { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS }, | |
17594 | { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS }, | |
17595 | { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS }, | |
17596 | { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS }, | |
17597 | { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS }, | |
17598 | { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
17599 | { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS }, | |
17600 | { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS }, | |
17601 | { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS }, | |
17602 | { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS }, | |
17603 | { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS }, | |
17604 | { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS }, | |
17605 | { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS }, | |
17606 | { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17607 | { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS }, | |
17608 | { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS }, | |
17609 | { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS }, | |
17610 | { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS }, | |
17611 | { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS }, | |
17612 | { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS }, | |
17613 | { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS }, | |
17614 | { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS }, | |
17615 | { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
17616 | { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS }, | |
17617 | { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS }, | |
17618 | { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS }, | |
17619 | { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS }, | |
17620 | { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS }, | |
17621 | { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS }, | |
17622 | { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS }, | |
17623 | { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS }, | |
17624 | { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS }, | |
17625 | { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS }, | |
17626 | { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS }, | |
17627 | { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS }, | |
17628 | { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS }, | |
17629 | { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS }, | |
17630 | { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS }, | |
17631 | { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17632 | { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS }, | |
17633 | { NULL, NULL } | |
17634 | }; | |
17635 | ||
17636 | ||
17637 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
17638 | ||
17639 | static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) { | |
17640 | return (void *)((wxMemoryDC *) ((wxBufferedDC *) x)); | |
17641 | } | |
17642 | static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) { | |
17643 | return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
17644 | } | |
17645 | static void *_p_wxPyPenTo_p_wxGDIObject(void *x) { | |
17646 | return (void *)((wxGDIObject *) (wxPen *) ((wxPyPen *) x)); | |
17647 | } | |
17648 | static void *_p_wxIconTo_p_wxGDIObject(void *x) { | |
17649 | return (void *)((wxGDIObject *) ((wxIcon *) x)); | |
17650 | } | |
17651 | static void *_p_wxPaletteTo_p_wxGDIObject(void *x) { | |
17652 | return (void *)((wxGDIObject *) ((wxPalette *) x)); | |
17653 | } | |
17654 | static void *_p_wxPenTo_p_wxGDIObject(void *x) { | |
17655 | return (void *)((wxGDIObject *) ((wxPen *) x)); | |
17656 | } | |
17657 | static void *_p_wxFontTo_p_wxGDIObject(void *x) { | |
17658 | return (void *)((wxGDIObject *) ((wxFont *) x)); | |
17659 | } | |
17660 | static void *_p_wxCursorTo_p_wxGDIObject(void *x) { | |
17661 | return (void *)((wxGDIObject *) ((wxCursor *) x)); | |
17662 | } | |
17663 | static void *_p_wxBitmapTo_p_wxGDIObject(void *x) { | |
17664 | return (void *)((wxGDIObject *) ((wxBitmap *) x)); | |
17665 | } | |
17666 | static void *_p_wxRegionTo_p_wxGDIObject(void *x) { | |
17667 | return (void *)((wxGDIObject *) ((wxRegion *) x)); | |
17668 | } | |
17669 | static void *_p_wxBrushTo_p_wxGDIObject(void *x) { | |
17670 | return (void *)((wxGDIObject *) ((wxBrush *) x)); | |
17671 | } | |
17672 | static void *_p_wxBufferedDCTo_p_wxDC(void *x) { | |
17673 | return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x)); | |
17674 | } | |
17675 | static void *_p_wxScreenDCTo_p_wxDC(void *x) { | |
17676 | return (void *)((wxDC *) ((wxScreenDC *) x)); | |
17677 | } | |
17678 | static void *_p_wxMirrorDCTo_p_wxDC(void *x) { | |
17679 | return (void *)((wxDC *) ((wxMirrorDC *) x)); | |
17680 | } | |
17681 | static void *_p_wxMemoryDCTo_p_wxDC(void *x) { | |
17682 | return (void *)((wxDC *) ((wxMemoryDC *) x)); | |
17683 | } | |
17684 | static void *_p_wxWindowDCTo_p_wxDC(void *x) { | |
17685 | return (void *)((wxDC *) ((wxWindowDC *) x)); | |
17686 | } | |
17687 | static void *_p_wxMetaFileDCTo_p_wxDC(void *x) { | |
17688 | return (void *)((wxDC *) ((wxMetaFileDC *) x)); | |
17689 | } | |
17690 | static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) { | |
17691 | return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
17692 | } | |
17693 | static void *_p_wxClientDCTo_p_wxDC(void *x) { | |
17694 | return (void *)((wxDC *) ((wxClientDC *) x)); | |
17695 | } | |
17696 | static void *_p_wxPaintDCTo_p_wxDC(void *x) { | |
17697 | return (void *)((wxDC *) ((wxPaintDC *) x)); | |
17698 | } | |
17699 | static void *_p_wxPostScriptDCTo_p_wxDC(void *x) { | |
17700 | return (void *)((wxDC *) ((wxPostScriptDC *) x)); | |
17701 | } | |
17702 | static void *_p_wxPrinterDCTo_p_wxDC(void *x) { | |
17703 | return (void *)((wxDC *) ((wxPrinterDC *) x)); | |
17704 | } | |
17705 | static void *_p_wxPyPenTo_p_wxPen(void *x) { | |
17706 | return (void *)((wxPen *) ((wxPyPen *) x)); | |
17707 | } | |
17708 | static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) { | |
17709 | return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
17710 | } | |
17711 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
17712 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
17713 | } | |
17714 | static void *_p_wxPenTo_p_wxObject(void *x) { | |
17715 | return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x)); | |
17716 | } | |
17717 | static void *_p_wxRegionIteratorTo_p_wxObject(void *x) { | |
17718 | return (void *)((wxObject *) ((wxRegionIterator *) x)); | |
17719 | } | |
17720 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
17721 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
17722 | } | |
17723 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
17724 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
17725 | } | |
17726 | static void *_p_wxColourDatabaseTo_p_wxObject(void *x) { | |
17727 | return (void *)((wxObject *) ((wxColourDatabase *) x)); | |
17728 | } | |
17729 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
17730 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
17731 | } | |
17732 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
17733 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
17734 | } | |
17735 | static void *_p_wxIconTo_p_wxObject(void *x) { | |
17736 | return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x)); | |
17737 | } | |
17738 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
17739 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
17740 | } | |
17741 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
17742 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
17743 | } | |
17744 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
17745 | return (void *)((wxObject *) ((wxSizer *) x)); | |
17746 | } | |
17747 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
17748 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
17749 | } | |
17750 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
17751 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
17752 | } | |
17753 | static void *_p_wxPenListTo_p_wxObject(void *x) { | |
17754 | return (void *)((wxObject *) ((wxPenList *) x)); | |
17755 | } | |
17756 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
17757 | return (void *)((wxObject *) ((wxEvent *) x)); | |
17758 | } | |
17759 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
17760 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
17761 | } | |
17762 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
17763 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
17764 | } | |
17765 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
17766 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
17767 | } | |
17768 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
17769 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
17770 | } | |
17771 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
17772 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
17773 | } | |
17774 | static void *_p_wxDCTo_p_wxObject(void *x) { | |
17775 | return (void *)((wxObject *) ((wxDC *) x)); | |
17776 | } | |
17777 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
17778 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
17779 | } | |
17780 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
17781 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
17782 | } | |
17783 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
17784 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
17785 | } | |
17786 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
17787 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
17788 | } | |
17789 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
17790 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
17791 | } | |
17792 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
17793 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
17794 | } | |
17795 | static void *_p_wxClientDCTo_p_wxObject(void *x) { | |
17796 | return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x)); | |
17797 | } | |
17798 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
17799 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
17800 | } | |
17801 | static void *_p_wxMemoryDCTo_p_wxObject(void *x) { | |
17802 | return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x)); | |
17803 | } | |
17804 | static void *_p_wxRegionTo_p_wxObject(void *x) { | |
17805 | return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x)); | |
17806 | } | |
17807 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
17808 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
17809 | } | |
17810 | static void *_p_wxWindowDCTo_p_wxObject(void *x) { | |
17811 | return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x)); | |
17812 | } | |
17813 | static void *_p_wxGDIObjectTo_p_wxObject(void *x) { | |
17814 | return (void *)((wxObject *) ((wxGDIObject *) x)); | |
17815 | } | |
17816 | static void *_p_wxEffectsTo_p_wxObject(void *x) { | |
17817 | return (void *)((wxObject *) ((wxEffects *) x)); | |
17818 | } | |
17819 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
17820 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
17821 | } | |
17822 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
17823 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
17824 | } | |
17825 | static void *_p_wxPostScriptDCTo_p_wxObject(void *x) { | |
17826 | return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x)); | |
17827 | } | |
17828 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
17829 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
17830 | } | |
17831 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
17832 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
17833 | } | |
17834 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
17835 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
17836 | } | |
17837 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
17838 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
17839 | } | |
17840 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
17841 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
17842 | } | |
17843 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
17844 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
17845 | } | |
17846 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
17847 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
17848 | } | |
17849 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
17850 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
17851 | } | |
17852 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
17853 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
17854 | } | |
17855 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
17856 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
17857 | } | |
17858 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
17859 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
17860 | } | |
17861 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
17862 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
17863 | } | |
17864 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
17865 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
17866 | } | |
17867 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
17868 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
17869 | } | |
17870 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
17871 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
17872 | } | |
17873 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
17874 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
17875 | } | |
17876 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
17877 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
17878 | } | |
17879 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
17880 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
17881 | } | |
17882 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
17883 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
17884 | } | |
17885 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
17886 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
17887 | } | |
17888 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
17889 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
17890 | } | |
17891 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
17892 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
17893 | } | |
17894 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
17895 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
17896 | } | |
17897 | static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) { | |
17898 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
17899 | } | |
17900 | static void *_p_wxPaintDCTo_p_wxObject(void *x) { | |
17901 | return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x)); | |
17902 | } | |
17903 | static void *_p_wxPrinterDCTo_p_wxObject(void *x) { | |
17904 | return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x)); | |
17905 | } | |
17906 | static void *_p_wxScreenDCTo_p_wxObject(void *x) { | |
17907 | return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x)); | |
17908 | } | |
17909 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
17910 | return (void *)((wxObject *) ((wxImage *) x)); | |
17911 | } | |
17912 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
17913 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
17914 | } | |
17915 | static void *_p_wxGenericDragImageTo_p_wxObject(void *x) { | |
17916 | return (void *)((wxObject *) ((wxGenericDragImage *) x)); | |
17917 | } | |
17918 | static void *_p_wxPaletteTo_p_wxObject(void *x) { | |
17919 | return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x)); | |
17920 | } | |
17921 | static void *_p_wxBufferedDCTo_p_wxObject(void *x) { | |
17922 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x)); | |
17923 | } | |
17924 | static void *_p_wxImageListTo_p_wxObject(void *x) { | |
17925 | return (void *)((wxObject *) ((wxImageList *) x)); | |
17926 | } | |
17927 | static void *_p_wxCursorTo_p_wxObject(void *x) { | |
17928 | return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x)); | |
17929 | } | |
17930 | static void *_p_wxEncodingConverterTo_p_wxObject(void *x) { | |
17931 | return (void *)((wxObject *) ((wxEncodingConverter *) x)); | |
17932 | } | |
17933 | static void *_p_wxMirrorDCTo_p_wxObject(void *x) { | |
17934 | return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x)); | |
17935 | } | |
17936 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
17937 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
17938 | } | |
17939 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
17940 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
17941 | } | |
17942 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
17943 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
17944 | } | |
17945 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
17946 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
17947 | } | |
17948 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
17949 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
17950 | } | |
17951 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
17952 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
17953 | } | |
17954 | static void *_p_wxMetaFileDCTo_p_wxObject(void *x) { | |
17955 | return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x)); | |
17956 | } | |
17957 | static void *_p_wxBrushListTo_p_wxObject(void *x) { | |
17958 | return (void *)((wxObject *) ((wxBrushList *) x)); | |
17959 | } | |
17960 | static void *_p_wxPyPenTo_p_wxObject(void *x) { | |
17961 | return (void *)((wxObject *) (wxGDIObject *)(wxPen *) ((wxPyPen *) x)); | |
17962 | } | |
17963 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
17964 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
17965 | } | |
17966 | static void *_p_wxBitmapTo_p_wxObject(void *x) { | |
17967 | return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x)); | |
17968 | } | |
17969 | static void *_p_wxMaskTo_p_wxObject(void *x) { | |
17970 | return (void *)((wxObject *) ((wxMask *) x)); | |
17971 | } | |
17972 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
17973 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
17974 | } | |
17975 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
17976 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
17977 | } | |
17978 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
17979 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
17980 | } | |
17981 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
17982 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
17983 | } | |
17984 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
17985 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
17986 | } | |
17987 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
17988 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
17989 | } | |
17990 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
17991 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
17992 | } | |
17993 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
17994 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
17995 | } | |
17996 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
17997 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
17998 | } | |
17999 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
18000 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
18001 | } | |
18002 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
18003 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
18004 | } | |
18005 | static void *_p_wxFontTo_p_wxObject(void *x) { | |
18006 | return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x)); | |
18007 | } | |
18008 | static void *_p_wxBrushTo_p_wxObject(void *x) { | |
18009 | return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x)); | |
18010 | } | |
18011 | static void *_p_wxMetaFileTo_p_wxObject(void *x) { | |
18012 | return (void *)((wxObject *) ((wxMetaFile *) x)); | |
18013 | } | |
18014 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
18015 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
18016 | } | |
18017 | static void *_p_wxColourTo_p_wxObject(void *x) { | |
18018 | return (void *)((wxObject *) ((wxColour *) x)); | |
18019 | } | |
18020 | static void *_p_wxFontListTo_p_wxObject(void *x) { | |
18021 | return (void *)((wxObject *) ((wxFontList *) x)); | |
18022 | } | |
18023 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
18024 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
18025 | } | |
18026 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
18027 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
18028 | } | |
18029 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
18030 | return (void *)((wxWindow *) ((wxControl *) x)); | |
18031 | } | |
18032 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
18033 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
18034 | } | |
18035 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
18036 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
18037 | } | |
18038 | static swig_type_info _swigt__p_wxPostScriptDC[] = {{"_p_wxPostScriptDC", 0, "wxPostScriptDC *", 0},{"_p_wxPostScriptDC"},{0}}; | |
18039 | static swig_type_info _swigt__p_wxGenericDragImage[] = {{"_p_wxGenericDragImage", 0, "wxGenericDragImage *", 0},{"_p_wxGenericDragImage"},{0}}; | |
18040 | static swig_type_info _swigt__p_wxBrush[] = {{"_p_wxBrush", 0, "wxBrush *", 0},{"_p_wxBrush"},{0}}; | |
18041 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}}; | |
18042 | static swig_type_info _swigt__p_wxCoord[] = {{"_p_wxCoord", 0, "wxCoord *", 0},{"_p_wxCoord"},{"_p_int"},{0}}; | |
18043 | 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}}; | |
18044 | static swig_type_info _swigt__p_wxMirrorDC[] = {{"_p_wxMirrorDC", 0, "wxMirrorDC *", 0},{"_p_wxMirrorDC"},{0}}; | |
18045 | static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "byte *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}}; | |
18046 | static swig_type_info _swigt__p_wxPyFontEnumerator[] = {{"_p_wxPyFontEnumerator", 0, "wxPyFontEnumerator *", 0},{"_p_wxPyFontEnumerator"},{0}}; | |
18047 | static swig_type_info _swigt__p_wxIconLocation[] = {{"_p_wxIconLocation", 0, "wxIconLocation *", 0},{"_p_wxIconLocation"},{0}}; | |
18048 | static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0},{"_p_wxImage"},{0}}; | |
18049 | static swig_type_info _swigt__p_wxMetaFileDC[] = {{"_p_wxMetaFileDC", 0, "wxMetaFileDC *", 0},{"_p_wxMetaFileDC"},{0}}; | |
18050 | static swig_type_info _swigt__p_wxMask[] = {{"_p_wxMask", 0, "wxMask *", 0},{"_p_wxMask"},{0}}; | |
18051 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}}; | |
18052 | 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}}; | |
18053 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}}; | |
18054 | static swig_type_info _swigt__p_double[] = {{"_p_double", 0, "double *", 0},{"_p_double"},{0}}; | |
18055 | 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}}; | |
18056 | static swig_type_info _swigt__p_wxFontMapper[] = {{"_p_wxFontMapper", 0, "wxFontMapper *", 0},{"_p_wxFontMapper"},{0}}; | |
18057 | static swig_type_info _swigt__p_wxListCtrl[] = {{"_p_wxListCtrl", 0, "wxListCtrl *", 0},{"_p_wxListCtrl"},{0}}; | |
18058 | static swig_type_info _swigt__p_wxEffects[] = {{"_p_wxEffects", 0, "wxEffects *", 0},{"_p_wxEffects"},{0}}; | |
18059 | static swig_type_info _swigt__p_wxNativeEncodingInfo[] = {{"_p_wxNativeEncodingInfo", 0, "wxNativeEncodingInfo *", 0},{"_p_wxNativeEncodingInfo"},{0}}; | |
18060 | static swig_type_info _swigt__p_wxPalette[] = {{"_p_wxPalette", 0, "wxPalette *", 0},{"_p_wxPalette"},{0}}; | |
18061 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}}; | |
18062 | 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_wxGenericDragImage", _p_wxGenericDragImageTo_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}}; | |
18063 | static swig_type_info _swigt__p_wxRegionIterator[] = {{"_p_wxRegionIterator", 0, "wxRegionIterator *", 0},{"_p_wxRegionIterator"},{0}}; | |
18064 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}}; | |
18065 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}}; | |
18066 | static swig_type_info _swigt__p_wxPrinterDC[] = {{"_p_wxPrinterDC", 0, "wxPrinterDC *", 0},{"_p_wxPrinterDC"},{0}}; | |
18067 | static swig_type_info _swigt__p_wxIconBundle[] = {{"_p_wxIconBundle", 0, "wxIconBundle *", 0},{"_p_wxIconBundle"},{0}}; | |
18068 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}}; | |
18069 | static swig_type_info _swigt__p_wxDash[] = {{"_p_wxDash", 0, "wxDash *", 0},{"_p_wxDash"},{0}}; | |
18070 | static swig_type_info _swigt__p_wxScreenDC[] = {{"_p_wxScreenDC", 0, "wxScreenDC *", 0},{"_p_wxScreenDC"},{0}}; | |
18071 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}}; | |
18072 | static swig_type_info _swigt__p_wxClientDC[] = {{"_p_wxClientDC", 0, "wxClientDC *", 0},{"_p_wxClientDC"},{0}}; | |
18073 | static swig_type_info _swigt__p_wxTreeCtrl[] = {{"_p_wxTreeCtrl", 0, "wxTreeCtrl *", 0},{"_p_wxTreeCtrl"},{0}}; | |
18074 | static swig_type_info _swigt__p_wxBufferedDC[] = {{"_p_wxBufferedDC", 0, "wxBufferedDC *", 0},{"_p_wxBufferedDC"},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxBufferedDC},{0}}; | |
18075 | static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0},{"_p_wxImageList"},{0}}; | |
18076 | static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}}; | |
18077 | 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}}; | |
18078 | static swig_type_info _swigt__p_wxLocale[] = {{"_p_wxLocale", 0, "wxLocale *", 0},{"_p_wxLocale"},{0}}; | |
18079 | static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}}; | |
18080 | static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0},{"_p_wxRegion"},{0}}; | |
18081 | static swig_type_info _swigt__p_wxLanguageInfo[] = {{"_p_wxLanguageInfo", 0, "wxLanguageInfo *", 0},{"_p_wxLanguageInfo"},{0}}; | |
18082 | static swig_type_info _swigt__p_wxConfigBase[] = {{"_p_wxConfigBase", 0, "wxConfigBase *", 0},{"_p_wxConfigBase"},{0}}; | |
18083 | static swig_type_info _swigt__p_wxWindowDC[] = {{"_p_wxWindowDC", 0, "wxWindowDC *", 0},{"_p_wxWindowDC"},{0}}; | |
18084 | static swig_type_info _swigt__p_wxPrintData[] = {{"_p_wxPrintData", 0, "wxPrintData *", 0},{"_p_wxPrintData"},{0}}; | |
18085 | static swig_type_info _swigt__p_wxBrushList[] = {{"_p_wxBrushList", 0, "wxBrushList *", 0},{"_p_wxBrushList"},{0}}; | |
18086 | static swig_type_info _swigt__p_wxFontList[] = {{"_p_wxFontList", 0, "wxFontList *", 0},{"_p_wxFontList"},{0}}; | |
18087 | static swig_type_info _swigt__p_wxPen[] = {{"_p_wxPen", 0, "wxPen *", 0},{"_p_wxPyPen", _p_wxPyPenTo_p_wxPen},{"_p_wxPen"},{0}}; | |
18088 | static swig_type_info _swigt__p_wxBufferedPaintDC[] = {{"_p_wxBufferedPaintDC", 0, "wxBufferedPaintDC *", 0},{"_p_wxBufferedPaintDC"},{0}}; | |
18089 | static swig_type_info _swigt__p_wxPaintDC[] = {{"_p_wxPaintDC", 0, "wxPaintDC *", 0},{"_p_wxPaintDC"},{0}}; | |
18090 | static swig_type_info _swigt__p_wxPenList[] = {{"_p_wxPenList", 0, "wxPenList *", 0},{"_p_wxPenList"},{0}}; | |
18091 | static swig_type_info _swigt__p_wxTreeItemId[] = {{"_p_wxTreeItemId", 0, "wxTreeItemId *", 0},{"_p_wxTreeItemId"},{0}}; | |
18092 | static swig_type_info _swigt__p_wxPyPen[] = {{"_p_wxPyPen", 0, "wxPyPen *", 0},{"_p_wxPyPen"},{0}}; | |
18093 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_wxCoord"},{"_p_int"},{0}}; | |
18094 | static swig_type_info _swigt__p_wxMetaFile[] = {{"_p_wxMetaFile", 0, "wxMetaFile *", 0},{"_p_wxMetaFile"},{0}}; | |
18095 | static swig_type_info _swigt__p_wxNativeFontInfo[] = {{"_p_wxNativeFontInfo", 0, "wxNativeFontInfo *", 0},{"_p_wxNativeFontInfo"},{0}}; | |
18096 | static swig_type_info _swigt__p_wxEncodingConverter[] = {{"_p_wxEncodingConverter", 0, "wxEncodingConverter *", 0},{"_p_wxEncodingConverter"},{0}}; | |
18097 | static swig_type_info _swigt__p_wxColourDatabase[] = {{"_p_wxColourDatabase", 0, "wxColourDatabase *", 0},{"_p_wxColourDatabase"},{0}}; | |
18098 | ||
18099 | static swig_type_info *swig_types_initial[] = { | |
18100 | _swigt__p_wxPostScriptDC, | |
18101 | _swigt__p_wxGenericDragImage, | |
18102 | _swigt__p_wxBrush, | |
18103 | _swigt__p_wxColour, | |
18104 | _swigt__p_wxCoord, | |
18105 | _swigt__p_wxDC, | |
18106 | _swigt__p_wxMirrorDC, | |
18107 | _swigt__p_byte, | |
18108 | _swigt__p_wxPyFontEnumerator, | |
18109 | _swigt__p_wxIconLocation, | |
18110 | _swigt__p_wxImage, | |
18111 | _swigt__p_wxMetaFileDC, | |
18112 | _swigt__p_wxMask, | |
18113 | _swigt__p_wxFont, | |
18114 | _swigt__p_wxWindow, | |
18115 | _swigt__p_wxSize, | |
18116 | _swigt__p_double, | |
18117 | _swigt__p_wxMemoryDC, | |
18118 | _swigt__p_wxFontMapper, | |
18119 | _swigt__p_wxListCtrl, | |
18120 | _swigt__p_wxEffects, | |
18121 | _swigt__p_wxNativeEncodingInfo, | |
18122 | _swigt__p_wxPalette, | |
18123 | _swigt__p_wxBitmap, | |
18124 | _swigt__p_wxObject, | |
18125 | _swigt__p_wxRegionIterator, | |
18126 | _swigt__p_wxRect, | |
18127 | _swigt__p_wxString, | |
18128 | _swigt__p_wxPrinterDC, | |
18129 | _swigt__p_wxIconBundle, | |
18130 | _swigt__p_wxPoint, | |
18131 | _swigt__p_wxDash, | |
18132 | _swigt__p_wxScreenDC, | |
18133 | _swigt__p_wxCursor, | |
18134 | _swigt__p_wxClientDC, | |
18135 | _swigt__p_wxTreeCtrl, | |
18136 | _swigt__p_wxBufferedDC, | |
18137 | _swigt__p_wxImageList, | |
18138 | _swigt__p_unsigned_char, | |
18139 | _swigt__p_wxGDIObject, | |
18140 | _swigt__p_wxLocale, | |
18141 | _swigt__p_wxIcon, | |
18142 | _swigt__p_wxRegion, | |
18143 | _swigt__p_wxLanguageInfo, | |
18144 | _swigt__p_wxConfigBase, | |
18145 | _swigt__p_wxWindowDC, | |
18146 | _swigt__p_wxPrintData, | |
18147 | _swigt__p_wxBrushList, | |
18148 | _swigt__p_wxFontList, | |
18149 | _swigt__p_wxPen, | |
18150 | _swigt__p_wxBufferedPaintDC, | |
18151 | _swigt__p_wxPaintDC, | |
18152 | _swigt__p_wxPenList, | |
18153 | _swigt__p_wxTreeItemId, | |
18154 | _swigt__p_wxPyPen, | |
18155 | _swigt__p_int, | |
18156 | _swigt__p_wxMetaFile, | |
18157 | _swigt__p_wxNativeFontInfo, | |
18158 | _swigt__p_wxEncodingConverter, | |
18159 | _swigt__p_wxColourDatabase, | |
18160 | 0 | |
18161 | }; | |
18162 | ||
18163 | ||
18164 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
18165 | ||
18166 | static swig_const_info swig_const_table[] = { | |
18167 | { SWIG_PY_INT, (char *)"OutRegion", (long) wxOutRegion, 0, 0, 0}, | |
18168 | { SWIG_PY_INT, (char *)"PartRegion", (long) wxPartRegion, 0, 0, 0}, | |
18169 | { SWIG_PY_INT, (char *)"InRegion", (long) wxInRegion, 0, 0, 0}, | |
18170 | { SWIG_PY_INT, (char *)"FONTFAMILY_DEFAULT", (long) wxFONTFAMILY_DEFAULT, 0, 0, 0}, | |
18171 | { SWIG_PY_INT, (char *)"FONTFAMILY_DECORATIVE", (long) wxFONTFAMILY_DECORATIVE, 0, 0, 0}, | |
18172 | { SWIG_PY_INT, (char *)"FONTFAMILY_ROMAN", (long) wxFONTFAMILY_ROMAN, 0, 0, 0}, | |
18173 | { SWIG_PY_INT, (char *)"FONTFAMILY_SCRIPT", (long) wxFONTFAMILY_SCRIPT, 0, 0, 0}, | |
18174 | { SWIG_PY_INT, (char *)"FONTFAMILY_SWISS", (long) wxFONTFAMILY_SWISS, 0, 0, 0}, | |
18175 | { SWIG_PY_INT, (char *)"FONTFAMILY_MODERN", (long) wxFONTFAMILY_MODERN, 0, 0, 0}, | |
18176 | { SWIG_PY_INT, (char *)"FONTFAMILY_TELETYPE", (long) wxFONTFAMILY_TELETYPE, 0, 0, 0}, | |
18177 | { SWIG_PY_INT, (char *)"FONTFAMILY_MAX", (long) wxFONTFAMILY_MAX, 0, 0, 0}, | |
18178 | { SWIG_PY_INT, (char *)"FONTFAMILY_UNKNOWN", (long) wxFONTFAMILY_UNKNOWN, 0, 0, 0}, | |
18179 | { SWIG_PY_INT, (char *)"FONTSTYLE_NORMAL", (long) wxFONTSTYLE_NORMAL, 0, 0, 0}, | |
18180 | { SWIG_PY_INT, (char *)"FONTSTYLE_ITALIC", (long) wxFONTSTYLE_ITALIC, 0, 0, 0}, | |
18181 | { SWIG_PY_INT, (char *)"FONTSTYLE_SLANT", (long) wxFONTSTYLE_SLANT, 0, 0, 0}, | |
18182 | { SWIG_PY_INT, (char *)"FONTSTYLE_MAX", (long) wxFONTSTYLE_MAX, 0, 0, 0}, | |
18183 | { SWIG_PY_INT, (char *)"FONTWEIGHT_NORMAL", (long) wxFONTWEIGHT_NORMAL, 0, 0, 0}, | |
18184 | { SWIG_PY_INT, (char *)"FONTWEIGHT_LIGHT", (long) wxFONTWEIGHT_LIGHT, 0, 0, 0}, | |
18185 | { SWIG_PY_INT, (char *)"FONTWEIGHT_BOLD", (long) wxFONTWEIGHT_BOLD, 0, 0, 0}, | |
18186 | { SWIG_PY_INT, (char *)"FONTWEIGHT_MAX", (long) wxFONTWEIGHT_MAX, 0, 0, 0}, | |
18187 | { SWIG_PY_INT, (char *)"FONTFLAG_DEFAULT", (long) wxFONTFLAG_DEFAULT, 0, 0, 0}, | |
18188 | { SWIG_PY_INT, (char *)"FONTFLAG_ITALIC", (long) wxFONTFLAG_ITALIC, 0, 0, 0}, | |
18189 | { SWIG_PY_INT, (char *)"FONTFLAG_SLANT", (long) wxFONTFLAG_SLANT, 0, 0, 0}, | |
18190 | { SWIG_PY_INT, (char *)"FONTFLAG_LIGHT", (long) wxFONTFLAG_LIGHT, 0, 0, 0}, | |
18191 | { SWIG_PY_INT, (char *)"FONTFLAG_BOLD", (long) wxFONTFLAG_BOLD, 0, 0, 0}, | |
18192 | { SWIG_PY_INT, (char *)"FONTFLAG_ANTIALIASED", (long) wxFONTFLAG_ANTIALIASED, 0, 0, 0}, | |
18193 | { SWIG_PY_INT, (char *)"FONTFLAG_NOT_ANTIALIASED", (long) wxFONTFLAG_NOT_ANTIALIASED, 0, 0, 0}, | |
18194 | { SWIG_PY_INT, (char *)"FONTFLAG_UNDERLINED", (long) wxFONTFLAG_UNDERLINED, 0, 0, 0}, | |
18195 | { SWIG_PY_INT, (char *)"FONTFLAG_STRIKETHROUGH", (long) wxFONTFLAG_STRIKETHROUGH, 0, 0, 0}, | |
18196 | { SWIG_PY_INT, (char *)"FONTFLAG_MASK", (long) wxFONTFLAG_MASK, 0, 0, 0}, | |
18197 | { SWIG_PY_INT, (char *)"FONTENCODING_SYSTEM", (long) wxFONTENCODING_SYSTEM, 0, 0, 0}, | |
18198 | { SWIG_PY_INT, (char *)"FONTENCODING_DEFAULT", (long) wxFONTENCODING_DEFAULT, 0, 0, 0}, | |
18199 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_1", (long) wxFONTENCODING_ISO8859_1, 0, 0, 0}, | |
18200 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_2", (long) wxFONTENCODING_ISO8859_2, 0, 0, 0}, | |
18201 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_3", (long) wxFONTENCODING_ISO8859_3, 0, 0, 0}, | |
18202 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_4", (long) wxFONTENCODING_ISO8859_4, 0, 0, 0}, | |
18203 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_5", (long) wxFONTENCODING_ISO8859_5, 0, 0, 0}, | |
18204 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_6", (long) wxFONTENCODING_ISO8859_6, 0, 0, 0}, | |
18205 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_7", (long) wxFONTENCODING_ISO8859_7, 0, 0, 0}, | |
18206 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_8", (long) wxFONTENCODING_ISO8859_8, 0, 0, 0}, | |
18207 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_9", (long) wxFONTENCODING_ISO8859_9, 0, 0, 0}, | |
18208 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_10", (long) wxFONTENCODING_ISO8859_10, 0, 0, 0}, | |
18209 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_11", (long) wxFONTENCODING_ISO8859_11, 0, 0, 0}, | |
18210 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_12", (long) wxFONTENCODING_ISO8859_12, 0, 0, 0}, | |
18211 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_13", (long) wxFONTENCODING_ISO8859_13, 0, 0, 0}, | |
18212 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_14", (long) wxFONTENCODING_ISO8859_14, 0, 0, 0}, | |
18213 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_15", (long) wxFONTENCODING_ISO8859_15, 0, 0, 0}, | |
18214 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_MAX", (long) wxFONTENCODING_ISO8859_MAX, 0, 0, 0}, | |
18215 | { SWIG_PY_INT, (char *)"FONTENCODING_KOI8", (long) wxFONTENCODING_KOI8, 0, 0, 0}, | |
18216 | { SWIG_PY_INT, (char *)"FONTENCODING_ALTERNATIVE", (long) wxFONTENCODING_ALTERNATIVE, 0, 0, 0}, | |
18217 | { SWIG_PY_INT, (char *)"FONTENCODING_BULGARIAN", (long) wxFONTENCODING_BULGARIAN, 0, 0, 0}, | |
18218 | { SWIG_PY_INT, (char *)"FONTENCODING_CP437", (long) wxFONTENCODING_CP437, 0, 0, 0}, | |
18219 | { SWIG_PY_INT, (char *)"FONTENCODING_CP850", (long) wxFONTENCODING_CP850, 0, 0, 0}, | |
18220 | { SWIG_PY_INT, (char *)"FONTENCODING_CP852", (long) wxFONTENCODING_CP852, 0, 0, 0}, | |
18221 | { SWIG_PY_INT, (char *)"FONTENCODING_CP855", (long) wxFONTENCODING_CP855, 0, 0, 0}, | |
18222 | { SWIG_PY_INT, (char *)"FONTENCODING_CP866", (long) wxFONTENCODING_CP866, 0, 0, 0}, | |
18223 | { SWIG_PY_INT, (char *)"FONTENCODING_CP874", (long) wxFONTENCODING_CP874, 0, 0, 0}, | |
18224 | { SWIG_PY_INT, (char *)"FONTENCODING_CP932", (long) wxFONTENCODING_CP932, 0, 0, 0}, | |
18225 | { SWIG_PY_INT, (char *)"FONTENCODING_CP936", (long) wxFONTENCODING_CP936, 0, 0, 0}, | |
18226 | { SWIG_PY_INT, (char *)"FONTENCODING_CP949", (long) wxFONTENCODING_CP949, 0, 0, 0}, | |
18227 | { SWIG_PY_INT, (char *)"FONTENCODING_CP950", (long) wxFONTENCODING_CP950, 0, 0, 0}, | |
18228 | { SWIG_PY_INT, (char *)"FONTENCODING_CP1250", (long) wxFONTENCODING_CP1250, 0, 0, 0}, | |
18229 | { SWIG_PY_INT, (char *)"FONTENCODING_CP1251", (long) wxFONTENCODING_CP1251, 0, 0, 0}, | |
18230 | { SWIG_PY_INT, (char *)"FONTENCODING_CP1252", (long) wxFONTENCODING_CP1252, 0, 0, 0}, | |
18231 | { SWIG_PY_INT, (char *)"FONTENCODING_CP1253", (long) wxFONTENCODING_CP1253, 0, 0, 0}, | |
18232 | { SWIG_PY_INT, (char *)"FONTENCODING_CP1254", (long) wxFONTENCODING_CP1254, 0, 0, 0}, | |
18233 | { SWIG_PY_INT, (char *)"FONTENCODING_CP1255", (long) wxFONTENCODING_CP1255, 0, 0, 0}, | |
18234 | { SWIG_PY_INT, (char *)"FONTENCODING_CP1256", (long) wxFONTENCODING_CP1256, 0, 0, 0}, | |
18235 | { SWIG_PY_INT, (char *)"FONTENCODING_CP1257", (long) wxFONTENCODING_CP1257, 0, 0, 0}, | |
18236 | { SWIG_PY_INT, (char *)"FONTENCODING_CP12_MAX", (long) wxFONTENCODING_CP12_MAX, 0, 0, 0}, | |
18237 | { SWIG_PY_INT, (char *)"FONTENCODING_UTF7", (long) wxFONTENCODING_UTF7, 0, 0, 0}, | |
18238 | { SWIG_PY_INT, (char *)"FONTENCODING_UTF8", (long) wxFONTENCODING_UTF8, 0, 0, 0}, | |
18239 | { SWIG_PY_INT, (char *)"FONTENCODING_EUC_JP", (long) wxFONTENCODING_EUC_JP, 0, 0, 0}, | |
18240 | { SWIG_PY_INT, (char *)"FONTENCODING_UTF16BE", (long) wxFONTENCODING_UTF16BE, 0, 0, 0}, | |
18241 | { SWIG_PY_INT, (char *)"FONTENCODING_UTF16LE", (long) wxFONTENCODING_UTF16LE, 0, 0, 0}, | |
18242 | { SWIG_PY_INT, (char *)"FONTENCODING_UTF32BE", (long) wxFONTENCODING_UTF32BE, 0, 0, 0}, | |
18243 | { SWIG_PY_INT, (char *)"FONTENCODING_UTF32LE", (long) wxFONTENCODING_UTF32LE, 0, 0, 0}, | |
18244 | { SWIG_PY_INT, (char *)"FONTENCODING_MAX", (long) wxFONTENCODING_MAX, 0, 0, 0}, | |
18245 | { SWIG_PY_INT, (char *)"FONTENCODING_UTF16", (long) wxFONTENCODING_UTF16, 0, 0, 0}, | |
18246 | { SWIG_PY_INT, (char *)"FONTENCODING_UTF32", (long) wxFONTENCODING_UTF32, 0, 0, 0}, | |
18247 | { SWIG_PY_INT, (char *)"FONTENCODING_UNICODE", (long) wxFONTENCODING_UNICODE, 0, 0, 0}, | |
18248 | { SWIG_PY_INT, (char *)"FONTENCODING_GB2312", (long) wxFONTENCODING_GB2312, 0, 0, 0}, | |
18249 | { SWIG_PY_INT, (char *)"FONTENCODING_BIG5", (long) wxFONTENCODING_BIG5, 0, 0, 0}, | |
18250 | { SWIG_PY_INT, (char *)"FONTENCODING_SHIFT_JIS", (long) wxFONTENCODING_SHIFT_JIS, 0, 0, 0}, | |
18251 | { SWIG_PY_INT, (char *)"LANGUAGE_DEFAULT", (long) wxLANGUAGE_DEFAULT, 0, 0, 0}, | |
18252 | { SWIG_PY_INT, (char *)"LANGUAGE_UNKNOWN", (long) wxLANGUAGE_UNKNOWN, 0, 0, 0}, | |
18253 | { SWIG_PY_INT, (char *)"LANGUAGE_ABKHAZIAN", (long) wxLANGUAGE_ABKHAZIAN, 0, 0, 0}, | |
18254 | { SWIG_PY_INT, (char *)"LANGUAGE_AFAR", (long) wxLANGUAGE_AFAR, 0, 0, 0}, | |
18255 | { SWIG_PY_INT, (char *)"LANGUAGE_AFRIKAANS", (long) wxLANGUAGE_AFRIKAANS, 0, 0, 0}, | |
18256 | { SWIG_PY_INT, (char *)"LANGUAGE_ALBANIAN", (long) wxLANGUAGE_ALBANIAN, 0, 0, 0}, | |
18257 | { SWIG_PY_INT, (char *)"LANGUAGE_AMHARIC", (long) wxLANGUAGE_AMHARIC, 0, 0, 0}, | |
18258 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC", (long) wxLANGUAGE_ARABIC, 0, 0, 0}, | |
18259 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_ALGERIA", (long) wxLANGUAGE_ARABIC_ALGERIA, 0, 0, 0}, | |
18260 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_BAHRAIN", (long) wxLANGUAGE_ARABIC_BAHRAIN, 0, 0, 0}, | |
18261 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_EGYPT", (long) wxLANGUAGE_ARABIC_EGYPT, 0, 0, 0}, | |
18262 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_IRAQ", (long) wxLANGUAGE_ARABIC_IRAQ, 0, 0, 0}, | |
18263 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_JORDAN", (long) wxLANGUAGE_ARABIC_JORDAN, 0, 0, 0}, | |
18264 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_KUWAIT", (long) wxLANGUAGE_ARABIC_KUWAIT, 0, 0, 0}, | |
18265 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_LEBANON", (long) wxLANGUAGE_ARABIC_LEBANON, 0, 0, 0}, | |
18266 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_LIBYA", (long) wxLANGUAGE_ARABIC_LIBYA, 0, 0, 0}, | |
18267 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_MOROCCO", (long) wxLANGUAGE_ARABIC_MOROCCO, 0, 0, 0}, | |
18268 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_OMAN", (long) wxLANGUAGE_ARABIC_OMAN, 0, 0, 0}, | |
18269 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_QATAR", (long) wxLANGUAGE_ARABIC_QATAR, 0, 0, 0}, | |
18270 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_SAUDI_ARABIA", (long) wxLANGUAGE_ARABIC_SAUDI_ARABIA, 0, 0, 0}, | |
18271 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_SUDAN", (long) wxLANGUAGE_ARABIC_SUDAN, 0, 0, 0}, | |
18272 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_SYRIA", (long) wxLANGUAGE_ARABIC_SYRIA, 0, 0, 0}, | |
18273 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_TUNISIA", (long) wxLANGUAGE_ARABIC_TUNISIA, 0, 0, 0}, | |
18274 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_UAE", (long) wxLANGUAGE_ARABIC_UAE, 0, 0, 0}, | |
18275 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_YEMEN", (long) wxLANGUAGE_ARABIC_YEMEN, 0, 0, 0}, | |
18276 | { SWIG_PY_INT, (char *)"LANGUAGE_ARMENIAN", (long) wxLANGUAGE_ARMENIAN, 0, 0, 0}, | |
18277 | { SWIG_PY_INT, (char *)"LANGUAGE_ASSAMESE", (long) wxLANGUAGE_ASSAMESE, 0, 0, 0}, | |
18278 | { SWIG_PY_INT, (char *)"LANGUAGE_AYMARA", (long) wxLANGUAGE_AYMARA, 0, 0, 0}, | |
18279 | { SWIG_PY_INT, (char *)"LANGUAGE_AZERI", (long) wxLANGUAGE_AZERI, 0, 0, 0}, | |
18280 | { SWIG_PY_INT, (char *)"LANGUAGE_AZERI_CYRILLIC", (long) wxLANGUAGE_AZERI_CYRILLIC, 0, 0, 0}, | |
18281 | { SWIG_PY_INT, (char *)"LANGUAGE_AZERI_LATIN", (long) wxLANGUAGE_AZERI_LATIN, 0, 0, 0}, | |
18282 | { SWIG_PY_INT, (char *)"LANGUAGE_BASHKIR", (long) wxLANGUAGE_BASHKIR, 0, 0, 0}, | |
18283 | { SWIG_PY_INT, (char *)"LANGUAGE_BASQUE", (long) wxLANGUAGE_BASQUE, 0, 0, 0}, | |
18284 | { SWIG_PY_INT, (char *)"LANGUAGE_BELARUSIAN", (long) wxLANGUAGE_BELARUSIAN, 0, 0, 0}, | |
18285 | { SWIG_PY_INT, (char *)"LANGUAGE_BENGALI", (long) wxLANGUAGE_BENGALI, 0, 0, 0}, | |
18286 | { SWIG_PY_INT, (char *)"LANGUAGE_BHUTANI", (long) wxLANGUAGE_BHUTANI, 0, 0, 0}, | |
18287 | { SWIG_PY_INT, (char *)"LANGUAGE_BIHARI", (long) wxLANGUAGE_BIHARI, 0, 0, 0}, | |
18288 | { SWIG_PY_INT, (char *)"LANGUAGE_BISLAMA", (long) wxLANGUAGE_BISLAMA, 0, 0, 0}, | |
18289 | { SWIG_PY_INT, (char *)"LANGUAGE_BRETON", (long) wxLANGUAGE_BRETON, 0, 0, 0}, | |
18290 | { SWIG_PY_INT, (char *)"LANGUAGE_BULGARIAN", (long) wxLANGUAGE_BULGARIAN, 0, 0, 0}, | |
18291 | { SWIG_PY_INT, (char *)"LANGUAGE_BURMESE", (long) wxLANGUAGE_BURMESE, 0, 0, 0}, | |
18292 | { SWIG_PY_INT, (char *)"LANGUAGE_CAMBODIAN", (long) wxLANGUAGE_CAMBODIAN, 0, 0, 0}, | |
18293 | { SWIG_PY_INT, (char *)"LANGUAGE_CATALAN", (long) wxLANGUAGE_CATALAN, 0, 0, 0}, | |
18294 | { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE", (long) wxLANGUAGE_CHINESE, 0, 0, 0}, | |
18295 | { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_SIMPLIFIED", (long) wxLANGUAGE_CHINESE_SIMPLIFIED, 0, 0, 0}, | |
18296 | { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_TRADITIONAL", (long) wxLANGUAGE_CHINESE_TRADITIONAL, 0, 0, 0}, | |
18297 | { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_HONGKONG", (long) wxLANGUAGE_CHINESE_HONGKONG, 0, 0, 0}, | |
18298 | { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_MACAU", (long) wxLANGUAGE_CHINESE_MACAU, 0, 0, 0}, | |
18299 | { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_SINGAPORE", (long) wxLANGUAGE_CHINESE_SINGAPORE, 0, 0, 0}, | |
18300 | { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_TAIWAN", (long) wxLANGUAGE_CHINESE_TAIWAN, 0, 0, 0}, | |
18301 | { SWIG_PY_INT, (char *)"LANGUAGE_CORSICAN", (long) wxLANGUAGE_CORSICAN, 0, 0, 0}, | |
18302 | { SWIG_PY_INT, (char *)"LANGUAGE_CROATIAN", (long) wxLANGUAGE_CROATIAN, 0, 0, 0}, | |
18303 | { SWIG_PY_INT, (char *)"LANGUAGE_CZECH", (long) wxLANGUAGE_CZECH, 0, 0, 0}, | |
18304 | { SWIG_PY_INT, (char *)"LANGUAGE_DANISH", (long) wxLANGUAGE_DANISH, 0, 0, 0}, | |
18305 | { SWIG_PY_INT, (char *)"LANGUAGE_DUTCH", (long) wxLANGUAGE_DUTCH, 0, 0, 0}, | |
18306 | { SWIG_PY_INT, (char *)"LANGUAGE_DUTCH_BELGIAN", (long) wxLANGUAGE_DUTCH_BELGIAN, 0, 0, 0}, | |
18307 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH", (long) wxLANGUAGE_ENGLISH, 0, 0, 0}, | |
18308 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_UK", (long) wxLANGUAGE_ENGLISH_UK, 0, 0, 0}, | |
18309 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_US", (long) wxLANGUAGE_ENGLISH_US, 0, 0, 0}, | |
18310 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_AUSTRALIA", (long) wxLANGUAGE_ENGLISH_AUSTRALIA, 0, 0, 0}, | |
18311 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_BELIZE", (long) wxLANGUAGE_ENGLISH_BELIZE, 0, 0, 0}, | |
18312 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_BOTSWANA", (long) wxLANGUAGE_ENGLISH_BOTSWANA, 0, 0, 0}, | |
18313 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_CANADA", (long) wxLANGUAGE_ENGLISH_CANADA, 0, 0, 0}, | |
18314 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_CARIBBEAN", (long) wxLANGUAGE_ENGLISH_CARIBBEAN, 0, 0, 0}, | |
18315 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_DENMARK", (long) wxLANGUAGE_ENGLISH_DENMARK, 0, 0, 0}, | |
18316 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_EIRE", (long) wxLANGUAGE_ENGLISH_EIRE, 0, 0, 0}, | |
18317 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_JAMAICA", (long) wxLANGUAGE_ENGLISH_JAMAICA, 0, 0, 0}, | |
18318 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_NEW_ZEALAND", (long) wxLANGUAGE_ENGLISH_NEW_ZEALAND, 0, 0, 0}, | |
18319 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_PHILIPPINES", (long) wxLANGUAGE_ENGLISH_PHILIPPINES, 0, 0, 0}, | |
18320 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_SOUTH_AFRICA", (long) wxLANGUAGE_ENGLISH_SOUTH_AFRICA, 0, 0, 0}, | |
18321 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_TRINIDAD", (long) wxLANGUAGE_ENGLISH_TRINIDAD, 0, 0, 0}, | |
18322 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_ZIMBABWE", (long) wxLANGUAGE_ENGLISH_ZIMBABWE, 0, 0, 0}, | |
18323 | { SWIG_PY_INT, (char *)"LANGUAGE_ESPERANTO", (long) wxLANGUAGE_ESPERANTO, 0, 0, 0}, | |
18324 | { SWIG_PY_INT, (char *)"LANGUAGE_ESTONIAN", (long) wxLANGUAGE_ESTONIAN, 0, 0, 0}, | |
18325 | { SWIG_PY_INT, (char *)"LANGUAGE_FAEROESE", (long) wxLANGUAGE_FAEROESE, 0, 0, 0}, | |
18326 | { SWIG_PY_INT, (char *)"LANGUAGE_FARSI", (long) wxLANGUAGE_FARSI, 0, 0, 0}, | |
18327 | { SWIG_PY_INT, (char *)"LANGUAGE_FIJI", (long) wxLANGUAGE_FIJI, 0, 0, 0}, | |
18328 | { SWIG_PY_INT, (char *)"LANGUAGE_FINNISH", (long) wxLANGUAGE_FINNISH, 0, 0, 0}, | |
18329 | { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH", (long) wxLANGUAGE_FRENCH, 0, 0, 0}, | |
18330 | { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_BELGIAN", (long) wxLANGUAGE_FRENCH_BELGIAN, 0, 0, 0}, | |
18331 | { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_CANADIAN", (long) wxLANGUAGE_FRENCH_CANADIAN, 0, 0, 0}, | |
18332 | { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_LUXEMBOURG", (long) wxLANGUAGE_FRENCH_LUXEMBOURG, 0, 0, 0}, | |
18333 | { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_MONACO", (long) wxLANGUAGE_FRENCH_MONACO, 0, 0, 0}, | |
18334 | { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_SWISS", (long) wxLANGUAGE_FRENCH_SWISS, 0, 0, 0}, | |
18335 | { SWIG_PY_INT, (char *)"LANGUAGE_FRISIAN", (long) wxLANGUAGE_FRISIAN, 0, 0, 0}, | |
18336 | { SWIG_PY_INT, (char *)"LANGUAGE_GALICIAN", (long) wxLANGUAGE_GALICIAN, 0, 0, 0}, | |
18337 | { SWIG_PY_INT, (char *)"LANGUAGE_GEORGIAN", (long) wxLANGUAGE_GEORGIAN, 0, 0, 0}, | |
18338 | { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN", (long) wxLANGUAGE_GERMAN, 0, 0, 0}, | |
18339 | { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_AUSTRIAN", (long) wxLANGUAGE_GERMAN_AUSTRIAN, 0, 0, 0}, | |
18340 | { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_BELGIUM", (long) wxLANGUAGE_GERMAN_BELGIUM, 0, 0, 0}, | |
18341 | { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_LIECHTENSTEIN", (long) wxLANGUAGE_GERMAN_LIECHTENSTEIN, 0, 0, 0}, | |
18342 | { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_LUXEMBOURG", (long) wxLANGUAGE_GERMAN_LUXEMBOURG, 0, 0, 0}, | |
18343 | { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_SWISS", (long) wxLANGUAGE_GERMAN_SWISS, 0, 0, 0}, | |
18344 | { SWIG_PY_INT, (char *)"LANGUAGE_GREEK", (long) wxLANGUAGE_GREEK, 0, 0, 0}, | |
18345 | { SWIG_PY_INT, (char *)"LANGUAGE_GREENLANDIC", (long) wxLANGUAGE_GREENLANDIC, 0, 0, 0}, | |
18346 | { SWIG_PY_INT, (char *)"LANGUAGE_GUARANI", (long) wxLANGUAGE_GUARANI, 0, 0, 0}, | |
18347 | { SWIG_PY_INT, (char *)"LANGUAGE_GUJARATI", (long) wxLANGUAGE_GUJARATI, 0, 0, 0}, | |
18348 | { SWIG_PY_INT, (char *)"LANGUAGE_HAUSA", (long) wxLANGUAGE_HAUSA, 0, 0, 0}, | |
18349 | { SWIG_PY_INT, (char *)"LANGUAGE_HEBREW", (long) wxLANGUAGE_HEBREW, 0, 0, 0}, | |
18350 | { SWIG_PY_INT, (char *)"LANGUAGE_HINDI", (long) wxLANGUAGE_HINDI, 0, 0, 0}, | |
18351 | { SWIG_PY_INT, (char *)"LANGUAGE_HUNGARIAN", (long) wxLANGUAGE_HUNGARIAN, 0, 0, 0}, | |
18352 | { SWIG_PY_INT, (char *)"LANGUAGE_ICELANDIC", (long) wxLANGUAGE_ICELANDIC, 0, 0, 0}, | |
18353 | { SWIG_PY_INT, (char *)"LANGUAGE_INDONESIAN", (long) wxLANGUAGE_INDONESIAN, 0, 0, 0}, | |
18354 | { SWIG_PY_INT, (char *)"LANGUAGE_INTERLINGUA", (long) wxLANGUAGE_INTERLINGUA, 0, 0, 0}, | |
18355 | { SWIG_PY_INT, (char *)"LANGUAGE_INTERLINGUE", (long) wxLANGUAGE_INTERLINGUE, 0, 0, 0}, | |
18356 | { SWIG_PY_INT, (char *)"LANGUAGE_INUKTITUT", (long) wxLANGUAGE_INUKTITUT, 0, 0, 0}, | |
18357 | { SWIG_PY_INT, (char *)"LANGUAGE_INUPIAK", (long) wxLANGUAGE_INUPIAK, 0, 0, 0}, | |
18358 | { SWIG_PY_INT, (char *)"LANGUAGE_IRISH", (long) wxLANGUAGE_IRISH, 0, 0, 0}, | |
18359 | { SWIG_PY_INT, (char *)"LANGUAGE_ITALIAN", (long) wxLANGUAGE_ITALIAN, 0, 0, 0}, | |
18360 | { SWIG_PY_INT, (char *)"LANGUAGE_ITALIAN_SWISS", (long) wxLANGUAGE_ITALIAN_SWISS, 0, 0, 0}, | |
18361 | { SWIG_PY_INT, (char *)"LANGUAGE_JAPANESE", (long) wxLANGUAGE_JAPANESE, 0, 0, 0}, | |
18362 | { SWIG_PY_INT, (char *)"LANGUAGE_JAVANESE", (long) wxLANGUAGE_JAVANESE, 0, 0, 0}, | |
18363 | { SWIG_PY_INT, (char *)"LANGUAGE_KANNADA", (long) wxLANGUAGE_KANNADA, 0, 0, 0}, | |
18364 | { SWIG_PY_INT, (char *)"LANGUAGE_KASHMIRI", (long) wxLANGUAGE_KASHMIRI, 0, 0, 0}, | |
18365 | { SWIG_PY_INT, (char *)"LANGUAGE_KASHMIRI_INDIA", (long) wxLANGUAGE_KASHMIRI_INDIA, 0, 0, 0}, | |
18366 | { SWIG_PY_INT, (char *)"LANGUAGE_KAZAKH", (long) wxLANGUAGE_KAZAKH, 0, 0, 0}, | |
18367 | { SWIG_PY_INT, (char *)"LANGUAGE_KERNEWEK", (long) wxLANGUAGE_KERNEWEK, 0, 0, 0}, | |
18368 | { SWIG_PY_INT, (char *)"LANGUAGE_KINYARWANDA", (long) wxLANGUAGE_KINYARWANDA, 0, 0, 0}, | |
18369 | { SWIG_PY_INT, (char *)"LANGUAGE_KIRGHIZ", (long) wxLANGUAGE_KIRGHIZ, 0, 0, 0}, | |
18370 | { SWIG_PY_INT, (char *)"LANGUAGE_KIRUNDI", (long) wxLANGUAGE_KIRUNDI, 0, 0, 0}, | |
18371 | { SWIG_PY_INT, (char *)"LANGUAGE_KONKANI", (long) wxLANGUAGE_KONKANI, 0, 0, 0}, | |
18372 | { SWIG_PY_INT, (char *)"LANGUAGE_KOREAN", (long) wxLANGUAGE_KOREAN, 0, 0, 0}, | |
18373 | { SWIG_PY_INT, (char *)"LANGUAGE_KURDISH", (long) wxLANGUAGE_KURDISH, 0, 0, 0}, | |
18374 | { SWIG_PY_INT, (char *)"LANGUAGE_LAOTHIAN", (long) wxLANGUAGE_LAOTHIAN, 0, 0, 0}, | |
18375 | { SWIG_PY_INT, (char *)"LANGUAGE_LATIN", (long) wxLANGUAGE_LATIN, 0, 0, 0}, | |
18376 | { SWIG_PY_INT, (char *)"LANGUAGE_LATVIAN", (long) wxLANGUAGE_LATVIAN, 0, 0, 0}, | |
18377 | { SWIG_PY_INT, (char *)"LANGUAGE_LINGALA", (long) wxLANGUAGE_LINGALA, 0, 0, 0}, | |
18378 | { SWIG_PY_INT, (char *)"LANGUAGE_LITHUANIAN", (long) wxLANGUAGE_LITHUANIAN, 0, 0, 0}, | |
18379 | { SWIG_PY_INT, (char *)"LANGUAGE_MACEDONIAN", (long) wxLANGUAGE_MACEDONIAN, 0, 0, 0}, | |
18380 | { SWIG_PY_INT, (char *)"LANGUAGE_MALAGASY", (long) wxLANGUAGE_MALAGASY, 0, 0, 0}, | |
18381 | { SWIG_PY_INT, (char *)"LANGUAGE_MALAY", (long) wxLANGUAGE_MALAY, 0, 0, 0}, | |
18382 | { SWIG_PY_INT, (char *)"LANGUAGE_MALAYALAM", (long) wxLANGUAGE_MALAYALAM, 0, 0, 0}, | |
18383 | { SWIG_PY_INT, (char *)"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", (long) wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM, 0, 0, 0}, | |
18384 | { SWIG_PY_INT, (char *)"LANGUAGE_MALAY_MALAYSIA", (long) wxLANGUAGE_MALAY_MALAYSIA, 0, 0, 0}, | |
18385 | { SWIG_PY_INT, (char *)"LANGUAGE_MALTESE", (long) wxLANGUAGE_MALTESE, 0, 0, 0}, | |
18386 | { SWIG_PY_INT, (char *)"LANGUAGE_MANIPURI", (long) wxLANGUAGE_MANIPURI, 0, 0, 0}, | |
18387 | { SWIG_PY_INT, (char *)"LANGUAGE_MAORI", (long) wxLANGUAGE_MAORI, 0, 0, 0}, | |
18388 | { SWIG_PY_INT, (char *)"LANGUAGE_MARATHI", (long) wxLANGUAGE_MARATHI, 0, 0, 0}, | |
18389 | { SWIG_PY_INT, (char *)"LANGUAGE_MOLDAVIAN", (long) wxLANGUAGE_MOLDAVIAN, 0, 0, 0}, | |
18390 | { SWIG_PY_INT, (char *)"LANGUAGE_MONGOLIAN", (long) wxLANGUAGE_MONGOLIAN, 0, 0, 0}, | |
18391 | { SWIG_PY_INT, (char *)"LANGUAGE_NAURU", (long) wxLANGUAGE_NAURU, 0, 0, 0}, | |
18392 | { SWIG_PY_INT, (char *)"LANGUAGE_NEPALI", (long) wxLANGUAGE_NEPALI, 0, 0, 0}, | |
18393 | { SWIG_PY_INT, (char *)"LANGUAGE_NEPALI_INDIA", (long) wxLANGUAGE_NEPALI_INDIA, 0, 0, 0}, | |
18394 | { SWIG_PY_INT, (char *)"LANGUAGE_NORWEGIAN_BOKMAL", (long) wxLANGUAGE_NORWEGIAN_BOKMAL, 0, 0, 0}, | |
18395 | { SWIG_PY_INT, (char *)"LANGUAGE_NORWEGIAN_NYNORSK", (long) wxLANGUAGE_NORWEGIAN_NYNORSK, 0, 0, 0}, | |
18396 | { SWIG_PY_INT, (char *)"LANGUAGE_OCCITAN", (long) wxLANGUAGE_OCCITAN, 0, 0, 0}, | |
18397 | { SWIG_PY_INT, (char *)"LANGUAGE_ORIYA", (long) wxLANGUAGE_ORIYA, 0, 0, 0}, | |
18398 | { SWIG_PY_INT, (char *)"LANGUAGE_OROMO", (long) wxLANGUAGE_OROMO, 0, 0, 0}, | |
18399 | { SWIG_PY_INT, (char *)"LANGUAGE_PASHTO", (long) wxLANGUAGE_PASHTO, 0, 0, 0}, | |
18400 | { SWIG_PY_INT, (char *)"LANGUAGE_POLISH", (long) wxLANGUAGE_POLISH, 0, 0, 0}, | |
18401 | { SWIG_PY_INT, (char *)"LANGUAGE_PORTUGUESE", (long) wxLANGUAGE_PORTUGUESE, 0, 0, 0}, | |
18402 | { SWIG_PY_INT, (char *)"LANGUAGE_PORTUGUESE_BRAZILIAN", (long) wxLANGUAGE_PORTUGUESE_BRAZILIAN, 0, 0, 0}, | |
18403 | { SWIG_PY_INT, (char *)"LANGUAGE_PUNJABI", (long) wxLANGUAGE_PUNJABI, 0, 0, 0}, | |
18404 | { SWIG_PY_INT, (char *)"LANGUAGE_QUECHUA", (long) wxLANGUAGE_QUECHUA, 0, 0, 0}, | |
18405 | { SWIG_PY_INT, (char *)"LANGUAGE_RHAETO_ROMANCE", (long) wxLANGUAGE_RHAETO_ROMANCE, 0, 0, 0}, | |
18406 | { SWIG_PY_INT, (char *)"LANGUAGE_ROMANIAN", (long) wxLANGUAGE_ROMANIAN, 0, 0, 0}, | |
18407 | { SWIG_PY_INT, (char *)"LANGUAGE_RUSSIAN", (long) wxLANGUAGE_RUSSIAN, 0, 0, 0}, | |
18408 | { SWIG_PY_INT, (char *)"LANGUAGE_RUSSIAN_UKRAINE", (long) wxLANGUAGE_RUSSIAN_UKRAINE, 0, 0, 0}, | |
18409 | { SWIG_PY_INT, (char *)"LANGUAGE_SAMOAN", (long) wxLANGUAGE_SAMOAN, 0, 0, 0}, | |
18410 | { SWIG_PY_INT, (char *)"LANGUAGE_SANGHO", (long) wxLANGUAGE_SANGHO, 0, 0, 0}, | |
18411 | { SWIG_PY_INT, (char *)"LANGUAGE_SANSKRIT", (long) wxLANGUAGE_SANSKRIT, 0, 0, 0}, | |
18412 | { SWIG_PY_INT, (char *)"LANGUAGE_SCOTS_GAELIC", (long) wxLANGUAGE_SCOTS_GAELIC, 0, 0, 0}, | |
18413 | { SWIG_PY_INT, (char *)"LANGUAGE_SERBIAN", (long) wxLANGUAGE_SERBIAN, 0, 0, 0}, | |
18414 | { SWIG_PY_INT, (char *)"LANGUAGE_SERBIAN_CYRILLIC", (long) wxLANGUAGE_SERBIAN_CYRILLIC, 0, 0, 0}, | |
18415 | { SWIG_PY_INT, (char *)"LANGUAGE_SERBIAN_LATIN", (long) wxLANGUAGE_SERBIAN_LATIN, 0, 0, 0}, | |
18416 | { SWIG_PY_INT, (char *)"LANGUAGE_SERBO_CROATIAN", (long) wxLANGUAGE_SERBO_CROATIAN, 0, 0, 0}, | |
18417 | { SWIG_PY_INT, (char *)"LANGUAGE_SESOTHO", (long) wxLANGUAGE_SESOTHO, 0, 0, 0}, | |
18418 | { SWIG_PY_INT, (char *)"LANGUAGE_SETSWANA", (long) wxLANGUAGE_SETSWANA, 0, 0, 0}, | |
18419 | { SWIG_PY_INT, (char *)"LANGUAGE_SHONA", (long) wxLANGUAGE_SHONA, 0, 0, 0}, | |
18420 | { SWIG_PY_INT, (char *)"LANGUAGE_SINDHI", (long) wxLANGUAGE_SINDHI, 0, 0, 0}, | |
18421 | { SWIG_PY_INT, (char *)"LANGUAGE_SINHALESE", (long) wxLANGUAGE_SINHALESE, 0, 0, 0}, | |
18422 | { SWIG_PY_INT, (char *)"LANGUAGE_SISWATI", (long) wxLANGUAGE_SISWATI, 0, 0, 0}, | |
18423 | { SWIG_PY_INT, (char *)"LANGUAGE_SLOVAK", (long) wxLANGUAGE_SLOVAK, 0, 0, 0}, | |
18424 | { SWIG_PY_INT, (char *)"LANGUAGE_SLOVENIAN", (long) wxLANGUAGE_SLOVENIAN, 0, 0, 0}, | |
18425 | { SWIG_PY_INT, (char *)"LANGUAGE_SOMALI", (long) wxLANGUAGE_SOMALI, 0, 0, 0}, | |
18426 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH", (long) wxLANGUAGE_SPANISH, 0, 0, 0}, | |
18427 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_ARGENTINA", (long) wxLANGUAGE_SPANISH_ARGENTINA, 0, 0, 0}, | |
18428 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_BOLIVIA", (long) wxLANGUAGE_SPANISH_BOLIVIA, 0, 0, 0}, | |
18429 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_CHILE", (long) wxLANGUAGE_SPANISH_CHILE, 0, 0, 0}, | |
18430 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_COLOMBIA", (long) wxLANGUAGE_SPANISH_COLOMBIA, 0, 0, 0}, | |
18431 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_COSTA_RICA", (long) wxLANGUAGE_SPANISH_COSTA_RICA, 0, 0, 0}, | |
18432 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", (long) wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC, 0, 0, 0}, | |
18433 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_ECUADOR", (long) wxLANGUAGE_SPANISH_ECUADOR, 0, 0, 0}, | |
18434 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_EL_SALVADOR", (long) wxLANGUAGE_SPANISH_EL_SALVADOR, 0, 0, 0}, | |
18435 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_GUATEMALA", (long) wxLANGUAGE_SPANISH_GUATEMALA, 0, 0, 0}, | |
18436 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_HONDURAS", (long) wxLANGUAGE_SPANISH_HONDURAS, 0, 0, 0}, | |
18437 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_MEXICAN", (long) wxLANGUAGE_SPANISH_MEXICAN, 0, 0, 0}, | |
18438 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_MODERN", (long) wxLANGUAGE_SPANISH_MODERN, 0, 0, 0}, | |
18439 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_NICARAGUA", (long) wxLANGUAGE_SPANISH_NICARAGUA, 0, 0, 0}, | |
18440 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PANAMA", (long) wxLANGUAGE_SPANISH_PANAMA, 0, 0, 0}, | |
18441 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PARAGUAY", (long) wxLANGUAGE_SPANISH_PARAGUAY, 0, 0, 0}, | |
18442 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PERU", (long) wxLANGUAGE_SPANISH_PERU, 0, 0, 0}, | |
18443 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PUERTO_RICO", (long) wxLANGUAGE_SPANISH_PUERTO_RICO, 0, 0, 0}, | |
18444 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_URUGUAY", (long) wxLANGUAGE_SPANISH_URUGUAY, 0, 0, 0}, | |
18445 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_US", (long) wxLANGUAGE_SPANISH_US, 0, 0, 0}, | |
18446 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_VENEZUELA", (long) wxLANGUAGE_SPANISH_VENEZUELA, 0, 0, 0}, | |
18447 | { SWIG_PY_INT, (char *)"LANGUAGE_SUNDANESE", (long) wxLANGUAGE_SUNDANESE, 0, 0, 0}, | |
18448 | { SWIG_PY_INT, (char *)"LANGUAGE_SWAHILI", (long) wxLANGUAGE_SWAHILI, 0, 0, 0}, | |
18449 | { SWIG_PY_INT, (char *)"LANGUAGE_SWEDISH", (long) wxLANGUAGE_SWEDISH, 0, 0, 0}, | |
18450 | { SWIG_PY_INT, (char *)"LANGUAGE_SWEDISH_FINLAND", (long) wxLANGUAGE_SWEDISH_FINLAND, 0, 0, 0}, | |
18451 | { SWIG_PY_INT, (char *)"LANGUAGE_TAGALOG", (long) wxLANGUAGE_TAGALOG, 0, 0, 0}, | |
18452 | { SWIG_PY_INT, (char *)"LANGUAGE_TAJIK", (long) wxLANGUAGE_TAJIK, 0, 0, 0}, | |
18453 | { SWIG_PY_INT, (char *)"LANGUAGE_TAMIL", (long) wxLANGUAGE_TAMIL, 0, 0, 0}, | |
18454 | { SWIG_PY_INT, (char *)"LANGUAGE_TATAR", (long) wxLANGUAGE_TATAR, 0, 0, 0}, | |
18455 | { SWIG_PY_INT, (char *)"LANGUAGE_TELUGU", (long) wxLANGUAGE_TELUGU, 0, 0, 0}, | |
18456 | { SWIG_PY_INT, (char *)"LANGUAGE_THAI", (long) wxLANGUAGE_THAI, 0, 0, 0}, | |
18457 | { SWIG_PY_INT, (char *)"LANGUAGE_TIBETAN", (long) wxLANGUAGE_TIBETAN, 0, 0, 0}, | |
18458 | { SWIG_PY_INT, (char *)"LANGUAGE_TIGRINYA", (long) wxLANGUAGE_TIGRINYA, 0, 0, 0}, | |
18459 | { SWIG_PY_INT, (char *)"LANGUAGE_TONGA", (long) wxLANGUAGE_TONGA, 0, 0, 0}, | |
18460 | { SWIG_PY_INT, (char *)"LANGUAGE_TSONGA", (long) wxLANGUAGE_TSONGA, 0, 0, 0}, | |
18461 | { SWIG_PY_INT, (char *)"LANGUAGE_TURKISH", (long) wxLANGUAGE_TURKISH, 0, 0, 0}, | |
18462 | { SWIG_PY_INT, (char *)"LANGUAGE_TURKMEN", (long) wxLANGUAGE_TURKMEN, 0, 0, 0}, | |
18463 | { SWIG_PY_INT, (char *)"LANGUAGE_TWI", (long) wxLANGUAGE_TWI, 0, 0, 0}, | |
18464 | { SWIG_PY_INT, (char *)"LANGUAGE_UIGHUR", (long) wxLANGUAGE_UIGHUR, 0, 0, 0}, | |
18465 | { SWIG_PY_INT, (char *)"LANGUAGE_UKRAINIAN", (long) wxLANGUAGE_UKRAINIAN, 0, 0, 0}, | |
18466 | { SWIG_PY_INT, (char *)"LANGUAGE_URDU", (long) wxLANGUAGE_URDU, 0, 0, 0}, | |
18467 | { SWIG_PY_INT, (char *)"LANGUAGE_URDU_INDIA", (long) wxLANGUAGE_URDU_INDIA, 0, 0, 0}, | |
18468 | { SWIG_PY_INT, (char *)"LANGUAGE_URDU_PAKISTAN", (long) wxLANGUAGE_URDU_PAKISTAN, 0, 0, 0}, | |
18469 | { SWIG_PY_INT, (char *)"LANGUAGE_UZBEK", (long) wxLANGUAGE_UZBEK, 0, 0, 0}, | |
18470 | { SWIG_PY_INT, (char *)"LANGUAGE_UZBEK_CYRILLIC", (long) wxLANGUAGE_UZBEK_CYRILLIC, 0, 0, 0}, | |
18471 | { SWIG_PY_INT, (char *)"LANGUAGE_UZBEK_LATIN", (long) wxLANGUAGE_UZBEK_LATIN, 0, 0, 0}, | |
18472 | { SWIG_PY_INT, (char *)"LANGUAGE_VIETNAMESE", (long) wxLANGUAGE_VIETNAMESE, 0, 0, 0}, | |
18473 | { SWIG_PY_INT, (char *)"LANGUAGE_VOLAPUK", (long) wxLANGUAGE_VOLAPUK, 0, 0, 0}, | |
18474 | { SWIG_PY_INT, (char *)"LANGUAGE_WELSH", (long) wxLANGUAGE_WELSH, 0, 0, 0}, | |
18475 | { SWIG_PY_INT, (char *)"LANGUAGE_WOLOF", (long) wxLANGUAGE_WOLOF, 0, 0, 0}, | |
18476 | { SWIG_PY_INT, (char *)"LANGUAGE_XHOSA", (long) wxLANGUAGE_XHOSA, 0, 0, 0}, | |
18477 | { SWIG_PY_INT, (char *)"LANGUAGE_YIDDISH", (long) wxLANGUAGE_YIDDISH, 0, 0, 0}, | |
18478 | { SWIG_PY_INT, (char *)"LANGUAGE_YORUBA", (long) wxLANGUAGE_YORUBA, 0, 0, 0}, | |
18479 | { SWIG_PY_INT, (char *)"LANGUAGE_ZHUANG", (long) wxLANGUAGE_ZHUANG, 0, 0, 0}, | |
18480 | { SWIG_PY_INT, (char *)"LANGUAGE_ZULU", (long) wxLANGUAGE_ZULU, 0, 0, 0}, | |
18481 | { SWIG_PY_INT, (char *)"LANGUAGE_USER_DEFINED", (long) wxLANGUAGE_USER_DEFINED, 0, 0, 0}, | |
18482 | { SWIG_PY_INT, (char *)"LOCALE_CAT_NUMBER", (long) wxLOCALE_CAT_NUMBER, 0, 0, 0}, | |
18483 | { SWIG_PY_INT, (char *)"LOCALE_CAT_DATE", (long) wxLOCALE_CAT_DATE, 0, 0, 0}, | |
18484 | { SWIG_PY_INT, (char *)"LOCALE_CAT_MONEY", (long) wxLOCALE_CAT_MONEY, 0, 0, 0}, | |
18485 | { SWIG_PY_INT, (char *)"LOCALE_CAT_MAX", (long) wxLOCALE_CAT_MAX, 0, 0, 0}, | |
18486 | { SWIG_PY_INT, (char *)"LOCALE_THOUSANDS_SEP", (long) wxLOCALE_THOUSANDS_SEP, 0, 0, 0}, | |
18487 | { SWIG_PY_INT, (char *)"LOCALE_DECIMAL_POINT", (long) wxLOCALE_DECIMAL_POINT, 0, 0, 0}, | |
18488 | { SWIG_PY_INT, (char *)"LOCALE_LOAD_DEFAULT", (long) wxLOCALE_LOAD_DEFAULT, 0, 0, 0}, | |
18489 | { SWIG_PY_INT, (char *)"LOCALE_CONV_ENCODING", (long) wxLOCALE_CONV_ENCODING, 0, 0, 0}, | |
18490 | { SWIG_PY_INT, (char *)"CONVERT_STRICT", (long) wxCONVERT_STRICT, 0, 0, 0}, | |
18491 | { SWIG_PY_INT, (char *)"CONVERT_SUBSTITUTE", (long) wxCONVERT_SUBSTITUTE, 0, 0, 0}, | |
18492 | { SWIG_PY_INT, (char *)"PLATFORM_CURRENT", (long) wxPLATFORM_CURRENT, 0, 0, 0}, | |
18493 | { SWIG_PY_INT, (char *)"PLATFORM_UNIX", (long) wxPLATFORM_UNIX, 0, 0, 0}, | |
18494 | { SWIG_PY_INT, (char *)"PLATFORM_WINDOWS", (long) wxPLATFORM_WINDOWS, 0, 0, 0}, | |
18495 | { SWIG_PY_INT, (char *)"PLATFORM_OS2", (long) wxPLATFORM_OS2, 0, 0, 0}, | |
18496 | { SWIG_PY_INT, (char *)"PLATFORM_MAC", (long) wxPLATFORM_MAC, 0, 0, 0}, | |
18497 | { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_NORMAL", (long) wxIMAGELIST_DRAW_NORMAL, 0, 0, 0}, | |
18498 | { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_TRANSPARENT", (long) wxIMAGELIST_DRAW_TRANSPARENT, 0, 0, 0}, | |
18499 | { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_SELECTED", (long) wxIMAGELIST_DRAW_SELECTED, 0, 0, 0}, | |
18500 | { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_FOCUSED", (long) wxIMAGELIST_DRAW_FOCUSED, 0, 0, 0}, | |
18501 | { SWIG_PY_INT, (char *)"IMAGE_LIST_NORMAL", (long) wxIMAGE_LIST_NORMAL, 0, 0, 0}, | |
18502 | { SWIG_PY_INT, (char *)"IMAGE_LIST_SMALL", (long) wxIMAGE_LIST_SMALL, 0, 0, 0}, | |
18503 | { SWIG_PY_INT, (char *)"IMAGE_LIST_STATE", (long) wxIMAGE_LIST_STATE, 0, 0, 0}, | |
18504 | {0}}; | |
18505 | ||
18506 | #ifdef __cplusplus | |
18507 | } | |
18508 | #endif | |
18509 | ||
18510 | #ifdef __cplusplus | |
18511 | extern "C" | |
18512 | #endif | |
18513 | SWIGEXPORT(void) SWIG_init(void) { | |
18514 | static PyObject *SWIG_globals = 0; | |
18515 | static int typeinit = 0; | |
18516 | PyObject *m, *d; | |
18517 | int i; | |
18518 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
18519 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
18520 | d = PyModule_GetDict(m); | |
18521 | ||
18522 | if (!typeinit) { | |
18523 | for (i = 0; swig_types_initial[i]; i++) { | |
18524 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
18525 | } | |
18526 | typeinit = 1; | |
18527 | } | |
18528 | SWIG_InstallConstants(d,swig_const_table); | |
18529 | ||
18530 | ||
18531 | wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator"); | |
18532 | ||
18533 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
18534 | SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set); | |
18535 | SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set); | |
18536 | SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set); | |
18537 | SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set); | |
18538 | SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set); | |
18539 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set); | |
18540 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set); | |
18541 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set); | |
18542 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set); | |
18543 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set); | |
18544 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set); | |
18545 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set); | |
18546 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set); | |
18547 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set); | |
18548 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set); | |
18549 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set); | |
18550 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set); | |
18551 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set); | |
18552 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set); | |
18553 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set); | |
18554 | SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set); | |
18555 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set); | |
18556 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set); | |
18557 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set); | |
18558 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set); | |
18559 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set); | |
18560 | SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set); | |
18561 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set); | |
18562 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set); | |
18563 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set); | |
18564 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set); | |
18565 | SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set); | |
18566 | SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set); | |
18567 | SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set); | |
18568 | SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set); | |
18569 | SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set); | |
18570 | SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set); | |
18571 | SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set); | |
18572 | SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set); | |
18573 | SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set); | |
18574 | SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set); | |
18575 | SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set); | |
18576 | SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set); | |
18577 | SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set); | |
18578 | SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set); | |
18579 | SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set); | |
18580 | ||
18581 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); | |
18582 | ||
18583 | } | |
18584 |