]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/_gdi_wrap.cpp
Docview and IDE patch from Morag Hua with fix for bug #1217890
[wxWidgets.git] / wxPython / src / gtk / _gdi_wrap.cpp
CommitLineData
d14a1e28
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
093d3ff1 3 * Version 1.3.24
d14a1e28
RD
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
d14a1e28
RD
12
13#ifdef __cplusplus
14template<class T> class SwigValueWrapper {
15 T *tt;
16public:
17 SwigValueWrapper() : tt(0) { }
18 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
19 SwigValueWrapper(const T& t) : tt(new T(t)) { }
20 ~SwigValueWrapper() { delete tt; }
21 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
22 operator T&() const { return *tt; }
23 T *operator&() { return tt; }
24private:
25 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
093d3ff1 26};
d14a1e28
RD
27#endif
28
29
093d3ff1
RD
30#ifndef SWIG_TEMPLATE_DISAMBIGUATOR
31# if defined(__SUNPRO_CC)
32# define SWIG_TEMPLATE_DISAMBIGUATOR template
33# else
34# define SWIG_TEMPLATE_DISAMBIGUATOR
35# endif
36#endif
d14a1e28 37
c9c7117a 38
093d3ff1 39#include <Python.h>
d14a1e28
RD
40
41/***********************************************************************
093d3ff1 42 * swigrun.swg
d14a1e28 43 *
093d3ff1
RD
44 * This file contains generic CAPI SWIG runtime support for pointer
45 * type checking.
d14a1e28
RD
46 *
47 ************************************************************************/
48
093d3ff1
RD
49/* This should only be incremented when either the layout of swig_type_info changes,
50 or for whatever reason, the runtime changes incompatibly */
51#define SWIG_RUNTIME_VERSION "1"
d14a1e28 52
093d3ff1
RD
53/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
54#ifdef SWIG_TYPE_TABLE
55#define SWIG_QUOTE_STRING(x) #x
56#define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
57#define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
d14a1e28 58#else
093d3ff1 59#define SWIG_TYPE_TABLE_NAME
d14a1e28
RD
60#endif
61
093d3ff1
RD
62#include <string.h>
63
64#ifndef SWIGINLINE
65#if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
66# define SWIGINLINE inline
d14a1e28 67#else
093d3ff1
RD
68# define SWIGINLINE
69#endif
70#endif
71
72/*
73 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
74 creating a static or dynamic library from the swig runtime code.
75 In 99.9% of the cases, swig just needs to declare them as 'static'.
76
77 But only do this if is strictly necessary, ie, if you have problems
78 with your compiler or so.
79*/
80#ifndef SWIGRUNTIME
81#define SWIGRUNTIME static
82#endif
83#ifndef SWIGRUNTIMEINLINE
84#define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
d14a1e28
RD
85#endif
86
d14a1e28
RD
87#ifdef __cplusplus
88extern "C" {
89#endif
90
91typedef void *(*swig_converter_func)(void *);
92typedef struct swig_type_info *(*swig_dycast_func)(void **);
93
94typedef struct swig_type_info {
cc6dd355 95 const char *name;
d14a1e28
RD
96 swig_converter_func converter;
97 const char *str;
cc6dd355 98 void *clientdata;
d14a1e28
RD
99 swig_dycast_func dcast;
100 struct swig_type_info *next;
101 struct swig_type_info *prev;
102} swig_type_info;
103
093d3ff1
RD
104/*
105 Compare two type names skipping the space characters, therefore
106 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
107
108 Return 0 when the two name types are equivalent, as in
109 strncmp, but skipping ' '.
110*/
111SWIGRUNTIME int
112SWIG_TypeNameComp(const char *f1, const char *l1,
113 const char *f2, const char *l2) {
114 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
115 while ((*f1 == ' ') && (f1 != l1)) ++f1;
116 while ((*f2 == ' ') && (f2 != l2)) ++f2;
117 if (*f1 != *f2) return *f1 - *f2;
118 }
119 return (l1 - f1) - (l2 - f2);
120}
121
122/*
123 Check type equivalence in a name list like <name1>|<name2>|...
124*/
125SWIGRUNTIME int
126SWIG_TypeEquiv(const char *nb, const char *tb) {
127 int equiv = 0;
128 const char* te = tb + strlen(tb);
129 const char* ne = nb;
130 while (!equiv && *ne) {
131 for (nb = ne; *ne; ++ne) {
132 if (*ne == '|') break;
133 }
134 equiv = SWIG_TypeNameComp(nb, ne, tb, te) == 0;
135 if (*ne) ++ne;
136 }
137 return equiv;
138}
139
140/*
141 Register a type mapping with the type-checking
142*/
143SWIGRUNTIME swig_type_info *
144SWIG_TypeRegisterTL(swig_type_info **tl, swig_type_info *ti) {
145 swig_type_info *tc, *head, *ret, *next;
146 /* Check to see if this type has already been registered */
147 tc = *tl;
148 while (tc) {
149 /* check simple type equivalence */
150 int typeequiv = (strcmp(tc->name, ti->name) == 0);
151 /* check full type equivalence, resolving typedefs */
152 if (!typeequiv) {
153 /* only if tc is not a typedef (no '|' on it) */
154 if (tc->str && ti->str && !strstr(tc->str,"|")) {
155 typeequiv = SWIG_TypeEquiv(ti->str,tc->str);
156 }
157 }
158 if (typeequiv) {
159 /* Already exists in the table. Just add additional types to the list */
160 if (ti->clientdata) tc->clientdata = ti->clientdata;
161 head = tc;
162 next = tc->next;
163 goto l1;
164 }
165 tc = tc->prev;
166 }
167 head = ti;
168 next = 0;
169
170 /* Place in list */
171 ti->prev = *tl;
172 *tl = ti;
173
174 /* Build linked lists */
175 l1:
176 ret = head;
177 tc = ti + 1;
178 /* Patch up the rest of the links */
179 while (tc->name) {
180 head->next = tc;
181 tc->prev = head;
182 head = tc;
183 tc++;
184 }
185 if (next) next->prev = head;
186 head->next = next;
187
188 return ret;
189}
190
191/*
192 Check the typename
193*/
194SWIGRUNTIME swig_type_info *
195SWIG_TypeCheck(const char *c, swig_type_info *ty) {
196 swig_type_info *s;
197 if (!ty) return 0; /* Void pointer */
198 s = ty->next; /* First element always just a name */
199 do {
200 if (strcmp(s->name,c) == 0) {
201 if (s == ty->next) return s;
202 /* Move s to the top of the linked list */
203 s->prev->next = s->next;
204 if (s->next) {
205 s->next->prev = s->prev;
206 }
207 /* Insert s as second element in the list */
208 s->next = ty->next;
209 if (ty->next) ty->next->prev = s;
210 ty->next = s;
211 s->prev = ty;
212 return s;
213 }
214 s = s->next;
215 } while (s && (s != ty->next));
216 return 0;
217}
218
219/*
220 Cast a pointer up an inheritance hierarchy
221*/
222SWIGRUNTIMEINLINE void *
223SWIG_TypeCast(swig_type_info *ty, void *ptr) {
224 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
225}
226
227/*
228 Dynamic pointer casting. Down an inheritance hierarchy
229*/
230SWIGRUNTIME swig_type_info *
231SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
232 swig_type_info *lastty = ty;
233 if (!ty || !ty->dcast) return ty;
234 while (ty && (ty->dcast)) {
235 ty = (*ty->dcast)(ptr);
236 if (ty) lastty = ty;
237 }
238 return lastty;
239}
240
241/*
242 Return the name associated with this type
243*/
244SWIGRUNTIMEINLINE const char *
245SWIG_TypeName(const swig_type_info *ty) {
246 return ty->name;
247}
248
249/*
250 Return the pretty name associated with this type,
251 that is an unmangled type name in a form presentable to the user.
252*/
253SWIGRUNTIME const char *
254SWIG_TypePrettyName(const swig_type_info *type) {
255 /* The "str" field contains the equivalent pretty names of the
256 type, separated by vertical-bar characters. We choose
257 to print the last name, as it is often (?) the most
258 specific. */
259 if (type->str != NULL) {
260 const char *last_name = type->str;
261 const char *s;
262 for (s = type->str; *s; s++)
263 if (*s == '|') last_name = s+1;
264 return last_name;
265 }
266 else
267 return type->name;
268}
269
270/*
271 Search for a swig_type_info structure
272*/
273SWIGRUNTIME swig_type_info *
274SWIG_TypeQueryTL(swig_type_info *tl, const char *name) {
275 swig_type_info *ty = tl;
276 while (ty) {
277 if (ty->str && (SWIG_TypeEquiv(ty->str,name))) return ty;
278 if (ty->name && (strcmp(name,ty->name) == 0)) return ty;
279 ty = ty->prev;
280 }
281 return 0;
282}
283
284/*
285 Set the clientdata field for a type
286*/
287SWIGRUNTIME void
288SWIG_TypeClientDataTL(swig_type_info *tl, swig_type_info *ti, void *clientdata) {
289 swig_type_info *tc, *equiv;
290 if (ti->clientdata) return;
291 /* if (ti->clientdata == clientdata) return; */
292 ti->clientdata = clientdata;
293 equiv = ti->next;
294 while (equiv) {
295 if (!equiv->converter) {
296 tc = tl;
297 while (tc) {
298 if ((strcmp(tc->name, equiv->name) == 0))
299 SWIG_TypeClientDataTL(tl,tc,clientdata);
300 tc = tc->prev;
301 }
302 }
303 equiv = equiv->next;
304 }
305}
306
307/*
308 Pack binary data into a string
309*/
310SWIGRUNTIME char *
311SWIG_PackData(char *c, void *ptr, size_t sz) {
312 static char hex[17] = "0123456789abcdef";
313 unsigned char *u = (unsigned char *) ptr;
314 const unsigned char *eu = u + sz;
315 register unsigned char uu;
316 for (; u != eu; ++u) {
317 uu = *u;
318 *(c++) = hex[(uu & 0xf0) >> 4];
319 *(c++) = hex[uu & 0xf];
320 }
321 return c;
322}
323
324/*
325 Unpack binary data from a string
326*/
327SWIGRUNTIME const char *
328SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
329 register unsigned char *u = (unsigned char *) ptr;
330 register const unsigned char *eu = u + sz;
331 for (; u != eu; ++u) {
332 register int d = *(c++);
333 register unsigned char uu = 0;
334 if ((d >= '0') && (d <= '9'))
335 uu = ((d - '0') << 4);
336 else if ((d >= 'a') && (d <= 'f'))
337 uu = ((d - ('a'-10)) << 4);
338 else
339 return (char *) 0;
340 d = *(c++);
341 if ((d >= '0') && (d <= '9'))
342 uu |= (d - '0');
343 else if ((d >= 'a') && (d <= 'f'))
344 uu |= (d - ('a'-10));
345 else
346 return (char *) 0;
347 *u = uu;
348 }
349 return c;
350}
351
352/*
353 This function will propagate the clientdata field of type to any new
354 swig_type_info structures that have been added into the list of
355 equivalent types. It is like calling SWIG_TypeClientData(type,
356 clientdata) a second time.
357*/
358SWIGRUNTIME void
359SWIG_PropagateClientDataTL(swig_type_info *tl, swig_type_info *type) {
360 swig_type_info *equiv = type->next;
361 swig_type_info *tc;
362 if (!type->clientdata) return;
363 while (equiv) {
364 if (!equiv->converter) {
365 tc = tl;
366 while (tc) {
367 if ((strcmp(tc->name, equiv->name) == 0) && !tc->clientdata)
368 SWIG_TypeClientDataTL(tl,tc, type->clientdata);
369 tc = tc->prev;
370 }
371 }
372 equiv = equiv->next;
373 }
374}
d14a1e28 375
093d3ff1
RD
376/*
377 Pack 'void *' into a string buffer.
378*/
379SWIGRUNTIME char *
380SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
381 char *r = buff;
382 if ((2*sizeof(void *) + 2) > bsz) return 0;
383 *(r++) = '_';
384 r = SWIG_PackData(r,&ptr,sizeof(void *));
385 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
386 strcpy(r,name);
387 return buff;
388}
389
390SWIGRUNTIME const char *
391SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
392 if (*c != '_') {
393 if (strcmp(c,"NULL") == 0) {
394 *ptr = (void *) 0;
395 return name;
396 } else {
397 return 0;
398 }
399 }
400 return SWIG_UnpackData(++c,ptr,sizeof(void *));
401}
402
403SWIGRUNTIME char *
404SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
405 char *r = buff;
406 size_t lname = (name ? strlen(name) : 0);
407 if ((2*sz + 2 + lname) > bsz) return 0;
408 *(r++) = '_';
409 r = SWIG_PackData(r,ptr,sz);
410 if (lname) {
411 strncpy(r,name,lname+1);
412 } else {
413 *r = 0;
414 }
415 return buff;
416}
d14a1e28 417
093d3ff1
RD
418SWIGRUNTIME const char *
419SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
420 if (*c != '_') {
421 if (strcmp(c,"NULL") == 0) {
422 memset(ptr,0,sz);
423 return name;
424 } else {
425 return 0;
426 }
427 }
428 return SWIG_UnpackData(++c,ptr,sz);
429}
d14a1e28
RD
430
431#ifdef __cplusplus
432}
433#endif
434
435/***********************************************************************
093d3ff1
RD
436 * common.swg
437 *
438 * This file contains generic SWIG runtime support for pointer
439 * type checking as well as a few commonly used macros to control
440 * external linkage.
d14a1e28 441 *
093d3ff1 442 * Author : David Beazley (beazley@cs.uchicago.edu)
d14a1e28 443 *
093d3ff1
RD
444 * Copyright (c) 1999-2000, The University of Chicago
445 *
446 * This file may be freely redistributed without license or fee provided
447 * this copyright message remains intact.
d14a1e28
RD
448 ************************************************************************/
449
093d3ff1
RD
450
451#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
452# if !defined(STATIC_LINKED)
453# define SWIGEXPORT(a) __declspec(dllexport) a
454# else
455# define SWIGEXPORT(a) a
456# endif
457#else
458# define SWIGEXPORT(a) a
459#endif
460
d14a1e28
RD
461#ifdef __cplusplus
462extern "C" {
463#endif
464
d14a1e28 465
093d3ff1 466/*************************************************************************/
d14a1e28 467
d14a1e28 468
093d3ff1 469/* The static type info list */
d14a1e28 470
093d3ff1
RD
471static swig_type_info *swig_type_list = 0;
472static swig_type_info **swig_type_list_handle = &swig_type_list;
473
d14a1e28 474
093d3ff1
RD
475/* Register a type mapping with the type-checking */
476static swig_type_info *
477SWIG_TypeRegister(swig_type_info *ti) {
478 return SWIG_TypeRegisterTL(swig_type_list_handle, ti);
479}
d14a1e28 480
093d3ff1
RD
481/* Search for a swig_type_info structure */
482static swig_type_info *
483SWIG_TypeQuery(const char *name) {
484 return SWIG_TypeQueryTL(*swig_type_list_handle, name);
485}
d14a1e28 486
093d3ff1
RD
487/* Set the clientdata field for a type */
488static void
489SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
490 SWIG_TypeClientDataTL(*swig_type_list_handle, ti, clientdata);
491}
d14a1e28 492
093d3ff1
RD
493/* This function will propagate the clientdata field of type to
494* any new swig_type_info structures that have been added into the list
495* of equivalent types. It is like calling
496* SWIG_TypeClientData(type, clientdata) a second time.
497*/
498static void
499SWIG_PropagateClientData(swig_type_info *type) {
500 SWIG_PropagateClientDataTL(*swig_type_list_handle, type);
501}
d14a1e28 502
d14a1e28
RD
503#ifdef __cplusplus
504}
505#endif
506
093d3ff1
RD
507/* -----------------------------------------------------------------------------
508 * SWIG API. Portion that goes into the runtime
509 * ----------------------------------------------------------------------------- */
d14a1e28 510
093d3ff1
RD
511#ifdef __cplusplus
512extern "C" {
513#endif
c32bde28 514
093d3ff1
RD
515/* -----------------------------------------------------------------------------
516 * for internal method declarations
517 * ----------------------------------------------------------------------------- */
d14a1e28 518
093d3ff1
RD
519#ifndef SWIGINTERN
520#define SWIGINTERN static
521#endif
d14a1e28 522
093d3ff1
RD
523#ifndef SWIGINTERNSHORT
524#ifdef __cplusplus
525#define SWIGINTERNSHORT static inline
526#else /* C case */
527#define SWIGINTERNSHORT static
528#endif /* __cplusplus */
529#endif
d14a1e28
RD
530
531
093d3ff1
RD
532/*
533 Exception handling in wrappers
534*/
535#define SWIG_fail goto fail
536#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
537#define SWIG_append_errmsg(msg) SWIG_Python_AddErrMesg(msg,0)
538#define SWIG_preppend_errmsg(msg) SWIG_Python_AddErrMesg(msg,1)
539#define SWIG_type_error(type,obj) SWIG_Python_TypeError(type,obj)
540#define SWIG_null_ref(type) SWIG_Python_NullRef(type)
541
542/*
543 Contract support
544*/
545#define SWIG_contract_assert(expr, msg) \
546 if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
547
548/* -----------------------------------------------------------------------------
549 * Constant declarations
550 * ----------------------------------------------------------------------------- */
d14a1e28 551
093d3ff1
RD
552/* Constant Types */
553#define SWIG_PY_INT 1
554#define SWIG_PY_FLOAT 2
555#define SWIG_PY_STRING 3
556#define SWIG_PY_POINTER 4
557#define SWIG_PY_BINARY 5
558
559/* Constant information structure */
560typedef struct swig_const_info {
561 int type;
562 char *name;
563 long lvalue;
564 double dvalue;
565 void *pvalue;
566 swig_type_info **ptype;
567} swig_const_info;
d14a1e28 568
c32bde28 569
093d3ff1
RD
570/* -----------------------------------------------------------------------------
571 * Alloc. memory flags
572 * ----------------------------------------------------------------------------- */
c32bde28
RD
573#define SWIG_OLDOBJ 1
574#define SWIG_NEWOBJ SWIG_OLDOBJ + 1
575#define SWIG_PYSTR SWIG_NEWOBJ + 1
994141e6 576
994141e6 577#ifdef __cplusplus
093d3ff1
RD
578}
579#endif
994141e6 580
15afbcd0 581
093d3ff1
RD
582/***********************************************************************
583 * pyrun.swg
584 *
585 * This file contains the runtime support for Python modules
586 * and includes code for managing global variables and pointer
587 * type checking.
588 *
589 * Author : David Beazley (beazley@cs.uchicago.edu)
590 ************************************************************************/
15afbcd0 591
093d3ff1
RD
592/* Common SWIG API */
593#define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Python_ConvertPtr(obj, pp, type, flags)
594#define SWIG_NewPointerObj(p, type, flags) SWIG_Python_NewPointerObj(p, type, flags)
595#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
596
994141e6 597
093d3ff1
RD
598/* Python-specific SWIG API */
599#define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
600#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
994141e6 601
994141e6 602
093d3ff1
RD
603/* -----------------------------------------------------------------------------
604 * Pointer declarations
605 * ----------------------------------------------------------------------------- */
606/*
607 Use SWIG_NO_COBJECT_TYPES to force the use of strings to represent
608 C/C++ pointers in the python side. Very useful for debugging, but
609 not always safe.
610*/
611#if !defined(SWIG_NO_COBJECT_TYPES) && !defined(SWIG_COBJECT_TYPES)
612# define SWIG_COBJECT_TYPES
613#endif
994141e6 614
093d3ff1
RD
615/* Flags for pointer conversion */
616#define SWIG_POINTER_EXCEPTION 0x1
617#define SWIG_POINTER_DISOWN 0x2
d14a1e28 618
994141e6 619
093d3ff1
RD
620#ifdef __cplusplus
621extern "C" {
622#endif
c32bde28 623
093d3ff1
RD
624/* -----------------------------------------------------------------------------
625 * Create a new pointer string
626 * ----------------------------------------------------------------------------- */
c32bde28 627
093d3ff1
RD
628#ifndef SWIG_BUFFER_SIZE
629#define SWIG_BUFFER_SIZE 1024
630#endif
994141e6 631
093d3ff1
RD
632#if defined(SWIG_COBJECT_TYPES)
633#if !defined(SWIG_COBJECT_PYTHON)
634/* -----------------------------------------------------------------------------
635 * Implements a simple Swig Object type, and use it instead of PyCObject
636 * ----------------------------------------------------------------------------- */
994141e6 637
093d3ff1
RD
638typedef struct {
639 PyObject_HEAD
640 void *ptr;
641 const char *desc;
642} PySwigObject;
c32bde28 643
093d3ff1 644/* Declarations for objects of type PySwigObject */
c32bde28 645
093d3ff1
RD
646SWIGRUNTIME int
647PySwigObject_print(PySwigObject *v, FILE *fp, int flags)
648{
649 char result[SWIG_BUFFER_SIZE];
650 if (SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result))) {
651 fputs("<Swig Object at ", fp); fputs(result, fp); fputs(">", fp);
652 return 0;
15afbcd0 653 } else {
093d3ff1 654 return 1;
15afbcd0
RD
655 }
656}
093d3ff1
RD
657
658SWIGRUNTIME PyObject *
659PySwigObject_repr(PySwigObject *v)
c32bde28 660{
093d3ff1
RD
661 char result[SWIG_BUFFER_SIZE];
662 return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ?
663 PyString_FromFormat("<Swig Object at %s>", result) : 0;
c32bde28 664}
15afbcd0 665
093d3ff1
RD
666SWIGRUNTIME PyObject *
667PySwigObject_str(PySwigObject *v)
c32bde28 668{
093d3ff1
RD
669 char result[SWIG_BUFFER_SIZE];
670 return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ?
671 PyString_FromString(result) : 0;
c32bde28 672}
15afbcd0 673
093d3ff1
RD
674SWIGRUNTIME PyObject *
675PySwigObject_long(PySwigObject *v)
15afbcd0 676{
093d3ff1 677 return PyLong_FromUnsignedLong((unsigned long) v->ptr);
c32bde28
RD
678}
679
093d3ff1
RD
680SWIGRUNTIME PyObject *
681PySwigObject_oct(PySwigObject *v)
c32bde28 682{
093d3ff1
RD
683 char buf[100];
684 unsigned long x = (unsigned long)v->ptr;
685 if (x == 0)
686 strcpy(buf, "0");
687 else
688 PyOS_snprintf(buf, sizeof(buf), "0%lo", x);
689 return PyString_FromString(buf);
15afbcd0
RD
690}
691
093d3ff1
RD
692SWIGRUNTIME PyObject *
693PySwigObject_hex(PySwigObject *v)
69223c70 694{
093d3ff1
RD
695 char buf[100];
696 PyOS_snprintf(buf, sizeof(buf), "0x%lx", (unsigned long)v->ptr);
697 return PyString_FromString(buf);
69223c70
RD
698}
699
093d3ff1
RD
700SWIGRUNTIME int
701PySwigObject_compare(PySwigObject *v, PySwigObject *w)
15afbcd0 702{
093d3ff1
RD
703 int c = strcmp(v->desc, w->desc);
704 if (c) {
705 return c;
706 } else {
707 void *i = v->ptr;
708 void *j = w->ptr;
709 return (i < j) ? -1 : (i > j) ? 1 : 0;
15afbcd0 710 }
093d3ff1 711}
15afbcd0 712
093d3ff1
RD
713SWIGRUNTIME void
714PySwigObject_dealloc(PySwigObject *self)
715{
716 PyObject_DEL(self);
717}
15afbcd0 718
093d3ff1
RD
719SWIGRUNTIME PyTypeObject*
720PySwigObject_GetType() {
721 static char PySwigObject_Type__doc__[] =
722 "Swig object carries a C/C++ instance pointer";
723
724 static PyNumberMethods PySwigObject_as_number = {
725 (binaryfunc)0, /*nb_add*/
726 (binaryfunc)0, /*nb_subtract*/
727 (binaryfunc)0, /*nb_multiply*/
728 (binaryfunc)0, /*nb_divide*/
729 (binaryfunc)0, /*nb_remainder*/
730 (binaryfunc)0, /*nb_divmod*/
731 (ternaryfunc)0,/*nb_power*/
732 (unaryfunc)0, /*nb_negative*/
733 (unaryfunc)0, /*nb_positive*/
734 (unaryfunc)0, /*nb_absolute*/
735 (inquiry)0, /*nb_nonzero*/
736 0, /*nb_invert*/
737 0, /*nb_lshift*/
738 0, /*nb_rshift*/
739 0, /*nb_and*/
740 0, /*nb_xor*/
741 0, /*nb_or*/
742 (coercion)0, /*nb_coerce*/
743 (unaryfunc)PySwigObject_long, /*nb_int*/
744 (unaryfunc)PySwigObject_long, /*nb_long*/
745 (unaryfunc)0, /*nb_float*/
746 (unaryfunc)PySwigObject_oct, /*nb_oct*/
747 (unaryfunc)PySwigObject_hex, /*nb_hex*/
748#if PY_VERSION_HEX >= 0x02000000
749 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
750#endif
751 };
752
753 static int type_init = 0;
754 static PyTypeObject PySwigObject_Type;
755
756 if (!type_init) {
757 PyTypeObject tmp = {
758 PyObject_HEAD_INIT(&PyType_Type)
759 0, /*ob_size*/
760 "PySwigObject", /*tp_name*/
761 sizeof(PySwigObject), /*tp_basicsize*/
762 0, /*tp_itemsize*/
763 /* methods */
764 (destructor)PySwigObject_dealloc, /*tp_dealloc*/
765 (printfunc)PySwigObject_print, /*tp_print*/
766 (getattrfunc)0, /*tp_getattr*/
767 (setattrfunc)0, /*tp_setattr*/
768 (cmpfunc)PySwigObject_compare, /*tp_compare*/
769 (reprfunc)PySwigObject_repr, /*tp_repr*/
770 &PySwigObject_as_number, /*tp_as_number*/
771 0, /*tp_as_sequence*/
772 0, /*tp_as_mapping*/
773 (hashfunc)0, /*tp_hash*/
774 (ternaryfunc)0, /*tp_call*/
775 (reprfunc)PySwigObject_str, /*tp_str*/
776 /* Space for future expansion */
777 0L,0L,0L,0L,
778 PySwigObject_Type__doc__, /* Documentation string */
779#if PY_VERSION_HEX >= 0x02000000
780 0, /* tp_traverse */
781 0, /* tp_clear */
782#endif
783#if PY_VERSION_HEX >= 0x02010000
784 0, /* tp_richcompare */
785 0, /* tp_weaklistoffset */
786#endif
787#if PY_VERSION_HEX >= 0x02020000
788 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
789#endif
790#if PY_VERSION_HEX >= 0x02030000
791 0, /* tp_del */
792#endif
793#ifdef COUNT_ALLOCS
794 0,0,0,0 /* tp_alloc -> tp_next */
795#endif
796 };
797
798 PySwigObject_Type = tmp;
799 type_init = 1;
c32bde28 800 }
093d3ff1
RD
801
802 return &PySwigObject_Type;
15afbcd0
RD
803}
804
093d3ff1
RD
805SWIGRUNTIME PyObject *
806PySwigObject_FromVoidPtrAndDesc(void *ptr, const char *desc)
807{
808 PySwigObject *self = PyObject_NEW(PySwigObject, PySwigObject_GetType());
809 if (self == NULL) return NULL;
810 self->ptr = ptr;
811 self->desc = desc;
812 return (PyObject *)self;
813}
15afbcd0 814
093d3ff1
RD
815SWIGRUNTIMEINLINE void *
816PySwigObject_AsVoidPtr(PyObject *self)
15afbcd0 817{
093d3ff1
RD
818 return ((PySwigObject *)self)->ptr;
819}
820
821SWIGRUNTIMEINLINE const char *
822PySwigObject_GetDesc(PyObject *self)
823{
824 return ((PySwigObject *)self)->desc;
825}
826
827SWIGRUNTIMEINLINE int
828PySwigObject_Check(PyObject *op) {
829 return ((op)->ob_type == PySwigObject_GetType())
830 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
15afbcd0
RD
831}
832
093d3ff1
RD
833/* -----------------------------------------------------------------------------
834 * Implements a simple Swig Packed type, and use it instead of string
835 * ----------------------------------------------------------------------------- */
836
837typedef struct {
838 PyObject_HEAD
839 void *pack;
840 const char *desc;
841 size_t size;
842} PySwigPacked;
843
844SWIGRUNTIME int
845PySwigPacked_print(PySwigPacked *v, FILE *fp, int flags)
846{
847 char result[SWIG_BUFFER_SIZE];
848 fputs("<Swig Packed ", fp);
849 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
850 fputs("at ", fp);
851 fputs(result, fp);
852 }
853 fputs(v->desc,fp);
854 fputs(">", fp);
855 return 0;
856}
c32bde28 857
093d3ff1
RD
858SWIGRUNTIME PyObject *
859PySwigPacked_repr(PySwigPacked *v)
15afbcd0 860{
093d3ff1
RD
861 char result[SWIG_BUFFER_SIZE];
862 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
863 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->desc);
864 } else {
865 return PyString_FromFormat("<Swig Packed %s>", v->desc);
866 }
c32bde28
RD
867}
868
093d3ff1
RD
869SWIGRUNTIME PyObject *
870PySwigPacked_str(PySwigPacked *v)
871{
872 char result[SWIG_BUFFER_SIZE];
873 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
874 return PyString_FromFormat("%s%s", result, v->desc);
875 } else {
876 return PyString_FromFormat("%s", v->desc);
877 }
878}
c32bde28 879
093d3ff1
RD
880SWIGRUNTIME int
881PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
c32bde28 882{
093d3ff1
RD
883 int c = strcmp(v->desc, w->desc);
884 if (c) {
885 return c;
886 } else {
887 size_t i = v->size;
888 size_t j = w->size;
889 int s = (i < j) ? -1 : (i > j) ? 1 : 0;
890 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
15afbcd0 891 }
c32bde28
RD
892}
893
093d3ff1
RD
894SWIGRUNTIME void
895PySwigPacked_dealloc(PySwigPacked *self)
896{
897 free(self->pack);
898 PyObject_DEL(self);
899}
900
901SWIGRUNTIME PyTypeObject*
902PySwigPacked_GetType() {
903 static char PySwigPacked_Type__doc__[] =
904 "Swig object carries a C/C++ instance pointer";
905 static int type_init = 0;
c32bde28 906
093d3ff1
RD
907 static PyTypeObject PySwigPacked_Type;
908 if (!type_init) {
909 PyTypeObject tmp = {
910 PyObject_HEAD_INIT(&PyType_Type)
911 0, /*ob_size*/
912 "PySwigPacked", /*tp_name*/
913 sizeof(PySwigPacked), /*tp_basicsize*/
914 0, /*tp_itemsize*/
915 /* methods */
916 (destructor)PySwigPacked_dealloc, /*tp_dealloc*/
917 (printfunc)PySwigPacked_print, /*tp_print*/
918 (getattrfunc)0, /*tp_getattr*/
919 (setattrfunc)0, /*tp_setattr*/
920 (cmpfunc)PySwigPacked_compare, /*tp_compare*/
921 (reprfunc)PySwigPacked_repr, /*tp_repr*/
922 0, /*tp_as_number*/
923 0, /*tp_as_sequence*/
924 0, /*tp_as_mapping*/
925 (hashfunc)0, /*tp_hash*/
926 (ternaryfunc)0, /*tp_call*/
927 (reprfunc)PySwigPacked_str, /*tp_str*/
928 /* Space for future expansion */
929 0L,0L,0L,0L,
930 PySwigPacked_Type__doc__, /* Documentation string */
931#if PY_VERSION_HEX >= 0x02000000
932 0, /* tp_traverse */
933 0, /* tp_clear */
934#endif
935#if PY_VERSION_HEX >= 0x02010000
936 0, /* tp_richcompare */
937 0, /* tp_weaklistoffset */
938#endif
939#if PY_VERSION_HEX >= 0x02020000
940 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
941#endif
942#if PY_VERSION_HEX >= 0x02030000
943 0, /* tp_del */
944#endif
945#ifdef COUNT_ALLOCS
946 0,0,0,0 /* tp_alloc -> tp_next */
947#endif
948 };
949
950 PySwigPacked_Type = tmp;
951 type_init = 1;
952 }
953
954
955
956 return &PySwigPacked_Type;
957}
958
959SWIGRUNTIME PyObject *
960PySwigPacked_FromDataAndDesc(void *ptr, size_t size, const char *desc)
c32bde28 961{
093d3ff1
RD
962 PySwigPacked *self = PyObject_NEW(PySwigPacked, PySwigPacked_GetType());
963 if (self == NULL) {
964 return NULL;
965 } else {
966 void *pack = malloc(size);
967 memcpy(pack, ptr, size);
968 self->pack = pack;
969 self->desc = desc;
970 self->size = size;
971 return (PyObject *) self;
972 }
994141e6
RD
973}
974
093d3ff1
RD
975SWIGRUNTIMEINLINE const char *
976PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
977{
978 PySwigPacked *self = (PySwigPacked *)obj;
979 if (self->size != size) return 0;
980 memcpy(ptr, self->pack, size);
981 return self->desc;
982}
b88bce5f 983
093d3ff1
RD
984SWIGRUNTIMEINLINE const char *
985PySwigPacked_GetDesc(PyObject *self)
15afbcd0 986{
093d3ff1 987 return ((PySwigPacked *)self)->desc;
15afbcd0
RD
988}
989
093d3ff1
RD
990SWIGRUNTIMEINLINE int
991PySwigPacked_Check(PyObject *op) {
992 return ((op)->ob_type == PySwigPacked_GetType())
993 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
994}
15afbcd0 995
093d3ff1
RD
996#else
997/* -----------------------------------------------------------------------------
998 * Use the old Python PyCObject instead of PySwigObject
999 * ----------------------------------------------------------------------------- */
1000
1001#define PySwigObject_GetDesc(obj) PyCObject_GetDesc(obj)
1002#define PySwigObject_Check(obj) PyCObject_Check(obj)
1003#define PySwigObject_AsVoidPtr(obj) PyCObject_AsVoidPtr(obj)
1004#define PySwigObject_FromVoidPtrAndDesc(p, d) PyCObject_FromVoidPtrAndDesc(p, d, NULL)
1005
1006#endif
1007
1008#endif
1009
1010/* -----------------------------------------------------------------------------
1011 * errors manipulation
1012 * ----------------------------------------------------------------------------- */
1013
1014SWIGRUNTIME void
1015SWIG_Python_TypeError(const char *type, PyObject *obj)
15afbcd0 1016{
093d3ff1
RD
1017 if (type) {
1018#if defined(SWIG_COBJECT_TYPES)
1019 if (PySwigObject_Check(obj)) {
1020 const char *otype = (const char *) PySwigObject_GetDesc(obj);
1021 if (otype) {
1022 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
1023 type, otype);
1024 return;
1025 }
1026 } else
1027#endif
1028 {
1029 const char *otype = (obj ? obj->ob_type->tp_name : 0);
1030 if (otype) {
1031 PyObject *str = PyObject_Str(obj);
1032 const char *cstr = str ? PyString_AsString(str) : 0;
1033 if (cstr) {
1034 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
1035 type, otype, cstr);
1036 } else {
1037 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
1038 type, otype);
1039 }
02b455f2
RD
1040 if (str)
1041 Py_DECREF(str);
093d3ff1
RD
1042 return;
1043 }
1044 }
1045 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
1046 } else {
1047 PyErr_Format(PyExc_TypeError, "unexpected type is received");
15afbcd0 1048 }
15afbcd0
RD
1049}
1050
093d3ff1
RD
1051SWIGRUNTIMEINLINE void
1052SWIG_Python_NullRef(const char *type)
15afbcd0 1053{
093d3ff1
RD
1054 if (type) {
1055 PyErr_Format(PyExc_TypeError, "null reference of type '%s' was received",type);
1056 } else {
1057 PyErr_Format(PyExc_TypeError, "null reference was received");
1058 }
994141e6
RD
1059}
1060
093d3ff1
RD
1061SWIGRUNTIME int
1062SWIG_Python_AddErrMesg(const char* mesg, int infront)
1063{
1064 if (PyErr_Occurred()) {
1065 PyObject *type = 0;
1066 PyObject *value = 0;
1067 PyObject *traceback = 0;
1068 PyErr_Fetch(&type, &value, &traceback);
1069 if (value) {
1070 PyObject *old_str = PyObject_Str(value);
1071 Py_XINCREF(type);
1072 PyErr_Clear();
1073 if (infront) {
1074 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
1075 } else {
1076 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
1077 }
1078 Py_DECREF(old_str);
1079 }
1080 return 1;
1081 } else {
1082 return 0;
1083 }
1084}
994141e6 1085
093d3ff1
RD
1086SWIGRUNTIME int
1087SWIG_Python_ArgFail(int argnum)
1088{
1089 if (PyErr_Occurred()) {
1090 /* add information about failing argument */
1091 char mesg[256];
1092 sprintf(mesg, "argument number %d:", argnum);
1093 return SWIG_Python_AddErrMesg(mesg, 1);
1094 } else {
1095 return 0;
1096 }
1097}
d14a1e28 1098
093d3ff1
RD
1099
1100/* -----------------------------------------------------------------------------
1101 * pointers/data manipulation
1102 * ----------------------------------------------------------------------------- */
1103
1104/* Convert a pointer value */
1105SWIGRUNTIME int
1106SWIG_Python_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) {
1107 swig_type_info *tc;
1108 const char *c = 0;
1109 static PyObject *SWIG_this = 0;
1110 int newref = 0;
1111 PyObject *pyobj = 0;
1112 void *vptr;
1113
1114 if (!obj) return 0;
1115 if (obj == Py_None) {
1116 *ptr = 0;
1117 return 0;
7e63a440 1118 }
d14a1e28 1119
093d3ff1
RD
1120#ifdef SWIG_COBJECT_TYPES
1121 if (!(PySwigObject_Check(obj))) {
1122 if (!SWIG_this)
1123 SWIG_this = PyString_FromString("this");
1124 pyobj = obj;
1125 obj = PyObject_GetAttr(obj,SWIG_this);
1126 newref = 1;
1127 if (!obj) goto type_error;
1128 if (!PySwigObject_Check(obj)) {
1129 Py_DECREF(obj);
1130 goto type_error;
1131 }
1132 }
1133 vptr = PySwigObject_AsVoidPtr(obj);
1134 c = (const char *) PySwigObject_GetDesc(obj);
1135 if (newref) { Py_DECREF(obj); }
1136 goto type_check;
1137#else
1138 if (!(PyString_Check(obj))) {
1139 if (!SWIG_this)
1140 SWIG_this = PyString_FromString("this");
1141 pyobj = obj;
1142 obj = PyObject_GetAttr(obj,SWIG_this);
1143 newref = 1;
1144 if (!obj) goto type_error;
1145 if (!PyString_Check(obj)) {
1146 Py_DECREF(obj);
1147 goto type_error;
1148 }
1149 }
1150 c = PyString_AS_STRING(obj);
1151 /* Pointer values must start with leading underscore */
1152 c = SWIG_UnpackVoidPtr(c, &vptr, ty->name);
1153 if (newref) { Py_DECREF(obj); }
1154 if (!c) goto type_error;
1155#endif
c32bde28 1156
093d3ff1 1157type_check:
66c033b4 1158
093d3ff1
RD
1159 if (ty) {
1160 tc = SWIG_TypeCheck(c,ty);
1161 if (!tc) goto type_error;
1162 *ptr = SWIG_TypeCast(tc,vptr);
1163 } else {
1164 *ptr = vptr;
1165 }
d14a1e28 1166
093d3ff1
RD
1167 if ((pyobj) && (flags & SWIG_POINTER_DISOWN)) {
1168 PyObject_SetAttrString(pyobj,(char*)"thisown",Py_False);
1169 }
1170 return 0;
d14a1e28 1171
093d3ff1
RD
1172type_error:
1173 PyErr_Clear();
1174 if (pyobj && !obj) {
1175 obj = pyobj;
1176 if (PyCFunction_Check(obj)) {
1177 /* here we get the method pointer for callbacks */
1178 char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
1179 c = doc ? strstr(doc, "swig_ptr: ") : 0;
1180 if (c) {
1181 c = SWIG_UnpackVoidPtr(c + 10, &vptr, ty->name);
1182 if (!c) goto type_error;
1183 goto type_check;
1184 }
1185 }
1186 }
1187 if (flags & SWIG_POINTER_EXCEPTION) {
1188 if (ty) {
1189 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1190 } else {
1191 SWIG_Python_TypeError("C/C++ pointer", obj);
1192 }
1193 }
1194 return -1;
1195}
d14a1e28 1196
093d3ff1
RD
1197/* Convert a pointer value, signal an exception on a type mismatch */
1198SWIGRUNTIME void *
1199SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
1200 void *result;
1201 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
1202 PyErr_Clear();
1203 if (flags & SWIG_POINTER_EXCEPTION) {
1204 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1205 SWIG_Python_ArgFail(argnum);
d14a1e28 1206 }
093d3ff1
RD
1207 }
1208 return result;
1209}
d14a1e28 1210
093d3ff1
RD
1211/* Convert a packed value value */
1212SWIGRUNTIME int
1213SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty, int flags) {
1214 swig_type_info *tc;
1215 const char *c = 0;
d14a1e28 1216
093d3ff1
RD
1217#if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1218 c = PySwigPacked_UnpackData(obj, ptr, sz);
1219#else
1220 if ((!obj) || (!PyString_Check(obj))) goto type_error;
1221 c = PyString_AS_STRING(obj);
1222 /* Pointer values must start with leading underscore */
1223 c = SWIG_UnpackDataName(c, ptr, sz, ty->name);
1224#endif
1225 if (!c) goto type_error;
1226 if (ty) {
1227 tc = SWIG_TypeCheck(c,ty);
1228 if (!tc) goto type_error;
1229 }
1230 return 0;
d14a1e28 1231
093d3ff1
RD
1232type_error:
1233 PyErr_Clear();
1234 if (flags & SWIG_POINTER_EXCEPTION) {
1235 if (ty) {
1236 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1237 } else {
1238 SWIG_Python_TypeError("C/C++ packed data", obj);
1239 }
15afbcd0 1240 }
093d3ff1
RD
1241 return -1;
1242}
1243
1244/* Create a new array object */
1245SWIGRUNTIME PyObject *
1246SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int own) {
1247 PyObject *robj = 0;
1248 if (!ptr) {
1249 Py_INCREF(Py_None);
1250 return Py_None;
1251 }
1252#ifdef SWIG_COBJECT_TYPES
1253 robj = PySwigObject_FromVoidPtrAndDesc((void *) ptr, (char *)type->name);
1254#else
1255 {
1256 char result[SWIG_BUFFER_SIZE];
1257 robj = SWIG_PackVoidPtr(result, ptr, type->name, sizeof(result)) ?
1258 PyString_FromString(result) : 0;
1259 }
1260#endif
1261 if (!robj || (robj == Py_None)) return robj;
1262 if (type->clientdata) {
1263 PyObject *inst;
1264 PyObject *args = Py_BuildValue((char*)"(O)", robj);
1265 Py_DECREF(robj);
1266 inst = PyObject_CallObject((PyObject *) type->clientdata, args);
1267 Py_DECREF(args);
1268 if (inst) {
1269 if (own) {
1270 PyObject_SetAttrString(inst,(char*)"thisown",Py_True);
1271 }
1272 robj = inst;
1273 }
1274 }
1275 return robj;
c32bde28
RD
1276}
1277
093d3ff1
RD
1278SWIGRUNTIME PyObject *
1279SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
1280 PyObject *robj = 0;
1281 if (!ptr) {
1282 Py_INCREF(Py_None);
1283 return Py_None;
1284 }
1285#if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1286 robj = PySwigPacked_FromDataAndDesc((void *) ptr, sz, (char *)type->name);
1287#else
1288 {
1289 char result[SWIG_BUFFER_SIZE];
1290 robj = SWIG_PackDataName(result, ptr, sz, type->name, sizeof(result)) ?
1291 PyString_FromString(result) : 0;
1292 }
1293#endif
1294 return robj;
994141e6
RD
1295}
1296
093d3ff1
RD
1297/* -----------------------------------------------------------------------------*
1298 * Get type list
1299 * -----------------------------------------------------------------------------*/
1300
1301#ifdef SWIG_LINK_RUNTIME
1302void *SWIG_ReturnGlobalTypeList(void *);
1303#endif
1304
1305SWIGRUNTIME swig_type_info **
1306SWIG_Python_GetTypeListHandle() {
1307 static void *type_pointer = (void *)0;
1308 /* first check if module already created */
1309 if (!type_pointer) {
1310#ifdef SWIG_LINK_RUNTIME
1311 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
15afbcd0 1312#else
093d3ff1
RD
1313 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
1314 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
1315 if (PyErr_Occurred()) {
1316 PyErr_Clear();
1317 type_pointer = (void *)0;
1318 }
1319 }
15afbcd0 1320#endif
093d3ff1
RD
1321 return (swig_type_info **) type_pointer;
1322}
d14a1e28 1323
093d3ff1
RD
1324/*
1325 Search for a swig_type_info structure
1326 */
1327SWIGRUNTIMEINLINE swig_type_info *
1328SWIG_Python_GetTypeList() {
1329 swig_type_info **tlh = SWIG_Python_GetTypeListHandle();
1330 return tlh ? *tlh : (swig_type_info*)0;
1331}
d14a1e28 1332
093d3ff1 1333#define SWIG_Runtime_GetTypeList SWIG_Python_GetTypeList
d14a1e28 1334
093d3ff1
RD
1335#ifdef __cplusplus
1336}
1337#endif
d14a1e28 1338
d14a1e28 1339
093d3ff1 1340/* -------- TYPES TABLE (BEGIN) -------- */
d14a1e28 1341
093d3ff1
RD
1342#define SWIGTYPE_p_wxPostScriptDC swig_types[0]
1343#define SWIGTYPE_p_wxBrush swig_types[1]
1344#define SWIGTYPE_p_wxColour swig_types[2]
1345#define SWIGTYPE_p_wxDC swig_types[3]
1346#define SWIGTYPE_p_wxMirrorDC swig_types[4]
1347#define SWIGTYPE_p_form_ops_t swig_types[5]
1348#define SWIGTYPE_p_wxDuplexMode swig_types[6]
1349#define SWIGTYPE_p_wxPyFontEnumerator swig_types[7]
1350#define SWIGTYPE_p_char swig_types[8]
1351#define SWIGTYPE_p_wxIconLocation swig_types[9]
1352#define SWIGTYPE_p_wxImage swig_types[10]
1353#define SWIGTYPE_p_wxMetaFileDC swig_types[11]
1354#define SWIGTYPE_p_wxMask swig_types[12]
1355#define SWIGTYPE_p_wxSize swig_types[13]
1356#define SWIGTYPE_p_wxFont swig_types[14]
1357#define SWIGTYPE_p_wxWindow swig_types[15]
1358#define SWIGTYPE_p_double swig_types[16]
1359#define SWIGTYPE_p_wxMemoryDC swig_types[17]
1360#define SWIGTYPE_p_wxFontMapper swig_types[18]
1361#define SWIGTYPE_p_wxEffects swig_types[19]
1362#define SWIGTYPE_p_wxNativeEncodingInfo swig_types[20]
1363#define SWIGTYPE_p_wxPalette swig_types[21]
1364#define SWIGTYPE_p_wxBitmap swig_types[22]
1365#define SWIGTYPE_p_wxObject swig_types[23]
1366#define SWIGTYPE_p_wxRegionIterator swig_types[24]
1367#define SWIGTYPE_p_wxRect swig_types[25]
1368#define SWIGTYPE_p_wxPaperSize swig_types[26]
1369#define SWIGTYPE_p_wxString swig_types[27]
1370#define SWIGTYPE_unsigned_int swig_types[28]
1371#define SWIGTYPE_p_unsigned_int swig_types[29]
1372#define SWIGTYPE_p_wxPrinterDC swig_types[30]
1373#define SWIGTYPE_p_wxIconBundle swig_types[31]
1374#define SWIGTYPE_p_wxPoint swig_types[32]
1375#define SWIGTYPE_p_wxDash swig_types[33]
1376#define SWIGTYPE_p_wxScreenDC swig_types[34]
1377#define SWIGTYPE_p_wxCursor swig_types[35]
1378#define SWIGTYPE_p_wxClientDC swig_types[36]
1379#define SWIGTYPE_p_wxBufferedDC swig_types[37]
1380#define SWIGTYPE_p_wxImageList swig_types[38]
1381#define SWIGTYPE_p_unsigned_char swig_types[39]
1382#define SWIGTYPE_p_wxGDIObject swig_types[40]
1383#define SWIGTYPE_p_wxIcon swig_types[41]
1384#define SWIGTYPE_p_wxLocale swig_types[42]
1385#define SWIGTYPE_ptrdiff_t swig_types[43]
1386#define SWIGTYPE_std__ptrdiff_t swig_types[44]
1387#define SWIGTYPE_p_wxRegion swig_types[45]
1388#define SWIGTYPE_p_wxConfigBase swig_types[46]
1389#define SWIGTYPE_p_wxLanguageInfo swig_types[47]
1390#define SWIGTYPE_p_wxWindowDC swig_types[48]
1391#define SWIGTYPE_p_wxPrintData swig_types[49]
1392#define SWIGTYPE_p_wxBrushList swig_types[50]
1393#define SWIGTYPE_p_wxFontList swig_types[51]
1394#define SWIGTYPE_p_wxPen swig_types[52]
1395#define SWIGTYPE_p_wxBufferedPaintDC swig_types[53]
1396#define SWIGTYPE_p_wxPaintDC swig_types[54]
1397#define SWIGTYPE_p_wxPenList swig_types[55]
1398#define SWIGTYPE_p_int swig_types[56]
1399#define SWIGTYPE_p_wxMetaFile swig_types[57]
1400#define SWIGTYPE_p_unsigned_long swig_types[58]
1401#define SWIGTYPE_p_wxNativeFontInfo swig_types[59]
1402#define SWIGTYPE_p_wxEncodingConverter swig_types[60]
1403#define SWIGTYPE_p_wxColourDatabase swig_types[61]
1404static swig_type_info *swig_types[63];
d14a1e28 1405
093d3ff1 1406/* -------- TYPES TABLE (END) -------- */
d14a1e28 1407
d14a1e28 1408
093d3ff1
RD
1409/*-----------------------------------------------
1410 @(target):= _gdi_.so
1411 ------------------------------------------------*/
1412#define SWIG_init init_gdi_
d14a1e28 1413
093d3ff1 1414#define SWIG_name "_gdi_"
d14a1e28 1415
093d3ff1
RD
1416#include "wx/wxPython/wxPython.h"
1417#include "wx/wxPython/pyclasses.h"
1418
d14a1e28 1419
093d3ff1 1420 static const wxString wxPyEmptyString(wxEmptyString);
d14a1e28 1421
093d3ff1 1422#include <limits.h>
d14a1e28
RD
1423
1424
093d3ff1
RD
1425SWIGINTERN int
1426 SWIG_CheckLongInRange(long value, long min_value, long max_value,
1427 const char *errmsg)
1428{
1429 if (value < min_value) {
1430 if (errmsg) {
1431 PyErr_Format(PyExc_OverflowError,
1432 "value %ld is less than '%s' minimum %ld",
1433 value, errmsg, min_value);
1434 }
1435 return 0;
1436 } else if (value > max_value) {
1437 if (errmsg) {
1438 PyErr_Format(PyExc_OverflowError,
1439 "value %ld is greater than '%s' maximum %ld",
1440 value, errmsg, max_value);
1441 }
1442 return 0;
1443 }
1444 return 1;
1445}
d14a1e28 1446
994141e6 1447
093d3ff1
RD
1448SWIGINTERN int
1449SWIG_AsVal_long(PyObject* obj, long* val)
994141e6 1450{
c32bde28 1451 if (PyNumber_Check(obj)) {
093d3ff1 1452 if (val) *val = PyInt_AsLong(obj);
c32bde28
RD
1453 return 1;
1454 }
69223c70 1455 else {
093d3ff1 1456 SWIG_type_error("number", obj);
69223c70 1457 }
c32bde28 1458 return 0;
15afbcd0
RD
1459}
1460
1461
093d3ff1
RD
1462#if INT_MAX != LONG_MAX
1463SWIGINTERN int
1464 SWIG_AsVal_int(PyObject *obj, int *val)
1465{
1466 const char* errmsg = val ? "int" : (char*)0;
1467 long v;
1468 if (SWIG_AsVal_long(obj, &v)) {
1469 if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) {
1470 if (val) *val = (int)(v);
1471 return 1;
1472 } else {
1473 return 0;
1474 }
1475 } else {
1476 PyErr_Clear();
15afbcd0 1477 }
093d3ff1
RD
1478 if (val) {
1479 SWIG_type_error(errmsg, obj);
1480 }
1481 return 0;
c32bde28 1482}
093d3ff1
RD
1483#else
1484SWIGINTERNSHORT int
1485 SWIG_AsVal_int(PyObject *obj, int *val)
c32bde28 1486{
093d3ff1 1487 return SWIG_AsVal_long(obj,(long*)val);
994141e6 1488}
093d3ff1 1489#endif
994141e6 1490
c32bde28 1491
093d3ff1
RD
1492SWIGINTERN int
1493 SWIG_AsVal_bool(PyObject *obj, bool *val)
1494{
1495 if (obj == Py_True) {
1496 if (val) *val = true;
1497 return 1;
1498 }
1499 if (obj == Py_False) {
1500 if (val) *val = false;
1501 return 1;
1502 }
1503 int res = 0;
1504 if (SWIG_AsVal_int(obj, &res)) {
1505 if (val) *val = res ? true : false;
1506 return 1;
1507 } else {
1508 PyErr_Clear();
1509 }
1510 if (val) {
1511 SWIG_type_error("bool", obj);
1512 }
1513 return 0;
1514}
c32bde28 1515
d14a1e28 1516
093d3ff1
RD
1517SWIGINTERNSHORT bool
1518SWIG_As_bool(PyObject* obj)
1519{
1520 bool v;
1521 if (!SWIG_AsVal_bool(obj, &v)) {
1522 /*
1523 this is needed to make valgrind/purify happier.
1524 */
1525 memset((void*)&v, 0, sizeof(bool));
1526 }
1527 return v;
d14a1e28
RD
1528}
1529
093d3ff1
RD
1530
1531SWIGINTERNSHORT int
1532SWIG_Check_bool(PyObject* obj)
1533{
1534 return SWIG_AsVal_bool(obj, (bool*)0);
1535}
b88bce5f 1536
b88bce5f 1537
093d3ff1
RD
1538SWIGINTERN int
1539SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val)
1540{
1541 long v = 0;
1542 if (SWIG_AsVal_long(obj, &v) && v < 0) {
1543 SWIG_type_error("unsigned number", obj);
1544 }
1545 else if (val)
1546 *val = (unsigned long)v;
1547 return 1;
1548}
d14a1e28
RD
1549
1550
093d3ff1
RD
1551SWIGINTERNSHORT int
1552 SWIG_CheckUnsignedLongInRange(unsigned long value,
1553 unsigned long max_value,
1554 const char *errmsg)
1555{
1556 if (value > max_value) {
1557 if (errmsg) {
1558 PyErr_Format(PyExc_OverflowError,
1559 "value %lu is greater than '%s' minimum %lu",
1560 value, errmsg, max_value);
1561 }
1562 return 0;
1563 }
1564 return 1;
1565 }
d14a1e28 1566
d14a1e28 1567
093d3ff1
RD
1568SWIGINTERN int
1569 SWIG_AsVal_unsigned_SS_char(PyObject *obj, unsigned char *val)
1570{
1571 const char* errmsg = val ? "unsigned char" : (char*)0;
1572 unsigned long v;
1573 if (SWIG_AsVal_unsigned_SS_long(obj, &v)) {
1574 if (SWIG_CheckUnsignedLongInRange(v, UCHAR_MAX,errmsg)) {
1575 if (val) *val = (unsigned char)(v);
1576 return 1;
1577 } else {
1578 return 0;
1579 }
1580 } else {
1581 PyErr_Clear();
1582 }
1583 if (val) {
1584 SWIG_type_error(errmsg, obj);
1585 }
1586 return 0;
1587}
d14a1e28
RD
1588
1589
093d3ff1
RD
1590SWIGINTERNSHORT unsigned char
1591SWIG_As_unsigned_SS_char(PyObject* obj)
1592{
1593 unsigned char v;
1594 if (!SWIG_AsVal_unsigned_SS_char(obj, &v)) {
1595 /*
1596 this is needed to make valgrind/purify happier.
1597 */
1598 memset((void*)&v, 0, sizeof(unsigned char));
1599 }
1600 return v;
1601}
33b885b9 1602
093d3ff1
RD
1603
1604SWIGINTERNSHORT int
1605SWIG_Check_unsigned_SS_char(PyObject* obj)
1606{
1607 return SWIG_AsVal_unsigned_SS_char(obj, (unsigned char*)0);
1608}
d14a1e28
RD
1609
1610
093d3ff1
RD
1611SWIGINTERNSHORT unsigned long
1612SWIG_As_unsigned_SS_long(PyObject* obj)
1613{
1614 unsigned long v;
1615 if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) {
1616 /*
1617 this is needed to make valgrind/purify happier.
1618 */
1619 memset((void*)&v, 0, sizeof(unsigned long));
1620 }
1621 return v;
1622}
d14a1e28 1623
093d3ff1
RD
1624
1625SWIGINTERNSHORT int
1626SWIG_Check_unsigned_SS_long(PyObject* obj)
1627{
1628 return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0);
1629}
d14a1e28 1630
d14a1e28 1631
093d3ff1
RD
1632 /*@/opt/swig/share/swig/1.3.24/python/pymacros.swg,66,SWIG_define@*/
1633#define SWIG_From_unsigned_SS_char PyInt_FromLong
1634/*@@*/
d14a1e28
RD
1635
1636
093d3ff1
RD
1637 /*@/opt/swig/share/swig/1.3.24/python/pymacros.swg,66,SWIG_define@*/
1638#define SWIG_From_long PyInt_FromLong
1639/*@@*/
d14a1e28 1640
093d3ff1
RD
1641static PyObject *wxColour_Get(wxColour *self){
1642 PyObject* rv = PyTuple_New(3);
1643 int red = -1;
1644 int green = -1;
1645 int blue = -1;
1646 if (self->Ok()) {
1647 red = self->Red();
1648 green = self->Green();
1649 blue = self->Blue();
1650 }
1651 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
1652 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
1653 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
1654 return rv;
1655 }
1656static unsigned long wxColour_GetRGB(wxColour *self){
1657 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
1658 }
d14a1e28 1659
093d3ff1
RD
1660SWIGINTERNSHORT PyObject*
1661 SWIG_From_unsigned_SS_long(unsigned long value)
1662{
1663 return (value > LONG_MAX) ?
1664 PyLong_FromUnsignedLong(value)
1665 : PyInt_FromLong((long)(value));
d14a1e28
RD
1666}
1667
1668
093d3ff1
RD
1669SWIGINTERNSHORT int
1670SWIG_As_int(PyObject* obj)
1671{
1672 int v;
1673 if (!SWIG_AsVal_int(obj, &v)) {
1674 /*
1675 this is needed to make valgrind/purify happier.
1676 */
1677 memset((void*)&v, 0, sizeof(int));
1678 }
1679 return v;
d14a1e28
RD
1680}
1681
093d3ff1
RD
1682
1683SWIGINTERNSHORT int
1684SWIG_Check_int(PyObject* obj)
1685{
1686 return SWIG_AsVal_int(obj, (int*)0);
d14a1e28
RD
1687}
1688
1689
093d3ff1
RD
1690 /*@/opt/swig/share/swig/1.3.24/python/pymacros.swg,66,SWIG_define@*/
1691#define SWIG_From_int PyInt_FromLong
1692/*@@*/
d14a1e28
RD
1693
1694
093d3ff1
RD
1695 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
1696 PyObject* o2;
1697 PyObject* o3;
d14a1e28 1698
093d3ff1
RD
1699 if (!target) {
1700 target = o;
1701 } else if (target == Py_None) {
1702 Py_DECREF(Py_None);
1703 target = o;
1704 } else {
1705 if (!PyTuple_Check(target)) {
1706 o2 = target;
1707 target = PyTuple_New(1);
1708 PyTuple_SetItem(target, 0, o2);
1709 }
1710 o3 = PyTuple_New(1);
1711 PyTuple_SetItem(o3, 0, o);
1712
1713 o2 = target;
1714 target = PySequence_Concat(o2, o3);
1715 Py_DECREF(o2);
1716 Py_DECREF(o3);
d14a1e28 1717 }
093d3ff1
RD
1718 return target;
1719 }
d14a1e28
RD
1720
1721
093d3ff1
RD
1722static PyObject *wxPen_GetDashes(wxPen *self){
1723 wxDash* dashes;
1724 int count = self->GetDashes(&dashes);
5a446332 1725 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
1726 PyObject* retval = PyList_New(0);
1727 for (int x=0; x<count; x++) {
1728 PyObject* pyint = PyInt_FromLong(dashes[x]);
1729 PyList_Append(retval, pyint);
1730 Py_DECREF(pyint);
1731 }
1732 wxPyEndBlockThreads(blocked);
1733 return retval;
1734 }
1735static void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
5a446332 1736 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
1737 int size = PyList_Size(pyDashes);
1738 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
d14a1e28 1739
093d3ff1
RD
1740 // black magic warning! The array of wxDashes needs to exist as
1741 // long as the pen does because wxPen does not copy the array. So
1742 // stick a copy in a Python string object and attach it to _self,
1743 // and then call SetDashes with a pointer to that array. Then
1744 // when the Python pen object is destroyed the array will be
1745 // cleaned up too.
1746 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
1747 PyObject_SetAttrString(_self, "_dashes", strDashes);
1748
1749 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
1750 delete [] dashes;
1751 Py_DECREF(strDashes);
1752 wxPyEndBlockThreads(blocked);
1753 }
1754static bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
1755static bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
d14a1e28 1756
093d3ff1 1757#include <wx/image.h>
b88bce5f 1758
093d3ff1
RD
1759 static char** ConvertListOfStrings(PyObject* listOfStrings) {
1760 char** cArray = NULL;
1761 int count;
1762
1763 if (!PyList_Check(listOfStrings)) {
1764 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
1765 return NULL;
1766 }
1767 count = PyList_Size(listOfStrings);
1768 cArray = new char*[count];
1769
1770 for(int x=0; x<count; x++) {
1771 // TODO: Need some validation and error checking here
1772 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
1773 }
1774 return cArray;
b88bce5f 1775 }
b88bce5f
RD
1776
1777
093d3ff1
RD
1778static wxBitmap *new_wxBitmap(PyObject *listOfStrings){
1779 char** cArray = NULL;
1780 wxBitmap* bmp;
d14a1e28 1781
093d3ff1
RD
1782 cArray = ConvertListOfStrings(listOfStrings);
1783 if (! cArray)
1784 return NULL;
1785 bmp = new wxBitmap(cArray);
1786 delete [] cArray;
1787 return bmp;
1788 }
1789static wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
1790 char* buf;
1791 int length;
1792 PyString_AsStringAndSize(bits, &buf, &length);
1793 return new wxBitmap(buf, width, height, depth);
1794 }
1795static wxSize wxBitmap_GetSize(wxBitmap *self){
1796 wxSize size(self->GetWidth(), self->GetHeight());
1797 return size;
1798 }
1799static void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
1800 wxMask *mask = new wxMask(*self, colour);
1801 self->SetMask(mask);
1802 }
1803static void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
1804 self->SetWidth(size.x);
1805 self->SetHeight(size.y);
1806 }
1807static bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
1808static bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
1809static wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
1810 if ( !colour.Ok() )
1811 return new wxMask(bitmap, *wxBLACK);
1812 else
1813 return new wxMask(bitmap, colour);
1814 }
d14a1e28 1815
093d3ff1 1816#include <wx/iconbndl.h>
d14a1e28 1817
093d3ff1
RD
1818static wxIcon *new_wxIcon(wxBitmap const &bmp){
1819 wxIcon* icon = new wxIcon();
1820 icon->CopyFromBitmap(bmp);
1821 return icon;
1822 }
1823static wxIcon *new_wxIcon(PyObject *listOfStrings){
1824 char** cArray = NULL;
1825 wxIcon* icon;
d14a1e28 1826
093d3ff1
RD
1827 cArray = ConvertListOfStrings(listOfStrings);
1828 if (! cArray)
1829 return NULL;
1830 icon = new wxIcon(cArray);
1831 delete [] cArray;
1832 return icon;
1833 }
1834static wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
d14a1e28
RD
1835
1836
d14a1e28 1837
093d3ff1 1838 return new wxIconLocation(*filename);
d14a1e28 1839
093d3ff1
RD
1840 }
1841static void wxIconLocation_SetIndex(wxIconLocation *self,int num){
d14a1e28
RD
1842
1843
d14a1e28 1844
093d3ff1 1845 // do nothing
d14a1e28 1846
093d3ff1
RD
1847 }
1848static int wxIconLocation_GetIndex(wxIconLocation *self){
b88bce5f
RD
1849
1850
093d3ff1
RD
1851
1852 return -1;
1853
1854 }
1855
1856SWIGINTERNSHORT long
1857SWIG_As_long(PyObject* obj)
1858{
1859 long v;
1860 if (!SWIG_AsVal_long(obj, &v)) {
1861 /*
1862 this is needed to make valgrind/purify happier.
1863 */
1864 memset((void*)&v, 0, sizeof(long));
1865 }
1866 return v;
b88bce5f
RD
1867}
1868
093d3ff1
RD
1869
1870SWIGINTERNSHORT int
1871SWIG_Check_long(PyObject* obj)
1872{
1873 return SWIG_AsVal_long(obj, (long*)0);
1874}
b88bce5f 1875
7557b9b5 1876static wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
093d3ff1 1877#ifdef __WXGTK__
7557b9b5
RD
1878 wxImage img(cursorName, type);
1879 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
1880 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
1881 return new wxCursor(img);
093d3ff1 1882#else
7557b9b5 1883 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
093d3ff1
RD
1884#endif
1885 }
1886
1887
1888static void wxRegionIterator_Next(wxRegionIterator *self){
1889 (*self) ++;
1890 }
1891static bool wxRegionIterator___nonzero__(wxRegionIterator *self){
1892 return self->operator bool();
1893 }
1894
1895#include <wx/fontutil.h>
1896#include <wx/fontmap.h>
1897#include <wx/fontenum.h>
1898
1899static wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
1900 return self->ToString();
1901 }
1902
1903 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
1904 static wxNativeEncodingInfo info;
1905 if ( wxGetNativeFontEncoding(encoding, &info) )
1906 return &info;
1907 else
1908 return NULL;
1909 }
1910
1911static PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
1912 wxFontEncoding alt_enc;
1913 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
1914 return PyInt_FromLong(alt_enc);
1915 else {
1916 Py_INCREF(Py_None);
1917 return Py_None;
1918 }
1919 }
1920static wxFont *new_wxFont(wxString const &info){
a97cefba
RD
1921 wxNativeFontInfo nfi;
1922 nfi.FromString(info);
1923 return new wxFont(nfi);
1924 }
093d3ff1 1925static wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
1926 return wxFont::New(pointSize, family, flags, face, encoding);
1927 }
093d3ff1 1928static wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
1929 return wxFontBase::New(pixelSize, family,
1930 style, weight, underlined,
1931 face, encoding);
1932 }
73c8ef6a 1933static wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
1934 return wxFontBase::New(pixelSize, family, flags, face, encoding);
1935 }
093d3ff1
RD
1936static bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
1937static bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
1938
1939class wxPyFontEnumerator : public wxFontEnumerator {
1940public:
1941 wxPyFontEnumerator() {}
1942 ~wxPyFontEnumerator() {}
1943
1944 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
1945 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
1946
1947 PYPRIVATE;
1948};
1949
1950IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
1951IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
1952
1953
1954static PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
1955 wxArrayString* arr = self->GetEncodings();
1956 if (arr)
1957 return wxArrayString2PyList_helper(*arr);
1958 else
1959 return PyList_New(0);
1960 }
1961static PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
1962 wxArrayString* arr = self->GetFacenames();
1963 if (arr)
1964 return wxArrayString2PyList_helper(*arr);
1965 else
1966 return PyList_New(0);
1967 }
1968
1969#include <locale.h>
1970
1971static wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
1972 wxLocale* loc;
1973 if (language == -1)
1974 loc = new wxLocale();
1975 else
1976 loc = new wxLocale(language, flags);
1977 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
1978 // for the floating point conversions and such to work right.
1979#if PY_VERSION_HEX < 0x02040000
1980 setlocale(LC_NUMERIC, "C");
1981#endif
1982 return loc;
1983 }
1984static bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
1985 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
1986 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
1987 // for the floating point conversions and such to work right.
1988#if PY_VERSION_HEX < 0x02040000
1989 setlocale(LC_NUMERIC, "C");
1990#endif
1991 return rc;
1992 }
1993static bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
1994 bool rc = self->Init(language, flags);
1995 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
1996 // for the floating point conversions and such to work right.
1997#if PY_VERSION_HEX < 0x02040000
1998 setlocale(LC_NUMERIC, "C");
1999#endif
2000 return rc;
2001 }
2002
2003#include "wx/wxPython/pydrawxxx.h"
2004
2005static wxColour wxDC_GetPixel(wxDC *self,int x,int y){
2006 wxColour col;
2007 self->GetPixel(x, y, &col);
2008 return col;
2009 }
2010static wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
2011 wxColour col;
2012 self->GetPixel(pt, &col);
2013 return col;
2014 }
2015
2016SWIGINTERN int
2017SWIG_AsVal_double(PyObject *obj, double* val)
2018{
2019 if (PyNumber_Check(obj)) {
2020 if (val) *val = PyFloat_AsDouble(obj);
2021 return 1;
d14a1e28 2022 }
093d3ff1
RD
2023 else {
2024 SWIG_type_error("number", obj);
2025 }
2026 return 0;
2027}
2028
2029
2030SWIGINTERNSHORT double
2031SWIG_As_double(PyObject* obj)
2032{
2033 double v;
2034 if (!SWIG_AsVal_double(obj, &v)) {
2035 /*
2036 this is needed to make valgrind/purify happier.
2037 */
2038 memset((void*)&v, 0, sizeof(double));
2039 }
2040 return v;
2041}
2042
2043
2044SWIGINTERNSHORT int
2045SWIG_Check_double(PyObject* obj)
2046{
2047 return SWIG_AsVal_double(obj, (double*)0);
2048}
2049
2050static wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
2051 wxRect rv;
2052 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
2053 return rv;
2054 }
2055
2056static wxRect wxDC_GetClippingRect(wxDC *self){
2057 wxRect rect;
2058 self->GetClippingBox(rect);
2059 return rect;
2060 }
2061static wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
2062 wxArrayInt widths;
2063 self->GetPartialTextExtents(text, widths);
2064 return widths;
2065 }
2066
2067 /*@/opt/swig/share/swig/1.3.24/python/pymacros.swg,66,SWIG_define@*/
2068#define SWIG_From_double PyFloat_FromDouble
2069/*@@*/
2070
2071
2072static void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
2073 self->SetLogicalOrigin(point.x, point.y);
2074 }
2075static void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
2076 self->SetDeviceOrigin(point.x, point.y);
2077 }
2078static void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
2079 self->CalcBoundingBox(point.x, point.y);
2080 }
2081static PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
2082 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
2083 }
2084static PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
2085 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
2086 }
2087static PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
2088 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
2089 }
2090static PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
2091 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
2092 }
2093static PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
2094 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
2095 }
2096static PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
2097 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
2098 }
2099
2100static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
2101 *x1 = dc->MinX();
2102 *y1 = dc->MinY();
2103 *x2 = dc->MaxX();
2104 *y2 = dc->MaxY();
2105}
2106
2107
2108#include <wx/dcbuffer.h>
2109
2110
2111#include <wx/dcps.h>
2112
2113
2114class wxMetaFile : public wxObject {
2115public:
2116 wxMetaFile(const wxString&)
2117 { wxPyRaiseNotImplemented(); }
2118};
2119
2120class wxMetaFileDC : public wxClientDC {
2121public:
2122 wxMetaFileDC(const wxString&, int, int, const wxString&)
2123 { wxPyRaiseNotImplemented(); }
2124};
2125
2126
2127
2128class wxPrinterDC : public wxClientDC {
2129public:
2130 wxPrinterDC(const wxPrintData&)
2131 { wxPyRaiseNotImplemented(); }
2132
2133};
2134
2135
2136
2137static void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
2138 self->AddColour(name, wxColour(red, green, blue));
2139 }
2140
2141#include <wx/effects.h>
2142
2143#ifdef __cplusplus
2144extern "C" {
2145#endif
2146static PyObject *_wrap_new_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) {
2147 PyObject *resultobj;
2148 wxGDIObject *result;
2149 char *kwnames[] = {
2150 NULL
2151 };
2152
2153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
d14a1e28 2154 {
093d3ff1 2155 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28 2156 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 2157 result = (wxGDIObject *)new wxGDIObject();
d14a1e28
RD
2158
2159 wxPyEndAllowThreads(__tstate);
2160 if (PyErr_Occurred()) SWIG_fail;
2161 }
093d3ff1 2162 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1);
d14a1e28
RD
2163 return resultobj;
2164 fail:
2165 return NULL;
2166}
2167
2168
093d3ff1 2169static PyObject *_wrap_delete_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 2170 PyObject *resultobj;
093d3ff1 2171 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
d14a1e28 2172 PyObject * obj0 = 0 ;
d14a1e28 2173 char *kwnames[] = {
093d3ff1 2174 (char *) "self", NULL
d14a1e28
RD
2175 };
2176
093d3ff1
RD
2177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
2178 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGDIObject, SWIG_POINTER_EXCEPTION | 0);
2179 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28 2180 {
093d3ff1
RD
2181 PyThreadState* __tstate = wxPyBeginAllowThreads();
2182 delete arg1;
2183
2184 wxPyEndAllowThreads(__tstate);
2185 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 2186 }
093d3ff1
RD
2187 Py_INCREF(Py_None); resultobj = Py_None;
2188 return resultobj;
2189 fail:
2190 return NULL;
2191}
2192
2193
2194static PyObject *_wrap_GDIObject_GetVisible(PyObject *, PyObject *args, PyObject *kwargs) {
2195 PyObject *resultobj;
2196 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
2197 bool result;
2198 PyObject * obj0 = 0 ;
2199 char *kwnames[] = {
2200 (char *) "self", NULL
2201 };
2202
2203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
2204 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGDIObject, SWIG_POINTER_EXCEPTION | 0);
2205 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
2206 {
2207 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 2208 result = (bool)(arg1)->GetVisible();
d14a1e28
RD
2209
2210 wxPyEndAllowThreads(__tstate);
2211 if (PyErr_Occurred()) SWIG_fail;
2212 }
4f89f6a3
RD
2213 {
2214 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2215 }
d14a1e28
RD
2216 return resultobj;
2217 fail:
2218 return NULL;
2219}
2220
2221
093d3ff1 2222static PyObject *_wrap_GDIObject_SetVisible(PyObject *, PyObject *args, PyObject *kwargs) {
c9c7117a 2223 PyObject *resultobj;
093d3ff1
RD
2224 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
2225 bool arg2 ;
c9c7117a 2226 PyObject * obj0 = 0 ;
093d3ff1 2227 PyObject * obj1 = 0 ;
c9c7117a 2228 char *kwnames[] = {
093d3ff1 2229 (char *) "self",(char *) "visible", NULL
c9c7117a
RD
2230 };
2231
093d3ff1
RD
2232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
2233 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGDIObject, SWIG_POINTER_EXCEPTION | 0);
2234 if (SWIG_arg_fail(1)) SWIG_fail;
2235 {
2236 arg2 = (bool)(SWIG_As_bool(obj1));
2237 if (SWIG_arg_fail(2)) SWIG_fail;
2238 }
c9c7117a
RD
2239 {
2240 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 2241 (arg1)->SetVisible(arg2);
c9c7117a
RD
2242
2243 wxPyEndAllowThreads(__tstate);
2244 if (PyErr_Occurred()) SWIG_fail;
2245 }
093d3ff1 2246 Py_INCREF(Py_None); resultobj = Py_None;
c9c7117a
RD
2247 return resultobj;
2248 fail:
c9c7117a
RD
2249 return NULL;
2250}
2251
2252
093d3ff1 2253static PyObject *_wrap_GDIObject_IsNull(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 2254 PyObject *resultobj;
093d3ff1
RD
2255 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
2256 bool result;
d14a1e28
RD
2257 PyObject * obj0 = 0 ;
2258 char *kwnames[] = {
2259 (char *) "self", NULL
2260 };
2261
093d3ff1
RD
2262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
2263 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGDIObject, SWIG_POINTER_EXCEPTION | 0);
2264 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
2265 {
2266 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 2267 result = (bool)(arg1)->IsNull();
d14a1e28
RD
2268
2269 wxPyEndAllowThreads(__tstate);
2270 if (PyErr_Occurred()) SWIG_fail;
2271 }
093d3ff1
RD
2272 {
2273 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2274 }
d14a1e28
RD
2275 return resultobj;
2276 fail:
2277 return NULL;
2278}
2279
2280
093d3ff1 2281static PyObject * GDIObject_swigregister(PyObject *, PyObject *args) {
d14a1e28
RD
2282 PyObject *obj;
2283 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
093d3ff1 2284 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
d14a1e28
RD
2285 Py_INCREF(obj);
2286 return Py_BuildValue((char *)"");
2287}
093d3ff1 2288static PyObject *_wrap_new_Colour(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 2289 PyObject *resultobj;
093d3ff1
RD
2290 byte arg1 = (byte) 0 ;
2291 byte arg2 = (byte) 0 ;
2292 byte arg3 = (byte) 0 ;
2293 wxColour *result;
994141e6 2294 PyObject * obj0 = 0 ;
d14a1e28
RD
2295 PyObject * obj1 = 0 ;
2296 PyObject * obj2 = 0 ;
d14a1e28 2297 char *kwnames[] = {
093d3ff1 2298 (char *) "red",(char *) "green",(char *) "blue", NULL
d14a1e28
RD
2299 };
2300
093d3ff1
RD
2301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
2302 if (obj0) {
2303 {
2304 arg1 = (byte)(SWIG_As_unsigned_SS_char(obj0));
2305 if (SWIG_arg_fail(1)) SWIG_fail;
2306 }
2307 }
2308 if (obj1) {
2309 {
2310 arg2 = (byte)(SWIG_As_unsigned_SS_char(obj1));
2311 if (SWIG_arg_fail(2)) SWIG_fail;
2312 }
2313 }
2314 if (obj2) {
2315 {
2316 arg3 = (byte)(SWIG_As_unsigned_SS_char(obj2));
2317 if (SWIG_arg_fail(3)) SWIG_fail;
2318 }
2319 }
d14a1e28
RD
2320 {
2321 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 2322 result = (wxColour *)new wxColour(arg1,arg2,arg3);
d14a1e28
RD
2323
2324 wxPyEndAllowThreads(__tstate);
110da5b0 2325 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 2326 }
093d3ff1 2327 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
2328 return resultobj;
2329 fail:
2330 return NULL;
2331}
2332
2333
093d3ff1 2334static PyObject *_wrap_new_NamedColour(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 2335 PyObject *resultobj;
093d3ff1
RD
2336 wxString *arg1 = 0 ;
2337 wxColour *result;
2338 bool temp1 = false ;
d14a1e28
RD
2339 PyObject * obj0 = 0 ;
2340 char *kwnames[] = {
093d3ff1 2341 (char *) "colorName", NULL
d14a1e28
RD
2342 };
2343
093d3ff1
RD
2344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
2345 {
2346 arg1 = wxString_in_helper(obj0);
2347 if (arg1 == NULL) SWIG_fail;
2348 temp1 = true;
2349 }
d14a1e28 2350 {
093d3ff1 2351 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28 2352 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 2353 result = (wxColour *)new wxColour((wxString const &)*arg1);
d14a1e28
RD
2354
2355 wxPyEndAllowThreads(__tstate);
2356 if (PyErr_Occurred()) SWIG_fail;
2357 }
093d3ff1
RD
2358 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
2359 {
2360 if (temp1)
2361 delete arg1;
2362 }
d14a1e28
RD
2363 return resultobj;
2364 fail:
093d3ff1
RD
2365 {
2366 if (temp1)
2367 delete arg1;
2368 }
d14a1e28
RD
2369 return NULL;
2370}
2371
2372
093d3ff1 2373static PyObject *_wrap_new_ColourRGB(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 2374 PyObject *resultobj;
093d3ff1
RD
2375 unsigned long arg1 ;
2376 wxColour *result;
d14a1e28 2377 PyObject * obj0 = 0 ;
d14a1e28 2378 char *kwnames[] = {
093d3ff1 2379 (char *) "colRGB", NULL
d14a1e28
RD
2380 };
2381
093d3ff1
RD
2382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
2383 {
2384 arg1 = (unsigned long)(SWIG_As_unsigned_SS_long(obj0));
2385 if (SWIG_arg_fail(1)) SWIG_fail;
2386 }
d14a1e28
RD
2387 {
2388 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 2389 result = (wxColour *)new wxColour(arg1);
d14a1e28
RD
2390
2391 wxPyEndAllowThreads(__tstate);
2392 if (PyErr_Occurred()) SWIG_fail;
2393 }
093d3ff1 2394 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
2395 return resultobj;
2396 fail:
2397 return NULL;
2398}
2399
2400
093d3ff1 2401static PyObject *_wrap_delete_Colour(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 2402 PyObject *resultobj;
093d3ff1 2403 wxColour *arg1 = (wxColour *) 0 ;
d14a1e28
RD
2404 PyObject * obj0 = 0 ;
2405 char *kwnames[] = {
093d3ff1 2406 (char *) "self", NULL
d14a1e28
RD
2407 };
2408
093d3ff1
RD
2409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
2410 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2411 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
2412 {
2413 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 2414 delete arg1;
d14a1e28
RD
2415
2416 wxPyEndAllowThreads(__tstate);
2417 if (PyErr_Occurred()) SWIG_fail;
2418 }
093d3ff1 2419 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
2420 return resultobj;
2421 fail:
2422 return NULL;
2423}
2424
2425
093d3ff1 2426static PyObject *_wrap_Colour_Red(PyObject *, PyObject *args, PyObject *kwargs) {
5cbf236d 2427 PyObject *resultobj;
093d3ff1
RD
2428 wxColour *arg1 = (wxColour *) 0 ;
2429 byte result;
5cbf236d
RD
2430 PyObject * obj0 = 0 ;
2431 char *kwnames[] = {
2432 (char *) "self", NULL
2433 };
2434
093d3ff1
RD
2435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
2436 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2437 if (SWIG_arg_fail(1)) SWIG_fail;
5cbf236d
RD
2438 {
2439 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 2440 result = (byte)(arg1)->Red();
5cbf236d
RD
2441
2442 wxPyEndAllowThreads(__tstate);
2443 if (PyErr_Occurred()) SWIG_fail;
2444 }
093d3ff1
RD
2445 {
2446 resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
2447 }
5cbf236d
RD
2448 return resultobj;
2449 fail:
2450 return NULL;
2451}
2452
2453
093d3ff1 2454static PyObject *_wrap_Colour_Green(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 2455 PyObject *resultobj;
093d3ff1
RD
2456 wxColour *arg1 = (wxColour *) 0 ;
2457 byte result;
d14a1e28
RD
2458 PyObject * obj0 = 0 ;
2459 char *kwnames[] = {
2460 (char *) "self", NULL
2461 };
2462
093d3ff1
RD
2463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
2464 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2465 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
2466 {
2467 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 2468 result = (byte)(arg1)->Green();
d14a1e28
RD
2469
2470 wxPyEndAllowThreads(__tstate);
2471 if (PyErr_Occurred()) SWIG_fail;
2472 }
4f89f6a3 2473 {
093d3ff1 2474 resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
4f89f6a3 2475 }
d14a1e28
RD
2476 return resultobj;
2477 fail:
2478 return NULL;
2479}
2480
2481
093d3ff1 2482static PyObject *_wrap_Colour_Blue(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 2483 PyObject *resultobj;
093d3ff1
RD
2484 wxColour *arg1 = (wxColour *) 0 ;
2485 byte result;
d14a1e28
RD
2486 PyObject * obj0 = 0 ;
2487 char *kwnames[] = {
093d3ff1 2488 (char *) "self", NULL
d14a1e28
RD
2489 };
2490
093d3ff1
RD
2491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
2492 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2493 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
2494 {
2495 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 2496 result = (byte)(arg1)->Blue();
d14a1e28
RD
2497
2498 wxPyEndAllowThreads(__tstate);
110da5b0 2499 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 2500 }
093d3ff1
RD
2501 {
2502 resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
2503 }
d14a1e28
RD
2504 return resultobj;
2505 fail:
2506 return NULL;
2507}
2508
2509
093d3ff1 2510static PyObject *_wrap_Colour_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 2511 PyObject *resultobj;
093d3ff1
RD
2512 wxColour *arg1 = (wxColour *) 0 ;
2513 bool result;
d14a1e28
RD
2514 PyObject * obj0 = 0 ;
2515 char *kwnames[] = {
2516 (char *) "self", NULL
2517 };
2518
093d3ff1
RD
2519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
2520 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2521 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
2522 {
2523 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 2524 result = (bool)(arg1)->Ok();
d14a1e28
RD
2525
2526 wxPyEndAllowThreads(__tstate);
2527 if (PyErr_Occurred()) SWIG_fail;
2528 }
093d3ff1
RD
2529 {
2530 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2531 }
d14a1e28
RD
2532 return resultobj;
2533 fail:
2534 return NULL;
2535}
2536
2537
093d3ff1 2538static PyObject *_wrap_Colour_Set(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 2539 PyObject *resultobj;
093d3ff1
RD
2540 wxColour *arg1 = (wxColour *) 0 ;
2541 byte arg2 ;
2542 byte arg3 ;
2543 byte arg4 ;
d14a1e28 2544 PyObject * obj0 = 0 ;
093d3ff1
RD
2545 PyObject * obj1 = 0 ;
2546 PyObject * obj2 = 0 ;
2547 PyObject * obj3 = 0 ;
d14a1e28 2548 char *kwnames[] = {
093d3ff1 2549 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
d14a1e28
RD
2550 };
2551
093d3ff1
RD
2552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2553 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2554 if (SWIG_arg_fail(1)) SWIG_fail;
2555 {
2556 arg2 = (byte)(SWIG_As_unsigned_SS_char(obj1));
2557 if (SWIG_arg_fail(2)) SWIG_fail;
2558 }
2559 {
2560 arg3 = (byte)(SWIG_As_unsigned_SS_char(obj2));
2561 if (SWIG_arg_fail(3)) SWIG_fail;
2562 }
2563 {
2564 arg4 = (byte)(SWIG_As_unsigned_SS_char(obj3));
2565 if (SWIG_arg_fail(4)) SWIG_fail;
2566 }
d14a1e28
RD
2567 {
2568 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 2569 (arg1)->Set(arg2,arg3,arg4);
d14a1e28
RD
2570
2571 wxPyEndAllowThreads(__tstate);
2572 if (PyErr_Occurred()) SWIG_fail;
2573 }
093d3ff1 2574 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
2575 return resultobj;
2576 fail:
2577 return NULL;
2578}
2579
2580
093d3ff1 2581static PyObject *_wrap_Colour_SetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 2582 PyObject *resultobj;
093d3ff1
RD
2583 wxColour *arg1 = (wxColour *) 0 ;
2584 unsigned long arg2 ;
d14a1e28 2585 PyObject * obj0 = 0 ;
093d3ff1 2586 PyObject * obj1 = 0 ;
d14a1e28 2587 char *kwnames[] = {
093d3ff1 2588 (char *) "self",(char *) "colRGB", NULL
d14a1e28
RD
2589 };
2590
093d3ff1
RD
2591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
2592 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2593 if (SWIG_arg_fail(1)) SWIG_fail;
2594 {
2595 arg2 = (unsigned long)(SWIG_As_unsigned_SS_long(obj1));
2596 if (SWIG_arg_fail(2)) SWIG_fail;
2597 }
d14a1e28
RD
2598 {
2599 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 2600 (arg1)->Set(arg2);
d14a1e28
RD
2601
2602 wxPyEndAllowThreads(__tstate);
2603 if (PyErr_Occurred()) SWIG_fail;
2604 }
093d3ff1 2605 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
2606 return resultobj;
2607 fail:
2608 return NULL;
2609}
2610
2611
093d3ff1 2612static PyObject *_wrap_Colour_SetFromName(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 2613 PyObject *resultobj;
093d3ff1
RD
2614 wxColour *arg1 = (wxColour *) 0 ;
2615 wxString *arg2 = 0 ;
2616 bool temp2 = false ;
d14a1e28 2617 PyObject * obj0 = 0 ;
093d3ff1 2618 PyObject * obj1 = 0 ;
d14a1e28 2619 char *kwnames[] = {
093d3ff1 2620 (char *) "self",(char *) "colourName", NULL
d14a1e28
RD
2621 };
2622
093d3ff1
RD
2623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail;
2624 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2625 if (SWIG_arg_fail(1)) SWIG_fail;
2626 {
2627 arg2 = wxString_in_helper(obj1);
2628 if (arg2 == NULL) SWIG_fail;
2629 temp2 = true;
2630 }
d14a1e28
RD
2631 {
2632 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 2633 (arg1)->InitFromName((wxString const &)*arg2);
d14a1e28
RD
2634
2635 wxPyEndAllowThreads(__tstate);
2636 if (PyErr_Occurred()) SWIG_fail;
2637 }
093d3ff1
RD
2638 Py_INCREF(Py_None); resultobj = Py_None;
2639 {
2640 if (temp2)
2641 delete arg2;
2642 }
d14a1e28
RD
2643 return resultobj;
2644 fail:
093d3ff1
RD
2645 {
2646 if (temp2)
2647 delete arg2;
2648 }
d14a1e28
RD
2649 return NULL;
2650}
2651
2652
093d3ff1 2653static PyObject *_wrap_Colour_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 2654 PyObject *resultobj;
093d3ff1
RD
2655 wxColour *arg1 = (wxColour *) 0 ;
2656 long result;
d14a1e28
RD
2657 PyObject * obj0 = 0 ;
2658 char *kwnames[] = {
2659 (char *) "self", NULL
2660 };
2661
093d3ff1
RD
2662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail;
2663 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2664 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
2665 {
2666 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 2667 result = (long)((wxColour const *)arg1)->GetPixel();
d14a1e28
RD
2668
2669 wxPyEndAllowThreads(__tstate);
2670 if (PyErr_Occurred()) SWIG_fail;
2671 }
093d3ff1
RD
2672 {
2673 resultobj = SWIG_From_long((long)(result));
2674 }
d14a1e28
RD
2675 return resultobj;
2676 fail:
2677 return NULL;
2678}
2679
2680
093d3ff1 2681static PyObject *_wrap_Colour___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 2682 PyObject *resultobj;
093d3ff1
RD
2683 wxColour *arg1 = (wxColour *) 0 ;
2684 wxColour *arg2 = 0 ;
2685 bool result;
2686 wxColour temp2 ;
d14a1e28 2687 PyObject * obj0 = 0 ;
093d3ff1 2688 PyObject * obj1 = 0 ;
d14a1e28 2689 char *kwnames[] = {
093d3ff1 2690 (char *) "self",(char *) "colour", NULL
d14a1e28
RD
2691 };
2692
093d3ff1
RD
2693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
2694 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2695 if (SWIG_arg_fail(1)) SWIG_fail;
2696 {
2697 arg2 = &temp2;
2698 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2699 }
d14a1e28
RD
2700 {
2701 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 2702 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
d14a1e28
RD
2703
2704 wxPyEndAllowThreads(__tstate);
2705 if (PyErr_Occurred()) SWIG_fail;
2706 }
093d3ff1
RD
2707 {
2708 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2709 }
d14a1e28
RD
2710 return resultobj;
2711 fail:
2712 return NULL;
2713}
2714
2715
093d3ff1 2716static PyObject *_wrap_Colour___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 2717 PyObject *resultobj;
093d3ff1
RD
2718 wxColour *arg1 = (wxColour *) 0 ;
2719 wxColour *arg2 = 0 ;
d14a1e28 2720 bool result;
093d3ff1 2721 wxColour temp2 ;
d14a1e28 2722 PyObject * obj0 = 0 ;
093d3ff1 2723 PyObject * obj1 = 0 ;
d14a1e28 2724 char *kwnames[] = {
093d3ff1 2725 (char *) "self",(char *) "colour", NULL
d14a1e28
RD
2726 };
2727
093d3ff1
RD
2728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
2729 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2730 if (SWIG_arg_fail(1)) SWIG_fail;
2731 {
2732 arg2 = &temp2;
2733 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2734 }
d14a1e28
RD
2735 {
2736 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 2737 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
d14a1e28
RD
2738
2739 wxPyEndAllowThreads(__tstate);
2740 if (PyErr_Occurred()) SWIG_fail;
2741 }
4f89f6a3
RD
2742 {
2743 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2744 }
d14a1e28
RD
2745 return resultobj;
2746 fail:
2747 return NULL;
2748}
2749
2750
093d3ff1 2751static PyObject *_wrap_Colour_Get(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 2752 PyObject *resultobj;
093d3ff1
RD
2753 wxColour *arg1 = (wxColour *) 0 ;
2754 PyObject *result;
d14a1e28
RD
2755 PyObject * obj0 = 0 ;
2756 char *kwnames[] = {
093d3ff1 2757 (char *) "self", NULL
d14a1e28
RD
2758 };
2759
093d3ff1
RD
2760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
2761 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2762 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
2763 {
2764 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 2765 result = (PyObject *)wxColour_Get(arg1);
d14a1e28
RD
2766
2767 wxPyEndAllowThreads(__tstate);
2768 if (PyErr_Occurred()) SWIG_fail;
2769 }
093d3ff1 2770 resultobj = result;
d14a1e28
RD
2771 return resultobj;
2772 fail:
2773 return NULL;
2774}
2775
2776
093d3ff1 2777static PyObject *_wrap_Colour_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 2778 PyObject *resultobj;
093d3ff1
RD
2779 wxColour *arg1 = (wxColour *) 0 ;
2780 unsigned long result;
d14a1e28 2781 PyObject * obj0 = 0 ;
d14a1e28 2782 char *kwnames[] = {
093d3ff1 2783 (char *) "self", NULL
d14a1e28
RD
2784 };
2785
093d3ff1
RD
2786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail;
2787 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2788 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
2789 {
2790 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 2791 result = (unsigned long)wxColour_GetRGB(arg1);
d14a1e28
RD
2792
2793 wxPyEndAllowThreads(__tstate);
2794 if (PyErr_Occurred()) SWIG_fail;
2795 }
093d3ff1
RD
2796 {
2797 resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result));
2798 }
d14a1e28
RD
2799 return resultobj;
2800 fail:
2801 return NULL;
2802}
2803
2804
093d3ff1
RD
2805static PyObject * Colour_swigregister(PyObject *, PyObject *args) {
2806 PyObject *obj;
2807 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2808 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
2809 Py_INCREF(obj);
2810 return Py_BuildValue((char *)"");
2811}
2812static PyObject *_wrap_new_Palette(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 2813 PyObject *resultobj;
093d3ff1
RD
2814 int arg1 ;
2815 unsigned char *arg2 = (unsigned char *) 0 ;
2816 unsigned char *arg3 = (unsigned char *) 0 ;
2817 unsigned char *arg4 = (unsigned char *) 0 ;
2818 wxPalette *result;
d14a1e28 2819 PyObject * obj0 = 0 ;
994141e6 2820 PyObject * obj1 = 0 ;
093d3ff1
RD
2821 PyObject * obj2 = 0 ;
2822 PyObject * obj3 = 0 ;
d14a1e28 2823 char *kwnames[] = {
093d3ff1 2824 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
d14a1e28
RD
2825 };
2826
093d3ff1
RD
2827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2828 {
2829 arg1 = (int)(SWIG_As_int(obj0));
2830 if (SWIG_arg_fail(1)) SWIG_fail;
2831 }
2832 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_unsigned_char, SWIG_POINTER_EXCEPTION | 0);
2833 if (SWIG_arg_fail(2)) SWIG_fail;
2834 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_unsigned_char, SWIG_POINTER_EXCEPTION | 0);
2835 if (SWIG_arg_fail(3)) SWIG_fail;
2836 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_unsigned_char, SWIG_POINTER_EXCEPTION | 0);
2837 if (SWIG_arg_fail(4)) SWIG_fail;
d14a1e28 2838 {
093d3ff1 2839 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28 2840 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 2841 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
d14a1e28
RD
2842
2843 wxPyEndAllowThreads(__tstate);
2844 if (PyErr_Occurred()) SWIG_fail;
2845 }
093d3ff1 2846 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1);
d14a1e28
RD
2847 return resultobj;
2848 fail:
2849 return NULL;
2850}
2851
2852
093d3ff1 2853static PyObject *_wrap_delete_Palette(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 2854 PyObject *resultobj;
093d3ff1 2855 wxPalette *arg1 = (wxPalette *) 0 ;
d14a1e28
RD
2856 PyObject * obj0 = 0 ;
2857 char *kwnames[] = {
093d3ff1 2858 (char *) "self", NULL
d14a1e28
RD
2859 };
2860
093d3ff1
RD
2861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
2862 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0);
2863 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
2864 {
2865 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 2866 delete arg1;
d14a1e28
RD
2867
2868 wxPyEndAllowThreads(__tstate);
2869 if (PyErr_Occurred()) SWIG_fail;
2870 }
2871 Py_INCREF(Py_None); resultobj = Py_None;
2872 return resultobj;
2873 fail:
2874 return NULL;
2875}
2876
2877
093d3ff1 2878static PyObject *_wrap_Palette_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 2879 PyObject *resultobj;
093d3ff1
RD
2880 wxPalette *arg1 = (wxPalette *) 0 ;
2881 byte arg2 ;
2882 byte arg3 ;
2883 byte arg4 ;
2884 int result;
d14a1e28 2885 PyObject * obj0 = 0 ;
994141e6 2886 PyObject * obj1 = 0 ;
093d3ff1
RD
2887 PyObject * obj2 = 0 ;
2888 PyObject * obj3 = 0 ;
d14a1e28 2889 char *kwnames[] = {
093d3ff1 2890 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
d14a1e28
RD
2891 };
2892
093d3ff1
RD
2893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2894 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0);
2895 if (SWIG_arg_fail(1)) SWIG_fail;
2896 {
2897 arg2 = (byte)(SWIG_As_unsigned_SS_char(obj1));
2898 if (SWIG_arg_fail(2)) SWIG_fail;
2899 }
2900 {
2901 arg3 = (byte)(SWIG_As_unsigned_SS_char(obj2));
2902 if (SWIG_arg_fail(3)) SWIG_fail;
2903 }
2904 {
2905 arg4 = (byte)(SWIG_As_unsigned_SS_char(obj3));
2906 if (SWIG_arg_fail(4)) SWIG_fail;
2907 }
d14a1e28
RD
2908 {
2909 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 2910 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
d14a1e28
RD
2911
2912 wxPyEndAllowThreads(__tstate);
2913 if (PyErr_Occurred()) SWIG_fail;
2914 }
093d3ff1
RD
2915 {
2916 resultobj = SWIG_From_int((int)(result));
2917 }
d14a1e28
RD
2918 return resultobj;
2919 fail:
2920 return NULL;
2921}
2922
2923
093d3ff1 2924static PyObject *_wrap_Palette_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 2925 PyObject *resultobj;
093d3ff1 2926 wxPalette *arg1 = (wxPalette *) 0 ;
d14a1e28 2927 int arg2 ;
093d3ff1
RD
2928 byte *arg3 = (byte *) 0 ;
2929 byte *arg4 = (byte *) 0 ;
2930 byte *arg5 = (byte *) 0 ;
2931 bool result;
2932 byte temp3 ;
2933 int res3 = 0 ;
2934 byte temp4 ;
2935 int res4 = 0 ;
2936 byte temp5 ;
2937 int res5 = 0 ;
d14a1e28
RD
2938 PyObject * obj0 = 0 ;
2939 PyObject * obj1 = 0 ;
2940 char *kwnames[] = {
093d3ff1 2941 (char *) "self",(char *) "pixel", NULL
d14a1e28
RD
2942 };
2943
093d3ff1
RD
2944 arg3 = &temp3; res3 = SWIG_NEWOBJ;
2945 arg4 = &temp4; res4 = SWIG_NEWOBJ;
2946 arg5 = &temp5; res5 = SWIG_NEWOBJ;
2947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
2948 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0);
2949 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28 2950 {
093d3ff1
RD
2951 arg2 = (int)(SWIG_As_int(obj1));
2952 if (SWIG_arg_fail(2)) SWIG_fail;
d14a1e28
RD
2953 }
2954 {
2955 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 2956 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
d14a1e28
RD
2957
2958 wxPyEndAllowThreads(__tstate);
2959 if (PyErr_Occurred()) SWIG_fail;
2960 }
d14a1e28 2961 {
093d3ff1 2962 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28 2963 }
093d3ff1
RD
2964 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
2965 SWIG_From_unsigned_SS_char((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, 0)));
2966 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
2967 SWIG_From_unsigned_SS_char((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, 0)));
2968 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
2969 SWIG_From_unsigned_SS_char((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, 0)));
3adfb63b
RD
2970 return resultobj;
2971 fail:
2972 return NULL;
2973}
2974
2975
093d3ff1 2976static PyObject *_wrap_Palette_GetColoursCount(PyObject *, PyObject *args, PyObject *kwargs) {
c9c7117a 2977 PyObject *resultobj;
093d3ff1 2978 wxPalette *arg1 = (wxPalette *) 0 ;
c9c7117a
RD
2979 int result;
2980 PyObject * obj0 = 0 ;
2981 char *kwnames[] = {
2982 (char *) "self", NULL
2983 };
2984
093d3ff1
RD
2985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_GetColoursCount",kwnames,&obj0)) goto fail;
2986 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0);
2987 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
2988 {
2989 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 2990 result = (int)((wxPalette const *)arg1)->GetColoursCount();
d14a1e28
RD
2991
2992 wxPyEndAllowThreads(__tstate);
2993 if (PyErr_Occurred()) SWIG_fail;
2994 }
d14a1e28 2995 {
093d3ff1 2996 resultobj = SWIG_From_int((int)(result));
d14a1e28 2997 }
d14a1e28
RD
2998 return resultobj;
2999 fail:
3000 return NULL;
3001}
3002
3003
093d3ff1 3004static PyObject *_wrap_Palette_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 3005 PyObject *resultobj;
093d3ff1 3006 wxPalette *arg1 = (wxPalette *) 0 ;
66c033b4 3007 bool result;
d14a1e28 3008 PyObject * obj0 = 0 ;
d14a1e28 3009 char *kwnames[] = {
093d3ff1 3010 (char *) "self", NULL
d14a1e28
RD
3011 };
3012
093d3ff1
RD
3013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
3014 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0);
3015 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
3016 {
3017 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3018 result = (bool)(arg1)->Ok();
d14a1e28
RD
3019
3020 wxPyEndAllowThreads(__tstate);
3021 if (PyErr_Occurred()) SWIG_fail;
3022 }
d14a1e28 3023 {
66c033b4 3024 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
3025 }
3026 return resultobj;
3027 fail:
d14a1e28
RD
3028 return NULL;
3029}
3030
3031
093d3ff1 3032static PyObject * Palette_swigregister(PyObject *, PyObject *args) {
d14a1e28
RD
3033 PyObject *obj;
3034 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
093d3ff1 3035 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
d14a1e28
RD
3036 Py_INCREF(obj);
3037 return Py_BuildValue((char *)"");
3038}
093d3ff1 3039static PyObject *_wrap_new_Pen(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
3040 PyObject *resultobj;
3041 wxColour *arg1 = 0 ;
093d3ff1
RD
3042 int arg2 = (int) 1 ;
3043 int arg3 = (int) wxSOLID ;
3044 wxPen *result;
d14a1e28
RD
3045 wxColour temp1 ;
3046 PyObject * obj0 = 0 ;
994141e6 3047 PyObject * obj1 = 0 ;
093d3ff1 3048 PyObject * obj2 = 0 ;
d14a1e28 3049 char *kwnames[] = {
093d3ff1 3050 (char *) "colour",(char *) "width",(char *) "style", NULL
d14a1e28
RD
3051 };
3052
093d3ff1 3053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28
RD
3054 {
3055 arg1 = &temp1;
3056 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
3057 }
994141e6 3058 if (obj1) {
093d3ff1
RD
3059 {
3060 arg2 = (int)(SWIG_As_int(obj1));
3061 if (SWIG_arg_fail(2)) SWIG_fail;
3062 }
3063 }
3064 if (obj2) {
3065 {
3066 arg3 = (int)(SWIG_As_int(obj2));
3067 if (SWIG_arg_fail(3)) SWIG_fail;
3068 }
994141e6 3069 }
d14a1e28 3070 {
e3b71cb8 3071 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28 3072 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3073 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
d14a1e28
RD
3074
3075 wxPyEndAllowThreads(__tstate);
110da5b0 3076 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 3077 }
093d3ff1 3078 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1);
d14a1e28
RD
3079 return resultobj;
3080 fail:
3081 return NULL;
3082}
3083
3084
093d3ff1 3085static PyObject *_wrap_delete_Pen(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 3086 PyObject *resultobj;
093d3ff1 3087 wxPen *arg1 = (wxPen *) 0 ;
d14a1e28
RD
3088 PyObject * obj0 = 0 ;
3089 char *kwnames[] = {
3090 (char *) "self", NULL
3091 };
3092
093d3ff1
RD
3093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
3094 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3095 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
3096 {
3097 PyThreadState* __tstate = wxPyBeginAllowThreads();
3098 delete arg1;
3099
3100 wxPyEndAllowThreads(__tstate);
3101 if (PyErr_Occurred()) SWIG_fail;
3102 }
3103 Py_INCREF(Py_None); resultobj = Py_None;
3104 return resultobj;
3105 fail:
3106 return NULL;
3107}
3108
3109
093d3ff1 3110static PyObject *_wrap_Pen_GetCap(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 3111 PyObject *resultobj;
093d3ff1
RD
3112 wxPen *arg1 = (wxPen *) 0 ;
3113 int result;
d14a1e28 3114 PyObject * obj0 = 0 ;
d14a1e28 3115 char *kwnames[] = {
093d3ff1 3116 (char *) "self", NULL
d14a1e28
RD
3117 };
3118
093d3ff1
RD
3119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
3120 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3121 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
3122 {
3123 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3124 result = (int)(arg1)->GetCap();
d14a1e28
RD
3125
3126 wxPyEndAllowThreads(__tstate);
3127 if (PyErr_Occurred()) SWIG_fail;
3128 }
093d3ff1
RD
3129 {
3130 resultobj = SWIG_From_int((int)(result));
3131 }
d14a1e28
RD
3132 return resultobj;
3133 fail:
3134 return NULL;
3135}
3136
3137
093d3ff1 3138static PyObject *_wrap_Pen_GetColour(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 3139 PyObject *resultobj;
093d3ff1
RD
3140 wxPen *arg1 = (wxPen *) 0 ;
3141 wxColour result;
d14a1e28
RD
3142 PyObject * obj0 = 0 ;
3143 char *kwnames[] = {
093d3ff1 3144 (char *) "self", NULL
d14a1e28
RD
3145 };
3146
093d3ff1
RD
3147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
3148 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3149 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
3150 {
3151 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3152 result = (arg1)->GetColour();
d14a1e28
RD
3153
3154 wxPyEndAllowThreads(__tstate);
3155 if (PyErr_Occurred()) SWIG_fail;
3156 }
093d3ff1
RD
3157 {
3158 wxColour * resultptr;
3159 resultptr = new wxColour((wxColour &)(result));
3160 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
3161 }
d14a1e28
RD
3162 return resultobj;
3163 fail:
3164 return NULL;
3165}
3166
3167
093d3ff1 3168static PyObject *_wrap_Pen_GetJoin(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 3169 PyObject *resultobj;
093d3ff1
RD
3170 wxPen *arg1 = (wxPen *) 0 ;
3171 int result;
d14a1e28 3172 PyObject * obj0 = 0 ;
d14a1e28 3173 char *kwnames[] = {
093d3ff1 3174 (char *) "self", NULL
d14a1e28
RD
3175 };
3176
093d3ff1
RD
3177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
3178 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3179 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
3180 {
3181 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3182 result = (int)(arg1)->GetJoin();
d14a1e28
RD
3183
3184 wxPyEndAllowThreads(__tstate);
3185 if (PyErr_Occurred()) SWIG_fail;
3186 }
093d3ff1
RD
3187 {
3188 resultobj = SWIG_From_int((int)(result));
3189 }
d14a1e28
RD
3190 return resultobj;
3191 fail:
3192 return NULL;
3193}
3194
3195
093d3ff1 3196static PyObject *_wrap_Pen_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 3197 PyObject *resultobj;
093d3ff1
RD
3198 wxPen *arg1 = (wxPen *) 0 ;
3199 int result;
d14a1e28
RD
3200 PyObject * obj0 = 0 ;
3201 char *kwnames[] = {
3202 (char *) "self", NULL
3203 };
3204
093d3ff1
RD
3205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
3206 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3207 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
3208 {
3209 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3210 result = (int)(arg1)->GetStyle();
d14a1e28
RD
3211
3212 wxPyEndAllowThreads(__tstate);
3213 if (PyErr_Occurred()) SWIG_fail;
3214 }
3215 {
093d3ff1 3216 resultobj = SWIG_From_int((int)(result));
d14a1e28
RD
3217 }
3218 return resultobj;
3219 fail:
3220 return NULL;
3221}
3222
3223
093d3ff1 3224static PyObject *_wrap_Pen_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 3225 PyObject *resultobj;
093d3ff1 3226 wxPen *arg1 = (wxPen *) 0 ;
d14a1e28
RD
3227 int result;
3228 PyObject * obj0 = 0 ;
3229 char *kwnames[] = {
3230 (char *) "self", NULL
3231 };
3232
093d3ff1
RD
3233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
3234 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3235 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
3236 {
3237 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3238 result = (int)(arg1)->GetWidth();
d14a1e28
RD
3239
3240 wxPyEndAllowThreads(__tstate);
3241 if (PyErr_Occurred()) SWIG_fail;
3242 }
093d3ff1
RD
3243 {
3244 resultobj = SWIG_From_int((int)(result));
3245 }
d14a1e28
RD
3246 return resultobj;
3247 fail:
3248 return NULL;
3249}
3250
3251
093d3ff1 3252static PyObject *_wrap_Pen_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 3253 PyObject *resultobj;
093d3ff1
RD
3254 wxPen *arg1 = (wxPen *) 0 ;
3255 bool result;
d14a1e28
RD
3256 PyObject * obj0 = 0 ;
3257 char *kwnames[] = {
3258 (char *) "self", NULL
3259 };
3260
093d3ff1
RD
3261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
3262 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3263 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
3264 {
3265 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3266 result = (bool)(arg1)->Ok();
d14a1e28
RD
3267
3268 wxPyEndAllowThreads(__tstate);
3269 if (PyErr_Occurred()) SWIG_fail;
3270 }
093d3ff1
RD
3271 {
3272 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3273 }
d14a1e28
RD
3274 return resultobj;
3275 fail:
3276 return NULL;
3277}
3278
3279
093d3ff1 3280static PyObject *_wrap_Pen_SetCap(PyObject *, PyObject *args, PyObject *kwargs) {
f78cc896 3281 PyObject *resultobj;
093d3ff1
RD
3282 wxPen *arg1 = (wxPen *) 0 ;
3283 int arg2 ;
f78cc896 3284 PyObject * obj0 = 0 ;
093d3ff1 3285 PyObject * obj1 = 0 ;
f78cc896 3286 char *kwnames[] = {
093d3ff1 3287 (char *) "self",(char *) "cap_style", NULL
f78cc896
RD
3288 };
3289
093d3ff1
RD
3290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
3291 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3292 if (SWIG_arg_fail(1)) SWIG_fail;
3293 {
3294 arg2 = (int)(SWIG_As_int(obj1));
3295 if (SWIG_arg_fail(2)) SWIG_fail;
3296 }
f78cc896
RD
3297 {
3298 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3299 (arg1)->SetCap(arg2);
f78cc896
RD
3300
3301 wxPyEndAllowThreads(__tstate);
3302 if (PyErr_Occurred()) SWIG_fail;
3303 }
093d3ff1 3304 Py_INCREF(Py_None); resultobj = Py_None;
f78cc896
RD
3305 return resultobj;
3306 fail:
3307 return NULL;
3308}
3309
3310
093d3ff1 3311static PyObject *_wrap_Pen_SetColour(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 3312 PyObject *resultobj;
093d3ff1
RD
3313 wxPen *arg1 = (wxPen *) 0 ;
3314 wxColour *arg2 = 0 ;
3315 wxColour temp2 ;
d14a1e28 3316 PyObject * obj0 = 0 ;
093d3ff1 3317 PyObject * obj1 = 0 ;
d14a1e28 3318 char *kwnames[] = {
093d3ff1 3319 (char *) "self",(char *) "colour", NULL
d14a1e28
RD
3320 };
3321
093d3ff1
RD
3322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
3323 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3324 if (SWIG_arg_fail(1)) SWIG_fail;
3325 {
3326 arg2 = &temp2;
3327 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3328 }
d14a1e28
RD
3329 {
3330 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3331 (arg1)->SetColour(*arg2);
d14a1e28
RD
3332
3333 wxPyEndAllowThreads(__tstate);
3334 if (PyErr_Occurred()) SWIG_fail;
3335 }
093d3ff1 3336 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
3337 return resultobj;
3338 fail:
3339 return NULL;
3340}
3341
3342
093d3ff1 3343static PyObject *_wrap_Pen_SetJoin(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 3344 PyObject *resultobj;
093d3ff1
RD
3345 wxPen *arg1 = (wxPen *) 0 ;
3346 int arg2 ;
d14a1e28 3347 PyObject * obj0 = 0 ;
994141e6 3348 PyObject * obj1 = 0 ;
d14a1e28 3349 char *kwnames[] = {
093d3ff1 3350 (char *) "self",(char *) "join_style", NULL
d14a1e28
RD
3351 };
3352
093d3ff1
RD
3353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
3354 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3355 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28 3356 {
093d3ff1
RD
3357 arg2 = (int)(SWIG_As_int(obj1));
3358 if (SWIG_arg_fail(2)) SWIG_fail;
994141e6 3359 }
d14a1e28
RD
3360 {
3361 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3362 (arg1)->SetJoin(arg2);
d14a1e28
RD
3363
3364 wxPyEndAllowThreads(__tstate);
110da5b0 3365 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 3366 }
093d3ff1 3367 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
3368 return resultobj;
3369 fail:
d14a1e28
RD
3370 return NULL;
3371}
3372
3373
093d3ff1 3374static PyObject *_wrap_Pen_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 3375 PyObject *resultobj;
093d3ff1
RD
3376 wxPen *arg1 = (wxPen *) 0 ;
3377 int arg2 ;
d14a1e28 3378 PyObject * obj0 = 0 ;
093d3ff1 3379 PyObject * obj1 = 0 ;
d14a1e28 3380 char *kwnames[] = {
093d3ff1 3381 (char *) "self",(char *) "style", NULL
d14a1e28
RD
3382 };
3383
093d3ff1
RD
3384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
3385 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3386 if (SWIG_arg_fail(1)) SWIG_fail;
3387 {
3388 arg2 = (int)(SWIG_As_int(obj1));
3389 if (SWIG_arg_fail(2)) SWIG_fail;
3390 }
d14a1e28
RD
3391 {
3392 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3393 (arg1)->SetStyle(arg2);
d14a1e28
RD
3394
3395 wxPyEndAllowThreads(__tstate);
3396 if (PyErr_Occurred()) SWIG_fail;
3397 }
3398 Py_INCREF(Py_None); resultobj = Py_None;
3399 return resultobj;
3400 fail:
3401 return NULL;
3402}
3403
3404
093d3ff1 3405static PyObject *_wrap_Pen_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
66c033b4 3406 PyObject *resultobj;
093d3ff1 3407 wxPen *arg1 = (wxPen *) 0 ;
66c033b4 3408 int arg2 ;
66c033b4
RD
3409 PyObject * obj0 = 0 ;
3410 PyObject * obj1 = 0 ;
66c033b4 3411 char *kwnames[] = {
093d3ff1 3412 (char *) "self",(char *) "width", NULL
66c033b4
RD
3413 };
3414
093d3ff1
RD
3415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3416 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3417 if (SWIG_arg_fail(1)) SWIG_fail;
3418 {
3419 arg2 = (int)(SWIG_As_int(obj1));
3420 if (SWIG_arg_fail(2)) SWIG_fail;
66c033b4
RD
3421 }
3422 {
3423 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3424 (arg1)->SetWidth(arg2);
66c033b4
RD
3425
3426 wxPyEndAllowThreads(__tstate);
110da5b0 3427 if (PyErr_Occurred()) SWIG_fail;
66c033b4 3428 }
093d3ff1 3429 Py_INCREF(Py_None); resultobj = Py_None;
66c033b4
RD
3430 return resultobj;
3431 fail:
3432 return NULL;
3433}
3434
3435
093d3ff1 3436static PyObject *_wrap_Pen_SetDashes(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 3437 PyObject *resultobj;
093d3ff1
RD
3438 wxPen *arg1 = (wxPen *) 0 ;
3439 int arg2 ;
3440 wxDash *arg3 = (wxDash *) 0 ;
d14a1e28 3441 PyObject * obj0 = 0 ;
093d3ff1 3442 PyObject * obj1 = 0 ;
d14a1e28 3443 char *kwnames[] = {
093d3ff1 3444 (char *) "self",(char *) "dashes", NULL
d14a1e28
RD
3445 };
3446
093d3ff1
RD
3447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
3448 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3449 if (SWIG_arg_fail(1)) SWIG_fail;
3450 {
3451 arg2 = PyList_Size(obj1);
3452 arg3 = (wxDash*)byte_LIST_helper(obj1);
3453 if (arg3 == NULL) SWIG_fail;
d14a1e28
RD
3454 }
3455 {
3456 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3457 (arg1)->SetDashes(arg2,arg3);
d14a1e28
RD
3458
3459 wxPyEndAllowThreads(__tstate);
110da5b0 3460 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 3461 }
093d3ff1
RD
3462 Py_INCREF(Py_None); resultobj = Py_None;
3463 {
3464 if (arg3) delete [] arg3;
3465 }
d14a1e28
RD
3466 return resultobj;
3467 fail:
093d3ff1
RD
3468 {
3469 if (arg3) delete [] arg3;
3470 }
d14a1e28
RD
3471 return NULL;
3472}
3473
3474
093d3ff1 3475static PyObject *_wrap_Pen_GetDashes(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 3476 PyObject *resultobj;
093d3ff1
RD
3477 wxPen *arg1 = (wxPen *) 0 ;
3478 PyObject *result;
d14a1e28
RD
3479 PyObject * obj0 = 0 ;
3480 char *kwnames[] = {
093d3ff1 3481 (char *) "self", NULL
d14a1e28
RD
3482 };
3483
093d3ff1
RD
3484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
3485 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3486 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
3487 {
3488 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3489 result = (PyObject *)wxPen_GetDashes(arg1);
d14a1e28
RD
3490
3491 wxPyEndAllowThreads(__tstate);
110da5b0 3492 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 3493 }
093d3ff1 3494 resultobj = result;
d14a1e28
RD
3495 return resultobj;
3496 fail:
3497 return NULL;
3498}
3499
3500
093d3ff1 3501static PyObject *_wrap_Pen__SetDashes(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 3502 PyObject *resultobj;
093d3ff1
RD
3503 wxPen *arg1 = (wxPen *) 0 ;
3504 PyObject *arg2 = (PyObject *) 0 ;
3505 PyObject *arg3 = (PyObject *) 0 ;
d14a1e28 3506 PyObject * obj0 = 0 ;
093d3ff1
RD
3507 PyObject * obj1 = 0 ;
3508 PyObject * obj2 = 0 ;
d14a1e28 3509 char *kwnames[] = {
093d3ff1 3510 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
d14a1e28
RD
3511 };
3512
093d3ff1
RD
3513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) goto fail;
3514 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3515 if (SWIG_arg_fail(1)) SWIG_fail;
3516 arg2 = obj1;
3517 arg3 = obj2;
d14a1e28
RD
3518 {
3519 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3520 wxPen__SetDashes(arg1,arg2,arg3);
d14a1e28
RD
3521
3522 wxPyEndAllowThreads(__tstate);
110da5b0 3523 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 3524 }
093d3ff1 3525 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
3526 return resultobj;
3527 fail:
3528 return NULL;
3529}
3530
3531
093d3ff1 3532static PyObject *_wrap_Pen_GetDashCount(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 3533 PyObject *resultobj;
093d3ff1
RD
3534 wxPen *arg1 = (wxPen *) 0 ;
3535 int result;
d14a1e28
RD
3536 PyObject * obj0 = 0 ;
3537 char *kwnames[] = {
093d3ff1 3538 (char *) "self", NULL
d14a1e28
RD
3539 };
3540
093d3ff1
RD
3541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail;
3542 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3543 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
3544 {
3545 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3546 result = (int)((wxPen const *)arg1)->GetDashCount();
d14a1e28
RD
3547
3548 wxPyEndAllowThreads(__tstate);
110da5b0 3549 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 3550 }
093d3ff1
RD
3551 {
3552 resultobj = SWIG_From_int((int)(result));
3553 }
d14a1e28
RD
3554 return resultobj;
3555 fail:
3556 return NULL;
3557}
3558
3559
093d3ff1 3560static PyObject *_wrap_Pen___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 3561 PyObject *resultobj;
093d3ff1
RD
3562 wxPen *arg1 = (wxPen *) 0 ;
3563 wxPen *arg2 = (wxPen *) 0 ;
d14a1e28
RD
3564 bool result;
3565 PyObject * obj0 = 0 ;
093d3ff1 3566 PyObject * obj1 = 0 ;
d14a1e28 3567 char *kwnames[] = {
093d3ff1 3568 (char *) "self",(char *) "other", NULL
d14a1e28
RD
3569 };
3570
093d3ff1
RD
3571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail;
3572 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3573 if (SWIG_arg_fail(1)) SWIG_fail;
3574 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3575 if (SWIG_arg_fail(2)) SWIG_fail;
d14a1e28
RD
3576 {
3577 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3578 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
d14a1e28
RD
3579
3580 wxPyEndAllowThreads(__tstate);
3581 if (PyErr_Occurred()) SWIG_fail;
3582 }
4f89f6a3
RD
3583 {
3584 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3585 }
d14a1e28
RD
3586 return resultobj;
3587 fail:
3588 return NULL;
3589}
3590
3591
093d3ff1 3592static PyObject *_wrap_Pen___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 3593 PyObject *resultobj;
093d3ff1
RD
3594 wxPen *arg1 = (wxPen *) 0 ;
3595 wxPen *arg2 = (wxPen *) 0 ;
3596 bool result;
d14a1e28 3597 PyObject * obj0 = 0 ;
093d3ff1 3598 PyObject * obj1 = 0 ;
d14a1e28 3599 char *kwnames[] = {
093d3ff1 3600 (char *) "self",(char *) "other", NULL
d14a1e28
RD
3601 };
3602
093d3ff1
RD
3603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail;
3604 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3605 if (SWIG_arg_fail(1)) SWIG_fail;
3606 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3607 if (SWIG_arg_fail(2)) SWIG_fail;
d14a1e28
RD
3608 {
3609 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3610 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
d14a1e28
RD
3611
3612 wxPyEndAllowThreads(__tstate);
3613 if (PyErr_Occurred()) SWIG_fail;
3614 }
093d3ff1
RD
3615 {
3616 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3617 }
d14a1e28
RD
3618 return resultobj;
3619 fail:
3620 return NULL;
3621}
3622
3623
093d3ff1
RD
3624static PyObject * Pen_swigregister(PyObject *, PyObject *args) {
3625 PyObject *obj;
3626 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3627 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
3628 Py_INCREF(obj);
3629 return Py_BuildValue((char *)"");
3630}
3631static PyObject *_wrap_new_Brush(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 3632 PyObject *resultobj;
093d3ff1
RD
3633 wxColour *arg1 = 0 ;
3634 int arg2 = (int) wxSOLID ;
3635 wxBrush *result;
3636 wxColour temp1 ;
d14a1e28 3637 PyObject * obj0 = 0 ;
093d3ff1 3638 PyObject * obj1 = 0 ;
d14a1e28 3639 char *kwnames[] = {
093d3ff1 3640 (char *) "colour",(char *) "style", NULL
d14a1e28
RD
3641 };
3642
093d3ff1
RD
3643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
3644 {
3645 arg1 = &temp1;
3646 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
3647 }
3648 if (obj1) {
3649 {
3650 arg2 = (int)(SWIG_As_int(obj1));
3651 if (SWIG_arg_fail(2)) SWIG_fail;
3652 }
3653 }
d14a1e28 3654 {
093d3ff1 3655 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28 3656 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3657 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
d14a1e28
RD
3658
3659 wxPyEndAllowThreads(__tstate);
3660 if (PyErr_Occurred()) SWIG_fail;
3661 }
093d3ff1 3662 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1);
d14a1e28
RD
3663 return resultobj;
3664 fail:
3665 return NULL;
3666}
3667
3668
d04418a7
RD
3669static PyObject *_wrap_new_BrushFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
3670 PyObject *resultobj;
3671 wxBitmap *arg1 = 0 ;
3672 wxBrush *result;
3673 PyObject * obj0 = 0 ;
3674 char *kwnames[] = {
3675 (char *) "stippleBitmap", NULL
3676 };
3677
3678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) goto fail;
3679 {
3680 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
3681 if (SWIG_arg_fail(1)) SWIG_fail;
3682 if (arg1 == NULL) {
3683 SWIG_null_ref("wxBitmap");
3684 }
3685 if (SWIG_arg_fail(1)) SWIG_fail;
3686 }
3687 {
3688 if (!wxPyCheckForApp()) SWIG_fail;
3689 PyThreadState* __tstate = wxPyBeginAllowThreads();
3690 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
3691
3692 wxPyEndAllowThreads(__tstate);
3693 if (PyErr_Occurred()) SWIG_fail;
3694 }
3695 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1);
3696 return resultobj;
3697 fail:
3698 return NULL;
3699}
3700
3701
093d3ff1 3702static PyObject *_wrap_delete_Brush(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 3703 PyObject *resultobj;
093d3ff1 3704 wxBrush *arg1 = (wxBrush *) 0 ;
d14a1e28
RD
3705 PyObject * obj0 = 0 ;
3706 char *kwnames[] = {
3707 (char *) "self", NULL
3708 };
3709
093d3ff1
RD
3710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
3711 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
3712 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
3713 {
3714 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3715 delete arg1;
d14a1e28
RD
3716
3717 wxPyEndAllowThreads(__tstate);
3718 if (PyErr_Occurred()) SWIG_fail;
3719 }
093d3ff1 3720 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
3721 return resultobj;
3722 fail:
3723 return NULL;
3724}
3725
3726
093d3ff1 3727static PyObject *_wrap_Brush_SetColour(PyObject *, PyObject *args, PyObject *kwargs) {
b2df227b 3728 PyObject *resultobj;
093d3ff1
RD
3729 wxBrush *arg1 = (wxBrush *) 0 ;
3730 wxColour *arg2 = 0 ;
3731 wxColour temp2 ;
b2df227b 3732 PyObject * obj0 = 0 ;
093d3ff1 3733 PyObject * obj1 = 0 ;
b2df227b 3734 char *kwnames[] = {
093d3ff1 3735 (char *) "self",(char *) "col", NULL
b2df227b
RD
3736 };
3737
093d3ff1
RD
3738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
3739 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
3740 if (SWIG_arg_fail(1)) SWIG_fail;
3741 {
3742 arg2 = &temp2;
3743 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3744 }
b2df227b
RD
3745 {
3746 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3747 (arg1)->SetColour((wxColour const &)*arg2);
b2df227b
RD
3748
3749 wxPyEndAllowThreads(__tstate);
3750 if (PyErr_Occurred()) SWIG_fail;
3751 }
093d3ff1 3752 Py_INCREF(Py_None); resultobj = Py_None;
b2df227b
RD
3753 return resultobj;
3754 fail:
3755 return NULL;
3756}
3757
3758
093d3ff1 3759static PyObject *_wrap_Brush_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 3760 PyObject *resultobj;
093d3ff1
RD
3761 wxBrush *arg1 = (wxBrush *) 0 ;
3762 int arg2 ;
d14a1e28 3763 PyObject * obj0 = 0 ;
093d3ff1 3764 PyObject * obj1 = 0 ;
d14a1e28 3765 char *kwnames[] = {
093d3ff1 3766 (char *) "self",(char *) "style", NULL
d14a1e28
RD
3767 };
3768
093d3ff1
RD
3769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
3770 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
3771 if (SWIG_arg_fail(1)) SWIG_fail;
3772 {
3773 arg2 = (int)(SWIG_As_int(obj1));
3774 if (SWIG_arg_fail(2)) SWIG_fail;
3775 }
d14a1e28
RD
3776 {
3777 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3778 (arg1)->SetStyle(arg2);
d14a1e28
RD
3779
3780 wxPyEndAllowThreads(__tstate);
3781 if (PyErr_Occurred()) SWIG_fail;
3782 }
093d3ff1 3783 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
3784 return resultobj;
3785 fail:
3786 return NULL;
3787}
3788
3789
093d3ff1 3790static PyObject *_wrap_Brush_SetStipple(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 3791 PyObject *resultobj;
093d3ff1
RD
3792 wxBrush *arg1 = (wxBrush *) 0 ;
3793 wxBitmap *arg2 = 0 ;
d14a1e28 3794 PyObject * obj0 = 0 ;
093d3ff1 3795 PyObject * obj1 = 0 ;
d14a1e28 3796 char *kwnames[] = {
093d3ff1 3797 (char *) "self",(char *) "stipple", NULL
d14a1e28
RD
3798 };
3799
093d3ff1
RD
3800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
3801 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
3802 if (SWIG_arg_fail(1)) SWIG_fail;
3803 {
3804 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
3805 if (SWIG_arg_fail(2)) SWIG_fail;
3806 if (arg2 == NULL) {
3807 SWIG_null_ref("wxBitmap");
3808 }
3809 if (SWIG_arg_fail(2)) SWIG_fail;
3810 }
d14a1e28
RD
3811 {
3812 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3813 (arg1)->SetStipple((wxBitmap const &)*arg2);
d14a1e28
RD
3814
3815 wxPyEndAllowThreads(__tstate);
3816 if (PyErr_Occurred()) SWIG_fail;
3817 }
093d3ff1 3818 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
3819 return resultobj;
3820 fail:
3821 return NULL;
3822}
3823
3824
093d3ff1 3825static PyObject *_wrap_Brush_GetColour(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 3826 PyObject *resultobj;
093d3ff1
RD
3827 wxBrush *arg1 = (wxBrush *) 0 ;
3828 wxColour result;
d14a1e28 3829 PyObject * obj0 = 0 ;
d14a1e28 3830 char *kwnames[] = {
093d3ff1 3831 (char *) "self", NULL
d14a1e28
RD
3832 };
3833
093d3ff1
RD
3834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
3835 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
3836 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
3837 {
3838 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3839 result = ((wxBrush const *)arg1)->GetColour();
d14a1e28
RD
3840
3841 wxPyEndAllowThreads(__tstate);
3842 if (PyErr_Occurred()) SWIG_fail;
3843 }
093d3ff1
RD
3844 {
3845 wxColour * resultptr;
3846 resultptr = new wxColour((wxColour &)(result));
3847 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
3848 }
d14a1e28
RD
3849 return resultobj;
3850 fail:
3851 return NULL;
3852}
3853
3854
093d3ff1 3855static PyObject *_wrap_Brush_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 3856 PyObject *resultobj;
093d3ff1
RD
3857 wxBrush *arg1 = (wxBrush *) 0 ;
3858 int result;
d14a1e28 3859 PyObject * obj0 = 0 ;
d14a1e28 3860 char *kwnames[] = {
093d3ff1 3861 (char *) "self", NULL
d14a1e28
RD
3862 };
3863
093d3ff1
RD
3864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
3865 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
3866 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
3867 {
3868 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3869 result = (int)((wxBrush const *)arg1)->GetStyle();
d14a1e28
RD
3870
3871 wxPyEndAllowThreads(__tstate);
3872 if (PyErr_Occurred()) SWIG_fail;
3873 }
093d3ff1
RD
3874 {
3875 resultobj = SWIG_From_int((int)(result));
3876 }
d14a1e28
RD
3877 return resultobj;
3878 fail:
3879 return NULL;
3880}
3881
3882
093d3ff1 3883static PyObject *_wrap_Brush_GetStipple(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 3884 PyObject *resultobj;
093d3ff1
RD
3885 wxBrush *arg1 = (wxBrush *) 0 ;
3886 wxBitmap *result;
d14a1e28 3887 PyObject * obj0 = 0 ;
d14a1e28 3888 char *kwnames[] = {
093d3ff1 3889 (char *) "self", NULL
d14a1e28
RD
3890 };
3891
093d3ff1
RD
3892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
3893 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
3894 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
3895 {
3896 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3897 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
d14a1e28
RD
3898
3899 wxPyEndAllowThreads(__tstate);
3900 if (PyErr_Occurred()) SWIG_fail;
3901 }
093d3ff1 3902 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
d14a1e28
RD
3903 return resultobj;
3904 fail:
3905 return NULL;
3906}
3907
3908
093d3ff1 3909static PyObject *_wrap_Brush_IsHatch(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 3910 PyObject *resultobj;
093d3ff1 3911 wxBrush *arg1 = (wxBrush *) 0 ;
d14a1e28 3912 bool result;
d14a1e28 3913 PyObject * obj0 = 0 ;
d14a1e28 3914 char *kwnames[] = {
093d3ff1 3915 (char *) "self", NULL
d14a1e28
RD
3916 };
3917
093d3ff1
RD
3918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_IsHatch",kwnames,&obj0)) goto fail;
3919 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
3920 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
3921 {
3922 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3923 result = (bool)((wxBrush const *)arg1)->IsHatch();
d14a1e28
RD
3924
3925 wxPyEndAllowThreads(__tstate);
3926 if (PyErr_Occurred()) SWIG_fail;
3927 }
4f89f6a3
RD
3928 {
3929 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3930 }
d14a1e28
RD
3931 return resultobj;
3932 fail:
d14a1e28
RD
3933 return NULL;
3934}
3935
3936
093d3ff1 3937static PyObject *_wrap_Brush_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 3938 PyObject *resultobj;
093d3ff1 3939 wxBrush *arg1 = (wxBrush *) 0 ;
d14a1e28 3940 bool result;
d14a1e28 3941 PyObject * obj0 = 0 ;
d14a1e28 3942 char *kwnames[] = {
093d3ff1 3943 (char *) "self", NULL
d14a1e28
RD
3944 };
3945
093d3ff1
RD
3946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
3947 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
3948 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
3949 {
3950 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3951 result = (bool)(arg1)->Ok();
d14a1e28
RD
3952
3953 wxPyEndAllowThreads(__tstate);
3954 if (PyErr_Occurred()) SWIG_fail;
3955 }
4f89f6a3
RD
3956 {
3957 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3958 }
d14a1e28
RD
3959 return resultobj;
3960 fail:
d14a1e28
RD
3961 return NULL;
3962}
3963
3964
093d3ff1
RD
3965static PyObject * Brush_swigregister(PyObject *, PyObject *args) {
3966 PyObject *obj;
3967 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3968 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
3969 Py_INCREF(obj);
3970 return Py_BuildValue((char *)"");
3971}
3972static PyObject *_wrap_new_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d3b6e4ff 3973 PyObject *resultobj;
093d3ff1
RD
3974 wxString *arg1 = 0 ;
3975 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
3976 wxBitmap *result;
3977 bool temp1 = false ;
d3b6e4ff 3978 PyObject * obj0 = 0 ;
093d3ff1 3979 PyObject * obj1 = 0 ;
d3b6e4ff 3980 char *kwnames[] = {
093d3ff1 3981 (char *) "name",(char *) "type", NULL
d3b6e4ff
RD
3982 };
3983
093d3ff1
RD
3984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
3985 {
3986 arg1 = wxString_in_helper(obj0);
3987 if (arg1 == NULL) SWIG_fail;
3988 temp1 = true;
3989 }
3990 if (obj1) {
3991 {
3992 arg2 = (wxBitmapType)(SWIG_As_int(obj1));
3993 if (SWIG_arg_fail(2)) SWIG_fail;
3994 }
3995 }
d3b6e4ff 3996 {
093d3ff1 3997 if (!wxPyCheckForApp()) SWIG_fail;
d3b6e4ff 3998 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 3999 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
d3b6e4ff
RD
4000
4001 wxPyEndAllowThreads(__tstate);
4002 if (PyErr_Occurred()) SWIG_fail;
4003 }
093d3ff1
RD
4004 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
4005 {
4006 if (temp1)
4007 delete arg1;
4008 }
d3b6e4ff
RD
4009 return resultobj;
4010 fail:
093d3ff1
RD
4011 {
4012 if (temp1)
4013 delete arg1;
4014 }
d3b6e4ff
RD
4015 return NULL;
4016}
4017
4018
093d3ff1 4019static PyObject *_wrap_delete_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
4020 PyObject *resultobj;
4021 wxBitmap *arg1 = (wxBitmap *) 0 ;
d14a1e28 4022 PyObject * obj0 = 0 ;
d14a1e28 4023 char *kwnames[] = {
093d3ff1 4024 (char *) "self", NULL
d14a1e28
RD
4025 };
4026
093d3ff1
RD
4027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
4028 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4029 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
4030 {
4031 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 4032 delete arg1;
d14a1e28
RD
4033
4034 wxPyEndAllowThreads(__tstate);
4035 if (PyErr_Occurred()) SWIG_fail;
4036 }
093d3ff1 4037 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
4038 return resultobj;
4039 fail:
4040 return NULL;
4041}
4042
4043
093d3ff1 4044static PyObject *_wrap_new_EmptyBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 4045 PyObject *resultobj;
093d3ff1 4046 int arg1 ;
d14a1e28 4047 int arg2 ;
093d3ff1
RD
4048 int arg3 = (int) -1 ;
4049 wxBitmap *result;
d14a1e28 4050 PyObject * obj0 = 0 ;
994141e6 4051 PyObject * obj1 = 0 ;
093d3ff1 4052 PyObject * obj2 = 0 ;
d14a1e28 4053 char *kwnames[] = {
093d3ff1 4054 (char *) "width",(char *) "height",(char *) "depth", NULL
d14a1e28
RD
4055 };
4056
093d3ff1
RD
4057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
4058 {
4059 arg1 = (int)(SWIG_As_int(obj0));
4060 if (SWIG_arg_fail(1)) SWIG_fail;
4061 }
4062 {
4063 arg2 = (int)(SWIG_As_int(obj1));
4064 if (SWIG_arg_fail(2)) SWIG_fail;
4065 }
4066 if (obj2) {
4067 {
4068 arg3 = (int)(SWIG_As_int(obj2));
4069 if (SWIG_arg_fail(3)) SWIG_fail;
4070 }
4071 }
d14a1e28 4072 {
093d3ff1 4073 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28 4074 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 4075 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
d14a1e28
RD
4076
4077 wxPyEndAllowThreads(__tstate);
4078 if (PyErr_Occurred()) SWIG_fail;
4079 }
093d3ff1 4080 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
d14a1e28
RD
4081 return resultobj;
4082 fail:
4083 return NULL;
4084}
4085
4086
093d3ff1 4087static PyObject *_wrap_new_BitmapFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 4088 PyObject *resultobj;
093d3ff1
RD
4089 wxIcon *arg1 = 0 ;
4090 wxBitmap *result;
d14a1e28
RD
4091 PyObject * obj0 = 0 ;
4092 char *kwnames[] = {
093d3ff1 4093 (char *) "icon", NULL
d14a1e28
RD
4094 };
4095
093d3ff1
RD
4096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
4097 {
4098 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
4099 if (SWIG_arg_fail(1)) SWIG_fail;
4100 if (arg1 == NULL) {
4101 SWIG_null_ref("wxIcon");
4102 }
4103 if (SWIG_arg_fail(1)) SWIG_fail;
4104 }
d14a1e28 4105 {
093d3ff1 4106 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28 4107 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 4108 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
d14a1e28
RD
4109
4110 wxPyEndAllowThreads(__tstate);
4111 if (PyErr_Occurred()) SWIG_fail;
4112 }
093d3ff1 4113 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
d14a1e28
RD
4114 return resultobj;
4115 fail:
4116 return NULL;
4117}
4118
4119
093d3ff1 4120static PyObject *_wrap_new_BitmapFromImage(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 4121 PyObject *resultobj;
093d3ff1
RD
4122 wxImage *arg1 = 0 ;
4123 int arg2 = (int) -1 ;
4124 wxBitmap *result;
d14a1e28 4125 PyObject * obj0 = 0 ;
994141e6 4126 PyObject * obj1 = 0 ;
d14a1e28 4127 char *kwnames[] = {
093d3ff1 4128 (char *) "image",(char *) "depth", NULL
d14a1e28
RD
4129 };
4130
093d3ff1
RD
4131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
4132 {
4133 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
4134 if (SWIG_arg_fail(1)) SWIG_fail;
4135 if (arg1 == NULL) {
4136 SWIG_null_ref("wxImage");
4137 }
4138 if (SWIG_arg_fail(1)) SWIG_fail;
4139 }
4140 if (obj1) {
4141 {
4142 arg2 = (int)(SWIG_As_int(obj1));
4143 if (SWIG_arg_fail(2)) SWIG_fail;
4144 }
4145 }
d14a1e28 4146 {
093d3ff1 4147 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28 4148 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 4149 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
d14a1e28
RD
4150
4151 wxPyEndAllowThreads(__tstate);
4152 if (PyErr_Occurred()) SWIG_fail;
4153 }
093d3ff1 4154 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
d14a1e28
RD
4155 return resultobj;
4156 fail:
4157 return NULL;
4158}
4159
4160
093d3ff1 4161static PyObject *_wrap_new_BitmapFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) {
b2df227b 4162 PyObject *resultobj;
093d3ff1
RD
4163 PyObject *arg1 = (PyObject *) 0 ;
4164 wxBitmap *result;
b2df227b 4165 PyObject * obj0 = 0 ;
b2df227b 4166 char *kwnames[] = {
093d3ff1 4167 (char *) "listOfStrings", NULL
b2df227b
RD
4168 };
4169
093d3ff1
RD
4170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
4171 arg1 = obj0;
b2df227b 4172 {
093d3ff1 4173 if (!wxPyCheckForApp()) SWIG_fail;
b2df227b 4174 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 4175 result = (wxBitmap *)new_wxBitmap(arg1);
b2df227b
RD
4176
4177 wxPyEndAllowThreads(__tstate);
4178 if (PyErr_Occurred()) SWIG_fail;
4179 }
093d3ff1 4180 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
b2df227b
RD
4181 return resultobj;
4182 fail:
4183 return NULL;
4184}
4185
4186
093d3ff1 4187static PyObject *_wrap_new_BitmapFromBits(PyObject *, PyObject *args, PyObject *kwargs) {
4276dc52 4188 PyObject *resultobj;
093d3ff1
RD
4189 PyObject *arg1 = (PyObject *) 0 ;
4190 int arg2 ;
4191 int arg3 ;
4192 int arg4 = (int) 1 ;
4193 wxBitmap *result;
4276dc52
RD
4194 PyObject * obj0 = 0 ;
4195 PyObject * obj1 = 0 ;
093d3ff1
RD
4196 PyObject * obj2 = 0 ;
4197 PyObject * obj3 = 0 ;
4276dc52 4198 char *kwnames[] = {
093d3ff1 4199 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
4276dc52
RD
4200 };
4201
093d3ff1
RD
4202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4203 arg1 = obj0;
4276dc52 4204 {
093d3ff1
RD
4205 arg2 = (int)(SWIG_As_int(obj1));
4206 if (SWIG_arg_fail(2)) SWIG_fail;
4207 }
4208 {
4209 arg3 = (int)(SWIG_As_int(obj2));
4210 if (SWIG_arg_fail(3)) SWIG_fail;
4211 }
4212 if (obj3) {
4213 {
4214 arg4 = (int)(SWIG_As_int(obj3));
4215 if (SWIG_arg_fail(4)) SWIG_fail;
4216 }
4217 }
4218 {
4219 if (!wxPyCheckForApp()) SWIG_fail;
4276dc52 4220 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 4221 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
4276dc52
RD
4222
4223 wxPyEndAllowThreads(__tstate);
4224 if (PyErr_Occurred()) SWIG_fail;
4225 }
093d3ff1 4226 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
4276dc52
RD
4227 return resultobj;
4228 fail:
4229 return NULL;
4230}
4231
4232
093d3ff1 4233static PyObject *_wrap_Bitmap_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
4276dc52
RD
4234 PyObject *resultobj;
4235 wxBitmap *arg1 = (wxBitmap *) 0 ;
4276dc52
RD
4236 bool result;
4237 PyObject * obj0 = 0 ;
4276dc52 4238 char *kwnames[] = {
093d3ff1 4239 (char *) "self", NULL
4276dc52
RD
4240 };
4241
093d3ff1
RD
4242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
4243 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4244 if (SWIG_arg_fail(1)) SWIG_fail;
4276dc52
RD
4245 {
4246 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 4247 result = (bool)(arg1)->Ok();
4276dc52
RD
4248
4249 wxPyEndAllowThreads(__tstate);
4250 if (PyErr_Occurred()) SWIG_fail;
4251 }
4f89f6a3
RD
4252 {
4253 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4254 }
4276dc52
RD
4255 return resultobj;
4256 fail:
4257 return NULL;
4258}
4259
4260
093d3ff1 4261static PyObject *_wrap_Bitmap_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 4262 PyObject *resultobj;
093d3ff1
RD
4263 wxBitmap *arg1 = (wxBitmap *) 0 ;
4264 int result;
d14a1e28 4265 PyObject * obj0 = 0 ;
d14a1e28 4266 char *kwnames[] = {
093d3ff1 4267 (char *) "self", NULL
d14a1e28
RD
4268 };
4269
093d3ff1
RD
4270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
4271 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4272 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
4273 {
4274 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 4275 result = (int)(arg1)->GetWidth();
d14a1e28
RD
4276
4277 wxPyEndAllowThreads(__tstate);
110da5b0 4278 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 4279 }
093d3ff1
RD
4280 {
4281 resultobj = SWIG_From_int((int)(result));
4282 }
d14a1e28
RD
4283 return resultobj;
4284 fail:
4285 return NULL;
4286}
4287
4288
093d3ff1 4289static PyObject *_wrap_Bitmap_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 4290 PyObject *resultobj;
093d3ff1
RD
4291 wxBitmap *arg1 = (wxBitmap *) 0 ;
4292 int result;
d14a1e28
RD
4293 PyObject * obj0 = 0 ;
4294 char *kwnames[] = {
093d3ff1 4295 (char *) "self", NULL
d14a1e28
RD
4296 };
4297
093d3ff1
RD
4298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
4299 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4300 if (SWIG_arg_fail(1)) SWIG_fail;
994141e6
RD
4301 {
4302 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 4303 result = (int)(arg1)->GetHeight();
994141e6
RD
4304
4305 wxPyEndAllowThreads(__tstate);
110da5b0 4306 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 4307 }
d14a1e28 4308 {
093d3ff1 4309 resultobj = SWIG_From_int((int)(result));
d14a1e28
RD
4310 }
4311 return resultobj;
4312 fail:
d14a1e28
RD
4313 return NULL;
4314}
4315
4316
093d3ff1 4317static PyObject *_wrap_Bitmap_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 4318 PyObject *resultobj;
093d3ff1
RD
4319 wxBitmap *arg1 = (wxBitmap *) 0 ;
4320 int result;
d14a1e28
RD
4321 PyObject * obj0 = 0 ;
4322 char *kwnames[] = {
4323 (char *) "self", NULL
4324 };
4325
093d3ff1
RD
4326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
4327 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4328 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
4329 {
4330 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 4331 result = (int)(arg1)->GetDepth();
d14a1e28
RD
4332
4333 wxPyEndAllowThreads(__tstate);
4334 if (PyErr_Occurred()) SWIG_fail;
4335 }
093d3ff1
RD
4336 {
4337 resultobj = SWIG_From_int((int)(result));
4338 }
d14a1e28
RD
4339 return resultobj;
4340 fail:
4341 return NULL;
4342}
4343
4344
093d3ff1 4345static PyObject *_wrap_Bitmap_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 4346 PyObject *resultobj;
093d3ff1
RD
4347 wxBitmap *arg1 = (wxBitmap *) 0 ;
4348 wxSize result;
4349 PyObject * obj0 = 0 ;
d14a1e28 4350 char *kwnames[] = {
093d3ff1 4351 (char *) "self", NULL
d14a1e28
RD
4352 };
4353
093d3ff1
RD
4354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetSize",kwnames,&obj0)) goto fail;
4355 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4356 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
4357 {
4358 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 4359 result = wxBitmap_GetSize(arg1);
d14a1e28
RD
4360
4361 wxPyEndAllowThreads(__tstate);
110da5b0 4362 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 4363 }
093d3ff1
RD
4364 {
4365 wxSize * resultptr;
4366 resultptr = new wxSize((wxSize &)(result));
4367 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
4368 }
d14a1e28
RD
4369 return resultobj;
4370 fail:
4371 return NULL;
4372}
4373
4374
093d3ff1 4375static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 4376 PyObject *resultobj;
093d3ff1
RD
4377 wxBitmap *arg1 = (wxBitmap *) 0 ;
4378 SwigValueWrapper<wxImage > result;
d14a1e28
RD
4379 PyObject * obj0 = 0 ;
4380 char *kwnames[] = {
093d3ff1 4381 (char *) "self", NULL
d14a1e28
RD
4382 };
4383
093d3ff1
RD
4384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
4385 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4386 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
4387 {
4388 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 4389 result = ((wxBitmap const *)arg1)->ConvertToImage();
d14a1e28
RD
4390
4391 wxPyEndAllowThreads(__tstate);
110da5b0 4392 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 4393 }
093d3ff1
RD
4394 {
4395 wxImage * resultptr;
4396 resultptr = new wxImage((wxImage &)(result));
4397 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
4398 }
d14a1e28
RD
4399 return resultobj;
4400 fail:
4401 return NULL;
4402}
4403
4404
093d3ff1 4405static PyObject *_wrap_Bitmap_GetMask(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 4406 PyObject *resultobj;
093d3ff1
RD
4407 wxBitmap *arg1 = (wxBitmap *) 0 ;
4408 wxMask *result;
d14a1e28
RD
4409 PyObject * obj0 = 0 ;
4410 char *kwnames[] = {
093d3ff1 4411 (char *) "self", NULL
d14a1e28
RD
4412 };
4413
093d3ff1
RD
4414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
4415 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4416 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
4417 {
4418 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 4419 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
d14a1e28
RD
4420
4421 wxPyEndAllowThreads(__tstate);
110da5b0 4422 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 4423 }
093d3ff1 4424 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0);
d14a1e28
RD
4425 return resultobj;
4426 fail:
4427 return NULL;
4428}
4429
4430
093d3ff1 4431static PyObject *_wrap_Bitmap_SetMask(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 4432 PyObject *resultobj;
093d3ff1
RD
4433 wxBitmap *arg1 = (wxBitmap *) 0 ;
4434 wxMask *arg2 = (wxMask *) 0 ;
d14a1e28 4435 PyObject * obj0 = 0 ;
093d3ff1 4436 PyObject * obj1 = 0 ;
d14a1e28 4437 char *kwnames[] = {
093d3ff1 4438 (char *) "self",(char *) "mask", NULL
d14a1e28
RD
4439 };
4440
093d3ff1
RD
4441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
4442 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4443 if (SWIG_arg_fail(1)) SWIG_fail;
4444 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMask, SWIG_POINTER_EXCEPTION | 0);
4445 if (SWIG_arg_fail(2)) SWIG_fail;
d14a1e28
RD
4446 {
4447 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 4448 (arg1)->SetMask(arg2);
d14a1e28
RD
4449
4450 wxPyEndAllowThreads(__tstate);
110da5b0 4451 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 4452 }
093d3ff1 4453 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
4454 return resultobj;
4455 fail:
4456 return NULL;
4457}
4458
4459
093d3ff1 4460static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 4461 PyObject *resultobj;
093d3ff1
RD
4462 wxBitmap *arg1 = (wxBitmap *) 0 ;
4463 wxColour *arg2 = 0 ;
4464 wxColour temp2 ;
4465 PyObject * obj0 = 0 ;
4466 PyObject * obj1 = 0 ;
4467 char *kwnames[] = {
4468 (char *) "self",(char *) "colour", NULL
4469 };
4470
4471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
4472 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4473 if (SWIG_arg_fail(1)) SWIG_fail;
4474 {
4475 arg2 = &temp2;
4476 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4477 }
4478 {
4479 PyThreadState* __tstate = wxPyBeginAllowThreads();
4480 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
4481
4482 wxPyEndAllowThreads(__tstate);
4483 if (PyErr_Occurred()) SWIG_fail;
4484 }
4485 Py_INCREF(Py_None); resultobj = Py_None;
4486 return resultobj;
4487 fail:
4488 return NULL;
4489}
4490
4491
4492static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
4493 PyObject *resultobj;
4494 wxBitmap *arg1 = (wxBitmap *) 0 ;
4495 wxRect *arg2 = 0 ;
4496 SwigValueWrapper<wxBitmap > result;
4497 wxRect temp2 ;
4498 PyObject * obj0 = 0 ;
4499 PyObject * obj1 = 0 ;
4500 char *kwnames[] = {
4501 (char *) "self",(char *) "rect", NULL
4502 };
4503
4504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
4505 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4506 if (SWIG_arg_fail(1)) SWIG_fail;
4507 {
4508 arg2 = &temp2;
4509 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4510 }
4511 {
4512 PyThreadState* __tstate = wxPyBeginAllowThreads();
4513 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
4514
4515 wxPyEndAllowThreads(__tstate);
4516 if (PyErr_Occurred()) SWIG_fail;
4517 }
4518 {
4519 wxBitmap * resultptr;
4520 resultptr = new wxBitmap((wxBitmap &)(result));
4521 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
4522 }
4523 return resultobj;
4524 fail:
4525 return NULL;
4526}
4527
4528
4529static PyObject *_wrap_Bitmap_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) {
4530 PyObject *resultobj;
4531 wxBitmap *arg1 = (wxBitmap *) 0 ;
d14a1e28 4532 wxString *arg2 = 0 ;
093d3ff1
RD
4533 wxBitmapType arg3 ;
4534 wxPalette *arg4 = (wxPalette *) NULL ;
d14a1e28 4535 bool result;
ae8162c8 4536 bool temp2 = false ;
d14a1e28
RD
4537 PyObject * obj0 = 0 ;
4538 PyObject * obj1 = 0 ;
994141e6 4539 PyObject * obj2 = 0 ;
093d3ff1 4540 PyObject * obj3 = 0 ;
d14a1e28 4541 char *kwnames[] = {
093d3ff1 4542 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
d14a1e28
RD
4543 };
4544
093d3ff1
RD
4545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4546 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4547 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
4548 {
4549 arg2 = wxString_in_helper(obj1);
4550 if (arg2 == NULL) SWIG_fail;
ae8162c8 4551 temp2 = true;
d14a1e28 4552 }
093d3ff1
RD
4553 {
4554 arg3 = (wxBitmapType)(SWIG_As_int(obj2));
4555 if (SWIG_arg_fail(3)) SWIG_fail;
4556 }
4557 if (obj3) {
4558 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0);
4559 if (SWIG_arg_fail(4)) SWIG_fail;
4560 }
d14a1e28
RD
4561 {
4562 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 4563 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
d14a1e28
RD
4564
4565 wxPyEndAllowThreads(__tstate);
4566 if (PyErr_Occurred()) SWIG_fail;
4567 }
4f89f6a3
RD
4568 {
4569 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4570 }
d14a1e28
RD
4571 {
4572 if (temp2)
4573 delete arg2;
4574 }
4575 return resultobj;
4576 fail:
4577 {
4578 if (temp2)
4579 delete arg2;
4580 }
4581 return NULL;
4582}
4583
4584
093d3ff1 4585static PyObject *_wrap_Bitmap_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 4586 PyObject *resultobj;
093d3ff1
RD
4587 wxBitmap *arg1 = (wxBitmap *) 0 ;
4588 wxString *arg2 = 0 ;
4589 wxBitmapType arg3 ;
d14a1e28 4590 bool result;
093d3ff1 4591 bool temp2 = false ;
d14a1e28 4592 PyObject * obj0 = 0 ;
093d3ff1
RD
4593 PyObject * obj1 = 0 ;
4594 PyObject * obj2 = 0 ;
d14a1e28 4595 char *kwnames[] = {
093d3ff1 4596 (char *) "self",(char *) "name",(char *) "type", NULL
d14a1e28
RD
4597 };
4598
093d3ff1
RD
4599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
4600 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4601 if (SWIG_arg_fail(1)) SWIG_fail;
4602 {
4603 arg2 = wxString_in_helper(obj1);
4604 if (arg2 == NULL) SWIG_fail;
4605 temp2 = true;
4606 }
4607 {
4608 arg3 = (wxBitmapType)(SWIG_As_int(obj2));
4609 if (SWIG_arg_fail(3)) SWIG_fail;
4610 }
d14a1e28
RD
4611 {
4612 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 4613 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
d14a1e28
RD
4614
4615 wxPyEndAllowThreads(__tstate);
4616 if (PyErr_Occurred()) SWIG_fail;
4617 }
4f89f6a3
RD
4618 {
4619 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4620 }
093d3ff1
RD
4621 {
4622 if (temp2)
4623 delete arg2;
4624 }
d14a1e28
RD
4625 return resultobj;
4626 fail:
093d3ff1
RD
4627 {
4628 if (temp2)
4629 delete arg2;
4630 }
d14a1e28
RD
4631 return NULL;
4632}
4633
4634
093d3ff1 4635static PyObject *_wrap_Bitmap_GetPalette(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 4636 PyObject *resultobj;
093d3ff1
RD
4637 wxBitmap *arg1 = (wxBitmap *) 0 ;
4638 wxPalette *result;
d14a1e28
RD
4639 PyObject * obj0 = 0 ;
4640 char *kwnames[] = {
4641 (char *) "self", NULL
4642 };
4643
093d3ff1
RD
4644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetPalette",kwnames,&obj0)) goto fail;
4645 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4646 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
4647 {
4648 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 4649 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
d14a1e28
RD
4650
4651 wxPyEndAllowThreads(__tstate);
4652 if (PyErr_Occurred()) SWIG_fail;
4653 }
093d3ff1 4654 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 0);
d14a1e28
RD
4655 return resultobj;
4656 fail:
4657 return NULL;
4658}
4659
4660
093d3ff1 4661static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 4662 PyObject *resultobj;
093d3ff1
RD
4663 wxBitmap *arg1 = (wxBitmap *) 0 ;
4664 wxIcon *arg2 = 0 ;
4665 bool result;
d14a1e28 4666 PyObject * obj0 = 0 ;
093d3ff1 4667 PyObject * obj1 = 0 ;
d14a1e28 4668 char *kwnames[] = {
093d3ff1 4669 (char *) "self",(char *) "icon", NULL
d14a1e28
RD
4670 };
4671
093d3ff1
RD
4672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
4673 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4674 if (SWIG_arg_fail(1)) SWIG_fail;
4675 {
4676 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
4677 if (SWIG_arg_fail(2)) SWIG_fail;
4678 if (arg2 == NULL) {
4679 SWIG_null_ref("wxIcon");
4680 }
4681 if (SWIG_arg_fail(2)) SWIG_fail;
4682 }
d14a1e28
RD
4683 {
4684 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 4685 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
d14a1e28
RD
4686
4687 wxPyEndAllowThreads(__tstate);
4688 if (PyErr_Occurred()) SWIG_fail;
4689 }
093d3ff1
RD
4690 {
4691 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4692 }
d14a1e28
RD
4693 return resultobj;
4694 fail:
4695 return NULL;
4696}
4697
4698
093d3ff1 4699static PyObject *_wrap_Bitmap_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 4700 PyObject *resultobj;
093d3ff1
RD
4701 wxBitmap *arg1 = (wxBitmap *) 0 ;
4702 int arg2 ;
d14a1e28 4703 PyObject * obj0 = 0 ;
093d3ff1 4704 PyObject * obj1 = 0 ;
d14a1e28 4705 char *kwnames[] = {
093d3ff1 4706 (char *) "self",(char *) "height", NULL
d14a1e28
RD
4707 };
4708
093d3ff1
RD
4709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
4710 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4711 if (SWIG_arg_fail(1)) SWIG_fail;
4712 {
4713 arg2 = (int)(SWIG_As_int(obj1));
4714 if (SWIG_arg_fail(2)) SWIG_fail;
4715 }
d14a1e28
RD
4716 {
4717 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 4718 (arg1)->SetHeight(arg2);
d14a1e28
RD
4719
4720 wxPyEndAllowThreads(__tstate);
4721 if (PyErr_Occurred()) SWIG_fail;
4722 }
093d3ff1 4723 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
4724 return resultobj;
4725 fail:
4726 return NULL;
4727}
4728
4729
093d3ff1 4730static PyObject *_wrap_Bitmap_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 4731 PyObject *resultobj;
093d3ff1 4732 wxBitmap *arg1 = (wxBitmap *) 0 ;
d14a1e28
RD
4733 int arg2 ;
4734 PyObject * obj0 = 0 ;
994141e6 4735 PyObject * obj1 = 0 ;
d14a1e28 4736 char *kwnames[] = {
093d3ff1 4737 (char *) "self",(char *) "width", NULL
d14a1e28
RD
4738 };
4739
093d3ff1
RD
4740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
4741 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4742 if (SWIG_arg_fail(1)) SWIG_fail;
4743 {
4744 arg2 = (int)(SWIG_As_int(obj1));
4745 if (SWIG_arg_fail(2)) SWIG_fail;
4746 }
d14a1e28
RD
4747 {
4748 PyThreadState* __tstate = wxPyBeginAllowThreads();
4749 (arg1)->SetWidth(arg2);
4750
4751 wxPyEndAllowThreads(__tstate);
4752 if (PyErr_Occurred()) SWIG_fail;
4753 }
4754 Py_INCREF(Py_None); resultobj = Py_None;
4755 return resultobj;
4756 fail:
4757 return NULL;
4758}
4759
4760
093d3ff1 4761static PyObject *_wrap_Bitmap_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 4762 PyObject *resultobj;
093d3ff1 4763 wxBitmap *arg1 = (wxBitmap *) 0 ;
d14a1e28
RD
4764 int arg2 ;
4765 PyObject * obj0 = 0 ;
994141e6 4766 PyObject * obj1 = 0 ;
d14a1e28 4767 char *kwnames[] = {
093d3ff1 4768 (char *) "self",(char *) "depth", NULL
d14a1e28
RD
4769 };
4770
093d3ff1
RD
4771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
4772 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4773 if (SWIG_arg_fail(1)) SWIG_fail;
4774 {
4775 arg2 = (int)(SWIG_As_int(obj1));
4776 if (SWIG_arg_fail(2)) SWIG_fail;
4777 }
d14a1e28
RD
4778 {
4779 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 4780 (arg1)->SetDepth(arg2);
d14a1e28
RD
4781
4782 wxPyEndAllowThreads(__tstate);
4783 if (PyErr_Occurred()) SWIG_fail;
4784 }
4785 Py_INCREF(Py_None); resultobj = Py_None;
4786 return resultobj;
4787 fail:
4788 return NULL;
4789}
4790
4791
093d3ff1 4792static PyObject *_wrap_Bitmap_SetSize(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 4793 PyObject *resultobj;
093d3ff1
RD
4794 wxBitmap *arg1 = (wxBitmap *) 0 ;
4795 wxSize *arg2 = 0 ;
4796 wxSize temp2 ;
d14a1e28 4797 PyObject * obj0 = 0 ;
994141e6 4798 PyObject * obj1 = 0 ;
d14a1e28 4799 char *kwnames[] = {
093d3ff1 4800 (char *) "self",(char *) "size", NULL
d14a1e28
RD
4801 };
4802
093d3ff1
RD
4803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) goto fail;
4804 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4805 if (SWIG_arg_fail(1)) SWIG_fail;
4806 {
4807 arg2 = &temp2;
4808 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4809 }
d14a1e28
RD
4810 {
4811 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 4812 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
d14a1e28
RD
4813
4814 wxPyEndAllowThreads(__tstate);
4815 if (PyErr_Occurred()) SWIG_fail;
4816 }
4817 Py_INCREF(Py_None); resultobj = Py_None;
4818 return resultobj;
4819 fail:
4820 return NULL;
4821}
4822
4823
093d3ff1 4824static PyObject *_wrap_Bitmap___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 4825 PyObject *resultobj;
093d3ff1
RD
4826 wxBitmap *arg1 = (wxBitmap *) 0 ;
4827 wxBitmap *arg2 = (wxBitmap *) 0 ;
4828 bool result;
d14a1e28
RD
4829 PyObject * obj0 = 0 ;
4830 PyObject * obj1 = 0 ;
4831 char *kwnames[] = {
093d3ff1 4832 (char *) "self",(char *) "other", NULL
d14a1e28
RD
4833 };
4834
093d3ff1
RD
4835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail;
4836 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4837 if (SWIG_arg_fail(1)) SWIG_fail;
4838 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4839 if (SWIG_arg_fail(2)) SWIG_fail;
d14a1e28
RD
4840 {
4841 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 4842 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
d14a1e28
RD
4843
4844 wxPyEndAllowThreads(__tstate);
4845 if (PyErr_Occurred()) SWIG_fail;
4846 }
093d3ff1
RD
4847 {
4848 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4849 }
d14a1e28
RD
4850 return resultobj;
4851 fail:
4852 return NULL;
4853}
4854
4855
093d3ff1 4856static PyObject *_wrap_Bitmap___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 4857 PyObject *resultobj;
093d3ff1
RD
4858 wxBitmap *arg1 = (wxBitmap *) 0 ;
4859 wxBitmap *arg2 = (wxBitmap *) 0 ;
4860 bool result;
d14a1e28 4861 PyObject * obj0 = 0 ;
994141e6 4862 PyObject * obj1 = 0 ;
d14a1e28 4863 char *kwnames[] = {
093d3ff1 4864 (char *) "self",(char *) "other", NULL
d14a1e28
RD
4865 };
4866
093d3ff1
RD
4867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail;
4868 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4869 if (SWIG_arg_fail(1)) SWIG_fail;
4870 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4871 if (SWIG_arg_fail(2)) SWIG_fail;
d14a1e28
RD
4872 {
4873 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 4874 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
d14a1e28
RD
4875
4876 wxPyEndAllowThreads(__tstate);
4877 if (PyErr_Occurred()) SWIG_fail;
4878 }
7eae615b 4879 {
093d3ff1 4880 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7eae615b 4881 }
d14a1e28
RD
4882 return resultobj;
4883 fail:
4884 return NULL;
4885}
4886
4887
093d3ff1
RD
4888static PyObject * Bitmap_swigregister(PyObject *, PyObject *args) {
4889 PyObject *obj;
4890 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4891 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
4892 Py_INCREF(obj);
4893 return Py_BuildValue((char *)"");
4894}
4895static PyObject *_wrap_new_Mask(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 4896 PyObject *resultobj;
093d3ff1
RD
4897 wxBitmap *arg1 = 0 ;
4898 wxColour const &arg2_defvalue = wxNullColour ;
4899 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
4900 wxMask *result;
4901 wxColour temp2 ;
d14a1e28 4902 PyObject * obj0 = 0 ;
093d3ff1 4903 PyObject * obj1 = 0 ;
d14a1e28 4904 char *kwnames[] = {
093d3ff1 4905 (char *) "bitmap",(char *) "colour", NULL
d14a1e28
RD
4906 };
4907
093d3ff1
RD
4908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail;
4909 {
4910 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4911 if (SWIG_arg_fail(1)) SWIG_fail;
4912 if (arg1 == NULL) {
4913 SWIG_null_ref("wxBitmap");
4914 }
4915 if (SWIG_arg_fail(1)) SWIG_fail;
4916 }
4917 if (obj1) {
4918 {
4919 arg2 = &temp2;
4920 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4921 }
4922 }
d14a1e28 4923 {
093d3ff1 4924 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28 4925 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 4926 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
d14a1e28
RD
4927
4928 wxPyEndAllowThreads(__tstate);
4929 if (PyErr_Occurred()) SWIG_fail;
4930 }
093d3ff1 4931 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1);
d14a1e28
RD
4932 return resultobj;
4933 fail:
4934 return NULL;
4935}
4936
4937
093d3ff1
RD
4938static PyObject * Mask_swigregister(PyObject *, PyObject *args) {
4939 PyObject *obj;
4940 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4941 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
4942 Py_INCREF(obj);
4943 return Py_BuildValue((char *)"");
4944}
4945static PyObject *_wrap_new_Icon(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 4946 PyObject *resultobj;
093d3ff1
RD
4947 wxString *arg1 = 0 ;
4948 wxBitmapType arg2 ;
4949 int arg3 = (int) -1 ;
4950 int arg4 = (int) -1 ;
4951 wxIcon *result;
4952 bool temp1 = false ;
d14a1e28 4953 PyObject * obj0 = 0 ;
093d3ff1
RD
4954 PyObject * obj1 = 0 ;
4955 PyObject * obj2 = 0 ;
4956 PyObject * obj3 = 0 ;
d14a1e28 4957 char *kwnames[] = {
093d3ff1 4958 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
d14a1e28
RD
4959 };
4960
093d3ff1 4961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d14a1e28 4962 {
093d3ff1
RD
4963 arg1 = wxString_in_helper(obj0);
4964 if (arg1 == NULL) SWIG_fail;
4965 temp1 = true;
4966 }
4967 {
4968 arg2 = (wxBitmapType)(SWIG_As_int(obj1));
4969 if (SWIG_arg_fail(2)) SWIG_fail;
4970 }
4971 if (obj2) {
4972 {
4973 arg3 = (int)(SWIG_As_int(obj2));
4974 if (SWIG_arg_fail(3)) SWIG_fail;
4975 }
4976 }
4977 if (obj3) {
4978 {
4979 arg4 = (int)(SWIG_As_int(obj3));
4980 if (SWIG_arg_fail(4)) SWIG_fail;
4981 }
4982 }
4983 {
4984 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28 4985 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 4986 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
d14a1e28
RD
4987
4988 wxPyEndAllowThreads(__tstate);
4989 if (PyErr_Occurred()) SWIG_fail;
4990 }
093d3ff1 4991 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
4f89f6a3 4992 {
093d3ff1
RD
4993 if (temp1)
4994 delete arg1;
4f89f6a3 4995 }
d14a1e28
RD
4996 return resultobj;
4997 fail:
093d3ff1
RD
4998 {
4999 if (temp1)
5000 delete arg1;
5001 }
d14a1e28
RD
5002 return NULL;
5003}
5004
5005
093d3ff1 5006static PyObject *_wrap_delete_Icon(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 5007 PyObject *resultobj;
093d3ff1 5008 wxIcon *arg1 = (wxIcon *) 0 ;
d14a1e28 5009 PyObject * obj0 = 0 ;
d14a1e28 5010 char *kwnames[] = {
093d3ff1 5011 (char *) "self", NULL
d14a1e28
RD
5012 };
5013
093d3ff1
RD
5014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
5015 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5016 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
5017 {
5018 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 5019 delete arg1;
d14a1e28
RD
5020
5021 wxPyEndAllowThreads(__tstate);
5022 if (PyErr_Occurred()) SWIG_fail;
5023 }
5024 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
5025 return resultobj;
5026 fail:
d14a1e28
RD
5027 return NULL;
5028}
5029
5030
093d3ff1 5031static PyObject *_wrap_new_EmptyIcon(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 5032 PyObject *resultobj;
093d3ff1 5033 wxIcon *result;
d14a1e28 5034 char *kwnames[] = {
093d3ff1 5035 NULL
d14a1e28
RD
5036 };
5037
093d3ff1 5038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
d14a1e28 5039 {
093d3ff1 5040 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28 5041 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 5042 result = (wxIcon *)new wxIcon();
d14a1e28
RD
5043
5044 wxPyEndAllowThreads(__tstate);
5045 if (PyErr_Occurred()) SWIG_fail;
5046 }
093d3ff1 5047 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
d14a1e28
RD
5048 return resultobj;
5049 fail:
5050 return NULL;
5051}
5052
5053
093d3ff1 5054static PyObject *_wrap_new_IconFromLocation(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 5055 PyObject *resultobj;
093d3ff1
RD
5056 wxIconLocation *arg1 = 0 ;
5057 wxIcon *result;
d14a1e28
RD
5058 PyObject * obj0 = 0 ;
5059 char *kwnames[] = {
093d3ff1 5060 (char *) "loc", NULL
d14a1e28
RD
5061 };
5062
093d3ff1
RD
5063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
5064 {
5065 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0);
5066 if (SWIG_arg_fail(1)) SWIG_fail;
5067 if (arg1 == NULL) {
5068 SWIG_null_ref("wxIconLocation");
5069 }
5070 if (SWIG_arg_fail(1)) SWIG_fail;
5071 }
d14a1e28 5072 {
093d3ff1 5073 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28 5074 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 5075 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
d14a1e28
RD
5076
5077 wxPyEndAllowThreads(__tstate);
5078 if (PyErr_Occurred()) SWIG_fail;
5079 }
093d3ff1 5080 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
d14a1e28
RD
5081 return resultobj;
5082 fail:
5083 return NULL;
5084}
5085
5086
093d3ff1 5087static PyObject *_wrap_new_IconFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 5088 PyObject *resultobj;
093d3ff1
RD
5089 wxBitmap *arg1 = 0 ;
5090 wxIcon *result;
d14a1e28
RD
5091 PyObject * obj0 = 0 ;
5092 char *kwnames[] = {
093d3ff1 5093 (char *) "bmp", NULL
d14a1e28
RD
5094 };
5095
093d3ff1
RD
5096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
5097 {
5098 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
5099 if (SWIG_arg_fail(1)) SWIG_fail;
5100 if (arg1 == NULL) {
5101 SWIG_null_ref("wxBitmap");
5102 }
5103 if (SWIG_arg_fail(1)) SWIG_fail;
5104 }
d14a1e28 5105 {
093d3ff1 5106 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28 5107 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 5108 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
d14a1e28
RD
5109
5110 wxPyEndAllowThreads(__tstate);
5111 if (PyErr_Occurred()) SWIG_fail;
5112 }
093d3ff1 5113 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
d14a1e28
RD
5114 return resultobj;
5115 fail:
5116 return NULL;
5117}
5118
5119
093d3ff1 5120static PyObject *_wrap_new_IconFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 5121 PyObject *resultobj;
093d3ff1
RD
5122 PyObject *arg1 = (PyObject *) 0 ;
5123 wxIcon *result;
5124 PyObject * obj0 = 0 ;
d14a1e28 5125 char *kwnames[] = {
093d3ff1 5126 (char *) "listOfStrings", NULL
d14a1e28
RD
5127 };
5128
093d3ff1
RD
5129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
5130 arg1 = obj0;
d14a1e28 5131 {
093d3ff1 5132 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28 5133 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 5134 result = (wxIcon *)new_wxIcon(arg1);
d14a1e28
RD
5135
5136 wxPyEndAllowThreads(__tstate);
5137 if (PyErr_Occurred()) SWIG_fail;
5138 }
093d3ff1 5139 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
d14a1e28
RD
5140 return resultobj;
5141 fail:
5142 return NULL;
5143}
5144
5145
093d3ff1 5146static PyObject *_wrap_Icon_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 5147 PyObject *resultobj;
093d3ff1
RD
5148 wxIcon *arg1 = (wxIcon *) 0 ;
5149 wxString *arg2 = 0 ;
5150 wxBitmapType arg3 ;
5151 bool result;
5152 bool temp2 = false ;
d14a1e28 5153 PyObject * obj0 = 0 ;
994141e6 5154 PyObject * obj1 = 0 ;
093d3ff1 5155 PyObject * obj2 = 0 ;
d14a1e28 5156 char *kwnames[] = {
093d3ff1 5157 (char *) "self",(char *) "name",(char *) "type", NULL
d14a1e28
RD
5158 };
5159
093d3ff1
RD
5160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
5161 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5162 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28 5163 {
093d3ff1
RD
5164 arg2 = wxString_in_helper(obj1);
5165 if (arg2 == NULL) SWIG_fail;
5166 temp2 = true;
5167 }
5168 {
5169 arg3 = (wxBitmapType)(SWIG_As_int(obj2));
5170 if (SWIG_arg_fail(3)) SWIG_fail;
d14a1e28
RD
5171 }
5172 {
5173 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 5174 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
d14a1e28
RD
5175
5176 wxPyEndAllowThreads(__tstate);
5177 if (PyErr_Occurred()) SWIG_fail;
5178 }
d14a1e28 5179 {
093d3ff1
RD
5180 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5181 }
5182 {
5183 if (temp2)
5184 delete arg2;
d14a1e28
RD
5185 }
5186 return resultobj;
5187 fail:
5188 {
093d3ff1
RD
5189 if (temp2)
5190 delete arg2;
d14a1e28
RD
5191 }
5192 return NULL;
5193}
5194
5195
093d3ff1 5196static PyObject *_wrap_Icon_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 5197 PyObject *resultobj;
093d3ff1
RD
5198 wxIcon *arg1 = (wxIcon *) 0 ;
5199 bool result;
d14a1e28
RD
5200 PyObject * obj0 = 0 ;
5201 char *kwnames[] = {
093d3ff1 5202 (char *) "self", NULL
d14a1e28
RD
5203 };
5204
093d3ff1
RD
5205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
5206 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5207 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
5208 {
5209 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 5210 result = (bool)(arg1)->Ok();
d14a1e28
RD
5211
5212 wxPyEndAllowThreads(__tstate);
5213 if (PyErr_Occurred()) SWIG_fail;
5214 }
093d3ff1
RD
5215 {
5216 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5217 }
d14a1e28
RD
5218 return resultobj;
5219 fail:
5220 return NULL;
5221}
5222
5223
093d3ff1 5224static PyObject *_wrap_Icon_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 5225 PyObject *resultobj;
093d3ff1
RD
5226 wxIcon *arg1 = (wxIcon *) 0 ;
5227 int result;
d14a1e28
RD
5228 PyObject * obj0 = 0 ;
5229 char *kwnames[] = {
5230 (char *) "self", NULL
5231 };
5232
093d3ff1
RD
5233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
5234 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5235 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
5236 {
5237 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 5238 result = (int)(arg1)->GetWidth();
d14a1e28
RD
5239
5240 wxPyEndAllowThreads(__tstate);
5241 if (PyErr_Occurred()) SWIG_fail;
5242 }
093d3ff1
RD
5243 {
5244 resultobj = SWIG_From_int((int)(result));
5245 }
d14a1e28
RD
5246 return resultobj;
5247 fail:
5248 return NULL;
5249}
5250
5251
093d3ff1 5252static PyObject *_wrap_Icon_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 5253 PyObject *resultobj;
093d3ff1
RD
5254 wxIcon *arg1 = (wxIcon *) 0 ;
5255 int result;
d14a1e28 5256 PyObject * obj0 = 0 ;
d14a1e28 5257 char *kwnames[] = {
093d3ff1 5258 (char *) "self", NULL
d14a1e28
RD
5259 };
5260
093d3ff1
RD
5261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
5262 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5263 if (SWIG_arg_fail(1)) SWIG_fail;
5264 {
5265 PyThreadState* __tstate = wxPyBeginAllowThreads();
5266 result = (int)(arg1)->GetHeight();
5267
5268 wxPyEndAllowThreads(__tstate);
5269 if (PyErr_Occurred()) SWIG_fail;
5270 }
5271 {
5272 resultobj = SWIG_From_int((int)(result));
d14a1e28 5273 }
093d3ff1
RD
5274 return resultobj;
5275 fail:
5276 return NULL;
5277}
5278
5279
5280static PyObject *_wrap_Icon_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
5281 PyObject *resultobj;
5282 wxIcon *arg1 = (wxIcon *) 0 ;
5283 int result;
5284 PyObject * obj0 = 0 ;
5285 char *kwnames[] = {
5286 (char *) "self", NULL
5287 };
5288
5289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
5290 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5291 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
5292 {
5293 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 5294 result = (int)(arg1)->GetDepth();
d14a1e28
RD
5295
5296 wxPyEndAllowThreads(__tstate);
5297 if (PyErr_Occurred()) SWIG_fail;
5298 }
093d3ff1
RD
5299 {
5300 resultobj = SWIG_From_int((int)(result));
5301 }
d14a1e28
RD
5302 return resultobj;
5303 fail:
5304 return NULL;
5305}
5306
5307
093d3ff1 5308static PyObject *_wrap_Icon_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 5309 PyObject *resultobj;
093d3ff1
RD
5310 wxIcon *arg1 = (wxIcon *) 0 ;
5311 int arg2 ;
d14a1e28
RD
5312 PyObject * obj0 = 0 ;
5313 PyObject * obj1 = 0 ;
5314 char *kwnames[] = {
093d3ff1 5315 (char *) "self",(char *) "w", NULL
d14a1e28
RD
5316 };
5317
093d3ff1
RD
5318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
5319 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5320 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28 5321 {
093d3ff1
RD
5322 arg2 = (int)(SWIG_As_int(obj1));
5323 if (SWIG_arg_fail(2)) SWIG_fail;
d14a1e28
RD
5324 }
5325 {
5326 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 5327 (arg1)->SetWidth(arg2);
d14a1e28
RD
5328
5329 wxPyEndAllowThreads(__tstate);
5330 if (PyErr_Occurred()) SWIG_fail;
5331 }
5332 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
5333 return resultobj;
5334 fail:
093d3ff1
RD
5335 return NULL;
5336}
5337
5338
5339static PyObject *_wrap_Icon_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
5340 PyObject *resultobj;
5341 wxIcon *arg1 = (wxIcon *) 0 ;
5342 int arg2 ;
5343 PyObject * obj0 = 0 ;
5344 PyObject * obj1 = 0 ;
5345 char *kwnames[] = {
5346 (char *) "self",(char *) "h", NULL
5347 };
5348
5349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
5350 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5351 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28 5352 {
093d3ff1
RD
5353 arg2 = (int)(SWIG_As_int(obj1));
5354 if (SWIG_arg_fail(2)) SWIG_fail;
d14a1e28 5355 }
093d3ff1
RD
5356 {
5357 PyThreadState* __tstate = wxPyBeginAllowThreads();
5358 (arg1)->SetHeight(arg2);
5359
5360 wxPyEndAllowThreads(__tstate);
5361 if (PyErr_Occurred()) SWIG_fail;
5362 }
5363 Py_INCREF(Py_None); resultobj = Py_None;
5364 return resultobj;
5365 fail:
d14a1e28
RD
5366 return NULL;
5367}
5368
5369
093d3ff1 5370static PyObject *_wrap_Icon_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 5371 PyObject *resultobj;
093d3ff1
RD
5372 wxIcon *arg1 = (wxIcon *) 0 ;
5373 int arg2 ;
d14a1e28
RD
5374 PyObject * obj0 = 0 ;
5375 PyObject * obj1 = 0 ;
5376 char *kwnames[] = {
093d3ff1 5377 (char *) "self",(char *) "d", NULL
d14a1e28
RD
5378 };
5379
093d3ff1
RD
5380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
5381 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5382 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28 5383 {
093d3ff1
RD
5384 arg2 = (int)(SWIG_As_int(obj1));
5385 if (SWIG_arg_fail(2)) SWIG_fail;
d14a1e28
RD
5386 }
5387 {
5388 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 5389 (arg1)->SetDepth(arg2);
d14a1e28
RD
5390
5391 wxPyEndAllowThreads(__tstate);
5392 if (PyErr_Occurred()) SWIG_fail;
5393 }
093d3ff1
RD
5394 Py_INCREF(Py_None); resultobj = Py_None;
5395 return resultobj;
5396 fail:
5397 return NULL;
5398}
5399
5400
5401static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5402 PyObject *resultobj;
5403 wxIcon *arg1 = (wxIcon *) 0 ;
5404 wxBitmap *arg2 = 0 ;
5405 PyObject * obj0 = 0 ;
5406 PyObject * obj1 = 0 ;
5407 char *kwnames[] = {
5408 (char *) "self",(char *) "bmp", NULL
5409 };
5410
5411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
5412 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5413 if (SWIG_arg_fail(1)) SWIG_fail;
5414 {
5415 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
5416 if (SWIG_arg_fail(2)) SWIG_fail;
5417 if (arg2 == NULL) {
5418 SWIG_null_ref("wxBitmap");
5419 }
5420 if (SWIG_arg_fail(2)) SWIG_fail;
5421 }
4276dc52 5422 {
093d3ff1
RD
5423 PyThreadState* __tstate = wxPyBeginAllowThreads();
5424 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
5425
5426 wxPyEndAllowThreads(__tstate);
5427 if (PyErr_Occurred()) SWIG_fail;
4276dc52 5428 }
093d3ff1 5429 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
5430 return resultobj;
5431 fail:
5432 return NULL;
5433}
5434
5435
093d3ff1 5436static PyObject * Icon_swigregister(PyObject *, PyObject *args) {
d14a1e28
RD
5437 PyObject *obj;
5438 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
093d3ff1 5439 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
d14a1e28
RD
5440 Py_INCREF(obj);
5441 return Py_BuildValue((char *)"");
5442}
093d3ff1 5443static PyObject *_wrap_new_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 5444 PyObject *resultobj;
093d3ff1
RD
5445 wxString *arg1 = (wxString *) &wxPyEmptyString ;
5446 int arg2 = (int) 0 ;
5447 wxIconLocation *result;
ae8162c8 5448 bool temp1 = false ;
d14a1e28 5449 PyObject * obj0 = 0 ;
994141e6 5450 PyObject * obj1 = 0 ;
d14a1e28 5451 char *kwnames[] = {
093d3ff1 5452 (char *) "filename",(char *) "num", NULL
d14a1e28
RD
5453 };
5454
093d3ff1
RD
5455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
5456 if (obj0) {
5457 {
5458 arg1 = wxString_in_helper(obj0);
5459 if (arg1 == NULL) SWIG_fail;
5460 temp1 = true;
5461 }
994141e6 5462 }
093d3ff1
RD
5463 if (obj1) {
5464 {
5465 arg2 = (int)(SWIG_As_int(obj1));
5466 if (SWIG_arg_fail(2)) SWIG_fail;
5467 }
994141e6 5468 }
d14a1e28
RD
5469 {
5470 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 5471 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
d14a1e28
RD
5472
5473 wxPyEndAllowThreads(__tstate);
110da5b0 5474 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 5475 }
093d3ff1 5476 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1);
7eae615b
RD
5477 {
5478 if (temp1)
5479 delete arg1;
5480 }
d14a1e28
RD
5481 return resultobj;
5482 fail:
7eae615b
RD
5483 {
5484 if (temp1)
5485 delete arg1;
5486 }
d14a1e28
RD
5487 return NULL;
5488}
5489
5490
093d3ff1 5491static PyObject *_wrap_delete_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 5492 PyObject *resultobj;
093d3ff1 5493 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
d14a1e28
RD
5494 PyObject * obj0 = 0 ;
5495 char *kwnames[] = {
5496 (char *) "self", NULL
5497 };
5498
093d3ff1
RD
5499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
5500 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0);
5501 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
5502 {
5503 PyThreadState* __tstate = wxPyBeginAllowThreads();
5504 delete arg1;
5505
5506 wxPyEndAllowThreads(__tstate);
5507 if (PyErr_Occurred()) SWIG_fail;
5508 }
5509 Py_INCREF(Py_None); resultobj = Py_None;
5510 return resultobj;
5511 fail:
5512 return NULL;
5513}
5514
5515
093d3ff1 5516static PyObject *_wrap_IconLocation_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 5517 PyObject *resultobj;
093d3ff1
RD
5518 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
5519 bool result;
994141e6 5520 PyObject * obj0 = 0 ;
d14a1e28 5521 char *kwnames[] = {
093d3ff1 5522 (char *) "self", NULL
d14a1e28
RD
5523 };
5524
093d3ff1
RD
5525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
5526 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0);
5527 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
5528 {
5529 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 5530 result = (bool)((wxIconLocation const *)arg1)->IsOk();
d14a1e28
RD
5531
5532 wxPyEndAllowThreads(__tstate);
110da5b0 5533 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 5534 }
093d3ff1
RD
5535 {
5536 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5537 }
d14a1e28
RD
5538 return resultobj;
5539 fail:
5540 return NULL;
5541}
5542
5543
093d3ff1 5544static PyObject *_wrap_IconLocation_SetFileName(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 5545 PyObject *resultobj;
093d3ff1
RD
5546 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
5547 wxString *arg2 = 0 ;
5548 bool temp2 = false ;
d14a1e28 5549 PyObject * obj0 = 0 ;
093d3ff1 5550 PyObject * obj1 = 0 ;
d14a1e28 5551 char *kwnames[] = {
093d3ff1 5552 (char *) "self",(char *) "filename", NULL
d14a1e28
RD
5553 };
5554
093d3ff1
RD
5555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
5556 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0);
5557 if (SWIG_arg_fail(1)) SWIG_fail;
5558 {
5559 arg2 = wxString_in_helper(obj1);
5560 if (arg2 == NULL) SWIG_fail;
5561 temp2 = true;
d14a1e28
RD
5562 }
5563 {
5564 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 5565 (arg1)->SetFileName((wxString const &)*arg2);
d14a1e28
RD
5566
5567 wxPyEndAllowThreads(__tstate);
110da5b0 5568 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 5569 }
093d3ff1
RD
5570 Py_INCREF(Py_None); resultobj = Py_None;
5571 {
5572 if (temp2)
5573 delete arg2;
5574 }
d14a1e28
RD
5575 return resultobj;
5576 fail:
093d3ff1
RD
5577 {
5578 if (temp2)
5579 delete arg2;
5580 }
d14a1e28
RD
5581 return NULL;
5582}
5583
5584
093d3ff1 5585static PyObject *_wrap_IconLocation_GetFileName(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 5586 PyObject *resultobj;
093d3ff1
RD
5587 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
5588 wxString *result;
d14a1e28
RD
5589 PyObject * obj0 = 0 ;
5590 char *kwnames[] = {
5591 (char *) "self", NULL
5592 };
5593
093d3ff1
RD
5594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
5595 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0);
5596 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
5597 {
5598 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1
RD
5599 {
5600 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
5601 result = (wxString *) &_result_ref;
5602 }
d14a1e28
RD
5603
5604 wxPyEndAllowThreads(__tstate);
5605 if (PyErr_Occurred()) SWIG_fail;
5606 }
4f89f6a3 5607 {
093d3ff1
RD
5608#if wxUSE_UNICODE
5609 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
5610#else
5611 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
5612#endif
4f89f6a3 5613 }
d14a1e28
RD
5614 return resultobj;
5615 fail:
5616 return NULL;
5617}
5618
5619
093d3ff1 5620static PyObject *_wrap_IconLocation_SetIndex(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 5621 PyObject *resultobj;
093d3ff1
RD
5622 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
5623 int arg2 ;
994141e6
RD
5624 PyObject * obj0 = 0 ;
5625 PyObject * obj1 = 0 ;
d14a1e28 5626 char *kwnames[] = {
093d3ff1 5627 (char *) "self",(char *) "num", NULL
d14a1e28
RD
5628 };
5629
093d3ff1
RD
5630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
5631 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0);
5632 if (SWIG_arg_fail(1)) SWIG_fail;
5633 {
5634 arg2 = (int)(SWIG_As_int(obj1));
5635 if (SWIG_arg_fail(2)) SWIG_fail;
994141e6 5636 }
d14a1e28
RD
5637 {
5638 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 5639 wxIconLocation_SetIndex(arg1,arg2);
d14a1e28
RD
5640
5641 wxPyEndAllowThreads(__tstate);
110da5b0 5642 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 5643 }
093d3ff1 5644 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
5645 return resultobj;
5646 fail:
5647 return NULL;
5648}
5649
5650
093d3ff1 5651static PyObject *_wrap_IconLocation_GetIndex(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 5652 PyObject *resultobj;
093d3ff1
RD
5653 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
5654 int result;
e6ffcedd
RD
5655 PyObject * obj0 = 0 ;
5656 char *kwnames[] = {
093d3ff1 5657 (char *) "self", NULL
e6ffcedd
RD
5658 };
5659
093d3ff1
RD
5660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
5661 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0);
5662 if (SWIG_arg_fail(1)) SWIG_fail;
e6ffcedd 5663 {
e6ffcedd 5664 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 5665 result = (int)wxIconLocation_GetIndex(arg1);
e6ffcedd
RD
5666
5667 wxPyEndAllowThreads(__tstate);
110da5b0 5668 if (PyErr_Occurred()) SWIG_fail;
e6ffcedd 5669 }
093d3ff1
RD
5670 {
5671 resultobj = SWIG_From_int((int)(result));
5672 }
e6ffcedd
RD
5673 return resultobj;
5674 fail:
5675 return NULL;
5676}
5677
5678
093d3ff1
RD
5679static PyObject * IconLocation_swigregister(PyObject *, PyObject *args) {
5680 PyObject *obj;
5681 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5682 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
5683 Py_INCREF(obj);
5684 return Py_BuildValue((char *)"");
5685}
5686static PyObject *_wrap_new_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) {
e6ffcedd 5687 PyObject *resultobj;
093d3ff1 5688 wxIconBundle *result;
d14a1e28 5689 char *kwnames[] = {
093d3ff1 5690 NULL
d14a1e28
RD
5691 };
5692
093d3ff1 5693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
d14a1e28
RD
5694 {
5695 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 5696 result = (wxIconBundle *)new wxIconBundle();
d14a1e28
RD
5697
5698 wxPyEndAllowThreads(__tstate);
110da5b0 5699 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 5700 }
093d3ff1 5701 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
d14a1e28
RD
5702 return resultobj;
5703 fail:
5704 return NULL;
5705}
5706
5707
093d3ff1 5708static PyObject *_wrap_new_IconBundleFromFile(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 5709 PyObject *resultobj;
093d3ff1
RD
5710 wxString *arg1 = 0 ;
5711 long arg2 ;
5712 wxIconBundle *result;
5713 bool temp1 = false ;
d14a1e28 5714 PyObject * obj0 = 0 ;
994141e6 5715 PyObject * obj1 = 0 ;
d14a1e28 5716 char *kwnames[] = {
093d3ff1 5717 (char *) "file",(char *) "type", NULL
d14a1e28
RD
5718 };
5719
093d3ff1 5720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 5721 {
093d3ff1
RD
5722 arg1 = wxString_in_helper(obj0);
5723 if (arg1 == NULL) SWIG_fail;
5724 temp1 = true;
d14a1e28 5725 }
093d3ff1
RD
5726 {
5727 arg2 = (long)(SWIG_As_long(obj1));
5728 if (SWIG_arg_fail(2)) SWIG_fail;
994141e6 5729 }
d14a1e28
RD
5730 {
5731 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 5732 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
d14a1e28
RD
5733
5734 wxPyEndAllowThreads(__tstate);
110da5b0 5735 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 5736 }
093d3ff1 5737 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
d14a1e28 5738 {
093d3ff1
RD
5739 if (temp1)
5740 delete arg1;
d14a1e28
RD
5741 }
5742 return resultobj;
5743 fail:
5744 {
093d3ff1
RD
5745 if (temp1)
5746 delete arg1;
d14a1e28
RD
5747 }
5748 return NULL;
5749}
5750
5751
093d3ff1 5752static PyObject *_wrap_new_IconBundleFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 5753 PyObject *resultobj;
093d3ff1
RD
5754 wxIcon *arg1 = 0 ;
5755 wxIconBundle *result;
d14a1e28
RD
5756 PyObject * obj0 = 0 ;
5757 char *kwnames[] = {
093d3ff1 5758 (char *) "icon", NULL
d14a1e28
RD
5759 };
5760
093d3ff1
RD
5761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
5762 {
5763 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5764 if (SWIG_arg_fail(1)) SWIG_fail;
5765 if (arg1 == NULL) {
5766 SWIG_null_ref("wxIcon");
5767 }
5768 if (SWIG_arg_fail(1)) SWIG_fail;
5769 }
d14a1e28
RD
5770 {
5771 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 5772 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
d14a1e28
RD
5773
5774 wxPyEndAllowThreads(__tstate);
5775 if (PyErr_Occurred()) SWIG_fail;
5776 }
093d3ff1 5777 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
d14a1e28
RD
5778 return resultobj;
5779 fail:
5780 return NULL;
5781}
5782
5783
093d3ff1 5784static PyObject *_wrap_delete_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 5785 PyObject *resultobj;
093d3ff1 5786 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
d14a1e28
RD
5787 PyObject * obj0 = 0 ;
5788 char *kwnames[] = {
5789 (char *) "self", NULL
5790 };
5791
093d3ff1
RD
5792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
5793 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconBundle, SWIG_POINTER_EXCEPTION | 0);
5794 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
5795 {
5796 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 5797 delete arg1;
d14a1e28
RD
5798
5799 wxPyEndAllowThreads(__tstate);
5800 if (PyErr_Occurred()) SWIG_fail;
5801 }
5802 Py_INCREF(Py_None); resultobj = Py_None;
5803 return resultobj;
5804 fail:
5805 return NULL;
5806}
5807
5808
093d3ff1 5809static PyObject *_wrap_IconBundle_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 5810 PyObject *resultobj;
093d3ff1
RD
5811 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
5812 wxIcon *arg2 = 0 ;
d14a1e28 5813 PyObject * obj0 = 0 ;
994141e6 5814 PyObject * obj1 = 0 ;
d14a1e28 5815 char *kwnames[] = {
093d3ff1 5816 (char *) "self",(char *) "icon", NULL
d14a1e28
RD
5817 };
5818
093d3ff1
RD
5819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
5820 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconBundle, SWIG_POINTER_EXCEPTION | 0);
5821 if (SWIG_arg_fail(1)) SWIG_fail;
5822 {
5823 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5824 if (SWIG_arg_fail(2)) SWIG_fail;
5825 if (arg2 == NULL) {
5826 SWIG_null_ref("wxIcon");
5827 }
5828 if (SWIG_arg_fail(2)) SWIG_fail;
5829 }
d14a1e28
RD
5830 {
5831 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 5832 (arg1)->AddIcon((wxIcon const &)*arg2);
d14a1e28
RD
5833
5834 wxPyEndAllowThreads(__tstate);
5835 if (PyErr_Occurred()) SWIG_fail;
5836 }
093d3ff1 5837 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
5838 return resultobj;
5839 fail:
5840 return NULL;
5841}
5842
5843
093d3ff1 5844static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 5845 PyObject *resultobj;
093d3ff1
RD
5846 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
5847 wxString *arg2 = 0 ;
5848 long arg3 ;
5849 bool temp2 = false ;
d14a1e28 5850 PyObject * obj0 = 0 ;
994141e6
RD
5851 PyObject * obj1 = 0 ;
5852 PyObject * obj2 = 0 ;
d14a1e28 5853 char *kwnames[] = {
093d3ff1 5854 (char *) "self",(char *) "file",(char *) "type", NULL
d14a1e28
RD
5855 };
5856
093d3ff1
RD
5857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
5858 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconBundle, SWIG_POINTER_EXCEPTION | 0);
5859 if (SWIG_arg_fail(1)) SWIG_fail;
5860 {
5861 arg2 = wxString_in_helper(obj1);
5862 if (arg2 == NULL) SWIG_fail;
5863 temp2 = true;
5864 }
5865 {
5866 arg3 = (long)(SWIG_As_long(obj2));
5867 if (SWIG_arg_fail(3)) SWIG_fail;
5868 }
d14a1e28
RD
5869 {
5870 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 5871 (arg1)->AddIcon((wxString const &)*arg2,arg3);
d14a1e28
RD
5872
5873 wxPyEndAllowThreads(__tstate);
5874 if (PyErr_Occurred()) SWIG_fail;
5875 }
093d3ff1
RD
5876 Py_INCREF(Py_None); resultobj = Py_None;
5877 {
5878 if (temp2)
5879 delete arg2;
5880 }
d14a1e28
RD
5881 return resultobj;
5882 fail:
093d3ff1
RD
5883 {
5884 if (temp2)
5885 delete arg2;
5886 }
d14a1e28
RD
5887 return NULL;
5888}
5889
5890
093d3ff1 5891static PyObject *_wrap_IconBundle_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 5892 PyObject *resultobj;
093d3ff1
RD
5893 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
5894 wxSize *arg2 = 0 ;
5895 wxIcon *result;
5896 wxSize temp2 ;
d14a1e28
RD
5897 PyObject * obj0 = 0 ;
5898 PyObject * obj1 = 0 ;
5899 char *kwnames[] = {
093d3ff1 5900 (char *) "self",(char *) "size", NULL
d14a1e28
RD
5901 };
5902
093d3ff1
RD
5903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
5904 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconBundle, SWIG_POINTER_EXCEPTION | 0);
5905 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
5906 {
5907 arg2 = &temp2;
093d3ff1 5908 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
d14a1e28
RD
5909 }
5910 {
5911 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1
RD
5912 {
5913 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
5914 result = (wxIcon *) &_result_ref;
5915 }
d14a1e28
RD
5916
5917 wxPyEndAllowThreads(__tstate);
5918 if (PyErr_Occurred()) SWIG_fail;
5919 }
093d3ff1
RD
5920 {
5921 wxIcon* resultptr = new wxIcon(*result);
5922 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
5923 }
d14a1e28
RD
5924 return resultobj;
5925 fail:
5926 return NULL;
5927}
5928
5929
093d3ff1
RD
5930static PyObject * IconBundle_swigregister(PyObject *, PyObject *args) {
5931 PyObject *obj;
5932 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5933 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
5934 Py_INCREF(obj);
5935 return Py_BuildValue((char *)"");
5936}
5937static PyObject *_wrap_new_Cursor(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 5938 PyObject *resultobj;
7557b9b5 5939 wxString *arg1 = 0 ;
093d3ff1
RD
5940 long arg2 ;
5941 int arg3 = (int) 0 ;
5942 int arg4 = (int) 0 ;
5943 wxCursor *result;
5944 bool temp1 = false ;
d14a1e28
RD
5945 PyObject * obj0 = 0 ;
5946 PyObject * obj1 = 0 ;
093d3ff1
RD
5947 PyObject * obj2 = 0 ;
5948 PyObject * obj3 = 0 ;
d14a1e28 5949 char *kwnames[] = {
093d3ff1 5950 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
d14a1e28
RD
5951 };
5952
093d3ff1 5953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d14a1e28 5954 {
093d3ff1
RD
5955 arg1 = wxString_in_helper(obj0);
5956 if (arg1 == NULL) SWIG_fail;
5957 temp1 = true;
5958 }
5959 {
5960 arg2 = (long)(SWIG_As_long(obj1));
5961 if (SWIG_arg_fail(2)) SWIG_fail;
5962 }
5963 if (obj2) {
5964 {
5965 arg3 = (int)(SWIG_As_int(obj2));
5966 if (SWIG_arg_fail(3)) SWIG_fail;
5967 }
5968 }
5969 if (obj3) {
5970 {
5971 arg4 = (int)(SWIG_As_int(obj3));
5972 if (SWIG_arg_fail(4)) SWIG_fail;
5973 }
d14a1e28
RD
5974 }
5975 {
093d3ff1 5976 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28 5977 PyThreadState* __tstate = wxPyBeginAllowThreads();
7557b9b5 5978 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
d14a1e28
RD
5979
5980 wxPyEndAllowThreads(__tstate);
5981 if (PyErr_Occurred()) SWIG_fail;
5982 }
093d3ff1
RD
5983 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
5984 {
5985 if (temp1)
5986 delete arg1;
5987 }
d14a1e28
RD
5988 return resultobj;
5989 fail:
093d3ff1
RD
5990 {
5991 if (temp1)
5992 delete arg1;
5993 }
d14a1e28
RD
5994 return NULL;
5995}
5996
5997
093d3ff1 5998static PyObject *_wrap_delete_Cursor(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 5999 PyObject *resultobj;
093d3ff1 6000 wxCursor *arg1 = (wxCursor *) 0 ;
d14a1e28
RD
6001 PyObject * obj0 = 0 ;
6002 char *kwnames[] = {
093d3ff1 6003 (char *) "self", NULL
d14a1e28
RD
6004 };
6005
093d3ff1
RD
6006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
6007 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
6008 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
6009 {
6010 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 6011 delete arg1;
d14a1e28
RD
6012
6013 wxPyEndAllowThreads(__tstate);
6014 if (PyErr_Occurred()) SWIG_fail;
6015 }
093d3ff1 6016 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
6017 return resultobj;
6018 fail:
6019 return NULL;
6020}
6021
6022
093d3ff1 6023static PyObject *_wrap_new_StockCursor(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 6024 PyObject *resultobj;
093d3ff1
RD
6025 int arg1 ;
6026 wxCursor *result;
d14a1e28
RD
6027 PyObject * obj0 = 0 ;
6028 char *kwnames[] = {
093d3ff1 6029 (char *) "id", NULL
d14a1e28
RD
6030 };
6031
093d3ff1
RD
6032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
6033 {
6034 arg1 = (int)(SWIG_As_int(obj0));
6035 if (SWIG_arg_fail(1)) SWIG_fail;
6036 }
d14a1e28 6037 {
093d3ff1 6038 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28 6039 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 6040 result = (wxCursor *)new wxCursor(arg1);
d14a1e28
RD
6041
6042 wxPyEndAllowThreads(__tstate);
6043 if (PyErr_Occurred()) SWIG_fail;
6044 }
093d3ff1 6045 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
d14a1e28
RD
6046 return resultobj;
6047 fail:
6048 return NULL;
6049}
6050
6051
093d3ff1 6052static PyObject *_wrap_new_CursorFromImage(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 6053 PyObject *resultobj;
093d3ff1
RD
6054 wxImage *arg1 = 0 ;
6055 wxCursor *result;
d14a1e28
RD
6056 PyObject * obj0 = 0 ;
6057 char *kwnames[] = {
093d3ff1 6058 (char *) "image", NULL
d14a1e28
RD
6059 };
6060
093d3ff1
RD
6061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
6062 {
6063 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
6064 if (SWIG_arg_fail(1)) SWIG_fail;
6065 if (arg1 == NULL) {
6066 SWIG_null_ref("wxImage");
6067 }
6068 if (SWIG_arg_fail(1)) SWIG_fail;
6069 }
d14a1e28 6070 {
093d3ff1 6071 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28 6072 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 6073 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
d14a1e28
RD
6074
6075 wxPyEndAllowThreads(__tstate);
6076 if (PyErr_Occurred()) SWIG_fail;
6077 }
093d3ff1 6078 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
d14a1e28
RD
6079 return resultobj;
6080 fail:
6081 return NULL;
6082}
6083
6084
093d3ff1 6085static PyObject *_wrap_Cursor_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 6086 PyObject *resultobj;
093d3ff1 6087 wxCursor *arg1 = (wxCursor *) 0 ;
d14a1e28 6088 bool result;
d14a1e28 6089 PyObject * obj0 = 0 ;
d14a1e28 6090 char *kwnames[] = {
093d3ff1 6091 (char *) "self", NULL
d14a1e28
RD
6092 };
6093
093d3ff1
RD
6094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
6095 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
6096 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
6097 {
6098 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 6099 result = (bool)(arg1)->Ok();
d14a1e28
RD
6100
6101 wxPyEndAllowThreads(__tstate);
6102 if (PyErr_Occurred()) SWIG_fail;
6103 }
4f89f6a3
RD
6104 {
6105 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6106 }
d14a1e28
RD
6107 return resultobj;
6108 fail:
6109 return NULL;
6110}
6111
6112
093d3ff1
RD
6113static PyObject * Cursor_swigregister(PyObject *, PyObject *args) {
6114 PyObject *obj;
6115 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6116 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
6117 Py_INCREF(obj);
6118 return Py_BuildValue((char *)"");
6119}
6120static PyObject *_wrap_new_Region(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 6121 PyObject *resultobj;
093d3ff1
RD
6122 int arg1 = (int) 0 ;
6123 int arg2 = (int) 0 ;
6124 int arg3 = (int) 0 ;
6125 int arg4 = (int) 0 ;
6126 wxRegion *result;
d14a1e28
RD
6127 PyObject * obj0 = 0 ;
6128 PyObject * obj1 = 0 ;
093d3ff1
RD
6129 PyObject * obj2 = 0 ;
6130 PyObject * obj3 = 0 ;
d14a1e28 6131 char *kwnames[] = {
093d3ff1 6132 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
d14a1e28
RD
6133 };
6134
093d3ff1
RD
6135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6136 if (obj0) {
6137 {
6138 arg1 = (int)(SWIG_As_int(obj0));
6139 if (SWIG_arg_fail(1)) SWIG_fail;
6140 }
6141 }
6142 if (obj1) {
6143 {
6144 arg2 = (int)(SWIG_As_int(obj1));
6145 if (SWIG_arg_fail(2)) SWIG_fail;
6146 }
6147 }
6148 if (obj2) {
6149 {
6150 arg3 = (int)(SWIG_As_int(obj2));
6151 if (SWIG_arg_fail(3)) SWIG_fail;
6152 }
6153 }
6154 if (obj3) {
6155 {
6156 arg4 = (int)(SWIG_As_int(obj3));
6157 if (SWIG_arg_fail(4)) SWIG_fail;
6158 }
d14a1e28
RD
6159 }
6160 {
093d3ff1 6161 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28 6162 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 6163 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
d14a1e28
RD
6164
6165 wxPyEndAllowThreads(__tstate);
6166 if (PyErr_Occurred()) SWIG_fail;
6167 }
093d3ff1 6168 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
d14a1e28
RD
6169 return resultobj;
6170 fail:
6171 return NULL;
6172}
6173
6174
093d3ff1 6175static PyObject *_wrap_new_RegionFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 6176 PyObject *resultobj;
093d3ff1
RD
6177 wxBitmap *arg1 = 0 ;
6178 wxRegion *result;
d14a1e28
RD
6179 PyObject * obj0 = 0 ;
6180 char *kwnames[] = {
093d3ff1 6181 (char *) "bmp", NULL
d14a1e28
RD
6182 };
6183
093d3ff1
RD
6184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) goto fail;
6185 {
6186 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
6187 if (SWIG_arg_fail(1)) SWIG_fail;
6188 if (arg1 == NULL) {
6189 SWIG_null_ref("wxBitmap");
6190 }
6191 if (SWIG_arg_fail(1)) SWIG_fail;
6192 }
d14a1e28 6193 {
093d3ff1 6194 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28 6195 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 6196 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
d14a1e28
RD
6197
6198 wxPyEndAllowThreads(__tstate);
6199 if (PyErr_Occurred()) SWIG_fail;
6200 }
093d3ff1 6201 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
d14a1e28
RD
6202 return resultobj;
6203 fail:
6204 return NULL;
6205}
6206
6207
093d3ff1 6208static PyObject *_wrap_new_RegionFromBitmapColour(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 6209 PyObject *resultobj;
093d3ff1
RD
6210 wxBitmap *arg1 = 0 ;
6211 wxColour *arg2 = 0 ;
6212 int arg3 = (int) 0 ;
6213 wxRegion *result;
6214 wxColour temp2 ;
d14a1e28 6215 PyObject * obj0 = 0 ;
994141e6
RD
6216 PyObject * obj1 = 0 ;
6217 PyObject * obj2 = 0 ;
d14a1e28 6218 char *kwnames[] = {
093d3ff1 6219 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
d14a1e28
RD
6220 };
6221
093d3ff1
RD
6222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
6223 {
6224 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
6225 if (SWIG_arg_fail(1)) SWIG_fail;
6226 if (arg1 == NULL) {
6227 SWIG_null_ref("wxBitmap");
6228 }
6229 if (SWIG_arg_fail(1)) SWIG_fail;
6230 }
6231 {
6232 arg2 = &temp2;
6233 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6234 }
6235 if (obj2) {
6236 {
6237 arg3 = (int)(SWIG_As_int(obj2));
6238 if (SWIG_arg_fail(3)) SWIG_fail;
6239 }
6240 }
d14a1e28 6241 {
093d3ff1 6242 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28 6243 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 6244 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
d14a1e28
RD
6245
6246 wxPyEndAllowThreads(__tstate);
6247 if (PyErr_Occurred()) SWIG_fail;
6248 }
093d3ff1 6249 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
d14a1e28
RD
6250 return resultobj;
6251 fail:
6252 return NULL;
6253}
6254
6255
093d3ff1 6256static PyObject *_wrap_new_RegionFromPoints(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 6257 PyObject *resultobj;
093d3ff1
RD
6258 int arg1 ;
6259 wxPoint *arg2 = (wxPoint *) 0 ;
6260 int arg3 = (int) wxWINDING_RULE ;
6261 wxRegion *result;
d14a1e28
RD
6262 PyObject * obj0 = 0 ;
6263 PyObject * obj1 = 0 ;
6264 char *kwnames[] = {
093d3ff1 6265 (char *) "points",(char *) "fillStyle", NULL
d14a1e28
RD
6266 };
6267
093d3ff1 6268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 6269 {
093d3ff1
RD
6270 arg2 = wxPoint_LIST_helper(obj0, &arg1);
6271 if (arg2 == NULL) SWIG_fail;
6272 }
6273 if (obj1) {
6274 {
6275 arg3 = (int)(SWIG_As_int(obj1));
6276 if (SWIG_arg_fail(3)) SWIG_fail;
6277 }
d14a1e28
RD
6278 }
6279 {
093d3ff1 6280 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28 6281 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 6282 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
d14a1e28
RD
6283
6284 wxPyEndAllowThreads(__tstate);
6285 if (PyErr_Occurred()) SWIG_fail;
6286 }
093d3ff1 6287 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4f89f6a3 6288 {
093d3ff1 6289 if (arg2) delete [] arg2;
4f89f6a3 6290 }
d14a1e28
RD
6291 return resultobj;
6292 fail:
093d3ff1
RD
6293 {
6294 if (arg2) delete [] arg2;
6295 }
d14a1e28
RD
6296 return NULL;
6297}
6298
6299
093d3ff1 6300static PyObject *_wrap_delete_Region(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
6301 PyObject *resultobj;
6302 wxRegion *arg1 = (wxRegion *) 0 ;
d14a1e28 6303 PyObject * obj0 = 0 ;
d14a1e28 6304 char *kwnames[] = {
093d3ff1 6305 (char *) "self", NULL
d14a1e28
RD
6306 };
6307
093d3ff1
RD
6308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
6309 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6310 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
6311 {
6312 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 6313 delete arg1;
d14a1e28
RD
6314
6315 wxPyEndAllowThreads(__tstate);
6316 if (PyErr_Occurred()) SWIG_fail;
6317 }
093d3ff1 6318 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
6319 return resultobj;
6320 fail:
6321 return NULL;
6322}
6323
6324
093d3ff1 6325static PyObject *_wrap_Region_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
6326 PyObject *resultobj;
6327 wxRegion *arg1 = (wxRegion *) 0 ;
d14a1e28
RD
6328 PyObject * obj0 = 0 ;
6329 char *kwnames[] = {
093d3ff1 6330 (char *) "self", NULL
d14a1e28
RD
6331 };
6332
093d3ff1
RD
6333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
6334 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6335 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
6336 {
6337 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 6338 (arg1)->Clear();
d14a1e28
RD
6339
6340 wxPyEndAllowThreads(__tstate);
6341 if (PyErr_Occurred()) SWIG_fail;
6342 }
093d3ff1 6343 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
6344 return resultobj;
6345 fail:
6346 return NULL;
6347}
6348
6349
093d3ff1 6350static PyObject *_wrap_Region_Offset(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
6351 PyObject *resultobj;
6352 wxRegion *arg1 = (wxRegion *) 0 ;
093d3ff1
RD
6353 int arg2 ;
6354 int arg3 ;
d14a1e28 6355 bool result;
d14a1e28
RD
6356 PyObject * obj0 = 0 ;
6357 PyObject * obj1 = 0 ;
093d3ff1 6358 PyObject * obj2 = 0 ;
d14a1e28 6359 char *kwnames[] = {
093d3ff1 6360 (char *) "self",(char *) "x",(char *) "y", NULL
d14a1e28
RD
6361 };
6362
093d3ff1
RD
6363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail;
6364 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6365 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28 6366 {
093d3ff1
RD
6367 arg2 = (int)(SWIG_As_int(obj1));
6368 if (SWIG_arg_fail(2)) SWIG_fail;
6369 }
6370 {
6371 arg3 = (int)(SWIG_As_int(obj2));
6372 if (SWIG_arg_fail(3)) SWIG_fail;
d14a1e28
RD
6373 }
6374 {
6375 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 6376 result = (bool)(arg1)->Offset(arg2,arg3);
d14a1e28
RD
6377
6378 wxPyEndAllowThreads(__tstate);
6379 if (PyErr_Occurred()) SWIG_fail;
6380 }
4f89f6a3
RD
6381 {
6382 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6383 }
d14a1e28
RD
6384 return resultobj;
6385 fail:
6386 return NULL;
6387}
6388
6389
093d3ff1 6390static PyObject *_wrap_Region_Contains(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
6391 PyObject *resultobj;
6392 wxRegion *arg1 = (wxRegion *) 0 ;
093d3ff1
RD
6393 int arg2 ;
6394 int arg3 ;
6395 wxRegionContain result;
d14a1e28
RD
6396 PyObject * obj0 = 0 ;
6397 PyObject * obj1 = 0 ;
093d3ff1 6398 PyObject * obj2 = 0 ;
d14a1e28 6399 char *kwnames[] = {
093d3ff1 6400 (char *) "self",(char *) "x",(char *) "y", NULL
d14a1e28
RD
6401 };
6402
093d3ff1
RD
6403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
6404 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6405 if (SWIG_arg_fail(1)) SWIG_fail;
6406 {
6407 arg2 = (int)(SWIG_As_int(obj1));
6408 if (SWIG_arg_fail(2)) SWIG_fail;
6409 }
6410 {
6411 arg3 = (int)(SWIG_As_int(obj2));
6412 if (SWIG_arg_fail(3)) SWIG_fail;
d14a1e28
RD
6413 }
6414 {
6415 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 6416 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
d14a1e28
RD
6417
6418 wxPyEndAllowThreads(__tstate);
6419 if (PyErr_Occurred()) SWIG_fail;
6420 }
093d3ff1 6421 resultobj = SWIG_From_int((result));
d14a1e28
RD
6422 return resultobj;
6423 fail:
6424 return NULL;
6425}
6426
6427
093d3ff1 6428static PyObject *_wrap_Region_ContainsPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
6429 PyObject *resultobj;
6430 wxRegion *arg1 = (wxRegion *) 0 ;
093d3ff1
RD
6431 wxPoint *arg2 = 0 ;
6432 wxRegionContain result;
6433 wxPoint temp2 ;
d14a1e28 6434 PyObject * obj0 = 0 ;
994141e6 6435 PyObject * obj1 = 0 ;
d14a1e28 6436 char *kwnames[] = {
093d3ff1 6437 (char *) "self",(char *) "pt", NULL
d14a1e28
RD
6438 };
6439
093d3ff1
RD
6440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
6441 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6442 if (SWIG_arg_fail(1)) SWIG_fail;
6443 {
6444 arg2 = &temp2;
6445 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
6446 }
d14a1e28
RD
6447 {
6448 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 6449 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
d14a1e28
RD
6450
6451 wxPyEndAllowThreads(__tstate);
6452 if (PyErr_Occurred()) SWIG_fail;
6453 }
093d3ff1 6454 resultobj = SWIG_From_int((result));
d14a1e28
RD
6455 return resultobj;
6456 fail:
6457 return NULL;
6458}
6459
6460
093d3ff1 6461static PyObject *_wrap_Region_ContainsRect(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
6462 PyObject *resultobj;
6463 wxRegion *arg1 = (wxRegion *) 0 ;
6464 wxRect *arg2 = 0 ;
093d3ff1 6465 wxRegionContain result;
d14a1e28
RD
6466 wxRect temp2 ;
6467 PyObject * obj0 = 0 ;
6468 PyObject * obj1 = 0 ;
6469 char *kwnames[] = {
6470 (char *) "self",(char *) "rect", NULL
6471 };
6472
093d3ff1
RD
6473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
6474 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6475 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
6476 {
6477 arg2 = &temp2;
6478 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6479 }
6480 {
6481 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 6482 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
d14a1e28
RD
6483
6484 wxPyEndAllowThreads(__tstate);
6485 if (PyErr_Occurred()) SWIG_fail;
6486 }
093d3ff1 6487 resultobj = SWIG_From_int((result));
d14a1e28
RD
6488 return resultobj;
6489 fail:
6490 return NULL;
6491}
6492
6493
093d3ff1 6494static PyObject *_wrap_Region_ContainsRectDim(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
6495 PyObject *resultobj;
6496 wxRegion *arg1 = (wxRegion *) 0 ;
093d3ff1
RD
6497 int arg2 ;
6498 int arg3 ;
6499 int arg4 ;
6500 int arg5 ;
6501 wxRegionContain result;
d14a1e28
RD
6502 PyObject * obj0 = 0 ;
6503 PyObject * obj1 = 0 ;
093d3ff1
RD
6504 PyObject * obj2 = 0 ;
6505 PyObject * obj3 = 0 ;
6506 PyObject * obj4 = 0 ;
d14a1e28 6507 char *kwnames[] = {
093d3ff1 6508 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
d14a1e28
RD
6509 };
6510
093d3ff1
RD
6511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
6512 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6513 if (SWIG_arg_fail(1)) SWIG_fail;
6514 {
6515 arg2 = (int)(SWIG_As_int(obj1));
6516 if (SWIG_arg_fail(2)) SWIG_fail;
6517 }
6518 {
6519 arg3 = (int)(SWIG_As_int(obj2));
6520 if (SWIG_arg_fail(3)) SWIG_fail;
6521 }
6522 {
6523 arg4 = (int)(SWIG_As_int(obj3));
6524 if (SWIG_arg_fail(4)) SWIG_fail;
6525 }
6526 {
6527 arg5 = (int)(SWIG_As_int(obj4));
6528 if (SWIG_arg_fail(5)) SWIG_fail;
d14a1e28
RD
6529 }
6530 {
6531 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 6532 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
d14a1e28
RD
6533
6534 wxPyEndAllowThreads(__tstate);
6535 if (PyErr_Occurred()) SWIG_fail;
6536 }
093d3ff1 6537 resultobj = SWIG_From_int((result));
d14a1e28
RD
6538 return resultobj;
6539 fail:
6540 return NULL;
6541}
6542
6543
093d3ff1 6544static PyObject *_wrap_Region_GetBox(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
6545 PyObject *resultobj;
6546 wxRegion *arg1 = (wxRegion *) 0 ;
093d3ff1 6547 wxRect result;
d14a1e28
RD
6548 PyObject * obj0 = 0 ;
6549 char *kwnames[] = {
6550 (char *) "self", NULL
6551 };
6552
093d3ff1
RD
6553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
6554 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6555 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
6556 {
6557 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 6558 result = (arg1)->GetBox();
d14a1e28
RD
6559
6560 wxPyEndAllowThreads(__tstate);
6561 if (PyErr_Occurred()) SWIG_fail;
6562 }
6563 {
093d3ff1
RD
6564 wxRect * resultptr;
6565 resultptr = new wxRect((wxRect &)(result));
6566 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
d14a1e28
RD
6567 }
6568 return resultobj;
6569 fail:
6570 return NULL;
6571}
6572
6573
093d3ff1 6574static PyObject *_wrap_Region_Intersect(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
6575 PyObject *resultobj;
6576 wxRegion *arg1 = (wxRegion *) 0 ;
093d3ff1
RD
6577 int arg2 ;
6578 int arg3 ;
6579 int arg4 ;
6580 int arg5 ;
e6ffcedd
RD
6581 bool result;
6582 PyObject * obj0 = 0 ;
6583 PyObject * obj1 = 0 ;
093d3ff1
RD
6584 PyObject * obj2 = 0 ;
6585 PyObject * obj3 = 0 ;
6586 PyObject * obj4 = 0 ;
e6ffcedd 6587 char *kwnames[] = {
093d3ff1 6588 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
e6ffcedd
RD
6589 };
6590
093d3ff1
RD
6591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
6592 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6593 if (SWIG_arg_fail(1)) SWIG_fail;
6594 {
6595 arg2 = (int)(SWIG_As_int(obj1));
6596 if (SWIG_arg_fail(2)) SWIG_fail;
6597 }
6598 {
6599 arg3 = (int)(SWIG_As_int(obj2));
6600 if (SWIG_arg_fail(3)) SWIG_fail;
6601 }
6602 {
6603 arg4 = (int)(SWIG_As_int(obj3));
6604 if (SWIG_arg_fail(4)) SWIG_fail;
6605 }
6606 {
6607 arg5 = (int)(SWIG_As_int(obj4));
6608 if (SWIG_arg_fail(5)) SWIG_fail;
e6ffcedd
RD
6609 }
6610 {
6611 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 6612 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
e6ffcedd
RD
6613
6614 wxPyEndAllowThreads(__tstate);
6615 if (PyErr_Occurred()) SWIG_fail;
6616 }
6617 {
6618 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6619 }
6620 return resultobj;
6621 fail:
6622 return NULL;
6623}
6624
6625
093d3ff1 6626static PyObject *_wrap_Region_IntersectRect(PyObject *, PyObject *args, PyObject *kwargs) {
e6ffcedd
RD
6627 PyObject *resultobj;
6628 wxRegion *arg1 = (wxRegion *) 0 ;
093d3ff1 6629 wxRect *arg2 = 0 ;
d14a1e28 6630 bool result;
093d3ff1 6631 wxRect temp2 ;
d14a1e28
RD
6632 PyObject * obj0 = 0 ;
6633 PyObject * obj1 = 0 ;
d14a1e28 6634 char *kwnames[] = {
093d3ff1 6635 (char *) "self",(char *) "rect", NULL
d14a1e28
RD
6636 };
6637
093d3ff1
RD
6638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
6639 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6640 if (SWIG_arg_fail(1)) SWIG_fail;
e6ffcedd 6641 {
093d3ff1
RD
6642 arg2 = &temp2;
6643 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
994141e6 6644 }
d14a1e28
RD
6645 {
6646 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 6647 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
d14a1e28
RD
6648
6649 wxPyEndAllowThreads(__tstate);
6650 if (PyErr_Occurred()) SWIG_fail;
6651 }
4f89f6a3
RD
6652 {
6653 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6654 }
d14a1e28
RD
6655 return resultobj;
6656 fail:
6657 return NULL;
6658}
6659
6660
093d3ff1 6661static PyObject *_wrap_Region_IntersectRegion(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 6662 PyObject *resultobj;
093d3ff1
RD
6663 wxRegion *arg1 = (wxRegion *) 0 ;
6664 wxRegion *arg2 = 0 ;
6665 bool result;
d14a1e28 6666 PyObject * obj0 = 0 ;
093d3ff1 6667 PyObject * obj1 = 0 ;
d14a1e28 6668 char *kwnames[] = {
093d3ff1 6669 (char *) "self",(char *) "region", NULL
d14a1e28
RD
6670 };
6671
093d3ff1
RD
6672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
6673 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6674 if (SWIG_arg_fail(1)) SWIG_fail;
6675 {
6676 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6677 if (SWIG_arg_fail(2)) SWIG_fail;
6678 if (arg2 == NULL) {
6679 SWIG_null_ref("wxRegion");
6680 }
6681 if (SWIG_arg_fail(2)) SWIG_fail;
d14a1e28
RD
6682 }
6683 {
6684 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 6685 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
d14a1e28
RD
6686
6687 wxPyEndAllowThreads(__tstate);
110da5b0 6688 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 6689 }
093d3ff1
RD
6690 {
6691 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6692 }
d14a1e28
RD
6693 return resultobj;
6694 fail:
6695 return NULL;
6696}
6697
6698
093d3ff1 6699static PyObject *_wrap_Region_IsEmpty(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 6700 PyObject *resultobj;
093d3ff1
RD
6701 wxRegion *arg1 = (wxRegion *) 0 ;
6702 bool result;
d14a1e28
RD
6703 PyObject * obj0 = 0 ;
6704 char *kwnames[] = {
6705 (char *) "self", NULL
6706 };
6707
093d3ff1
RD
6708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
6709 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6710 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
6711 {
6712 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 6713 result = (bool)(arg1)->IsEmpty();
d14a1e28
RD
6714
6715 wxPyEndAllowThreads(__tstate);
6716 if (PyErr_Occurred()) SWIG_fail;
6717 }
093d3ff1
RD
6718 {
6719 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6720 }
d14a1e28
RD
6721 return resultobj;
6722 fail:
6723 return NULL;
6724}
6725
6726
093d3ff1 6727static PyObject *_wrap_Region_Union(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 6728 PyObject *resultobj;
093d3ff1
RD
6729 wxRegion *arg1 = (wxRegion *) 0 ;
6730 int arg2 ;
6731 int arg3 ;
6732 int arg4 ;
6733 int arg5 ;
6734 bool result;
d14a1e28 6735 PyObject * obj0 = 0 ;
093d3ff1
RD
6736 PyObject * obj1 = 0 ;
6737 PyObject * obj2 = 0 ;
6738 PyObject * obj3 = 0 ;
6739 PyObject * obj4 = 0 ;
d14a1e28 6740 char *kwnames[] = {
093d3ff1 6741 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
d14a1e28
RD
6742 };
6743
093d3ff1
RD
6744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
6745 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6746 if (SWIG_arg_fail(1)) SWIG_fail;
6747 {
6748 arg2 = (int)(SWIG_As_int(obj1));
6749 if (SWIG_arg_fail(2)) SWIG_fail;
6750 }
6751 {
6752 arg3 = (int)(SWIG_As_int(obj2));
6753 if (SWIG_arg_fail(3)) SWIG_fail;
6754 }
6755 {
6756 arg4 = (int)(SWIG_As_int(obj3));
6757 if (SWIG_arg_fail(4)) SWIG_fail;
6758 }
6759 {
6760 arg5 = (int)(SWIG_As_int(obj4));
6761 if (SWIG_arg_fail(5)) SWIG_fail;
6762 }
d14a1e28
RD
6763 {
6764 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 6765 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
d14a1e28
RD
6766
6767 wxPyEndAllowThreads(__tstate);
6768 if (PyErr_Occurred()) SWIG_fail;
6769 }
093d3ff1
RD
6770 {
6771 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6772 }
d14a1e28
RD
6773 return resultobj;
6774 fail:
6775 return NULL;
6776}
6777
6778
093d3ff1 6779static PyObject *_wrap_Region_UnionRect(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 6780 PyObject *resultobj;
093d3ff1
RD
6781 wxRegion *arg1 = (wxRegion *) 0 ;
6782 wxRect *arg2 = 0 ;
6783 bool result;
6784 wxRect temp2 ;
6785 PyObject * obj0 = 0 ;
6786 PyObject * obj1 = 0 ;
6787 char *kwnames[] = {
6788 (char *) "self",(char *) "rect", NULL
d14a1e28
RD
6789 };
6790
093d3ff1
RD
6791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
6792 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6793 if (SWIG_arg_fail(1)) SWIG_fail;
6794 {
6795 arg2 = &temp2;
6796 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6797 }
d14a1e28
RD
6798 {
6799 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 6800 result = (bool)(arg1)->Union((wxRect const &)*arg2);
d14a1e28
RD
6801
6802 wxPyEndAllowThreads(__tstate);
6803 if (PyErr_Occurred()) SWIG_fail;
6804 }
093d3ff1
RD
6805 {
6806 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6807 }
d14a1e28
RD
6808 return resultobj;
6809 fail:
6810 return NULL;
6811}
6812
6813
093d3ff1 6814static PyObject *_wrap_Region_UnionRegion(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 6815 PyObject *resultobj;
093d3ff1
RD
6816 wxRegion *arg1 = (wxRegion *) 0 ;
6817 wxRegion *arg2 = 0 ;
6818 bool result;
d14a1e28 6819 PyObject * obj0 = 0 ;
093d3ff1 6820 PyObject * obj1 = 0 ;
d14a1e28 6821 char *kwnames[] = {
093d3ff1 6822 (char *) "self",(char *) "region", NULL
d14a1e28
RD
6823 };
6824
093d3ff1
RD
6825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
6826 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6827 if (SWIG_arg_fail(1)) SWIG_fail;
6828 {
6829 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6830 if (SWIG_arg_fail(2)) SWIG_fail;
6831 if (arg2 == NULL) {
6832 SWIG_null_ref("wxRegion");
6833 }
6834 if (SWIG_arg_fail(2)) SWIG_fail;
6835 }
d14a1e28
RD
6836 {
6837 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 6838 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
d14a1e28
RD
6839
6840 wxPyEndAllowThreads(__tstate);
6841 if (PyErr_Occurred()) SWIG_fail;
6842 }
093d3ff1
RD
6843 {
6844 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6845 }
d14a1e28
RD
6846 return resultobj;
6847 fail:
6848 return NULL;
6849}
6850
6851
093d3ff1 6852static PyObject *_wrap_Region_Subtract(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 6853 PyObject *resultobj;
093d3ff1
RD
6854 wxRegion *arg1 = (wxRegion *) 0 ;
6855 int arg2 ;
6856 int arg3 ;
6857 int arg4 ;
6858 int arg5 ;
6859 bool result;
d14a1e28 6860 PyObject * obj0 = 0 ;
093d3ff1
RD
6861 PyObject * obj1 = 0 ;
6862 PyObject * obj2 = 0 ;
6863 PyObject * obj3 = 0 ;
6864 PyObject * obj4 = 0 ;
d14a1e28 6865 char *kwnames[] = {
093d3ff1 6866 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
d14a1e28
RD
6867 };
6868
093d3ff1
RD
6869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
6870 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6871 if (SWIG_arg_fail(1)) SWIG_fail;
6872 {
6873 arg2 = (int)(SWIG_As_int(obj1));
6874 if (SWIG_arg_fail(2)) SWIG_fail;
6875 }
6876 {
6877 arg3 = (int)(SWIG_As_int(obj2));
6878 if (SWIG_arg_fail(3)) SWIG_fail;
6879 }
6880 {
6881 arg4 = (int)(SWIG_As_int(obj3));
6882 if (SWIG_arg_fail(4)) SWIG_fail;
6883 }
6884 {
6885 arg5 = (int)(SWIG_As_int(obj4));
6886 if (SWIG_arg_fail(5)) SWIG_fail;
6887 }
d14a1e28
RD
6888 {
6889 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 6890 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
d14a1e28
RD
6891
6892 wxPyEndAllowThreads(__tstate);
6893 if (PyErr_Occurred()) SWIG_fail;
6894 }
093d3ff1
RD
6895 {
6896 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6897 }
d14a1e28
RD
6898 return resultobj;
6899 fail:
6900 return NULL;
6901}
6902
6903
093d3ff1 6904static PyObject *_wrap_Region_SubtractRect(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 6905 PyObject *resultobj;
093d3ff1
RD
6906 wxRegion *arg1 = (wxRegion *) 0 ;
6907 wxRect *arg2 = 0 ;
6908 bool result;
6909 wxRect temp2 ;
d14a1e28 6910 PyObject * obj0 = 0 ;
093d3ff1 6911 PyObject * obj1 = 0 ;
d14a1e28 6912 char *kwnames[] = {
093d3ff1 6913 (char *) "self",(char *) "rect", NULL
d14a1e28
RD
6914 };
6915
093d3ff1
RD
6916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
6917 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6918 if (SWIG_arg_fail(1)) SWIG_fail;
6919 {
6920 arg2 = &temp2;
6921 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6922 }
d14a1e28
RD
6923 {
6924 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 6925 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
d14a1e28
RD
6926
6927 wxPyEndAllowThreads(__tstate);
6928 if (PyErr_Occurred()) SWIG_fail;
6929 }
093d3ff1
RD
6930 {
6931 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6932 }
d14a1e28
RD
6933 return resultobj;
6934 fail:
6935 return NULL;
6936}
6937
6938
093d3ff1 6939static PyObject *_wrap_Region_SubtractRegion(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 6940 PyObject *resultobj;
093d3ff1
RD
6941 wxRegion *arg1 = (wxRegion *) 0 ;
6942 wxRegion *arg2 = 0 ;
6943 bool result;
d14a1e28 6944 PyObject * obj0 = 0 ;
093d3ff1 6945 PyObject * obj1 = 0 ;
d14a1e28 6946 char *kwnames[] = {
093d3ff1 6947 (char *) "self",(char *) "region", NULL
d14a1e28
RD
6948 };
6949
093d3ff1
RD
6950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
6951 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6952 if (SWIG_arg_fail(1)) SWIG_fail;
6953 {
6954 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6955 if (SWIG_arg_fail(2)) SWIG_fail;
6956 if (arg2 == NULL) {
6957 SWIG_null_ref("wxRegion");
6958 }
6959 if (SWIG_arg_fail(2)) SWIG_fail;
6960 }
d14a1e28
RD
6961 {
6962 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 6963 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
d14a1e28
RD
6964
6965 wxPyEndAllowThreads(__tstate);
6966 if (PyErr_Occurred()) SWIG_fail;
6967 }
093d3ff1
RD
6968 {
6969 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6970 }
d14a1e28
RD
6971 return resultobj;
6972 fail:
6973 return NULL;
6974}
6975
6976
093d3ff1 6977static PyObject *_wrap_Region_Xor(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 6978 PyObject *resultobj;
093d3ff1
RD
6979 wxRegion *arg1 = (wxRegion *) 0 ;
6980 int arg2 ;
6981 int arg3 ;
6982 int arg4 ;
6983 int arg5 ;
6984 bool result;
d14a1e28 6985 PyObject * obj0 = 0 ;
093d3ff1
RD
6986 PyObject * obj1 = 0 ;
6987 PyObject * obj2 = 0 ;
6988 PyObject * obj3 = 0 ;
6989 PyObject * obj4 = 0 ;
d14a1e28 6990 char *kwnames[] = {
093d3ff1 6991 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
d14a1e28
RD
6992 };
6993
093d3ff1
RD
6994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
6995 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6996 if (SWIG_arg_fail(1)) SWIG_fail;
6997 {
6998 arg2 = (int)(SWIG_As_int(obj1));
6999 if (SWIG_arg_fail(2)) SWIG_fail;
7000 }
7001 {
7002 arg3 = (int)(SWIG_As_int(obj2));
7003 if (SWIG_arg_fail(3)) SWIG_fail;
7004 }
7005 {
7006 arg4 = (int)(SWIG_As_int(obj3));
7007 if (SWIG_arg_fail(4)) SWIG_fail;
7008 }
7009 {
7010 arg5 = (int)(SWIG_As_int(obj4));
7011 if (SWIG_arg_fail(5)) SWIG_fail;
7012 }
d14a1e28
RD
7013 {
7014 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7015 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
d14a1e28
RD
7016
7017 wxPyEndAllowThreads(__tstate);
7018 if (PyErr_Occurred()) SWIG_fail;
7019 }
7020 {
093d3ff1 7021 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
7022 }
7023 return resultobj;
7024 fail:
7025 return NULL;
7026}
7027
7028
093d3ff1 7029static PyObject *_wrap_Region_XorRect(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 7030 PyObject *resultobj;
093d3ff1
RD
7031 wxRegion *arg1 = (wxRegion *) 0 ;
7032 wxRect *arg2 = 0 ;
d14a1e28 7033 bool result;
093d3ff1 7034 wxRect temp2 ;
d14a1e28 7035 PyObject * obj0 = 0 ;
093d3ff1 7036 PyObject * obj1 = 0 ;
d14a1e28 7037 char *kwnames[] = {
093d3ff1 7038 (char *) "self",(char *) "rect", NULL
d14a1e28
RD
7039 };
7040
093d3ff1
RD
7041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
7042 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7043 if (SWIG_arg_fail(1)) SWIG_fail;
7044 {
7045 arg2 = &temp2;
7046 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
7047 }
d14a1e28
RD
7048 {
7049 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7050 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
d14a1e28
RD
7051
7052 wxPyEndAllowThreads(__tstate);
7053 if (PyErr_Occurred()) SWIG_fail;
7054 }
4f89f6a3
RD
7055 {
7056 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7057 }
d14a1e28
RD
7058 return resultobj;
7059 fail:
7060 return NULL;
7061}
7062
7063
093d3ff1 7064static PyObject *_wrap_Region_XorRegion(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 7065 PyObject *resultobj;
093d3ff1
RD
7066 wxRegion *arg1 = (wxRegion *) 0 ;
7067 wxRegion *arg2 = 0 ;
7068 bool result;
d14a1e28 7069 PyObject * obj0 = 0 ;
093d3ff1 7070 PyObject * obj1 = 0 ;
d14a1e28 7071 char *kwnames[] = {
093d3ff1 7072 (char *) "self",(char *) "region", NULL
d14a1e28
RD
7073 };
7074
093d3ff1
RD
7075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
7076 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7077 if (SWIG_arg_fail(1)) SWIG_fail;
7078 {
7079 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7080 if (SWIG_arg_fail(2)) SWIG_fail;
7081 if (arg2 == NULL) {
7082 SWIG_null_ref("wxRegion");
7083 }
7084 if (SWIG_arg_fail(2)) SWIG_fail;
7085 }
d14a1e28
RD
7086 {
7087 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7088 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
d14a1e28
RD
7089
7090 wxPyEndAllowThreads(__tstate);
7091 if (PyErr_Occurred()) SWIG_fail;
7092 }
093d3ff1
RD
7093 {
7094 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7095 }
d14a1e28
RD
7096 return resultobj;
7097 fail:
7098 return NULL;
7099}
7100
7101
093d3ff1 7102static PyObject *_wrap_Region_ConvertToBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 7103 PyObject *resultobj;
093d3ff1
RD
7104 wxRegion *arg1 = (wxRegion *) 0 ;
7105 SwigValueWrapper<wxBitmap > result;
d14a1e28
RD
7106 PyObject * obj0 = 0 ;
7107 char *kwnames[] = {
7108 (char *) "self", NULL
7109 };
7110
093d3ff1
RD
7111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
7112 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7113 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
7114 {
7115 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7116 result = (arg1)->ConvertToBitmap();
d14a1e28
RD
7117
7118 wxPyEndAllowThreads(__tstate);
7119 if (PyErr_Occurred()) SWIG_fail;
7120 }
093d3ff1
RD
7121 {
7122 wxBitmap * resultptr;
7123 resultptr = new wxBitmap((wxBitmap &)(result));
7124 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
7125 }
d14a1e28
RD
7126 return resultobj;
7127 fail:
7128 return NULL;
7129}
7130
7131
093d3ff1 7132static PyObject *_wrap_Region_UnionBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 7133 PyObject *resultobj;
093d3ff1
RD
7134 wxRegion *arg1 = (wxRegion *) 0 ;
7135 wxBitmap *arg2 = 0 ;
d14a1e28
RD
7136 bool result;
7137 PyObject * obj0 = 0 ;
093d3ff1 7138 PyObject * obj1 = 0 ;
d14a1e28 7139 char *kwnames[] = {
093d3ff1 7140 (char *) "self",(char *) "bmp", NULL
d14a1e28
RD
7141 };
7142
093d3ff1
RD
7143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) goto fail;
7144 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7145 if (SWIG_arg_fail(1)) SWIG_fail;
7146 {
7147 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
7148 if (SWIG_arg_fail(2)) SWIG_fail;
7149 if (arg2 == NULL) {
7150 SWIG_null_ref("wxBitmap");
7151 }
7152 if (SWIG_arg_fail(2)) SWIG_fail;
7153 }
d14a1e28
RD
7154 {
7155 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7156 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
d14a1e28
RD
7157
7158 wxPyEndAllowThreads(__tstate);
7159 if (PyErr_Occurred()) SWIG_fail;
7160 }
4f89f6a3
RD
7161 {
7162 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7163 }
d14a1e28
RD
7164 return resultobj;
7165 fail:
7166 return NULL;
7167}
7168
7169
093d3ff1 7170static PyObject *_wrap_Region_UnionBitmapColour(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 7171 PyObject *resultobj;
093d3ff1
RD
7172 wxRegion *arg1 = (wxRegion *) 0 ;
7173 wxBitmap *arg2 = 0 ;
7174 wxColour *arg3 = 0 ;
7175 int arg4 = (int) 0 ;
7176 bool result;
7177 wxColour temp3 ;
7178 PyObject * obj0 = 0 ;
7179 PyObject * obj1 = 0 ;
7180 PyObject * obj2 = 0 ;
7181 PyObject * obj3 = 0 ;
d14a1e28 7182 char *kwnames[] = {
093d3ff1 7183 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
d14a1e28
RD
7184 };
7185
093d3ff1
RD
7186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7187 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7188 if (SWIG_arg_fail(1)) SWIG_fail;
7189 {
7190 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
7191 if (SWIG_arg_fail(2)) SWIG_fail;
7192 if (arg2 == NULL) {
7193 SWIG_null_ref("wxBitmap");
7194 }
7195 if (SWIG_arg_fail(2)) SWIG_fail;
7196 }
7197 {
7198 arg3 = &temp3;
7199 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
7200 }
7201 if (obj3) {
7202 {
7203 arg4 = (int)(SWIG_As_int(obj3));
7204 if (SWIG_arg_fail(4)) SWIG_fail;
7205 }
7206 }
d14a1e28
RD
7207 {
7208 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7209 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
d14a1e28
RD
7210
7211 wxPyEndAllowThreads(__tstate);
7212 if (PyErr_Occurred()) SWIG_fail;
7213 }
093d3ff1
RD
7214 {
7215 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7216 }
d14a1e28
RD
7217 return resultobj;
7218 fail:
7219 return NULL;
7220}
7221
7222
093d3ff1
RD
7223static PyObject * Region_swigregister(PyObject *, PyObject *args) {
7224 PyObject *obj;
7225 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7226 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
7227 Py_INCREF(obj);
7228 return Py_BuildValue((char *)"");
7229}
7230static PyObject *_wrap_new_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) {
7231 PyObject *resultobj;
7232 wxRegion *arg1 = 0 ;
7233 wxRegionIterator *result;
d14a1e28
RD
7234 PyObject * obj0 = 0 ;
7235 char *kwnames[] = {
093d3ff1 7236 (char *) "region", NULL
d14a1e28
RD
7237 };
7238
093d3ff1 7239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
d14a1e28 7240 {
093d3ff1
RD
7241 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7242 if (SWIG_arg_fail(1)) SWIG_fail;
7243 if (arg1 == NULL) {
7244 SWIG_null_ref("wxRegion");
7245 }
7246 if (SWIG_arg_fail(1)) SWIG_fail;
7247 }
7248 {
7249 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28 7250 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7251 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
d14a1e28
RD
7252
7253 wxPyEndAllowThreads(__tstate);
7254 if (PyErr_Occurred()) SWIG_fail;
7255 }
093d3ff1 7256 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1);
d14a1e28
RD
7257 return resultobj;
7258 fail:
7259 return NULL;
7260}
7261
7262
093d3ff1 7263static PyObject *_wrap_delete_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 7264 PyObject *resultobj;
093d3ff1 7265 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
d14a1e28
RD
7266 PyObject * obj0 = 0 ;
7267 char *kwnames[] = {
7268 (char *) "self", NULL
7269 };
7270
093d3ff1
RD
7271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
7272 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
7273 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
7274 {
7275 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7276 delete arg1;
d14a1e28
RD
7277
7278 wxPyEndAllowThreads(__tstate);
7279 if (PyErr_Occurred()) SWIG_fail;
7280 }
7281 Py_INCREF(Py_None); resultobj = Py_None;
7282 return resultobj;
7283 fail:
7284 return NULL;
7285}
7286
7287
093d3ff1 7288static PyObject *_wrap_RegionIterator_GetX(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 7289 PyObject *resultobj;
093d3ff1
RD
7290 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
7291 int result;
d14a1e28 7292 PyObject * obj0 = 0 ;
d14a1e28 7293 char *kwnames[] = {
093d3ff1 7294 (char *) "self", NULL
d14a1e28
RD
7295 };
7296
093d3ff1
RD
7297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
7298 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
7299 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
7300 {
7301 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7302 result = (int)(arg1)->GetX();
d14a1e28
RD
7303
7304 wxPyEndAllowThreads(__tstate);
7305 if (PyErr_Occurred()) SWIG_fail;
7306 }
093d3ff1
RD
7307 {
7308 resultobj = SWIG_From_int((int)(result));
7309 }
d14a1e28
RD
7310 return resultobj;
7311 fail:
7312 return NULL;
7313}
7314
7315
093d3ff1 7316static PyObject *_wrap_RegionIterator_GetY(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 7317 PyObject *resultobj;
093d3ff1 7318 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
d14a1e28
RD
7319 int result;
7320 PyObject * obj0 = 0 ;
7321 char *kwnames[] = {
7322 (char *) "self", NULL
7323 };
7324
093d3ff1
RD
7325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
7326 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
7327 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
7328 {
7329 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7330 result = (int)(arg1)->GetY();
d14a1e28
RD
7331
7332 wxPyEndAllowThreads(__tstate);
7333 if (PyErr_Occurred()) SWIG_fail;
7334 }
093d3ff1
RD
7335 {
7336 resultobj = SWIG_From_int((int)(result));
7337 }
d14a1e28
RD
7338 return resultobj;
7339 fail:
7340 return NULL;
7341}
7342
7343
093d3ff1 7344static PyObject *_wrap_RegionIterator_GetW(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 7345 PyObject *resultobj;
093d3ff1 7346 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
d14a1e28
RD
7347 int result;
7348 PyObject * obj0 = 0 ;
7349 char *kwnames[] = {
7350 (char *) "self", NULL
7351 };
7352
093d3ff1
RD
7353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
7354 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
7355 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
7356 {
7357 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7358 result = (int)(arg1)->GetW();
d14a1e28
RD
7359
7360 wxPyEndAllowThreads(__tstate);
7361 if (PyErr_Occurred()) SWIG_fail;
7362 }
093d3ff1
RD
7363 {
7364 resultobj = SWIG_From_int((int)(result));
7365 }
d14a1e28
RD
7366 return resultobj;
7367 fail:
7368 return NULL;
7369}
7370
7371
093d3ff1 7372static PyObject *_wrap_RegionIterator_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 7373 PyObject *resultobj;
093d3ff1 7374 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
d14a1e28
RD
7375 int result;
7376 PyObject * obj0 = 0 ;
7377 char *kwnames[] = {
7378 (char *) "self", NULL
7379 };
7380
093d3ff1
RD
7381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
7382 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
7383 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
7384 {
7385 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7386 result = (int)(arg1)->GetWidth();
d14a1e28
RD
7387
7388 wxPyEndAllowThreads(__tstate);
7389 if (PyErr_Occurred()) SWIG_fail;
7390 }
093d3ff1
RD
7391 {
7392 resultobj = SWIG_From_int((int)(result));
7393 }
d14a1e28
RD
7394 return resultobj;
7395 fail:
7396 return NULL;
7397}
7398
7399
093d3ff1 7400static PyObject *_wrap_RegionIterator_GetH(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 7401 PyObject *resultobj;
093d3ff1
RD
7402 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
7403 int result;
d14a1e28
RD
7404 PyObject * obj0 = 0 ;
7405 char *kwnames[] = {
7406 (char *) "self", NULL
7407 };
7408
093d3ff1
RD
7409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
7410 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
7411 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
7412 {
7413 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7414 result = (int)(arg1)->GetH();
d14a1e28
RD
7415
7416 wxPyEndAllowThreads(__tstate);
7417 if (PyErr_Occurred()) SWIG_fail;
7418 }
4f89f6a3 7419 {
093d3ff1 7420 resultobj = SWIG_From_int((int)(result));
4f89f6a3 7421 }
d14a1e28
RD
7422 return resultobj;
7423 fail:
7424 return NULL;
7425}
7426
7427
093d3ff1 7428static PyObject *_wrap_RegionIterator_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 7429 PyObject *resultobj;
093d3ff1
RD
7430 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
7431 int result;
d14a1e28
RD
7432 PyObject * obj0 = 0 ;
7433 char *kwnames[] = {
7434 (char *) "self", NULL
7435 };
7436
093d3ff1
RD
7437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
7438 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
7439 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
7440 {
7441 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7442 result = (int)(arg1)->GetHeight();
d14a1e28
RD
7443
7444 wxPyEndAllowThreads(__tstate);
7445 if (PyErr_Occurred()) SWIG_fail;
7446 }
7447 {
093d3ff1 7448 resultobj = SWIG_From_int((int)(result));
d14a1e28
RD
7449 }
7450 return resultobj;
7451 fail:
7452 return NULL;
7453}
7454
7455
093d3ff1 7456static PyObject *_wrap_RegionIterator_GetRect(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 7457 PyObject *resultobj;
093d3ff1
RD
7458 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
7459 wxRect result;
d14a1e28
RD
7460 PyObject * obj0 = 0 ;
7461 char *kwnames[] = {
7462 (char *) "self", NULL
7463 };
7464
093d3ff1
RD
7465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
7466 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
7467 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
7468 {
7469 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7470 result = (arg1)->GetRect();
d14a1e28
RD
7471
7472 wxPyEndAllowThreads(__tstate);
7473 if (PyErr_Occurred()) SWIG_fail;
7474 }
093d3ff1
RD
7475 {
7476 wxRect * resultptr;
7477 resultptr = new wxRect((wxRect &)(result));
7478 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
7479 }
d14a1e28
RD
7480 return resultobj;
7481 fail:
7482 return NULL;
7483}
7484
7485
093d3ff1 7486static PyObject *_wrap_RegionIterator_HaveRects(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 7487 PyObject *resultobj;
093d3ff1
RD
7488 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
7489 bool result;
d14a1e28
RD
7490 PyObject * obj0 = 0 ;
7491 char *kwnames[] = {
7492 (char *) "self", NULL
7493 };
7494
093d3ff1
RD
7495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
7496 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
7497 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
7498 {
7499 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7500 result = (bool)(arg1)->HaveRects();
d14a1e28
RD
7501
7502 wxPyEndAllowThreads(__tstate);
7503 if (PyErr_Occurred()) SWIG_fail;
7504 }
093d3ff1
RD
7505 {
7506 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7507 }
d14a1e28
RD
7508 return resultobj;
7509 fail:
7510 return NULL;
7511}
7512
7513
093d3ff1 7514static PyObject *_wrap_RegionIterator_Reset(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 7515 PyObject *resultobj;
093d3ff1 7516 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
d14a1e28
RD
7517 PyObject * obj0 = 0 ;
7518 char *kwnames[] = {
093d3ff1 7519 (char *) "self", NULL
d14a1e28
RD
7520 };
7521
093d3ff1
RD
7522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
7523 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
7524 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
7525 {
7526 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7527 (arg1)->Reset();
d14a1e28
RD
7528
7529 wxPyEndAllowThreads(__tstate);
7530 if (PyErr_Occurred()) SWIG_fail;
7531 }
7532 Py_INCREF(Py_None); resultobj = Py_None;
7533 return resultobj;
7534 fail:
7535 return NULL;
7536}
7537
7538
093d3ff1 7539static PyObject *_wrap_RegionIterator_Next(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 7540 PyObject *resultobj;
093d3ff1 7541 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
d14a1e28
RD
7542 PyObject * obj0 = 0 ;
7543 char *kwnames[] = {
093d3ff1 7544 (char *) "self", NULL
d14a1e28
RD
7545 };
7546
093d3ff1
RD
7547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
7548 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
7549 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
7550 {
7551 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7552 wxRegionIterator_Next(arg1);
d14a1e28
RD
7553
7554 wxPyEndAllowThreads(__tstate);
7555 if (PyErr_Occurred()) SWIG_fail;
7556 }
7557 Py_INCREF(Py_None); resultobj = Py_None;
7558 return resultobj;
7559 fail:
7560 return NULL;
7561}
7562
7563
093d3ff1 7564static PyObject *_wrap_RegionIterator___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 7565 PyObject *resultobj;
093d3ff1
RD
7566 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
7567 bool result;
d14a1e28
RD
7568 PyObject * obj0 = 0 ;
7569 char *kwnames[] = {
093d3ff1 7570 (char *) "self", NULL
d14a1e28
RD
7571 };
7572
093d3ff1
RD
7573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
7574 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
7575 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
7576 {
7577 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7578 result = (bool)wxRegionIterator___nonzero__(arg1);
d14a1e28
RD
7579
7580 wxPyEndAllowThreads(__tstate);
7581 if (PyErr_Occurred()) SWIG_fail;
7582 }
093d3ff1
RD
7583 {
7584 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7585 }
d14a1e28
RD
7586 return resultobj;
7587 fail:
7588 return NULL;
7589}
7590
7591
093d3ff1
RD
7592static PyObject * RegionIterator_swigregister(PyObject *, PyObject *args) {
7593 PyObject *obj;
7594 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7595 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
7596 Py_INCREF(obj);
7597 return Py_BuildValue((char *)"");
7598}
7599static PyObject *_wrap_new_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 7600 PyObject *resultobj;
093d3ff1 7601 wxNativeFontInfo *result;
d14a1e28 7602 char *kwnames[] = {
093d3ff1 7603 NULL
d14a1e28
RD
7604 };
7605
093d3ff1 7606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
d14a1e28
RD
7607 {
7608 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7609 result = (wxNativeFontInfo *)new wxNativeFontInfo();
d14a1e28
RD
7610
7611 wxPyEndAllowThreads(__tstate);
7612 if (PyErr_Occurred()) SWIG_fail;
7613 }
093d3ff1 7614 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1);
d14a1e28
RD
7615 return resultobj;
7616 fail:
7617 return NULL;
7618}
7619
7620
093d3ff1 7621static PyObject *_wrap_delete_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
7622 PyObject *resultobj;
7623 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
d14a1e28 7624 PyObject * obj0 = 0 ;
d14a1e28 7625 char *kwnames[] = {
093d3ff1 7626 (char *) "self", NULL
d14a1e28
RD
7627 };
7628
093d3ff1
RD
7629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
7630 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
7631 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
7632 {
7633 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7634 delete arg1;
d14a1e28
RD
7635
7636 wxPyEndAllowThreads(__tstate);
7637 if (PyErr_Occurred()) SWIG_fail;
7638 }
7639 Py_INCREF(Py_None); resultobj = Py_None;
7640 return resultobj;
7641 fail:
7642 return NULL;
7643}
7644
7645
093d3ff1 7646static PyObject *_wrap_NativeFontInfo_Init(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
7647 PyObject *resultobj;
7648 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
d14a1e28
RD
7649 PyObject * obj0 = 0 ;
7650 char *kwnames[] = {
093d3ff1 7651 (char *) "self", NULL
d14a1e28
RD
7652 };
7653
093d3ff1
RD
7654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
7655 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
7656 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
7657 {
7658 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7659 (arg1)->Init();
d14a1e28
RD
7660
7661 wxPyEndAllowThreads(__tstate);
7662 if (PyErr_Occurred()) SWIG_fail;
7663 }
7664 Py_INCREF(Py_None); resultobj = Py_None;
7665 return resultobj;
7666 fail:
7667 return NULL;
7668}
7669
7670
093d3ff1 7671static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
7672 PyObject *resultobj;
7673 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
093d3ff1 7674 wxFont *arg2 = 0 ;
d14a1e28 7675 PyObject * obj0 = 0 ;
994141e6 7676 PyObject * obj1 = 0 ;
d14a1e28 7677 char *kwnames[] = {
093d3ff1 7678 (char *) "self",(char *) "font", NULL
d14a1e28
RD
7679 };
7680
093d3ff1
RD
7681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
7682 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
7683 if (SWIG_arg_fail(1)) SWIG_fail;
7684 {
7685 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
7686 if (SWIG_arg_fail(2)) SWIG_fail;
7687 if (arg2 == NULL) {
7688 SWIG_null_ref("wxFont");
7689 }
7690 if (SWIG_arg_fail(2)) SWIG_fail;
7691 }
d14a1e28
RD
7692 {
7693 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7694 (arg1)->InitFromFont((wxFont const &)*arg2);
d14a1e28
RD
7695
7696 wxPyEndAllowThreads(__tstate);
7697 if (PyErr_Occurred()) SWIG_fail;
7698 }
7699 Py_INCREF(Py_None); resultobj = Py_None;
7700 return resultobj;
7701 fail:
7702 return NULL;
7703}
7704
7705
093d3ff1 7706static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
7707 PyObject *resultobj;
7708 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
093d3ff1 7709 int result;
d14a1e28 7710 PyObject * obj0 = 0 ;
d14a1e28 7711 char *kwnames[] = {
093d3ff1 7712 (char *) "self", NULL
d14a1e28
RD
7713 };
7714
093d3ff1
RD
7715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
7716 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
7717 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
7718 {
7719 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7720 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
d14a1e28
RD
7721
7722 wxPyEndAllowThreads(__tstate);
7723 if (PyErr_Occurred()) SWIG_fail;
7724 }
4f89f6a3 7725 {
093d3ff1 7726 resultobj = SWIG_From_int((int)(result));
d14a1e28
RD
7727 }
7728 return resultobj;
7729 fail:
d14a1e28
RD
7730 return NULL;
7731}
7732
7733
093d3ff1 7734static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
7735 PyObject *resultobj;
7736 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
093d3ff1 7737 wxFontStyle result;
d14a1e28
RD
7738 PyObject * obj0 = 0 ;
7739 char *kwnames[] = {
7740 (char *) "self", NULL
7741 };
7742
093d3ff1
RD
7743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
7744 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
7745 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
7746 {
7747 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7748 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
d14a1e28
RD
7749
7750 wxPyEndAllowThreads(__tstate);
7751 if (PyErr_Occurred()) SWIG_fail;
7752 }
093d3ff1 7753 resultobj = SWIG_From_int((result));
d14a1e28
RD
7754 return resultobj;
7755 fail:
7756 return NULL;
7757}
7758
7759
093d3ff1 7760static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
7761 PyObject *resultobj;
7762 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
093d3ff1 7763 wxFontWeight result;
d14a1e28
RD
7764 PyObject * obj0 = 0 ;
7765 char *kwnames[] = {
7766 (char *) "self", NULL
7767 };
7768
093d3ff1
RD
7769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
7770 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
7771 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
7772 {
7773 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7774 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
d14a1e28
RD
7775
7776 wxPyEndAllowThreads(__tstate);
7777 if (PyErr_Occurred()) SWIG_fail;
7778 }
093d3ff1 7779 resultobj = SWIG_From_int((result));
d14a1e28
RD
7780 return resultobj;
7781 fail:
7782 return NULL;
7783}
7784
7785
093d3ff1 7786static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
7787 PyObject *resultobj;
7788 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
d14a1e28 7789 bool result;
d14a1e28 7790 PyObject * obj0 = 0 ;
d14a1e28 7791 char *kwnames[] = {
093d3ff1 7792 (char *) "self", NULL
d14a1e28
RD
7793 };
7794
093d3ff1
RD
7795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
7796 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
7797 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
7798 {
7799 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7800 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
d14a1e28
RD
7801
7802 wxPyEndAllowThreads(__tstate);
7803 if (PyErr_Occurred()) SWIG_fail;
7804 }
4f89f6a3
RD
7805 {
7806 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7807 }
d14a1e28
RD
7808 return resultobj;
7809 fail:
d14a1e28
RD
7810 return NULL;
7811}
7812
7813
093d3ff1 7814static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
7815 PyObject *resultobj;
7816 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7817 wxString result;
7818 PyObject * obj0 = 0 ;
7819 char *kwnames[] = {
7820 (char *) "self", NULL
7821 };
7822
093d3ff1
RD
7823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
7824 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
7825 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
7826 {
7827 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7828 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
d14a1e28
RD
7829
7830 wxPyEndAllowThreads(__tstate);
7831 if (PyErr_Occurred()) SWIG_fail;
7832 }
7833 {
7834#if wxUSE_UNICODE
7835 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7836#else
7837 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7838#endif
7839 }
7840 return resultobj;
7841 fail:
7842 return NULL;
7843}
7844
7845
093d3ff1 7846static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 7847 PyObject *resultobj;
093d3ff1
RD
7848 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7849 wxFontFamily result;
d14a1e28 7850 PyObject * obj0 = 0 ;
d14a1e28 7851 char *kwnames[] = {
093d3ff1 7852 (char *) "self", NULL
d14a1e28
RD
7853 };
7854
093d3ff1
RD
7855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
7856 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
7857 if (SWIG_arg_fail(1)) SWIG_fail;
7eae615b 7858 {
093d3ff1
RD
7859 PyThreadState* __tstate = wxPyBeginAllowThreads();
7860 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
7861
7862 wxPyEndAllowThreads(__tstate);
7863 if (PyErr_Occurred()) SWIG_fail;
7eae615b 7864 }
093d3ff1 7865 resultobj = SWIG_From_int((result));
d14a1e28
RD
7866 return resultobj;
7867 fail:
7868 return NULL;
7869}
7870
7871
093d3ff1 7872static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 7873 PyObject *resultobj;
093d3ff1
RD
7874 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7875 wxFontEncoding result;
d14a1e28
RD
7876 PyObject * obj0 = 0 ;
7877 char *kwnames[] = {
7878 (char *) "self", NULL
7879 };
7880
093d3ff1
RD
7881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
7882 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
7883 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28 7884 {
093d3ff1
RD
7885 PyThreadState* __tstate = wxPyBeginAllowThreads();
7886 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
7887
7888 wxPyEndAllowThreads(__tstate);
7889 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 7890 }
093d3ff1 7891 resultobj = SWIG_From_int((result));
d14a1e28
RD
7892 return resultobj;
7893 fail:
7894 return NULL;
7895}
7896
7897
093d3ff1 7898static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 7899 PyObject *resultobj;
093d3ff1 7900 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
d14a1e28
RD
7901 int arg2 ;
7902 PyObject * obj0 = 0 ;
994141e6 7903 PyObject * obj1 = 0 ;
d14a1e28 7904 char *kwnames[] = {
093d3ff1 7905 (char *) "self",(char *) "pointsize", NULL
d14a1e28
RD
7906 };
7907
093d3ff1
RD
7908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
7909 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
7910 if (SWIG_arg_fail(1)) SWIG_fail;
7911 {
7912 arg2 = (int)(SWIG_As_int(obj1));
7913 if (SWIG_arg_fail(2)) SWIG_fail;
7914 }
7915 {
7916 PyThreadState* __tstate = wxPyBeginAllowThreads();
7917 (arg1)->SetPointSize(arg2);
7918
7919 wxPyEndAllowThreads(__tstate);
7920 if (PyErr_Occurred()) SWIG_fail;
7921 }
d14a1e28
RD
7922 Py_INCREF(Py_None); resultobj = Py_None;
7923 return resultobj;
7924 fail:
7925 return NULL;
7926}
7927
7928
093d3ff1 7929static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 7930 PyObject *resultobj;
093d3ff1
RD
7931 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7932 wxFontStyle arg2 ;
d14a1e28 7933 PyObject * obj0 = 0 ;
093d3ff1 7934 PyObject * obj1 = 0 ;
d14a1e28 7935 char *kwnames[] = {
093d3ff1 7936 (char *) "self",(char *) "style", NULL
d14a1e28
RD
7937 };
7938
093d3ff1
RD
7939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
7940 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
7941 if (SWIG_arg_fail(1)) SWIG_fail;
7942 {
7943 arg2 = (wxFontStyle)(SWIG_As_int(obj1));
7944 if (SWIG_arg_fail(2)) SWIG_fail;
7945 }
d14a1e28
RD
7946 {
7947 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7948 (arg1)->SetStyle((wxFontStyle )arg2);
d14a1e28
RD
7949
7950 wxPyEndAllowThreads(__tstate);
7951 if (PyErr_Occurred()) SWIG_fail;
7952 }
093d3ff1 7953 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
7954 return resultobj;
7955 fail:
7956 return NULL;
7957}
7958
7959
093d3ff1 7960static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 7961 PyObject *resultobj;
093d3ff1
RD
7962 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7963 wxFontWeight arg2 ;
d14a1e28 7964 PyObject * obj0 = 0 ;
093d3ff1 7965 PyObject * obj1 = 0 ;
d14a1e28 7966 char *kwnames[] = {
093d3ff1 7967 (char *) "self",(char *) "weight", NULL
d14a1e28
RD
7968 };
7969
093d3ff1
RD
7970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
7971 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
7972 if (SWIG_arg_fail(1)) SWIG_fail;
7973 {
7974 arg2 = (wxFontWeight)(SWIG_As_int(obj1));
7975 if (SWIG_arg_fail(2)) SWIG_fail;
7976 }
d14a1e28
RD
7977 {
7978 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7979 (arg1)->SetWeight((wxFontWeight )arg2);
d14a1e28
RD
7980
7981 wxPyEndAllowThreads(__tstate);
7982 if (PyErr_Occurred()) SWIG_fail;
7983 }
7984 Py_INCREF(Py_None); resultobj = Py_None;
7985 return resultobj;
7986 fail:
7987 return NULL;
7988}
7989
7990
093d3ff1 7991static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 7992 PyObject *resultobj;
093d3ff1
RD
7993 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7994 bool arg2 ;
d14a1e28
RD
7995 PyObject * obj0 = 0 ;
7996 PyObject * obj1 = 0 ;
7997 char *kwnames[] = {
093d3ff1 7998 (char *) "self",(char *) "underlined", NULL
d14a1e28
RD
7999 };
8000
093d3ff1
RD
8001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
8002 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8003 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28 8004 {
093d3ff1
RD
8005 arg2 = (bool)(SWIG_As_bool(obj1));
8006 if (SWIG_arg_fail(2)) SWIG_fail;
d14a1e28
RD
8007 }
8008 {
8009 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 8010 (arg1)->SetUnderlined(arg2);
d14a1e28
RD
8011
8012 wxPyEndAllowThreads(__tstate);
8013 if (PyErr_Occurred()) SWIG_fail;
8014 }
093d3ff1 8015 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
8016 return resultobj;
8017 fail:
d14a1e28
RD
8018 return NULL;
8019}
8020
8021
093d3ff1 8022static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 8023 PyObject *resultobj;
093d3ff1
RD
8024 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8025 wxString arg2 ;
d14a1e28 8026 PyObject * obj0 = 0 ;
093d3ff1 8027 PyObject * obj1 = 0 ;
d14a1e28 8028 char *kwnames[] = {
093d3ff1 8029 (char *) "self",(char *) "facename", NULL
d14a1e28
RD
8030 };
8031
093d3ff1
RD
8032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
8033 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8034 if (SWIG_arg_fail(1)) SWIG_fail;
8035 {
8036 wxString* sptr = wxString_in_helper(obj1);
8037 if (sptr == NULL) SWIG_fail;
8038 arg2 = *sptr;
8039 delete sptr;
8040 }
d14a1e28
RD
8041 {
8042 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 8043 (arg1)->SetFaceName(arg2);
d14a1e28
RD
8044
8045 wxPyEndAllowThreads(__tstate);
8046 if (PyErr_Occurred()) SWIG_fail;
8047 }
093d3ff1 8048 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
8049 return resultobj;
8050 fail:
8051 return NULL;
8052}
8053
8054
093d3ff1 8055static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 8056 PyObject *resultobj;
093d3ff1
RD
8057 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8058 wxFontFamily arg2 ;
994141e6 8059 PyObject * obj0 = 0 ;
093d3ff1 8060 PyObject * obj1 = 0 ;
d14a1e28 8061 char *kwnames[] = {
093d3ff1 8062 (char *) "self",(char *) "family", NULL
d14a1e28
RD
8063 };
8064
093d3ff1
RD
8065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
8066 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8067 if (SWIG_arg_fail(1)) SWIG_fail;
8068 {
8069 arg2 = (wxFontFamily)(SWIG_As_int(obj1));
8070 if (SWIG_arg_fail(2)) SWIG_fail;
8071 }
994141e6
RD
8072 {
8073 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 8074 (arg1)->SetFamily((wxFontFamily )arg2);
d14a1e28
RD
8075
8076 wxPyEndAllowThreads(__tstate);
8077 if (PyErr_Occurred()) SWIG_fail;
8078 }
093d3ff1 8079 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
8080 return resultobj;
8081 fail:
8082 return NULL;
8083}
8084
8085
093d3ff1 8086static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 8087 PyObject *resultobj;
093d3ff1
RD
8088 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8089 wxFontEncoding arg2 ;
d14a1e28 8090 PyObject * obj0 = 0 ;
093d3ff1 8091 PyObject * obj1 = 0 ;
d14a1e28 8092 char *kwnames[] = {
093d3ff1 8093 (char *) "self",(char *) "encoding", NULL
d14a1e28
RD
8094 };
8095
093d3ff1
RD
8096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
8097 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8098 if (SWIG_arg_fail(1)) SWIG_fail;
8099 {
8100 arg2 = (wxFontEncoding)(SWIG_As_int(obj1));
8101 if (SWIG_arg_fail(2)) SWIG_fail;
d14a1e28
RD
8102 }
8103 {
8104 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 8105 (arg1)->SetEncoding((wxFontEncoding )arg2);
d14a1e28
RD
8106
8107 wxPyEndAllowThreads(__tstate);
8108 if (PyErr_Occurred()) SWIG_fail;
8109 }
093d3ff1 8110 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
8111 return resultobj;
8112 fail:
8113 return NULL;
8114}
8115
8116
093d3ff1 8117static PyObject *_wrap_NativeFontInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 8118 PyObject *resultobj;
093d3ff1
RD
8119 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8120 wxString *arg2 = 0 ;
8121 bool result;
8122 bool temp2 = false ;
8123 PyObject * obj0 = 0 ;
8124 PyObject * obj1 = 0 ;
d14a1e28 8125 char *kwnames[] = {
093d3ff1 8126 (char *) "self",(char *) "s", NULL
d14a1e28
RD
8127 };
8128
093d3ff1
RD
8129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
8130 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8131 if (SWIG_arg_fail(1)) SWIG_fail;
8132 {
8133 arg2 = wxString_in_helper(obj1);
8134 if (arg2 == NULL) SWIG_fail;
8135 temp2 = true;
8136 }
d14a1e28
RD
8137 {
8138 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 8139 result = (bool)(arg1)->FromString((wxString const &)*arg2);
d14a1e28
RD
8140
8141 wxPyEndAllowThreads(__tstate);
8142 if (PyErr_Occurred()) SWIG_fail;
8143 }
093d3ff1
RD
8144 {
8145 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8146 }
8147 {
8148 if (temp2)
8149 delete arg2;
8150 }
d14a1e28
RD
8151 return resultobj;
8152 fail:
093d3ff1
RD
8153 {
8154 if (temp2)
8155 delete arg2;
8156 }
d14a1e28
RD
8157 return NULL;
8158}
8159
8160
093d3ff1 8161static PyObject *_wrap_NativeFontInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 8162 PyObject *resultobj;
093d3ff1
RD
8163 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8164 wxString result;
d14a1e28
RD
8165 PyObject * obj0 = 0 ;
8166 char *kwnames[] = {
8167 (char *) "self", NULL
8168 };
8169
093d3ff1
RD
8170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
8171 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8172 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
8173 {
8174 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 8175 result = ((wxNativeFontInfo const *)arg1)->ToString();
d14a1e28
RD
8176
8177 wxPyEndAllowThreads(__tstate);
8178 if (PyErr_Occurred()) SWIG_fail;
8179 }
d14a1e28 8180 {
093d3ff1
RD
8181#if wxUSE_UNICODE
8182 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8183#else
8184 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8185#endif
d14a1e28 8186 }
d14a1e28
RD
8187 return resultobj;
8188 fail:
8189 return NULL;
8190}
8191
8192
093d3ff1 8193static PyObject *_wrap_NativeFontInfo___str__(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 8194 PyObject *resultobj;
093d3ff1
RD
8195 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8196 wxString result;
d14a1e28
RD
8197 PyObject * obj0 = 0 ;
8198 char *kwnames[] = {
093d3ff1 8199 (char *) "self", NULL
d14a1e28
RD
8200 };
8201
093d3ff1
RD
8202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
8203 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8204 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
8205 {
8206 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 8207 result = wxNativeFontInfo___str__(arg1);
d14a1e28
RD
8208
8209 wxPyEndAllowThreads(__tstate);
8210 if (PyErr_Occurred()) SWIG_fail;
8211 }
093d3ff1
RD
8212 {
8213#if wxUSE_UNICODE
8214 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8215#else
8216 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8217#endif
8218 }
d14a1e28
RD
8219 return resultobj;
8220 fail:
8221 return NULL;
8222}
8223
8224
093d3ff1 8225static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 8226 PyObject *resultobj;
093d3ff1 8227 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
d14a1e28 8228 wxString *arg2 = 0 ;
093d3ff1 8229 bool result;
ae8162c8 8230 bool temp2 = false ;
d14a1e28
RD
8231 PyObject * obj0 = 0 ;
8232 PyObject * obj1 = 0 ;
d14a1e28 8233 char *kwnames[] = {
093d3ff1 8234 (char *) "self",(char *) "s", NULL
d14a1e28
RD
8235 };
8236
093d3ff1
RD
8237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
8238 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8239 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
8240 {
8241 arg2 = wxString_in_helper(obj1);
8242 if (arg2 == NULL) SWIG_fail;
ae8162c8 8243 temp2 = true;
d14a1e28 8244 }
d14a1e28
RD
8245 {
8246 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 8247 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
d14a1e28
RD
8248
8249 wxPyEndAllowThreads(__tstate);
8250 if (PyErr_Occurred()) SWIG_fail;
8251 }
093d3ff1
RD
8252 {
8253 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8254 }
d14a1e28
RD
8255 {
8256 if (temp2)
8257 delete arg2;
8258 }
8259 return resultobj;
8260 fail:
8261 {
8262 if (temp2)
8263 delete arg2;
8264 }
8265 return NULL;
8266}
8267
8268
093d3ff1 8269static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 8270 PyObject *resultobj;
093d3ff1
RD
8271 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8272 wxString result;
8273 PyObject * obj0 = 0 ;
d14a1e28 8274 char *kwnames[] = {
093d3ff1 8275 (char *) "self", NULL
d14a1e28
RD
8276 };
8277
093d3ff1
RD
8278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
8279 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8280 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
8281 {
8282 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 8283 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
d14a1e28
RD
8284
8285 wxPyEndAllowThreads(__tstate);
8286 if (PyErr_Occurred()) SWIG_fail;
8287 }
093d3ff1
RD
8288 {
8289#if wxUSE_UNICODE
8290 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8291#else
8292 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8293#endif
8294 }
d14a1e28
RD
8295 return resultobj;
8296 fail:
8297 return NULL;
8298}
8299
8300
093d3ff1
RD
8301static PyObject * NativeFontInfo_swigregister(PyObject *, PyObject *args) {
8302 PyObject *obj;
8303 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8304 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
8305 Py_INCREF(obj);
8306 return Py_BuildValue((char *)"");
8307}
8308static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 8309 PyObject *resultobj;
093d3ff1
RD
8310 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
8311 wxString *arg2 = (wxString *) 0 ;
8312 bool temp2 = false ;
d14a1e28 8313 PyObject * obj0 = 0 ;
093d3ff1 8314 PyObject * obj1 = 0 ;
d14a1e28 8315 char *kwnames[] = {
093d3ff1 8316 (char *) "self",(char *) "facename", NULL
d14a1e28
RD
8317 };
8318
093d3ff1
RD
8319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
8320 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0);
8321 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28 8322 {
093d3ff1
RD
8323 arg2 = wxString_in_helper(obj1);
8324 if (arg2 == NULL) SWIG_fail;
8325 temp2 = true;
8326 }
8327 if (arg1) (arg1)->facename = *arg2;
8328
8329 Py_INCREF(Py_None); resultobj = Py_None;
8330 {
8331 if (temp2)
8332 delete arg2;
d14a1e28 8333 }
d14a1e28
RD
8334 return resultobj;
8335 fail:
093d3ff1
RD
8336 {
8337 if (temp2)
8338 delete arg2;
8339 }
d14a1e28
RD
8340 return NULL;
8341}
8342
8343
093d3ff1 8344static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 8345 PyObject *resultobj;
093d3ff1
RD
8346 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
8347 wxString *result;
994141e6 8348 PyObject * obj0 = 0 ;
d14a1e28 8349 char *kwnames[] = {
093d3ff1 8350 (char *) "self", NULL
d14a1e28
RD
8351 };
8352
093d3ff1
RD
8353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
8354 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0);
8355 if (SWIG_arg_fail(1)) SWIG_fail;
8356 result = (wxString *)& ((arg1)->facename);
8357
d14a1e28
RD
8358 {
8359#if wxUSE_UNICODE
093d3ff1 8360 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
d14a1e28 8361#else
093d3ff1 8362 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
d14a1e28
RD
8363#endif
8364 }
8365 return resultobj;
8366 fail:
8367 return NULL;
8368}
8369
8370
093d3ff1 8371static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 8372 PyObject *resultobj;
093d3ff1
RD
8373 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
8374 wxFontEncoding arg2 ;
994141e6 8375 PyObject * obj0 = 0 ;
093d3ff1 8376 PyObject * obj1 = 0 ;
d14a1e28 8377 char *kwnames[] = {
093d3ff1 8378 (char *) "self",(char *) "encoding", NULL
d14a1e28
RD
8379 };
8380
093d3ff1
RD
8381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
8382 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0);
8383 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28 8384 {
093d3ff1
RD
8385 arg2 = (wxFontEncoding)(SWIG_As_int(obj1));
8386 if (SWIG_arg_fail(2)) SWIG_fail;
d14a1e28 8387 }
093d3ff1
RD
8388 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
8389
8390 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
8391 return resultobj;
8392 fail:
8393 return NULL;
8394}
8395
8396
093d3ff1 8397static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *, PyObject *args, PyObject *kwargs) {
b2df227b 8398 PyObject *resultobj;
093d3ff1
RD
8399 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
8400 wxFontEncoding result;
b2df227b
RD
8401 PyObject * obj0 = 0 ;
8402 char *kwnames[] = {
093d3ff1 8403 (char *) "self", NULL
b2df227b
RD
8404 };
8405
093d3ff1
RD
8406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
8407 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0);
8408 if (SWIG_arg_fail(1)) SWIG_fail;
8409 result = (wxFontEncoding) ((arg1)->encoding);
8410
8411 resultobj = SWIG_From_int((result));
b2df227b
RD
8412 return resultobj;
8413 fail:
b2df227b
RD
8414 return NULL;
8415}
8416
8417
093d3ff1 8418static PyObject *_wrap_new_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 8419 PyObject *resultobj;
093d3ff1
RD
8420 wxNativeEncodingInfo *result;
8421 char *kwnames[] = {
8422 NULL
8423 };
8424
8425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
8426 {
8427 PyThreadState* __tstate = wxPyBeginAllowThreads();
8428 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
8429
8430 wxPyEndAllowThreads(__tstate);
8431 if (PyErr_Occurred()) SWIG_fail;
8432 }
8433 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1);
8434 return resultobj;
8435 fail:
8436 return NULL;
8437}
8438
8439
8440static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) {
8441 PyObject *resultobj;
8442 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
d14a1e28 8443 PyObject * obj0 = 0 ;
d14a1e28 8444 char *kwnames[] = {
093d3ff1 8445 (char *) "self", NULL
d14a1e28
RD
8446 };
8447
093d3ff1
RD
8448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
8449 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0);
8450 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
8451 {
8452 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 8453 delete arg1;
d14a1e28
RD
8454
8455 wxPyEndAllowThreads(__tstate);
8456 if (PyErr_Occurred()) SWIG_fail;
8457 }
8458 Py_INCREF(Py_None); resultobj = Py_None;
8459 return resultobj;
8460 fail:
8461 return NULL;
8462}
8463
8464
093d3ff1 8465static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 8466 PyObject *resultobj;
093d3ff1 8467 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
d14a1e28 8468 wxString *arg2 = 0 ;
093d3ff1 8469 bool result;
ae8162c8 8470 bool temp2 = false ;
d14a1e28
RD
8471 PyObject * obj0 = 0 ;
8472 PyObject * obj1 = 0 ;
8473 char *kwnames[] = {
093d3ff1 8474 (char *) "self",(char *) "s", NULL
d14a1e28
RD
8475 };
8476
093d3ff1
RD
8477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
8478 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0);
8479 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
8480 {
8481 arg2 = wxString_in_helper(obj1);
8482 if (arg2 == NULL) SWIG_fail;
ae8162c8 8483 temp2 = true;
d14a1e28
RD
8484 }
8485 {
8486 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 8487 result = (bool)(arg1)->FromString((wxString const &)*arg2);
d14a1e28
RD
8488
8489 wxPyEndAllowThreads(__tstate);
8490 if (PyErr_Occurred()) SWIG_fail;
8491 }
093d3ff1
RD
8492 {
8493 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8494 }
d14a1e28
RD
8495 {
8496 if (temp2)
8497 delete arg2;
8498 }
8499 return resultobj;
8500 fail:
8501 {
8502 if (temp2)
8503 delete arg2;
8504 }
8505 return NULL;
8506}
8507
8508
093d3ff1 8509static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 8510 PyObject *resultobj;
093d3ff1 8511 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
d14a1e28 8512 wxString result;
093d3ff1 8513 PyObject * obj0 = 0 ;
d14a1e28 8514 char *kwnames[] = {
093d3ff1 8515 (char *) "self", NULL
d14a1e28
RD
8516 };
8517
093d3ff1
RD
8518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
8519 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0);
8520 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
8521 {
8522 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 8523 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
d14a1e28
RD
8524
8525 wxPyEndAllowThreads(__tstate);
8526 if (PyErr_Occurred()) SWIG_fail;
8527 }
8528 {
8529#if wxUSE_UNICODE
8530 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8531#else
8532 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8533#endif
8534 }
8535 return resultobj;
8536 fail:
8537 return NULL;
8538}
8539
8540
093d3ff1
RD
8541static PyObject * NativeEncodingInfo_swigregister(PyObject *, PyObject *args) {
8542 PyObject *obj;
8543 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8544 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
8545 Py_INCREF(obj);
8546 return Py_BuildValue((char *)"");
8547}
8548static PyObject *_wrap_GetNativeFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 8549 PyObject *resultobj;
093d3ff1
RD
8550 wxFontEncoding arg1 ;
8551 wxNativeEncodingInfo *result;
d14a1e28 8552 PyObject * obj0 = 0 ;
d14a1e28 8553 char *kwnames[] = {
093d3ff1 8554 (char *) "encoding", NULL
d14a1e28
RD
8555 };
8556
093d3ff1
RD
8557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
8558 {
8559 arg1 = (wxFontEncoding)(SWIG_As_int(obj0));
8560 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
8561 }
8562 {
8563 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 8564 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
d14a1e28
RD
8565
8566 wxPyEndAllowThreads(__tstate);
8567 if (PyErr_Occurred()) SWIG_fail;
8568 }
093d3ff1 8569 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0);
d14a1e28
RD
8570 return resultobj;
8571 fail:
d14a1e28
RD
8572 return NULL;
8573}
8574
8575
093d3ff1 8576static PyObject *_wrap_TestFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 8577 PyObject *resultobj;
093d3ff1 8578 wxNativeEncodingInfo *arg1 = 0 ;
d14a1e28 8579 bool result;
d14a1e28 8580 PyObject * obj0 = 0 ;
d14a1e28 8581 char *kwnames[] = {
093d3ff1 8582 (char *) "info", NULL
d14a1e28
RD
8583 };
8584
093d3ff1
RD
8585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
8586 {
8587 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0);
8588 if (SWIG_arg_fail(1)) SWIG_fail;
8589 if (arg1 == NULL) {
8590 SWIG_null_ref("wxNativeEncodingInfo");
d14a1e28 8591 }
093d3ff1 8592 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
8593 }
8594 {
8595 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 8596 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
d14a1e28
RD
8597
8598 wxPyEndAllowThreads(__tstate);
8599 if (PyErr_Occurred()) SWIG_fail;
8600 }
4f89f6a3
RD
8601 {
8602 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8603 }
d14a1e28
RD
8604 return resultobj;
8605 fail:
d14a1e28
RD
8606 return NULL;
8607}
8608
8609
093d3ff1 8610static PyObject *_wrap_new_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 8611 PyObject *resultobj;
093d3ff1 8612 wxFontMapper *result;
d14a1e28 8613 char *kwnames[] = {
093d3ff1 8614 NULL
d14a1e28
RD
8615 };
8616
093d3ff1 8617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
d14a1e28
RD
8618 {
8619 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 8620 result = (wxFontMapper *)new wxFontMapper();
d14a1e28
RD
8621
8622 wxPyEndAllowThreads(__tstate);
8623 if (PyErr_Occurred()) SWIG_fail;
8624 }
093d3ff1 8625 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1);
d14a1e28
RD
8626 return resultobj;
8627 fail:
8628 return NULL;
8629}
8630
8631
093d3ff1 8632static PyObject *_wrap_delete_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
8633 PyObject *resultobj;
8634 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
d14a1e28 8635 PyObject * obj0 = 0 ;
d14a1e28 8636 char *kwnames[] = {
093d3ff1 8637 (char *) "self", NULL
d14a1e28
RD
8638 };
8639
093d3ff1
RD
8640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
8641 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0);
8642 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
8643 {
8644 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 8645 delete arg1;
d14a1e28
RD
8646
8647 wxPyEndAllowThreads(__tstate);
8648 if (PyErr_Occurred()) SWIG_fail;
8649 }
8650 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
8651 return resultobj;
8652 fail:
d14a1e28
RD
8653 return NULL;
8654}
8655
8656
093d3ff1 8657static PyObject *_wrap_FontMapper_Get(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 8658 PyObject *resultobj;
093d3ff1 8659 wxFontMapper *result;
d14a1e28 8660 char *kwnames[] = {
093d3ff1 8661 NULL
d14a1e28
RD
8662 };
8663
093d3ff1 8664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
d14a1e28
RD
8665 {
8666 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 8667 result = (wxFontMapper *)wxFontMapper::Get();
d14a1e28
RD
8668
8669 wxPyEndAllowThreads(__tstate);
110da5b0 8670 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 8671 }
093d3ff1 8672 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
d14a1e28
RD
8673 return resultobj;
8674 fail:
d14a1e28
RD
8675 return NULL;
8676}
8677
8678
093d3ff1 8679static PyObject *_wrap_FontMapper_Set(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 8680 PyObject *resultobj;
093d3ff1
RD
8681 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
8682 wxFontMapper *result;
d14a1e28
RD
8683 PyObject * obj0 = 0 ;
8684 char *kwnames[] = {
093d3ff1 8685 (char *) "mapper", NULL
d14a1e28
RD
8686 };
8687
093d3ff1
RD
8688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
8689 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0);
8690 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
8691 {
8692 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 8693 result = (wxFontMapper *)wxFontMapper::Set(arg1);
d14a1e28
RD
8694
8695 wxPyEndAllowThreads(__tstate);
8696 if (PyErr_Occurred()) SWIG_fail;
8697 }
093d3ff1 8698 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
d14a1e28
RD
8699 return resultobj;
8700 fail:
8701 return NULL;
8702}
8703
8704
093d3ff1 8705static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 8706 PyObject *resultobj;
093d3ff1
RD
8707 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
8708 wxString *arg2 = 0 ;
8709 bool arg3 = (bool) true ;
8710 wxFontEncoding result;
8711 bool temp2 = false ;
d14a1e28 8712 PyObject * obj0 = 0 ;
093d3ff1
RD
8713 PyObject * obj1 = 0 ;
8714 PyObject * obj2 = 0 ;
d14a1e28 8715 char *kwnames[] = {
093d3ff1 8716 (char *) "self",(char *) "charset",(char *) "interactive", NULL
d14a1e28
RD
8717 };
8718
093d3ff1
RD
8719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
8720 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0);
8721 if (SWIG_arg_fail(1)) SWIG_fail;
8722 {
8723 arg2 = wxString_in_helper(obj1);
8724 if (arg2 == NULL) SWIG_fail;
8725 temp2 = true;
8726 }
8727 if (obj2) {
8728 {
8729 arg3 = (bool)(SWIG_As_bool(obj2));
8730 if (SWIG_arg_fail(3)) SWIG_fail;
8731 }
8732 }
d14a1e28
RD
8733 {
8734 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 8735 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
d14a1e28
RD
8736
8737 wxPyEndAllowThreads(__tstate);
110da5b0 8738 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 8739 }
093d3ff1
RD
8740 resultobj = SWIG_From_int((result));
8741 {
8742 if (temp2)
8743 delete arg2;
8744 }
d14a1e28
RD
8745 return resultobj;
8746 fail:
093d3ff1
RD
8747 {
8748 if (temp2)
8749 delete arg2;
8750 }
d14a1e28
RD
8751 return NULL;
8752}
8753
8754
093d3ff1 8755static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 8756 PyObject *resultobj;
093d3ff1 8757 size_t result;
d14a1e28 8758 char *kwnames[] = {
093d3ff1 8759 NULL
d14a1e28
RD
8760 };
8761
093d3ff1 8762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
d14a1e28
RD
8763 {
8764 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 8765 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
d14a1e28
RD
8766
8767 wxPyEndAllowThreads(__tstate);
110da5b0 8768 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 8769 }
d14a1e28 8770 {
093d3ff1 8771 resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result));
d14a1e28
RD
8772 }
8773 return resultobj;
8774 fail:
d14a1e28
RD
8775 return NULL;
8776}
8777
8778
093d3ff1 8779static PyObject *_wrap_FontMapper_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 8780 PyObject *resultobj;
093d3ff1
RD
8781 size_t arg1 ;
8782 wxFontEncoding result;
994141e6 8783 PyObject * obj0 = 0 ;
d14a1e28 8784 char *kwnames[] = {
093d3ff1 8785 (char *) "n", NULL
d14a1e28
RD
8786 };
8787
093d3ff1
RD
8788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
8789 {
8790 arg1 = (size_t)(SWIG_As_unsigned_SS_long(obj0));
8791 if (SWIG_arg_fail(1)) SWIG_fail;
994141e6 8792 }
d14a1e28
RD
8793 {
8794 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 8795 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
d14a1e28
RD
8796
8797 wxPyEndAllowThreads(__tstate);
110da5b0 8798 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 8799 }
093d3ff1 8800 resultobj = SWIG_From_int((result));
d14a1e28
RD
8801 return resultobj;
8802 fail:
d14a1e28
RD
8803 return NULL;
8804}
8805
8806
093d3ff1 8807static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *, PyObject *args, PyObject *kwargs) {
b6294124 8808 PyObject *resultobj;
093d3ff1
RD
8809 wxFontEncoding arg1 ;
8810 wxString result;
b6294124 8811 PyObject * obj0 = 0 ;
b6294124 8812 char *kwnames[] = {
093d3ff1 8813 (char *) "encoding", NULL
b6294124
RD
8814 };
8815
093d3ff1 8816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
b6294124 8817 {
093d3ff1
RD
8818 arg1 = (wxFontEncoding)(SWIG_As_int(obj0));
8819 if (SWIG_arg_fail(1)) SWIG_fail;
b6294124
RD
8820 }
8821 {
b6294124 8822 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 8823 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
b6294124
RD
8824
8825 wxPyEndAllowThreads(__tstate);
8826 if (PyErr_Occurred()) SWIG_fail;
8827 }
b6294124 8828 {
093d3ff1
RD
8829#if wxUSE_UNICODE
8830 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8831#else
8832 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8833#endif
b6294124
RD
8834 }
8835 return resultobj;
8836 fail:
b6294124
RD
8837 return NULL;
8838}
8839
8840
093d3ff1 8841static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 8842 PyObject *resultobj;
093d3ff1
RD
8843 wxFontEncoding arg1 ;
8844 wxString result;
d14a1e28
RD
8845 PyObject * obj0 = 0 ;
8846 char *kwnames[] = {
093d3ff1 8847 (char *) "encoding", NULL
d14a1e28
RD
8848 };
8849
093d3ff1
RD
8850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
8851 {
8852 arg1 = (wxFontEncoding)(SWIG_As_int(obj0));
8853 if (SWIG_arg_fail(1)) SWIG_fail;
8854 }
d14a1e28
RD
8855 {
8856 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 8857 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
d14a1e28
RD
8858
8859 wxPyEndAllowThreads(__tstate);
8860 if (PyErr_Occurred()) SWIG_fail;
8861 }
4f89f6a3 8862 {
093d3ff1
RD
8863#if wxUSE_UNICODE
8864 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8865#else
8866 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8867#endif
4f89f6a3 8868 }
d14a1e28
RD
8869 return resultobj;
8870 fail:
8871 return NULL;
8872}
8873
8874
093d3ff1 8875static PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 8876 PyObject *resultobj;
093d3ff1
RD
8877 wxString *arg1 = 0 ;
8878 wxFontEncoding result;
8879 bool temp1 = false ;
d14a1e28 8880 PyObject * obj0 = 0 ;
d14a1e28 8881 char *kwnames[] = {
093d3ff1 8882 (char *) "name", NULL
d14a1e28
RD
8883 };
8884
093d3ff1
RD
8885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail;
8886 {
8887 arg1 = wxString_in_helper(obj0);
8888 if (arg1 == NULL) SWIG_fail;
8889 temp1 = true;
8890 }
d14a1e28
RD
8891 {
8892 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 8893 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
d14a1e28
RD
8894
8895 wxPyEndAllowThreads(__tstate);
8896 if (PyErr_Occurred()) SWIG_fail;
8897 }
093d3ff1 8898 resultobj = SWIG_From_int((result));
4f89f6a3 8899 {
093d3ff1
RD
8900 if (temp1)
8901 delete arg1;
4f89f6a3 8902 }
d14a1e28
RD
8903 return resultobj;
8904 fail:
093d3ff1
RD
8905 {
8906 if (temp1)
8907 delete arg1;
8908 }
d14a1e28
RD
8909 return NULL;
8910}
8911
8912
093d3ff1 8913static PyObject *_wrap_FontMapper_SetConfig(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 8914 PyObject *resultobj;
093d3ff1
RD
8915 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
8916 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
d14a1e28
RD
8917 PyObject * obj0 = 0 ;
8918 PyObject * obj1 = 0 ;
8919 char *kwnames[] = {
093d3ff1 8920 (char *) "self",(char *) "config", NULL
d14a1e28
RD
8921 };
8922
093d3ff1
RD
8923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
8924 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0);
8925 if (SWIG_arg_fail(1)) SWIG_fail;
8926 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0);
8927 if (SWIG_arg_fail(2)) SWIG_fail;
d14a1e28
RD
8928 {
8929 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 8930 (arg1)->SetConfig(arg2);
d14a1e28
RD
8931
8932 wxPyEndAllowThreads(__tstate);
8933 if (PyErr_Occurred()) SWIG_fail;
8934 }
093d3ff1 8935 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
8936 return resultobj;
8937 fail:
8938 return NULL;
8939}
8940
8941
093d3ff1 8942static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 8943 PyObject *resultobj;
093d3ff1
RD
8944 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
8945 wxString *arg2 = 0 ;
8946 bool temp2 = false ;
d14a1e28 8947 PyObject * obj0 = 0 ;
093d3ff1 8948 PyObject * obj1 = 0 ;
d14a1e28 8949 char *kwnames[] = {
093d3ff1 8950 (char *) "self",(char *) "prefix", NULL
d14a1e28
RD
8951 };
8952
093d3ff1
RD
8953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
8954 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0);
8955 if (SWIG_arg_fail(1)) SWIG_fail;
8956 {
8957 arg2 = wxString_in_helper(obj1);
8958 if (arg2 == NULL) SWIG_fail;
8959 temp2 = true;
8960 }
d14a1e28
RD
8961 {
8962 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 8963 (arg1)->SetConfigPath((wxString const &)*arg2);
d14a1e28
RD
8964
8965 wxPyEndAllowThreads(__tstate);
8966 if (PyErr_Occurred()) SWIG_fail;
8967 }
093d3ff1
RD
8968 Py_INCREF(Py_None); resultobj = Py_None;
8969 {
8970 if (temp2)
8971 delete arg2;
8972 }
d14a1e28
RD
8973 return resultobj;
8974 fail:
093d3ff1
RD
8975 {
8976 if (temp2)
8977 delete arg2;
8978 }
d14a1e28
RD
8979 return NULL;
8980}
8981
8982
093d3ff1 8983static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *, PyObject *args, PyObject *kwargs) {
b6294124 8984 PyObject *resultobj;
093d3ff1 8985 wxString result;
b6294124 8986 char *kwnames[] = {
093d3ff1 8987 NULL
b6294124
RD
8988 };
8989
093d3ff1 8990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
b6294124
RD
8991 {
8992 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 8993 result = wxFontMapper::GetDefaultConfigPath();
b6294124
RD
8994
8995 wxPyEndAllowThreads(__tstate);
8996 if (PyErr_Occurred()) SWIG_fail;
8997 }
8998 {
093d3ff1
RD
8999#if wxUSE_UNICODE
9000 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9001#else
9002 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9003#endif
b6294124
RD
9004 }
9005 return resultobj;
9006 fail:
9007 return NULL;
9008}
9009
9010
093d3ff1 9011static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
b6294124 9012 PyObject *resultobj;
093d3ff1
RD
9013 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
9014 wxFontEncoding arg2 ;
9015 wxString const &arg3_defvalue = wxPyEmptyString ;
9016 wxString *arg3 = (wxString *) &arg3_defvalue ;
9017 bool arg4 = (bool) true ;
9018 PyObject *result;
9019 bool temp3 = false ;
9020 PyObject * obj0 = 0 ;
9021 PyObject * obj1 = 0 ;
9022 PyObject * obj2 = 0 ;
9023 PyObject * obj3 = 0 ;
9024 char *kwnames[] = {
9025 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
b6294124
RD
9026 };
9027
093d3ff1
RD
9028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9029 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0);
9030 if (SWIG_arg_fail(1)) SWIG_fail;
9031 {
9032 arg2 = (wxFontEncoding)(SWIG_As_int(obj1));
9033 if (SWIG_arg_fail(2)) SWIG_fail;
9034 }
9035 if (obj2) {
9036 {
9037 arg3 = wxString_in_helper(obj2);
9038 if (arg3 == NULL) SWIG_fail;
9039 temp3 = true;
9040 }
9041 }
9042 if (obj3) {
9043 {
9044 arg4 = (bool)(SWIG_As_bool(obj3));
9045 if (SWIG_arg_fail(4)) SWIG_fail;
9046 }
9047 }
b6294124
RD
9048 {
9049 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9050 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
b6294124
RD
9051
9052 wxPyEndAllowThreads(__tstate);
9053 if (PyErr_Occurred()) SWIG_fail;
9054 }
093d3ff1 9055 resultobj = result;
b6294124 9056 {
093d3ff1
RD
9057 if (temp3)
9058 delete arg3;
b6294124
RD
9059 }
9060 return resultobj;
9061 fail:
d14a1e28 9062 {
093d3ff1
RD
9063 if (temp3)
9064 delete arg3;
d14a1e28 9065 }
d14a1e28
RD
9066 return NULL;
9067}
9068
9069
093d3ff1 9070static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 9071 PyObject *resultobj;
093d3ff1
RD
9072 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
9073 wxFontEncoding arg2 ;
9074 wxString const &arg3_defvalue = wxPyEmptyString ;
9075 wxString *arg3 = (wxString *) &arg3_defvalue ;
9076 bool result;
9077 bool temp3 = false ;
d14a1e28 9078 PyObject * obj0 = 0 ;
093d3ff1
RD
9079 PyObject * obj1 = 0 ;
9080 PyObject * obj2 = 0 ;
d14a1e28 9081 char *kwnames[] = {
093d3ff1 9082 (char *) "self",(char *) "encoding",(char *) "facename", NULL
d14a1e28
RD
9083 };
9084
093d3ff1
RD
9085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
9086 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0);
9087 if (SWIG_arg_fail(1)) SWIG_fail;
9088 {
9089 arg2 = (wxFontEncoding)(SWIG_As_int(obj1));
9090 if (SWIG_arg_fail(2)) SWIG_fail;
9091 }
9092 if (obj2) {
9093 {
9094 arg3 = wxString_in_helper(obj2);
9095 if (arg3 == NULL) SWIG_fail;
9096 temp3 = true;
9097 }
9098 }
d14a1e28
RD
9099 {
9100 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9101 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
d14a1e28
RD
9102
9103 wxPyEndAllowThreads(__tstate);
9104 if (PyErr_Occurred()) SWIG_fail;
9105 }
093d3ff1
RD
9106 {
9107 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9108 }
9109 {
9110 if (temp3)
9111 delete arg3;
9112 }
d14a1e28
RD
9113 return resultobj;
9114 fail:
093d3ff1
RD
9115 {
9116 if (temp3)
9117 delete arg3;
9118 }
d14a1e28
RD
9119 return NULL;
9120}
9121
9122
093d3ff1 9123static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 9124 PyObject *resultobj;
093d3ff1
RD
9125 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
9126 wxWindow *arg2 = (wxWindow *) 0 ;
d14a1e28 9127 PyObject * obj0 = 0 ;
093d3ff1 9128 PyObject * obj1 = 0 ;
d14a1e28 9129 char *kwnames[] = {
093d3ff1 9130 (char *) "self",(char *) "parent", NULL
d14a1e28
RD
9131 };
9132
093d3ff1
RD
9133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
9134 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0);
9135 if (SWIG_arg_fail(1)) SWIG_fail;
9136 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
9137 if (SWIG_arg_fail(2)) SWIG_fail;
d14a1e28
RD
9138 {
9139 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9140 (arg1)->SetDialogParent(arg2);
d14a1e28
RD
9141
9142 wxPyEndAllowThreads(__tstate);
9143 if (PyErr_Occurred()) SWIG_fail;
9144 }
093d3ff1 9145 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
9146 return resultobj;
9147 fail:
9148 return NULL;
9149}
9150
9151
093d3ff1 9152static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 9153 PyObject *resultobj;
093d3ff1
RD
9154 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
9155 wxString *arg2 = 0 ;
9156 bool temp2 = false ;
d14a1e28 9157 PyObject * obj0 = 0 ;
093d3ff1 9158 PyObject * obj1 = 0 ;
d14a1e28 9159 char *kwnames[] = {
093d3ff1 9160 (char *) "self",(char *) "title", NULL
d14a1e28
RD
9161 };
9162
093d3ff1
RD
9163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
9164 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0);
9165 if (SWIG_arg_fail(1)) SWIG_fail;
9166 {
9167 arg2 = wxString_in_helper(obj1);
9168 if (arg2 == NULL) SWIG_fail;
9169 temp2 = true;
9170 }
d14a1e28
RD
9171 {
9172 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9173 (arg1)->SetDialogTitle((wxString const &)*arg2);
d14a1e28
RD
9174
9175 wxPyEndAllowThreads(__tstate);
9176 if (PyErr_Occurred()) SWIG_fail;
9177 }
093d3ff1 9178 Py_INCREF(Py_None); resultobj = Py_None;
4f89f6a3 9179 {
093d3ff1
RD
9180 if (temp2)
9181 delete arg2;
4f89f6a3 9182 }
d14a1e28
RD
9183 return resultobj;
9184 fail:
093d3ff1
RD
9185 {
9186 if (temp2)
9187 delete arg2;
9188 }
d14a1e28
RD
9189 return NULL;
9190}
9191
9192
093d3ff1
RD
9193static PyObject * FontMapper_swigregister(PyObject *, PyObject *args) {
9194 PyObject *obj;
9195 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9196 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
9197 Py_INCREF(obj);
9198 return Py_BuildValue((char *)"");
9199}
9200static PyObject *_wrap_new_Font(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 9201 PyObject *resultobj;
093d3ff1
RD
9202 int arg1 ;
9203 int arg2 ;
9204 int arg3 ;
9205 int arg4 ;
9206 bool arg5 = (bool) false ;
9207 wxString const &arg6_defvalue = wxPyEmptyString ;
9208 wxString *arg6 = (wxString *) &arg6_defvalue ;
9209 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
9210 wxFont *result;
9211 bool temp6 = false ;
d14a1e28 9212 PyObject * obj0 = 0 ;
093d3ff1
RD
9213 PyObject * obj1 = 0 ;
9214 PyObject * obj2 = 0 ;
9215 PyObject * obj3 = 0 ;
9216 PyObject * obj4 = 0 ;
9217 PyObject * obj5 = 0 ;
9218 PyObject * obj6 = 0 ;
d14a1e28 9219 char *kwnames[] = {
093d3ff1 9220 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
d14a1e28
RD
9221 };
9222
093d3ff1
RD
9223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
9224 {
9225 arg1 = (int)(SWIG_As_int(obj0));
9226 if (SWIG_arg_fail(1)) SWIG_fail;
9227 }
9228 {
9229 arg2 = (int)(SWIG_As_int(obj1));
9230 if (SWIG_arg_fail(2)) SWIG_fail;
9231 }
9232 {
9233 arg3 = (int)(SWIG_As_int(obj2));
9234 if (SWIG_arg_fail(3)) SWIG_fail;
9235 }
9236 {
9237 arg4 = (int)(SWIG_As_int(obj3));
9238 if (SWIG_arg_fail(4)) SWIG_fail;
9239 }
9240 if (obj4) {
9241 {
9242 arg5 = (bool)(SWIG_As_bool(obj4));
9243 if (SWIG_arg_fail(5)) SWIG_fail;
9244 }
9245 }
9246 if (obj5) {
9247 {
9248 arg6 = wxString_in_helper(obj5);
9249 if (arg6 == NULL) SWIG_fail;
9250 temp6 = true;
9251 }
9252 }
9253 if (obj6) {
9254 {
9255 arg7 = (wxFontEncoding)(SWIG_As_int(obj6));
9256 if (SWIG_arg_fail(7)) SWIG_fail;
9257 }
9258 }
d14a1e28 9259 {
093d3ff1 9260 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28 9261 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9262 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
d14a1e28
RD
9263
9264 wxPyEndAllowThreads(__tstate);
9265 if (PyErr_Occurred()) SWIG_fail;
9266 }
093d3ff1 9267 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
d14a1e28 9268 {
093d3ff1
RD
9269 if (temp6)
9270 delete arg6;
d14a1e28
RD
9271 }
9272 return resultobj;
9273 fail:
093d3ff1
RD
9274 {
9275 if (temp6)
9276 delete arg6;
9277 }
d14a1e28
RD
9278 return NULL;
9279}
9280
9281
093d3ff1 9282static PyObject *_wrap_delete_Font(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
9283 PyObject *resultobj;
9284 wxFont *arg1 = (wxFont *) 0 ;
d14a1e28
RD
9285 PyObject * obj0 = 0 ;
9286 char *kwnames[] = {
9287 (char *) "self", NULL
9288 };
9289
093d3ff1
RD
9290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
9291 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
9292 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
9293 {
9294 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9295 delete arg1;
d14a1e28
RD
9296
9297 wxPyEndAllowThreads(__tstate);
9298 if (PyErr_Occurred()) SWIG_fail;
9299 }
093d3ff1 9300 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
9301 return resultobj;
9302 fail:
9303 return NULL;
9304}
9305
9306
093d3ff1 9307static PyObject *_wrap_new_FontFromNativeInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 9308 PyObject *resultobj;
093d3ff1
RD
9309 wxNativeFontInfo *arg1 = 0 ;
9310 wxFont *result;
d14a1e28
RD
9311 PyObject * obj0 = 0 ;
9312 char *kwnames[] = {
093d3ff1 9313 (char *) "info", NULL
d14a1e28
RD
9314 };
9315
093d3ff1 9316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
d14a1e28 9317 {
093d3ff1
RD
9318 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
9319 if (SWIG_arg_fail(1)) SWIG_fail;
9320 if (arg1 == NULL) {
9321 SWIG_null_ref("wxNativeFontInfo");
9322 }
9323 if (SWIG_arg_fail(1)) SWIG_fail;
9324 }
9325 {
9326 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28 9327 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9328 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
d14a1e28
RD
9329
9330 wxPyEndAllowThreads(__tstate);
9331 if (PyErr_Occurred()) SWIG_fail;
9332 }
093d3ff1 9333 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
d14a1e28
RD
9334 return resultobj;
9335 fail:
9336 return NULL;
9337}
9338
9339
093d3ff1 9340static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 9341 PyObject *resultobj;
093d3ff1
RD
9342 wxString *arg1 = 0 ;
9343 wxFont *result;
9344 bool temp1 = false ;
d14a1e28
RD
9345 PyObject * obj0 = 0 ;
9346 char *kwnames[] = {
093d3ff1 9347 (char *) "info", NULL
d14a1e28
RD
9348 };
9349
093d3ff1
RD
9350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
9351 {
9352 arg1 = wxString_in_helper(obj0);
9353 if (arg1 == NULL) SWIG_fail;
9354 temp1 = true;
9355 }
d14a1e28 9356 {
093d3ff1 9357 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28 9358 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9359 result = (wxFont *)new_wxFont((wxString const &)*arg1);
d14a1e28
RD
9360
9361 wxPyEndAllowThreads(__tstate);
9362 if (PyErr_Occurred()) SWIG_fail;
9363 }
093d3ff1 9364 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
4f89f6a3 9365 {
093d3ff1
RD
9366 if (temp1)
9367 delete arg1;
4f89f6a3 9368 }
d14a1e28
RD
9369 return resultobj;
9370 fail:
093d3ff1
RD
9371 {
9372 if (temp1)
9373 delete arg1;
9374 }
d14a1e28
RD
9375 return NULL;
9376}
9377
9378
73c8ef6a 9379static PyObject *_wrap_new_FFont(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 9380 PyObject *resultobj;
093d3ff1
RD
9381 int arg1 ;
9382 wxFontFamily arg2 ;
9383 int arg3 = (int) wxFONTFLAG_DEFAULT ;
9384 wxString const &arg4_defvalue = wxPyEmptyString ;
9385 wxString *arg4 = (wxString *) &arg4_defvalue ;
9386 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
9387 wxFont *result;
9388 bool temp4 = false ;
d14a1e28 9389 PyObject * obj0 = 0 ;
093d3ff1
RD
9390 PyObject * obj1 = 0 ;
9391 PyObject * obj2 = 0 ;
9392 PyObject * obj3 = 0 ;
9393 PyObject * obj4 = 0 ;
d14a1e28 9394 char *kwnames[] = {
093d3ff1 9395 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
d14a1e28
RD
9396 };
9397
73c8ef6a 9398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
093d3ff1
RD
9399 {
9400 arg1 = (int)(SWIG_As_int(obj0));
9401 if (SWIG_arg_fail(1)) SWIG_fail;
9402 }
9403 {
9404 arg2 = (wxFontFamily)(SWIG_As_int(obj1));
9405 if (SWIG_arg_fail(2)) SWIG_fail;
9406 }
9407 if (obj2) {
9408 {
9409 arg3 = (int)(SWIG_As_int(obj2));
9410 if (SWIG_arg_fail(3)) SWIG_fail;
9411 }
9412 }
9413 if (obj3) {
9414 {
9415 arg4 = wxString_in_helper(obj3);
9416 if (arg4 == NULL) SWIG_fail;
9417 temp4 = true;
9418 }
9419 }
9420 if (obj4) {
9421 {
9422 arg5 = (wxFontEncoding)(SWIG_As_int(obj4));
9423 if (SWIG_arg_fail(5)) SWIG_fail;
9424 }
9425 }
d14a1e28 9426 {
093d3ff1 9427 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28 9428 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9429 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
d14a1e28
RD
9430
9431 wxPyEndAllowThreads(__tstate);
9432 if (PyErr_Occurred()) SWIG_fail;
9433 }
093d3ff1 9434 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
d14a1e28 9435 {
093d3ff1
RD
9436 if (temp4)
9437 delete arg4;
d14a1e28
RD
9438 }
9439 return resultobj;
9440 fail:
093d3ff1
RD
9441 {
9442 if (temp4)
9443 delete arg4;
9444 }
d14a1e28
RD
9445 return NULL;
9446}
9447
9448
093d3ff1 9449static PyObject *_wrap_new_FontFromPixelSize(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 9450 PyObject *resultobj;
093d3ff1
RD
9451 wxSize *arg1 = 0 ;
9452 int arg2 ;
9453 int arg3 ;
9454 int arg4 ;
9455 bool arg5 = (bool) false ;
9456 wxString const &arg6_defvalue = wxEmptyString ;
9457 wxString *arg6 = (wxString *) &arg6_defvalue ;
9458 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
9459 wxFont *result;
9460 wxSize temp1 ;
9461 bool temp6 = false ;
d14a1e28 9462 PyObject * obj0 = 0 ;
093d3ff1
RD
9463 PyObject * obj1 = 0 ;
9464 PyObject * obj2 = 0 ;
9465 PyObject * obj3 = 0 ;
9466 PyObject * obj4 = 0 ;
9467 PyObject * obj5 = 0 ;
9468 PyObject * obj6 = 0 ;
d14a1e28 9469 char *kwnames[] = {
093d3ff1 9470 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
d14a1e28
RD
9471 };
9472
093d3ff1
RD
9473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
9474 {
9475 arg1 = &temp1;
9476 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
9477 }
9478 {
9479 arg2 = (int)(SWIG_As_int(obj1));
9480 if (SWIG_arg_fail(2)) SWIG_fail;
9481 }
9482 {
9483 arg3 = (int)(SWIG_As_int(obj2));
9484 if (SWIG_arg_fail(3)) SWIG_fail;
9485 }
9486 {
9487 arg4 = (int)(SWIG_As_int(obj3));
9488 if (SWIG_arg_fail(4)) SWIG_fail;
9489 }
9490 if (obj4) {
9491 {
9492 arg5 = (bool)(SWIG_As_bool(obj4));
9493 if (SWIG_arg_fail(5)) SWIG_fail;
9494 }
9495 }
9496 if (obj5) {
9497 {
9498 arg6 = wxString_in_helper(obj5);
9499 if (arg6 == NULL) SWIG_fail;
9500 temp6 = true;
9501 }
9502 }
9503 if (obj6) {
9504 {
9505 arg7 = (wxFontEncoding)(SWIG_As_int(obj6));
9506 if (SWIG_arg_fail(7)) SWIG_fail;
9507 }
9508 }
d14a1e28 9509 {
093d3ff1 9510 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28 9511 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9512 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
d14a1e28
RD
9513
9514 wxPyEndAllowThreads(__tstate);
9515 if (PyErr_Occurred()) SWIG_fail;
9516 }
093d3ff1 9517 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
d14a1e28 9518 {
093d3ff1
RD
9519 if (temp6)
9520 delete arg6;
d14a1e28
RD
9521 }
9522 return resultobj;
9523 fail:
093d3ff1
RD
9524 {
9525 if (temp6)
9526 delete arg6;
9527 }
d14a1e28
RD
9528 return NULL;
9529}
9530
9531
73c8ef6a
RD
9532static PyObject *_wrap_new_FFontFromPixelSize(PyObject *, PyObject *args, PyObject *kwargs) {
9533 PyObject *resultobj;
9534 wxSize *arg1 = 0 ;
9535 wxFontFamily arg2 ;
9536 int arg3 = (int) wxFONTFLAG_DEFAULT ;
9537 wxString const &arg4_defvalue = wxEmptyString ;
9538 wxString *arg4 = (wxString *) &arg4_defvalue ;
9539 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
9540 wxFont *result;
9541 wxSize temp1 ;
9542 bool temp4 = false ;
9543 PyObject * obj0 = 0 ;
9544 PyObject * obj1 = 0 ;
9545 PyObject * obj2 = 0 ;
9546 PyObject * obj3 = 0 ;
9547 PyObject * obj4 = 0 ;
9548 char *kwnames[] = {
9549 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
9550 };
9551
9552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
9553 {
9554 arg1 = &temp1;
9555 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
9556 }
9557 {
9558 arg2 = (wxFontFamily)(SWIG_As_int(obj1));
9559 if (SWIG_arg_fail(2)) SWIG_fail;
9560 }
9561 if (obj2) {
9562 {
9563 arg3 = (int)(SWIG_As_int(obj2));
9564 if (SWIG_arg_fail(3)) SWIG_fail;
9565 }
9566 }
9567 if (obj3) {
9568 {
9569 arg4 = wxString_in_helper(obj3);
9570 if (arg4 == NULL) SWIG_fail;
9571 temp4 = true;
9572 }
9573 }
9574 if (obj4) {
9575 {
9576 arg5 = (wxFontEncoding)(SWIG_As_int(obj4));
9577 if (SWIG_arg_fail(5)) SWIG_fail;
9578 }
9579 }
9580 {
9581 if (!wxPyCheckForApp()) SWIG_fail;
9582 PyThreadState* __tstate = wxPyBeginAllowThreads();
9583 result = (wxFont *)new_wxFont((wxSize const &)*arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
9584
9585 wxPyEndAllowThreads(__tstate);
9586 if (PyErr_Occurred()) SWIG_fail;
9587 }
9588 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
9589 {
9590 if (temp4)
9591 delete arg4;
9592 }
9593 return resultobj;
9594 fail:
9595 {
9596 if (temp4)
9597 delete arg4;
9598 }
9599 return NULL;
9600}
9601
9602
093d3ff1 9603static PyObject *_wrap_Font_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
9604 PyObject *resultobj;
9605 wxFont *arg1 = (wxFont *) 0 ;
093d3ff1 9606 bool result;
d14a1e28
RD
9607 PyObject * obj0 = 0 ;
9608 char *kwnames[] = {
093d3ff1 9609 (char *) "self", NULL
d14a1e28
RD
9610 };
9611
093d3ff1
RD
9612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
9613 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
9614 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
9615 {
9616 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9617 result = (bool)((wxFont const *)arg1)->Ok();
d14a1e28
RD
9618
9619 wxPyEndAllowThreads(__tstate);
9620 if (PyErr_Occurred()) SWIG_fail;
9621 }
093d3ff1
RD
9622 {
9623 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9624 }
d14a1e28
RD
9625 return resultobj;
9626 fail:
9627 return NULL;
9628}
9629
9630
093d3ff1 9631static PyObject *_wrap_Font___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
b6294124
RD
9632 PyObject *resultobj;
9633 wxFont *arg1 = (wxFont *) 0 ;
093d3ff1
RD
9634 wxFont *arg2 = (wxFont *) 0 ;
9635 bool result;
b6294124
RD
9636 PyObject * obj0 = 0 ;
9637 PyObject * obj1 = 0 ;
9638 char *kwnames[] = {
093d3ff1 9639 (char *) "self",(char *) "other", NULL
b6294124
RD
9640 };
9641
093d3ff1
RD
9642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
9643 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
9644 if (SWIG_arg_fail(1)) SWIG_fail;
9645 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
9646 if (SWIG_arg_fail(2)) SWIG_fail;
b6294124
RD
9647 {
9648 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9649 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
b6294124
RD
9650
9651 wxPyEndAllowThreads(__tstate);
9652 if (PyErr_Occurred()) SWIG_fail;
9653 }
093d3ff1
RD
9654 {
9655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9656 }
b6294124
RD
9657 return resultobj;
9658 fail:
9659 return NULL;
9660}
9661
9662
093d3ff1 9663static PyObject *_wrap_Font___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
9664 PyObject *resultobj;
9665 wxFont *arg1 = (wxFont *) 0 ;
093d3ff1
RD
9666 wxFont *arg2 = (wxFont *) 0 ;
9667 bool result;
d14a1e28 9668 PyObject * obj0 = 0 ;
994141e6 9669 PyObject * obj1 = 0 ;
d14a1e28 9670 char *kwnames[] = {
093d3ff1 9671 (char *) "self",(char *) "other", NULL
d14a1e28
RD
9672 };
9673
093d3ff1
RD
9674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
9675 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
9676 if (SWIG_arg_fail(1)) SWIG_fail;
9677 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
9678 if (SWIG_arg_fail(2)) SWIG_fail;
d14a1e28
RD
9679 {
9680 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9681 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
d14a1e28
RD
9682
9683 wxPyEndAllowThreads(__tstate);
9684 if (PyErr_Occurred()) SWIG_fail;
9685 }
093d3ff1
RD
9686 {
9687 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9688 }
d14a1e28
RD
9689 return resultobj;
9690 fail:
9691 return NULL;
9692}
9693
9694
093d3ff1 9695static PyObject *_wrap_Font_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
9696 PyObject *resultobj;
9697 wxFont *arg1 = (wxFont *) 0 ;
093d3ff1 9698 int result;
d14a1e28
RD
9699 PyObject * obj0 = 0 ;
9700 char *kwnames[] = {
093d3ff1 9701 (char *) "self", NULL
d14a1e28
RD
9702 };
9703
093d3ff1
RD
9704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
9705 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
9706 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
9707 {
9708 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9709 result = (int)((wxFont const *)arg1)->GetPointSize();
d14a1e28
RD
9710
9711 wxPyEndAllowThreads(__tstate);
9712 if (PyErr_Occurred()) SWIG_fail;
9713 }
093d3ff1
RD
9714 {
9715 resultobj = SWIG_From_int((int)(result));
9716 }
d14a1e28
RD
9717 return resultobj;
9718 fail:
9719 return NULL;
9720}
9721
9722
093d3ff1 9723static PyObject *_wrap_Font_GetPixelSize(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
9724 PyObject *resultobj;
9725 wxFont *arg1 = (wxFont *) 0 ;
093d3ff1 9726 wxSize result;
d14a1e28
RD
9727 PyObject * obj0 = 0 ;
9728 char *kwnames[] = {
093d3ff1 9729 (char *) "self", NULL
d14a1e28
RD
9730 };
9731
093d3ff1
RD
9732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPixelSize",kwnames,&obj0)) goto fail;
9733 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
9734 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
9735 {
9736 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9737 result = ((wxFont const *)arg1)->GetPixelSize();
d14a1e28
RD
9738
9739 wxPyEndAllowThreads(__tstate);
9740 if (PyErr_Occurred()) SWIG_fail;
9741 }
093d3ff1
RD
9742 {
9743 wxSize * resultptr;
9744 resultptr = new wxSize((wxSize &)(result));
9745 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
9746 }
d14a1e28
RD
9747 return resultobj;
9748 fail:
9749 return NULL;
9750}
9751
9752
093d3ff1 9753static PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
9754 PyObject *resultobj;
9755 wxFont *arg1 = (wxFont *) 0 ;
093d3ff1 9756 bool result;
d14a1e28 9757 PyObject * obj0 = 0 ;
d14a1e28 9758 char *kwnames[] = {
093d3ff1 9759 (char *) "self", NULL
d14a1e28
RD
9760 };
9761
093d3ff1
RD
9762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsUsingSizeInPixels",kwnames,&obj0)) goto fail;
9763 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
9764 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
9765 {
9766 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9767 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
d14a1e28
RD
9768
9769 wxPyEndAllowThreads(__tstate);
9770 if (PyErr_Occurred()) SWIG_fail;
9771 }
d14a1e28 9772 {
093d3ff1 9773 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
9774 }
9775 return resultobj;
9776 fail:
d14a1e28
RD
9777 return NULL;
9778}
9779
9780
093d3ff1 9781static PyObject *_wrap_Font_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
9782 PyObject *resultobj;
9783 wxFont *arg1 = (wxFont *) 0 ;
093d3ff1 9784 int result;
d14a1e28 9785 PyObject * obj0 = 0 ;
d14a1e28 9786 char *kwnames[] = {
093d3ff1 9787 (char *) "self", NULL
d14a1e28
RD
9788 };
9789
093d3ff1
RD
9790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
9791 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
9792 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
9793 {
9794 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9795 result = (int)((wxFont const *)arg1)->GetFamily();
d14a1e28
RD
9796
9797 wxPyEndAllowThreads(__tstate);
9798 if (PyErr_Occurred()) SWIG_fail;
9799 }
093d3ff1
RD
9800 {
9801 resultobj = SWIG_From_int((int)(result));
9802 }
d14a1e28
RD
9803 return resultobj;
9804 fail:
9805 return NULL;
9806}
9807
9808
093d3ff1 9809static PyObject *_wrap_Font_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
9810 PyObject *resultobj;
9811 wxFont *arg1 = (wxFont *) 0 ;
093d3ff1 9812 int result;
d14a1e28
RD
9813 PyObject * obj0 = 0 ;
9814 char *kwnames[] = {
093d3ff1 9815 (char *) "self", NULL
d14a1e28
RD
9816 };
9817
093d3ff1
RD
9818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
9819 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
9820 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
9821 {
9822 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9823 result = (int)((wxFont const *)arg1)->GetStyle();
d14a1e28
RD
9824
9825 wxPyEndAllowThreads(__tstate);
9826 if (PyErr_Occurred()) SWIG_fail;
9827 }
093d3ff1
RD
9828 {
9829 resultobj = SWIG_From_int((int)(result));
9830 }
d14a1e28
RD
9831 return resultobj;
9832 fail:
9833 return NULL;
9834}
9835
9836
093d3ff1 9837static PyObject *_wrap_Font_GetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
9838 PyObject *resultobj;
9839 wxFont *arg1 = (wxFont *) 0 ;
093d3ff1 9840 int result;
d14a1e28 9841 PyObject * obj0 = 0 ;
d14a1e28 9842 char *kwnames[] = {
093d3ff1 9843 (char *) "self", NULL
d14a1e28
RD
9844 };
9845
093d3ff1
RD
9846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
9847 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
9848 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
9849 {
9850 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9851 result = (int)((wxFont const *)arg1)->GetWeight();
d14a1e28
RD
9852
9853 wxPyEndAllowThreads(__tstate);
9854 if (PyErr_Occurred()) SWIG_fail;
9855 }
093d3ff1
RD
9856 {
9857 resultobj = SWIG_From_int((int)(result));
9858 }
d14a1e28
RD
9859 return resultobj;
9860 fail:
9861 return NULL;
9862}
9863
9864
093d3ff1 9865static PyObject *_wrap_Font_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
9866 PyObject *resultobj;
9867 wxFont *arg1 = (wxFont *) 0 ;
093d3ff1 9868 bool result;
d14a1e28 9869 PyObject * obj0 = 0 ;
d14a1e28 9870 char *kwnames[] = {
093d3ff1 9871 (char *) "self", NULL
d14a1e28
RD
9872 };
9873
093d3ff1
RD
9874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
9875 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
9876 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
9877 {
9878 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9879 result = (bool)((wxFont const *)arg1)->GetUnderlined();
d14a1e28
RD
9880
9881 wxPyEndAllowThreads(__tstate);
9882 if (PyErr_Occurred()) SWIG_fail;
9883 }
d14a1e28 9884 {
093d3ff1 9885 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
9886 }
9887 return resultobj;
9888 fail:
d14a1e28
RD
9889 return NULL;
9890}
9891
9892
093d3ff1 9893static PyObject *_wrap_Font_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
9894 PyObject *resultobj;
9895 wxFont *arg1 = (wxFont *) 0 ;
093d3ff1 9896 wxString result;
d14a1e28 9897 PyObject * obj0 = 0 ;
d14a1e28 9898 char *kwnames[] = {
093d3ff1 9899 (char *) "self", NULL
d14a1e28
RD
9900 };
9901
093d3ff1
RD
9902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
9903 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
9904 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
9905 {
9906 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9907 result = ((wxFont const *)arg1)->GetFaceName();
d14a1e28
RD
9908
9909 wxPyEndAllowThreads(__tstate);
9910 if (PyErr_Occurred()) SWIG_fail;
9911 }
d14a1e28 9912 {
093d3ff1
RD
9913#if wxUSE_UNICODE
9914 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9915#else
9916 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9917#endif
d14a1e28
RD
9918 }
9919 return resultobj;
9920 fail:
d14a1e28
RD
9921 return NULL;
9922}
9923
9924
093d3ff1 9925static PyObject *_wrap_Font_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
9926 PyObject *resultobj;
9927 wxFont *arg1 = (wxFont *) 0 ;
093d3ff1 9928 wxFontEncoding result;
d14a1e28
RD
9929 PyObject * obj0 = 0 ;
9930 char *kwnames[] = {
9931 (char *) "self", NULL
9932 };
9933
093d3ff1
RD
9934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
9935 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
9936 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
9937 {
9938 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9939 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
d14a1e28
RD
9940
9941 wxPyEndAllowThreads(__tstate);
9942 if (PyErr_Occurred()) SWIG_fail;
9943 }
093d3ff1 9944 resultobj = SWIG_From_int((result));
d14a1e28
RD
9945 return resultobj;
9946 fail:
9947 return NULL;
9948}
9949
9950
093d3ff1 9951static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
9952 PyObject *resultobj;
9953 wxFont *arg1 = (wxFont *) 0 ;
093d3ff1 9954 wxNativeFontInfo *result;
d14a1e28
RD
9955 PyObject * obj0 = 0 ;
9956 char *kwnames[] = {
9957 (char *) "self", NULL
9958 };
9959
093d3ff1
RD
9960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
9961 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
9962 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
9963 {
9964 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9965 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
d14a1e28
RD
9966
9967 wxPyEndAllowThreads(__tstate);
9968 if (PyErr_Occurred()) SWIG_fail;
9969 }
093d3ff1 9970 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0);
d14a1e28
RD
9971 return resultobj;
9972 fail:
9973 return NULL;
9974}
9975
9976
093d3ff1 9977static PyObject *_wrap_Font_IsFixedWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
9978 PyObject *resultobj;
9979 wxFont *arg1 = (wxFont *) 0 ;
093d3ff1 9980 bool result;
d14a1e28
RD
9981 PyObject * obj0 = 0 ;
9982 char *kwnames[] = {
9983 (char *) "self", NULL
9984 };
9985
093d3ff1
RD
9986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
9987 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
9988 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
9989 {
9990 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9991 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
d14a1e28
RD
9992
9993 wxPyEndAllowThreads(__tstate);
9994 if (PyErr_Occurred()) SWIG_fail;
9995 }
9996 {
093d3ff1 9997 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
9998 }
9999 return resultobj;
10000 fail:
10001 return NULL;
10002}
10003
10004
093d3ff1 10005static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
10006 PyObject *resultobj;
10007 wxFont *arg1 = (wxFont *) 0 ;
093d3ff1 10008 wxString result;
d14a1e28 10009 PyObject * obj0 = 0 ;
d14a1e28 10010 char *kwnames[] = {
093d3ff1 10011 (char *) "self", NULL
d14a1e28
RD
10012 };
10013
093d3ff1
RD
10014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
10015 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10016 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
10017 {
10018 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10019 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
d14a1e28
RD
10020
10021 wxPyEndAllowThreads(__tstate);
10022 if (PyErr_Occurred()) SWIG_fail;
10023 }
093d3ff1
RD
10024 {
10025#if wxUSE_UNICODE
10026 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10027#else
10028 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10029#endif
10030 }
d14a1e28
RD
10031 return resultobj;
10032 fail:
10033 return NULL;
10034}
10035
10036
093d3ff1 10037static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
10038 PyObject *resultobj;
10039 wxFont *arg1 = (wxFont *) 0 ;
093d3ff1 10040 wxString result;
d14a1e28
RD
10041 PyObject * obj0 = 0 ;
10042 char *kwnames[] = {
10043 (char *) "self", NULL
10044 };
10045
093d3ff1
RD
10046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
10047 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10048 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
10049 {
10050 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10051 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
d14a1e28
RD
10052
10053 wxPyEndAllowThreads(__tstate);
10054 if (PyErr_Occurred()) SWIG_fail;
10055 }
4f89f6a3 10056 {
093d3ff1
RD
10057#if wxUSE_UNICODE
10058 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10059#else
10060 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10061#endif
4f89f6a3 10062 }
d14a1e28
RD
10063 return resultobj;
10064 fail:
10065 return NULL;
10066}
10067
10068
093d3ff1 10069static PyObject *_wrap_Font_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 10070 PyObject *resultobj;
093d3ff1
RD
10071 wxFont *arg1 = (wxFont *) 0 ;
10072 int arg2 ;
10073 PyObject * obj0 = 0 ;
10074 PyObject * obj1 = 0 ;
d14a1e28 10075 char *kwnames[] = {
093d3ff1 10076 (char *) "self",(char *) "pointSize", NULL
d14a1e28
RD
10077 };
10078
093d3ff1
RD
10079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
10080 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10081 if (SWIG_arg_fail(1)) SWIG_fail;
10082 {
10083 arg2 = (int)(SWIG_As_int(obj1));
10084 if (SWIG_arg_fail(2)) SWIG_fail;
10085 }
d14a1e28
RD
10086 {
10087 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10088 (arg1)->SetPointSize(arg2);
d14a1e28
RD
10089
10090 wxPyEndAllowThreads(__tstate);
110da5b0 10091 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 10092 }
093d3ff1 10093 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
10094 return resultobj;
10095 fail:
10096 return NULL;
10097}
10098
10099
093d3ff1 10100static PyObject *_wrap_Font_SetPixelSize(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 10101 PyObject *resultobj;
093d3ff1
RD
10102 wxFont *arg1 = (wxFont *) 0 ;
10103 wxSize *arg2 = 0 ;
10104 wxSize temp2 ;
994141e6 10105 PyObject * obj0 = 0 ;
093d3ff1 10106 PyObject * obj1 = 0 ;
d14a1e28 10107 char *kwnames[] = {
093d3ff1 10108 (char *) "self",(char *) "pixelSize", NULL
d14a1e28
RD
10109 };
10110
093d3ff1
RD
10111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) goto fail;
10112 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10113 if (SWIG_arg_fail(1)) SWIG_fail;
10114 {
10115 arg2 = &temp2;
10116 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10117 }
d14a1e28
RD
10118 {
10119 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10120 (arg1)->SetPixelSize((wxSize const &)*arg2);
d14a1e28
RD
10121
10122 wxPyEndAllowThreads(__tstate);
110da5b0 10123 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
10124 }
10125 Py_INCREF(Py_None); resultobj = Py_None;
10126 return resultobj;
10127 fail:
10128 return NULL;
10129}
10130
10131
093d3ff1 10132static PyObject *_wrap_Font_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 10133 PyObject *resultobj;
093d3ff1
RD
10134 wxFont *arg1 = (wxFont *) 0 ;
10135 int arg2 ;
10136 PyObject * obj0 = 0 ;
10137 PyObject * obj1 = 0 ;
d14a1e28 10138 char *kwnames[] = {
093d3ff1 10139 (char *) "self",(char *) "family", NULL
d14a1e28
RD
10140 };
10141
093d3ff1
RD
10142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
10143 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10144 if (SWIG_arg_fail(1)) SWIG_fail;
10145 {
10146 arg2 = (int)(SWIG_As_int(obj1));
10147 if (SWIG_arg_fail(2)) SWIG_fail;
10148 }
d14a1e28
RD
10149 {
10150 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10151 (arg1)->SetFamily(arg2);
d14a1e28
RD
10152
10153 wxPyEndAllowThreads(__tstate);
110da5b0 10154 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 10155 }
093d3ff1 10156 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
10157 return resultobj;
10158 fail:
10159 return NULL;
10160}
10161
10162
093d3ff1 10163static PyObject *_wrap_Font_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 10164 PyObject *resultobj;
093d3ff1
RD
10165 wxFont *arg1 = (wxFont *) 0 ;
10166 int arg2 ;
d14a1e28 10167 PyObject * obj0 = 0 ;
093d3ff1 10168 PyObject * obj1 = 0 ;
d14a1e28 10169 char *kwnames[] = {
093d3ff1 10170 (char *) "self",(char *) "style", NULL
d14a1e28
RD
10171 };
10172
093d3ff1
RD
10173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
10174 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10175 if (SWIG_arg_fail(1)) SWIG_fail;
10176 {
10177 arg2 = (int)(SWIG_As_int(obj1));
10178 if (SWIG_arg_fail(2)) SWIG_fail;
10179 }
d14a1e28
RD
10180 {
10181 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10182 (arg1)->SetStyle(arg2);
d14a1e28
RD
10183
10184 wxPyEndAllowThreads(__tstate);
10185 if (PyErr_Occurred()) SWIG_fail;
10186 }
10187 Py_INCREF(Py_None); resultobj = Py_None;
10188 return resultobj;
10189 fail:
10190 return NULL;
10191}
10192
10193
093d3ff1 10194static PyObject *_wrap_Font_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 10195 PyObject *resultobj;
093d3ff1
RD
10196 wxFont *arg1 = (wxFont *) 0 ;
10197 int arg2 ;
d14a1e28
RD
10198 PyObject * obj0 = 0 ;
10199 PyObject * obj1 = 0 ;
d14a1e28 10200 char *kwnames[] = {
093d3ff1 10201 (char *) "self",(char *) "weight", NULL
d14a1e28
RD
10202 };
10203
093d3ff1
RD
10204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
10205 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10206 if (SWIG_arg_fail(1)) SWIG_fail;
10207 {
10208 arg2 = (int)(SWIG_As_int(obj1));
10209 if (SWIG_arg_fail(2)) SWIG_fail;
10210 }
d14a1e28
RD
10211 {
10212 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10213 (arg1)->SetWeight(arg2);
d14a1e28
RD
10214
10215 wxPyEndAllowThreads(__tstate);
10216 if (PyErr_Occurred()) SWIG_fail;
10217 }
10218 Py_INCREF(Py_None); resultobj = Py_None;
10219 return resultobj;
10220 fail:
10221 return NULL;
10222}
10223
10224
093d3ff1 10225static PyObject *_wrap_Font_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 10226 PyObject *resultobj;
093d3ff1
RD
10227 wxFont *arg1 = (wxFont *) 0 ;
10228 wxString *arg2 = 0 ;
10229 bool temp2 = false ;
d14a1e28 10230 PyObject * obj0 = 0 ;
994141e6 10231 PyObject * obj1 = 0 ;
d14a1e28 10232 char *kwnames[] = {
093d3ff1 10233 (char *) "self",(char *) "faceName", NULL
d14a1e28
RD
10234 };
10235
093d3ff1
RD
10236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
10237 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10238 if (SWIG_arg_fail(1)) SWIG_fail;
10239 {
10240 arg2 = wxString_in_helper(obj1);
10241 if (arg2 == NULL) SWIG_fail;
10242 temp2 = true;
d14a1e28
RD
10243 }
10244 {
10245 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10246 (arg1)->SetFaceName((wxString const &)*arg2);
d14a1e28
RD
10247
10248 wxPyEndAllowThreads(__tstate);
10249 if (PyErr_Occurred()) SWIG_fail;
10250 }
093d3ff1 10251 Py_INCREF(Py_None); resultobj = Py_None;
4f89f6a3 10252 {
093d3ff1
RD
10253 if (temp2)
10254 delete arg2;
4f89f6a3 10255 }
d14a1e28
RD
10256 return resultobj;
10257 fail:
093d3ff1
RD
10258 {
10259 if (temp2)
10260 delete arg2;
10261 }
d14a1e28
RD
10262 return NULL;
10263}
10264
10265
093d3ff1 10266static PyObject *_wrap_Font_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 10267 PyObject *resultobj;
093d3ff1
RD
10268 wxFont *arg1 = (wxFont *) 0 ;
10269 bool arg2 ;
d14a1e28
RD
10270 PyObject * obj0 = 0 ;
10271 PyObject * obj1 = 0 ;
10272 char *kwnames[] = {
093d3ff1 10273 (char *) "self",(char *) "underlined", NULL
d14a1e28
RD
10274 };
10275
093d3ff1
RD
10276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
10277 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10278 if (SWIG_arg_fail(1)) SWIG_fail;
10279 {
10280 arg2 = (bool)(SWIG_As_bool(obj1));
10281 if (SWIG_arg_fail(2)) SWIG_fail;
d14a1e28
RD
10282 }
10283 {
10284 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10285 (arg1)->SetUnderlined(arg2);
d14a1e28
RD
10286
10287 wxPyEndAllowThreads(__tstate);
10288 if (PyErr_Occurred()) SWIG_fail;
10289 }
093d3ff1 10290 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
10291 return resultobj;
10292 fail:
d14a1e28
RD
10293 return NULL;
10294}
10295
10296
093d3ff1 10297static PyObject *_wrap_Font_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 10298 PyObject *resultobj;
093d3ff1
RD
10299 wxFont *arg1 = (wxFont *) 0 ;
10300 wxFontEncoding arg2 ;
d14a1e28 10301 PyObject * obj0 = 0 ;
093d3ff1 10302 PyObject * obj1 = 0 ;
d14a1e28 10303 char *kwnames[] = {
093d3ff1 10304 (char *) "self",(char *) "encoding", NULL
d14a1e28
RD
10305 };
10306
093d3ff1
RD
10307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
10308 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10309 if (SWIG_arg_fail(1)) SWIG_fail;
10310 {
10311 arg2 = (wxFontEncoding)(SWIG_As_int(obj1));
10312 if (SWIG_arg_fail(2)) SWIG_fail;
10313 }
d14a1e28
RD
10314 {
10315 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10316 (arg1)->SetEncoding((wxFontEncoding )arg2);
d14a1e28
RD
10317
10318 wxPyEndAllowThreads(__tstate);
10319 if (PyErr_Occurred()) SWIG_fail;
10320 }
093d3ff1 10321 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
10322 return resultobj;
10323 fail:
10324 return NULL;
10325}
10326
10327
093d3ff1 10328static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 10329 PyObject *resultobj;
093d3ff1
RD
10330 wxFont *arg1 = (wxFont *) 0 ;
10331 wxNativeFontInfo *arg2 = 0 ;
d14a1e28 10332 PyObject * obj0 = 0 ;
093d3ff1 10333 PyObject * obj1 = 0 ;
d14a1e28 10334 char *kwnames[] = {
093d3ff1 10335 (char *) "self",(char *) "info", NULL
d14a1e28
RD
10336 };
10337
093d3ff1
RD
10338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
10339 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10340 if (SWIG_arg_fail(1)) SWIG_fail;
10341 {
10342 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
10343 if (SWIG_arg_fail(2)) SWIG_fail;
10344 if (arg2 == NULL) {
10345 SWIG_null_ref("wxNativeFontInfo");
10346 }
10347 if (SWIG_arg_fail(2)) SWIG_fail;
10348 }
d14a1e28
RD
10349 {
10350 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10351 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
d14a1e28
RD
10352
10353 wxPyEndAllowThreads(__tstate);
10354 if (PyErr_Occurred()) SWIG_fail;
10355 }
d14a1e28
RD
10356 Py_INCREF(Py_None); resultobj = Py_None;
10357 return resultobj;
10358 fail:
10359 return NULL;
10360}
10361
10362
093d3ff1 10363static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 10364 PyObject *resultobj;
093d3ff1
RD
10365 wxFont *arg1 = (wxFont *) 0 ;
10366 wxString *arg2 = 0 ;
ae8162c8 10367 bool temp2 = false ;
d14a1e28
RD
10368 PyObject * obj0 = 0 ;
10369 PyObject * obj1 = 0 ;
10370 char *kwnames[] = {
093d3ff1 10371 (char *) "self",(char *) "info", NULL
d14a1e28
RD
10372 };
10373
093d3ff1
RD
10374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
10375 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10376 if (SWIG_arg_fail(1)) SWIG_fail;
7eae615b
RD
10377 {
10378 arg2 = wxString_in_helper(obj1);
10379 if (arg2 == NULL) SWIG_fail;
ae8162c8 10380 temp2 = true;
7eae615b 10381 }
093d3ff1
RD
10382 {
10383 PyThreadState* __tstate = wxPyBeginAllowThreads();
10384 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
10385
10386 wxPyEndAllowThreads(__tstate);
10387 if (PyErr_Occurred()) SWIG_fail;
10388 }
d14a1e28 10389 Py_INCREF(Py_None); resultobj = Py_None;
7eae615b
RD
10390 {
10391 if (temp2)
10392 delete arg2;
10393 }
d14a1e28
RD
10394 return resultobj;
10395 fail:
7eae615b
RD
10396 {
10397 if (temp2)
10398 delete arg2;
10399 }
d14a1e28
RD
10400 return NULL;
10401}
10402
10403
093d3ff1 10404static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 10405 PyObject *resultobj;
093d3ff1
RD
10406 wxFont *arg1 = (wxFont *) 0 ;
10407 wxString *arg2 = 0 ;
ae8162c8 10408 bool temp2 = false ;
d14a1e28
RD
10409 PyObject * obj0 = 0 ;
10410 PyObject * obj1 = 0 ;
10411 char *kwnames[] = {
093d3ff1 10412 (char *) "self",(char *) "info", NULL
d14a1e28
RD
10413 };
10414
093d3ff1
RD
10415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
10416 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10417 if (SWIG_arg_fail(1)) SWIG_fail;
7eae615b
RD
10418 {
10419 arg2 = wxString_in_helper(obj1);
10420 if (arg2 == NULL) SWIG_fail;
ae8162c8 10421 temp2 = true;
7eae615b 10422 }
093d3ff1
RD
10423 {
10424 PyThreadState* __tstate = wxPyBeginAllowThreads();
10425 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
10426
10427 wxPyEndAllowThreads(__tstate);
10428 if (PyErr_Occurred()) SWIG_fail;
10429 }
d14a1e28 10430 Py_INCREF(Py_None); resultobj = Py_None;
7eae615b
RD
10431 {
10432 if (temp2)
10433 delete arg2;
10434 }
d14a1e28
RD
10435 return resultobj;
10436 fail:
7eae615b
RD
10437 {
10438 if (temp2)
10439 delete arg2;
10440 }
d14a1e28
RD
10441 return NULL;
10442}
10443
10444
093d3ff1 10445static PyObject *_wrap_Font_GetFamilyString(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 10446 PyObject *resultobj;
093d3ff1
RD
10447 wxFont *arg1 = (wxFont *) 0 ;
10448 wxString result;
d14a1e28
RD
10449 PyObject * obj0 = 0 ;
10450 char *kwnames[] = {
10451 (char *) "self", NULL
10452 };
10453
093d3ff1
RD
10454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
10455 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10456 if (SWIG_arg_fail(1)) SWIG_fail;
10457 {
10458 PyThreadState* __tstate = wxPyBeginAllowThreads();
10459 result = ((wxFont const *)arg1)->GetFamilyString();
10460
10461 wxPyEndAllowThreads(__tstate);
10462 if (PyErr_Occurred()) SWIG_fail;
10463 }
d14a1e28
RD
10464 {
10465#if wxUSE_UNICODE
093d3ff1 10466 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d14a1e28 10467#else
093d3ff1 10468 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d14a1e28
RD
10469#endif
10470 }
10471 return resultobj;
10472 fail:
10473 return NULL;
10474}
10475
10476
093d3ff1 10477static PyObject *_wrap_Font_GetStyleString(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 10478 PyObject *resultobj;
093d3ff1
RD
10479 wxFont *arg1 = (wxFont *) 0 ;
10480 wxString result;
994141e6 10481 PyObject * obj0 = 0 ;
d14a1e28 10482 char *kwnames[] = {
093d3ff1 10483 (char *) "self", NULL
d14a1e28
RD
10484 };
10485
093d3ff1
RD
10486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
10487 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10488 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
10489 {
10490 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10491 result = ((wxFont const *)arg1)->GetStyleString();
d14a1e28
RD
10492
10493 wxPyEndAllowThreads(__tstate);
10494 if (PyErr_Occurred()) SWIG_fail;
10495 }
093d3ff1
RD
10496 {
10497#if wxUSE_UNICODE
10498 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10499#else
10500 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10501#endif
10502 }
d14a1e28
RD
10503 return resultobj;
10504 fail:
10505 return NULL;
10506}
10507
10508
093d3ff1 10509static PyObject *_wrap_Font_GetWeightString(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 10510 PyObject *resultobj;
093d3ff1
RD
10511 wxFont *arg1 = (wxFont *) 0 ;
10512 wxString result;
d14a1e28
RD
10513 PyObject * obj0 = 0 ;
10514 char *kwnames[] = {
10515 (char *) "self", NULL
10516 };
10517
093d3ff1
RD
10518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
10519 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10520 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
10521 {
10522 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10523 result = ((wxFont const *)arg1)->GetWeightString();
d14a1e28
RD
10524
10525 wxPyEndAllowThreads(__tstate);
10526 if (PyErr_Occurred()) SWIG_fail;
10527 }
093d3ff1
RD
10528 {
10529#if wxUSE_UNICODE
10530 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10531#else
10532 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10533#endif
10534 }
10535 return resultobj;
10536 fail:
10537 return NULL;
10538}
10539
10540
10541static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 10542 PyObject *resultobj;
093d3ff1
RD
10543 wxFont *arg1 = (wxFont *) 0 ;
10544 bool arg2 = (bool) true ;
d14a1e28
RD
10545 PyObject * obj0 = 0 ;
10546 PyObject * obj1 = 0 ;
d14a1e28 10547 char *kwnames[] = {
093d3ff1 10548 (char *) "self",(char *) "no", NULL
d14a1e28
RD
10549 };
10550
093d3ff1
RD
10551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
10552 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10553 if (SWIG_arg_fail(1)) SWIG_fail;
10554 if (obj1) {
d14a1e28 10555 {
093d3ff1
RD
10556 arg2 = (bool)(SWIG_As_bool(obj1));
10557 if (SWIG_arg_fail(2)) SWIG_fail;
d14a1e28
RD
10558 }
10559 }
d14a1e28
RD
10560 {
10561 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10562 (arg1)->SetNoAntiAliasing(arg2);
d14a1e28
RD
10563
10564 wxPyEndAllowThreads(__tstate);
10565 if (PyErr_Occurred()) SWIG_fail;
10566 }
093d3ff1 10567 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
10568 return resultobj;
10569 fail:
d14a1e28
RD
10570 return NULL;
10571}
10572
10573
093d3ff1 10574static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 10575 PyObject *resultobj;
093d3ff1 10576 wxFont *arg1 = (wxFont *) 0 ;
d14a1e28
RD
10577 bool result;
10578 PyObject * obj0 = 0 ;
10579 char *kwnames[] = {
093d3ff1 10580 (char *) "self", NULL
d14a1e28
RD
10581 };
10582
093d3ff1
RD
10583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
10584 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10585 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
10586 {
10587 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10588 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
d14a1e28
RD
10589
10590 wxPyEndAllowThreads(__tstate);
10591 if (PyErr_Occurred()) SWIG_fail;
10592 }
4f89f6a3
RD
10593 {
10594 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10595 }
d14a1e28
RD
10596 return resultobj;
10597 fail:
10598 return NULL;
10599}
10600
10601
093d3ff1 10602static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 10603 PyObject *resultobj;
093d3ff1 10604 wxFontEncoding result;
d14a1e28
RD
10605 char *kwnames[] = {
10606 NULL
10607 };
10608
093d3ff1 10609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
d14a1e28 10610 {
093d3ff1 10611 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28 10612 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10613 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
d14a1e28
RD
10614
10615 wxPyEndAllowThreads(__tstate);
10616 if (PyErr_Occurred()) SWIG_fail;
10617 }
093d3ff1 10618 resultobj = SWIG_From_int((result));
d14a1e28
RD
10619 return resultobj;
10620 fail:
10621 return NULL;
10622}
10623
10624
093d3ff1 10625static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 10626 PyObject *resultobj;
093d3ff1
RD
10627 wxFontEncoding arg1 ;
10628 PyObject * obj0 = 0 ;
d14a1e28 10629 char *kwnames[] = {
093d3ff1 10630 (char *) "encoding", NULL
d14a1e28
RD
10631 };
10632
093d3ff1
RD
10633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
10634 {
10635 arg1 = (wxFontEncoding)(SWIG_As_int(obj0));
10636 if (SWIG_arg_fail(1)) SWIG_fail;
10637 }
d14a1e28 10638 {
093d3ff1 10639 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28 10640 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10641 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
d14a1e28
RD
10642
10643 wxPyEndAllowThreads(__tstate);
10644 if (PyErr_Occurred()) SWIG_fail;
10645 }
093d3ff1 10646 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
10647 return resultobj;
10648 fail:
10649 return NULL;
10650}
10651
10652
093d3ff1
RD
10653static PyObject * Font_swigregister(PyObject *, PyObject *args) {
10654 PyObject *obj;
10655 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10656 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
10657 Py_INCREF(obj);
10658 return Py_BuildValue((char *)"");
10659}
10660static PyObject *_wrap_new_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 10661 PyObject *resultobj;
093d3ff1 10662 wxPyFontEnumerator *result;
d14a1e28
RD
10663 char *kwnames[] = {
10664 NULL
10665 };
10666
093d3ff1 10667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
d14a1e28 10668 {
093d3ff1 10669 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28 10670 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10671 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
d14a1e28
RD
10672
10673 wxPyEndAllowThreads(__tstate);
10674 if (PyErr_Occurred()) SWIG_fail;
10675 }
093d3ff1 10676 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1);
d14a1e28
RD
10677 return resultobj;
10678 fail:
10679 return NULL;
10680}
10681
10682
093d3ff1 10683static PyObject *_wrap_delete_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 10684 PyObject *resultobj;
093d3ff1 10685 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
d14a1e28
RD
10686 PyObject * obj0 = 0 ;
10687 char *kwnames[] = {
10688 (char *) "self", NULL
10689 };
10690
093d3ff1
RD
10691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
10692 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_EXCEPTION | 0);
10693 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
10694 {
10695 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10696 delete arg1;
d14a1e28
RD
10697
10698 wxPyEndAllowThreads(__tstate);
10699 if (PyErr_Occurred()) SWIG_fail;
10700 }
093d3ff1 10701 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
10702 return resultobj;
10703 fail:
10704 return NULL;
10705}
10706
10707
093d3ff1 10708static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 10709 PyObject *resultobj;
093d3ff1
RD
10710 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
10711 PyObject *arg2 = (PyObject *) 0 ;
10712 PyObject *arg3 = (PyObject *) 0 ;
10713 bool arg4 ;
d14a1e28 10714 PyObject * obj0 = 0 ;
093d3ff1
RD
10715 PyObject * obj1 = 0 ;
10716 PyObject * obj2 = 0 ;
10717 PyObject * obj3 = 0 ;
d14a1e28 10718 char *kwnames[] = {
093d3ff1 10719 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
d14a1e28
RD
10720 };
10721
093d3ff1
RD
10722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10723 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_EXCEPTION | 0);
10724 if (SWIG_arg_fail(1)) SWIG_fail;
10725 arg2 = obj1;
10726 arg3 = obj2;
10727 {
10728 arg4 = (bool)(SWIG_As_bool(obj3));
10729 if (SWIG_arg_fail(4)) SWIG_fail;
10730 }
d14a1e28
RD
10731 {
10732 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10733 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
d14a1e28
RD
10734
10735 wxPyEndAllowThreads(__tstate);
10736 if (PyErr_Occurred()) SWIG_fail;
10737 }
093d3ff1 10738 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
10739 return resultobj;
10740 fail:
10741 return NULL;
10742}
10743
10744
093d3ff1 10745static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 10746 PyObject *resultobj;
093d3ff1
RD
10747 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
10748 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
10749 bool arg3 = (bool) false ;
10750 bool result;
d14a1e28 10751 PyObject * obj0 = 0 ;
093d3ff1
RD
10752 PyObject * obj1 = 0 ;
10753 PyObject * obj2 = 0 ;
d14a1e28 10754 char *kwnames[] = {
093d3ff1 10755 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
d14a1e28
RD
10756 };
10757
093d3ff1
RD
10758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
10759 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_EXCEPTION | 0);
10760 if (SWIG_arg_fail(1)) SWIG_fail;
10761 if (obj1) {
10762 {
10763 arg2 = (wxFontEncoding)(SWIG_As_int(obj1));
10764 if (SWIG_arg_fail(2)) SWIG_fail;
10765 }
10766 }
10767 if (obj2) {
10768 {
10769 arg3 = (bool)(SWIG_As_bool(obj2));
10770 if (SWIG_arg_fail(3)) SWIG_fail;
10771 }
10772 }
d14a1e28
RD
10773 {
10774 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10775 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
d14a1e28
RD
10776
10777 wxPyEndAllowThreads(__tstate);
10778 if (PyErr_Occurred()) SWIG_fail;
10779 }
093d3ff1
RD
10780 {
10781 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10782 }
d14a1e28
RD
10783 return resultobj;
10784 fail:
10785 return NULL;
10786}
10787
10788
093d3ff1 10789static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 10790 PyObject *resultobj;
093d3ff1
RD
10791 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
10792 wxString const &arg2_defvalue = wxPyEmptyString ;
10793 wxString *arg2 = (wxString *) &arg2_defvalue ;
10794 bool result;
10795 bool temp2 = false ;
d14a1e28 10796 PyObject * obj0 = 0 ;
093d3ff1 10797 PyObject * obj1 = 0 ;
d14a1e28 10798 char *kwnames[] = {
093d3ff1 10799 (char *) "self",(char *) "facename", NULL
d14a1e28
RD
10800 };
10801
093d3ff1
RD
10802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
10803 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_EXCEPTION | 0);
10804 if (SWIG_arg_fail(1)) SWIG_fail;
10805 if (obj1) {
10806 {
10807 arg2 = wxString_in_helper(obj1);
10808 if (arg2 == NULL) SWIG_fail;
10809 temp2 = true;
10810 }
10811 }
d14a1e28
RD
10812 {
10813 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10814 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
d14a1e28
RD
10815
10816 wxPyEndAllowThreads(__tstate);
10817 if (PyErr_Occurred()) SWIG_fail;
10818 }
10819 {
093d3ff1
RD
10820 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10821 }
10822 {
10823 if (temp2)
10824 delete arg2;
d14a1e28
RD
10825 }
10826 return resultobj;
10827 fail:
093d3ff1
RD
10828 {
10829 if (temp2)
10830 delete arg2;
10831 }
10832 return NULL;
d14a1e28
RD
10833}
10834
10835
093d3ff1 10836static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 10837 PyObject *resultobj;
093d3ff1
RD
10838 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
10839 PyObject *result;
d14a1e28
RD
10840 PyObject * obj0 = 0 ;
10841 char *kwnames[] = {
10842 (char *) "self", NULL
10843 };
10844
093d3ff1
RD
10845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
10846 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_EXCEPTION | 0);
10847 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
10848 {
10849 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10850 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
d14a1e28
RD
10851
10852 wxPyEndAllowThreads(__tstate);
10853 if (PyErr_Occurred()) SWIG_fail;
10854 }
093d3ff1 10855 resultobj = result;
d14a1e28
RD
10856 return resultobj;
10857 fail:
10858 return NULL;
10859}
10860
10861
093d3ff1 10862static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 10863 PyObject *resultobj;
093d3ff1
RD
10864 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
10865 PyObject *result;
d14a1e28
RD
10866 PyObject * obj0 = 0 ;
10867 char *kwnames[] = {
093d3ff1 10868 (char *) "self", NULL
d14a1e28
RD
10869 };
10870
093d3ff1
RD
10871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
10872 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_EXCEPTION | 0);
10873 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
10874 {
10875 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10876 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
d14a1e28
RD
10877
10878 wxPyEndAllowThreads(__tstate);
10879 if (PyErr_Occurred()) SWIG_fail;
10880 }
093d3ff1
RD
10881 resultobj = result;
10882 return resultobj;
10883 fail:
10884 return NULL;
10885}
10886
10887
10888static PyObject * FontEnumerator_swigregister(PyObject *, PyObject *args) {
10889 PyObject *obj;
10890 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10891 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
10892 Py_INCREF(obj);
10893 return Py_BuildValue((char *)"");
10894}
10895static PyObject *_wrap_LanguageInfo_Language_set(PyObject *, PyObject *args, PyObject *kwargs) {
10896 PyObject *resultobj;
10897 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
10898 int arg2 ;
10899 PyObject * obj0 = 0 ;
10900 PyObject * obj1 = 0 ;
10901 char *kwnames[] = {
10902 (char *) "self",(char *) "Language", NULL
10903 };
10904
10905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
10906 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0);
10907 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28 10908 {
093d3ff1
RD
10909 arg2 = (int)(SWIG_As_int(obj1));
10910 if (SWIG_arg_fail(2)) SWIG_fail;
d14a1e28 10911 }
093d3ff1
RD
10912 if (arg1) (arg1)->Language = arg2;
10913
10914 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
10915 return resultobj;
10916 fail:
093d3ff1
RD
10917 return NULL;
10918}
10919
10920
10921static PyObject *_wrap_LanguageInfo_Language_get(PyObject *, PyObject *args, PyObject *kwargs) {
10922 PyObject *resultobj;
10923 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
10924 int result;
10925 PyObject * obj0 = 0 ;
10926 char *kwnames[] = {
10927 (char *) "self", NULL
10928 };
10929
10930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
10931 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0);
10932 if (SWIG_arg_fail(1)) SWIG_fail;
10933 result = (int) ((arg1)->Language);
10934
d14a1e28 10935 {
093d3ff1 10936 resultobj = SWIG_From_int((int)(result));
d14a1e28 10937 }
093d3ff1
RD
10938 return resultobj;
10939 fail:
d14a1e28
RD
10940 return NULL;
10941}
10942
10943
093d3ff1 10944static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 10945 PyObject *resultobj;
093d3ff1
RD
10946 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
10947 wxString *arg2 = (wxString *) 0 ;
ae8162c8 10948 bool temp2 = false ;
d14a1e28
RD
10949 PyObject * obj0 = 0 ;
10950 PyObject * obj1 = 0 ;
10951 char *kwnames[] = {
093d3ff1 10952 (char *) "self",(char *) "CanonicalName", NULL
d14a1e28
RD
10953 };
10954
093d3ff1
RD
10955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
10956 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0);
10957 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
10958 {
10959 arg2 = wxString_in_helper(obj1);
10960 if (arg2 == NULL) SWIG_fail;
ae8162c8 10961 temp2 = true;
d14a1e28 10962 }
093d3ff1
RD
10963 if (arg1) (arg1)->CanonicalName = *arg2;
10964
10965 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
10966 {
10967 if (temp2)
10968 delete arg2;
10969 }
10970 return resultobj;
10971 fail:
10972 {
10973 if (temp2)
10974 delete arg2;
10975 }
10976 return NULL;
10977}
10978
10979
093d3ff1 10980static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 10981 PyObject *resultobj;
093d3ff1
RD
10982 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
10983 wxString *result;
10984 PyObject * obj0 = 0 ;
10985 char *kwnames[] = {
10986 (char *) "self", NULL
10987 };
10988
10989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
10990 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0);
10991 if (SWIG_arg_fail(1)) SWIG_fail;
10992 result = (wxString *)& ((arg1)->CanonicalName);
10993
10994 {
10995#if wxUSE_UNICODE
10996 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10997#else
10998 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10999#endif
11000 }
11001 return resultobj;
11002 fail:
11003 return NULL;
11004}
11005
11006
11007static PyObject *_wrap_LanguageInfo_Description_set(PyObject *, PyObject *args, PyObject *kwargs) {
11008 PyObject *resultobj;
11009 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
11010 wxString *arg2 = (wxString *) 0 ;
ae8162c8 11011 bool temp2 = false ;
d14a1e28
RD
11012 PyObject * obj0 = 0 ;
11013 PyObject * obj1 = 0 ;
11014 char *kwnames[] = {
093d3ff1 11015 (char *) "self",(char *) "Description", NULL
d14a1e28
RD
11016 };
11017
093d3ff1
RD
11018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
11019 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0);
11020 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
11021 {
11022 arg2 = wxString_in_helper(obj1);
11023 if (arg2 == NULL) SWIG_fail;
ae8162c8 11024 temp2 = true;
d14a1e28 11025 }
093d3ff1
RD
11026 if (arg1) (arg1)->Description = *arg2;
11027
11028 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
11029 {
11030 if (temp2)
11031 delete arg2;
11032 }
11033 return resultobj;
11034 fail:
11035 {
11036 if (temp2)
11037 delete arg2;
11038 }
11039 return NULL;
11040}
11041
11042
093d3ff1 11043static PyObject *_wrap_LanguageInfo_Description_get(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 11044 PyObject *resultobj;
093d3ff1
RD
11045 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
11046 wxString *result;
994141e6 11047 PyObject * obj0 = 0 ;
d14a1e28 11048 char *kwnames[] = {
093d3ff1 11049 (char *) "self", NULL
d14a1e28
RD
11050 };
11051
093d3ff1
RD
11052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
11053 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0);
11054 if (SWIG_arg_fail(1)) SWIG_fail;
11055 result = (wxString *)& ((arg1)->Description);
11056
d14a1e28 11057 {
093d3ff1
RD
11058#if wxUSE_UNICODE
11059 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
11060#else
11061 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
11062#endif
d14a1e28 11063 }
d14a1e28
RD
11064 return resultobj;
11065 fail:
11066 return NULL;
11067}
11068
11069
093d3ff1
RD
11070static PyObject * LanguageInfo_swigregister(PyObject *, PyObject *args) {
11071 PyObject *obj;
11072 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11073 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
11074 Py_INCREF(obj);
11075 return Py_BuildValue((char *)"");
11076}
11077static PyObject *_wrap_new_Locale(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 11078 PyObject *resultobj;
093d3ff1
RD
11079 int arg1 = (int) -1 ;
11080 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
11081 wxLocale *result;
994141e6 11082 PyObject * obj0 = 0 ;
093d3ff1 11083 PyObject * obj1 = 0 ;
d14a1e28 11084 char *kwnames[] = {
093d3ff1 11085 (char *) "language",(char *) "flags", NULL
d14a1e28
RD
11086 };
11087
093d3ff1
RD
11088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
11089 if (obj0) {
11090 {
11091 arg1 = (int)(SWIG_As_int(obj0));
11092 if (SWIG_arg_fail(1)) SWIG_fail;
11093 }
11094 }
11095 if (obj1) {
11096 {
11097 arg2 = (int)(SWIG_As_int(obj1));
11098 if (SWIG_arg_fail(2)) SWIG_fail;
11099 }
11100 }
d14a1e28
RD
11101 {
11102 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 11103 result = (wxLocale *)new_wxLocale(arg1,arg2);
d14a1e28
RD
11104
11105 wxPyEndAllowThreads(__tstate);
11106 if (PyErr_Occurred()) SWIG_fail;
11107 }
093d3ff1 11108 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1);
d14a1e28
RD
11109 return resultobj;
11110 fail:
11111 return NULL;
11112}
11113
11114
093d3ff1 11115static PyObject *_wrap_delete_Locale(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 11116 PyObject *resultobj;
093d3ff1 11117 wxLocale *arg1 = (wxLocale *) 0 ;
d14a1e28
RD
11118 PyObject * obj0 = 0 ;
11119 char *kwnames[] = {
093d3ff1 11120 (char *) "self", NULL
d14a1e28
RD
11121 };
11122
093d3ff1
RD
11123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
11124 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
11125 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
11126 {
11127 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 11128 delete arg1;
d14a1e28
RD
11129
11130 wxPyEndAllowThreads(__tstate);
11131 if (PyErr_Occurred()) SWIG_fail;
11132 }
093d3ff1 11133 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
11134 return resultobj;
11135 fail:
d14a1e28
RD
11136 return NULL;
11137}
11138
11139
093d3ff1 11140static PyObject *_wrap_Locale_Init1(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
11141 PyObject *resultobj;
11142 wxLocale *arg1 = (wxLocale *) 0 ;
11143 wxString *arg2 = 0 ;
11144 wxString const &arg3_defvalue = wxPyEmptyString ;
11145 wxString *arg3 = (wxString *) &arg3_defvalue ;
093d3ff1
RD
11146 wxString const &arg4_defvalue = wxPyEmptyString ;
11147 wxString *arg4 = (wxString *) &arg4_defvalue ;
11148 bool arg5 = (bool) true ;
11149 bool arg6 = (bool) false ;
11150 bool result;
ae8162c8
RD
11151 bool temp2 = false ;
11152 bool temp3 = false ;
093d3ff1 11153 bool temp4 = false ;
d14a1e28
RD
11154 PyObject * obj0 = 0 ;
11155 PyObject * obj1 = 0 ;
11156 PyObject * obj2 = 0 ;
093d3ff1
RD
11157 PyObject * obj3 = 0 ;
11158 PyObject * obj4 = 0 ;
11159 PyObject * obj5 = 0 ;
d14a1e28 11160 char *kwnames[] = {
093d3ff1 11161 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
d14a1e28
RD
11162 };
11163
093d3ff1
RD
11164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
11165 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
11166 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
11167 {
11168 arg2 = wxString_in_helper(obj1);
11169 if (arg2 == NULL) SWIG_fail;
ae8162c8 11170 temp2 = true;
d14a1e28
RD
11171 }
11172 if (obj2) {
11173 {
11174 arg3 = wxString_in_helper(obj2);
11175 if (arg3 == NULL) SWIG_fail;
ae8162c8 11176 temp3 = true;
d14a1e28
RD
11177 }
11178 }
093d3ff1
RD
11179 if (obj3) {
11180 {
11181 arg4 = wxString_in_helper(obj3);
11182 if (arg4 == NULL) SWIG_fail;
11183 temp4 = true;
11184 }
11185 }
11186 if (obj4) {
11187 {
11188 arg5 = (bool)(SWIG_As_bool(obj4));
11189 if (SWIG_arg_fail(5)) SWIG_fail;
11190 }
11191 }
11192 if (obj5) {
11193 {
11194 arg6 = (bool)(SWIG_As_bool(obj5));
11195 if (SWIG_arg_fail(6)) SWIG_fail;
11196 }
11197 }
d14a1e28
RD
11198 {
11199 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 11200 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
d14a1e28
RD
11201
11202 wxPyEndAllowThreads(__tstate);
11203 if (PyErr_Occurred()) SWIG_fail;
11204 }
11205 {
093d3ff1 11206 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
11207 }
11208 {
11209 if (temp2)
11210 delete arg2;
11211 }
11212 {
11213 if (temp3)
11214 delete arg3;
11215 }
093d3ff1
RD
11216 {
11217 if (temp4)
11218 delete arg4;
11219 }
d14a1e28
RD
11220 return resultobj;
11221 fail:
11222 {
11223 if (temp2)
11224 delete arg2;
11225 }
11226 {
11227 if (temp3)
11228 delete arg3;
11229 }
093d3ff1
RD
11230 {
11231 if (temp4)
11232 delete arg4;
11233 }
d14a1e28
RD
11234 return NULL;
11235}
11236
11237
093d3ff1 11238static PyObject *_wrap_Locale_Init2(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
11239 PyObject *resultobj;
11240 wxLocale *arg1 = (wxLocale *) 0 ;
093d3ff1
RD
11241 int arg2 = (int) wxLANGUAGE_DEFAULT ;
11242 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
11243 bool result;
d14a1e28 11244 PyObject * obj0 = 0 ;
093d3ff1
RD
11245 PyObject * obj1 = 0 ;
11246 PyObject * obj2 = 0 ;
d14a1e28 11247 char *kwnames[] = {
093d3ff1 11248 (char *) "self",(char *) "language",(char *) "flags", NULL
d14a1e28
RD
11249 };
11250
093d3ff1
RD
11251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
11252 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
11253 if (SWIG_arg_fail(1)) SWIG_fail;
11254 if (obj1) {
d14a1e28 11255 {
093d3ff1
RD
11256 arg2 = (int)(SWIG_As_int(obj1));
11257 if (SWIG_arg_fail(2)) SWIG_fail;
11258 }
11259 }
11260 if (obj2) {
11261 {
11262 arg3 = (int)(SWIG_As_int(obj2));
11263 if (SWIG_arg_fail(3)) SWIG_fail;
d14a1e28 11264 }
093d3ff1
RD
11265 }
11266 {
11267 PyThreadState* __tstate = wxPyBeginAllowThreads();
11268 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
d14a1e28
RD
11269
11270 wxPyEndAllowThreads(__tstate);
11271 if (PyErr_Occurred()) SWIG_fail;
11272 }
cc6dd355 11273 {
093d3ff1 11274 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
cc6dd355 11275 }
d14a1e28
RD
11276 return resultobj;
11277 fail:
11278 return NULL;
11279}
11280
11281
093d3ff1 11282static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 11283 PyObject *resultobj;
093d3ff1 11284 int result;
d14a1e28
RD
11285 char *kwnames[] = {
11286 NULL
11287 };
11288
093d3ff1 11289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
d14a1e28
RD
11290 {
11291 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 11292 result = (int)wxLocale::GetSystemLanguage();
d14a1e28
RD
11293
11294 wxPyEndAllowThreads(__tstate);
11295 if (PyErr_Occurred()) SWIG_fail;
11296 }
093d3ff1
RD
11297 {
11298 resultobj = SWIG_From_int((int)(result));
11299 }
d14a1e28
RD
11300 return resultobj;
11301 fail:
11302 return NULL;
11303}
11304
11305
093d3ff1 11306static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 11307 PyObject *resultobj;
093d3ff1
RD
11308 wxFontEncoding result;
11309 char *kwnames[] = {
11310 NULL
11311 };
d14a1e28 11312
093d3ff1 11313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
d14a1e28
RD
11314 {
11315 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 11316 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
d14a1e28
RD
11317
11318 wxPyEndAllowThreads(__tstate);
11319 if (PyErr_Occurred()) SWIG_fail;
11320 }
093d3ff1 11321 resultobj = SWIG_From_int((result));
d14a1e28
RD
11322 return resultobj;
11323 fail:
d14a1e28
RD
11324 return NULL;
11325}
11326
11327
093d3ff1 11328static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 11329 PyObject *resultobj;
d14a1e28 11330 wxString result;
093d3ff1
RD
11331 char *kwnames[] = {
11332 NULL
11333 };
d14a1e28 11334
093d3ff1 11335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
d14a1e28
RD
11336 {
11337 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 11338 result = wxLocale::GetSystemEncodingName();
d14a1e28
RD
11339
11340 wxPyEndAllowThreads(__tstate);
11341 if (PyErr_Occurred()) SWIG_fail;
11342 }
11343 {
11344#if wxUSE_UNICODE
11345 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11346#else
11347 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11348#endif
11349 }
d14a1e28
RD
11350 return resultobj;
11351 fail:
d14a1e28
RD
11352 return NULL;
11353}
11354
11355
093d3ff1 11356static PyObject *_wrap_Locale_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 11357 PyObject *resultobj;
093d3ff1
RD
11358 wxLocale *arg1 = (wxLocale *) 0 ;
11359 bool result;
11360 PyObject * obj0 = 0 ;
d14a1e28 11361 char *kwnames[] = {
093d3ff1 11362 (char *) "self", NULL
d14a1e28
RD
11363 };
11364
093d3ff1
RD
11365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
11366 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
11367 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
11368 {
11369 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 11370 result = (bool)((wxLocale const *)arg1)->IsOk();
d14a1e28
RD
11371
11372 wxPyEndAllowThreads(__tstate);
11373 if (PyErr_Occurred()) SWIG_fail;
11374 }
093d3ff1
RD
11375 {
11376 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11377 }
d14a1e28
RD
11378 return resultobj;
11379 fail:
11380 return NULL;
11381}
11382
11383
093d3ff1 11384static PyObject *_wrap_Locale_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 11385 PyObject *resultobj;
093d3ff1
RD
11386 wxLocale *arg1 = (wxLocale *) 0 ;
11387 wxString result;
d14a1e28
RD
11388 PyObject * obj0 = 0 ;
11389 char *kwnames[] = {
11390 (char *) "self", NULL
11391 };
11392
093d3ff1
RD
11393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
11394 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
11395 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
11396 {
11397 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 11398 result = ((wxLocale const *)arg1)->GetLocale();
d14a1e28
RD
11399
11400 wxPyEndAllowThreads(__tstate);
11401 if (PyErr_Occurred()) SWIG_fail;
11402 }
093d3ff1
RD
11403 {
11404#if wxUSE_UNICODE
11405 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11406#else
11407 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11408#endif
11409 }
d14a1e28
RD
11410 return resultobj;
11411 fail:
11412 return NULL;
11413}
11414
11415
093d3ff1 11416static PyObject *_wrap_Locale_GetLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 11417 PyObject *resultobj;
093d3ff1
RD
11418 wxLocale *arg1 = (wxLocale *) 0 ;
11419 int result;
d14a1e28
RD
11420 PyObject * obj0 = 0 ;
11421 char *kwnames[] = {
093d3ff1 11422 (char *) "self", NULL
d14a1e28
RD
11423 };
11424
093d3ff1
RD
11425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
11426 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
11427 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
11428 {
11429 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 11430 result = (int)((wxLocale const *)arg1)->GetLanguage();
d14a1e28
RD
11431
11432 wxPyEndAllowThreads(__tstate);
11433 if (PyErr_Occurred()) SWIG_fail;
11434 }
4f89f6a3 11435 {
093d3ff1 11436 resultobj = SWIG_From_int((int)(result));
4f89f6a3 11437 }
d14a1e28
RD
11438 return resultobj;
11439 fail:
11440 return NULL;
11441}
11442
11443
093d3ff1 11444static PyObject *_wrap_Locale_GetSysName(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 11445 PyObject *resultobj;
093d3ff1 11446 wxLocale *arg1 = (wxLocale *) 0 ;
d14a1e28 11447 wxString result;
d14a1e28 11448 PyObject * obj0 = 0 ;
d14a1e28 11449 char *kwnames[] = {
093d3ff1 11450 (char *) "self", NULL
d14a1e28
RD
11451 };
11452
093d3ff1
RD
11453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
11454 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
11455 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
11456 {
11457 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 11458 result = ((wxLocale const *)arg1)->GetSysName();
d14a1e28
RD
11459
11460 wxPyEndAllowThreads(__tstate);
11461 if (PyErr_Occurred()) SWIG_fail;
11462 }
11463 {
11464#if wxUSE_UNICODE
11465 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11466#else
11467 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11468#endif
11469 }
d14a1e28
RD
11470 return resultobj;
11471 fail:
d14a1e28
RD
11472 return NULL;
11473}
11474
11475
093d3ff1 11476static PyObject *_wrap_Locale_GetCanonicalName(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 11477 PyObject *resultobj;
093d3ff1
RD
11478 wxLocale *arg1 = (wxLocale *) 0 ;
11479 wxString result;
994141e6 11480 PyObject * obj0 = 0 ;
d14a1e28 11481 char *kwnames[] = {
093d3ff1 11482 (char *) "self", NULL
d14a1e28
RD
11483 };
11484
093d3ff1
RD
11485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
11486 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
11487 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
11488 {
11489 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 11490 result = ((wxLocale const *)arg1)->GetCanonicalName();
d14a1e28
RD
11491
11492 wxPyEndAllowThreads(__tstate);
11493 if (PyErr_Occurred()) SWIG_fail;
11494 }
11495 {
093d3ff1
RD
11496#if wxUSE_UNICODE
11497 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11498#else
11499 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11500#endif
d14a1e28
RD
11501 }
11502 return resultobj;
11503 fail:
11504 return NULL;
11505}
11506
11507
093d3ff1 11508static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 11509 PyObject *resultobj;
093d3ff1
RD
11510 wxString *arg1 = 0 ;
11511 bool temp1 = false ;
994141e6 11512 PyObject * obj0 = 0 ;
d14a1e28 11513 char *kwnames[] = {
093d3ff1 11514 (char *) "prefix", NULL
d14a1e28
RD
11515 };
11516
093d3ff1
RD
11517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
11518 {
11519 arg1 = wxString_in_helper(obj0);
11520 if (arg1 == NULL) SWIG_fail;
11521 temp1 = true;
11522 }
d14a1e28
RD
11523 {
11524 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 11525 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
d14a1e28
RD
11526
11527 wxPyEndAllowThreads(__tstate);
11528 if (PyErr_Occurred()) SWIG_fail;
11529 }
093d3ff1 11530 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28 11531 {
093d3ff1
RD
11532 if (temp1)
11533 delete arg1;
d14a1e28
RD
11534 }
11535 return resultobj;
11536 fail:
093d3ff1
RD
11537 {
11538 if (temp1)
11539 delete arg1;
11540 }
d14a1e28
RD
11541 return NULL;
11542}
11543
11544
093d3ff1 11545static PyObject *_wrap_Locale_AddCatalog(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 11546 PyObject *resultobj;
093d3ff1
RD
11547 wxLocale *arg1 = (wxLocale *) 0 ;
11548 wxString *arg2 = 0 ;
d14a1e28 11549 bool result;
093d3ff1 11550 bool temp2 = false ;
994141e6
RD
11551 PyObject * obj0 = 0 ;
11552 PyObject * obj1 = 0 ;
d14a1e28 11553 char *kwnames[] = {
093d3ff1 11554 (char *) "self",(char *) "szDomain", NULL
d14a1e28
RD
11555 };
11556
093d3ff1
RD
11557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
11558 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
11559 if (SWIG_arg_fail(1)) SWIG_fail;
11560 {
11561 arg2 = wxString_in_helper(obj1);
11562 if (arg2 == NULL) SWIG_fail;
11563 temp2 = true;
11564 }
d14a1e28
RD
11565 {
11566 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 11567 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
d14a1e28
RD
11568
11569 wxPyEndAllowThreads(__tstate);
11570 if (PyErr_Occurred()) SWIG_fail;
11571 }
4f89f6a3
RD
11572 {
11573 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11574 }
093d3ff1
RD
11575 {
11576 if (temp2)
11577 delete arg2;
11578 }
d14a1e28
RD
11579 return resultobj;
11580 fail:
093d3ff1
RD
11581 {
11582 if (temp2)
11583 delete arg2;
11584 }
d14a1e28
RD
11585 return NULL;
11586}
11587
11588
093d3ff1 11589static PyObject *_wrap_Locale_IsLoaded(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 11590 PyObject *resultobj;
093d3ff1
RD
11591 wxLocale *arg1 = (wxLocale *) 0 ;
11592 wxString *arg2 = 0 ;
11593 bool result;
11594 bool temp2 = false ;
d14a1e28 11595 PyObject * obj0 = 0 ;
093d3ff1 11596 PyObject * obj1 = 0 ;
d14a1e28 11597 char *kwnames[] = {
093d3ff1 11598 (char *) "self",(char *) "szDomain", NULL
d14a1e28
RD
11599 };
11600
093d3ff1
RD
11601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
11602 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
11603 if (SWIG_arg_fail(1)) SWIG_fail;
11604 {
11605 arg2 = wxString_in_helper(obj1);
11606 if (arg2 == NULL) SWIG_fail;
11607 temp2 = true;
11608 }
d14a1e28
RD
11609 {
11610 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 11611 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
d14a1e28
RD
11612
11613 wxPyEndAllowThreads(__tstate);
11614 if (PyErr_Occurred()) SWIG_fail;
11615 }
093d3ff1
RD
11616 {
11617 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11618 }
11619 {
11620 if (temp2)
11621 delete arg2;
11622 }
d14a1e28
RD
11623 return resultobj;
11624 fail:
093d3ff1
RD
11625 {
11626 if (temp2)
11627 delete arg2;
11628 }
d14a1e28
RD
11629 return NULL;
11630}
11631
11632
093d3ff1 11633static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 11634 PyObject *resultobj;
093d3ff1
RD
11635 int arg1 ;
11636 wxLanguageInfo *result;
d14a1e28
RD
11637 PyObject * obj0 = 0 ;
11638 char *kwnames[] = {
093d3ff1 11639 (char *) "lang", NULL
d14a1e28
RD
11640 };
11641
093d3ff1
RD
11642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
11643 {
11644 arg1 = (int)(SWIG_As_int(obj0));
11645 if (SWIG_arg_fail(1)) SWIG_fail;
11646 }
d14a1e28
RD
11647 {
11648 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 11649 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
d14a1e28
RD
11650
11651 wxPyEndAllowThreads(__tstate);
11652 if (PyErr_Occurred()) SWIG_fail;
11653 }
093d3ff1 11654 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
d14a1e28
RD
11655 return resultobj;
11656 fail:
11657 return NULL;
11658}
11659
11660
093d3ff1 11661static PyObject *_wrap_Locale_GetLanguageName(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 11662 PyObject *resultobj;
093d3ff1
RD
11663 int arg1 ;
11664 wxString result;
d14a1e28
RD
11665 PyObject * obj0 = 0 ;
11666 char *kwnames[] = {
093d3ff1 11667 (char *) "lang", NULL
d14a1e28
RD
11668 };
11669
093d3ff1
RD
11670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
11671 {
11672 arg1 = (int)(SWIG_As_int(obj0));
11673 if (SWIG_arg_fail(1)) SWIG_fail;
11674 }
d14a1e28
RD
11675 {
11676 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 11677 result = wxLocale::GetLanguageName(arg1);
d14a1e28
RD
11678
11679 wxPyEndAllowThreads(__tstate);
11680 if (PyErr_Occurred()) SWIG_fail;
11681 }
093d3ff1
RD
11682 {
11683#if wxUSE_UNICODE
11684 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11685#else
11686 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11687#endif
11688 }
d14a1e28
RD
11689 return resultobj;
11690 fail:
11691 return NULL;
11692}
11693
11694
093d3ff1 11695static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 11696 PyObject *resultobj;
093d3ff1
RD
11697 wxString *arg1 = 0 ;
11698 wxLanguageInfo *result;
11699 bool temp1 = false ;
d14a1e28 11700 PyObject * obj0 = 0 ;
d14a1e28 11701 char *kwnames[] = {
093d3ff1 11702 (char *) "locale", NULL
d14a1e28
RD
11703 };
11704
093d3ff1 11705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
d14a1e28 11706 {
093d3ff1
RD
11707 arg1 = wxString_in_helper(obj0);
11708 if (arg1 == NULL) SWIG_fail;
11709 temp1 = true;
994141e6 11710 }
d14a1e28
RD
11711 {
11712 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 11713 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
d14a1e28
RD
11714
11715 wxPyEndAllowThreads(__tstate);
11716 if (PyErr_Occurred()) SWIG_fail;
11717 }
093d3ff1 11718 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
4f89f6a3 11719 {
093d3ff1
RD
11720 if (temp1)
11721 delete arg1;
4f89f6a3 11722 }
d14a1e28
RD
11723 return resultobj;
11724 fail:
093d3ff1
RD
11725 {
11726 if (temp1)
11727 delete arg1;
11728 }
d14a1e28
RD
11729 return NULL;
11730}
11731
11732
093d3ff1 11733static PyObject *_wrap_Locale_AddLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 11734 PyObject *resultobj;
093d3ff1 11735 wxLanguageInfo *arg1 = 0 ;
d14a1e28 11736 PyObject * obj0 = 0 ;
d14a1e28 11737 char *kwnames[] = {
093d3ff1 11738 (char *) "info", NULL
d14a1e28
RD
11739 };
11740
093d3ff1 11741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
d14a1e28 11742 {
093d3ff1
RD
11743 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0);
11744 if (SWIG_arg_fail(1)) SWIG_fail;
11745 if (arg1 == NULL) {
11746 SWIG_null_ref("wxLanguageInfo");
11747 }
11748 if (SWIG_arg_fail(1)) SWIG_fail;
994141e6 11749 }
d14a1e28
RD
11750 {
11751 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 11752 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
d14a1e28
RD
11753
11754 wxPyEndAllowThreads(__tstate);
11755 if (PyErr_Occurred()) SWIG_fail;
11756 }
093d3ff1 11757 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
11758 return resultobj;
11759 fail:
11760 return NULL;
11761}
11762
11763
093d3ff1 11764static PyObject *_wrap_Locale_GetString(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 11765 PyObject *resultobj;
093d3ff1
RD
11766 wxLocale *arg1 = (wxLocale *) 0 ;
11767 wxString *arg2 = 0 ;
11768 wxString const &arg3_defvalue = wxPyEmptyString ;
11769 wxString *arg3 = (wxString *) &arg3_defvalue ;
11770 wxString result;
11771 bool temp2 = false ;
11772 bool temp3 = false ;
d14a1e28 11773 PyObject * obj0 = 0 ;
994141e6
RD
11774 PyObject * obj1 = 0 ;
11775 PyObject * obj2 = 0 ;
d14a1e28 11776 char *kwnames[] = {
093d3ff1 11777 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
d14a1e28
RD
11778 };
11779
093d3ff1
RD
11780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
11781 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
11782 if (SWIG_arg_fail(1)) SWIG_fail;
11783 {
11784 arg2 = wxString_in_helper(obj1);
11785 if (arg2 == NULL) SWIG_fail;
11786 temp2 = true;
11787 }
11788 if (obj2) {
11789 {
11790 arg3 = wxString_in_helper(obj2);
11791 if (arg3 == NULL) SWIG_fail;
11792 temp3 = true;
11793 }
11794 }
d14a1e28
RD
11795 {
11796 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 11797 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
d14a1e28
RD
11798
11799 wxPyEndAllowThreads(__tstate);
11800 if (PyErr_Occurred()) SWIG_fail;
11801 }
11802 {
093d3ff1
RD
11803#if wxUSE_UNICODE
11804 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11805#else
11806 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11807#endif
11808 }
11809 {
11810 if (temp2)
11811 delete arg2;
11812 }
11813 {
11814 if (temp3)
11815 delete arg3;
d14a1e28
RD
11816 }
11817 return resultobj;
11818 fail:
093d3ff1
RD
11819 {
11820 if (temp2)
11821 delete arg2;
11822 }
11823 {
11824 if (temp3)
11825 delete arg3;
11826 }
d14a1e28
RD
11827 return NULL;
11828}
11829
11830
093d3ff1 11831static PyObject *_wrap_Locale_GetName(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 11832 PyObject *resultobj;
093d3ff1
RD
11833 wxLocale *arg1 = (wxLocale *) 0 ;
11834 wxString *result;
d14a1e28 11835 PyObject * obj0 = 0 ;
d14a1e28 11836 char *kwnames[] = {
093d3ff1 11837 (char *) "self", NULL
d14a1e28
RD
11838 };
11839
093d3ff1
RD
11840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
11841 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
11842 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
11843 {
11844 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1
RD
11845 {
11846 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
11847 result = (wxString *) &_result_ref;
11848 }
d14a1e28
RD
11849
11850 wxPyEndAllowThreads(__tstate);
11851 if (PyErr_Occurred()) SWIG_fail;
11852 }
11853 {
093d3ff1
RD
11854#if wxUSE_UNICODE
11855 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
11856#else
11857 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
11858#endif
d14a1e28
RD
11859 }
11860 return resultobj;
11861 fail:
11862 return NULL;
11863}
11864
11865
093d3ff1
RD
11866static PyObject * Locale_swigregister(PyObject *, PyObject *args) {
11867 PyObject *obj;
11868 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11869 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
11870 Py_INCREF(obj);
11871 return Py_BuildValue((char *)"");
11872}
11873static PyObject *_wrap_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 11874 PyObject *resultobj;
093d3ff1 11875 wxLocale *result;
d14a1e28 11876 char *kwnames[] = {
093d3ff1 11877 NULL
d14a1e28
RD
11878 };
11879
093d3ff1 11880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
d14a1e28
RD
11881 {
11882 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 11883 result = (wxLocale *)wxGetLocale();
d14a1e28
RD
11884
11885 wxPyEndAllowThreads(__tstate);
11886 if (PyErr_Occurred()) SWIG_fail;
11887 }
093d3ff1 11888 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0);
d14a1e28
RD
11889 return resultobj;
11890 fail:
11891 return NULL;
11892}
11893
11894
093d3ff1 11895static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *, PyObject *args) {
d14a1e28 11896 PyObject *resultobj;
093d3ff1
RD
11897 wxString *arg1 = 0 ;
11898 wxString result;
11899 bool temp1 = false ;
d14a1e28 11900 PyObject * obj0 = 0 ;
d14a1e28 11901
093d3ff1 11902 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
d14a1e28 11903 {
093d3ff1
RD
11904 arg1 = wxString_in_helper(obj0);
11905 if (arg1 == NULL) SWIG_fail;
11906 temp1 = true;
d14a1e28
RD
11907 }
11908 {
11909 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 11910 result = wxGetTranslation((wxString const &)*arg1);
d14a1e28
RD
11911
11912 wxPyEndAllowThreads(__tstate);
11913 if (PyErr_Occurred()) SWIG_fail;
11914 }
093d3ff1
RD
11915 {
11916#if wxUSE_UNICODE
11917 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11918#else
11919 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11920#endif
11921 }
11922 {
11923 if (temp1)
11924 delete arg1;
11925 }
d14a1e28
RD
11926 return resultobj;
11927 fail:
093d3ff1
RD
11928 {
11929 if (temp1)
11930 delete arg1;
11931 }
d14a1e28
RD
11932 return NULL;
11933}
11934
11935
093d3ff1 11936static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *, PyObject *args) {
d14a1e28 11937 PyObject *resultobj;
093d3ff1
RD
11938 wxString *arg1 = 0 ;
11939 wxString *arg2 = 0 ;
11940 size_t arg3 ;
11941 wxString result;
11942 bool temp1 = false ;
11943 bool temp2 = false ;
d14a1e28 11944 PyObject * obj0 = 0 ;
994141e6
RD
11945 PyObject * obj1 = 0 ;
11946 PyObject * obj2 = 0 ;
d14a1e28 11947
093d3ff1
RD
11948 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
11949 {
11950 arg1 = wxString_in_helper(obj0);
11951 if (arg1 == NULL) SWIG_fail;
11952 temp1 = true;
11953 }
11954 {
11955 arg2 = wxString_in_helper(obj1);
11956 if (arg2 == NULL) SWIG_fail;
11957 temp2 = true;
11958 }
11959 {
11960 arg3 = (size_t)(SWIG_As_unsigned_SS_long(obj2));
11961 if (SWIG_arg_fail(3)) SWIG_fail;
11962 }
d14a1e28
RD
11963 {
11964 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 11965 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
d14a1e28
RD
11966
11967 wxPyEndAllowThreads(__tstate);
11968 if (PyErr_Occurred()) SWIG_fail;
11969 }
093d3ff1
RD
11970 {
11971#if wxUSE_UNICODE
11972 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11973#else
11974 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11975#endif
11976 }
11977 {
11978 if (temp1)
11979 delete arg1;
11980 }
11981 {
11982 if (temp2)
11983 delete arg2;
11984 }
d14a1e28
RD
11985 return resultobj;
11986 fail:
093d3ff1
RD
11987 {
11988 if (temp1)
11989 delete arg1;
11990 }
11991 {
11992 if (temp2)
11993 delete arg2;
11994 }
d14a1e28
RD
11995 return NULL;
11996}
11997
11998
093d3ff1
RD
11999static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
12000 int argc;
12001 PyObject *argv[4];
12002 int ii;
d14a1e28 12003
093d3ff1
RD
12004 argc = PyObject_Length(args);
12005 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
12006 argv[ii] = PyTuple_GetItem(args,ii);
12007 }
12008 if (argc == 1) {
12009 int _v;
12010 {
12011 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
12012 }
12013 if (_v) {
12014 return _wrap_GetTranslation__SWIG_0(self,args);
12015 }
12016 }
12017 if (argc == 3) {
12018 int _v;
12019 {
12020 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
12021 }
12022 if (_v) {
12023 {
12024 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
12025 }
12026 if (_v) {
12027 _v = SWIG_Check_unsigned_SS_long(argv[2]);
12028 if (_v) {
12029 return _wrap_GetTranslation__SWIG_1(self,args);
12030 }
12031 }
12032 }
12033 }
12034
12035 PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
12036 return NULL;
12037}
12038
12039
12040static PyObject *_wrap_new_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) {
12041 PyObject *resultobj;
12042 wxEncodingConverter *result;
12043 char *kwnames[] = {
12044 NULL
12045 };
12046
12047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
d14a1e28
RD
12048 {
12049 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12050 result = (wxEncodingConverter *)new wxEncodingConverter();
d14a1e28
RD
12051
12052 wxPyEndAllowThreads(__tstate);
12053 if (PyErr_Occurred()) SWIG_fail;
12054 }
093d3ff1 12055 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1);
d14a1e28
RD
12056 return resultobj;
12057 fail:
12058 return NULL;
12059}
12060
12061
093d3ff1 12062static PyObject *_wrap_delete_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 12063 PyObject *resultobj;
093d3ff1 12064 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
d14a1e28
RD
12065 PyObject * obj0 = 0 ;
12066 char *kwnames[] = {
093d3ff1 12067 (char *) "self", NULL
d14a1e28
RD
12068 };
12069
093d3ff1
RD
12070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
12071 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_EXCEPTION | 0);
12072 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
12073 {
12074 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12075 delete arg1;
d14a1e28
RD
12076
12077 wxPyEndAllowThreads(__tstate);
12078 if (PyErr_Occurred()) SWIG_fail;
12079 }
12080 Py_INCREF(Py_None); resultobj = Py_None;
12081 return resultobj;
12082 fail:
12083 return NULL;
12084}
12085
12086
093d3ff1 12087static PyObject *_wrap_EncodingConverter_Init(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 12088 PyObject *resultobj;
093d3ff1
RD
12089 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
12090 wxFontEncoding arg2 ;
12091 wxFontEncoding arg3 ;
12092 int arg4 = (int) wxCONVERT_STRICT ;
12093 bool result;
d14a1e28
RD
12094 PyObject * obj0 = 0 ;
12095 PyObject * obj1 = 0 ;
12096 PyObject * obj2 = 0 ;
12097 PyObject * obj3 = 0 ;
12098 char *kwnames[] = {
093d3ff1 12099 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
d14a1e28
RD
12100 };
12101
093d3ff1
RD
12102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12103 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_EXCEPTION | 0);
12104 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28 12105 {
093d3ff1
RD
12106 arg2 = (wxFontEncoding)(SWIG_As_int(obj1));
12107 if (SWIG_arg_fail(2)) SWIG_fail;
d14a1e28
RD
12108 }
12109 {
093d3ff1
RD
12110 arg3 = (wxFontEncoding)(SWIG_As_int(obj2));
12111 if (SWIG_arg_fail(3)) SWIG_fail;
d14a1e28 12112 }
093d3ff1
RD
12113 if (obj3) {
12114 {
12115 arg4 = (int)(SWIG_As_int(obj3));
12116 if (SWIG_arg_fail(4)) SWIG_fail;
12117 }
d14a1e28
RD
12118 }
12119 {
12120 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12121 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
d14a1e28
RD
12122
12123 wxPyEndAllowThreads(__tstate);
12124 if (PyErr_Occurred()) SWIG_fail;
12125 }
093d3ff1
RD
12126 {
12127 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12128 }
d14a1e28
RD
12129 return resultobj;
12130 fail:
12131 return NULL;
12132}
12133
12134
093d3ff1 12135static PyObject *_wrap_EncodingConverter_Convert(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 12136 PyObject *resultobj;
093d3ff1
RD
12137 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
12138 wxString *arg2 = 0 ;
12139 wxString result;
12140 bool temp2 = false ;
d14a1e28 12141 PyObject * obj0 = 0 ;
994141e6 12142 PyObject * obj1 = 0 ;
d14a1e28 12143 char *kwnames[] = {
093d3ff1 12144 (char *) "self",(char *) "input", NULL
d14a1e28
RD
12145 };
12146
093d3ff1
RD
12147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
12148 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_EXCEPTION | 0);
12149 if (SWIG_arg_fail(1)) SWIG_fail;
12150 {
12151 arg2 = wxString_in_helper(obj1);
12152 if (arg2 == NULL) SWIG_fail;
12153 temp2 = true;
12154 }
994141e6
RD
12155 {
12156 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12157 result = (arg1)->Convert((wxString const &)*arg2);
994141e6
RD
12158
12159 wxPyEndAllowThreads(__tstate);
12160 if (PyErr_Occurred()) SWIG_fail;
12161 }
093d3ff1
RD
12162 {
12163#if wxUSE_UNICODE
12164 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12165#else
12166 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12167#endif
12168 }
12169 {
12170 if (temp2)
12171 delete arg2;
12172 }
994141e6
RD
12173 return resultobj;
12174 fail:
093d3ff1
RD
12175 {
12176 if (temp2)
12177 delete arg2;
12178 }
994141e6
RD
12179 return NULL;
12180}
12181
12182
093d3ff1 12183static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 12184 PyObject *resultobj;
093d3ff1
RD
12185 wxFontEncoding arg1 ;
12186 int arg2 = (int) wxPLATFORM_CURRENT ;
12187 wxFontEncodingArray result;
d14a1e28
RD
12188 PyObject * obj0 = 0 ;
12189 PyObject * obj1 = 0 ;
12190 char *kwnames[] = {
093d3ff1 12191 (char *) "enc",(char *) "platform", NULL
d14a1e28
RD
12192 };
12193
093d3ff1 12194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 12195 {
093d3ff1
RD
12196 arg1 = (wxFontEncoding)(SWIG_As_int(obj0));
12197 if (SWIG_arg_fail(1)) SWIG_fail;
12198 }
12199 if (obj1) {
12200 {
12201 arg2 = (int)(SWIG_As_int(obj1));
12202 if (SWIG_arg_fail(2)) SWIG_fail;
12203 }
d14a1e28
RD
12204 }
12205 {
12206 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12207 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
d14a1e28
RD
12208
12209 wxPyEndAllowThreads(__tstate);
12210 if (PyErr_Occurred()) SWIG_fail;
12211 }
093d3ff1
RD
12212 {
12213 resultobj = PyList_New(0);
12214 for (size_t i=0; i < (&result)->GetCount(); i++) {
12215 PyObject* number = PyInt_FromLong((&result)->Item(i));
12216 PyList_Append(resultobj, number);
12217 Py_DECREF(number);
12218 }
12219 }
d14a1e28
RD
12220 return resultobj;
12221 fail:
12222 return NULL;
12223}
12224
12225
093d3ff1 12226static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 12227 PyObject *resultobj;
093d3ff1
RD
12228 wxFontEncoding arg1 ;
12229 wxFontEncodingArray result;
d14a1e28
RD
12230 PyObject * obj0 = 0 ;
12231 char *kwnames[] = {
093d3ff1 12232 (char *) "enc", NULL
d14a1e28
RD
12233 };
12234
093d3ff1
RD
12235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
12236 {
12237 arg1 = (wxFontEncoding)(SWIG_As_int(obj0));
12238 if (SWIG_arg_fail(1)) SWIG_fail;
12239 }
d14a1e28
RD
12240 {
12241 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12242 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
d14a1e28
RD
12243
12244 wxPyEndAllowThreads(__tstate);
12245 if (PyErr_Occurred()) SWIG_fail;
12246 }
093d3ff1
RD
12247 {
12248 resultobj = PyList_New(0);
12249 for (size_t i=0; i < (&result)->GetCount(); i++) {
12250 PyObject* number = PyInt_FromLong((&result)->Item(i));
12251 PyList_Append(resultobj, number);
12252 Py_DECREF(number);
12253 }
12254 }
d14a1e28
RD
12255 return resultobj;
12256 fail:
12257 return NULL;
12258}
12259
12260
093d3ff1 12261static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 12262 PyObject *resultobj;
093d3ff1
RD
12263 wxFontEncoding arg1 ;
12264 wxFontEncoding arg2 ;
12265 bool result;
d14a1e28
RD
12266 PyObject * obj0 = 0 ;
12267 PyObject * obj1 = 0 ;
d14a1e28 12268 char *kwnames[] = {
093d3ff1 12269 (char *) "encIn",(char *) "encOut", NULL
d14a1e28
RD
12270 };
12271
093d3ff1 12272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 12273 {
093d3ff1
RD
12274 arg1 = (wxFontEncoding)(SWIG_As_int(obj0));
12275 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
12276 }
12277 {
093d3ff1
RD
12278 arg2 = (wxFontEncoding)(SWIG_As_int(obj1));
12279 if (SWIG_arg_fail(2)) SWIG_fail;
d14a1e28
RD
12280 }
12281 {
12282 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12283 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
d14a1e28
RD
12284
12285 wxPyEndAllowThreads(__tstate);
12286 if (PyErr_Occurred()) SWIG_fail;
12287 }
093d3ff1
RD
12288 {
12289 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12290 }
d14a1e28
RD
12291 return resultobj;
12292 fail:
12293 return NULL;
12294}
12295
12296
093d3ff1
RD
12297static PyObject * EncodingConverter_swigregister(PyObject *, PyObject *args) {
12298 PyObject *obj;
12299 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12300 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
12301 Py_INCREF(obj);
12302 return Py_BuildValue((char *)"");
12303}
12304static PyObject *_wrap_delete_DC(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
12305 PyObject *resultobj;
12306 wxDC *arg1 = (wxDC *) 0 ;
d14a1e28
RD
12307 PyObject * obj0 = 0 ;
12308 char *kwnames[] = {
093d3ff1 12309 (char *) "self", NULL
d14a1e28
RD
12310 };
12311
093d3ff1
RD
12312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
12313 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
12314 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
12315 {
12316 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12317 delete arg1;
d14a1e28
RD
12318
12319 wxPyEndAllowThreads(__tstate);
12320 if (PyErr_Occurred()) SWIG_fail;
12321 }
12322 Py_INCREF(Py_None); resultobj = Py_None;
12323 return resultobj;
12324 fail:
12325 return NULL;
12326}
12327
12328
093d3ff1 12329static PyObject *_wrap_DC_BeginDrawing(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
12330 PyObject *resultobj;
12331 wxDC *arg1 = (wxDC *) 0 ;
d14a1e28 12332 PyObject * obj0 = 0 ;
d14a1e28 12333 char *kwnames[] = {
093d3ff1 12334 (char *) "self", NULL
d14a1e28
RD
12335 };
12336
093d3ff1
RD
12337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
12338 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
12339 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
12340 {
12341 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12342 (arg1)->BeginDrawing();
d14a1e28
RD
12343
12344 wxPyEndAllowThreads(__tstate);
12345 if (PyErr_Occurred()) SWIG_fail;
12346 }
12347 Py_INCREF(Py_None); resultobj = Py_None;
12348 return resultobj;
12349 fail:
12350 return NULL;
12351}
12352
12353
093d3ff1 12354static PyObject *_wrap_DC_EndDrawing(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
12355 PyObject *resultobj;
12356 wxDC *arg1 = (wxDC *) 0 ;
d14a1e28
RD
12357 PyObject * obj0 = 0 ;
12358 char *kwnames[] = {
093d3ff1 12359 (char *) "self", NULL
d14a1e28
RD
12360 };
12361
093d3ff1
RD
12362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
12363 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
12364 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
12365 {
12366 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12367 (arg1)->EndDrawing();
d14a1e28
RD
12368
12369 wxPyEndAllowThreads(__tstate);
12370 if (PyErr_Occurred()) SWIG_fail;
12371 }
12372 Py_INCREF(Py_None); resultobj = Py_None;
12373 return resultobj;
12374 fail:
12375 return NULL;
12376}
12377
12378
093d3ff1 12379static PyObject *_wrap_DC_FloodFill(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
12380 PyObject *resultobj;
12381 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
12382 int arg2 ;
12383 int arg3 ;
12384 wxColour *arg4 = 0 ;
12385 int arg5 = (int) wxFLOOD_SURFACE ;
12386 bool result;
12387 wxColour temp4 ;
d14a1e28
RD
12388 PyObject * obj0 = 0 ;
12389 PyObject * obj1 = 0 ;
093d3ff1
RD
12390 PyObject * obj2 = 0 ;
12391 PyObject * obj3 = 0 ;
12392 PyObject * obj4 = 0 ;
d14a1e28 12393 char *kwnames[] = {
093d3ff1 12394 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
d14a1e28
RD
12395 };
12396
093d3ff1
RD
12397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12398 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
12399 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28 12400 {
093d3ff1
RD
12401 arg2 = (int)(SWIG_As_int(obj1));
12402 if (SWIG_arg_fail(2)) SWIG_fail;
12403 }
12404 {
12405 arg3 = (int)(SWIG_As_int(obj2));
12406 if (SWIG_arg_fail(3)) SWIG_fail;
12407 }
12408 {
12409 arg4 = &temp4;
12410 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
12411 }
12412 if (obj4) {
12413 {
12414 arg5 = (int)(SWIG_As_int(obj4));
12415 if (SWIG_arg_fail(5)) SWIG_fail;
12416 }
d14a1e28
RD
12417 }
12418 {
12419 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12420 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
d14a1e28
RD
12421
12422 wxPyEndAllowThreads(__tstate);
12423 if (PyErr_Occurred()) SWIG_fail;
12424 }
093d3ff1
RD
12425 {
12426 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12427 }
d14a1e28
RD
12428 return resultobj;
12429 fail:
12430 return NULL;
12431}
12432
12433
093d3ff1 12434static PyObject *_wrap_DC_FloodFillPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
12435 PyObject *resultobj;
12436 wxDC *arg1 = (wxDC *) 0 ;
03e37cd5 12437 wxPoint *arg2 = 0 ;
093d3ff1
RD
12438 wxColour *arg3 = 0 ;
12439 int arg4 = (int) wxFLOOD_SURFACE ;
12440 bool result;
03e37cd5 12441 wxPoint temp2 ;
093d3ff1 12442 wxColour temp3 ;
d14a1e28
RD
12443 PyObject * obj0 = 0 ;
12444 PyObject * obj1 = 0 ;
03e37cd5 12445 PyObject * obj2 = 0 ;
093d3ff1 12446 PyObject * obj3 = 0 ;
d14a1e28 12447 char *kwnames[] = {
093d3ff1 12448 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
d14a1e28
RD
12449 };
12450
093d3ff1
RD
12451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12452 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
12453 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
12454 {
12455 arg2 = &temp2;
03e37cd5
RD
12456 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12457 }
12458 {
12459 arg3 = &temp3;
093d3ff1
RD
12460 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
12461 }
12462 if (obj3) {
12463 {
12464 arg4 = (int)(SWIG_As_int(obj3));
12465 if (SWIG_arg_fail(4)) SWIG_fail;
12466 }
d14a1e28
RD
12467 }
12468 {
12469 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12470 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
d14a1e28
RD
12471
12472 wxPyEndAllowThreads(__tstate);
12473 if (PyErr_Occurred()) SWIG_fail;
12474 }
093d3ff1
RD
12475 {
12476 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12477 }
d14a1e28
RD
12478 return resultobj;
12479 fail:
12480 return NULL;
12481}
12482
12483
093d3ff1 12484static PyObject *_wrap_DC_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
12485 PyObject *resultobj;
12486 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
12487 int arg2 ;
12488 int arg3 ;
093d3ff1 12489 wxColour result;
d14a1e28 12490 PyObject * obj0 = 0 ;
994141e6
RD
12491 PyObject * obj1 = 0 ;
12492 PyObject * obj2 = 0 ;
d14a1e28 12493 char *kwnames[] = {
093d3ff1 12494 (char *) "self",(char *) "x",(char *) "y", NULL
d14a1e28
RD
12495 };
12496
093d3ff1
RD
12497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) goto fail;
12498 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
12499 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28 12500 {
093d3ff1
RD
12501 arg2 = (int)(SWIG_As_int(obj1));
12502 if (SWIG_arg_fail(2)) SWIG_fail;
d14a1e28 12503 }
d14a1e28 12504 {
093d3ff1
RD
12505 arg3 = (int)(SWIG_As_int(obj2));
12506 if (SWIG_arg_fail(3)) SWIG_fail;
d14a1e28
RD
12507 }
12508 {
12509 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12510 result = wxDC_GetPixel(arg1,arg2,arg3);
d14a1e28
RD
12511
12512 wxPyEndAllowThreads(__tstate);
12513 if (PyErr_Occurred()) SWIG_fail;
12514 }
093d3ff1
RD
12515 {
12516 wxColour * resultptr;
12517 resultptr = new wxColour((wxColour &)(result));
12518 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
12519 }
d14a1e28
RD
12520 return resultobj;
12521 fail:
12522 return NULL;
12523}
12524
12525
093d3ff1 12526static PyObject *_wrap_DC_GetPixelPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
12527 PyObject *resultobj;
12528 wxDC *arg1 = (wxDC *) 0 ;
03e37cd5 12529 wxPoint *arg2 = 0 ;
093d3ff1 12530 wxColour result;
03e37cd5 12531 wxPoint temp2 ;
d14a1e28
RD
12532 PyObject * obj0 = 0 ;
12533 PyObject * obj1 = 0 ;
12534 char *kwnames[] = {
093d3ff1 12535 (char *) "self",(char *) "pt", NULL
d14a1e28
RD
12536 };
12537
093d3ff1
RD
12538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) goto fail;
12539 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
12540 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
12541 {
12542 arg2 = &temp2;
03e37cd5 12543 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
d14a1e28
RD
12544 }
12545 {
12546 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12547 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
d14a1e28
RD
12548
12549 wxPyEndAllowThreads(__tstate);
12550 if (PyErr_Occurred()) SWIG_fail;
12551 }
093d3ff1
RD
12552 {
12553 wxColour * resultptr;
12554 resultptr = new wxColour((wxColour &)(result));
12555 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
12556 }
d14a1e28
RD
12557 return resultobj;
12558 fail:
12559 return NULL;
12560}
12561
12562
093d3ff1 12563static PyObject *_wrap_DC_DrawLine(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
12564 PyObject *resultobj;
12565 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
12566 int arg2 ;
12567 int arg3 ;
12568 int arg4 ;
093d3ff1 12569 int arg5 ;
d14a1e28 12570 PyObject * obj0 = 0 ;
994141e6
RD
12571 PyObject * obj1 = 0 ;
12572 PyObject * obj2 = 0 ;
12573 PyObject * obj3 = 0 ;
093d3ff1 12574 PyObject * obj4 = 0 ;
d14a1e28 12575 char *kwnames[] = {
093d3ff1 12576 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
d14a1e28
RD
12577 };
12578
093d3ff1
RD
12579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12580 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
12581 if (SWIG_arg_fail(1)) SWIG_fail;
12582 {
12583 arg2 = (int)(SWIG_As_int(obj1));
12584 if (SWIG_arg_fail(2)) SWIG_fail;
12585 }
12586 {
12587 arg3 = (int)(SWIG_As_int(obj2));
12588 if (SWIG_arg_fail(3)) SWIG_fail;
12589 }
12590 {
12591 arg4 = (int)(SWIG_As_int(obj3));
12592 if (SWIG_arg_fail(4)) SWIG_fail;
12593 }
12594 {
12595 arg5 = (int)(SWIG_As_int(obj4));
12596 if (SWIG_arg_fail(5)) SWIG_fail;
12597 }
d14a1e28
RD
12598 {
12599 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12600 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
d14a1e28
RD
12601
12602 wxPyEndAllowThreads(__tstate);
12603 if (PyErr_Occurred()) SWIG_fail;
12604 }
12605 Py_INCREF(Py_None); resultobj = Py_None;
12606 return resultobj;
12607 fail:
12608 return NULL;
12609}
12610
12611
093d3ff1 12612static PyObject *_wrap_DC_DrawLinePoint(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
12613 PyObject *resultobj;
12614 wxDC *arg1 = (wxDC *) 0 ;
12615 wxPoint *arg2 = 0 ;
093d3ff1 12616 wxPoint *arg3 = 0 ;
d14a1e28 12617 wxPoint temp2 ;
093d3ff1 12618 wxPoint temp3 ;
d14a1e28
RD
12619 PyObject * obj0 = 0 ;
12620 PyObject * obj1 = 0 ;
994141e6 12621 PyObject * obj2 = 0 ;
d14a1e28 12622 char *kwnames[] = {
093d3ff1 12623 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
d14a1e28
RD
12624 };
12625
093d3ff1
RD
12626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
12627 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
12628 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
12629 {
12630 arg2 = &temp2;
12631 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12632 }
093d3ff1
RD
12633 {
12634 arg3 = &temp3;
12635 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12636 }
d14a1e28
RD
12637 {
12638 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12639 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
d14a1e28
RD
12640
12641 wxPyEndAllowThreads(__tstate);
12642 if (PyErr_Occurred()) SWIG_fail;
12643 }
12644 Py_INCREF(Py_None); resultobj = Py_None;
12645 return resultobj;
12646 fail:
12647 return NULL;
12648}
12649
12650
093d3ff1 12651static PyObject *_wrap_DC_CrossHair(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
12652 PyObject *resultobj;
12653 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
12654 int arg2 ;
12655 int arg3 ;
d14a1e28 12656 PyObject * obj0 = 0 ;
994141e6
RD
12657 PyObject * obj1 = 0 ;
12658 PyObject * obj2 = 0 ;
d14a1e28 12659 char *kwnames[] = {
093d3ff1 12660 (char *) "self",(char *) "x",(char *) "y", NULL
d14a1e28
RD
12661 };
12662
093d3ff1
RD
12663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) goto fail;
12664 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
12665 if (SWIG_arg_fail(1)) SWIG_fail;
12666 {
12667 arg2 = (int)(SWIG_As_int(obj1));
12668 if (SWIG_arg_fail(2)) SWIG_fail;
12669 }
12670 {
12671 arg3 = (int)(SWIG_As_int(obj2));
12672 if (SWIG_arg_fail(3)) SWIG_fail;
12673 }
d14a1e28
RD
12674 {
12675 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12676 (arg1)->CrossHair(arg2,arg3);
d14a1e28
RD
12677
12678 wxPyEndAllowThreads(__tstate);
12679 if (PyErr_Occurred()) SWIG_fail;
12680 }
12681 Py_INCREF(Py_None); resultobj = Py_None;
12682 return resultobj;
12683 fail:
12684 return NULL;
12685}
12686
12687
093d3ff1 12688static PyObject *_wrap_DC_CrossHairPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
12689 PyObject *resultobj;
12690 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
12691 wxPoint *arg2 = 0 ;
12692 wxPoint temp2 ;
d14a1e28
RD
12693 PyObject * obj0 = 0 ;
12694 PyObject * obj1 = 0 ;
d14a1e28 12695 char *kwnames[] = {
093d3ff1 12696 (char *) "self",(char *) "pt", NULL
d14a1e28
RD
12697 };
12698
093d3ff1
RD
12699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) goto fail;
12700 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
12701 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
12702 {
12703 arg2 = &temp2;
093d3ff1 12704 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
d14a1e28
RD
12705 }
12706 {
12707 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12708 (arg1)->CrossHair((wxPoint const &)*arg2);
d14a1e28
RD
12709
12710 wxPyEndAllowThreads(__tstate);
12711 if (PyErr_Occurred()) SWIG_fail;
12712 }
12713 Py_INCREF(Py_None); resultobj = Py_None;
12714 return resultobj;
12715 fail:
12716 return NULL;
12717}
12718
12719
093d3ff1 12720static PyObject *_wrap_DC_DrawArc(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
12721 PyObject *resultobj;
12722 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
12723 int arg2 ;
12724 int arg3 ;
12725 int arg4 ;
12726 int arg5 ;
12727 int arg6 ;
12728 int arg7 ;
d14a1e28
RD
12729 PyObject * obj0 = 0 ;
12730 PyObject * obj1 = 0 ;
03e37cd5 12731 PyObject * obj2 = 0 ;
093d3ff1
RD
12732 PyObject * obj3 = 0 ;
12733 PyObject * obj4 = 0 ;
12734 PyObject * obj5 = 0 ;
12735 PyObject * obj6 = 0 ;
d14a1e28 12736 char *kwnames[] = {
093d3ff1 12737 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
d14a1e28
RD
12738 };
12739
093d3ff1
RD
12740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
12741 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
12742 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28 12743 {
093d3ff1
RD
12744 arg2 = (int)(SWIG_As_int(obj1));
12745 if (SWIG_arg_fail(2)) SWIG_fail;
03e37cd5
RD
12746 }
12747 {
093d3ff1
RD
12748 arg3 = (int)(SWIG_As_int(obj2));
12749 if (SWIG_arg_fail(3)) SWIG_fail;
12750 }
12751 {
12752 arg4 = (int)(SWIG_As_int(obj3));
12753 if (SWIG_arg_fail(4)) SWIG_fail;
12754 }
12755 {
12756 arg5 = (int)(SWIG_As_int(obj4));
12757 if (SWIG_arg_fail(5)) SWIG_fail;
12758 }
12759 {
12760 arg6 = (int)(SWIG_As_int(obj5));
12761 if (SWIG_arg_fail(6)) SWIG_fail;
12762 }
12763 {
12764 arg7 = (int)(SWIG_As_int(obj6));
12765 if (SWIG_arg_fail(7)) SWIG_fail;
d14a1e28
RD
12766 }
12767 {
12768 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12769 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
d14a1e28
RD
12770
12771 wxPyEndAllowThreads(__tstate);
12772 if (PyErr_Occurred()) SWIG_fail;
12773 }
12774 Py_INCREF(Py_None); resultobj = Py_None;
12775 return resultobj;
12776 fail:
12777 return NULL;
12778}
12779
12780
093d3ff1 12781static PyObject *_wrap_DC_DrawArcPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
12782 PyObject *resultobj;
12783 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
12784 wxPoint *arg2 = 0 ;
12785 wxPoint *arg3 = 0 ;
12786 wxPoint *arg4 = 0 ;
12787 wxPoint temp2 ;
12788 wxPoint temp3 ;
12789 wxPoint temp4 ;
d14a1e28
RD
12790 PyObject * obj0 = 0 ;
12791 PyObject * obj1 = 0 ;
994141e6
RD
12792 PyObject * obj2 = 0 ;
12793 PyObject * obj3 = 0 ;
d14a1e28 12794 char *kwnames[] = {
093d3ff1 12795 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
d14a1e28
RD
12796 };
12797
093d3ff1
RD
12798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12799 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
12800 if (SWIG_arg_fail(1)) SWIG_fail;
12801 {
12802 arg2 = &temp2;
12803 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12804 }
12805 {
12806 arg3 = &temp3;
12807 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12808 }
12809 {
12810 arg4 = &temp4;
12811 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
994141e6 12812 }
d14a1e28
RD
12813 {
12814 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12815 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
d14a1e28
RD
12816
12817 wxPyEndAllowThreads(__tstate);
12818 if (PyErr_Occurred()) SWIG_fail;
12819 }
12820 Py_INCREF(Py_None); resultobj = Py_None;
12821 return resultobj;
12822 fail:
12823 return NULL;
12824}
12825
12826
093d3ff1 12827static PyObject *_wrap_DC_DrawCheckMark(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
12828 PyObject *resultobj;
12829 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
12830 int arg2 ;
12831 int arg3 ;
12832 int arg4 ;
12833 int arg5 ;
d14a1e28
RD
12834 PyObject * obj0 = 0 ;
12835 PyObject * obj1 = 0 ;
12836 PyObject * obj2 = 0 ;
093d3ff1
RD
12837 PyObject * obj3 = 0 ;
12838 PyObject * obj4 = 0 ;
d14a1e28 12839 char *kwnames[] = {
093d3ff1 12840 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
d14a1e28
RD
12841 };
12842
093d3ff1
RD
12843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12844 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
12845 if (SWIG_arg_fail(1)) SWIG_fail;
12846 {
12847 arg2 = (int)(SWIG_As_int(obj1));
12848 if (SWIG_arg_fail(2)) SWIG_fail;
d14a1e28
RD
12849 }
12850 {
093d3ff1
RD
12851 arg3 = (int)(SWIG_As_int(obj2));
12852 if (SWIG_arg_fail(3)) SWIG_fail;
12853 }
12854 {
12855 arg4 = (int)(SWIG_As_int(obj3));
12856 if (SWIG_arg_fail(4)) SWIG_fail;
12857 }
12858 {
12859 arg5 = (int)(SWIG_As_int(obj4));
12860 if (SWIG_arg_fail(5)) SWIG_fail;
d14a1e28
RD
12861 }
12862 {
12863 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12864 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
d14a1e28
RD
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
093d3ff1 12876static PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
12877 PyObject *resultobj;
12878 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
12879 wxRect *arg2 = 0 ;
12880 wxRect temp2 ;
d14a1e28
RD
12881 PyObject * obj0 = 0 ;
12882 PyObject * obj1 = 0 ;
d14a1e28 12883 char *kwnames[] = {
093d3ff1 12884 (char *) "self",(char *) "rect", NULL
d14a1e28
RD
12885 };
12886
093d3ff1
RD
12887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) goto fail;
12888 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
12889 if (SWIG_arg_fail(1)) SWIG_fail;
12890 {
12891 arg2 = &temp2;
12892 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
d14a1e28
RD
12893 }
12894 {
12895 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12896 (arg1)->DrawCheckMark((wxRect const &)*arg2);
d14a1e28
RD
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
093d3ff1 12908static PyObject *_wrap_DC_DrawEllipticArc(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
12909 PyObject *resultobj;
12910 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
12911 int arg2 ;
12912 int arg3 ;
12913 int arg4 ;
12914 int arg5 ;
12915 double arg6 ;
12916 double arg7 ;
d14a1e28
RD
12917 PyObject * obj0 = 0 ;
12918 PyObject * obj1 = 0 ;
12919 PyObject * obj2 = 0 ;
12920 PyObject * obj3 = 0 ;
093d3ff1
RD
12921 PyObject * obj4 = 0 ;
12922 PyObject * obj5 = 0 ;
12923 PyObject * obj6 = 0 ;
d14a1e28 12924 char *kwnames[] = {
093d3ff1 12925 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
d14a1e28
RD
12926 };
12927
093d3ff1
RD
12928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
12929 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
12930 if (SWIG_arg_fail(1)) SWIG_fail;
12931 {
12932 arg2 = (int)(SWIG_As_int(obj1));
12933 if (SWIG_arg_fail(2)) SWIG_fail;
d14a1e28
RD
12934 }
12935 {
093d3ff1
RD
12936 arg3 = (int)(SWIG_As_int(obj2));
12937 if (SWIG_arg_fail(3)) SWIG_fail;
d14a1e28 12938 }
093d3ff1
RD
12939 {
12940 arg4 = (int)(SWIG_As_int(obj3));
12941 if (SWIG_arg_fail(4)) SWIG_fail;
12942 }
12943 {
12944 arg5 = (int)(SWIG_As_int(obj4));
12945 if (SWIG_arg_fail(5)) SWIG_fail;
12946 }
12947 {
12948 arg6 = (double)(SWIG_As_double(obj5));
12949 if (SWIG_arg_fail(6)) SWIG_fail;
12950 }
12951 {
12952 arg7 = (double)(SWIG_As_double(obj6));
12953 if (SWIG_arg_fail(7)) SWIG_fail;
d14a1e28
RD
12954 }
12955 {
12956 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12957 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
d14a1e28
RD
12958
12959 wxPyEndAllowThreads(__tstate);
12960 if (PyErr_Occurred()) SWIG_fail;
12961 }
12962 Py_INCREF(Py_None); resultobj = Py_None;
12963 return resultobj;
12964 fail:
12965 return NULL;
12966}
12967
12968
093d3ff1 12969static PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
12970 PyObject *resultobj;
12971 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
12972 wxPoint *arg2 = 0 ;
12973 wxSize *arg3 = 0 ;
12974 double arg4 ;
12975 double arg5 ;
12976 wxPoint temp2 ;
12977 wxSize temp3 ;
d14a1e28
RD
12978 PyObject * obj0 = 0 ;
12979 PyObject * obj1 = 0 ;
994141e6
RD
12980 PyObject * obj2 = 0 ;
12981 PyObject * obj3 = 0 ;
093d3ff1 12982 PyObject * obj4 = 0 ;
d14a1e28 12983 char *kwnames[] = {
093d3ff1 12984 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
d14a1e28
RD
12985 };
12986
093d3ff1
RD
12987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12988 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
12989 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28 12990 {
093d3ff1
RD
12991 arg2 = &temp2;
12992 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12993 }
12994 {
12995 arg3 = &temp3;
12996 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12997 }
12998 {
12999 arg4 = (double)(SWIG_As_double(obj3));
13000 if (SWIG_arg_fail(4)) SWIG_fail;
13001 }
13002 {
13003 arg5 = (double)(SWIG_As_double(obj4));
13004 if (SWIG_arg_fail(5)) SWIG_fail;
d14a1e28
RD
13005 }
13006 {
13007 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 13008 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
d14a1e28
RD
13009
13010 wxPyEndAllowThreads(__tstate);
13011 if (PyErr_Occurred()) SWIG_fail;
13012 }
13013 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
13014 return resultobj;
13015 fail:
d14a1e28
RD
13016 return NULL;
13017}
13018
13019
093d3ff1 13020static PyObject *_wrap_DC_DrawPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
13021 PyObject *resultobj;
13022 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
13023 int arg2 ;
13024 int arg3 ;
d14a1e28
RD
13025 PyObject * obj0 = 0 ;
13026 PyObject * obj1 = 0 ;
13027 PyObject * obj2 = 0 ;
13028 char *kwnames[] = {
093d3ff1 13029 (char *) "self",(char *) "x",(char *) "y", NULL
d14a1e28
RD
13030 };
13031
093d3ff1
RD
13032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
13033 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13034 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28 13035 {
093d3ff1
RD
13036 arg2 = (int)(SWIG_As_int(obj1));
13037 if (SWIG_arg_fail(2)) SWIG_fail;
d14a1e28
RD
13038 }
13039 {
093d3ff1
RD
13040 arg3 = (int)(SWIG_As_int(obj2));
13041 if (SWIG_arg_fail(3)) SWIG_fail;
d14a1e28
RD
13042 }
13043 {
13044 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 13045 (arg1)->DrawPoint(arg2,arg3);
d14a1e28
RD
13046
13047 wxPyEndAllowThreads(__tstate);
13048 if (PyErr_Occurred()) SWIG_fail;
13049 }
13050 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
13051 return resultobj;
13052 fail:
d14a1e28
RD
13053 return NULL;
13054}
13055
13056
093d3ff1 13057static PyObject *_wrap_DC_DrawPointPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
13058 PyObject *resultobj;
13059 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
13060 wxPoint *arg2 = 0 ;
13061 wxPoint temp2 ;
d14a1e28
RD
13062 PyObject * obj0 = 0 ;
13063 PyObject * obj1 = 0 ;
13064 char *kwnames[] = {
093d3ff1 13065 (char *) "self",(char *) "pt", NULL
d14a1e28
RD
13066 };
13067
093d3ff1
RD
13068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) goto fail;
13069 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13070 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28 13071 {
093d3ff1
RD
13072 arg2 = &temp2;
13073 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
d14a1e28
RD
13074 }
13075 {
13076 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 13077 (arg1)->DrawPoint((wxPoint const &)*arg2);
d14a1e28
RD
13078
13079 wxPyEndAllowThreads(__tstate);
13080 if (PyErr_Occurred()) SWIG_fail;
13081 }
13082 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
13083 return resultobj;
13084 fail:
d14a1e28
RD
13085 return NULL;
13086}
13087
13088
093d3ff1 13089static PyObject *_wrap_DC_DrawRectangle(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
13090 PyObject *resultobj;
13091 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
13092 int arg2 ;
13093 int arg3 ;
13094 int arg4 ;
13095 int arg5 ;
d14a1e28
RD
13096 PyObject * obj0 = 0 ;
13097 PyObject * obj1 = 0 ;
13098 PyObject * obj2 = 0 ;
994141e6 13099 PyObject * obj3 = 0 ;
093d3ff1 13100 PyObject * obj4 = 0 ;
d14a1e28 13101 char *kwnames[] = {
093d3ff1 13102 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
d14a1e28
RD
13103 };
13104
093d3ff1
RD
13105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
13106 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13107 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28 13108 {
093d3ff1
RD
13109 arg2 = (int)(SWIG_As_int(obj1));
13110 if (SWIG_arg_fail(2)) SWIG_fail;
d14a1e28
RD
13111 }
13112 {
093d3ff1
RD
13113 arg3 = (int)(SWIG_As_int(obj2));
13114 if (SWIG_arg_fail(3)) SWIG_fail;
13115 }
13116 {
13117 arg4 = (int)(SWIG_As_int(obj3));
13118 if (SWIG_arg_fail(4)) SWIG_fail;
13119 }
13120 {
13121 arg5 = (int)(SWIG_As_int(obj4));
13122 if (SWIG_arg_fail(5)) SWIG_fail;
d14a1e28
RD
13123 }
13124 {
13125 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 13126 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
d14a1e28
RD
13127
13128 wxPyEndAllowThreads(__tstate);
13129 if (PyErr_Occurred()) SWIG_fail;
13130 }
13131 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
13132 return resultobj;
13133 fail:
d14a1e28
RD
13134 return NULL;
13135}
13136
13137
093d3ff1 13138static PyObject *_wrap_DC_DrawRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
13139 PyObject *resultobj;
13140 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
13141 wxRect *arg2 = 0 ;
13142 wxRect temp2 ;
d14a1e28 13143 PyObject * obj0 = 0 ;
994141e6 13144 PyObject * obj1 = 0 ;
d14a1e28 13145 char *kwnames[] = {
093d3ff1 13146 (char *) "self",(char *) "rect", NULL
d14a1e28
RD
13147 };
13148
093d3ff1
RD
13149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
13150 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13151 if (SWIG_arg_fail(1)) SWIG_fail;
13152 {
13153 arg2 = &temp2;
13154 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
d14a1e28
RD
13155 }
13156 {
13157 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 13158 (arg1)->DrawRectangle((wxRect const &)*arg2);
d14a1e28
RD
13159
13160 wxPyEndAllowThreads(__tstate);
13161 if (PyErr_Occurred()) SWIG_fail;
13162 }
093d3ff1 13163 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
13164 return resultobj;
13165 fail:
13166 return NULL;
13167}
13168
13169
093d3ff1 13170static PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
13171 PyObject *resultobj;
13172 wxDC *arg1 = (wxDC *) 0 ;
13173 wxPoint *arg2 = 0 ;
13174 wxSize *arg3 = 0 ;
d14a1e28
RD
13175 wxPoint temp2 ;
13176 wxSize temp3 ;
d14a1e28
RD
13177 PyObject * obj0 = 0 ;
13178 PyObject * obj1 = 0 ;
13179 PyObject * obj2 = 0 ;
d14a1e28 13180 char *kwnames[] = {
093d3ff1 13181 (char *) "self",(char *) "pt",(char *) "sz", NULL
d14a1e28
RD
13182 };
13183
093d3ff1
RD
13184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
13185 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13186 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
13187 {
13188 arg2 = &temp2;
13189 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13190 }
13191 {
13192 arg3 = &temp3;
13193 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
13194 }
d14a1e28
RD
13195 {
13196 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 13197 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
d14a1e28
RD
13198
13199 wxPyEndAllowThreads(__tstate);
13200 if (PyErr_Occurred()) SWIG_fail;
13201 }
093d3ff1 13202 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
13203 return resultobj;
13204 fail:
13205 return NULL;
13206}
13207
13208
093d3ff1 13209static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
13210 PyObject *resultobj;
13211 wxDC *arg1 = (wxDC *) 0 ;
13212 int arg2 ;
03e37cd5
RD
13213 int arg3 ;
13214 int arg4 ;
13215 int arg5 ;
093d3ff1 13216 double arg6 ;
d14a1e28
RD
13217 PyObject * obj0 = 0 ;
13218 PyObject * obj1 = 0 ;
994141e6
RD
13219 PyObject * obj2 = 0 ;
13220 PyObject * obj3 = 0 ;
03e37cd5 13221 PyObject * obj4 = 0 ;
093d3ff1 13222 PyObject * obj5 = 0 ;
d14a1e28 13223 char *kwnames[] = {
093d3ff1 13224 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
d14a1e28
RD
13225 };
13226
093d3ff1
RD
13227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
13228 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13229 if (SWIG_arg_fail(1)) SWIG_fail;
13230 {
13231 arg2 = (int)(SWIG_As_int(obj1));
13232 if (SWIG_arg_fail(2)) SWIG_fail;
13233 }
13234 {
13235 arg3 = (int)(SWIG_As_int(obj2));
13236 if (SWIG_arg_fail(3)) SWIG_fail;
13237 }
13238 {
13239 arg4 = (int)(SWIG_As_int(obj3));
13240 if (SWIG_arg_fail(4)) SWIG_fail;
13241 }
13242 {
13243 arg5 = (int)(SWIG_As_int(obj4));
13244 if (SWIG_arg_fail(5)) SWIG_fail;
13245 }
13246 {
13247 arg6 = (double)(SWIG_As_double(obj5));
13248 if (SWIG_arg_fail(6)) SWIG_fail;
13249 }
d14a1e28
RD
13250 {
13251 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 13252 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
d14a1e28
RD
13253
13254 wxPyEndAllowThreads(__tstate);
13255 if (PyErr_Occurred()) SWIG_fail;
13256 }
13257 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
13258 return resultobj;
13259 fail:
d14a1e28
RD
13260 return NULL;
13261}
13262
13263
093d3ff1 13264static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
13265 PyObject *resultobj;
13266 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
13267 wxRect *arg2 = 0 ;
13268 double arg3 ;
13269 wxRect temp2 ;
d14a1e28
RD
13270 PyObject * obj0 = 0 ;
13271 PyObject * obj1 = 0 ;
994141e6 13272 PyObject * obj2 = 0 ;
d14a1e28 13273 char *kwnames[] = {
093d3ff1 13274 (char *) "self",(char *) "r",(char *) "radius", NULL
d14a1e28
RD
13275 };
13276
093d3ff1
RD
13277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
13278 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13279 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28 13280 {
03e37cd5 13281 arg2 = &temp2;
093d3ff1 13282 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
994141e6 13283 }
03e37cd5 13284 {
093d3ff1
RD
13285 arg3 = (double)(SWIG_As_double(obj2));
13286 if (SWIG_arg_fail(3)) SWIG_fail;
994141e6 13287 }
d14a1e28
RD
13288 {
13289 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 13290 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
d14a1e28
RD
13291
13292 wxPyEndAllowThreads(__tstate);
13293 if (PyErr_Occurred()) SWIG_fail;
13294 }
13295 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
13296 return resultobj;
13297 fail:
d14a1e28
RD
13298 return NULL;
13299}
13300
13301
093d3ff1 13302static PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
13303 PyObject *resultobj;
13304 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
13305 wxPoint *arg2 = 0 ;
13306 wxSize *arg3 = 0 ;
13307 double arg4 ;
13308 wxPoint temp2 ;
13309 wxSize temp3 ;
d14a1e28
RD
13310 PyObject * obj0 = 0 ;
13311 PyObject * obj1 = 0 ;
093d3ff1
RD
13312 PyObject * obj2 = 0 ;
13313 PyObject * obj3 = 0 ;
d14a1e28 13314 char *kwnames[] = {
093d3ff1 13315 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
d14a1e28
RD
13316 };
13317
093d3ff1
RD
13318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13319 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13320 if (SWIG_arg_fail(1)) SWIG_fail;
13321 {
13322 arg2 = &temp2;
13323 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13324 }
13325 {
13326 arg3 = &temp3;
13327 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
13328 }
13329 {
13330 arg4 = (double)(SWIG_As_double(obj3));
13331 if (SWIG_arg_fail(4)) SWIG_fail;
03e37cd5
RD
13332 }
13333 {
13334 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 13335 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
03e37cd5
RD
13336
13337 wxPyEndAllowThreads(__tstate);
13338 if (PyErr_Occurred()) SWIG_fail;
13339 }
13340 Py_INCREF(Py_None); resultobj = Py_None;
13341 return resultobj;
13342 fail:
13343 return NULL;
13344}
13345
13346
093d3ff1 13347static PyObject *_wrap_DC_DrawCircle(PyObject *, PyObject *args, PyObject *kwargs) {
03e37cd5
RD
13348 PyObject *resultobj;
13349 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
13350 int arg2 ;
13351 int arg3 ;
13352 int arg4 ;
03e37cd5
RD
13353 PyObject * obj0 = 0 ;
13354 PyObject * obj1 = 0 ;
093d3ff1
RD
13355 PyObject * obj2 = 0 ;
13356 PyObject * obj3 = 0 ;
03e37cd5 13357 char *kwnames[] = {
093d3ff1 13358 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
03e37cd5
RD
13359 };
13360
093d3ff1
RD
13361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13362 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13363 if (SWIG_arg_fail(1)) SWIG_fail;
03e37cd5 13364 {
093d3ff1
RD
13365 arg2 = (int)(SWIG_As_int(obj1));
13366 if (SWIG_arg_fail(2)) SWIG_fail;
13367 }
13368 {
13369 arg3 = (int)(SWIG_As_int(obj2));
13370 if (SWIG_arg_fail(3)) SWIG_fail;
13371 }
13372 {
13373 arg4 = (int)(SWIG_As_int(obj3));
13374 if (SWIG_arg_fail(4)) SWIG_fail;
03e37cd5
RD
13375 }
13376 {
13377 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 13378 (arg1)->DrawCircle(arg2,arg3,arg4);
03e37cd5
RD
13379
13380 wxPyEndAllowThreads(__tstate);
13381 if (PyErr_Occurred()) SWIG_fail;
13382 }
13383 Py_INCREF(Py_None); resultobj = Py_None;
13384 return resultobj;
13385 fail:
13386 return NULL;
13387}
13388
13389
093d3ff1 13390static PyObject *_wrap_DC_DrawCirclePoint(PyObject *, PyObject *args, PyObject *kwargs) {
03e37cd5
RD
13391 PyObject *resultobj;
13392 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
13393 wxPoint *arg2 = 0 ;
13394 int arg3 ;
13395 wxPoint temp2 ;
03e37cd5
RD
13396 PyObject * obj0 = 0 ;
13397 PyObject * obj1 = 0 ;
13398 PyObject * obj2 = 0 ;
03e37cd5 13399 char *kwnames[] = {
093d3ff1 13400 (char *) "self",(char *) "pt",(char *) "radius", NULL
03e37cd5
RD
13401 };
13402
093d3ff1
RD
13403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
13404 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13405 if (SWIG_arg_fail(1)) SWIG_fail;
03e37cd5 13406 {
093d3ff1
RD
13407 arg2 = &temp2;
13408 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
03e37cd5 13409 }
093d3ff1
RD
13410 {
13411 arg3 = (int)(SWIG_As_int(obj2));
13412 if (SWIG_arg_fail(3)) SWIG_fail;
03e37cd5
RD
13413 }
13414 {
13415 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 13416 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
03e37cd5
RD
13417
13418 wxPyEndAllowThreads(__tstate);
13419 if (PyErr_Occurred()) SWIG_fail;
13420 }
13421 Py_INCREF(Py_None); resultobj = Py_None;
03e37cd5
RD
13422 return resultobj;
13423 fail:
03e37cd5
RD
13424 return NULL;
13425}
13426
13427
093d3ff1 13428static PyObject *_wrap_DC_DrawEllipse(PyObject *, PyObject *args, PyObject *kwargs) {
03e37cd5
RD
13429 PyObject *resultobj;
13430 wxDC *arg1 = (wxDC *) 0 ;
13431 int arg2 ;
093d3ff1
RD
13432 int arg3 ;
13433 int arg4 ;
13434 int arg5 ;
03e37cd5
RD
13435 PyObject * obj0 = 0 ;
13436 PyObject * obj1 = 0 ;
13437 PyObject * obj2 = 0 ;
13438 PyObject * obj3 = 0 ;
13439 PyObject * obj4 = 0 ;
13440 char *kwnames[] = {
093d3ff1 13441 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
03e37cd5
RD
13442 };
13443
093d3ff1
RD
13444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
13445 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13446 if (SWIG_arg_fail(1)) SWIG_fail;
03e37cd5 13447 {
093d3ff1
RD
13448 arg2 = (int)(SWIG_As_int(obj1));
13449 if (SWIG_arg_fail(2)) SWIG_fail;
03e37cd5 13450 }
093d3ff1
RD
13451 {
13452 arg3 = (int)(SWIG_As_int(obj2));
13453 if (SWIG_arg_fail(3)) SWIG_fail;
03e37cd5 13454 }
093d3ff1
RD
13455 {
13456 arg4 = (int)(SWIG_As_int(obj3));
13457 if (SWIG_arg_fail(4)) SWIG_fail;
03e37cd5 13458 }
093d3ff1
RD
13459 {
13460 arg5 = (int)(SWIG_As_int(obj4));
13461 if (SWIG_arg_fail(5)) SWIG_fail;
03e37cd5
RD
13462 }
13463 {
13464 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 13465 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
03e37cd5
RD
13466
13467 wxPyEndAllowThreads(__tstate);
13468 if (PyErr_Occurred()) SWIG_fail;
13469 }
13470 Py_INCREF(Py_None); resultobj = Py_None;
03e37cd5
RD
13471 return resultobj;
13472 fail:
03e37cd5
RD
13473 return NULL;
13474}
13475
13476
093d3ff1 13477static PyObject *_wrap_DC_DrawEllipseRect(PyObject *, PyObject *args, PyObject *kwargs) {
03e37cd5
RD
13478 PyObject *resultobj;
13479 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
13480 wxRect *arg2 = 0 ;
13481 wxRect temp2 ;
03e37cd5
RD
13482 PyObject * obj0 = 0 ;
13483 PyObject * obj1 = 0 ;
03e37cd5 13484 char *kwnames[] = {
093d3ff1 13485 (char *) "self",(char *) "rect", NULL
03e37cd5
RD
13486 };
13487
093d3ff1
RD
13488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
13489 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13490 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28 13491 {
093d3ff1
RD
13492 arg2 = &temp2;
13493 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
994141e6
RD
13494 }
13495 {
13496 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 13497 (arg1)->DrawEllipse((wxRect const &)*arg2);
d14a1e28
RD
13498
13499 wxPyEndAllowThreads(__tstate);
13500 if (PyErr_Occurred()) SWIG_fail;
13501 }
13502 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
13503 return resultobj;
13504 fail:
d14a1e28
RD
13505 return NULL;
13506}
13507
13508
093d3ff1 13509static PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
13510 PyObject *resultobj;
13511 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
13512 wxPoint *arg2 = 0 ;
13513 wxSize *arg3 = 0 ;
13514 wxPoint temp2 ;
13515 wxSize temp3 ;
d14a1e28
RD
13516 PyObject * obj0 = 0 ;
13517 PyObject * obj1 = 0 ;
13518 PyObject * obj2 = 0 ;
d14a1e28 13519 char *kwnames[] = {
093d3ff1 13520 (char *) "self",(char *) "pt",(char *) "sz", NULL
d14a1e28
RD
13521 };
13522
093d3ff1
RD
13523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
13524 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13525 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28 13526 {
093d3ff1
RD
13527 arg2 = &temp2;
13528 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
d14a1e28
RD
13529 }
13530 {
093d3ff1
RD
13531 arg3 = &temp3;
13532 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
994141e6 13533 }
d14a1e28
RD
13534 {
13535 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 13536 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
d14a1e28
RD
13537
13538 wxPyEndAllowThreads(__tstate);
13539 if (PyErr_Occurred()) SWIG_fail;
13540 }
093d3ff1 13541 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
13542 return resultobj;
13543 fail:
d14a1e28
RD
13544 return NULL;
13545}
13546
13547
093d3ff1 13548static PyObject *_wrap_DC_DrawIcon(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
13549 PyObject *resultobj;
13550 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
13551 wxIcon *arg2 = 0 ;
13552 int arg3 ;
13553 int arg4 ;
d14a1e28
RD
13554 PyObject * obj0 = 0 ;
13555 PyObject * obj1 = 0 ;
093d3ff1
RD
13556 PyObject * obj2 = 0 ;
13557 PyObject * obj3 = 0 ;
d14a1e28 13558 char *kwnames[] = {
093d3ff1 13559 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
d14a1e28
RD
13560 };
13561
093d3ff1
RD
13562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13563 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13564 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28 13565 {
093d3ff1
RD
13566 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
13567 if (SWIG_arg_fail(2)) SWIG_fail;
13568 if (arg2 == NULL) {
13569 SWIG_null_ref("wxIcon");
13570 }
13571 if (SWIG_arg_fail(2)) SWIG_fail;
13572 }
13573 {
13574 arg3 = (int)(SWIG_As_int(obj2));
13575 if (SWIG_arg_fail(3)) SWIG_fail;
13576 }
13577 {
13578 arg4 = (int)(SWIG_As_int(obj3));
13579 if (SWIG_arg_fail(4)) SWIG_fail;
d14a1e28
RD
13580 }
13581 {
13582 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 13583 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
d14a1e28
RD
13584
13585 wxPyEndAllowThreads(__tstate);
13586 if (PyErr_Occurred()) SWIG_fail;
13587 }
13588 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
13589 return resultobj;
13590 fail:
d14a1e28
RD
13591 return NULL;
13592}
13593
13594
093d3ff1 13595static PyObject *_wrap_DC_DrawIconPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
13596 PyObject *resultobj;
13597 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
13598 wxIcon *arg2 = 0 ;
13599 wxPoint *arg3 = 0 ;
13600 wxPoint temp3 ;
d14a1e28 13601 PyObject * obj0 = 0 ;
093d3ff1
RD
13602 PyObject * obj1 = 0 ;
13603 PyObject * obj2 = 0 ;
d14a1e28 13604 char *kwnames[] = {
093d3ff1 13605 (char *) "self",(char *) "icon",(char *) "pt", NULL
d14a1e28
RD
13606 };
13607
093d3ff1
RD
13608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
13609 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13610 if (SWIG_arg_fail(1)) SWIG_fail;
13611 {
13612 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
13613 if (SWIG_arg_fail(2)) SWIG_fail;
13614 if (arg2 == NULL) {
13615 SWIG_null_ref("wxIcon");
13616 }
13617 if (SWIG_arg_fail(2)) SWIG_fail;
13618 }
13619 {
13620 arg3 = &temp3;
13621 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
13622 }
d14a1e28
RD
13623 {
13624 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 13625 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
d14a1e28
RD
13626
13627 wxPyEndAllowThreads(__tstate);
13628 if (PyErr_Occurred()) SWIG_fail;
13629 }
13630 Py_INCREF(Py_None); resultobj = Py_None;
13631 return resultobj;
13632 fail:
13633 return NULL;
13634}
13635
13636
093d3ff1 13637static PyObject *_wrap_DC_DrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
13638 PyObject *resultobj;
13639 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
13640 wxBitmap *arg2 = 0 ;
13641 int arg3 ;
13642 int arg4 ;
13643 bool arg5 = (bool) false ;
d14a1e28
RD
13644 PyObject * obj0 = 0 ;
13645 PyObject * obj1 = 0 ;
093d3ff1
RD
13646 PyObject * obj2 = 0 ;
13647 PyObject * obj3 = 0 ;
13648 PyObject * obj4 = 0 ;
d14a1e28 13649 char *kwnames[] = {
093d3ff1 13650 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
d14a1e28
RD
13651 };
13652
093d3ff1
RD
13653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
13654 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13655 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28 13656 {
093d3ff1
RD
13657 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
13658 if (SWIG_arg_fail(2)) SWIG_fail;
13659 if (arg2 == NULL) {
13660 SWIG_null_ref("wxBitmap");
13661 }
13662 if (SWIG_arg_fail(2)) SWIG_fail;
d14a1e28 13663 }
4f89f6a3 13664 {
093d3ff1
RD
13665 arg3 = (int)(SWIG_As_int(obj2));
13666 if (SWIG_arg_fail(3)) SWIG_fail;
4f89f6a3 13667 }
d14a1e28 13668 {
093d3ff1
RD
13669 arg4 = (int)(SWIG_As_int(obj3));
13670 if (SWIG_arg_fail(4)) SWIG_fail;
d14a1e28 13671 }
093d3ff1
RD
13672 if (obj4) {
13673 {
13674 arg5 = (bool)(SWIG_As_bool(obj4));
13675 if (SWIG_arg_fail(5)) SWIG_fail;
13676 }
d14a1e28 13677 }
d14a1e28
RD
13678 {
13679 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 13680 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
d14a1e28
RD
13681
13682 wxPyEndAllowThreads(__tstate);
13683 if (PyErr_Occurred()) SWIG_fail;
13684 }
13685 Py_INCREF(Py_None); resultobj = Py_None;
13686 return resultobj;
13687 fail:
13688 return NULL;
13689}
13690
13691
093d3ff1 13692static PyObject *_wrap_DC_DrawBitmapPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
13693 PyObject *resultobj;
13694 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
13695 wxBitmap *arg2 = 0 ;
13696 wxPoint *arg3 = 0 ;
13697 bool arg4 = (bool) false ;
13698 wxPoint temp3 ;
d14a1e28 13699 PyObject * obj0 = 0 ;
093d3ff1
RD
13700 PyObject * obj1 = 0 ;
13701 PyObject * obj2 = 0 ;
13702 PyObject * obj3 = 0 ;
d14a1e28 13703 char *kwnames[] = {
093d3ff1 13704 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
d14a1e28
RD
13705 };
13706
093d3ff1
RD
13707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13708 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13709 if (SWIG_arg_fail(1)) SWIG_fail;
13710 {
13711 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
13712 if (SWIG_arg_fail(2)) SWIG_fail;
13713 if (arg2 == NULL) {
13714 SWIG_null_ref("wxBitmap");
13715 }
13716 if (SWIG_arg_fail(2)) SWIG_fail;
13717 }
13718 {
13719 arg3 = &temp3;
13720 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
13721 }
13722 if (obj3) {
13723 {
13724 arg4 = (bool)(SWIG_As_bool(obj3));
13725 if (SWIG_arg_fail(4)) SWIG_fail;
13726 }
13727 }
d14a1e28
RD
13728 {
13729 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 13730 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
d14a1e28
RD
13731
13732 wxPyEndAllowThreads(__tstate);
13733 if (PyErr_Occurred()) SWIG_fail;
13734 }
13735 Py_INCREF(Py_None); resultobj = Py_None;
13736 return resultobj;
13737 fail:
13738 return NULL;
13739}
13740
13741
093d3ff1 13742static PyObject *_wrap_DC_DrawText(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
13743 PyObject *resultobj;
13744 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
13745 wxString *arg2 = 0 ;
13746 int arg3 ;
13747 int arg4 ;
13748 bool temp2 = false ;
d14a1e28 13749 PyObject * obj0 = 0 ;
093d3ff1
RD
13750 PyObject * obj1 = 0 ;
13751 PyObject * obj2 = 0 ;
13752 PyObject * obj3 = 0 ;
d14a1e28 13753 char *kwnames[] = {
093d3ff1 13754 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
d14a1e28
RD
13755 };
13756
093d3ff1
RD
13757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13758 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13759 if (SWIG_arg_fail(1)) SWIG_fail;
13760 {
13761 arg2 = wxString_in_helper(obj1);
13762 if (arg2 == NULL) SWIG_fail;
13763 temp2 = true;
13764 }
13765 {
13766 arg3 = (int)(SWIG_As_int(obj2));
13767 if (SWIG_arg_fail(3)) SWIG_fail;
13768 }
13769 {
13770 arg4 = (int)(SWIG_As_int(obj3));
13771 if (SWIG_arg_fail(4)) SWIG_fail;
13772 }
d14a1e28
RD
13773 {
13774 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 13775 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
d14a1e28
RD
13776
13777 wxPyEndAllowThreads(__tstate);
13778 if (PyErr_Occurred()) SWIG_fail;
13779 }
13780 Py_INCREF(Py_None); resultobj = Py_None;
093d3ff1
RD
13781 {
13782 if (temp2)
13783 delete arg2;
13784 }
d14a1e28
RD
13785 return resultobj;
13786 fail:
093d3ff1
RD
13787 {
13788 if (temp2)
13789 delete arg2;
13790 }
d14a1e28
RD
13791 return NULL;
13792}
13793
13794
093d3ff1 13795static PyObject *_wrap_DC_DrawTextPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
13796 PyObject *resultobj;
13797 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
13798 wxString *arg2 = 0 ;
13799 wxPoint *arg3 = 0 ;
13800 bool temp2 = false ;
13801 wxPoint temp3 ;
d14a1e28
RD
13802 PyObject * obj0 = 0 ;
13803 PyObject * obj1 = 0 ;
093d3ff1 13804 PyObject * obj2 = 0 ;
d14a1e28 13805 char *kwnames[] = {
093d3ff1 13806 (char *) "self",(char *) "text",(char *) "pt", NULL
d14a1e28
RD
13807 };
13808
093d3ff1
RD
13809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
13810 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13811 if (SWIG_arg_fail(1)) SWIG_fail;
13812 {
13813 arg2 = wxString_in_helper(obj1);
13814 if (arg2 == NULL) SWIG_fail;
13815 temp2 = true;
13816 }
13817 {
13818 arg3 = &temp3;
13819 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28
RD
13820 }
13821 {
13822 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 13823 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
d14a1e28
RD
13824
13825 wxPyEndAllowThreads(__tstate);
13826 if (PyErr_Occurred()) SWIG_fail;
13827 }
13828 Py_INCREF(Py_None); resultobj = Py_None;
093d3ff1
RD
13829 {
13830 if (temp2)
13831 delete arg2;
13832 }
d14a1e28
RD
13833 return resultobj;
13834 fail:
093d3ff1
RD
13835 {
13836 if (temp2)
13837 delete arg2;
13838 }
d14a1e28
RD
13839 return NULL;
13840}
13841
13842
093d3ff1 13843static PyObject *_wrap_DC_DrawRotatedText(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
13844 PyObject *resultobj;
13845 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
13846 wxString *arg2 = 0 ;
13847 int arg3 ;
13848 int arg4 ;
13849 double arg5 ;
13850 bool temp2 = false ;
13851 PyObject * obj0 = 0 ;
d14a1e28 13852 PyObject * obj1 = 0 ;
093d3ff1
RD
13853 PyObject * obj2 = 0 ;
13854 PyObject * obj3 = 0 ;
13855 PyObject * obj4 = 0 ;
d14a1e28 13856 char *kwnames[] = {
093d3ff1 13857 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
d14a1e28
RD
13858 };
13859
093d3ff1
RD
13860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
13861 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13862 if (SWIG_arg_fail(1)) SWIG_fail;
13863 {
13864 arg2 = wxString_in_helper(obj1);
13865 if (arg2 == NULL) SWIG_fail;
13866 temp2 = true;
13867 }
13868 {
13869 arg3 = (int)(SWIG_As_int(obj2));
13870 if (SWIG_arg_fail(3)) SWIG_fail;
13871 }
13872 {
13873 arg4 = (int)(SWIG_As_int(obj3));
13874 if (SWIG_arg_fail(4)) SWIG_fail;
13875 }
13876 {
13877 arg5 = (double)(SWIG_As_double(obj4));
13878 if (SWIG_arg_fail(5)) SWIG_fail;
d14a1e28
RD
13879 }
13880 {
13881 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 13882 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
d14a1e28
RD
13883
13884 wxPyEndAllowThreads(__tstate);
13885 if (PyErr_Occurred()) SWIG_fail;
13886 }
13887 Py_INCREF(Py_None); resultobj = Py_None;
093d3ff1
RD
13888 {
13889 if (temp2)
13890 delete arg2;
13891 }
d14a1e28
RD
13892 return resultobj;
13893 fail:
093d3ff1
RD
13894 {
13895 if (temp2)
13896 delete arg2;
13897 }
d14a1e28
RD
13898 return NULL;
13899}
13900
13901
093d3ff1 13902static PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
13903 PyObject *resultobj;
13904 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
13905 wxString *arg2 = 0 ;
13906 wxPoint *arg3 = 0 ;
13907 double arg4 ;
13908 bool temp2 = false ;
13909 wxPoint temp3 ;
d14a1e28
RD
13910 PyObject * obj0 = 0 ;
13911 PyObject * obj1 = 0 ;
093d3ff1
RD
13912 PyObject * obj2 = 0 ;
13913 PyObject * obj3 = 0 ;
d14a1e28 13914 char *kwnames[] = {
093d3ff1 13915 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
d14a1e28
RD
13916 };
13917
093d3ff1
RD
13918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13919 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13920 if (SWIG_arg_fail(1)) SWIG_fail;
13921 {
13922 arg2 = wxString_in_helper(obj1);
13923 if (arg2 == NULL) SWIG_fail;
13924 temp2 = true;
13925 }
13926 {
13927 arg3 = &temp3;
13928 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
13929 }
13930 {
13931 arg4 = (double)(SWIG_As_double(obj3));
13932 if (SWIG_arg_fail(4)) SWIG_fail;
d14a1e28
RD
13933 }
13934 {
13935 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 13936 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
d14a1e28
RD
13937
13938 wxPyEndAllowThreads(__tstate);
13939 if (PyErr_Occurred()) SWIG_fail;
13940 }
13941 Py_INCREF(Py_None); resultobj = Py_None;
093d3ff1
RD
13942 {
13943 if (temp2)
13944 delete arg2;
13945 }
d14a1e28
RD
13946 return resultobj;
13947 fail:
093d3ff1
RD
13948 {
13949 if (temp2)
13950 delete arg2;
13951 }
d14a1e28
RD
13952 return NULL;
13953}
13954
13955
093d3ff1 13956static PyObject *_wrap_DC_Blit(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
13957 PyObject *resultobj;
13958 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
13959 int arg2 ;
13960 int arg3 ;
13961 int arg4 ;
13962 int arg5 ;
13963 wxDC *arg6 = (wxDC *) 0 ;
13964 int arg7 ;
13965 int arg8 ;
13966 int arg9 = (int) wxCOPY ;
13967 bool arg10 = (bool) false ;
13968 int arg11 = (int) -1 ;
13969 int arg12 = (int) -1 ;
13970 bool result;
d14a1e28
RD
13971 PyObject * obj0 = 0 ;
13972 PyObject * obj1 = 0 ;
093d3ff1
RD
13973 PyObject * obj2 = 0 ;
13974 PyObject * obj3 = 0 ;
13975 PyObject * obj4 = 0 ;
13976 PyObject * obj5 = 0 ;
13977 PyObject * obj6 = 0 ;
13978 PyObject * obj7 = 0 ;
13979 PyObject * obj8 = 0 ;
13980 PyObject * obj9 = 0 ;
13981 PyObject * obj10 = 0 ;
13982 PyObject * obj11 = 0 ;
d14a1e28 13983 char *kwnames[] = {
093d3ff1 13984 (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
d14a1e28
RD
13985 };
13986
093d3ff1
RD
13987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO|OOOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) goto fail;
13988 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13989 if (SWIG_arg_fail(1)) SWIG_fail;
13990 {
13991 arg2 = (int)(SWIG_As_int(obj1));
13992 if (SWIG_arg_fail(2)) SWIG_fail;
13993 }
13994 {
13995 arg3 = (int)(SWIG_As_int(obj2));
13996 if (SWIG_arg_fail(3)) SWIG_fail;
13997 }
13998 {
13999 arg4 = (int)(SWIG_As_int(obj3));
14000 if (SWIG_arg_fail(4)) SWIG_fail;
14001 }
14002 {
14003 arg5 = (int)(SWIG_As_int(obj4));
14004 if (SWIG_arg_fail(5)) SWIG_fail;
14005 }
14006 SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14007 if (SWIG_arg_fail(6)) SWIG_fail;
14008 {
14009 arg7 = (int)(SWIG_As_int(obj6));
14010 if (SWIG_arg_fail(7)) SWIG_fail;
14011 }
14012 {
14013 arg8 = (int)(SWIG_As_int(obj7));
14014 if (SWIG_arg_fail(8)) SWIG_fail;
14015 }
14016 if (obj8) {
14017 {
14018 arg9 = (int)(SWIG_As_int(obj8));
14019 if (SWIG_arg_fail(9)) SWIG_fail;
14020 }
14021 }
14022 if (obj9) {
14023 {
14024 arg10 = (bool)(SWIG_As_bool(obj9));
14025 if (SWIG_arg_fail(10)) SWIG_fail;
14026 }
14027 }
14028 if (obj10) {
14029 {
14030 arg11 = (int)(SWIG_As_int(obj10));
14031 if (SWIG_arg_fail(11)) SWIG_fail;
14032 }
14033 }
14034 if (obj11) {
14035 {
14036 arg12 = (int)(SWIG_As_int(obj11));
14037 if (SWIG_arg_fail(12)) SWIG_fail;
14038 }
d14a1e28
RD
14039 }
14040 {
14041 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 14042 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
d14a1e28
RD
14043
14044 wxPyEndAllowThreads(__tstate);
14045 if (PyErr_Occurred()) SWIG_fail;
14046 }
093d3ff1
RD
14047 {
14048 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14049 }
d14a1e28
RD
14050 return resultobj;
14051 fail:
14052 return NULL;
14053}
14054
14055
093d3ff1 14056static PyObject *_wrap_DC_BlitPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
14057 PyObject *resultobj;
14058 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
14059 wxPoint *arg2 = 0 ;
14060 wxSize *arg3 = 0 ;
14061 wxDC *arg4 = (wxDC *) 0 ;
14062 wxPoint *arg5 = 0 ;
14063 int arg6 = (int) wxCOPY ;
14064 bool arg7 = (bool) false ;
14065 wxPoint const &arg8_defvalue = wxDefaultPosition ;
14066 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
14067 bool result;
14068 wxPoint temp2 ;
14069 wxSize temp3 ;
14070 wxPoint temp5 ;
14071 wxPoint temp8 ;
d14a1e28 14072 PyObject * obj0 = 0 ;
994141e6 14073 PyObject * obj1 = 0 ;
093d3ff1
RD
14074 PyObject * obj2 = 0 ;
14075 PyObject * obj3 = 0 ;
14076 PyObject * obj4 = 0 ;
14077 PyObject * obj5 = 0 ;
14078 PyObject * obj6 = 0 ;
14079 PyObject * obj7 = 0 ;
d14a1e28 14080 char *kwnames[] = {
093d3ff1 14081 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
d14a1e28
RD
14082 };
14083
093d3ff1
RD
14084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
14085 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14086 if (SWIG_arg_fail(1)) SWIG_fail;
14087 {
14088 arg2 = &temp2;
14089 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14090 }
14091 {
14092 arg3 = &temp3;
14093 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14094 }
14095 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14096 if (SWIG_arg_fail(4)) SWIG_fail;
14097 {
14098 arg5 = &temp5;
14099 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
14100 }
14101 if (obj5) {
14102 {
14103 arg6 = (int)(SWIG_As_int(obj5));
14104 if (SWIG_arg_fail(6)) SWIG_fail;
14105 }
14106 }
14107 if (obj6) {
14108 {
14109 arg7 = (bool)(SWIG_As_bool(obj6));
14110 if (SWIG_arg_fail(7)) SWIG_fail;
14111 }
14112 }
14113 if (obj7) {
14114 {
14115 arg8 = &temp8;
14116 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
14117 }
14118 }
d14a1e28
RD
14119 {
14120 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 14121 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
d14a1e28
RD
14122
14123 wxPyEndAllowThreads(__tstate);
14124 if (PyErr_Occurred()) SWIG_fail;
14125 }
093d3ff1
RD
14126 {
14127 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14128 }
d14a1e28
RD
14129 return resultobj;
14130 fail:
14131 return NULL;
14132}
14133
14134
093d3ff1 14135static PyObject *_wrap_DC_SetClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
14136 PyObject *resultobj;
14137 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
14138 int arg2 ;
14139 int arg3 ;
14140 int arg4 ;
14141 int arg5 ;
d14a1e28
RD
14142 PyObject * obj0 = 0 ;
14143 PyObject * obj1 = 0 ;
093d3ff1
RD
14144 PyObject * obj2 = 0 ;
14145 PyObject * obj3 = 0 ;
14146 PyObject * obj4 = 0 ;
d14a1e28 14147 char *kwnames[] = {
093d3ff1 14148 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
d14a1e28
RD
14149 };
14150
093d3ff1
RD
14151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14152 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14153 if (SWIG_arg_fail(1)) SWIG_fail;
14154 {
14155 arg2 = (int)(SWIG_As_int(obj1));
14156 if (SWIG_arg_fail(2)) SWIG_fail;
14157 }
14158 {
14159 arg3 = (int)(SWIG_As_int(obj2));
14160 if (SWIG_arg_fail(3)) SWIG_fail;
14161 }
14162 {
14163 arg4 = (int)(SWIG_As_int(obj3));
14164 if (SWIG_arg_fail(4)) SWIG_fail;
14165 }
14166 {
14167 arg5 = (int)(SWIG_As_int(obj4));
14168 if (SWIG_arg_fail(5)) SWIG_fail;
d14a1e28
RD
14169 }
14170 {
14171 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 14172 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
d14a1e28
RD
14173
14174 wxPyEndAllowThreads(__tstate);
14175 if (PyErr_Occurred()) SWIG_fail;
14176 }
14177 Py_INCREF(Py_None); resultobj = Py_None;
14178 return resultobj;
14179 fail:
14180 return NULL;
14181}
14182
14183
093d3ff1 14184static PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
14185 PyObject *resultobj;
14186 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
14187 wxPoint *arg2 = 0 ;
14188 wxSize *arg3 = 0 ;
14189 wxPoint temp2 ;
14190 wxSize temp3 ;
d14a1e28 14191 PyObject * obj0 = 0 ;
093d3ff1
RD
14192 PyObject * obj1 = 0 ;
14193 PyObject * obj2 = 0 ;
d14a1e28 14194 char *kwnames[] = {
093d3ff1 14195 (char *) "self",(char *) "pt",(char *) "sz", NULL
d14a1e28
RD
14196 };
14197
093d3ff1
RD
14198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
14199 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14200 if (SWIG_arg_fail(1)) SWIG_fail;
14201 {
14202 arg2 = &temp2;
14203 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14204 }
14205 {
14206 arg3 = &temp3;
14207 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14208 }
d14a1e28
RD
14209 {
14210 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 14211 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
d14a1e28
RD
14212
14213 wxPyEndAllowThreads(__tstate);
14214 if (PyErr_Occurred()) SWIG_fail;
14215 }
14216 Py_INCREF(Py_None); resultobj = Py_None;
14217 return resultobj;
14218 fail:
14219 return NULL;
14220}
14221
14222
093d3ff1 14223static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
14224 PyObject *resultobj;
14225 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 14226 wxRegion *arg2 = 0 ;
d14a1e28 14227 PyObject * obj0 = 0 ;
093d3ff1 14228 PyObject * obj1 = 0 ;
d14a1e28 14229 char *kwnames[] = {
093d3ff1 14230 (char *) "self",(char *) "region", NULL
d14a1e28
RD
14231 };
14232
093d3ff1
RD
14233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
14234 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14235 if (SWIG_arg_fail(1)) SWIG_fail;
14236 {
14237 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
14238 if (SWIG_arg_fail(2)) SWIG_fail;
14239 if (arg2 == NULL) {
14240 SWIG_null_ref("wxRegion");
14241 }
14242 if (SWIG_arg_fail(2)) SWIG_fail;
14243 }
d14a1e28
RD
14244 {
14245 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 14246 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
d14a1e28
RD
14247
14248 wxPyEndAllowThreads(__tstate);
14249 if (PyErr_Occurred()) SWIG_fail;
14250 }
14251 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
14252 return resultobj;
14253 fail:
14254 return NULL;
14255}
14256
14257
093d3ff1 14258static PyObject *_wrap_DC_SetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
14259 PyObject *resultobj;
14260 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
14261 wxRect *arg2 = 0 ;
14262 wxRect temp2 ;
d14a1e28 14263 PyObject * obj0 = 0 ;
093d3ff1 14264 PyObject * obj1 = 0 ;
d14a1e28 14265 char *kwnames[] = {
093d3ff1 14266 (char *) "self",(char *) "rect", NULL
d14a1e28
RD
14267 };
14268
093d3ff1
RD
14269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
14270 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14271 if (SWIG_arg_fail(1)) SWIG_fail;
14272 {
14273 arg2 = &temp2;
14274 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
14275 }
d14a1e28
RD
14276 {
14277 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 14278 (arg1)->SetClippingRegion((wxRect const &)*arg2);
d14a1e28
RD
14279
14280 wxPyEndAllowThreads(__tstate);
14281 if (PyErr_Occurred()) SWIG_fail;
14282 }
093d3ff1 14283 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
14284 return resultobj;
14285 fail:
14286 return NULL;
14287}
14288
14289
093d3ff1 14290static PyObject *_wrap_DC_DrawLines(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
14291 PyObject *resultobj;
14292 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
14293 int arg2 ;
14294 wxPoint *arg3 = (wxPoint *) 0 ;
14295 int arg4 = (int) 0 ;
14296 int arg5 = (int) 0 ;
d14a1e28 14297 PyObject * obj0 = 0 ;
093d3ff1
RD
14298 PyObject * obj1 = 0 ;
14299 PyObject * obj2 = 0 ;
14300 PyObject * obj3 = 0 ;
d14a1e28 14301 char *kwnames[] = {
093d3ff1 14302 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
d14a1e28
RD
14303 };
14304
093d3ff1
RD
14305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14306 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14307 if (SWIG_arg_fail(1)) SWIG_fail;
14308 {
14309 arg3 = wxPoint_LIST_helper(obj1, &arg2);
14310 if (arg3 == NULL) SWIG_fail;
14311 }
14312 if (obj2) {
14313 {
14314 arg4 = (int)(SWIG_As_int(obj2));
14315 if (SWIG_arg_fail(4)) SWIG_fail;
14316 }
14317 }
14318 if (obj3) {
14319 {
14320 arg5 = (int)(SWIG_As_int(obj3));
14321 if (SWIG_arg_fail(5)) SWIG_fail;
14322 }
14323 }
d14a1e28
RD
14324 {
14325 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 14326 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
d14a1e28
RD
14327
14328 wxPyEndAllowThreads(__tstate);
14329 if (PyErr_Occurred()) SWIG_fail;
14330 }
093d3ff1
RD
14331 Py_INCREF(Py_None); resultobj = Py_None;
14332 {
14333 if (arg3) delete [] arg3;
14334 }
d14a1e28
RD
14335 return resultobj;
14336 fail:
093d3ff1
RD
14337 {
14338 if (arg3) delete [] arg3;
14339 }
d14a1e28
RD
14340 return NULL;
14341}
14342
14343
093d3ff1 14344static PyObject *_wrap_DC_DrawPolygon(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
14345 PyObject *resultobj;
14346 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
14347 int arg2 ;
14348 wxPoint *arg3 = (wxPoint *) 0 ;
14349 int arg4 = (int) 0 ;
14350 int arg5 = (int) 0 ;
14351 int arg6 = (int) wxODDEVEN_RULE ;
d14a1e28 14352 PyObject * obj0 = 0 ;
093d3ff1
RD
14353 PyObject * obj1 = 0 ;
14354 PyObject * obj2 = 0 ;
14355 PyObject * obj3 = 0 ;
14356 PyObject * obj4 = 0 ;
d14a1e28 14357 char *kwnames[] = {
093d3ff1 14358 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
d14a1e28
RD
14359 };
14360
093d3ff1
RD
14361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14362 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14363 if (SWIG_arg_fail(1)) SWIG_fail;
14364 {
14365 arg3 = wxPoint_LIST_helper(obj1, &arg2);
14366 if (arg3 == NULL) SWIG_fail;
14367 }
14368 if (obj2) {
14369 {
14370 arg4 = (int)(SWIG_As_int(obj2));
14371 if (SWIG_arg_fail(4)) SWIG_fail;
14372 }
14373 }
14374 if (obj3) {
14375 {
14376 arg5 = (int)(SWIG_As_int(obj3));
14377 if (SWIG_arg_fail(5)) SWIG_fail;
14378 }
14379 }
14380 if (obj4) {
14381 {
14382 arg6 = (int)(SWIG_As_int(obj4));
14383 if (SWIG_arg_fail(6)) SWIG_fail;
14384 }
14385 }
d14a1e28
RD
14386 {
14387 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 14388 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
d14a1e28
RD
14389
14390 wxPyEndAllowThreads(__tstate);
14391 if (PyErr_Occurred()) SWIG_fail;
14392 }
093d3ff1
RD
14393 Py_INCREF(Py_None); resultobj = Py_None;
14394 {
14395 if (arg3) delete [] arg3;
14396 }
d14a1e28
RD
14397 return resultobj;
14398 fail:
093d3ff1
RD
14399 {
14400 if (arg3) delete [] arg3;
14401 }
d14a1e28
RD
14402 return NULL;
14403}
14404
14405
093d3ff1 14406static PyObject *_wrap_DC_DrawLabel(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
14407 PyObject *resultobj;
14408 wxDC *arg1 = (wxDC *) 0 ;
14409 wxString *arg2 = 0 ;
093d3ff1
RD
14410 wxRect *arg3 = 0 ;
14411 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
14412 int arg5 = (int) -1 ;
ae8162c8 14413 bool temp2 = false ;
093d3ff1 14414 wxRect temp3 ;
d14a1e28
RD
14415 PyObject * obj0 = 0 ;
14416 PyObject * obj1 = 0 ;
093d3ff1
RD
14417 PyObject * obj2 = 0 ;
14418 PyObject * obj3 = 0 ;
14419 PyObject * obj4 = 0 ;
d14a1e28 14420 char *kwnames[] = {
093d3ff1 14421 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
d14a1e28
RD
14422 };
14423
093d3ff1
RD
14424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14425 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14426 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
14427 {
14428 arg2 = wxString_in_helper(obj1);
14429 if (arg2 == NULL) SWIG_fail;
ae8162c8 14430 temp2 = true;
d14a1e28 14431 }
093d3ff1
RD
14432 {
14433 arg3 = &temp3;
14434 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
14435 }
14436 if (obj3) {
14437 {
14438 arg4 = (int)(SWIG_As_int(obj3));
14439 if (SWIG_arg_fail(4)) SWIG_fail;
14440 }
14441 }
14442 if (obj4) {
14443 {
14444 arg5 = (int)(SWIG_As_int(obj4));
14445 if (SWIG_arg_fail(5)) SWIG_fail;
14446 }
14447 }
d14a1e28
RD
14448 {
14449 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 14450 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
d14a1e28
RD
14451
14452 wxPyEndAllowThreads(__tstate);
14453 if (PyErr_Occurred()) SWIG_fail;
14454 }
14455 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
14456 {
14457 if (temp2)
14458 delete arg2;
14459 }
14460 return resultobj;
14461 fail:
14462 {
14463 if (temp2)
14464 delete arg2;
14465 }
14466 return NULL;
14467}
14468
14469
093d3ff1 14470static PyObject *_wrap_DC_DrawImageLabel(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
14471 PyObject *resultobj;
14472 wxDC *arg1 = (wxDC *) 0 ;
14473 wxString *arg2 = 0 ;
093d3ff1
RD
14474 wxBitmap *arg3 = 0 ;
14475 wxRect *arg4 = 0 ;
14476 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
14477 int arg6 = (int) -1 ;
14478 wxRect result;
ae8162c8 14479 bool temp2 = false ;
093d3ff1 14480 wxRect temp4 ;
d14a1e28
RD
14481 PyObject * obj0 = 0 ;
14482 PyObject * obj1 = 0 ;
14483 PyObject * obj2 = 0 ;
093d3ff1
RD
14484 PyObject * obj3 = 0 ;
14485 PyObject * obj4 = 0 ;
14486 PyObject * obj5 = 0 ;
d14a1e28 14487 char *kwnames[] = {
093d3ff1 14488 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
d14a1e28
RD
14489 };
14490
093d3ff1
RD
14491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
14492 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14493 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
14494 {
14495 arg2 = wxString_in_helper(obj1);
14496 if (arg2 == NULL) SWIG_fail;
ae8162c8 14497 temp2 = true;
d14a1e28 14498 }
093d3ff1
RD
14499 {
14500 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
14501 if (SWIG_arg_fail(3)) SWIG_fail;
14502 if (arg3 == NULL) {
14503 SWIG_null_ref("wxBitmap");
14504 }
14505 if (SWIG_arg_fail(3)) SWIG_fail;
14506 }
14507 {
14508 arg4 = &temp4;
14509 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
14510 }
14511 if (obj4) {
14512 {
14513 arg5 = (int)(SWIG_As_int(obj4));
14514 if (SWIG_arg_fail(5)) SWIG_fail;
14515 }
14516 }
14517 if (obj5) {
14518 {
14519 arg6 = (int)(SWIG_As_int(obj5));
14520 if (SWIG_arg_fail(6)) SWIG_fail;
14521 }
d14a1e28
RD
14522 }
14523 {
14524 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 14525 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
d14a1e28
RD
14526
14527 wxPyEndAllowThreads(__tstate);
14528 if (PyErr_Occurred()) SWIG_fail;
14529 }
093d3ff1
RD
14530 {
14531 wxRect * resultptr;
14532 resultptr = new wxRect((wxRect &)(result));
14533 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
14534 }
d14a1e28
RD
14535 {
14536 if (temp2)
14537 delete arg2;
14538 }
14539 return resultobj;
14540 fail:
14541 {
14542 if (temp2)
14543 delete arg2;
14544 }
14545 return NULL;
14546}
14547
14548
093d3ff1 14549static PyObject *_wrap_DC_DrawSpline(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
14550 PyObject *resultobj;
14551 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
14552 int arg2 ;
14553 wxPoint *arg3 = (wxPoint *) 0 ;
d14a1e28
RD
14554 PyObject * obj0 = 0 ;
14555 PyObject * obj1 = 0 ;
d14a1e28 14556 char *kwnames[] = {
093d3ff1 14557 (char *) "self",(char *) "points", NULL
d14a1e28
RD
14558 };
14559
093d3ff1
RD
14560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
14561 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14562 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28 14563 {
093d3ff1
RD
14564 arg3 = wxPoint_LIST_helper(obj1, &arg2);
14565 if (arg3 == NULL) SWIG_fail;
d14a1e28
RD
14566 }
14567 {
14568 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 14569 (arg1)->DrawSpline(arg2,arg3);
d14a1e28
RD
14570
14571 wxPyEndAllowThreads(__tstate);
14572 if (PyErr_Occurred()) SWIG_fail;
14573 }
14574 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28 14575 {
093d3ff1 14576 if (arg3) delete [] arg3;
d14a1e28
RD
14577 }
14578 return resultobj;
14579 fail:
14580 {
093d3ff1 14581 if (arg3) delete [] arg3;
d14a1e28
RD
14582 }
14583 return NULL;
14584}
14585
14586
093d3ff1
RD
14587static PyObject *_wrap_DC_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
14588 PyObject *resultobj;
14589 wxDC *arg1 = (wxDC *) 0 ;
14590 PyObject * obj0 = 0 ;
14591 char *kwnames[] = {
14592 (char *) "self", NULL
14593 };
14594
14595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
14596 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14597 if (SWIG_arg_fail(1)) SWIG_fail;
14598 {
14599 PyThreadState* __tstate = wxPyBeginAllowThreads();
14600 (arg1)->Clear();
14601
14602 wxPyEndAllowThreads(__tstate);
14603 if (PyErr_Occurred()) SWIG_fail;
14604 }
14605 Py_INCREF(Py_None); resultobj = Py_None;
14606 return resultobj;
14607 fail:
14608 return NULL;
14609}
14610
14611
14612static PyObject *_wrap_DC_StartDoc(PyObject *, PyObject *args, PyObject *kwargs) {
db914595
RD
14613 PyObject *resultobj;
14614 wxDC *arg1 = (wxDC *) 0 ;
14615 wxString *arg2 = 0 ;
093d3ff1 14616 bool result;
ae8162c8 14617 bool temp2 = false ;
db914595
RD
14618 PyObject * obj0 = 0 ;
14619 PyObject * obj1 = 0 ;
14620 char *kwnames[] = {
093d3ff1 14621 (char *) "self",(char *) "message", NULL
db914595
RD
14622 };
14623
093d3ff1
RD
14624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
14625 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14626 if (SWIG_arg_fail(1)) SWIG_fail;
db914595
RD
14627 {
14628 arg2 = wxString_in_helper(obj1);
14629 if (arg2 == NULL) SWIG_fail;
ae8162c8 14630 temp2 = true;
db914595
RD
14631 }
14632 {
14633 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 14634 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
db914595
RD
14635
14636 wxPyEndAllowThreads(__tstate);
14637 if (PyErr_Occurred()) SWIG_fail;
14638 }
14639 {
093d3ff1 14640 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
db914595
RD
14641 }
14642 {
14643 if (temp2)
14644 delete arg2;
14645 }
14646 return resultobj;
14647 fail:
14648 {
14649 if (temp2)
14650 delete arg2;
14651 }
14652 return NULL;
14653}
14654
14655
093d3ff1 14656static PyObject *_wrap_DC_EndDoc(PyObject *, PyObject *args, PyObject *kwargs) {
322913ce
RD
14657 PyObject *resultobj;
14658 wxDC *arg1 = (wxDC *) 0 ;
322913ce
RD
14659 PyObject * obj0 = 0 ;
14660 char *kwnames[] = {
14661 (char *) "self", NULL
14662 };
14663
093d3ff1
RD
14664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
14665 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14666 if (SWIG_arg_fail(1)) SWIG_fail;
322913ce
RD
14667 {
14668 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 14669 (arg1)->EndDoc();
322913ce
RD
14670
14671 wxPyEndAllowThreads(__tstate);
14672 if (PyErr_Occurred()) SWIG_fail;
14673 }
093d3ff1 14674 Py_INCREF(Py_None); resultobj = Py_None;
322913ce
RD
14675 return resultobj;
14676 fail:
14677 return NULL;
14678}
14679
14680
093d3ff1 14681static PyObject *_wrap_DC_StartPage(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
14682 PyObject *resultobj;
14683 wxDC *arg1 = (wxDC *) 0 ;
d14a1e28
RD
14684 PyObject * obj0 = 0 ;
14685 char *kwnames[] = {
14686 (char *) "self", NULL
14687 };
14688
093d3ff1
RD
14689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
14690 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14691 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
14692 {
14693 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 14694 (arg1)->StartPage();
d14a1e28
RD
14695
14696 wxPyEndAllowThreads(__tstate);
14697 if (PyErr_Occurred()) SWIG_fail;
14698 }
14699 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
14700 return resultobj;
14701 fail:
14702 return NULL;
14703}
14704
14705
093d3ff1 14706static PyObject *_wrap_DC_EndPage(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
14707 PyObject *resultobj;
14708 wxDC *arg1 = (wxDC *) 0 ;
d14a1e28
RD
14709 PyObject * obj0 = 0 ;
14710 char *kwnames[] = {
14711 (char *) "self", NULL
14712 };
14713
093d3ff1
RD
14714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
14715 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14716 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
14717 {
14718 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 14719 (arg1)->EndPage();
d14a1e28
RD
14720
14721 wxPyEndAllowThreads(__tstate);
14722 if (PyErr_Occurred()) SWIG_fail;
14723 }
093d3ff1 14724 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
14725 return resultobj;
14726 fail:
14727 return NULL;
14728}
14729
14730
093d3ff1 14731static PyObject *_wrap_DC_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
14732 PyObject *resultobj;
14733 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 14734 wxFont *arg2 = 0 ;
d14a1e28 14735 PyObject * obj0 = 0 ;
093d3ff1 14736 PyObject * obj1 = 0 ;
d14a1e28 14737 char *kwnames[] = {
093d3ff1 14738 (char *) "self",(char *) "font", NULL
d14a1e28
RD
14739 };
14740
093d3ff1
RD
14741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
14742 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14743 if (SWIG_arg_fail(1)) SWIG_fail;
14744 {
14745 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
14746 if (SWIG_arg_fail(2)) SWIG_fail;
14747 if (arg2 == NULL) {
14748 SWIG_null_ref("wxFont");
14749 }
14750 if (SWIG_arg_fail(2)) SWIG_fail;
14751 }
d14a1e28
RD
14752 {
14753 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 14754 (arg1)->SetFont((wxFont const &)*arg2);
d14a1e28
RD
14755
14756 wxPyEndAllowThreads(__tstate);
14757 if (PyErr_Occurred()) SWIG_fail;
14758 }
14759 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
14760 return resultobj;
14761 fail:
14762 return NULL;
14763}
14764
14765
093d3ff1 14766static PyObject *_wrap_DC_SetPen(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
14767 PyObject *resultobj;
14768 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 14769 wxPen *arg2 = 0 ;
d14a1e28 14770 PyObject * obj0 = 0 ;
994141e6 14771 PyObject * obj1 = 0 ;
d14a1e28 14772 char *kwnames[] = {
093d3ff1 14773 (char *) "self",(char *) "pen", NULL
d14a1e28
RD
14774 };
14775
093d3ff1
RD
14776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
14777 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14778 if (SWIG_arg_fail(1)) SWIG_fail;
14779 {
14780 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
14781 if (SWIG_arg_fail(2)) SWIG_fail;
14782 if (arg2 == NULL) {
14783 SWIG_null_ref("wxPen");
14784 }
14785 if (SWIG_arg_fail(2)) SWIG_fail;
14786 }
d14a1e28
RD
14787 {
14788 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 14789 (arg1)->SetPen((wxPen const &)*arg2);
d14a1e28
RD
14790
14791 wxPyEndAllowThreads(__tstate);
14792 if (PyErr_Occurred()) SWIG_fail;
14793 }
093d3ff1 14794 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
14795 return resultobj;
14796 fail:
14797 return NULL;
14798}
14799
14800
093d3ff1 14801static PyObject *_wrap_DC_SetBrush(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
14802 PyObject *resultobj;
14803 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 14804 wxBrush *arg2 = 0 ;
d14a1e28 14805 PyObject * obj0 = 0 ;
994141e6 14806 PyObject * obj1 = 0 ;
d14a1e28 14807 char *kwnames[] = {
093d3ff1 14808 (char *) "self",(char *) "brush", NULL
d14a1e28
RD
14809 };
14810
093d3ff1
RD
14811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
14812 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14813 if (SWIG_arg_fail(1)) SWIG_fail;
14814 {
14815 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
14816 if (SWIG_arg_fail(2)) SWIG_fail;
14817 if (arg2 == NULL) {
14818 SWIG_null_ref("wxBrush");
14819 }
14820 if (SWIG_arg_fail(2)) SWIG_fail;
14821 }
d14a1e28
RD
14822 {
14823 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 14824 (arg1)->SetBrush((wxBrush const &)*arg2);
d14a1e28
RD
14825
14826 wxPyEndAllowThreads(__tstate);
14827 if (PyErr_Occurred()) SWIG_fail;
14828 }
093d3ff1 14829 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
14830 return resultobj;
14831 fail:
14832 return NULL;
14833}
14834
14835
093d3ff1 14836static PyObject *_wrap_DC_SetBackground(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
14837 PyObject *resultobj;
14838 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 14839 wxBrush *arg2 = 0 ;
d14a1e28 14840 PyObject * obj0 = 0 ;
994141e6 14841 PyObject * obj1 = 0 ;
d14a1e28 14842 char *kwnames[] = {
093d3ff1 14843 (char *) "self",(char *) "brush", NULL
d14a1e28
RD
14844 };
14845
093d3ff1
RD
14846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
14847 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14848 if (SWIG_arg_fail(1)) SWIG_fail;
14849 {
14850 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
14851 if (SWIG_arg_fail(2)) SWIG_fail;
14852 if (arg2 == NULL) {
14853 SWIG_null_ref("wxBrush");
14854 }
14855 if (SWIG_arg_fail(2)) SWIG_fail;
14856 }
d14a1e28
RD
14857 {
14858 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 14859 (arg1)->SetBackground((wxBrush const &)*arg2);
d14a1e28
RD
14860
14861 wxPyEndAllowThreads(__tstate);
14862 if (PyErr_Occurred()) SWIG_fail;
14863 }
093d3ff1 14864 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
14865 return resultobj;
14866 fail:
14867 return NULL;
14868}
14869
14870
093d3ff1 14871static PyObject *_wrap_DC_SetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
14872 PyObject *resultobj;
14873 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce 14874 int arg2 ;
d14a1e28 14875 PyObject * obj0 = 0 ;
994141e6 14876 PyObject * obj1 = 0 ;
d14a1e28 14877 char *kwnames[] = {
093d3ff1 14878 (char *) "self",(char *) "mode", NULL
d14a1e28
RD
14879 };
14880
093d3ff1
RD
14881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
14882 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14883 if (SWIG_arg_fail(1)) SWIG_fail;
14884 {
14885 arg2 = (int)(SWIG_As_int(obj1));
14886 if (SWIG_arg_fail(2)) SWIG_fail;
14887 }
d14a1e28
RD
14888 {
14889 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 14890 (arg1)->SetBackgroundMode(arg2);
d14a1e28
RD
14891
14892 wxPyEndAllowThreads(__tstate);
14893 if (PyErr_Occurred()) SWIG_fail;
14894 }
093d3ff1 14895 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
14896 return resultobj;
14897 fail:
14898 return NULL;
14899}
14900
14901
093d3ff1 14902static PyObject *_wrap_DC_SetPalette(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
14903 PyObject *resultobj;
14904 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 14905 wxPalette *arg2 = 0 ;
d14a1e28 14906 PyObject * obj0 = 0 ;
994141e6 14907 PyObject * obj1 = 0 ;
d14a1e28 14908 char *kwnames[] = {
093d3ff1 14909 (char *) "self",(char *) "palette", NULL
d14a1e28
RD
14910 };
14911
093d3ff1
RD
14912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
14913 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14914 if (SWIG_arg_fail(1)) SWIG_fail;
14915 {
14916 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0);
14917 if (SWIG_arg_fail(2)) SWIG_fail;
14918 if (arg2 == NULL) {
14919 SWIG_null_ref("wxPalette");
14920 }
14921 if (SWIG_arg_fail(2)) SWIG_fail;
14922 }
d14a1e28
RD
14923 {
14924 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 14925 (arg1)->SetPalette((wxPalette const &)*arg2);
d14a1e28
RD
14926
14927 wxPyEndAllowThreads(__tstate);
14928 if (PyErr_Occurred()) SWIG_fail;
14929 }
093d3ff1 14930 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
14931 return resultobj;
14932 fail:
14933 return NULL;
14934}
14935
14936
093d3ff1 14937static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
14938 PyObject *resultobj;
14939 wxDC *arg1 = (wxDC *) 0 ;
d14a1e28
RD
14940 PyObject * obj0 = 0 ;
14941 char *kwnames[] = {
093d3ff1 14942 (char *) "self", NULL
d14a1e28
RD
14943 };
14944
093d3ff1
RD
14945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
14946 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14947 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
14948 {
14949 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 14950 (arg1)->DestroyClippingRegion();
d14a1e28
RD
14951
14952 wxPyEndAllowThreads(__tstate);
14953 if (PyErr_Occurred()) SWIG_fail;
14954 }
093d3ff1 14955 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
14956 return resultobj;
14957 fail:
14958 return NULL;
14959}
14960
14961
093d3ff1 14962static PyObject *_wrap_DC_GetClippingBox(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
14963 PyObject *resultobj;
14964 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
14965 int *arg2 = (int *) 0 ;
14966 int *arg3 = (int *) 0 ;
14967 int *arg4 = (int *) 0 ;
14968 int *arg5 = (int *) 0 ;
14969 int temp2 ;
14970 int res2 = 0 ;
14971 int temp3 ;
14972 int res3 = 0 ;
14973 int temp4 ;
14974 int res4 = 0 ;
14975 int temp5 ;
14976 int res5 = 0 ;
d14a1e28
RD
14977 PyObject * obj0 = 0 ;
14978 char *kwnames[] = {
093d3ff1 14979 (char *) "self", NULL
d14a1e28
RD
14980 };
14981
093d3ff1
RD
14982 arg2 = &temp2; res2 = SWIG_NEWOBJ;
14983 arg3 = &temp3; res3 = SWIG_NEWOBJ;
14984 arg4 = &temp4; res4 = SWIG_NEWOBJ;
14985 arg5 = &temp5; res5 = SWIG_NEWOBJ;
14986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
14987 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14988 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
14989 {
14990 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 14991 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
d14a1e28
RD
14992
14993 wxPyEndAllowThreads(__tstate);
14994 if (PyErr_Occurred()) SWIG_fail;
14995 }
093d3ff1
RD
14996 Py_INCREF(Py_None); resultobj = Py_None;
14997 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
14998 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
14999 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
15000 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
15001 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
15002 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
15003 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
15004 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
d14a1e28
RD
15005 return resultobj;
15006 fail:
15007 return NULL;
15008}
15009
15010
093d3ff1 15011static PyObject *_wrap_DC_GetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
15012 PyObject *resultobj;
15013 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 15014 wxRect result;
d14a1e28
RD
15015 PyObject * obj0 = 0 ;
15016 char *kwnames[] = {
093d3ff1 15017 (char *) "self", NULL
d14a1e28
RD
15018 };
15019
093d3ff1
RD
15020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
15021 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15022 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
15023 {
15024 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 15025 result = wxDC_GetClippingRect(arg1);
d14a1e28
RD
15026
15027 wxPyEndAllowThreads(__tstate);
15028 if (PyErr_Occurred()) SWIG_fail;
15029 }
093d3ff1
RD
15030 {
15031 wxRect * resultptr;
15032 resultptr = new wxRect((wxRect &)(result));
15033 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
15034 }
d14a1e28
RD
15035 return resultobj;
15036 fail:
15037 return NULL;
15038}
15039
15040
093d3ff1 15041static PyObject *_wrap_DC_GetCharHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
15042 PyObject *resultobj;
15043 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 15044 int result;
d14a1e28
RD
15045 PyObject * obj0 = 0 ;
15046 char *kwnames[] = {
15047 (char *) "self", NULL
15048 };
15049
093d3ff1
RD
15050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
15051 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15052 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
15053 {
15054 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 15055 result = (int)((wxDC const *)arg1)->GetCharHeight();
d14a1e28
RD
15056
15057 wxPyEndAllowThreads(__tstate);
15058 if (PyErr_Occurred()) SWIG_fail;
15059 }
4f89f6a3 15060 {
093d3ff1 15061 resultobj = SWIG_From_int((int)(result));
4f89f6a3 15062 }
d14a1e28
RD
15063 return resultobj;
15064 fail:
15065 return NULL;
15066}
15067
15068
093d3ff1 15069static PyObject *_wrap_DC_GetCharWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
15070 PyObject *resultobj;
15071 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 15072 int result;
d14a1e28
RD
15073 PyObject * obj0 = 0 ;
15074 char *kwnames[] = {
15075 (char *) "self", NULL
15076 };
15077
093d3ff1
RD
15078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
15079 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15080 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
15081 {
15082 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 15083 result = (int)((wxDC const *)arg1)->GetCharWidth();
d14a1e28
RD
15084
15085 wxPyEndAllowThreads(__tstate);
15086 if (PyErr_Occurred()) SWIG_fail;
15087 }
4f89f6a3 15088 {
093d3ff1 15089 resultobj = SWIG_From_int((int)(result));
4f89f6a3 15090 }
d14a1e28
RD
15091 return resultobj;
15092 fail:
15093 return NULL;
15094}
15095
15096
093d3ff1 15097static PyObject *_wrap_DC_GetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
15098 PyObject *resultobj;
15099 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
15100 wxString *arg2 = 0 ;
15101 int *arg3 = (int *) 0 ;
15102 int *arg4 = (int *) 0 ;
15103 bool temp2 = false ;
15104 int temp3 ;
15105 int res3 = 0 ;
15106 int temp4 ;
15107 int res4 = 0 ;
d14a1e28 15108 PyObject * obj0 = 0 ;
093d3ff1 15109 PyObject * obj1 = 0 ;
d14a1e28 15110 char *kwnames[] = {
093d3ff1 15111 (char *) "self",(char *) "string", NULL
d14a1e28
RD
15112 };
15113
093d3ff1
RD
15114 arg3 = &temp3; res3 = SWIG_NEWOBJ;
15115 arg4 = &temp4; res4 = SWIG_NEWOBJ;
15116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
15117 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15118 if (SWIG_arg_fail(1)) SWIG_fail;
15119 {
15120 arg2 = wxString_in_helper(obj1);
15121 if (arg2 == NULL) SWIG_fail;
15122 temp2 = true;
15123 }
d14a1e28
RD
15124 {
15125 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 15126 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
d14a1e28
RD
15127
15128 wxPyEndAllowThreads(__tstate);
15129 if (PyErr_Occurred()) SWIG_fail;
15130 }
093d3ff1
RD
15131 Py_INCREF(Py_None); resultobj = Py_None;
15132 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
15133 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
15134 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
15135 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
15136 {
15137 if (temp2)
15138 delete arg2;
15139 }
d14a1e28
RD
15140 return resultobj;
15141 fail:
093d3ff1
RD
15142 {
15143 if (temp2)
15144 delete arg2;
15145 }
d14a1e28
RD
15146 return NULL;
15147}
15148
15149
093d3ff1 15150static PyObject *_wrap_DC_GetFullTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
15151 PyObject *resultobj;
15152 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
15153 wxString *arg2 = 0 ;
15154 int *arg3 = (int *) 0 ;
15155 int *arg4 = (int *) 0 ;
15156 int *arg5 = (int *) 0 ;
15157 int *arg6 = (int *) 0 ;
15158 wxFont *arg7 = (wxFont *) NULL ;
15159 bool temp2 = false ;
15160 int temp3 ;
15161 int res3 = 0 ;
15162 int temp4 ;
15163 int res4 = 0 ;
15164 int temp5 ;
15165 int res5 = 0 ;
15166 int temp6 ;
15167 int res6 = 0 ;
d14a1e28 15168 PyObject * obj0 = 0 ;
093d3ff1
RD
15169 PyObject * obj1 = 0 ;
15170 PyObject * obj2 = 0 ;
d14a1e28 15171 char *kwnames[] = {
093d3ff1 15172 (char *) "self",(char *) "string",(char *) "font", NULL
d14a1e28
RD
15173 };
15174
093d3ff1
RD
15175 arg3 = &temp3; res3 = SWIG_NEWOBJ;
15176 arg4 = &temp4; res4 = SWIG_NEWOBJ;
15177 arg5 = &temp5; res5 = SWIG_NEWOBJ;
15178 arg6 = &temp6; res6 = SWIG_NEWOBJ;
15179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
15180 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15181 if (SWIG_arg_fail(1)) SWIG_fail;
15182 {
15183 arg2 = wxString_in_helper(obj1);
15184 if (arg2 == NULL) SWIG_fail;
15185 temp2 = true;
15186 }
15187 if (obj2) {
15188 SWIG_Python_ConvertPtr(obj2, (void **)&arg7, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
15189 if (SWIG_arg_fail(7)) SWIG_fail;
15190 }
d14a1e28
RD
15191 {
15192 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 15193 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
d14a1e28
RD
15194
15195 wxPyEndAllowThreads(__tstate);
15196 if (PyErr_Occurred()) SWIG_fail;
15197 }
093d3ff1
RD
15198 Py_INCREF(Py_None); resultobj = Py_None;
15199 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
15200 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
15201 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
15202 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
15203 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
15204 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
15205 resultobj = t_output_helper(resultobj, ((res6 == SWIG_NEWOBJ) ?
15206 SWIG_From_int((*arg6)) : SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, 0)));
d14a1e28 15207 {
093d3ff1
RD
15208 if (temp2)
15209 delete arg2;
d14a1e28
RD
15210 }
15211 return resultobj;
15212 fail:
093d3ff1
RD
15213 {
15214 if (temp2)
15215 delete arg2;
15216 }
d14a1e28
RD
15217 return NULL;
15218}
15219
15220
093d3ff1 15221static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
15222 PyObject *resultobj;
15223 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
15224 wxString *arg2 = 0 ;
15225 int *arg3 = (int *) 0 ;
15226 int *arg4 = (int *) 0 ;
15227 int *arg5 = (int *) 0 ;
15228 wxFont *arg6 = (wxFont *) NULL ;
15229 bool temp2 = false ;
15230 int temp3 ;
15231 int res3 = 0 ;
15232 int temp4 ;
15233 int res4 = 0 ;
15234 int temp5 ;
15235 int res5 = 0 ;
d14a1e28 15236 PyObject * obj0 = 0 ;
093d3ff1
RD
15237 PyObject * obj1 = 0 ;
15238 PyObject * obj2 = 0 ;
d14a1e28 15239 char *kwnames[] = {
093d3ff1 15240 (char *) "self",(char *) "text",(char *) "font", NULL
d14a1e28
RD
15241 };
15242
093d3ff1
RD
15243 arg3 = &temp3; res3 = SWIG_NEWOBJ;
15244 arg4 = &temp4; res4 = SWIG_NEWOBJ;
15245 arg5 = &temp5; res5 = SWIG_NEWOBJ;
15246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
15247 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15248 if (SWIG_arg_fail(1)) SWIG_fail;
15249 {
15250 arg2 = wxString_in_helper(obj1);
15251 if (arg2 == NULL) SWIG_fail;
15252 temp2 = true;
15253 }
15254 if (obj2) {
15255 SWIG_Python_ConvertPtr(obj2, (void **)&arg6, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
15256 if (SWIG_arg_fail(6)) SWIG_fail;
15257 }
d14a1e28
RD
15258 {
15259 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 15260 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
d14a1e28
RD
15261
15262 wxPyEndAllowThreads(__tstate);
15263 if (PyErr_Occurred()) SWIG_fail;
15264 }
093d3ff1
RD
15265 Py_INCREF(Py_None); resultobj = Py_None;
15266 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
15267 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
15268 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
15269 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
15270 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
15271 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
4f89f6a3 15272 {
093d3ff1
RD
15273 if (temp2)
15274 delete arg2;
4f89f6a3 15275 }
d14a1e28
RD
15276 return resultobj;
15277 fail:
093d3ff1
RD
15278 {
15279 if (temp2)
15280 delete arg2;
15281 }
d14a1e28
RD
15282 return NULL;
15283}
15284
15285
093d3ff1 15286static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
15287 PyObject *resultobj;
15288 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
15289 wxString *arg2 = 0 ;
15290 wxArrayInt result;
15291 bool temp2 = false ;
d14a1e28 15292 PyObject * obj0 = 0 ;
093d3ff1 15293 PyObject * obj1 = 0 ;
d14a1e28 15294 char *kwnames[] = {
093d3ff1 15295 (char *) "self",(char *) "text", NULL
d14a1e28
RD
15296 };
15297
093d3ff1
RD
15298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail;
15299 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15300 if (SWIG_arg_fail(1)) SWIG_fail;
15301 {
15302 arg2 = wxString_in_helper(obj1);
15303 if (arg2 == NULL) SWIG_fail;
15304 temp2 = true;
15305 }
d14a1e28
RD
15306 {
15307 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 15308 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
d14a1e28
RD
15309
15310 wxPyEndAllowThreads(__tstate);
15311 if (PyErr_Occurred()) SWIG_fail;
15312 }
093d3ff1
RD
15313 {
15314 resultobj = PyList_New(0);
15315 size_t idx;
15316 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
15317 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
15318 PyList_Append(resultobj, val);
15319 Py_DECREF(val);
15320 }
15321 }
15322 {
15323 if (temp2)
15324 delete arg2;
15325 }
d14a1e28
RD
15326 return resultobj;
15327 fail:
093d3ff1
RD
15328 {
15329 if (temp2)
15330 delete arg2;
15331 }
d14a1e28
RD
15332 return NULL;
15333}
15334
15335
093d3ff1 15336static PyObject *_wrap_DC_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
15337 PyObject *resultobj;
15338 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 15339 wxSize result;
d14a1e28
RD
15340 PyObject * obj0 = 0 ;
15341 char *kwnames[] = {
15342 (char *) "self", NULL
15343 };
15344
093d3ff1
RD
15345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
15346 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15347 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
15348 {
15349 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 15350 result = (arg1)->GetSize();
d14a1e28
RD
15351
15352 wxPyEndAllowThreads(__tstate);
15353 if (PyErr_Occurred()) SWIG_fail;
15354 }
4276dc52 15355 {
093d3ff1
RD
15356 wxSize * resultptr;
15357 resultptr = new wxSize((wxSize &)(result));
15358 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
4276dc52 15359 }
d14a1e28
RD
15360 return resultobj;
15361 fail:
15362 return NULL;
15363}
15364
15365
093d3ff1 15366static PyObject *_wrap_DC_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
15367 PyObject *resultobj;
15368 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
15369 int *arg2 = (int *) 0 ;
15370 int *arg3 = (int *) 0 ;
15371 int temp2 ;
15372 int res2 = 0 ;
15373 int temp3 ;
15374 int res3 = 0 ;
d14a1e28
RD
15375 PyObject * obj0 = 0 ;
15376 char *kwnames[] = {
15377 (char *) "self", NULL
15378 };
15379
093d3ff1
RD
15380 arg2 = &temp2; res2 = SWIG_NEWOBJ;
15381 arg3 = &temp3; res3 = SWIG_NEWOBJ;
15382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
15383 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15384 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
15385 {
15386 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 15387 (arg1)->GetSize(arg2,arg3);
d14a1e28
RD
15388
15389 wxPyEndAllowThreads(__tstate);
15390 if (PyErr_Occurred()) SWIG_fail;
15391 }
093d3ff1
RD
15392 Py_INCREF(Py_None); resultobj = Py_None;
15393 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
15394 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
15395 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
15396 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
d14a1e28
RD
15397 return resultobj;
15398 fail:
15399 return NULL;
15400}
15401
15402
093d3ff1 15403static PyObject *_wrap_DC_GetSizeMM(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
15404 PyObject *resultobj;
15405 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 15406 wxSize result;
d14a1e28
RD
15407 PyObject * obj0 = 0 ;
15408 char *kwnames[] = {
15409 (char *) "self", NULL
15410 };
15411
093d3ff1
RD
15412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
15413 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15414 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
15415 {
15416 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 15417 result = ((wxDC const *)arg1)->GetSizeMM();
d14a1e28
RD
15418
15419 wxPyEndAllowThreads(__tstate);
15420 if (PyErr_Occurred()) SWIG_fail;
15421 }
4276dc52 15422 {
093d3ff1
RD
15423 wxSize * resultptr;
15424 resultptr = new wxSize((wxSize &)(result));
15425 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
4276dc52 15426 }
d14a1e28
RD
15427 return resultobj;
15428 fail:
15429 return NULL;
15430}
15431
15432
093d3ff1 15433static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
15434 PyObject *resultobj;
15435 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
15436 int *arg2 = (int *) 0 ;
15437 int *arg3 = (int *) 0 ;
15438 int temp2 ;
15439 int res2 = 0 ;
15440 int temp3 ;
15441 int res3 = 0 ;
d14a1e28
RD
15442 PyObject * obj0 = 0 ;
15443 char *kwnames[] = {
15444 (char *) "self", NULL
15445 };
15446
093d3ff1
RD
15447 arg2 = &temp2; res2 = SWIG_NEWOBJ;
15448 arg3 = &temp3; res3 = SWIG_NEWOBJ;
15449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
15450 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15451 if (SWIG_arg_fail(1)) SWIG_fail;
15452 {
15453 PyThreadState* __tstate = wxPyBeginAllowThreads();
15454 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
d14a1e28
RD
15455
15456 wxPyEndAllowThreads(__tstate);
15457 if (PyErr_Occurred()) SWIG_fail;
15458 }
093d3ff1
RD
15459 Py_INCREF(Py_None); resultobj = Py_None;
15460 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
15461 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
15462 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
15463 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
d14a1e28
RD
15464 return resultobj;
15465 fail:
15466 return NULL;
15467}
15468
15469
093d3ff1 15470static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
15471 PyObject *resultobj;
15472 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
15473 int arg2 ;
15474 int result;
d14a1e28 15475 PyObject * obj0 = 0 ;
093d3ff1 15476 PyObject * obj1 = 0 ;
d14a1e28 15477 char *kwnames[] = {
093d3ff1 15478 (char *) "self",(char *) "x", NULL
d14a1e28
RD
15479 };
15480
093d3ff1
RD
15481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
15482 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15483 if (SWIG_arg_fail(1)) SWIG_fail;
15484 {
15485 arg2 = (int)(SWIG_As_int(obj1));
15486 if (SWIG_arg_fail(2)) SWIG_fail;
15487 }
d14a1e28
RD
15488 {
15489 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 15490 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
d14a1e28
RD
15491
15492 wxPyEndAllowThreads(__tstate);
15493 if (PyErr_Occurred()) SWIG_fail;
15494 }
093d3ff1
RD
15495 {
15496 resultobj = SWIG_From_int((int)(result));
15497 }
d14a1e28
RD
15498 return resultobj;
15499 fail:
15500 return NULL;
15501}
15502
15503
093d3ff1 15504static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
15505 PyObject *resultobj;
15506 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
15507 int arg2 ;
15508 int result;
d14a1e28 15509 PyObject * obj0 = 0 ;
093d3ff1 15510 PyObject * obj1 = 0 ;
d14a1e28 15511 char *kwnames[] = {
093d3ff1 15512 (char *) "self",(char *) "y", NULL
d14a1e28
RD
15513 };
15514
093d3ff1
RD
15515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
15516 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15517 if (SWIG_arg_fail(1)) SWIG_fail;
15518 {
15519 arg2 = (int)(SWIG_As_int(obj1));
15520 if (SWIG_arg_fail(2)) SWIG_fail;
15521 }
d14a1e28
RD
15522 {
15523 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 15524 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
d14a1e28
RD
15525
15526 wxPyEndAllowThreads(__tstate);
15527 if (PyErr_Occurred()) SWIG_fail;
15528 }
093d3ff1
RD
15529 {
15530 resultobj = SWIG_From_int((int)(result));
15531 }
d14a1e28
RD
15532 return resultobj;
15533 fail:
15534 return NULL;
15535}
15536
15537
093d3ff1 15538static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
15539 PyObject *resultobj;
15540 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
15541 int arg2 ;
15542 int result;
d14a1e28
RD
15543 PyObject * obj0 = 0 ;
15544 PyObject * obj1 = 0 ;
15545 char *kwnames[] = {
093d3ff1 15546 (char *) "self",(char *) "x", NULL
d14a1e28
RD
15547 };
15548
093d3ff1
RD
15549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
15550 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15551 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28 15552 {
093d3ff1
RD
15553 arg2 = (int)(SWIG_As_int(obj1));
15554 if (SWIG_arg_fail(2)) SWIG_fail;
d14a1e28
RD
15555 }
15556 {
15557 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 15558 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
d14a1e28
RD
15559
15560 wxPyEndAllowThreads(__tstate);
15561 if (PyErr_Occurred()) SWIG_fail;
15562 }
093d3ff1
RD
15563 {
15564 resultobj = SWIG_From_int((int)(result));
15565 }
d14a1e28
RD
15566 return resultobj;
15567 fail:
15568 return NULL;
15569}
15570
15571
093d3ff1 15572static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
15573 PyObject *resultobj;
15574 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
15575 int arg2 ;
15576 int result;
d14a1e28
RD
15577 PyObject * obj0 = 0 ;
15578 PyObject * obj1 = 0 ;
15579 char *kwnames[] = {
093d3ff1 15580 (char *) "self",(char *) "y", NULL
d14a1e28
RD
15581 };
15582
093d3ff1
RD
15583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
15584 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15585 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28 15586 {
093d3ff1
RD
15587 arg2 = (int)(SWIG_As_int(obj1));
15588 if (SWIG_arg_fail(2)) SWIG_fail;
d14a1e28
RD
15589 }
15590 {
15591 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 15592 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
d14a1e28
RD
15593
15594 wxPyEndAllowThreads(__tstate);
15595 if (PyErr_Occurred()) SWIG_fail;
15596 }
093d3ff1
RD
15597 {
15598 resultobj = SWIG_From_int((int)(result));
15599 }
d14a1e28
RD
15600 return resultobj;
15601 fail:
15602 return NULL;
15603}
15604
15605
093d3ff1 15606static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
15607 PyObject *resultobj;
15608 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 15609 int arg2 ;
d14a1e28
RD
15610 int result;
15611 PyObject * obj0 = 0 ;
093d3ff1 15612 PyObject * obj1 = 0 ;
d14a1e28 15613 char *kwnames[] = {
093d3ff1 15614 (char *) "self",(char *) "x", NULL
d14a1e28
RD
15615 };
15616
093d3ff1
RD
15617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
15618 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15619 if (SWIG_arg_fail(1)) SWIG_fail;
15620 {
15621 arg2 = (int)(SWIG_As_int(obj1));
15622 if (SWIG_arg_fail(2)) SWIG_fail;
15623 }
d14a1e28
RD
15624 {
15625 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 15626 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
d14a1e28
RD
15627
15628 wxPyEndAllowThreads(__tstate);
15629 if (PyErr_Occurred()) SWIG_fail;
15630 }
093d3ff1
RD
15631 {
15632 resultobj = SWIG_From_int((int)(result));
15633 }
d14a1e28
RD
15634 return resultobj;
15635 fail:
15636 return NULL;
15637}
15638
15639
093d3ff1 15640static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
15641 PyObject *resultobj;
15642 wxDC *arg1 = (wxDC *) 0 ;
15643 int arg2 ;
093d3ff1 15644 int result;
d14a1e28 15645 PyObject * obj0 = 0 ;
994141e6 15646 PyObject * obj1 = 0 ;
d14a1e28 15647 char *kwnames[] = {
093d3ff1 15648 (char *) "self",(char *) "y", NULL
d14a1e28
RD
15649 };
15650
093d3ff1
RD
15651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
15652 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15653 if (SWIG_arg_fail(1)) SWIG_fail;
15654 {
15655 arg2 = (int)(SWIG_As_int(obj1));
15656 if (SWIG_arg_fail(2)) SWIG_fail;
15657 }
d14a1e28
RD
15658 {
15659 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 15660 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
d14a1e28
RD
15661
15662 wxPyEndAllowThreads(__tstate);
15663 if (PyErr_Occurred()) SWIG_fail;
15664 }
093d3ff1
RD
15665 {
15666 resultobj = SWIG_From_int((int)(result));
15667 }
d14a1e28
RD
15668 return resultobj;
15669 fail:
15670 return NULL;
15671}
15672
15673
093d3ff1 15674static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
15675 PyObject *resultobj;
15676 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
15677 int arg2 ;
15678 int result;
d14a1e28 15679 PyObject * obj0 = 0 ;
093d3ff1 15680 PyObject * obj1 = 0 ;
d14a1e28 15681 char *kwnames[] = {
093d3ff1 15682 (char *) "self",(char *) "x", NULL
d14a1e28
RD
15683 };
15684
093d3ff1
RD
15685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
15686 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15687 if (SWIG_arg_fail(1)) SWIG_fail;
15688 {
15689 arg2 = (int)(SWIG_As_int(obj1));
15690 if (SWIG_arg_fail(2)) SWIG_fail;
15691 }
d14a1e28
RD
15692 {
15693 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 15694 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
d14a1e28
RD
15695
15696 wxPyEndAllowThreads(__tstate);
15697 if (PyErr_Occurred()) SWIG_fail;
15698 }
093d3ff1
RD
15699 {
15700 resultobj = SWIG_From_int((int)(result));
15701 }
d14a1e28
RD
15702 return resultobj;
15703 fail:
15704 return NULL;
15705}
15706
15707
093d3ff1 15708static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
15709 PyObject *resultobj;
15710 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
15711 int arg2 ;
15712 int result;
d14a1e28 15713 PyObject * obj0 = 0 ;
994141e6 15714 PyObject * obj1 = 0 ;
d14a1e28 15715 char *kwnames[] = {
093d3ff1 15716 (char *) "self",(char *) "y", NULL
d14a1e28
RD
15717 };
15718
093d3ff1
RD
15719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
15720 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15721 if (SWIG_arg_fail(1)) SWIG_fail;
15722 {
15723 arg2 = (int)(SWIG_As_int(obj1));
15724 if (SWIG_arg_fail(2)) SWIG_fail;
15725 }
d14a1e28
RD
15726 {
15727 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 15728 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
d14a1e28
RD
15729
15730 wxPyEndAllowThreads(__tstate);
15731 if (PyErr_Occurred()) SWIG_fail;
15732 }
093d3ff1
RD
15733 {
15734 resultobj = SWIG_From_int((int)(result));
15735 }
d14a1e28
RD
15736 return resultobj;
15737 fail:
15738 return NULL;
15739}
15740
15741
093d3ff1 15742static PyObject *_wrap_DC_CanDrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
15743 PyObject *resultobj;
15744 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 15745 bool result;
d14a1e28
RD
15746 PyObject * obj0 = 0 ;
15747 char *kwnames[] = {
15748 (char *) "self", NULL
15749 };
15750
093d3ff1
RD
15751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
15752 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15753 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
15754 {
15755 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 15756 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
d14a1e28
RD
15757
15758 wxPyEndAllowThreads(__tstate);
15759 if (PyErr_Occurred()) SWIG_fail;
15760 }
093d3ff1
RD
15761 {
15762 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15763 }
d14a1e28
RD
15764 return resultobj;
15765 fail:
15766 return NULL;
15767}
15768
15769
093d3ff1 15770static PyObject *_wrap_DC_CanGetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
15771 PyObject *resultobj;
15772 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 15773 bool result;
d14a1e28
RD
15774 PyObject * obj0 = 0 ;
15775 char *kwnames[] = {
093d3ff1 15776 (char *) "self", NULL
d14a1e28
RD
15777 };
15778
093d3ff1
RD
15779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
15780 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15781 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
15782 {
15783 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 15784 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
d14a1e28
RD
15785
15786 wxPyEndAllowThreads(__tstate);
15787 if (PyErr_Occurred()) SWIG_fail;
15788 }
093d3ff1
RD
15789 {
15790 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15791 }
d14a1e28
RD
15792 return resultobj;
15793 fail:
15794 return NULL;
15795}
15796
15797
093d3ff1 15798static PyObject *_wrap_DC_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
15799 PyObject *resultobj;
15800 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 15801 int result;
d14a1e28
RD
15802 PyObject * obj0 = 0 ;
15803 char *kwnames[] = {
15804 (char *) "self", NULL
15805 };
15806
093d3ff1
RD
15807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
15808 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15809 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
15810 {
15811 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 15812 result = (int)((wxDC const *)arg1)->GetDepth();
d14a1e28
RD
15813
15814 wxPyEndAllowThreads(__tstate);
15815 if (PyErr_Occurred()) SWIG_fail;
15816 }
d14a1e28 15817 {
093d3ff1 15818 resultobj = SWIG_From_int((int)(result));
d14a1e28
RD
15819 }
15820 return resultobj;
15821 fail:
15822 return NULL;
15823}
15824
15825
093d3ff1 15826static PyObject *_wrap_DC_GetPPI(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
15827 PyObject *resultobj;
15828 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 15829 wxSize result;
d14a1e28
RD
15830 PyObject * obj0 = 0 ;
15831 char *kwnames[] = {
15832 (char *) "self", NULL
15833 };
15834
093d3ff1
RD
15835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
15836 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15837 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
15838 {
15839 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 15840 result = ((wxDC const *)arg1)->GetPPI();
d14a1e28
RD
15841
15842 wxPyEndAllowThreads(__tstate);
15843 if (PyErr_Occurred()) SWIG_fail;
15844 }
093d3ff1
RD
15845 {
15846 wxSize * resultptr;
15847 resultptr = new wxSize((wxSize &)(result));
15848 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
15849 }
d14a1e28
RD
15850 return resultobj;
15851 fail:
15852 return NULL;
15853}
15854
15855
093d3ff1 15856static PyObject *_wrap_DC_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
15857 PyObject *resultobj;
15858 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 15859 bool result;
d14a1e28
RD
15860 PyObject * obj0 = 0 ;
15861 char *kwnames[] = {
093d3ff1 15862 (char *) "self", NULL
d14a1e28
RD
15863 };
15864
093d3ff1
RD
15865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
15866 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15867 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
15868 {
15869 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 15870 result = (bool)((wxDC const *)arg1)->Ok();
d14a1e28
RD
15871
15872 wxPyEndAllowThreads(__tstate);
15873 if (PyErr_Occurred()) SWIG_fail;
15874 }
093d3ff1
RD
15875 {
15876 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15877 }
15878 return resultobj;
d14a1e28
RD
15879 fail:
15880 return NULL;
15881}
15882
15883
093d3ff1 15884static PyObject *_wrap_DC_GetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) {
03e37cd5
RD
15885 PyObject *resultobj;
15886 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 15887 int result;
03e37cd5 15888 PyObject * obj0 = 0 ;
03e37cd5 15889 char *kwnames[] = {
093d3ff1 15890 (char *) "self", NULL
03e37cd5
RD
15891 };
15892
093d3ff1
RD
15893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
15894 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15895 if (SWIG_arg_fail(1)) SWIG_fail;
03e37cd5
RD
15896 {
15897 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 15898 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
03e37cd5
RD
15899
15900 wxPyEndAllowThreads(__tstate);
15901 if (PyErr_Occurred()) SWIG_fail;
15902 }
093d3ff1
RD
15903 {
15904 resultobj = SWIG_From_int((int)(result));
15905 }
03e37cd5
RD
15906 return resultobj;
15907 fail:
15908 return NULL;
15909}
15910
15911
093d3ff1 15912static PyObject *_wrap_DC_GetBackground(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
15913 PyObject *resultobj;
15914 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 15915 wxBrush *result;
d14a1e28
RD
15916 PyObject * obj0 = 0 ;
15917 char *kwnames[] = {
15918 (char *) "self", NULL
15919 };
15920
093d3ff1
RD
15921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
15922 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15923 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
15924 {
15925 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1
RD
15926 {
15927 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
15928 result = (wxBrush *) &_result_ref;
15929 }
d14a1e28
RD
15930
15931 wxPyEndAllowThreads(__tstate);
15932 if (PyErr_Occurred()) SWIG_fail;
15933 }
d14a1e28 15934 {
093d3ff1
RD
15935 wxBrush* resultptr = new wxBrush(*result);
15936 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
d14a1e28
RD
15937 }
15938 return resultobj;
15939 fail:
15940 return NULL;
15941}
15942
15943
093d3ff1 15944static PyObject *_wrap_DC_GetBrush(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
15945 PyObject *resultobj;
15946 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 15947 wxBrush *result;
d14a1e28
RD
15948 PyObject * obj0 = 0 ;
15949 char *kwnames[] = {
15950 (char *) "self", NULL
15951 };
15952
093d3ff1
RD
15953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
15954 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15955 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
15956 {
15957 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1
RD
15958 {
15959 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
15960 result = (wxBrush *) &_result_ref;
15961 }
d14a1e28
RD
15962
15963 wxPyEndAllowThreads(__tstate);
15964 if (PyErr_Occurred()) SWIG_fail;
15965 }
093d3ff1
RD
15966 {
15967 wxBrush* resultptr = new wxBrush(*result);
15968 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
15969 }
d14a1e28
RD
15970 return resultobj;
15971 fail:
15972 return NULL;
15973}
15974
15975
093d3ff1 15976static PyObject *_wrap_DC_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
15977 PyObject *resultobj;
15978 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 15979 wxFont *result;
d14a1e28
RD
15980 PyObject * obj0 = 0 ;
15981 char *kwnames[] = {
093d3ff1 15982 (char *) "self", NULL
d14a1e28
RD
15983 };
15984
093d3ff1
RD
15985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
15986 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15987 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
15988 {
15989 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1
RD
15990 {
15991 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
15992 result = (wxFont *) &_result_ref;
15993 }
d14a1e28
RD
15994
15995 wxPyEndAllowThreads(__tstate);
15996 if (PyErr_Occurred()) SWIG_fail;
15997 }
093d3ff1
RD
15998 {
15999 wxFont* resultptr = new wxFont(*result);
16000 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
16001 }
d14a1e28
RD
16002 return resultobj;
16003 fail:
16004 return NULL;
16005}
16006
16007
093d3ff1 16008static PyObject *_wrap_DC_GetPen(PyObject *, PyObject *args, PyObject *kwargs) {
03e37cd5
RD
16009 PyObject *resultobj;
16010 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 16011 wxPen *result;
03e37cd5 16012 PyObject * obj0 = 0 ;
03e37cd5 16013 char *kwnames[] = {
093d3ff1 16014 (char *) "self", NULL
03e37cd5
RD
16015 };
16016
093d3ff1
RD
16017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
16018 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16019 if (SWIG_arg_fail(1)) SWIG_fail;
03e37cd5
RD
16020 {
16021 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1
RD
16022 {
16023 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
16024 result = (wxPen *) &_result_ref;
16025 }
03e37cd5
RD
16026
16027 wxPyEndAllowThreads(__tstate);
16028 if (PyErr_Occurred()) SWIG_fail;
16029 }
093d3ff1
RD
16030 {
16031 wxPen* resultptr = new wxPen(*result);
16032 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
16033 }
03e37cd5
RD
16034 return resultobj;
16035 fail:
16036 return NULL;
16037}
16038
16039
093d3ff1 16040static PyObject *_wrap_DC_GetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
16041 PyObject *resultobj;
16042 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 16043 wxColour *result;
d14a1e28 16044 PyObject * obj0 = 0 ;
d14a1e28 16045 char *kwnames[] = {
093d3ff1 16046 (char *) "self", NULL
d14a1e28
RD
16047 };
16048
093d3ff1
RD
16049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
16050 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16051 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
16052 {
16053 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1
RD
16054 {
16055 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
16056 result = (wxColour *) &_result_ref;
16057 }
d14a1e28
RD
16058
16059 wxPyEndAllowThreads(__tstate);
16060 if (PyErr_Occurred()) SWIG_fail;
16061 }
093d3ff1 16062 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
16063 return resultobj;
16064 fail:
16065 return NULL;
16066}
16067
16068
093d3ff1 16069static PyObject *_wrap_DC_GetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
16070 PyObject *resultobj;
16071 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 16072 wxColour *result;
d14a1e28
RD
16073 PyObject * obj0 = 0 ;
16074 char *kwnames[] = {
16075 (char *) "self", NULL
16076 };
16077
093d3ff1
RD
16078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
16079 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16080 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
16081 {
16082 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1
RD
16083 {
16084 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
16085 result = (wxColour *) &_result_ref;
16086 }
d14a1e28
RD
16087
16088 wxPyEndAllowThreads(__tstate);
16089 if (PyErr_Occurred()) SWIG_fail;
16090 }
093d3ff1 16091 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
16092 return resultobj;
16093 fail:
16094 return NULL;
16095}
16096
16097
093d3ff1 16098static PyObject *_wrap_DC_SetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
16099 PyObject *resultobj;
16100 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
16101 wxColour *arg2 = 0 ;
16102 wxColour temp2 ;
d14a1e28 16103 PyObject * obj0 = 0 ;
994141e6 16104 PyObject * obj1 = 0 ;
d14a1e28 16105 char *kwnames[] = {
093d3ff1 16106 (char *) "self",(char *) "colour", NULL
d14a1e28
RD
16107 };
16108
093d3ff1
RD
16109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
16110 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16111 if (SWIG_arg_fail(1)) SWIG_fail;
16112 {
16113 arg2 = &temp2;
16114 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16115 }
d14a1e28
RD
16116 {
16117 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 16118 (arg1)->SetTextForeground((wxColour const &)*arg2);
d14a1e28
RD
16119
16120 wxPyEndAllowThreads(__tstate);
16121 if (PyErr_Occurred()) SWIG_fail;
16122 }
16123 Py_INCREF(Py_None); resultobj = Py_None;
16124 return resultobj;
16125 fail:
16126 return NULL;
16127}
16128
16129
093d3ff1 16130static PyObject *_wrap_DC_SetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
16131 PyObject *resultobj;
16132 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
16133 wxColour *arg2 = 0 ;
16134 wxColour temp2 ;
d14a1e28 16135 PyObject * obj0 = 0 ;
093d3ff1 16136 PyObject * obj1 = 0 ;
d14a1e28 16137 char *kwnames[] = {
093d3ff1 16138 (char *) "self",(char *) "colour", NULL
d14a1e28
RD
16139 };
16140
093d3ff1
RD
16141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
16142 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16143 if (SWIG_arg_fail(1)) SWIG_fail;
16144 {
16145 arg2 = &temp2;
16146 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16147 }
d14a1e28
RD
16148 {
16149 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 16150 (arg1)->SetTextBackground((wxColour const &)*arg2);
d14a1e28
RD
16151
16152 wxPyEndAllowThreads(__tstate);
16153 if (PyErr_Occurred()) SWIG_fail;
16154 }
5cbf236d 16155 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
16156 return resultobj;
16157 fail:
16158 return NULL;
16159}
16160
16161
093d3ff1 16162static PyObject *_wrap_DC_GetMapMode(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
16163 PyObject *resultobj;
16164 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 16165 int result;
d14a1e28
RD
16166 PyObject * obj0 = 0 ;
16167 char *kwnames[] = {
093d3ff1 16168 (char *) "self", NULL
d14a1e28
RD
16169 };
16170
093d3ff1
RD
16171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
16172 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16173 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
16174 {
16175 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 16176 result = (int)((wxDC const *)arg1)->GetMapMode();
d14a1e28
RD
16177
16178 wxPyEndAllowThreads(__tstate);
16179 if (PyErr_Occurred()) SWIG_fail;
16180 }
093d3ff1
RD
16181 {
16182 resultobj = SWIG_From_int((int)(result));
16183 }
d14a1e28
RD
16184 return resultobj;
16185 fail:
16186 return NULL;
16187}
16188
16189
093d3ff1 16190static PyObject *_wrap_DC_SetMapMode(PyObject *, PyObject *args, PyObject *kwargs) {
03e37cd5
RD
16191 PyObject *resultobj;
16192 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 16193 int arg2 ;
03e37cd5
RD
16194 PyObject * obj0 = 0 ;
16195 PyObject * obj1 = 0 ;
16196 char *kwnames[] = {
093d3ff1 16197 (char *) "self",(char *) "mode", NULL
03e37cd5
RD
16198 };
16199
093d3ff1
RD
16200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
16201 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16202 if (SWIG_arg_fail(1)) SWIG_fail;
03e37cd5 16203 {
093d3ff1
RD
16204 arg2 = (int)(SWIG_As_int(obj1));
16205 if (SWIG_arg_fail(2)) SWIG_fail;
03e37cd5
RD
16206 }
16207 {
16208 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 16209 (arg1)->SetMapMode(arg2);
03e37cd5
RD
16210
16211 wxPyEndAllowThreads(__tstate);
16212 if (PyErr_Occurred()) SWIG_fail;
16213 }
16214 Py_INCREF(Py_None); resultobj = Py_None;
16215 return resultobj;
16216 fail:
16217 return NULL;
16218}
16219
16220
093d3ff1 16221static PyObject *_wrap_DC_GetUserScale(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
16222 PyObject *resultobj;
16223 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
16224 double *arg2 = (double *) 0 ;
16225 double *arg3 = (double *) 0 ;
16226 double temp2 ;
16227 int res2 = 0 ;
16228 double temp3 ;
16229 int res3 = 0 ;
d14a1e28
RD
16230 PyObject * obj0 = 0 ;
16231 char *kwnames[] = {
16232 (char *) "self", NULL
16233 };
16234
093d3ff1
RD
16235 arg2 = &temp2; res2 = SWIG_NEWOBJ;
16236 arg3 = &temp3; res3 = SWIG_NEWOBJ;
16237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
16238 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16239 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
16240 {
16241 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 16242 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
d14a1e28
RD
16243
16244 wxPyEndAllowThreads(__tstate);
16245 if (PyErr_Occurred()) SWIG_fail;
16246 }
16247 Py_INCREF(Py_None); resultobj = Py_None;
093d3ff1
RD
16248 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
16249 SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0)));
16250 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
16251 SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0)));
d14a1e28
RD
16252 return resultobj;
16253 fail:
16254 return NULL;
16255}
16256
16257
093d3ff1 16258static PyObject *_wrap_DC_SetUserScale(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
16259 PyObject *resultobj;
16260 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
16261 double arg2 ;
16262 double arg3 ;
d14a1e28 16263 PyObject * obj0 = 0 ;
093d3ff1
RD
16264 PyObject * obj1 = 0 ;
16265 PyObject * obj2 = 0 ;
d14a1e28 16266 char *kwnames[] = {
093d3ff1 16267 (char *) "self",(char *) "x",(char *) "y", NULL
d14a1e28
RD
16268 };
16269
093d3ff1
RD
16270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
16271 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16272 if (SWIG_arg_fail(1)) SWIG_fail;
16273 {
16274 arg2 = (double)(SWIG_As_double(obj1));
16275 if (SWIG_arg_fail(2)) SWIG_fail;
16276 }
16277 {
16278 arg3 = (double)(SWIG_As_double(obj2));
16279 if (SWIG_arg_fail(3)) SWIG_fail;
16280 }
d14a1e28
RD
16281 {
16282 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 16283 (arg1)->SetUserScale(arg2,arg3);
d14a1e28
RD
16284
16285 wxPyEndAllowThreads(__tstate);
16286 if (PyErr_Occurred()) SWIG_fail;
16287 }
093d3ff1 16288 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
16289 return resultobj;
16290 fail:
16291 return NULL;
16292}
16293
16294
093d3ff1 16295static PyObject *_wrap_DC_GetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
16296 PyObject *resultobj;
16297 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
16298 double *arg2 = (double *) 0 ;
16299 double *arg3 = (double *) 0 ;
16300 double temp2 ;
16301 int res2 = 0 ;
16302 double temp3 ;
16303 int res3 = 0 ;
d14a1e28
RD
16304 PyObject * obj0 = 0 ;
16305 char *kwnames[] = {
16306 (char *) "self", NULL
16307 };
16308
093d3ff1
RD
16309 arg2 = &temp2; res2 = SWIG_NEWOBJ;
16310 arg3 = &temp3; res3 = SWIG_NEWOBJ;
16311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
16312 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16313 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
16314 {
16315 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 16316 (arg1)->GetLogicalScale(arg2,arg3);
d14a1e28
RD
16317
16318 wxPyEndAllowThreads(__tstate);
16319 if (PyErr_Occurred()) SWIG_fail;
16320 }
093d3ff1
RD
16321 Py_INCREF(Py_None); resultobj = Py_None;
16322 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
16323 SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0)));
16324 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
16325 SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0)));
d14a1e28
RD
16326 return resultobj;
16327 fail:
16328 return NULL;
16329}
16330
16331
093d3ff1 16332static PyObject *_wrap_DC_SetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
16333 PyObject *resultobj;
16334 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
16335 double arg2 ;
16336 double arg3 ;
d14a1e28 16337 PyObject * obj0 = 0 ;
093d3ff1
RD
16338 PyObject * obj1 = 0 ;
16339 PyObject * obj2 = 0 ;
d14a1e28 16340 char *kwnames[] = {
093d3ff1 16341 (char *) "self",(char *) "x",(char *) "y", NULL
d14a1e28
RD
16342 };
16343
093d3ff1
RD
16344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
16345 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16346 if (SWIG_arg_fail(1)) SWIG_fail;
16347 {
16348 arg2 = (double)(SWIG_As_double(obj1));
16349 if (SWIG_arg_fail(2)) SWIG_fail;
16350 }
16351 {
16352 arg3 = (double)(SWIG_As_double(obj2));
16353 if (SWIG_arg_fail(3)) SWIG_fail;
16354 }
d14a1e28
RD
16355 {
16356 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 16357 (arg1)->SetLogicalScale(arg2,arg3);
d14a1e28
RD
16358
16359 wxPyEndAllowThreads(__tstate);
16360 if (PyErr_Occurred()) SWIG_fail;
16361 }
093d3ff1 16362 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
16363 return resultobj;
16364 fail:
16365 return NULL;
16366}
16367
16368
093d3ff1 16369static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
16370 PyObject *resultobj;
16371 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 16372 wxPoint result;
d14a1e28
RD
16373 PyObject * obj0 = 0 ;
16374 char *kwnames[] = {
16375 (char *) "self", NULL
16376 };
16377
093d3ff1
RD
16378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
16379 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16380 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
16381 {
16382 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 16383 result = ((wxDC const *)arg1)->GetLogicalOrigin();
d14a1e28
RD
16384
16385 wxPyEndAllowThreads(__tstate);
16386 if (PyErr_Occurred()) SWIG_fail;
16387 }
093d3ff1
RD
16388 {
16389 wxPoint * resultptr;
16390 resultptr = new wxPoint((wxPoint &)(result));
16391 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
16392 }
d14a1e28
RD
16393 return resultobj;
16394 fail:
16395 return NULL;
16396}
16397
16398
093d3ff1 16399static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
16400 PyObject *resultobj;
16401 wxDC *arg1 = (wxDC *) 0 ;
16402 int *arg2 = (int *) 0 ;
16403 int *arg3 = (int *) 0 ;
d14a1e28 16404 int temp2 ;
c32bde28 16405 int res2 = 0 ;
d14a1e28 16406 int temp3 ;
c32bde28 16407 int res3 = 0 ;
d14a1e28
RD
16408 PyObject * obj0 = 0 ;
16409 char *kwnames[] = {
16410 (char *) "self", NULL
16411 };
16412
c32bde28
RD
16413 arg2 = &temp2; res2 = SWIG_NEWOBJ;
16414 arg3 = &temp3; res3 = SWIG_NEWOBJ;
093d3ff1
RD
16415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
16416 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16417 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
16418 {
16419 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 16420 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
d14a1e28
RD
16421
16422 wxPyEndAllowThreads(__tstate);
16423 if (PyErr_Occurred()) SWIG_fail;
16424 }
16425 Py_INCREF(Py_None); resultobj = Py_None;
c32bde28
RD
16426 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
16427 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
16428 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
16429 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
d14a1e28
RD
16430 return resultobj;
16431 fail:
16432 return NULL;
16433}
16434
16435
093d3ff1 16436static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
16437 PyObject *resultobj;
16438 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
16439 int arg2 ;
16440 int arg3 ;
d14a1e28
RD
16441 PyObject * obj0 = 0 ;
16442 PyObject * obj1 = 0 ;
16443 PyObject * obj2 = 0 ;
d14a1e28 16444 char *kwnames[] = {
093d3ff1 16445 (char *) "self",(char *) "x",(char *) "y", NULL
d14a1e28
RD
16446 };
16447
093d3ff1
RD
16448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
16449 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16450 if (SWIG_arg_fail(1)) SWIG_fail;
16451 {
16452 arg2 = (int)(SWIG_As_int(obj1));
16453 if (SWIG_arg_fail(2)) SWIG_fail;
16454 }
16455 {
16456 arg3 = (int)(SWIG_As_int(obj2));
16457 if (SWIG_arg_fail(3)) SWIG_fail;
16458 }
d14a1e28
RD
16459 {
16460 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 16461 (arg1)->SetLogicalOrigin(arg2,arg3);
d14a1e28
RD
16462
16463 wxPyEndAllowThreads(__tstate);
16464 if (PyErr_Occurred()) SWIG_fail;
16465 }
093d3ff1 16466 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
16467 return resultobj;
16468 fail:
16469 return NULL;
16470}
16471
16472
093d3ff1 16473static PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
16474 PyObject *resultobj;
16475 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
16476 wxPoint *arg2 = 0 ;
16477 wxPoint temp2 ;
d14a1e28
RD
16478 PyObject * obj0 = 0 ;
16479 PyObject * obj1 = 0 ;
d14a1e28 16480 char *kwnames[] = {
093d3ff1 16481 (char *) "self",(char *) "point", NULL
d14a1e28
RD
16482 };
16483
093d3ff1
RD
16484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) goto fail;
16485 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16486 if (SWIG_arg_fail(1)) SWIG_fail;
16487 {
16488 arg2 = &temp2;
16489 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16490 }
d14a1e28
RD
16491 {
16492 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 16493 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
d14a1e28
RD
16494
16495 wxPyEndAllowThreads(__tstate);
16496 if (PyErr_Occurred()) SWIG_fail;
16497 }
093d3ff1 16498 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
16499 return resultobj;
16500 fail:
16501 return NULL;
16502}
16503
16504
093d3ff1 16505static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
16506 PyObject *resultobj;
16507 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 16508 wxPoint result;
d14a1e28 16509 PyObject * obj0 = 0 ;
d14a1e28 16510 char *kwnames[] = {
093d3ff1 16511 (char *) "self", NULL
d14a1e28
RD
16512 };
16513
093d3ff1
RD
16514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
16515 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16516 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
16517 {
16518 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 16519 result = ((wxDC const *)arg1)->GetDeviceOrigin();
d14a1e28
RD
16520
16521 wxPyEndAllowThreads(__tstate);
16522 if (PyErr_Occurred()) SWIG_fail;
16523 }
093d3ff1
RD
16524 {
16525 wxPoint * resultptr;
16526 resultptr = new wxPoint((wxPoint &)(result));
16527 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
16528 }
d14a1e28
RD
16529 return resultobj;
16530 fail:
16531 return NULL;
16532}
16533
16534
093d3ff1 16535static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
16536 PyObject *resultobj;
16537 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
16538 int *arg2 = (int *) 0 ;
16539 int *arg3 = (int *) 0 ;
16540 int temp2 ;
16541 int res2 = 0 ;
16542 int temp3 ;
16543 int res3 = 0 ;
d14a1e28 16544 PyObject * obj0 = 0 ;
d14a1e28 16545 char *kwnames[] = {
093d3ff1 16546 (char *) "self", NULL
d14a1e28
RD
16547 };
16548
093d3ff1
RD
16549 arg2 = &temp2; res2 = SWIG_NEWOBJ;
16550 arg3 = &temp3; res3 = SWIG_NEWOBJ;
16551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
16552 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16553 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
16554 {
16555 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 16556 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
d14a1e28
RD
16557
16558 wxPyEndAllowThreads(__tstate);
16559 if (PyErr_Occurred()) SWIG_fail;
16560 }
093d3ff1
RD
16561 Py_INCREF(Py_None); resultobj = Py_None;
16562 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
16563 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
16564 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
16565 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
d14a1e28
RD
16566 return resultobj;
16567 fail:
16568 return NULL;
16569}
16570
16571
093d3ff1 16572static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
16573 PyObject *resultobj;
16574 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
16575 int arg2 ;
16576 int arg3 ;
d14a1e28
RD
16577 PyObject * obj0 = 0 ;
16578 PyObject * obj1 = 0 ;
16579 PyObject * obj2 = 0 ;
d14a1e28 16580 char *kwnames[] = {
093d3ff1 16581 (char *) "self",(char *) "x",(char *) "y", NULL
d14a1e28
RD
16582 };
16583
093d3ff1
RD
16584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
16585 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16586 if (SWIG_arg_fail(1)) SWIG_fail;
16587 {
16588 arg2 = (int)(SWIG_As_int(obj1));
16589 if (SWIG_arg_fail(2)) SWIG_fail;
16590 }
16591 {
16592 arg3 = (int)(SWIG_As_int(obj2));
16593 if (SWIG_arg_fail(3)) SWIG_fail;
16594 }
d14a1e28
RD
16595 {
16596 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 16597 (arg1)->SetDeviceOrigin(arg2,arg3);
d14a1e28
RD
16598
16599 wxPyEndAllowThreads(__tstate);
16600 if (PyErr_Occurred()) SWIG_fail;
16601 }
093d3ff1 16602 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
16603 return resultobj;
16604 fail:
16605 return NULL;
16606}
16607
16608
093d3ff1 16609static PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
16610 PyObject *resultobj;
16611 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
16612 wxPoint *arg2 = 0 ;
16613 wxPoint temp2 ;
d14a1e28
RD
16614 PyObject * obj0 = 0 ;
16615 PyObject * obj1 = 0 ;
d14a1e28 16616 char *kwnames[] = {
093d3ff1 16617 (char *) "self",(char *) "point", NULL
d14a1e28
RD
16618 };
16619
093d3ff1
RD
16620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) goto fail;
16621 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16622 if (SWIG_arg_fail(1)) SWIG_fail;
16623 {
16624 arg2 = &temp2;
16625 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16626 }
d14a1e28
RD
16627 {
16628 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 16629 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
d14a1e28
RD
16630
16631 wxPyEndAllowThreads(__tstate);
16632 if (PyErr_Occurred()) SWIG_fail;
16633 }
093d3ff1 16634 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
16635 return resultobj;
16636 fail:
16637 return NULL;
16638}
16639
16640
093d3ff1 16641static PyObject *_wrap_DC_SetAxisOrientation(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 16642 PyObject *resultobj;
093d3ff1
RD
16643 wxDC *arg1 = (wxDC *) 0 ;
16644 bool arg2 ;
16645 bool arg3 ;
16646 PyObject * obj0 = 0 ;
16647 PyObject * obj1 = 0 ;
16648 PyObject * obj2 = 0 ;
d14a1e28 16649 char *kwnames[] = {
093d3ff1 16650 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
d14a1e28
RD
16651 };
16652
093d3ff1
RD
16653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
16654 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16655 if (SWIG_arg_fail(1)) SWIG_fail;
16656 {
16657 arg2 = (bool)(SWIG_As_bool(obj1));
16658 if (SWIG_arg_fail(2)) SWIG_fail;
16659 }
16660 {
16661 arg3 = (bool)(SWIG_As_bool(obj2));
16662 if (SWIG_arg_fail(3)) SWIG_fail;
16663 }
d14a1e28
RD
16664 {
16665 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 16666 (arg1)->SetAxisOrientation(arg2,arg3);
d14a1e28
RD
16667
16668 wxPyEndAllowThreads(__tstate);
110da5b0 16669 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 16670 }
093d3ff1 16671 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
16672 return resultobj;
16673 fail:
16674 return NULL;
16675}
16676
16677
093d3ff1 16678static PyObject *_wrap_DC_GetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
16679 PyObject *resultobj;
16680 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1 16681 int result;
d14a1e28
RD
16682 PyObject * obj0 = 0 ;
16683 char *kwnames[] = {
093d3ff1 16684 (char *) "self", NULL
d14a1e28
RD
16685 };
16686
093d3ff1
RD
16687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
16688 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16689 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
16690 {
16691 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 16692 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
d14a1e28
RD
16693
16694 wxPyEndAllowThreads(__tstate);
110da5b0 16695 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 16696 }
093d3ff1
RD
16697 {
16698 resultobj = SWIG_From_int((int)(result));
16699 }
d14a1e28
RD
16700 return resultobj;
16701 fail:
16702 return NULL;
16703}
16704
16705
093d3ff1 16706static PyObject *_wrap_DC_SetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 16707 PyObject *resultobj;
093d3ff1
RD
16708 wxDC *arg1 = (wxDC *) 0 ;
16709 int arg2 ;
d14a1e28
RD
16710 PyObject * obj0 = 0 ;
16711 PyObject * obj1 = 0 ;
16712 char *kwnames[] = {
093d3ff1 16713 (char *) "self",(char *) "function", NULL
d14a1e28
RD
16714 };
16715
093d3ff1
RD
16716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
16717 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16718 if (SWIG_arg_fail(1)) SWIG_fail;
16719 {
16720 arg2 = (int)(SWIG_As_int(obj1));
16721 if (SWIG_arg_fail(2)) SWIG_fail;
d14a1e28
RD
16722 }
16723 {
16724 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 16725 (arg1)->SetLogicalFunction(arg2);
d14a1e28
RD
16726
16727 wxPyEndAllowThreads(__tstate);
16728 if (PyErr_Occurred()) SWIG_fail;
16729 }
16730 Py_INCREF(Py_None); resultobj = Py_None;
16731 return resultobj;
16732 fail:
16733 return NULL;
16734}
16735
16736
093d3ff1 16737static PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
16738 PyObject *resultobj;
16739 wxDC *arg1 = (wxDC *) 0 ;
d14a1e28 16740 PyObject * obj0 = 0 ;
093d3ff1
RD
16741 char *kwnames[] = {
16742 (char *) "self", NULL
16743 };
d14a1e28 16744
093d3ff1
RD
16745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ComputeScaleAndOrigin",kwnames,&obj0)) goto fail;
16746 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16747 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
16748 {
16749 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 16750 (arg1)->ComputeScaleAndOrigin();
d14a1e28
RD
16751
16752 wxPyEndAllowThreads(__tstate);
110da5b0 16753 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 16754 }
093d3ff1 16755 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
16756 return resultobj;
16757 fail:
16758 return NULL;
16759}
16760
16761
093d3ff1 16762static PyObject *_wrap_DC_CalcBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
16763 PyObject *resultobj;
16764 wxDC *arg1 = (wxDC *) 0 ;
093d3ff1
RD
16765 int arg2 ;
16766 int arg3 ;
d14a1e28
RD
16767 PyObject * obj0 = 0 ;
16768 PyObject * obj1 = 0 ;
093d3ff1
RD
16769 PyObject * obj2 = 0 ;
16770 char *kwnames[] = {
16771 (char *) "self",(char *) "x",(char *) "y", NULL
16772 };
3adfb63b 16773
093d3ff1
RD
16774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
16775 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16776 if (SWIG_arg_fail(1)) SWIG_fail;
3adfb63b 16777 {
093d3ff1
RD
16778 arg2 = (int)(SWIG_As_int(obj1));
16779 if (SWIG_arg_fail(2)) SWIG_fail;
16780 }
16781 {
16782 arg3 = (int)(SWIG_As_int(obj2));
16783 if (SWIG_arg_fail(3)) SWIG_fail;
3adfb63b 16784 }
3adfb63b
RD
16785 {
16786 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 16787 (arg1)->CalcBoundingBox(arg2,arg3);
3adfb63b
RD
16788
16789 wxPyEndAllowThreads(__tstate);
110da5b0 16790 if (PyErr_Occurred()) SWIG_fail;
3adfb63b 16791 }
093d3ff1 16792 Py_INCREF(Py_None); resultobj = Py_None;
3adfb63b
RD
16793 return resultobj;
16794 fail:
16795 return NULL;
16796}
16797
16798
093d3ff1 16799static PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 16800 PyObject *resultobj;
093d3ff1
RD
16801 wxDC *arg1 = (wxDC *) 0 ;
16802 wxPoint *arg2 = 0 ;
16803 wxPoint temp2 ;
d14a1e28 16804 PyObject * obj0 = 0 ;
093d3ff1 16805 PyObject * obj1 = 0 ;
d14a1e28 16806 char *kwnames[] = {
093d3ff1 16807 (char *) "self",(char *) "point", NULL
d14a1e28
RD
16808 };
16809
093d3ff1
RD
16810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) goto fail;
16811 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16812 if (SWIG_arg_fail(1)) SWIG_fail;
16813 {
16814 arg2 = &temp2;
16815 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16816 }
d14a1e28
RD
16817 {
16818 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 16819 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
d14a1e28
RD
16820
16821 wxPyEndAllowThreads(__tstate);
16822 if (PyErr_Occurred()) SWIG_fail;
16823 }
16824 Py_INCREF(Py_None); resultobj = Py_None;
16825 return resultobj;
16826 fail:
16827 return NULL;
16828}
16829
16830
093d3ff1 16831static PyObject *_wrap_DC_ResetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 16832 PyObject *resultobj;
093d3ff1 16833 wxDC *arg1 = (wxDC *) 0 ;
3adfb63b 16834 PyObject * obj0 = 0 ;
e498079e
RD
16835 char *kwnames[] = {
16836 (char *) "self", NULL
16837 };
3adfb63b 16838
093d3ff1
RD
16839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
16840 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16841 if (SWIG_arg_fail(1)) SWIG_fail;
3adfb63b
RD
16842 {
16843 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 16844 (arg1)->ResetBoundingBox();
3adfb63b
RD
16845
16846 wxPyEndAllowThreads(__tstate);
16847 if (PyErr_Occurred()) SWIG_fail;
16848 }
e498079e 16849 Py_INCREF(Py_None); resultobj = Py_None;
3adfb63b
RD
16850 return resultobj;
16851 fail:
16852 return NULL;
16853}
16854
16855
093d3ff1 16856static PyObject *_wrap_DC_MinX(PyObject *, PyObject *args, PyObject *kwargs) {
3adfb63b 16857 PyObject *resultobj;
093d3ff1
RD
16858 wxDC *arg1 = (wxDC *) 0 ;
16859 int result;
d14a1e28 16860 PyObject * obj0 = 0 ;
e498079e 16861 char *kwnames[] = {
093d3ff1 16862 (char *) "self", NULL
e498079e 16863 };
d14a1e28 16864
093d3ff1
RD
16865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
16866 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16867 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
16868 {
16869 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 16870 result = (int)((wxDC const *)arg1)->MinX();
d14a1e28
RD
16871
16872 wxPyEndAllowThreads(__tstate);
110da5b0 16873 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 16874 }
093d3ff1
RD
16875 {
16876 resultobj = SWIG_From_int((int)(result));
16877 }
d14a1e28
RD
16878 return resultobj;
16879 fail:
16880 return NULL;
16881}
16882
16883
093d3ff1 16884static PyObject *_wrap_DC_MaxX(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 16885 PyObject *resultobj;
093d3ff1
RD
16886 wxDC *arg1 = (wxDC *) 0 ;
16887 int result;
16888 PyObject * obj0 = 0 ;
d14a1e28 16889 char *kwnames[] = {
093d3ff1 16890 (char *) "self", NULL
d14a1e28
RD
16891 };
16892
093d3ff1
RD
16893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
16894 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16895 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
16896 {
16897 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 16898 result = (int)((wxDC const *)arg1)->MaxX();
d14a1e28
RD
16899
16900 wxPyEndAllowThreads(__tstate);
110da5b0 16901 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 16902 }
093d3ff1
RD
16903 {
16904 resultobj = SWIG_From_int((int)(result));
16905 }
d14a1e28
RD
16906 return resultobj;
16907 fail:
16908 return NULL;
16909}
16910
16911
093d3ff1 16912static PyObject *_wrap_DC_MinY(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 16913 PyObject *resultobj;
093d3ff1
RD
16914 wxDC *arg1 = (wxDC *) 0 ;
16915 int result;
d14a1e28 16916 PyObject * obj0 = 0 ;
d14a1e28 16917 char *kwnames[] = {
093d3ff1 16918 (char *) "self", NULL
d14a1e28
RD
16919 };
16920
093d3ff1
RD
16921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
16922 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16923 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
16924 {
16925 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 16926 result = (int)((wxDC const *)arg1)->MinY();
d14a1e28
RD
16927
16928 wxPyEndAllowThreads(__tstate);
16929 if (PyErr_Occurred()) SWIG_fail;
16930 }
4f89f6a3 16931 {
093d3ff1 16932 resultobj = SWIG_From_int((int)(result));
4f89f6a3 16933 }
d14a1e28
RD
16934 return resultobj;
16935 fail:
16936 return NULL;
16937}
16938
16939
093d3ff1 16940static PyObject *_wrap_DC_MaxY(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 16941 PyObject *resultobj;
093d3ff1
RD
16942 wxDC *arg1 = (wxDC *) 0 ;
16943 int result;
d14a1e28 16944 PyObject * obj0 = 0 ;
d14a1e28 16945 char *kwnames[] = {
093d3ff1 16946 (char *) "self", NULL
d14a1e28
RD
16947 };
16948
093d3ff1
RD
16949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
16950 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16951 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
16952 {
16953 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 16954 result = (int)((wxDC const *)arg1)->MaxY();
d14a1e28
RD
16955
16956 wxPyEndAllowThreads(__tstate);
16957 if (PyErr_Occurred()) SWIG_fail;
16958 }
4f89f6a3 16959 {
093d3ff1 16960 resultobj = SWIG_From_int((int)(result));
4f89f6a3 16961 }
d14a1e28
RD
16962 return resultobj;
16963 fail:
16964 return NULL;
16965}
16966
16967
093d3ff1 16968static PyObject *_wrap_DC_GetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 16969 PyObject *resultobj;
093d3ff1
RD
16970 wxDC *arg1 = (wxDC *) 0 ;
16971 int *arg2 = (int *) 0 ;
16972 int *arg3 = (int *) 0 ;
16973 int *arg4 = (int *) 0 ;
16974 int *arg5 = (int *) 0 ;
16975 int temp2 ;
16976 int res2 = 0 ;
16977 int temp3 ;
16978 int res3 = 0 ;
16979 int temp4 ;
16980 int res4 = 0 ;
16981 int temp5 ;
16982 int res5 = 0 ;
d14a1e28
RD
16983 PyObject * obj0 = 0 ;
16984 char *kwnames[] = {
16985 (char *) "self", NULL
16986 };
16987
093d3ff1
RD
16988 arg2 = &temp2; res2 = SWIG_NEWOBJ;
16989 arg3 = &temp3; res3 = SWIG_NEWOBJ;
16990 arg4 = &temp4; res4 = SWIG_NEWOBJ;
16991 arg5 = &temp5; res5 = SWIG_NEWOBJ;
16992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
16993 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16994 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
16995 {
16996 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 16997 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
d14a1e28
RD
16998
16999 wxPyEndAllowThreads(__tstate);
17000 if (PyErr_Occurred()) SWIG_fail;
17001 }
093d3ff1
RD
17002 Py_INCREF(Py_None); resultobj = Py_None;
17003 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
17004 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
17005 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
17006 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
17007 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
17008 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
17009 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
17010 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
d14a1e28
RD
17011 return resultobj;
17012 fail:
17013 return NULL;
17014}
17015
17016
093d3ff1 17017static PyObject *_wrap_DC__DrawPointList(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 17018 PyObject *resultobj;
093d3ff1
RD
17019 wxDC *arg1 = (wxDC *) 0 ;
17020 PyObject *arg2 = (PyObject *) 0 ;
17021 PyObject *arg3 = (PyObject *) 0 ;
17022 PyObject *arg4 = (PyObject *) 0 ;
17023 PyObject *result;
d14a1e28 17024 PyObject * obj0 = 0 ;
093d3ff1
RD
17025 PyObject * obj1 = 0 ;
17026 PyObject * obj2 = 0 ;
17027 PyObject * obj3 = 0 ;
d14a1e28 17028 char *kwnames[] = {
093d3ff1 17029 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
d14a1e28
RD
17030 };
17031
093d3ff1
RD
17032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17033 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17034 if (SWIG_arg_fail(1)) SWIG_fail;
17035 arg2 = obj1;
17036 arg3 = obj2;
17037 arg4 = obj3;
d14a1e28
RD
17038 {
17039 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17040 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
d14a1e28
RD
17041
17042 wxPyEndAllowThreads(__tstate);
110da5b0 17043 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 17044 }
093d3ff1 17045 resultobj = result;
d14a1e28
RD
17046 return resultobj;
17047 fail:
17048 return NULL;
17049}
17050
17051
093d3ff1 17052static PyObject *_wrap_DC__DrawLineList(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 17053 PyObject *resultobj;
093d3ff1
RD
17054 wxDC *arg1 = (wxDC *) 0 ;
17055 PyObject *arg2 = (PyObject *) 0 ;
17056 PyObject *arg3 = (PyObject *) 0 ;
17057 PyObject *arg4 = (PyObject *) 0 ;
17058 PyObject *result;
d14a1e28 17059 PyObject * obj0 = 0 ;
093d3ff1
RD
17060 PyObject * obj1 = 0 ;
17061 PyObject * obj2 = 0 ;
17062 PyObject * obj3 = 0 ;
d14a1e28 17063 char *kwnames[] = {
093d3ff1 17064 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
d14a1e28
RD
17065 };
17066
093d3ff1
RD
17067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17068 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17069 if (SWIG_arg_fail(1)) SWIG_fail;
17070 arg2 = obj1;
17071 arg3 = obj2;
17072 arg4 = obj3;
d14a1e28
RD
17073 {
17074 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17075 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
d14a1e28
RD
17076
17077 wxPyEndAllowThreads(__tstate);
110da5b0 17078 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 17079 }
093d3ff1 17080 resultobj = result;
d14a1e28
RD
17081 return resultobj;
17082 fail:
17083 return NULL;
17084}
17085
17086
093d3ff1 17087static PyObject *_wrap_DC__DrawRectangleList(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 17088 PyObject *resultobj;
093d3ff1
RD
17089 wxDC *arg1 = (wxDC *) 0 ;
17090 PyObject *arg2 = (PyObject *) 0 ;
17091 PyObject *arg3 = (PyObject *) 0 ;
17092 PyObject *arg4 = (PyObject *) 0 ;
17093 PyObject *result;
d14a1e28 17094 PyObject * obj0 = 0 ;
093d3ff1
RD
17095 PyObject * obj1 = 0 ;
17096 PyObject * obj2 = 0 ;
17097 PyObject * obj3 = 0 ;
d14a1e28 17098 char *kwnames[] = {
093d3ff1 17099 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
d14a1e28
RD
17100 };
17101
093d3ff1
RD
17102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17103 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17104 if (SWIG_arg_fail(1)) SWIG_fail;
17105 arg2 = obj1;
17106 arg3 = obj2;
17107 arg4 = obj3;
d14a1e28
RD
17108 {
17109 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17110 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
d14a1e28
RD
17111
17112 wxPyEndAllowThreads(__tstate);
110da5b0 17113 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 17114 }
093d3ff1 17115 resultobj = result;
d14a1e28
RD
17116 return resultobj;
17117 fail:
17118 return NULL;
17119}
17120
17121
093d3ff1 17122static PyObject *_wrap_DC__DrawEllipseList(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 17123 PyObject *resultobj;
093d3ff1
RD
17124 wxDC *arg1 = (wxDC *) 0 ;
17125 PyObject *arg2 = (PyObject *) 0 ;
17126 PyObject *arg3 = (PyObject *) 0 ;
17127 PyObject *arg4 = (PyObject *) 0 ;
17128 PyObject *result;
d14a1e28
RD
17129 PyObject * obj0 = 0 ;
17130 PyObject * obj1 = 0 ;
093d3ff1
RD
17131 PyObject * obj2 = 0 ;
17132 PyObject * obj3 = 0 ;
d14a1e28 17133 char *kwnames[] = {
093d3ff1 17134 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
d14a1e28
RD
17135 };
17136
093d3ff1
RD
17137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17138 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17139 if (SWIG_arg_fail(1)) SWIG_fail;
17140 arg2 = obj1;
17141 arg3 = obj2;
17142 arg4 = obj3;
d14a1e28
RD
17143 {
17144 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17145 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
d14a1e28
RD
17146
17147 wxPyEndAllowThreads(__tstate);
110da5b0 17148 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 17149 }
093d3ff1 17150 resultobj = result;
d14a1e28
RD
17151 return resultobj;
17152 fail:
17153 return NULL;
17154}
17155
17156
093d3ff1 17157static PyObject *_wrap_DC__DrawPolygonList(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 17158 PyObject *resultobj;
093d3ff1
RD
17159 wxDC *arg1 = (wxDC *) 0 ;
17160 PyObject *arg2 = (PyObject *) 0 ;
17161 PyObject *arg3 = (PyObject *) 0 ;
17162 PyObject *arg4 = (PyObject *) 0 ;
17163 PyObject *result;
d14a1e28 17164 PyObject * obj0 = 0 ;
093d3ff1
RD
17165 PyObject * obj1 = 0 ;
17166 PyObject * obj2 = 0 ;
17167 PyObject * obj3 = 0 ;
d14a1e28 17168 char *kwnames[] = {
093d3ff1 17169 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
d14a1e28
RD
17170 };
17171
093d3ff1
RD
17172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17173 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17174 if (SWIG_arg_fail(1)) SWIG_fail;
17175 arg2 = obj1;
17176 arg3 = obj2;
17177 arg4 = obj3;
d14a1e28
RD
17178 {
17179 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17180 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
d14a1e28
RD
17181
17182 wxPyEndAllowThreads(__tstate);
110da5b0 17183 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 17184 }
093d3ff1 17185 resultobj = result;
d14a1e28
RD
17186 return resultobj;
17187 fail:
17188 return NULL;
17189}
17190
17191
093d3ff1 17192static PyObject *_wrap_DC__DrawTextList(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 17193 PyObject *resultobj;
093d3ff1
RD
17194 wxDC *arg1 = (wxDC *) 0 ;
17195 PyObject *arg2 = (PyObject *) 0 ;
17196 PyObject *arg3 = (PyObject *) 0 ;
17197 PyObject *arg4 = (PyObject *) 0 ;
17198 PyObject *arg5 = (PyObject *) 0 ;
17199 PyObject *result;
d14a1e28 17200 PyObject * obj0 = 0 ;
093d3ff1
RD
17201 PyObject * obj1 = 0 ;
17202 PyObject * obj2 = 0 ;
17203 PyObject * obj3 = 0 ;
17204 PyObject * obj4 = 0 ;
d14a1e28 17205 char *kwnames[] = {
093d3ff1 17206 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
d14a1e28
RD
17207 };
17208
093d3ff1
RD
17209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17210 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17211 if (SWIG_arg_fail(1)) SWIG_fail;
17212 arg2 = obj1;
17213 arg3 = obj2;
17214 arg4 = obj3;
17215 arg5 = obj4;
d14a1e28
RD
17216 {
17217 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17218 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
d14a1e28
RD
17219
17220 wxPyEndAllowThreads(__tstate);
17221 if (PyErr_Occurred()) SWIG_fail;
17222 }
093d3ff1 17223 resultobj = result;
d14a1e28
RD
17224 return resultobj;
17225 fail:
17226 return NULL;
17227}
17228
17229
093d3ff1
RD
17230static PyObject * DC_swigregister(PyObject *, PyObject *args) {
17231 PyObject *obj;
17232 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17233 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
17234 Py_INCREF(obj);
17235 return Py_BuildValue((char *)"");
17236}
17237static PyObject *_wrap_new_MemoryDC(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 17238 PyObject *resultobj;
093d3ff1 17239 wxMemoryDC *result;
d14a1e28 17240 char *kwnames[] = {
093d3ff1 17241 NULL
d14a1e28
RD
17242 };
17243
093d3ff1 17244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
d14a1e28 17245 {
093d3ff1 17246 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28 17247 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17248 result = (wxMemoryDC *)new wxMemoryDC();
d14a1e28
RD
17249
17250 wxPyEndAllowThreads(__tstate);
17251 if (PyErr_Occurred()) SWIG_fail;
17252 }
093d3ff1 17253 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
d14a1e28
RD
17254 return resultobj;
17255 fail:
17256 return NULL;
17257}
17258
17259
093d3ff1 17260static PyObject *_wrap_new_MemoryDCFromDC(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 17261 PyObject *resultobj;
093d3ff1
RD
17262 wxDC *arg1 = (wxDC *) 0 ;
17263 wxMemoryDC *result;
994141e6 17264 PyObject * obj0 = 0 ;
d14a1e28 17265 char *kwnames[] = {
093d3ff1 17266 (char *) "oldDC", NULL
d14a1e28
RD
17267 };
17268
093d3ff1
RD
17269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
17270 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17271 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28 17272 {
093d3ff1 17273 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28 17274 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17275 result = (wxMemoryDC *)new wxMemoryDC(arg1);
d14a1e28
RD
17276
17277 wxPyEndAllowThreads(__tstate);
17278 if (PyErr_Occurred()) SWIG_fail;
17279 }
093d3ff1 17280 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
d14a1e28
RD
17281 return resultobj;
17282 fail:
17283 return NULL;
17284}
17285
17286
093d3ff1 17287static PyObject *_wrap_MemoryDC_SelectObject(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 17288 PyObject *resultobj;
093d3ff1
RD
17289 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
17290 wxBitmap *arg2 = 0 ;
17291 PyObject * obj0 = 0 ;
17292 PyObject * obj1 = 0 ;
d14a1e28 17293 char *kwnames[] = {
093d3ff1 17294 (char *) "self",(char *) "bitmap", NULL
d14a1e28
RD
17295 };
17296
093d3ff1
RD
17297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
17298 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_EXCEPTION | 0);
17299 if (SWIG_arg_fail(1)) SWIG_fail;
17300 {
17301 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
17302 if (SWIG_arg_fail(2)) SWIG_fail;
17303 if (arg2 == NULL) {
17304 SWIG_null_ref("wxBitmap");
17305 }
17306 if (SWIG_arg_fail(2)) SWIG_fail;
17307 }
d14a1e28
RD
17308 {
17309 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17310 (arg1)->SelectObject((wxBitmap const &)*arg2);
d14a1e28
RD
17311
17312 wxPyEndAllowThreads(__tstate);
17313 if (PyErr_Occurred()) SWIG_fail;
17314 }
093d3ff1 17315 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
17316 return resultobj;
17317 fail:
17318 return NULL;
17319}
17320
17321
093d3ff1 17322static PyObject * MemoryDC_swigregister(PyObject *, PyObject *args) {
d14a1e28
RD
17323 PyObject *obj;
17324 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
093d3ff1 17325 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
d14a1e28
RD
17326 Py_INCREF(obj);
17327 return Py_BuildValue((char *)"");
17328}
093d3ff1 17329static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *, PyObject *args) {
d14a1e28 17330 PyObject *resultobj;
093d3ff1 17331 wxDC *arg1 = (wxDC *) 0 ;
8f4d7c19
RD
17332 wxBitmap const &arg2_defvalue = wxNullBitmap ;
17333 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
e2950dbb 17334 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
093d3ff1 17335 wxBufferedDC *result;
d14a1e28 17336 PyObject * obj0 = 0 ;
093d3ff1 17337 PyObject * obj1 = 0 ;
e2950dbb 17338 PyObject * obj2 = 0 ;
d14a1e28 17339
8f4d7c19 17340 if(!PyArg_ParseTuple(args,(char *)"O|OO:new_BufferedDC",&obj0,&obj1,&obj2)) goto fail;
093d3ff1
RD
17341 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17342 if (SWIG_arg_fail(1)) SWIG_fail;
8f4d7c19
RD
17343 if (obj1) {
17344 {
17345 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
17346 if (SWIG_arg_fail(2)) SWIG_fail;
17347 if (arg2 == NULL) {
17348 SWIG_null_ref("wxBitmap");
17349 }
17350 if (SWIG_arg_fail(2)) SWIG_fail;
d14a1e28
RD
17351 }
17352 }
e2950dbb
RD
17353 if (obj2) {
17354 {
17355 arg3 = (int)(SWIG_As_int(obj2));
17356 if (SWIG_arg_fail(3)) SWIG_fail;
17357 }
17358 }
d14a1e28 17359 {
e3b71cb8 17360 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28 17361 PyThreadState* __tstate = wxPyBeginAllowThreads();
e2950dbb 17362 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
d14a1e28
RD
17363
17364 wxPyEndAllowThreads(__tstate);
110da5b0 17365 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 17366 }
093d3ff1 17367 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
d14a1e28
RD
17368 return resultobj;
17369 fail:
d14a1e28
RD
17370 return NULL;
17371}
17372
17373
093d3ff1 17374static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *, PyObject *args) {
d14a1e28 17375 PyObject *resultobj;
093d3ff1
RD
17376 wxDC *arg1 = (wxDC *) 0 ;
17377 wxSize *arg2 = 0 ;
e2950dbb 17378 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
093d3ff1
RD
17379 wxBufferedDC *result;
17380 wxSize temp2 ;
d14a1e28 17381 PyObject * obj0 = 0 ;
994141e6 17382 PyObject * obj1 = 0 ;
e2950dbb 17383 PyObject * obj2 = 0 ;
d14a1e28 17384
e2950dbb 17385 if(!PyArg_ParseTuple(args,(char *)"OO|O:new_BufferedDC",&obj0,&obj1,&obj2)) goto fail;
093d3ff1
RD
17386 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17387 if (SWIG_arg_fail(1)) SWIG_fail;
17388 {
17389 arg2 = &temp2;
17390 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
d14a1e28 17391 }
e2950dbb
RD
17392 if (obj2) {
17393 {
17394 arg3 = (int)(SWIG_As_int(obj2));
17395 if (SWIG_arg_fail(3)) SWIG_fail;
17396 }
17397 }
093d3ff1
RD
17398 {
17399 if (!wxPyCheckForApp()) SWIG_fail;
17400 PyThreadState* __tstate = wxPyBeginAllowThreads();
e2950dbb 17401 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
093d3ff1
RD
17402
17403 wxPyEndAllowThreads(__tstate);
15afbcd0 17404 if (PyErr_Occurred()) SWIG_fail;
994141e6 17405 }
093d3ff1
RD
17406 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
17407 return resultobj;
17408 fail:
17409 return NULL;
17410}
17411
17412
17413static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
17414 int argc;
e2950dbb 17415 PyObject *argv[4];
093d3ff1
RD
17416 int ii;
17417
17418 argc = PyObject_Length(args);
e2950dbb 17419 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
093d3ff1 17420 argv[ii] = PyTuple_GetItem(args,ii);
994141e6 17421 }
8f4d7c19 17422 if ((argc >= 1) && (argc <= 3)) {
093d3ff1 17423 int _v;
d14a1e28 17424 {
093d3ff1
RD
17425 void *ptr;
17426 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
17427 _v = 0;
17428 PyErr_Clear();
17429 } else {
17430 _v = 1;
17431 }
17432 }
17433 if (_v) {
8f4d7c19
RD
17434 if (argc <= 1) {
17435 return _wrap_new_BufferedDC__SWIG_0(self,args);
17436 }
093d3ff1
RD
17437 {
17438 void *ptr = 0;
17439 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
17440 _v = 0;
17441 PyErr_Clear();
17442 } else {
17443 _v = (ptr != 0);
17444 }
17445 }
17446 if (_v) {
e2950dbb
RD
17447 if (argc <= 2) {
17448 return _wrap_new_BufferedDC__SWIG_0(self,args);
17449 }
17450 _v = SWIG_Check_int(argv[2]);
17451 if (_v) {
17452 return _wrap_new_BufferedDC__SWIG_0(self,args);
17453 }
093d3ff1
RD
17454 }
17455 }
17456 }
e2950dbb 17457 if ((argc >= 2) && (argc <= 3)) {
093d3ff1
RD
17458 int _v;
17459 {
17460 void *ptr;
17461 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
17462 _v = 0;
17463 PyErr_Clear();
17464 } else {
17465 _v = 1;
17466 }
17467 }
17468 if (_v) {
17469 {
17470 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
17471 }
17472 if (_v) {
e2950dbb
RD
17473 if (argc <= 2) {
17474 return _wrap_new_BufferedDC__SWIG_1(self,args);
17475 }
17476 _v = SWIG_Check_int(argv[2]);
17477 if (_v) {
17478 return _wrap_new_BufferedDC__SWIG_1(self,args);
17479 }
093d3ff1 17480 }
d14a1e28
RD
17481 }
17482 }
093d3ff1
RD
17483
17484 PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
17485 return NULL;
17486}
17487
17488
17489static PyObject *_wrap_delete_BufferedDC(PyObject *, PyObject *args, PyObject *kwargs) {
17490 PyObject *resultobj;
17491 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
17492 PyObject * obj0 = 0 ;
17493 char *kwnames[] = {
17494 (char *) "self", NULL
17495 };
17496
17497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail;
17498 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_EXCEPTION | 0);
17499 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
17500 {
17501 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17502 delete arg1;
d14a1e28
RD
17503
17504 wxPyEndAllowThreads(__tstate);
110da5b0 17505 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 17506 }
093d3ff1 17507 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
17508 return resultobj;
17509 fail:
d14a1e28
RD
17510 return NULL;
17511}
17512
17513
093d3ff1 17514static PyObject *_wrap_BufferedDC_UnMask(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 17515 PyObject *resultobj;
093d3ff1 17516 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
d14a1e28
RD
17517 PyObject * obj0 = 0 ;
17518 char *kwnames[] = {
093d3ff1 17519 (char *) "self", NULL
d14a1e28
RD
17520 };
17521
093d3ff1
RD
17522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
17523 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_EXCEPTION | 0);
17524 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
17525 {
17526 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17527 (arg1)->UnMask();
d14a1e28
RD
17528
17529 wxPyEndAllowThreads(__tstate);
110da5b0 17530 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 17531 }
093d3ff1 17532 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
17533 return resultobj;
17534 fail:
17535 return NULL;
17536}
17537
17538
093d3ff1 17539static PyObject * BufferedDC_swigregister(PyObject *, PyObject *args) {
d14a1e28
RD
17540 PyObject *obj;
17541 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
093d3ff1 17542 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
d14a1e28
RD
17543 Py_INCREF(obj);
17544 return Py_BuildValue((char *)"");
17545}
093d3ff1 17546static PyObject *_wrap_new_BufferedPaintDC(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 17547 PyObject *resultobj;
093d3ff1
RD
17548 wxWindow *arg1 = (wxWindow *) 0 ;
17549 wxBitmap const &arg2_defvalue = wxNullBitmap ;
17550 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
e2950dbb 17551 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
093d3ff1 17552 wxBufferedPaintDC *result;
994141e6
RD
17553 PyObject * obj0 = 0 ;
17554 PyObject * obj1 = 0 ;
e2950dbb 17555 PyObject * obj2 = 0 ;
d14a1e28 17556 char *kwnames[] = {
e2950dbb 17557 (char *) "window",(char *) "buffer",(char *) "style", NULL
d14a1e28
RD
17558 };
17559
e2950dbb 17560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) goto fail;
093d3ff1
RD
17561 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
17562 if (SWIG_arg_fail(1)) SWIG_fail;
17563 if (obj1) {
17564 {
17565 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
17566 if (SWIG_arg_fail(2)) SWIG_fail;
17567 if (arg2 == NULL) {
17568 SWIG_null_ref("wxBitmap");
17569 }
17570 if (SWIG_arg_fail(2)) SWIG_fail;
17571 }
994141e6 17572 }
e2950dbb
RD
17573 if (obj2) {
17574 {
17575 arg3 = (int)(SWIG_As_int(obj2));
17576 if (SWIG_arg_fail(3)) SWIG_fail;
17577 }
17578 }
d14a1e28 17579 {
e3b71cb8 17580 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28 17581 PyThreadState* __tstate = wxPyBeginAllowThreads();
e2950dbb 17582 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
d14a1e28
RD
17583
17584 wxPyEndAllowThreads(__tstate);
110da5b0 17585 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 17586 }
093d3ff1 17587 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1);
d14a1e28
RD
17588 return resultobj;
17589 fail:
17590 return NULL;
17591}
17592
17593
093d3ff1
RD
17594static PyObject * BufferedPaintDC_swigregister(PyObject *, PyObject *args) {
17595 PyObject *obj;
17596 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17597 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
17598 Py_INCREF(obj);
17599 return Py_BuildValue((char *)"");
17600}
17601static PyObject *_wrap_new_ScreenDC(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 17602 PyObject *resultobj;
093d3ff1 17603 wxScreenDC *result;
d14a1e28 17604 char *kwnames[] = {
093d3ff1 17605 NULL
d14a1e28
RD
17606 };
17607
093d3ff1 17608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
d14a1e28 17609 {
093d3ff1 17610 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28 17611 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17612 result = (wxScreenDC *)new wxScreenDC();
d14a1e28
RD
17613
17614 wxPyEndAllowThreads(__tstate);
17615 if (PyErr_Occurred()) SWIG_fail;
17616 }
093d3ff1 17617 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1);
d14a1e28
RD
17618 return resultobj;
17619 fail:
17620 return NULL;
17621}
17622
17623
093d3ff1 17624static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 17625 PyObject *resultobj;
093d3ff1
RD
17626 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
17627 wxWindow *arg2 = (wxWindow *) 0 ;
17628 bool result;
d14a1e28
RD
17629 PyObject * obj0 = 0 ;
17630 PyObject * obj1 = 0 ;
d14a1e28 17631 char *kwnames[] = {
093d3ff1 17632 (char *) "self",(char *) "window", NULL
d14a1e28
RD
17633 };
17634
093d3ff1
RD
17635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
17636 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScreenDC, SWIG_POINTER_EXCEPTION | 0);
17637 if (SWIG_arg_fail(1)) SWIG_fail;
17638 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
17639 if (SWIG_arg_fail(2)) SWIG_fail;
d14a1e28
RD
17640 {
17641 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17642 result = (bool)(arg1)->StartDrawingOnTop(arg2);
d14a1e28
RD
17643
17644 wxPyEndAllowThreads(__tstate);
17645 if (PyErr_Occurred()) SWIG_fail;
17646 }
093d3ff1
RD
17647 {
17648 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17649 }
d14a1e28
RD
17650 return resultobj;
17651 fail:
17652 return NULL;
17653}
17654
17655
093d3ff1 17656static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 17657 PyObject *resultobj;
093d3ff1
RD
17658 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
17659 wxRect *arg2 = (wxRect *) NULL ;
17660 bool result;
d14a1e28
RD
17661 PyObject * obj0 = 0 ;
17662 PyObject * obj1 = 0 ;
d14a1e28 17663 char *kwnames[] = {
093d3ff1 17664 (char *) "self",(char *) "rect", NULL
d14a1e28
RD
17665 };
17666
093d3ff1
RD
17667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
17668 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScreenDC, SWIG_POINTER_EXCEPTION | 0);
17669 if (SWIG_arg_fail(1)) SWIG_fail;
17670 if (obj1) {
17671 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
17672 if (SWIG_arg_fail(2)) SWIG_fail;
d14a1e28
RD
17673 }
17674 {
17675 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17676 result = (bool)(arg1)->StartDrawingOnTop(arg2);
d14a1e28
RD
17677
17678 wxPyEndAllowThreads(__tstate);
17679 if (PyErr_Occurred()) SWIG_fail;
17680 }
093d3ff1
RD
17681 {
17682 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17683 }
d14a1e28
RD
17684 return resultobj;
17685 fail:
17686 return NULL;
17687}
17688
17689
093d3ff1 17690static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 17691 PyObject *resultobj;
093d3ff1
RD
17692 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
17693 bool result;
d14a1e28 17694 PyObject * obj0 = 0 ;
d14a1e28 17695 char *kwnames[] = {
093d3ff1 17696 (char *) "self", NULL
d14a1e28
RD
17697 };
17698
093d3ff1
RD
17699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
17700 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScreenDC, SWIG_POINTER_EXCEPTION | 0);
17701 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
17702 {
17703 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17704 result = (bool)(arg1)->EndDrawingOnTop();
d14a1e28
RD
17705
17706 wxPyEndAllowThreads(__tstate);
17707 if (PyErr_Occurred()) SWIG_fail;
17708 }
093d3ff1
RD
17709 {
17710 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17711 }
d14a1e28
RD
17712 return resultobj;
17713 fail:
17714 return NULL;
17715}
17716
17717
093d3ff1
RD
17718static PyObject * ScreenDC_swigregister(PyObject *, PyObject *args) {
17719 PyObject *obj;
17720 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17721 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
17722 Py_INCREF(obj);
17723 return Py_BuildValue((char *)"");
17724}
17725static PyObject *_wrap_new_ClientDC(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 17726 PyObject *resultobj;
093d3ff1
RD
17727 wxWindow *arg1 = (wxWindow *) 0 ;
17728 wxClientDC *result;
d14a1e28 17729 PyObject * obj0 = 0 ;
d14a1e28 17730 char *kwnames[] = {
093d3ff1 17731 (char *) "win", NULL
d14a1e28
RD
17732 };
17733
093d3ff1
RD
17734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
17735 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
17736 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28 17737 {
093d3ff1 17738 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28 17739 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17740 result = (wxClientDC *)new wxClientDC(arg1);
d14a1e28
RD
17741
17742 wxPyEndAllowThreads(__tstate);
17743 if (PyErr_Occurred()) SWIG_fail;
17744 }
093d3ff1 17745 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1);
d14a1e28
RD
17746 return resultobj;
17747 fail:
17748 return NULL;
17749}
17750
17751
093d3ff1
RD
17752static PyObject * ClientDC_swigregister(PyObject *, PyObject *args) {
17753 PyObject *obj;
17754 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17755 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
17756 Py_INCREF(obj);
17757 return Py_BuildValue((char *)"");
17758}
17759static PyObject *_wrap_new_PaintDC(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 17760 PyObject *resultobj;
093d3ff1
RD
17761 wxWindow *arg1 = (wxWindow *) 0 ;
17762 wxPaintDC *result;
d14a1e28 17763 PyObject * obj0 = 0 ;
d14a1e28 17764 char *kwnames[] = {
093d3ff1 17765 (char *) "win", NULL
d14a1e28
RD
17766 };
17767
093d3ff1
RD
17768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
17769 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
17770 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28 17771 {
093d3ff1 17772 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28 17773 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17774 result = (wxPaintDC *)new wxPaintDC(arg1);
d14a1e28
RD
17775
17776 wxPyEndAllowThreads(__tstate);
17777 if (PyErr_Occurred()) SWIG_fail;
17778 }
093d3ff1 17779 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1);
d14a1e28
RD
17780 return resultobj;
17781 fail:
17782 return NULL;
17783}
17784
17785
093d3ff1
RD
17786static PyObject * PaintDC_swigregister(PyObject *, PyObject *args) {
17787 PyObject *obj;
17788 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17789 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
17790 Py_INCREF(obj);
17791 return Py_BuildValue((char *)"");
17792}
17793static PyObject *_wrap_new_WindowDC(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 17794 PyObject *resultobj;
093d3ff1
RD
17795 wxWindow *arg1 = (wxWindow *) 0 ;
17796 wxWindowDC *result;
d14a1e28
RD
17797 PyObject * obj0 = 0 ;
17798 char *kwnames[] = {
093d3ff1 17799 (char *) "win", NULL
d14a1e28
RD
17800 };
17801
093d3ff1
RD
17802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
17803 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
17804 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28 17805 {
093d3ff1 17806 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28 17807 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17808 result = (wxWindowDC *)new wxWindowDC(arg1);
d14a1e28
RD
17809
17810 wxPyEndAllowThreads(__tstate);
17811 if (PyErr_Occurred()) SWIG_fail;
17812 }
093d3ff1 17813 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1);
d14a1e28
RD
17814 return resultobj;
17815 fail:
17816 return NULL;
17817}
17818
17819
093d3ff1
RD
17820static PyObject * WindowDC_swigregister(PyObject *, PyObject *args) {
17821 PyObject *obj;
17822 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17823 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
17824 Py_INCREF(obj);
17825 return Py_BuildValue((char *)"");
17826}
17827static PyObject *_wrap_new_MirrorDC(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 17828 PyObject *resultobj;
093d3ff1
RD
17829 wxDC *arg1 = 0 ;
17830 bool arg2 ;
17831 wxMirrorDC *result;
d14a1e28 17832 PyObject * obj0 = 0 ;
994141e6 17833 PyObject * obj1 = 0 ;
d14a1e28 17834 char *kwnames[] = {
093d3ff1 17835 (char *) "dc",(char *) "mirror", NULL
d14a1e28
RD
17836 };
17837
093d3ff1
RD
17838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
17839 {
17840 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17841 if (SWIG_arg_fail(1)) SWIG_fail;
17842 if (arg1 == NULL) {
17843 SWIG_null_ref("wxDC");
17844 }
17845 if (SWIG_arg_fail(1)) SWIG_fail;
17846 }
17847 {
17848 arg2 = (bool)(SWIG_As_bool(obj1));
17849 if (SWIG_arg_fail(2)) SWIG_fail;
17850 }
d14a1e28 17851 {
093d3ff1 17852 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28 17853 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17854 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
d14a1e28
RD
17855
17856 wxPyEndAllowThreads(__tstate);
17857 if (PyErr_Occurred()) SWIG_fail;
17858 }
093d3ff1
RD
17859 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1);
17860 return resultobj;
17861 fail:
17862 return NULL;
17863}
17864
17865
17866static PyObject * MirrorDC_swigregister(PyObject *, PyObject *args) {
17867 PyObject *obj;
17868 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17869 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
17870 Py_INCREF(obj);
17871 return Py_BuildValue((char *)"");
17872}
17873static PyObject *_wrap_new_PostScriptDC(PyObject *, PyObject *args, PyObject *kwargs) {
17874 PyObject *resultobj;
17875 wxPrintData *arg1 = 0 ;
17876 wxPostScriptDC *result;
17877 PyObject * obj0 = 0 ;
17878 char *kwnames[] = {
17879 (char *) "printData", NULL
17880 };
17881
17882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
17883 {
17884 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPrintData, SWIG_POINTER_EXCEPTION | 0);
17885 if (SWIG_arg_fail(1)) SWIG_fail;
17886 if (arg1 == NULL) {
17887 SWIG_null_ref("wxPrintData");
17888 }
17889 if (SWIG_arg_fail(1)) SWIG_fail;
17890 }
4f89f6a3 17891 {
093d3ff1
RD
17892 if (!wxPyCheckForApp()) SWIG_fail;
17893 PyThreadState* __tstate = wxPyBeginAllowThreads();
17894 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
17895
17896 wxPyEndAllowThreads(__tstate);
17897 if (PyErr_Occurred()) SWIG_fail;
4f89f6a3 17898 }
093d3ff1 17899 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1);
d14a1e28
RD
17900 return resultobj;
17901 fail:
17902 return NULL;
17903}
17904
17905
093d3ff1 17906static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 17907 PyObject *resultobj;
093d3ff1
RD
17908 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
17909 wxPrintData *result;
d14a1e28
RD
17910 PyObject * obj0 = 0 ;
17911 char *kwnames[] = {
17912 (char *) "self", NULL
17913 };
17914
093d3ff1
RD
17915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
17916 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_EXCEPTION | 0);
17917 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
17918 {
17919 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1
RD
17920 {
17921 wxPrintData &_result_ref = (arg1)->GetPrintData();
17922 result = (wxPrintData *) &_result_ref;
17923 }
d14a1e28
RD
17924
17925 wxPyEndAllowThreads(__tstate);
17926 if (PyErr_Occurred()) SWIG_fail;
17927 }
093d3ff1 17928 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0);
d14a1e28
RD
17929 return resultobj;
17930 fail:
17931 return NULL;
17932}
17933
17934
093d3ff1 17935static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 17936 PyObject *resultobj;
093d3ff1
RD
17937 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
17938 wxPrintData *arg2 = 0 ;
d14a1e28 17939 PyObject * obj0 = 0 ;
994141e6 17940 PyObject * obj1 = 0 ;
d14a1e28 17941 char *kwnames[] = {
093d3ff1 17942 (char *) "self",(char *) "data", NULL
d14a1e28
RD
17943 };
17944
093d3ff1
RD
17945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
17946 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_EXCEPTION | 0);
17947 if (SWIG_arg_fail(1)) SWIG_fail;
17948 {
17949 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPrintData, SWIG_POINTER_EXCEPTION | 0);
17950 if (SWIG_arg_fail(2)) SWIG_fail;
17951 if (arg2 == NULL) {
17952 SWIG_null_ref("wxPrintData");
17953 }
17954 if (SWIG_arg_fail(2)) SWIG_fail;
17955 }
d14a1e28
RD
17956 {
17957 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17958 (arg1)->SetPrintData((wxPrintData const &)*arg2);
d14a1e28
RD
17959
17960 wxPyEndAllowThreads(__tstate);
17961 if (PyErr_Occurred()) SWIG_fail;
17962 }
17963 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
17964 return resultobj;
17965 fail:
17966 return NULL;
17967}
17968
17969
093d3ff1
RD
17970static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *, PyObject *args, PyObject *kwargs) {
17971 PyObject *resultobj;
17972 int arg1 ;
17973 PyObject * obj0 = 0 ;
17974 char *kwnames[] = {
17975 (char *) "ppi", NULL
17976 };
d14a1e28 17977
093d3ff1
RD
17978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
17979 {
17980 arg1 = (int)(SWIG_As_int(obj0));
17981 if (SWIG_arg_fail(1)) SWIG_fail;
17982 }
17983 {
17984 PyThreadState* __tstate = wxPyBeginAllowThreads();
17985 wxPostScriptDC::SetResolution(arg1);
17986
17987 wxPyEndAllowThreads(__tstate);
17988 if (PyErr_Occurred()) SWIG_fail;
17989 }
17990 Py_INCREF(Py_None); resultobj = Py_None;
17991 return resultobj;
17992 fail:
17993 return NULL;
d14a1e28
RD
17994}
17995
17996
093d3ff1
RD
17997static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *, PyObject *args, PyObject *kwargs) {
17998 PyObject *resultobj;
17999 int result;
18000 char *kwnames[] = {
18001 NULL
18002 };
d14a1e28 18003
093d3ff1
RD
18004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
18005 {
18006 PyThreadState* __tstate = wxPyBeginAllowThreads();
18007 result = (int)wxPostScriptDC::GetResolution();
18008
18009 wxPyEndAllowThreads(__tstate);
18010 if (PyErr_Occurred()) SWIG_fail;
18011 }
18012 {
18013 resultobj = SWIG_From_int((int)(result));
18014 }
18015 return resultobj;
18016 fail:
18017 return NULL;
d14a1e28
RD
18018}
18019
18020
093d3ff1
RD
18021static PyObject * PostScriptDC_swigregister(PyObject *, PyObject *args) {
18022 PyObject *obj;
18023 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18024 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
18025 Py_INCREF(obj);
18026 return Py_BuildValue((char *)"");
d14a1e28 18027}
093d3ff1
RD
18028static PyObject *_wrap_new_MetaFile(PyObject *, PyObject *args, PyObject *kwargs) {
18029 PyObject *resultobj;
18030 wxString const &arg1_defvalue = wxPyEmptyString ;
18031 wxString *arg1 = (wxString *) &arg1_defvalue ;
18032 wxMetaFile *result;
18033 bool temp1 = false ;
18034 PyObject * obj0 = 0 ;
18035 char *kwnames[] = {
18036 (char *) "filename", NULL
18037 };
d14a1e28 18038
093d3ff1
RD
18039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
18040 if (obj0) {
18041 {
18042 arg1 = wxString_in_helper(obj0);
18043 if (arg1 == NULL) SWIG_fail;
18044 temp1 = true;
18045 }
18046 }
18047 {
18048 if (!wxPyCheckForApp()) SWIG_fail;
18049 PyThreadState* __tstate = wxPyBeginAllowThreads();
18050 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
18051
18052 wxPyEndAllowThreads(__tstate);
18053 if (PyErr_Occurred()) SWIG_fail;
18054 }
18055 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1);
18056 {
18057 if (temp1)
18058 delete arg1;
18059 }
18060 return resultobj;
18061 fail:
18062 {
18063 if (temp1)
18064 delete arg1;
18065 }
18066 return NULL;
d14a1e28
RD
18067}
18068
18069
093d3ff1
RD
18070static PyObject * MetaFile_swigregister(PyObject *, PyObject *args) {
18071 PyObject *obj;
18072 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18073 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
18074 Py_INCREF(obj);
18075 return Py_BuildValue((char *)"");
d14a1e28 18076}
093d3ff1
RD
18077static PyObject *_wrap_new_MetaFileDC(PyObject *, PyObject *args, PyObject *kwargs) {
18078 PyObject *resultobj;
18079 wxString const &arg1_defvalue = wxPyEmptyString ;
18080 wxString *arg1 = (wxString *) &arg1_defvalue ;
18081 int arg2 = (int) 0 ;
18082 int arg3 = (int) 0 ;
18083 wxString const &arg4_defvalue = wxPyEmptyString ;
18084 wxString *arg4 = (wxString *) &arg4_defvalue ;
18085 wxMetaFileDC *result;
18086 bool temp1 = false ;
18087 bool temp4 = false ;
18088 PyObject * obj0 = 0 ;
18089 PyObject * obj1 = 0 ;
18090 PyObject * obj2 = 0 ;
18091 PyObject * obj3 = 0 ;
18092 char *kwnames[] = {
18093 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
18094 };
d14a1e28 18095
093d3ff1
RD
18096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18097 if (obj0) {
18098 {
18099 arg1 = wxString_in_helper(obj0);
18100 if (arg1 == NULL) SWIG_fail;
18101 temp1 = true;
18102 }
18103 }
18104 if (obj1) {
18105 {
18106 arg2 = (int)(SWIG_As_int(obj1));
18107 if (SWIG_arg_fail(2)) SWIG_fail;
18108 }
18109 }
18110 if (obj2) {
18111 {
18112 arg3 = (int)(SWIG_As_int(obj2));
18113 if (SWIG_arg_fail(3)) SWIG_fail;
18114 }
18115 }
18116 if (obj3) {
18117 {
18118 arg4 = wxString_in_helper(obj3);
18119 if (arg4 == NULL) SWIG_fail;
18120 temp4 = true;
18121 }
18122 }
18123 {
18124 if (!wxPyCheckForApp()) SWIG_fail;
18125 PyThreadState* __tstate = wxPyBeginAllowThreads();
18126 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
18127
18128 wxPyEndAllowThreads(__tstate);
18129 if (PyErr_Occurred()) SWIG_fail;
18130 }
18131 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1);
18132 {
18133 if (temp1)
18134 delete arg1;
18135 }
18136 {
18137 if (temp4)
18138 delete arg4;
18139 }
18140 return resultobj;
18141 fail:
18142 {
18143 if (temp1)
18144 delete arg1;
18145 }
18146 {
18147 if (temp4)
18148 delete arg4;
18149 }
18150 return NULL;
d14a1e28
RD
18151}
18152
18153
093d3ff1
RD
18154static PyObject * MetaFileDC_swigregister(PyObject *, PyObject *args) {
18155 PyObject *obj;
18156 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18157 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
18158 Py_INCREF(obj);
18159 return Py_BuildValue((char *)"");
994141e6 18160}
093d3ff1
RD
18161static PyObject *_wrap_new_PrinterDC(PyObject *, PyObject *args, PyObject *kwargs) {
18162 PyObject *resultobj;
18163 wxPrintData *arg1 = 0 ;
18164 wxPrinterDC *result;
18165 PyObject * obj0 = 0 ;
18166 char *kwnames[] = {
18167 (char *) "printData", NULL
18168 };
d14a1e28 18169
093d3ff1
RD
18170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
18171 {
18172 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPrintData, SWIG_POINTER_EXCEPTION | 0);
18173 if (SWIG_arg_fail(1)) SWIG_fail;
18174 if (arg1 == NULL) {
18175 SWIG_null_ref("wxPrintData");
18176 }
18177 if (SWIG_arg_fail(1)) SWIG_fail;
18178 }
18179 {
18180 if (!wxPyCheckForApp()) SWIG_fail;
18181 PyThreadState* __tstate = wxPyBeginAllowThreads();
18182 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
18183
18184 wxPyEndAllowThreads(__tstate);
18185 if (PyErr_Occurred()) SWIG_fail;
18186 }
18187 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1);
18188 return resultobj;
18189 fail:
18190 return NULL;
d14a1e28 18191}
994141e6
RD
18192
18193
093d3ff1
RD
18194static PyObject * PrinterDC_swigregister(PyObject *, PyObject *args) {
18195 PyObject *obj;
18196 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18197 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
18198 Py_INCREF(obj);
18199 return Py_BuildValue((char *)"");
d14a1e28 18200}
093d3ff1
RD
18201static PyObject *_wrap_new_ImageList(PyObject *, PyObject *args, PyObject *kwargs) {
18202 PyObject *resultobj;
18203 int arg1 ;
18204 int arg2 ;
18205 int arg3 = (int) true ;
18206 int arg4 = (int) 1 ;
18207 wxImageList *result;
18208 PyObject * obj0 = 0 ;
18209 PyObject * obj1 = 0 ;
18210 PyObject * obj2 = 0 ;
18211 PyObject * obj3 = 0 ;
18212 char *kwnames[] = {
18213 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
18214 };
d14a1e28 18215
093d3ff1
RD
18216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18217 {
18218 arg1 = (int)(SWIG_As_int(obj0));
18219 if (SWIG_arg_fail(1)) SWIG_fail;
18220 }
18221 {
18222 arg2 = (int)(SWIG_As_int(obj1));
18223 if (SWIG_arg_fail(2)) SWIG_fail;
18224 }
18225 if (obj2) {
18226 {
18227 arg3 = (int)(SWIG_As_int(obj2));
18228 if (SWIG_arg_fail(3)) SWIG_fail;
18229 }
18230 }
18231 if (obj3) {
18232 {
18233 arg4 = (int)(SWIG_As_int(obj3));
18234 if (SWIG_arg_fail(4)) SWIG_fail;
18235 }
18236 }
18237 {
18238 if (!wxPyCheckForApp()) SWIG_fail;
18239 PyThreadState* __tstate = wxPyBeginAllowThreads();
18240 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
18241
18242 wxPyEndAllowThreads(__tstate);
18243 if (PyErr_Occurred()) SWIG_fail;
18244 }
18245 {
18246 resultobj = wxPyMake_wxObject(result, 1);
18247 }
18248 return resultobj;
18249 fail:
18250 return NULL;
d14a1e28
RD
18251}
18252
18253
093d3ff1
RD
18254static PyObject *_wrap_delete_ImageList(PyObject *, PyObject *args, PyObject *kwargs) {
18255 PyObject *resultobj;
18256 wxImageList *arg1 = (wxImageList *) 0 ;
18257 PyObject * obj0 = 0 ;
18258 char *kwnames[] = {
18259 (char *) "self", NULL
18260 };
d14a1e28 18261
093d3ff1
RD
18262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
18263 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
18264 if (SWIG_arg_fail(1)) SWIG_fail;
18265 {
18266 PyThreadState* __tstate = wxPyBeginAllowThreads();
18267 delete arg1;
18268
18269 wxPyEndAllowThreads(__tstate);
18270 if (PyErr_Occurred()) SWIG_fail;
18271 }
18272 Py_INCREF(Py_None); resultobj = Py_None;
18273 return resultobj;
18274 fail:
18275 return NULL;
d14a1e28
RD
18276}
18277
18278
093d3ff1
RD
18279static PyObject *_wrap_ImageList_Add(PyObject *, PyObject *args, PyObject *kwargs) {
18280 PyObject *resultobj;
18281 wxImageList *arg1 = (wxImageList *) 0 ;
18282 wxBitmap *arg2 = 0 ;
18283 wxBitmap const &arg3_defvalue = wxNullBitmap ;
18284 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
18285 int result;
18286 PyObject * obj0 = 0 ;
18287 PyObject * obj1 = 0 ;
18288 PyObject * obj2 = 0 ;
18289 char *kwnames[] = {
18290 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
18291 };
d14a1e28 18292
093d3ff1
RD
18293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
18294 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
18295 if (SWIG_arg_fail(1)) SWIG_fail;
18296 {
18297 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
18298 if (SWIG_arg_fail(2)) SWIG_fail;
18299 if (arg2 == NULL) {
18300 SWIG_null_ref("wxBitmap");
18301 }
18302 if (SWIG_arg_fail(2)) SWIG_fail;
18303 }
18304 if (obj2) {
18305 {
18306 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
18307 if (SWIG_arg_fail(3)) SWIG_fail;
18308 if (arg3 == NULL) {
18309 SWIG_null_ref("wxBitmap");
18310 }
18311 if (SWIG_arg_fail(3)) SWIG_fail;
18312 }
18313 }
18314 {
18315 PyThreadState* __tstate = wxPyBeginAllowThreads();
18316 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
18317
18318 wxPyEndAllowThreads(__tstate);
18319 if (PyErr_Occurred()) SWIG_fail;
18320 }
18321 {
18322 resultobj = SWIG_From_int((int)(result));
18323 }
18324 return resultobj;
18325 fail:
18326 return NULL;
d14a1e28
RD
18327}
18328
18329
093d3ff1
RD
18330static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *, PyObject *args, PyObject *kwargs) {
18331 PyObject *resultobj;
18332 wxImageList *arg1 = (wxImageList *) 0 ;
18333 wxBitmap *arg2 = 0 ;
18334 wxColour *arg3 = 0 ;
18335 int result;
18336 wxColour temp3 ;
18337 PyObject * obj0 = 0 ;
18338 PyObject * obj1 = 0 ;
18339 PyObject * obj2 = 0 ;
18340 char *kwnames[] = {
18341 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
18342 };
d14a1e28 18343
093d3ff1
RD
18344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
18345 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
18346 if (SWIG_arg_fail(1)) SWIG_fail;
18347 {
18348 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
18349 if (SWIG_arg_fail(2)) SWIG_fail;
18350 if (arg2 == NULL) {
18351 SWIG_null_ref("wxBitmap");
18352 }
18353 if (SWIG_arg_fail(2)) SWIG_fail;
18354 }
18355 {
18356 arg3 = &temp3;
18357 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18358 }
18359 {
18360 PyThreadState* __tstate = wxPyBeginAllowThreads();
18361 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
18362
18363 wxPyEndAllowThreads(__tstate);
18364 if (PyErr_Occurred()) SWIG_fail;
18365 }
18366 {
18367 resultobj = SWIG_From_int((int)(result));
18368 }
18369 return resultobj;
18370 fail:
18371 return NULL;
d14a1e28
RD
18372}
18373
18374
093d3ff1
RD
18375static PyObject *_wrap_ImageList_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) {
18376 PyObject *resultobj;
18377 wxImageList *arg1 = (wxImageList *) 0 ;
18378 wxIcon *arg2 = 0 ;
18379 int result;
18380 PyObject * obj0 = 0 ;
18381 PyObject * obj1 = 0 ;
18382 char *kwnames[] = {
18383 (char *) "self",(char *) "icon", NULL
18384 };
994141e6 18385
093d3ff1
RD
18386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
18387 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
18388 if (SWIG_arg_fail(1)) SWIG_fail;
18389 {
18390 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
18391 if (SWIG_arg_fail(2)) SWIG_fail;
18392 if (arg2 == NULL) {
18393 SWIG_null_ref("wxIcon");
18394 }
18395 if (SWIG_arg_fail(2)) SWIG_fail;
18396 }
18397 {
18398 PyThreadState* __tstate = wxPyBeginAllowThreads();
18399 result = (int)(arg1)->Add((wxIcon const &)*arg2);
18400
18401 wxPyEndAllowThreads(__tstate);
18402 if (PyErr_Occurred()) SWIG_fail;
18403 }
18404 {
18405 resultobj = SWIG_From_int((int)(result));
18406 }
18407 return resultobj;
18408 fail:
18409 return NULL;
d14a1e28
RD
18410}
18411
18412
b9d6a5f3
RD
18413static PyObject *_wrap_ImageList_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
18414 PyObject *resultobj;
18415 wxImageList *arg1 = (wxImageList *) 0 ;
18416 int arg2 ;
18417 SwigValueWrapper<wxBitmap > result;
18418 PyObject * obj0 = 0 ;
18419 PyObject * obj1 = 0 ;
18420 char *kwnames[] = {
18421 (char *) "self",(char *) "index", NULL
18422 };
18423
18424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) goto fail;
18425 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
18426 if (SWIG_arg_fail(1)) SWIG_fail;
18427 {
18428 arg2 = (int)(SWIG_As_int(obj1));
18429 if (SWIG_arg_fail(2)) SWIG_fail;
18430 }
18431 {
18432 PyThreadState* __tstate = wxPyBeginAllowThreads();
18433 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
18434
18435 wxPyEndAllowThreads(__tstate);
18436 if (PyErr_Occurred()) SWIG_fail;
18437 }
18438 {
18439 wxBitmap * resultptr;
18440 resultptr = new wxBitmap((wxBitmap &)(result));
18441 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
18442 }
18443 return resultobj;
18444 fail:
18445 return NULL;
18446}
18447
18448
18449static PyObject *_wrap_ImageList_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
18450 PyObject *resultobj;
18451 wxImageList *arg1 = (wxImageList *) 0 ;
18452 int arg2 ;
18453 wxIcon result;
18454 PyObject * obj0 = 0 ;
18455 PyObject * obj1 = 0 ;
18456 char *kwnames[] = {
18457 (char *) "self",(char *) "index", NULL
18458 };
18459
18460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) goto fail;
18461 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
18462 if (SWIG_arg_fail(1)) SWIG_fail;
18463 {
18464 arg2 = (int)(SWIG_As_int(obj1));
18465 if (SWIG_arg_fail(2)) SWIG_fail;
18466 }
18467 {
18468 PyThreadState* __tstate = wxPyBeginAllowThreads();
18469 result = ((wxImageList const *)arg1)->GetIcon(arg2);
18470
18471 wxPyEndAllowThreads(__tstate);
18472 if (PyErr_Occurred()) SWIG_fail;
18473 }
18474 {
18475 wxIcon * resultptr;
18476 resultptr = new wxIcon((wxIcon &)(result));
18477 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1);
18478 }
18479 return resultobj;
18480 fail:
18481 return NULL;
18482}
18483
18484
093d3ff1
RD
18485static PyObject *_wrap_ImageList_Replace(PyObject *, PyObject *args, PyObject *kwargs) {
18486 PyObject *resultobj;
18487 wxImageList *arg1 = (wxImageList *) 0 ;
18488 int arg2 ;
18489 wxBitmap *arg3 = 0 ;
18490 bool result;
18491 PyObject * obj0 = 0 ;
18492 PyObject * obj1 = 0 ;
18493 PyObject * obj2 = 0 ;
18494 char *kwnames[] = {
18495 (char *) "self",(char *) "index",(char *) "bitmap", NULL
18496 };
d14a1e28 18497
093d3ff1
RD
18498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) goto fail;
18499 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
18500 if (SWIG_arg_fail(1)) SWIG_fail;
18501 {
18502 arg2 = (int)(SWIG_As_int(obj1));
18503 if (SWIG_arg_fail(2)) SWIG_fail;
18504 }
18505 {
18506 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
18507 if (SWIG_arg_fail(3)) SWIG_fail;
18508 if (arg3 == NULL) {
18509 SWIG_null_ref("wxBitmap");
18510 }
18511 if (SWIG_arg_fail(3)) SWIG_fail;
18512 }
18513 {
18514 PyThreadState* __tstate = wxPyBeginAllowThreads();
18515 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3);
18516
18517 wxPyEndAllowThreads(__tstate);
18518 if (PyErr_Occurred()) SWIG_fail;
18519 }
18520 {
18521 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18522 }
18523 return resultobj;
18524 fail:
18525 return NULL;
d14a1e28
RD
18526}
18527
18528
093d3ff1
RD
18529static PyObject *_wrap_ImageList_Draw(PyObject *, PyObject *args, PyObject *kwargs) {
18530 PyObject *resultobj;
18531 wxImageList *arg1 = (wxImageList *) 0 ;
18532 int arg2 ;
18533 wxDC *arg3 = 0 ;
18534 int arg4 ;
18535 int arg5 ;
18536 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
18537 bool arg7 = (bool) (bool)false ;
18538 bool result;
18539 PyObject * obj0 = 0 ;
18540 PyObject * obj1 = 0 ;
18541 PyObject * obj2 = 0 ;
18542 PyObject * obj3 = 0 ;
18543 PyObject * obj4 = 0 ;
18544 PyObject * obj5 = 0 ;
18545 PyObject * obj6 = 0 ;
18546 char *kwnames[] = {
18547 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
18548 };
18549
18550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
18551 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
18552 if (SWIG_arg_fail(1)) SWIG_fail;
18553 {
18554 arg2 = (int)(SWIG_As_int(obj1));
18555 if (SWIG_arg_fail(2)) SWIG_fail;
18556 }
18557 {
18558 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
18559 if (SWIG_arg_fail(3)) SWIG_fail;
18560 if (arg3 == NULL) {
18561 SWIG_null_ref("wxDC");
18562 }
18563 if (SWIG_arg_fail(3)) SWIG_fail;
18564 }
18565 {
18566 arg4 = (int)(SWIG_As_int(obj3));
18567 if (SWIG_arg_fail(4)) SWIG_fail;
18568 }
18569 {
18570 arg5 = (int)(SWIG_As_int(obj4));
18571 if (SWIG_arg_fail(5)) SWIG_fail;
18572 }
18573 if (obj5) {
18574 {
18575 arg6 = (int)(SWIG_As_int(obj5));
18576 if (SWIG_arg_fail(6)) SWIG_fail;
18577 }
18578 }
18579 if (obj6) {
18580 {
18581 arg7 = (bool const)(SWIG_As_bool(obj6));
18582 if (SWIG_arg_fail(7)) SWIG_fail;
18583 }
18584 }
18585 {
18586 PyThreadState* __tstate = wxPyBeginAllowThreads();
18587 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
18588
18589 wxPyEndAllowThreads(__tstate);
18590 if (PyErr_Occurred()) SWIG_fail;
18591 }
18592 {
18593 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18594 }
18595 return resultobj;
18596 fail:
18597 return NULL;
d14a1e28
RD
18598}
18599
18600
093d3ff1
RD
18601static PyObject *_wrap_ImageList_GetImageCount(PyObject *, PyObject *args, PyObject *kwargs) {
18602 PyObject *resultobj;
18603 wxImageList *arg1 = (wxImageList *) 0 ;
18604 int result;
18605 PyObject * obj0 = 0 ;
18606 char *kwnames[] = {
18607 (char *) "self", NULL
18608 };
d14a1e28 18609
093d3ff1
RD
18610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
18611 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
18612 if (SWIG_arg_fail(1)) SWIG_fail;
18613 {
18614 PyThreadState* __tstate = wxPyBeginAllowThreads();
18615 result = (int)(arg1)->GetImageCount();
18616
18617 wxPyEndAllowThreads(__tstate);
18618 if (PyErr_Occurred()) SWIG_fail;
18619 }
18620 {
18621 resultobj = SWIG_From_int((int)(result));
18622 }
18623 return resultobj;
18624 fail:
18625 return NULL;
d14a1e28
RD
18626}
18627
18628
093d3ff1
RD
18629static PyObject *_wrap_ImageList_Remove(PyObject *, PyObject *args, PyObject *kwargs) {
18630 PyObject *resultobj;
18631 wxImageList *arg1 = (wxImageList *) 0 ;
18632 int arg2 ;
18633 bool result;
18634 PyObject * obj0 = 0 ;
18635 PyObject * obj1 = 0 ;
18636 char *kwnames[] = {
18637 (char *) "self",(char *) "index", NULL
18638 };
18639
18640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
18641 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
18642 if (SWIG_arg_fail(1)) SWIG_fail;
18643 {
18644 arg2 = (int)(SWIG_As_int(obj1));
18645 if (SWIG_arg_fail(2)) SWIG_fail;
18646 }
18647 {
18648 PyThreadState* __tstate = wxPyBeginAllowThreads();
18649 result = (bool)(arg1)->Remove(arg2);
18650
18651 wxPyEndAllowThreads(__tstate);
18652 if (PyErr_Occurred()) SWIG_fail;
18653 }
18654 {
18655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18656 }
18657 return resultobj;
18658 fail:
18659 return NULL;
d14a1e28
RD
18660}
18661
18662
093d3ff1
RD
18663static PyObject *_wrap_ImageList_RemoveAll(PyObject *, PyObject *args, PyObject *kwargs) {
18664 PyObject *resultobj;
18665 wxImageList *arg1 = (wxImageList *) 0 ;
18666 bool result;
18667 PyObject * obj0 = 0 ;
18668 char *kwnames[] = {
18669 (char *) "self", NULL
18670 };
d14a1e28 18671
093d3ff1
RD
18672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
18673 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
18674 if (SWIG_arg_fail(1)) SWIG_fail;
18675 {
18676 PyThreadState* __tstate = wxPyBeginAllowThreads();
18677 result = (bool)(arg1)->RemoveAll();
18678
18679 wxPyEndAllowThreads(__tstate);
18680 if (PyErr_Occurred()) SWIG_fail;
18681 }
18682 {
18683 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18684 }
18685 return resultobj;
18686 fail:
18687 return NULL;
d14a1e28
RD
18688}
18689
18690
093d3ff1
RD
18691static PyObject *_wrap_ImageList_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
18692 PyObject *resultobj;
18693 wxImageList *arg1 = (wxImageList *) 0 ;
18694 int arg2 ;
18695 int *arg3 = 0 ;
18696 int *arg4 = 0 ;
18697 int temp3 ;
18698 int res3 = 0 ;
18699 int temp4 ;
18700 int res4 = 0 ;
18701 PyObject * obj0 = 0 ;
18702 PyObject * obj1 = 0 ;
18703 char *kwnames[] = {
18704 (char *) "self",(char *) "index", NULL
18705 };
18706
18707 arg3 = &temp3; res3 = SWIG_NEWOBJ;
18708 arg4 = &temp4; res4 = SWIG_NEWOBJ;
18709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
18710 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
18711 if (SWIG_arg_fail(1)) SWIG_fail;
18712 {
18713 arg2 = (int)(SWIG_As_int(obj1));
18714 if (SWIG_arg_fail(2)) SWIG_fail;
18715 }
18716 {
18717 PyThreadState* __tstate = wxPyBeginAllowThreads();
18718 (arg1)->GetSize(arg2,*arg3,*arg4);
18719
18720 wxPyEndAllowThreads(__tstate);
18721 if (PyErr_Occurred()) SWIG_fail;
18722 }
18723 Py_INCREF(Py_None); resultobj = Py_None;
18724 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
18725 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
18726 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
18727 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
18728 return resultobj;
18729 fail:
18730 return NULL;
18731}
18732
18733
18734static PyObject * ImageList_swigregister(PyObject *, PyObject *args) {
18735 PyObject *obj;
18736 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18737 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
18738 Py_INCREF(obj);
18739 return Py_BuildValue((char *)"");
18740}
18741static int _wrap_NORMAL_FONT_set(PyObject *) {
18742 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
d14a1e28
RD
18743 return 1;
18744}
18745
18746
093d3ff1 18747static PyObject *_wrap_NORMAL_FONT_get(void) {
d14a1e28
RD
18748 PyObject *pyobj;
18749
093d3ff1 18750 pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0);
d14a1e28
RD
18751 return pyobj;
18752}
18753
18754
093d3ff1
RD
18755static int _wrap_SMALL_FONT_set(PyObject *) {
18756 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
d14a1e28
RD
18757 return 1;
18758}
18759
18760
093d3ff1 18761static PyObject *_wrap_SMALL_FONT_get(void) {
d14a1e28
RD
18762 PyObject *pyobj;
18763
093d3ff1 18764 pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0);
d14a1e28
RD
18765 return pyobj;
18766}
18767
18768
093d3ff1
RD
18769static int _wrap_ITALIC_FONT_set(PyObject *) {
18770 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
d14a1e28
RD
18771 return 1;
18772}
18773
18774
093d3ff1 18775static PyObject *_wrap_ITALIC_FONT_get(void) {
d14a1e28
RD
18776 PyObject *pyobj;
18777
093d3ff1 18778 pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0);
d14a1e28
RD
18779 return pyobj;
18780}
18781
18782
093d3ff1
RD
18783static int _wrap_SWISS_FONT_set(PyObject *) {
18784 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
d14a1e28
RD
18785 return 1;
18786}
18787
18788
093d3ff1 18789static PyObject *_wrap_SWISS_FONT_get(void) {
d14a1e28
RD
18790 PyObject *pyobj;
18791
093d3ff1 18792 pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0);
d14a1e28
RD
18793 return pyobj;
18794}
18795
18796
093d3ff1
RD
18797static int _wrap_RED_PEN_set(PyObject *) {
18798 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
d14a1e28
RD
18799 return 1;
18800}
18801
18802
093d3ff1 18803static PyObject *_wrap_RED_PEN_get(void) {
d14a1e28
RD
18804 PyObject *pyobj;
18805
093d3ff1 18806 pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0);
d14a1e28
RD
18807 return pyobj;
18808}
18809
18810
093d3ff1
RD
18811static int _wrap_CYAN_PEN_set(PyObject *) {
18812 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
d14a1e28
RD
18813 return 1;
18814}
18815
18816
093d3ff1 18817static PyObject *_wrap_CYAN_PEN_get(void) {
d14a1e28
RD
18818 PyObject *pyobj;
18819
093d3ff1 18820 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0);
d14a1e28
RD
18821 return pyobj;
18822}
18823
18824
093d3ff1
RD
18825static int _wrap_GREEN_PEN_set(PyObject *) {
18826 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
d14a1e28
RD
18827 return 1;
18828}
18829
18830
093d3ff1 18831static PyObject *_wrap_GREEN_PEN_get(void) {
d14a1e28
RD
18832 PyObject *pyobj;
18833
093d3ff1 18834 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0);
d14a1e28
RD
18835 return pyobj;
18836}
18837
18838
093d3ff1
RD
18839static int _wrap_BLACK_PEN_set(PyObject *) {
18840 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
d14a1e28
RD
18841 return 1;
18842}
18843
18844
093d3ff1 18845static PyObject *_wrap_BLACK_PEN_get(void) {
d14a1e28
RD
18846 PyObject *pyobj;
18847
093d3ff1 18848 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0);
d14a1e28
RD
18849 return pyobj;
18850}
18851
18852
093d3ff1
RD
18853static int _wrap_WHITE_PEN_set(PyObject *) {
18854 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
d14a1e28
RD
18855 return 1;
18856}
18857
18858
093d3ff1 18859static PyObject *_wrap_WHITE_PEN_get(void) {
d14a1e28
RD
18860 PyObject *pyobj;
18861
093d3ff1 18862 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0);
d14a1e28
RD
18863 return pyobj;
18864}
18865
18866
093d3ff1
RD
18867static int _wrap_TRANSPARENT_PEN_set(PyObject *) {
18868 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
d14a1e28
RD
18869 return 1;
18870}
18871
18872
093d3ff1 18873static PyObject *_wrap_TRANSPARENT_PEN_get(void) {
d14a1e28
RD
18874 PyObject *pyobj;
18875
093d3ff1 18876 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0);
d14a1e28
RD
18877 return pyobj;
18878}
18879
18880
093d3ff1
RD
18881static int _wrap_BLACK_DASHED_PEN_set(PyObject *) {
18882 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
d14a1e28
RD
18883 return 1;
18884}
18885
18886
093d3ff1 18887static PyObject *_wrap_BLACK_DASHED_PEN_get(void) {
d14a1e28
RD
18888 PyObject *pyobj;
18889
093d3ff1 18890 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0);
d14a1e28
RD
18891 return pyobj;
18892}
18893
18894
093d3ff1
RD
18895static int _wrap_GREY_PEN_set(PyObject *) {
18896 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
d14a1e28
RD
18897 return 1;
18898}
18899
18900
093d3ff1 18901static PyObject *_wrap_GREY_PEN_get(void) {
d14a1e28
RD
18902 PyObject *pyobj;
18903
093d3ff1 18904 pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0);
d14a1e28
RD
18905 return pyobj;
18906}
18907
18908
093d3ff1
RD
18909static int _wrap_MEDIUM_GREY_PEN_set(PyObject *) {
18910 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
d14a1e28
RD
18911 return 1;
18912}
18913
18914
093d3ff1 18915static PyObject *_wrap_MEDIUM_GREY_PEN_get(void) {
d14a1e28
RD
18916 PyObject *pyobj;
18917
093d3ff1
RD
18918 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0);
18919 return pyobj;
18920}
18921
18922
18923static int _wrap_LIGHT_GREY_PEN_set(PyObject *) {
18924 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
18925 return 1;
18926}
18927
18928
18929static PyObject *_wrap_LIGHT_GREY_PEN_get(void) {
18930 PyObject *pyobj;
18931
18932 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0);
18933 return pyobj;
18934}
18935
18936
18937static int _wrap_BLUE_BRUSH_set(PyObject *) {
18938 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
18939 return 1;
18940}
18941
18942
18943static PyObject *_wrap_BLUE_BRUSH_get(void) {
18944 PyObject *pyobj;
18945
18946 pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0);
18947 return pyobj;
18948}
18949
18950
18951static int _wrap_GREEN_BRUSH_set(PyObject *) {
18952 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
18953 return 1;
18954}
18955
18956
18957static PyObject *_wrap_GREEN_BRUSH_get(void) {
18958 PyObject *pyobj;
18959
18960 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0);
18961 return pyobj;
18962}
18963
18964
18965static int _wrap_WHITE_BRUSH_set(PyObject *) {
18966 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
18967 return 1;
18968}
18969
18970
18971static PyObject *_wrap_WHITE_BRUSH_get(void) {
18972 PyObject *pyobj;
18973
18974 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0);
18975 return pyobj;
18976}
18977
18978
18979static int _wrap_BLACK_BRUSH_set(PyObject *) {
18980 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
18981 return 1;
18982}
18983
18984
18985static PyObject *_wrap_BLACK_BRUSH_get(void) {
18986 PyObject *pyobj;
18987
18988 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0);
18989 return pyobj;
18990}
18991
18992
18993static int _wrap_TRANSPARENT_BRUSH_set(PyObject *) {
18994 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
18995 return 1;
18996}
18997
18998
18999static PyObject *_wrap_TRANSPARENT_BRUSH_get(void) {
19000 PyObject *pyobj;
19001
19002 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0);
19003 return pyobj;
19004}
19005
19006
19007static int _wrap_CYAN_BRUSH_set(PyObject *) {
19008 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
19009 return 1;
19010}
19011
19012
19013static PyObject *_wrap_CYAN_BRUSH_get(void) {
19014 PyObject *pyobj;
19015
19016 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0);
19017 return pyobj;
19018}
19019
19020
19021static int _wrap_RED_BRUSH_set(PyObject *) {
19022 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
19023 return 1;
19024}
19025
19026
19027static PyObject *_wrap_RED_BRUSH_get(void) {
19028 PyObject *pyobj;
19029
19030 pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0);
19031 return pyobj;
19032}
19033
19034
19035static int _wrap_GREY_BRUSH_set(PyObject *) {
19036 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
19037 return 1;
19038}
19039
19040
19041static PyObject *_wrap_GREY_BRUSH_get(void) {
19042 PyObject *pyobj;
19043
19044 pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
19045 return pyobj;
19046}
19047
19048
19049static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *) {
19050 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
19051 return 1;
19052}
19053
19054
19055static PyObject *_wrap_MEDIUM_GREY_BRUSH_get(void) {
19056 PyObject *pyobj;
19057
19058 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
19059 return pyobj;
19060}
19061
19062
19063static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *) {
19064 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
19065 return 1;
19066}
19067
19068
19069static PyObject *_wrap_LIGHT_GREY_BRUSH_get(void) {
19070 PyObject *pyobj;
19071
19072 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
19073 return pyobj;
19074}
19075
19076
19077static int _wrap_BLACK_set(PyObject *) {
19078 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
19079 return 1;
19080}
19081
19082
19083static PyObject *_wrap_BLACK_get(void) {
19084 PyObject *pyobj;
19085
19086 pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0);
19087 return pyobj;
19088}
19089
19090
19091static int _wrap_WHITE_set(PyObject *) {
19092 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
19093 return 1;
19094}
19095
19096
19097static PyObject *_wrap_WHITE_get(void) {
19098 PyObject *pyobj;
19099
19100 pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0);
19101 return pyobj;
19102}
19103
19104
19105static int _wrap_RED_set(PyObject *) {
19106 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
19107 return 1;
19108}
19109
19110
19111static PyObject *_wrap_RED_get(void) {
19112 PyObject *pyobj;
19113
19114 pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0);
19115 return pyobj;
19116}
19117
19118
19119static int _wrap_BLUE_set(PyObject *) {
19120 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
19121 return 1;
19122}
19123
19124
19125static PyObject *_wrap_BLUE_get(void) {
19126 PyObject *pyobj;
19127
19128 pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
19129 return pyobj;
19130}
19131
19132
c32bde28 19133static int _wrap_GREEN_set(PyObject *) {
994141e6 19134 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
d14a1e28
RD
19135 return 1;
19136}
19137
19138
093d3ff1 19139static PyObject *_wrap_GREEN_get(void) {
d14a1e28
RD
19140 PyObject *pyobj;
19141
15afbcd0 19142 pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
19143 return pyobj;
19144}
19145
19146
c32bde28 19147static int _wrap_CYAN_set(PyObject *) {
994141e6 19148 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
d14a1e28
RD
19149 return 1;
19150}
19151
19152
093d3ff1 19153static PyObject *_wrap_CYAN_get(void) {
d14a1e28
RD
19154 PyObject *pyobj;
19155
15afbcd0 19156 pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
19157 return pyobj;
19158}
19159
19160
c32bde28 19161static int _wrap_LIGHT_GREY_set(PyObject *) {
994141e6 19162 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
d14a1e28
RD
19163 return 1;
19164}
19165
19166
093d3ff1 19167static PyObject *_wrap_LIGHT_GREY_get(void) {
d14a1e28
RD
19168 PyObject *pyobj;
19169
15afbcd0 19170 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
19171 return pyobj;
19172}
19173
19174
c32bde28 19175static int _wrap_STANDARD_CURSOR_set(PyObject *) {
994141e6 19176 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
d14a1e28
RD
19177 return 1;
19178}
19179
19180
093d3ff1 19181static PyObject *_wrap_STANDARD_CURSOR_get(void) {
d14a1e28
RD
19182 PyObject *pyobj;
19183
15afbcd0 19184 pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0);
d14a1e28
RD
19185 return pyobj;
19186}
19187
19188
c32bde28 19189static int _wrap_HOURGLASS_CURSOR_set(PyObject *) {
994141e6 19190 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
d14a1e28
RD
19191 return 1;
19192}
19193
19194
093d3ff1 19195static PyObject *_wrap_HOURGLASS_CURSOR_get(void) {
d14a1e28
RD
19196 PyObject *pyobj;
19197
15afbcd0 19198 pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0);
d14a1e28
RD
19199 return pyobj;
19200}
19201
19202
c32bde28 19203static int _wrap_CROSS_CURSOR_set(PyObject *) {
994141e6 19204 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
d14a1e28
RD
19205 return 1;
19206}
19207
19208
093d3ff1 19209static PyObject *_wrap_CROSS_CURSOR_get(void) {
d14a1e28
RD
19210 PyObject *pyobj;
19211
15afbcd0 19212 pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0);
d14a1e28
RD
19213 return pyobj;
19214}
19215
19216
c32bde28 19217static int _wrap_NullBitmap_set(PyObject *) {
994141e6 19218 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
d14a1e28
RD
19219 return 1;
19220}
19221
19222
093d3ff1 19223static PyObject *_wrap_NullBitmap_get(void) {
d14a1e28
RD
19224 PyObject *pyobj;
19225
15afbcd0 19226 pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0);
d14a1e28
RD
19227 return pyobj;
19228}
19229
19230
c32bde28 19231static int _wrap_NullIcon_set(PyObject *) {
994141e6 19232 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
d14a1e28
RD
19233 return 1;
19234}
19235
19236
093d3ff1 19237static PyObject *_wrap_NullIcon_get(void) {
d14a1e28
RD
19238 PyObject *pyobj;
19239
15afbcd0 19240 pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0);
d14a1e28
RD
19241 return pyobj;
19242}
19243
19244
c32bde28 19245static int _wrap_NullCursor_set(PyObject *) {
994141e6 19246 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
d14a1e28
RD
19247 return 1;
19248}
19249
19250
093d3ff1 19251static PyObject *_wrap_NullCursor_get(void) {
d14a1e28
RD
19252 PyObject *pyobj;
19253
15afbcd0 19254 pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0);
d14a1e28
RD
19255 return pyobj;
19256}
19257
19258
c32bde28 19259static int _wrap_NullPen_set(PyObject *) {
994141e6 19260 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
d14a1e28
RD
19261 return 1;
19262}
19263
19264
093d3ff1 19265static PyObject *_wrap_NullPen_get(void) {
d14a1e28
RD
19266 PyObject *pyobj;
19267
15afbcd0 19268 pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0);
d14a1e28
RD
19269 return pyobj;
19270}
19271
19272
c32bde28 19273static int _wrap_NullBrush_set(PyObject *) {
994141e6 19274 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
d14a1e28
RD
19275 return 1;
19276}
19277
19278
093d3ff1 19279static PyObject *_wrap_NullBrush_get(void) {
d14a1e28
RD
19280 PyObject *pyobj;
19281
15afbcd0 19282 pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0);
d14a1e28
RD
19283 return pyobj;
19284}
19285
19286
c32bde28 19287static int _wrap_NullPalette_set(PyObject *) {
994141e6 19288 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
d14a1e28
RD
19289 return 1;
19290}
19291
19292
093d3ff1 19293static PyObject *_wrap_NullPalette_get(void) {
d14a1e28
RD
19294 PyObject *pyobj;
19295
15afbcd0 19296 pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0);
d14a1e28
RD
19297 return pyobj;
19298}
19299
19300
c32bde28 19301static int _wrap_NullFont_set(PyObject *) {
994141e6 19302 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
d14a1e28
RD
19303 return 1;
19304}
19305
19306
093d3ff1 19307static PyObject *_wrap_NullFont_get(void) {
d14a1e28
RD
19308 PyObject *pyobj;
19309
15afbcd0 19310 pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0);
d14a1e28
RD
19311 return pyobj;
19312}
19313
19314
c32bde28 19315static int _wrap_NullColour_set(PyObject *) {
994141e6 19316 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
d14a1e28
RD
19317 return 1;
19318}
19319
19320
093d3ff1 19321static PyObject *_wrap_NullColour_get(void) {
d14a1e28
RD
19322 PyObject *pyobj;
19323
15afbcd0 19324 pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0);
d14a1e28
RD
19325 return pyobj;
19326}
19327
19328
c32bde28 19329static PyObject *_wrap_PenList_AddPen(PyObject *, PyObject *args, PyObject *kwargs) {
994141e6
RD
19330 PyObject *resultobj;
19331 wxPenList *arg1 = (wxPenList *) 0 ;
19332 wxPen *arg2 = (wxPen *) 0 ;
19333 PyObject * obj0 = 0 ;
19334 PyObject * obj1 = 0 ;
19335 char *kwnames[] = {
19336 (char *) "self",(char *) "pen", NULL
19337 };
19338
19339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
093d3ff1
RD
19340 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPenList, SWIG_POINTER_EXCEPTION | 0);
19341 if (SWIG_arg_fail(1)) SWIG_fail;
19342 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
19343 if (SWIG_arg_fail(2)) SWIG_fail;
994141e6
RD
19344 {
19345 PyThreadState* __tstate = wxPyBeginAllowThreads();
19346 (arg1)->AddPen(arg2);
19347
19348 wxPyEndAllowThreads(__tstate);
19349 if (PyErr_Occurred()) SWIG_fail;
19350 }
19351 Py_INCREF(Py_None); resultobj = Py_None;
19352 return resultobj;
19353 fail:
19354 return NULL;
d14a1e28
RD
19355}
19356
19357
c32bde28 19358static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *, PyObject *args, PyObject *kwargs) {
994141e6
RD
19359 PyObject *resultobj;
19360 wxPenList *arg1 = (wxPenList *) 0 ;
19361 wxColour *arg2 = 0 ;
19362 int arg3 ;
19363 int arg4 ;
19364 wxPen *result;
19365 wxColour temp2 ;
19366 PyObject * obj0 = 0 ;
19367 PyObject * obj1 = 0 ;
19368 PyObject * obj2 = 0 ;
19369 PyObject * obj3 = 0 ;
19370 char *kwnames[] = {
19371 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
19372 };
d14a1e28 19373
994141e6 19374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
093d3ff1
RD
19375 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPenList, SWIG_POINTER_EXCEPTION | 0);
19376 if (SWIG_arg_fail(1)) SWIG_fail;
994141e6
RD
19377 {
19378 arg2 = &temp2;
19379 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19380 }
093d3ff1
RD
19381 {
19382 arg3 = (int)(SWIG_As_int(obj2));
19383 if (SWIG_arg_fail(3)) SWIG_fail;
19384 }
19385 {
19386 arg4 = (int)(SWIG_As_int(obj3));
19387 if (SWIG_arg_fail(4)) SWIG_fail;
19388 }
994141e6
RD
19389 {
19390 PyThreadState* __tstate = wxPyBeginAllowThreads();
19391 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
19392
19393 wxPyEndAllowThreads(__tstate);
19394 if (PyErr_Occurred()) SWIG_fail;
19395 }
15afbcd0 19396 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0);
994141e6
RD
19397 return resultobj;
19398 fail:
19399 return NULL;
d14a1e28
RD
19400}
19401
19402
c32bde28 19403static PyObject *_wrap_PenList_RemovePen(PyObject *, PyObject *args, PyObject *kwargs) {
994141e6
RD
19404 PyObject *resultobj;
19405 wxPenList *arg1 = (wxPenList *) 0 ;
19406 wxPen *arg2 = (wxPen *) 0 ;
19407 PyObject * obj0 = 0 ;
19408 PyObject * obj1 = 0 ;
19409 char *kwnames[] = {
19410 (char *) "self",(char *) "pen", NULL
19411 };
19412
19413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
093d3ff1
RD
19414 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPenList, SWIG_POINTER_EXCEPTION | 0);
19415 if (SWIG_arg_fail(1)) SWIG_fail;
19416 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
19417 if (SWIG_arg_fail(2)) SWIG_fail;
994141e6
RD
19418 {
19419 PyThreadState* __tstate = wxPyBeginAllowThreads();
19420 (arg1)->RemovePen(arg2);
19421
19422 wxPyEndAllowThreads(__tstate);
19423 if (PyErr_Occurred()) SWIG_fail;
19424 }
19425 Py_INCREF(Py_None); resultobj = Py_None;
19426 return resultobj;
19427 fail:
19428 return NULL;
d14a1e28
RD
19429}
19430
19431
c32bde28 19432static PyObject *_wrap_PenList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
994141e6
RD
19433 PyObject *resultobj;
19434 wxPenList *arg1 = (wxPenList *) 0 ;
19435 int result;
19436 PyObject * obj0 = 0 ;
19437 char *kwnames[] = {
19438 (char *) "self", NULL
19439 };
d14a1e28 19440
994141e6 19441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
093d3ff1
RD
19442 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPenList, SWIG_POINTER_EXCEPTION | 0);
19443 if (SWIG_arg_fail(1)) SWIG_fail;
994141e6
RD
19444 {
19445 PyThreadState* __tstate = wxPyBeginAllowThreads();
19446 result = (int)(arg1)->GetCount();
19447
19448 wxPyEndAllowThreads(__tstate);
19449 if (PyErr_Occurred()) SWIG_fail;
19450 }
093d3ff1
RD
19451 {
19452 resultobj = SWIG_From_int((int)(result));
19453 }
994141e6
RD
19454 return resultobj;
19455 fail:
19456 return NULL;
d14a1e28
RD
19457}
19458
19459
c32bde28 19460static PyObject * PenList_swigregister(PyObject *, PyObject *args) {
994141e6
RD
19461 PyObject *obj;
19462 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19463 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
19464 Py_INCREF(obj);
19465 return Py_BuildValue((char *)"");
19466}
c32bde28 19467static PyObject *_wrap_BrushList_AddBrush(PyObject *, PyObject *args, PyObject *kwargs) {
994141e6
RD
19468 PyObject *resultobj;
19469 wxBrushList *arg1 = (wxBrushList *) 0 ;
19470 wxBrush *arg2 = (wxBrush *) 0 ;
19471 PyObject * obj0 = 0 ;
19472 PyObject * obj1 = 0 ;
19473 char *kwnames[] = {
19474 (char *) "self",(char *) "brush", NULL
19475 };
19476
19477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
093d3ff1
RD
19478 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrushList, SWIG_POINTER_EXCEPTION | 0);
19479 if (SWIG_arg_fail(1)) SWIG_fail;
19480 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
19481 if (SWIG_arg_fail(2)) SWIG_fail;
994141e6
RD
19482 {
19483 PyThreadState* __tstate = wxPyBeginAllowThreads();
19484 (arg1)->AddBrush(arg2);
19485
19486 wxPyEndAllowThreads(__tstate);
19487 if (PyErr_Occurred()) SWIG_fail;
19488 }
19489 Py_INCREF(Py_None); resultobj = Py_None;
19490 return resultobj;
19491 fail:
19492 return NULL;
19493}
19494
19495
c32bde28 19496static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *, PyObject *args, PyObject *kwargs) {
994141e6
RD
19497 PyObject *resultobj;
19498 wxBrushList *arg1 = (wxBrushList *) 0 ;
19499 wxColour *arg2 = 0 ;
61d07ac7 19500 int arg3 = (int) wxSOLID ;
994141e6
RD
19501 wxBrush *result;
19502 wxColour temp2 ;
19503 PyObject * obj0 = 0 ;
19504 PyObject * obj1 = 0 ;
19505 PyObject * obj2 = 0 ;
19506 char *kwnames[] = {
19507 (char *) "self",(char *) "colour",(char *) "style", NULL
19508 };
19509
61d07ac7 19510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
093d3ff1
RD
19511 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrushList, SWIG_POINTER_EXCEPTION | 0);
19512 if (SWIG_arg_fail(1)) SWIG_fail;
994141e6
RD
19513 {
19514 arg2 = &temp2;
19515 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19516 }
61d07ac7
RD
19517 if (obj2) {
19518 {
19519 arg3 = (int)(SWIG_As_int(obj2));
19520 if (SWIG_arg_fail(3)) SWIG_fail;
19521 }
093d3ff1 19522 }
994141e6
RD
19523 {
19524 PyThreadState* __tstate = wxPyBeginAllowThreads();
19525 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
19526
19527 wxPyEndAllowThreads(__tstate);
19528 if (PyErr_Occurred()) SWIG_fail;
19529 }
15afbcd0 19530 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0);
994141e6
RD
19531 return resultobj;
19532 fail:
19533 return NULL;
d14a1e28
RD
19534}
19535
19536
c32bde28 19537static PyObject *_wrap_BrushList_RemoveBrush(PyObject *, PyObject *args, PyObject *kwargs) {
994141e6
RD
19538 PyObject *resultobj;
19539 wxBrushList *arg1 = (wxBrushList *) 0 ;
19540 wxBrush *arg2 = (wxBrush *) 0 ;
19541 PyObject * obj0 = 0 ;
19542 PyObject * obj1 = 0 ;
19543 char *kwnames[] = {
19544 (char *) "self",(char *) "brush", NULL
19545 };
d14a1e28 19546
994141e6 19547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
093d3ff1
RD
19548 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrushList, SWIG_POINTER_EXCEPTION | 0);
19549 if (SWIG_arg_fail(1)) SWIG_fail;
19550 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
19551 if (SWIG_arg_fail(2)) SWIG_fail;
994141e6
RD
19552 {
19553 PyThreadState* __tstate = wxPyBeginAllowThreads();
19554 (arg1)->RemoveBrush(arg2);
19555
19556 wxPyEndAllowThreads(__tstate);
19557 if (PyErr_Occurred()) SWIG_fail;
19558 }
19559 Py_INCREF(Py_None); resultobj = Py_None;
19560 return resultobj;
19561 fail:
19562 return NULL;
d14a1e28
RD
19563}
19564
19565
c32bde28 19566static PyObject *_wrap_BrushList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
994141e6
RD
19567 PyObject *resultobj;
19568 wxBrushList *arg1 = (wxBrushList *) 0 ;
19569 int result;
19570 PyObject * obj0 = 0 ;
19571 char *kwnames[] = {
19572 (char *) "self", NULL
19573 };
d14a1e28 19574
994141e6 19575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
093d3ff1
RD
19576 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrushList, SWIG_POINTER_EXCEPTION | 0);
19577 if (SWIG_arg_fail(1)) SWIG_fail;
994141e6
RD
19578 {
19579 PyThreadState* __tstate = wxPyBeginAllowThreads();
19580 result = (int)(arg1)->GetCount();
19581
19582 wxPyEndAllowThreads(__tstate);
19583 if (PyErr_Occurred()) SWIG_fail;
19584 }
093d3ff1
RD
19585 {
19586 resultobj = SWIG_From_int((int)(result));
19587 }
994141e6
RD
19588 return resultobj;
19589 fail:
19590 return NULL;
d14a1e28
RD
19591}
19592
19593
c32bde28 19594static PyObject * BrushList_swigregister(PyObject *, PyObject *args) {
994141e6
RD
19595 PyObject *obj;
19596 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19597 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
19598 Py_INCREF(obj);
19599 return Py_BuildValue((char *)"");
d14a1e28 19600}
c32bde28 19601static PyObject *_wrap_new_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) {
994141e6
RD
19602 PyObject *resultobj;
19603 wxColourDatabase *result;
19604 char *kwnames[] = {
19605 NULL
19606 };
d14a1e28 19607
994141e6
RD
19608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
19609 {
e3b71cb8 19610 if (!wxPyCheckForApp()) SWIG_fail;
994141e6
RD
19611 PyThreadState* __tstate = wxPyBeginAllowThreads();
19612 result = (wxColourDatabase *)new wxColourDatabase();
19613
19614 wxPyEndAllowThreads(__tstate);
110da5b0 19615 if (PyErr_Occurred()) SWIG_fail;
994141e6 19616 }
15afbcd0 19617 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1);
994141e6
RD
19618 return resultobj;
19619 fail:
19620 return NULL;
d14a1e28
RD
19621}
19622
19623
c32bde28 19624static PyObject *_wrap_delete_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) {
994141e6
RD
19625 PyObject *resultobj;
19626 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
19627 PyObject * obj0 = 0 ;
19628 char *kwnames[] = {
19629 (char *) "self", NULL
19630 };
d14a1e28 19631
994141e6 19632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
093d3ff1
RD
19633 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_EXCEPTION | 0);
19634 if (SWIG_arg_fail(1)) SWIG_fail;
994141e6
RD
19635 {
19636 PyThreadState* __tstate = wxPyBeginAllowThreads();
19637 delete arg1;
19638
19639 wxPyEndAllowThreads(__tstate);
19640 if (PyErr_Occurred()) SWIG_fail;
19641 }
19642 Py_INCREF(Py_None); resultobj = Py_None;
19643 return resultobj;
19644 fail:
19645 return NULL;
d14a1e28
RD
19646}
19647
19648
c32bde28 19649static PyObject *_wrap_ColourDatabase_Find(PyObject *, PyObject *args, PyObject *kwargs) {
994141e6
RD
19650 PyObject *resultobj;
19651 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
19652 wxString *arg2 = 0 ;
19653 wxColour result;
ae8162c8 19654 bool temp2 = false ;
994141e6
RD
19655 PyObject * obj0 = 0 ;
19656 PyObject * obj1 = 0 ;
19657 char *kwnames[] = {
19658 (char *) "self",(char *) "name", NULL
19659 };
19660
19661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
093d3ff1
RD
19662 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_EXCEPTION | 0);
19663 if (SWIG_arg_fail(1)) SWIG_fail;
994141e6
RD
19664 {
19665 arg2 = wxString_in_helper(obj1);
19666 if (arg2 == NULL) SWIG_fail;
ae8162c8 19667 temp2 = true;
994141e6
RD
19668 }
19669 {
19670 PyThreadState* __tstate = wxPyBeginAllowThreads();
19671 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
19672
19673 wxPyEndAllowThreads(__tstate);
19674 if (PyErr_Occurred()) SWIG_fail;
19675 }
19676 {
19677 wxColour * resultptr;
093d3ff1 19678 resultptr = new wxColour((wxColour &)(result));
15afbcd0 19679 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
994141e6
RD
19680 }
19681 {
19682 if (temp2)
19683 delete arg2;
19684 }
19685 return resultobj;
19686 fail:
19687 {
19688 if (temp2)
19689 delete arg2;
19690 }
19691 return NULL;
d14a1e28
RD
19692}
19693
19694
c32bde28 19695static PyObject *_wrap_ColourDatabase_FindName(PyObject *, PyObject *args, PyObject *kwargs) {
994141e6
RD
19696 PyObject *resultobj;
19697 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
19698 wxColour *arg2 = 0 ;
19699 wxString result;
19700 wxColour temp2 ;
19701 PyObject * obj0 = 0 ;
19702 PyObject * obj1 = 0 ;
19703 char *kwnames[] = {
19704 (char *) "self",(char *) "colour", NULL
19705 };
d14a1e28 19706
994141e6 19707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
093d3ff1
RD
19708 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_EXCEPTION | 0);
19709 if (SWIG_arg_fail(1)) SWIG_fail;
994141e6
RD
19710 {
19711 arg2 = &temp2;
19712 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19713 }
19714 {
19715 PyThreadState* __tstate = wxPyBeginAllowThreads();
19716 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
19717
19718 wxPyEndAllowThreads(__tstate);
19719 if (PyErr_Occurred()) SWIG_fail;
19720 }
19721 {
19722#if wxUSE_UNICODE
19723 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19724#else
19725 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19726#endif
19727 }
19728 return resultobj;
19729 fail:
19730 return NULL;
d14a1e28
RD
19731}
19732
19733
c32bde28 19734static PyObject *_wrap_ColourDatabase_AddColour(PyObject *, PyObject *args, PyObject *kwargs) {
994141e6
RD
19735 PyObject *resultobj;
19736 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
19737 wxString *arg2 = 0 ;
19738 wxColour *arg3 = 0 ;
ae8162c8 19739 bool temp2 = false ;
994141e6
RD
19740 wxColour temp3 ;
19741 PyObject * obj0 = 0 ;
19742 PyObject * obj1 = 0 ;
19743 PyObject * obj2 = 0 ;
19744 char *kwnames[] = {
19745 (char *) "self",(char *) "name",(char *) "colour", NULL
19746 };
19747
19748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
093d3ff1
RD
19749 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_EXCEPTION | 0);
19750 if (SWIG_arg_fail(1)) SWIG_fail;
994141e6
RD
19751 {
19752 arg2 = wxString_in_helper(obj1);
19753 if (arg2 == NULL) SWIG_fail;
ae8162c8 19754 temp2 = true;
994141e6
RD
19755 }
19756 {
19757 arg3 = &temp3;
19758 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
19759 }
19760 {
19761 PyThreadState* __tstate = wxPyBeginAllowThreads();
19762 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
19763
19764 wxPyEndAllowThreads(__tstate);
19765 if (PyErr_Occurred()) SWIG_fail;
19766 }
19767 Py_INCREF(Py_None); resultobj = Py_None;
19768 {
19769 if (temp2)
19770 delete arg2;
19771 }
19772 return resultobj;
19773 fail:
19774 {
19775 if (temp2)
19776 delete arg2;
19777 }
19778 return NULL;
d14a1e28
RD
19779}
19780
19781
c32bde28 19782static PyObject *_wrap_ColourDatabase_Append(PyObject *, PyObject *args, PyObject *kwargs) {
994141e6
RD
19783 PyObject *resultobj;
19784 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
19785 wxString *arg2 = 0 ;
19786 int arg3 ;
19787 int arg4 ;
19788 int arg5 ;
ae8162c8 19789 bool temp2 = false ;
994141e6
RD
19790 PyObject * obj0 = 0 ;
19791 PyObject * obj1 = 0 ;
19792 PyObject * obj2 = 0 ;
19793 PyObject * obj3 = 0 ;
19794 PyObject * obj4 = 0 ;
19795 char *kwnames[] = {
19796 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
19797 };
d14a1e28 19798
994141e6 19799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
093d3ff1
RD
19800 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_EXCEPTION | 0);
19801 if (SWIG_arg_fail(1)) SWIG_fail;
994141e6
RD
19802 {
19803 arg2 = wxString_in_helper(obj1);
19804 if (arg2 == NULL) SWIG_fail;
ae8162c8 19805 temp2 = true;
994141e6 19806 }
093d3ff1
RD
19807 {
19808 arg3 = (int)(SWIG_As_int(obj2));
19809 if (SWIG_arg_fail(3)) SWIG_fail;
19810 }
19811 {
19812 arg4 = (int)(SWIG_As_int(obj3));
19813 if (SWIG_arg_fail(4)) SWIG_fail;
19814 }
19815 {
19816 arg5 = (int)(SWIG_As_int(obj4));
19817 if (SWIG_arg_fail(5)) SWIG_fail;
19818 }
994141e6
RD
19819 {
19820 PyThreadState* __tstate = wxPyBeginAllowThreads();
19821 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
19822
19823 wxPyEndAllowThreads(__tstate);
19824 if (PyErr_Occurred()) SWIG_fail;
19825 }
19826 Py_INCREF(Py_None); resultobj = Py_None;
19827 {
19828 if (temp2)
19829 delete arg2;
19830 }
19831 return resultobj;
19832 fail:
19833 {
19834 if (temp2)
19835 delete arg2;
19836 }
19837 return NULL;
d14a1e28
RD
19838}
19839
19840
c32bde28 19841static PyObject * ColourDatabase_swigregister(PyObject *, PyObject *args) {
994141e6
RD
19842 PyObject *obj;
19843 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19844 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
19845 Py_INCREF(obj);
19846 return Py_BuildValue((char *)"");
d14a1e28 19847}
c32bde28 19848static PyObject *_wrap_FontList_AddFont(PyObject *, PyObject *args, PyObject *kwargs) {
994141e6
RD
19849 PyObject *resultobj;
19850 wxFontList *arg1 = (wxFontList *) 0 ;
19851 wxFont *arg2 = (wxFont *) 0 ;
19852 PyObject * obj0 = 0 ;
19853 PyObject * obj1 = 0 ;
19854 char *kwnames[] = {
19855 (char *) "self",(char *) "font", NULL
19856 };
d14a1e28 19857
994141e6 19858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
093d3ff1
RD
19859 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontList, SWIG_POINTER_EXCEPTION | 0);
19860 if (SWIG_arg_fail(1)) SWIG_fail;
19861 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
19862 if (SWIG_arg_fail(2)) SWIG_fail;
994141e6
RD
19863 {
19864 PyThreadState* __tstate = wxPyBeginAllowThreads();
19865 (arg1)->AddFont(arg2);
19866
19867 wxPyEndAllowThreads(__tstate);
19868 if (PyErr_Occurred()) SWIG_fail;
19869 }
19870 Py_INCREF(Py_None); resultobj = Py_None;
19871 return resultobj;
19872 fail:
19873 return NULL;
d14a1e28
RD
19874}
19875
19876
c32bde28 19877static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *, PyObject *args, PyObject *kwargs) {
994141e6
RD
19878 PyObject *resultobj;
19879 wxFontList *arg1 = (wxFontList *) 0 ;
19880 int arg2 ;
19881 int arg3 ;
19882 int arg4 ;
19883 int arg5 ;
ae8162c8 19884 bool arg6 = (bool) false ;
994141e6
RD
19885 wxString const &arg7_defvalue = wxPyEmptyString ;
19886 wxString *arg7 = (wxString *) &arg7_defvalue ;
093d3ff1 19887 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
994141e6 19888 wxFont *result;
ae8162c8 19889 bool temp7 = false ;
994141e6
RD
19890 PyObject * obj0 = 0 ;
19891 PyObject * obj1 = 0 ;
19892 PyObject * obj2 = 0 ;
19893 PyObject * obj3 = 0 ;
19894 PyObject * obj4 = 0 ;
19895 PyObject * obj5 = 0 ;
19896 PyObject * obj6 = 0 ;
19897 PyObject * obj7 = 0 ;
19898 char *kwnames[] = {
19899 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
19900 };
d14a1e28 19901
994141e6 19902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
093d3ff1
RD
19903 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontList, SWIG_POINTER_EXCEPTION | 0);
19904 if (SWIG_arg_fail(1)) SWIG_fail;
19905 {
19906 arg2 = (int)(SWIG_As_int(obj1));
19907 if (SWIG_arg_fail(2)) SWIG_fail;
19908 }
19909 {
19910 arg3 = (int)(SWIG_As_int(obj2));
19911 if (SWIG_arg_fail(3)) SWIG_fail;
19912 }
19913 {
19914 arg4 = (int)(SWIG_As_int(obj3));
19915 if (SWIG_arg_fail(4)) SWIG_fail;
19916 }
19917 {
19918 arg5 = (int)(SWIG_As_int(obj4));
19919 if (SWIG_arg_fail(5)) SWIG_fail;
19920 }
994141e6 19921 if (obj5) {
093d3ff1
RD
19922 {
19923 arg6 = (bool)(SWIG_As_bool(obj5));
19924 if (SWIG_arg_fail(6)) SWIG_fail;
19925 }
994141e6
RD
19926 }
19927 if (obj6) {
19928 {
19929 arg7 = wxString_in_helper(obj6);
19930 if (arg7 == NULL) SWIG_fail;
ae8162c8 19931 temp7 = true;
994141e6
RD
19932 }
19933 }
19934 if (obj7) {
093d3ff1
RD
19935 {
19936 arg8 = (wxFontEncoding)(SWIG_As_int(obj7));
19937 if (SWIG_arg_fail(8)) SWIG_fail;
19938 }
994141e6
RD
19939 }
19940 {
19941 PyThreadState* __tstate = wxPyBeginAllowThreads();
19942 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
19943
19944 wxPyEndAllowThreads(__tstate);
19945 if (PyErr_Occurred()) SWIG_fail;
19946 }
15afbcd0 19947 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
994141e6
RD
19948 {
19949 if (temp7)
19950 delete arg7;
19951 }
19952 return resultobj;
19953 fail:
19954 {
19955 if (temp7)
19956 delete arg7;
19957 }
19958 return NULL;
d14a1e28
RD
19959}
19960
19961
c32bde28 19962static PyObject *_wrap_FontList_RemoveFont(PyObject *, PyObject *args, PyObject *kwargs) {
994141e6
RD
19963 PyObject *resultobj;
19964 wxFontList *arg1 = (wxFontList *) 0 ;
19965 wxFont *arg2 = (wxFont *) 0 ;
19966 PyObject * obj0 = 0 ;
19967 PyObject * obj1 = 0 ;
19968 char *kwnames[] = {
19969 (char *) "self",(char *) "font", NULL
19970 };
d14a1e28 19971
994141e6 19972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
093d3ff1
RD
19973 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontList, SWIG_POINTER_EXCEPTION | 0);
19974 if (SWIG_arg_fail(1)) SWIG_fail;
19975 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
19976 if (SWIG_arg_fail(2)) SWIG_fail;
994141e6
RD
19977 {
19978 PyThreadState* __tstate = wxPyBeginAllowThreads();
19979 (arg1)->RemoveFont(arg2);
19980
19981 wxPyEndAllowThreads(__tstate);
19982 if (PyErr_Occurred()) SWIG_fail;
19983 }
19984 Py_INCREF(Py_None); resultobj = Py_None;
19985 return resultobj;
19986 fail:
19987 return NULL;
d14a1e28
RD
19988}
19989
19990
c32bde28 19991static PyObject *_wrap_FontList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
994141e6
RD
19992 PyObject *resultobj;
19993 wxFontList *arg1 = (wxFontList *) 0 ;
19994 int result;
19995 PyObject * obj0 = 0 ;
19996 char *kwnames[] = {
19997 (char *) "self", NULL
19998 };
d14a1e28 19999
994141e6 20000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
093d3ff1
RD
20001 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontList, SWIG_POINTER_EXCEPTION | 0);
20002 if (SWIG_arg_fail(1)) SWIG_fail;
994141e6
RD
20003 {
20004 PyThreadState* __tstate = wxPyBeginAllowThreads();
20005 result = (int)(arg1)->GetCount();
20006
20007 wxPyEndAllowThreads(__tstate);
20008 if (PyErr_Occurred()) SWIG_fail;
20009 }
093d3ff1
RD
20010 {
20011 resultobj = SWIG_From_int((int)(result));
20012 }
994141e6
RD
20013 return resultobj;
20014 fail:
20015 return NULL;
d14a1e28
RD
20016}
20017
20018
c32bde28 20019static PyObject * FontList_swigregister(PyObject *, PyObject *args) {
994141e6
RD
20020 PyObject *obj;
20021 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20022 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
20023 Py_INCREF(obj);
20024 return Py_BuildValue((char *)"");
20025}
c32bde28 20026static int _wrap_TheFontList_set(PyObject *) {
d14a1e28
RD
20027 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
20028 return 1;
20029}
20030
20031
093d3ff1 20032static PyObject *_wrap_TheFontList_get(void) {
d14a1e28
RD
20033 PyObject *pyobj;
20034
15afbcd0 20035 pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0);
d14a1e28
RD
20036 return pyobj;
20037}
20038
20039
c32bde28 20040static int _wrap_ThePenList_set(PyObject *) {
d14a1e28
RD
20041 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
20042 return 1;
20043}
20044
20045
093d3ff1 20046static PyObject *_wrap_ThePenList_get(void) {
d14a1e28
RD
20047 PyObject *pyobj;
20048
15afbcd0 20049 pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0);
d14a1e28
RD
20050 return pyobj;
20051}
20052
20053
c32bde28 20054static int _wrap_TheBrushList_set(PyObject *) {
d14a1e28
RD
20055 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
20056 return 1;
20057}
20058
20059
093d3ff1 20060static PyObject *_wrap_TheBrushList_get(void) {
d14a1e28
RD
20061 PyObject *pyobj;
20062
15afbcd0 20063 pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0);
d14a1e28
RD
20064 return pyobj;
20065}
20066
20067
c32bde28 20068static int _wrap_TheColourDatabase_set(PyObject *) {
d14a1e28
RD
20069 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
20070 return 1;
20071}
20072
20073
093d3ff1 20074static PyObject *_wrap_TheColourDatabase_get(void) {
d14a1e28
RD
20075 PyObject *pyobj;
20076
15afbcd0 20077 pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0);
d14a1e28
RD
20078 return pyobj;
20079}
20080
20081
c32bde28 20082static PyObject *_wrap_new_Effects(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 20083 PyObject *resultobj;
e811c8ce 20084 wxEffects *result;
d14a1e28 20085 char *kwnames[] = {
e811c8ce 20086 NULL
d14a1e28
RD
20087 };
20088
e811c8ce 20089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
d14a1e28
RD
20090 {
20091 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 20092 result = (wxEffects *)new wxEffects();
d14a1e28
RD
20093
20094 wxPyEndAllowThreads(__tstate);
20095 if (PyErr_Occurred()) SWIG_fail;
20096 }
15afbcd0 20097 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1);
d14a1e28
RD
20098 return resultobj;
20099 fail:
20100 return NULL;
20101}
20102
20103
c32bde28 20104static PyObject *_wrap_Effects_GetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 20105 PyObject *resultobj;
e811c8ce
RD
20106 wxEffects *arg1 = (wxEffects *) 0 ;
20107 wxColour result;
d14a1e28 20108 PyObject * obj0 = 0 ;
d14a1e28 20109 char *kwnames[] = {
e811c8ce 20110 (char *) "self", NULL
d14a1e28
RD
20111 };
20112
e811c8ce 20113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
093d3ff1
RD
20114 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
20115 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
20116 {
20117 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 20118 result = ((wxEffects const *)arg1)->GetHighlightColour();
d14a1e28
RD
20119
20120 wxPyEndAllowThreads(__tstate);
20121 if (PyErr_Occurred()) SWIG_fail;
20122 }
e811c8ce
RD
20123 {
20124 wxColour * resultptr;
093d3ff1 20125 resultptr = new wxColour((wxColour &)(result));
15afbcd0 20126 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
e811c8ce 20127 }
d14a1e28
RD
20128 return resultobj;
20129 fail:
20130 return NULL;
20131}
20132
20133
c32bde28 20134static PyObject *_wrap_Effects_GetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 20135 PyObject *resultobj;
e811c8ce
RD
20136 wxEffects *arg1 = (wxEffects *) 0 ;
20137 wxColour result;
d14a1e28 20138 PyObject * obj0 = 0 ;
d14a1e28 20139 char *kwnames[] = {
e811c8ce 20140 (char *) "self", NULL
d14a1e28
RD
20141 };
20142
e811c8ce 20143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
093d3ff1
RD
20144 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
20145 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
20146 {
20147 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 20148 result = ((wxEffects const *)arg1)->GetLightShadow();
d14a1e28
RD
20149
20150 wxPyEndAllowThreads(__tstate);
20151 if (PyErr_Occurred()) SWIG_fail;
20152 }
d14a1e28 20153 {
e811c8ce 20154 wxColour * resultptr;
093d3ff1 20155 resultptr = new wxColour((wxColour &)(result));
15afbcd0 20156 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
20157 }
20158 return resultobj;
20159 fail:
d14a1e28
RD
20160 return NULL;
20161}
20162
20163
c32bde28 20164static PyObject *_wrap_Effects_GetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 20165 PyObject *resultobj;
e811c8ce
RD
20166 wxEffects *arg1 = (wxEffects *) 0 ;
20167 wxColour result;
d14a1e28 20168 PyObject * obj0 = 0 ;
d14a1e28 20169 char *kwnames[] = {
e811c8ce 20170 (char *) "self", NULL
d14a1e28
RD
20171 };
20172
e811c8ce 20173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
093d3ff1
RD
20174 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
20175 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
20176 {
20177 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 20178 result = ((wxEffects const *)arg1)->GetFaceColour();
d14a1e28
RD
20179
20180 wxPyEndAllowThreads(__tstate);
20181 if (PyErr_Occurred()) SWIG_fail;
20182 }
e811c8ce
RD
20183 {
20184 wxColour * resultptr;
093d3ff1 20185 resultptr = new wxColour((wxColour &)(result));
15afbcd0 20186 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
e811c8ce 20187 }
d14a1e28
RD
20188 return resultobj;
20189 fail:
20190 return NULL;
20191}
20192
20193
c32bde28 20194static PyObject *_wrap_Effects_GetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28 20195 PyObject *resultobj;
e811c8ce
RD
20196 wxEffects *arg1 = (wxEffects *) 0 ;
20197 wxColour result;
d14a1e28
RD
20198 PyObject * obj0 = 0 ;
20199 char *kwnames[] = {
e811c8ce 20200 (char *) "self", NULL
d14a1e28
RD
20201 };
20202
20203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
093d3ff1
RD
20204 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
20205 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
20206 {
20207 PyThreadState* __tstate = wxPyBeginAllowThreads();
20208 result = ((wxEffects const *)arg1)->GetMediumShadow();
20209
20210 wxPyEndAllowThreads(__tstate);
20211 if (PyErr_Occurred()) SWIG_fail;
20212 }
20213 {
20214 wxColour * resultptr;
093d3ff1 20215 resultptr = new wxColour((wxColour &)(result));
15afbcd0 20216 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
20217 }
20218 return resultobj;
20219 fail:
20220 return NULL;
20221}
20222
20223
c32bde28 20224static PyObject *_wrap_Effects_GetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
20225 PyObject *resultobj;
20226 wxEffects *arg1 = (wxEffects *) 0 ;
20227 wxColour result;
20228 PyObject * obj0 = 0 ;
20229 char *kwnames[] = {
20230 (char *) "self", NULL
20231 };
20232
20233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
093d3ff1
RD
20234 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
20235 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
20236 {
20237 PyThreadState* __tstate = wxPyBeginAllowThreads();
20238 result = ((wxEffects const *)arg1)->GetDarkShadow();
20239
20240 wxPyEndAllowThreads(__tstate);
20241 if (PyErr_Occurred()) SWIG_fail;
20242 }
20243 {
20244 wxColour * resultptr;
093d3ff1 20245 resultptr = new wxColour((wxColour &)(result));
15afbcd0 20246 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
20247 }
20248 return resultobj;
20249 fail:
20250 return NULL;
20251}
20252
20253
c32bde28 20254static PyObject *_wrap_Effects_SetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
20255 PyObject *resultobj;
20256 wxEffects *arg1 = (wxEffects *) 0 ;
20257 wxColour *arg2 = 0 ;
20258 wxColour temp2 ;
20259 PyObject * obj0 = 0 ;
20260 PyObject * obj1 = 0 ;
20261 char *kwnames[] = {
20262 (char *) "self",(char *) "c", NULL
20263 };
20264
20265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
093d3ff1
RD
20266 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
20267 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
20268 {
20269 arg2 = &temp2;
20270 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
20271 }
20272 {
20273 PyThreadState* __tstate = wxPyBeginAllowThreads();
20274 (arg1)->SetHighlightColour((wxColour const &)*arg2);
20275
20276 wxPyEndAllowThreads(__tstate);
20277 if (PyErr_Occurred()) SWIG_fail;
20278 }
20279 Py_INCREF(Py_None); resultobj = Py_None;
20280 return resultobj;
20281 fail:
20282 return NULL;
20283}
20284
20285
c32bde28 20286static PyObject *_wrap_Effects_SetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
20287 PyObject *resultobj;
20288 wxEffects *arg1 = (wxEffects *) 0 ;
20289 wxColour *arg2 = 0 ;
20290 wxColour temp2 ;
20291 PyObject * obj0 = 0 ;
20292 PyObject * obj1 = 0 ;
20293 char *kwnames[] = {
20294 (char *) "self",(char *) "c", NULL
20295 };
20296
20297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
093d3ff1
RD
20298 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
20299 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
20300 {
20301 arg2 = &temp2;
20302 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
20303 }
20304 {
20305 PyThreadState* __tstate = wxPyBeginAllowThreads();
20306 (arg1)->SetLightShadow((wxColour const &)*arg2);
20307
20308 wxPyEndAllowThreads(__tstate);
20309 if (PyErr_Occurred()) SWIG_fail;
20310 }
20311 Py_INCREF(Py_None); resultobj = Py_None;
20312 return resultobj;
20313 fail:
20314 return NULL;
20315}
20316
20317
c32bde28 20318static PyObject *_wrap_Effects_SetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
20319 PyObject *resultobj;
20320 wxEffects *arg1 = (wxEffects *) 0 ;
20321 wxColour *arg2 = 0 ;
20322 wxColour temp2 ;
20323 PyObject * obj0 = 0 ;
20324 PyObject * obj1 = 0 ;
20325 char *kwnames[] = {
20326 (char *) "self",(char *) "c", NULL
20327 };
20328
20329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
093d3ff1
RD
20330 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
20331 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
20332 {
20333 arg2 = &temp2;
20334 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
20335 }
20336 {
20337 PyThreadState* __tstate = wxPyBeginAllowThreads();
20338 (arg1)->SetFaceColour((wxColour const &)*arg2);
20339
20340 wxPyEndAllowThreads(__tstate);
20341 if (PyErr_Occurred()) SWIG_fail;
20342 }
20343 Py_INCREF(Py_None); resultobj = Py_None;
20344 return resultobj;
20345 fail:
20346 return NULL;
20347}
20348
20349
c32bde28 20350static PyObject *_wrap_Effects_SetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
20351 PyObject *resultobj;
20352 wxEffects *arg1 = (wxEffects *) 0 ;
20353 wxColour *arg2 = 0 ;
20354 wxColour temp2 ;
20355 PyObject * obj0 = 0 ;
20356 PyObject * obj1 = 0 ;
20357 char *kwnames[] = {
20358 (char *) "self",(char *) "c", NULL
20359 };
20360
20361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
093d3ff1
RD
20362 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
20363 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
20364 {
20365 arg2 = &temp2;
20366 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
20367 }
20368 {
20369 PyThreadState* __tstate = wxPyBeginAllowThreads();
20370 (arg1)->SetMediumShadow((wxColour const &)*arg2);
20371
20372 wxPyEndAllowThreads(__tstate);
20373 if (PyErr_Occurred()) SWIG_fail;
20374 }
20375 Py_INCREF(Py_None); resultobj = Py_None;
20376 return resultobj;
20377 fail:
20378 return NULL;
20379}
20380
20381
c32bde28 20382static PyObject *_wrap_Effects_SetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
20383 PyObject *resultobj;
20384 wxEffects *arg1 = (wxEffects *) 0 ;
20385 wxColour *arg2 = 0 ;
20386 wxColour temp2 ;
20387 PyObject * obj0 = 0 ;
20388 PyObject * obj1 = 0 ;
20389 char *kwnames[] = {
20390 (char *) "self",(char *) "c", NULL
20391 };
20392
20393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
093d3ff1
RD
20394 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
20395 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
20396 {
20397 arg2 = &temp2;
20398 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
20399 }
20400 {
20401 PyThreadState* __tstate = wxPyBeginAllowThreads();
20402 (arg1)->SetDarkShadow((wxColour const &)*arg2);
20403
20404 wxPyEndAllowThreads(__tstate);
20405 if (PyErr_Occurred()) SWIG_fail;
20406 }
20407 Py_INCREF(Py_None); resultobj = Py_None;
20408 return resultobj;
20409 fail:
20410 return NULL;
20411}
20412
20413
c32bde28 20414static PyObject *_wrap_Effects_Set(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
20415 PyObject *resultobj;
20416 wxEffects *arg1 = (wxEffects *) 0 ;
20417 wxColour *arg2 = 0 ;
20418 wxColour *arg3 = 0 ;
20419 wxColour *arg4 = 0 ;
20420 wxColour *arg5 = 0 ;
20421 wxColour *arg6 = 0 ;
20422 wxColour temp2 ;
20423 wxColour temp3 ;
20424 wxColour temp4 ;
20425 wxColour temp5 ;
20426 wxColour temp6 ;
20427 PyObject * obj0 = 0 ;
20428 PyObject * obj1 = 0 ;
20429 PyObject * obj2 = 0 ;
20430 PyObject * obj3 = 0 ;
20431 PyObject * obj4 = 0 ;
20432 PyObject * obj5 = 0 ;
20433 char *kwnames[] = {
20434 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
20435 };
20436
20437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
093d3ff1
RD
20438 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
20439 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
20440 {
20441 arg2 = &temp2;
20442 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
20443 }
20444 {
20445 arg3 = &temp3;
20446 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
20447 }
20448 {
20449 arg4 = &temp4;
20450 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
20451 }
20452 {
20453 arg5 = &temp5;
20454 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
20455 }
20456 {
20457 arg6 = &temp6;
20458 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
20459 }
20460 {
20461 PyThreadState* __tstate = wxPyBeginAllowThreads();
20462 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
20463
20464 wxPyEndAllowThreads(__tstate);
20465 if (PyErr_Occurred()) SWIG_fail;
20466 }
20467 Py_INCREF(Py_None); resultobj = Py_None;
20468 return resultobj;
20469 fail:
20470 return NULL;
20471}
20472
20473
c32bde28 20474static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
20475 PyObject *resultobj;
20476 wxEffects *arg1 = (wxEffects *) 0 ;
20477 wxDC *arg2 = 0 ;
20478 wxRect *arg3 = 0 ;
20479 int arg4 = (int) 1 ;
20480 wxRect temp3 ;
20481 PyObject * obj0 = 0 ;
20482 PyObject * obj1 = 0 ;
20483 PyObject * obj2 = 0 ;
994141e6 20484 PyObject * obj3 = 0 ;
d14a1e28
RD
20485 char *kwnames[] = {
20486 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
20487 };
20488
994141e6 20489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
093d3ff1
RD
20490 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
20491 if (SWIG_arg_fail(1)) SWIG_fail;
20492 {
20493 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
20494 if (SWIG_arg_fail(2)) SWIG_fail;
20495 if (arg2 == NULL) {
20496 SWIG_null_ref("wxDC");
20497 }
20498 if (SWIG_arg_fail(2)) SWIG_fail;
d14a1e28
RD
20499 }
20500 {
20501 arg3 = &temp3;
20502 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
20503 }
994141e6 20504 if (obj3) {
093d3ff1
RD
20505 {
20506 arg4 = (int)(SWIG_As_int(obj3));
20507 if (SWIG_arg_fail(4)) SWIG_fail;
20508 }
994141e6 20509 }
d14a1e28
RD
20510 {
20511 PyThreadState* __tstate = wxPyBeginAllowThreads();
20512 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
20513
20514 wxPyEndAllowThreads(__tstate);
20515 if (PyErr_Occurred()) SWIG_fail;
20516 }
20517 Py_INCREF(Py_None); resultobj = Py_None;
20518 return resultobj;
20519 fail:
20520 return NULL;
20521}
20522
20523
c32bde28 20524static PyObject *_wrap_Effects_TileBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
20525 PyObject *resultobj;
20526 wxEffects *arg1 = (wxEffects *) 0 ;
20527 wxRect *arg2 = 0 ;
20528 wxDC *arg3 = 0 ;
20529 wxBitmap *arg4 = 0 ;
20530 bool result;
20531 wxRect temp2 ;
20532 PyObject * obj0 = 0 ;
20533 PyObject * obj1 = 0 ;
20534 PyObject * obj2 = 0 ;
20535 PyObject * obj3 = 0 ;
20536 char *kwnames[] = {
20537 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
20538 };
20539
20540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
093d3ff1
RD
20541 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
20542 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
20543 {
20544 arg2 = &temp2;
20545 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
20546 }
093d3ff1
RD
20547 {
20548 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
20549 if (SWIG_arg_fail(3)) SWIG_fail;
20550 if (arg3 == NULL) {
20551 SWIG_null_ref("wxDC");
20552 }
20553 if (SWIG_arg_fail(3)) SWIG_fail;
d14a1e28 20554 }
093d3ff1
RD
20555 {
20556 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
20557 if (SWIG_arg_fail(4)) SWIG_fail;
20558 if (arg4 == NULL) {
20559 SWIG_null_ref("wxBitmap");
20560 }
20561 if (SWIG_arg_fail(4)) SWIG_fail;
d14a1e28
RD
20562 }
20563 {
20564 PyThreadState* __tstate = wxPyBeginAllowThreads();
20565 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
20566
20567 wxPyEndAllowThreads(__tstate);
20568 if (PyErr_Occurred()) SWIG_fail;
20569 }
4f89f6a3
RD
20570 {
20571 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20572 }
d14a1e28
RD
20573 return resultobj;
20574 fail:
20575 return NULL;
20576}
20577
20578
c32bde28 20579static PyObject * Effects_swigregister(PyObject *, PyObject *args) {
d14a1e28
RD
20580 PyObject *obj;
20581 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20582 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
20583 Py_INCREF(obj);
20584 return Py_BuildValue((char *)"");
20585}
20586static PyMethodDef SwigMethods[] = {
093d3ff1
RD
20587 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL},
20588 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL},
20589 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS, NULL},
20590 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS, NULL},
20591 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS, NULL},
20592 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
20593 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
20594 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
20595 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
20596 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
20597 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS, NULL},
20598 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS, NULL},
20599 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS, NULL},
20600 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
20601 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
20602 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
20603 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
20604 { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
20605 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
20606 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
20607 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
20608 { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
20609 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
20610 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
20611 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
20612 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
20613 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
20614 { (char *)"Palette_GetColoursCount", (PyCFunction) _wrap_Palette_GetColoursCount, METH_VARARGS | METH_KEYWORDS, NULL},
20615 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
20616 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
20617 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
20618 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
20619 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS, NULL},
20620 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
20621 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
20622 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
20623 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
20624 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
20625 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
20626 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
20627 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
20628 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
20629 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
20630 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
20631 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
20632 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
20633 { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS, NULL},
20634 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
20635 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
20636 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
20637 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
d04418a7 20638 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
093d3ff1
RD
20639 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
20640 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
20641 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
20642 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
20643 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
20644 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
20645 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
20646 { (char *)"Brush_IsHatch", (PyCFunction) _wrap_Brush_IsHatch, METH_VARARGS | METH_KEYWORDS, NULL},
20647 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
20648 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
20649 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
20650 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
20651 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
20652 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
20653 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
20654 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
20655 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
20656 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
20657 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
20658 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
20659 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
20660 { (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
20661 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS, NULL},
20662 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS, NULL},
20663 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
20664 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
20665 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
20666 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
20667 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
20668 { (char *)"Bitmap_GetPalette", (PyCFunction) _wrap_Bitmap_GetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
20669 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
20670 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
20671 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
20672 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
20673 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
20674 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
20675 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
20676 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
20677 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
20678 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
20679 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
20680 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
20681 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS, NULL},
20682 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
20683 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
20684 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
20685 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
20686 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
20687 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
20688 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
20689 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
20690 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
20691 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
20692 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
20693 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
20694 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
20695 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
20696 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
20697 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS, NULL},
20698 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
20699 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
20700 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
20701 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
20702 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
20703 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL},
20704 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
20705 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
20706 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL},
20707 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
20708 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
20709 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
20710 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
20711 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
20712 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
20713 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
20714 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
20715 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
20716 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
20717 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
20718 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
20719 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
20720 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
20721 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS, NULL},
20722 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS, NULL},
20723 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
20724 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
20725 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
20726 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
20727 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
20728 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS, NULL},
20729 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
20730 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
20731 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
20732 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS, NULL},
20733 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
20734 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
20735 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
20736 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
20737 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
20738 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
20739 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
20740 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
20741 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
20742 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
20743 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
20744 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
20745 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
20746 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
20747 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
20748 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS, NULL},
20749 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS, NULL},
20750 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS, NULL},
20751 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
20752 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS, NULL},
20753 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
20754 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS, NULL},
20755 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS, NULL},
20756 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
20757 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS, NULL},
20758 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL},
20759 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
20760 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
20761 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
20762 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS, NULL},
20763 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
20764 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
20765 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
20766 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
20767 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
20768 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
20769 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
20770 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
20771 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
20772 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
20773 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
20774 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
20775 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
20776 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
20777 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
20778 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
20779 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL},
20780 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS, NULL},
20781 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
20782 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS, NULL},
20783 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
20784 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS, NULL},
20785 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS, NULL},
20786 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS, NULL},
20787 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS, NULL},
20788 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL},
20789 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL},
20790 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
20791 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL},
20792 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
20793 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
20794 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
20795 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL},
20796 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL},
20797 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS, NULL},
20798 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
20799 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
20800 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS, NULL},
20801 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
20802 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
20803 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
20804 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
20805 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS, NULL},
20806 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
20807 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
20808 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
20809 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
20810 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
20811 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
20812 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
20813 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
20814 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS, NULL},
20815 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
20816 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
73c8ef6a 20817 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
093d3ff1 20818 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
73c8ef6a 20819 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
093d3ff1
RD
20820 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
20821 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
20822 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
20823 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
20824 { (char *)"Font_GetPixelSize", (PyCFunction) _wrap_Font_GetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
20825 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction) _wrap_Font_IsUsingSizeInPixels, METH_VARARGS | METH_KEYWORDS, NULL},
20826 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
20827 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
20828 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
20829 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
20830 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
20831 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
20832 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
20833 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS, NULL},
20834 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS, NULL},
20835 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
20836 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
20837 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
20838 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
20839 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
20840 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
20841 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
20842 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
20843 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
20844 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
20845 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
20846 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
20847 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS, NULL},
20848 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS, NULL},
20849 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS, NULL},
20850 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
20851 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
20852 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
20853 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
20854 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
20855 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL},
20856 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL},
20857 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
20858 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
20859 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
20860 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
20861 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
20862 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
20863 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS, NULL},
20864 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS, NULL},
20865 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS, NULL},
20866 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS, NULL},
20867 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS, NULL},
20868 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS, NULL},
20869 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
20870 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
20871 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
20872 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
20873 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
20874 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
20875 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
20876 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
20877 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS, NULL},
20878 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL},
20879 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
20880 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS, NULL},
20881 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS, NULL},
20882 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
20883 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
20884 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
20885 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
20886 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
20887 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
20888 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
20889 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
20890 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS, NULL},
20891 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
20892 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL},
20893 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
20894 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL},
20895 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL},
20896 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
20897 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
20898 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
20899 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
20900 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
20901 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
20902 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS, NULL},
20903 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS, NULL},
20904 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS, NULL},
20905 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
20906 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
20907 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
20908 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
20909 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
20910 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
20911 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
20912 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
20913 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
20914 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
20915 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
20916 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
20917 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
20918 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
20919 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
20920 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
20921 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
20922 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
20923 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
20924 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
20925 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
20926 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
20927 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
20928 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
20929 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
20930 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
20931 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
20932 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
20933 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
20934 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
20935 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
20936 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
20937 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
20938 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
20939 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
20940 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
20941 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
20942 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
20943 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
20944 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
20945 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
20946 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
20947 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
20948 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
20949 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
20950 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
20951 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS, NULL},
20952 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
20953 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS, NULL},
20954 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS, NULL},
20955 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS, NULL},
20956 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
20957 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
20958 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
20959 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
20960 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
20961 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
20962 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
20963 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS, NULL},
20964 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
20965 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS, NULL},
20966 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS, NULL},
20967 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
20968 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
20969 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
20970 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
20971 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
20972 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL},
20973 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS, NULL},
20974 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS, NULL},
20975 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
20976 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
20977 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
20978 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
20979 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
20980 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
20981 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
20982 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
20983 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
20984 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
20985 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
20986 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS, NULL},
20987 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
20988 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
20989 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
20990 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
20991 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
20992 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
20993 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
20994 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
20995 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
20996 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
20997 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
20998 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
20999 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
21000 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
21001 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
21002 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
21003 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
21004 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL},
21005 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
21006 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
21007 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
21008 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL},
21009 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
21010 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
21011 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
21012 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
21013 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
21014 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction) _wrap_DC_ComputeScaleAndOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
21015 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
21016 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
21017 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
21018 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS, NULL},
21019 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS, NULL},
21020 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS, NULL},
21021 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS, NULL},
21022 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
21023 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
21024 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
21025 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
21026 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
21027 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
21028 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
21029 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
21030 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
21031 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
21032 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
21033 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
21034 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
21035 { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS, NULL},
21036 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS, NULL},
21037 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
21038 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
21039 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
21040 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS, NULL},
21041 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
21042 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
21043 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
21044 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
21045 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
21046 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
21047 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
21048 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
21049 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
21050 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
21051 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
21052 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
21053 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
21054 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
21055 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
21056 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
21057 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
21058 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
21059 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
21060 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
21061 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
21062 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
21063 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
21064 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
21065 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
21066 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
21067 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
21068 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
21069 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
b9d6a5f3
RD
21070 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
21071 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
093d3ff1
RD
21072 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
21073 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
21074 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS, NULL},
21075 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
21076 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS, NULL},
21077 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
21078 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
21079 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
21080 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
21081 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
21082 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL},
21083 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
21084 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
21085 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
21086 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
21087 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL},
21088 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
21089 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL},
21090 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL},
21091 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
21092 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
21093 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
21094 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
21095 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
21096 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
21097 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
21098 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
21099 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL},
21100 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
21101 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS, NULL},
21102 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
21103 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
21104 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
21105 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
21106 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
21107 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
21108 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
21109 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
21110 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
21111 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
21112 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
21113 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
21114 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
21115 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
c32bde28 21116 { NULL, NULL, 0, NULL }
d14a1e28
RD
21117};
21118
21119
21120/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
21121
21122static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
21123 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
21124}
21125static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
21126 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
21127}
093d3ff1
RD
21128static void *_p_wxIconTo_p_wxGDIObject(void *x) {
21129 return (void *)((wxGDIObject *) ((wxIcon *) x));
d14a1e28 21130}
093d3ff1
RD
21131static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
21132 return (void *)((wxGDIObject *) ((wxPalette *) x));
d14a1e28 21133}
093d3ff1
RD
21134static void *_p_wxPenTo_p_wxGDIObject(void *x) {
21135 return (void *)((wxGDIObject *) ((wxPen *) x));
21136}
21137static void *_p_wxFontTo_p_wxGDIObject(void *x) {
21138 return (void *)((wxGDIObject *) ((wxFont *) x));
21139}
21140static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
21141 return (void *)((wxGDIObject *) ((wxCursor *) x));
21142}
21143static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
21144 return (void *)((wxGDIObject *) ((wxBitmap *) x));
21145}
21146static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
21147 return (void *)((wxGDIObject *) ((wxRegion *) x));
21148}
21149static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
21150 return (void *)((wxGDIObject *) ((wxBrush *) x));
21151}
21152static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
21153 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
21154}
21155static void *_p_wxScreenDCTo_p_wxDC(void *x) {
21156 return (void *)((wxDC *) ((wxScreenDC *) x));
21157}
21158static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
21159 return (void *)((wxDC *) ((wxMirrorDC *) x));
21160}
21161static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
21162 return (void *)((wxDC *) ((wxMemoryDC *) x));
21163}
21164static void *_p_wxWindowDCTo_p_wxDC(void *x) {
21165 return (void *)((wxDC *) ((wxWindowDC *) x));
21166}
21167static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
21168 return (void *)((wxDC *) ((wxMetaFileDC *) x));
21169}
21170static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
21171 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
21172}
21173static void *_p_wxClientDCTo_p_wxDC(void *x) {
21174 return (void *)((wxDC *) ((wxClientDC *) x));
21175}
21176static void *_p_wxPaintDCTo_p_wxDC(void *x) {
21177 return (void *)((wxDC *) ((wxPaintDC *) x));
21178}
21179static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
21180 return (void *)((wxDC *) ((wxPostScriptDC *) x));
21181}
21182static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
21183 return (void *)((wxDC *) ((wxPrinterDC *) x));
21184}
21185static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
21186 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
21187}
21188static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
21189 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
21190}
21191static void *_p_wxPenTo_p_wxObject(void *x) {
21192 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
21193}
21194static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
d14a1e28
RD
21195 return (void *)((wxObject *) ((wxRegionIterator *) x));
21196}
21197static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
21198 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
21199}
21200static void *_p_wxSizerItemTo_p_wxObject(void *x) {
21201 return (void *)((wxObject *) ((wxSizerItem *) x));
21202}
21203static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
21204 return (void *)((wxObject *) ((wxColourDatabase *) x));
21205}
21206static void *_p_wxScrollEventTo_p_wxObject(void *x) {
21207 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
21208}
21209static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
21210 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
21211}
21212static void *_p_wxIconTo_p_wxObject(void *x) {
21213 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
21214}
21215static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
21216 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
21217}
21218static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
21219 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
21220}
21221static void *_p_wxSizerTo_p_wxObject(void *x) {
21222 return (void *)((wxObject *) ((wxSizer *) x));
21223}
21224static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
21225 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
21226}
21227static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
21228 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
21229}
21230static void *_p_wxPenListTo_p_wxObject(void *x) {
21231 return (void *)((wxObject *) ((wxPenList *) x));
21232}
21233static void *_p_wxEventTo_p_wxObject(void *x) {
21234 return (void *)((wxObject *) ((wxEvent *) x));
21235}
21236static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
21237 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
21238}
21239static void *_p_wxGridSizerTo_p_wxObject(void *x) {
21240 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
21241}
21242static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
21243 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
21244}
21245static void *_p_wxPaintEventTo_p_wxObject(void *x) {
21246 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
21247}
21248static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
21249 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
21250}
21251static void *_p_wxDCTo_p_wxObject(void *x) {
21252 return (void *)((wxObject *) ((wxDC *) x));
21253}
21254static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
21255 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
21256}
21257static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
21258 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
21259}
21260static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
21261 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
21262}
21263static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
21264 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
21265}
21266static void *_p_wxControlTo_p_wxObject(void *x) {
21267 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
21268}
21269static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
21270 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
21271}
21272static void *_p_wxClientDCTo_p_wxObject(void *x) {
21273 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
21274}
21275static void *_p_wxFSFileTo_p_wxObject(void *x) {
21276 return (void *)((wxObject *) ((wxFSFile *) x));
21277}
21278static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
21279 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
21280}
21281static void *_p_wxRegionTo_p_wxObject(void *x) {
21282 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
21283}
21284static void *_p_wxPySizerTo_p_wxObject(void *x) {
21285 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
21286}
21287static void *_p_wxWindowDCTo_p_wxObject(void *x) {
21288 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
21289}
21290static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
21291 return (void *)((wxObject *) ((wxGDIObject *) x));
21292}
21293static void *_p_wxEffectsTo_p_wxObject(void *x) {
21294 return (void *)((wxObject *) ((wxEffects *) x));
21295}
21296static void *_p_wxPyEventTo_p_wxObject(void *x) {
21297 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
21298}
21299static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
21300 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
21301}
21302static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
21303 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
21304}
21305static void *_p_wxShowEventTo_p_wxObject(void *x) {
21306 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
21307}
21308static void *_p_wxMenuItemTo_p_wxObject(void *x) {
21309 return (void *)((wxObject *) ((wxMenuItem *) x));
21310}
53aa7709
RD
21311static void *_p_wxDateEventTo_p_wxObject(void *x) {
21312 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
21313}
d14a1e28
RD
21314static void *_p_wxIdleEventTo_p_wxObject(void *x) {
21315 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
21316}
21317static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
21318 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
21319}
21320static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
21321 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
21322}
21323static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
21324 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
21325}
21326static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
21327 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
21328}
21329static void *_p_wxSizeEventTo_p_wxObject(void *x) {
21330 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
21331}
21332static void *_p_wxMoveEventTo_p_wxObject(void *x) {
21333 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
21334}
21335static void *_p_wxActivateEventTo_p_wxObject(void *x) {
21336 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
21337}
21338static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
21339 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
21340}
21341static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
21342 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
21343}
21344static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
21345 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
21346}
21347static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
21348 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
21349}
21350static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
21351 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
21352}
21353static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
21354 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
21355}
21356static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
21357 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
21358}
21359static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
21360 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
21361}
21362static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
21363 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
21364}
21365static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
21366 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
21367}
21368static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
21369 return (void *)((wxObject *) ((wxImageHandler *) x));
21370}
21371static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
21372 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
21373}
21374static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
21375 return (void *)((wxObject *) ((wxEvtHandler *) x));
21376}
21377static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
21378 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
21379}
21380static void *_p_wxPaintDCTo_p_wxObject(void *x) {
21381 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
21382}
21383static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
21384 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
21385}
21386static void *_p_wxScreenDCTo_p_wxObject(void *x) {
21387 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
21388}
51b83b37
RD
21389static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
21390 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
21391}
1e0c8722
RD
21392static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
21393 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
21394}
d14a1e28
RD
21395static void *_p_wxImageTo_p_wxObject(void *x) {
21396 return (void *)((wxObject *) ((wxImage *) x));
21397}
21398static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
21399 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
21400}
d14a1e28
RD
21401static void *_p_wxPaletteTo_p_wxObject(void *x) {
21402 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
21403}
21404static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
21405 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
21406}
21407static void *_p_wxImageListTo_p_wxObject(void *x) {
21408 return (void *)((wxObject *) ((wxImageList *) x));
21409}
21410static void *_p_wxCursorTo_p_wxObject(void *x) {
21411 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
21412}
21413static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
21414 return (void *)((wxObject *) ((wxEncodingConverter *) x));
21415}
21416static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
21417 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
21418}
21419static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
21420 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
21421}
21422static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
21423 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
21424}
21425static void *_p_wxKeyEventTo_p_wxObject(void *x) {
21426 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
21427}
21428static void *_p_wxWindowTo_p_wxObject(void *x) {
21429 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
21430}
21431static void *_p_wxMenuTo_p_wxObject(void *x) {
21432 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
21433}
21434static void *_p_wxMenuBarTo_p_wxObject(void *x) {
21435 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
21436}
21437static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
21438 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
21439}
21440static void *_p_wxBrushListTo_p_wxObject(void *x) {
21441 return (void *)((wxObject *) ((wxBrushList *) x));
21442}
d14a1e28
RD
21443static void *_p_wxFileSystemTo_p_wxObject(void *x) {
21444 return (void *)((wxObject *) ((wxFileSystem *) x));
21445}
21446static void *_p_wxBitmapTo_p_wxObject(void *x) {
21447 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
21448}
21449static void *_p_wxMaskTo_p_wxObject(void *x) {
21450 return (void *)((wxObject *) ((wxMask *) x));
21451}
21452static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
21453 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
21454}
21455static void *_p_wxMenuEventTo_p_wxObject(void *x) {
21456 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
21457}
21458static void *_p_wxPyAppTo_p_wxObject(void *x) {
21459 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
21460}
21461static void *_p_wxCloseEventTo_p_wxObject(void *x) {
21462 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
21463}
21464static void *_p_wxMouseEventTo_p_wxObject(void *x) {
21465 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
21466}
21467static void *_p_wxEraseEventTo_p_wxObject(void *x) {
21468 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
21469}
21470static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
21471 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
21472}
21473static void *_p_wxCommandEventTo_p_wxObject(void *x) {
21474 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
21475}
21476static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
21477 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
21478}
21479static void *_p_wxFocusEventTo_p_wxObject(void *x) {
21480 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
21481}
21482static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
21483 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
21484}
21485static void *_p_wxFontTo_p_wxObject(void *x) {
21486 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
21487}
21488static void *_p_wxBrushTo_p_wxObject(void *x) {
21489 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
21490}
21491static void *_p_wxMetaFileTo_p_wxObject(void *x) {
21492 return (void *)((wxObject *) ((wxMetaFile *) x));
21493}
21494static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
21495 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
21496}
21497static void *_p_wxColourTo_p_wxObject(void *x) {
21498 return (void *)((wxObject *) ((wxColour *) x));
21499}
21500static void *_p_wxFontListTo_p_wxObject(void *x) {
21501 return (void *)((wxObject *) ((wxFontList *) x));
21502}
21503static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
21504 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
21505}
21506static void *_p_wxValidatorTo_p_wxObject(void *x) {
21507 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
21508}
093d3ff1
RD
21509static void *_p_wxControlTo_p_wxWindow(void *x) {
21510 return (void *)((wxWindow *) ((wxControl *) x));
e811c8ce 21511}
093d3ff1
RD
21512static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
21513 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
e811c8ce 21514}
093d3ff1
RD
21515static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
21516 return (void *)((wxWindow *) ((wxMenuBar *) x));
e811c8ce 21517}
15afbcd0
RD
21518static swig_type_info _swigt__p_wxPostScriptDC[] = {{"_p_wxPostScriptDC", 0, "wxPostScriptDC *", 0, 0, 0, 0},{"_p_wxPostScriptDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
21519static swig_type_info _swigt__p_wxBrush[] = {{"_p_wxBrush", 0, "wxBrush *", 0, 0, 0, 0},{"_p_wxBrush", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
21520static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0, 0, 0, 0},{"_p_wxColour", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
21521static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0, 0, 0, 0},{"_p_wxBufferedDC", _p_wxBufferedDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxScreenDC", _p_wxScreenDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxMirrorDC", _p_wxMirrorDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxMemoryDC", _p_wxMemoryDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxWindowDC", _p_wxWindowDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxDC", 0, 0, 0, 0, 0, 0},{"_p_wxMetaFileDC", _p_wxMetaFileDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxClientDC", _p_wxClientDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxPaintDC", _p_wxPaintDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxPostScriptDC", _p_wxPostScriptDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxPrinterDC", _p_wxPrinterDCTo_p_wxDC, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
21522static swig_type_info _swigt__p_wxMirrorDC[] = {{"_p_wxMirrorDC", 0, "wxMirrorDC *", 0, 0, 0, 0},{"_p_wxMirrorDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
093d3ff1
RD
21523static swig_type_info _swigt__p_form_ops_t[] = {{"_p_form_ops_t", 0, "enum form_ops_t *|form_ops_t *", 0, 0, 0, 0},{"_p_form_ops_t", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
21524static swig_type_info _swigt__p_wxDuplexMode[] = {{"_p_wxDuplexMode", 0, "enum wxDuplexMode *|wxDuplexMode *", 0, 0, 0, 0},{"_p_wxDuplexMode", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
15afbcd0
RD
21525static swig_type_info _swigt__p_wxPyFontEnumerator[] = {{"_p_wxPyFontEnumerator", 0, "wxPyFontEnumerator *", 0, 0, 0, 0},{"_p_wxPyFontEnumerator", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
21526static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0, 0, 0, 0},{"_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
21527static swig_type_info _swigt__p_wxIconLocation[] = {{"_p_wxIconLocation", 0, "wxIconLocation *", 0, 0, 0, 0},{"_p_wxIconLocation", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
21528static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0, 0, 0, 0},{"_p_wxImage", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
21529static swig_type_info _swigt__p_wxMetaFileDC[] = {{"_p_wxMetaFileDC", 0, "wxMetaFileDC *", 0, 0, 0, 0},{"_p_wxMetaFileDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
21530static swig_type_info _swigt__p_wxMask[] = {{"_p_wxMask", 0, "wxMask *", 0, 0, 0, 0},{"_p_wxMask", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
b2df227b 21531static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0, 0, 0, 0},{"_p_wxSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
15afbcd0
RD
21532static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0, 0, 0, 0},{"_p_wxFont", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
21533static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
15afbcd0
RD
21534static swig_type_info _swigt__p_double[] = {{"_p_double", 0, "double *", 0, 0, 0, 0},{"_p_double", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
21535static swig_type_info _swigt__p_wxMemoryDC[] = {{"_p_wxMemoryDC", 0, "wxMemoryDC *", 0, 0, 0, 0},{"_p_wxBufferedDC", _p_wxBufferedDCTo_p_wxMemoryDC, 0, 0, 0, 0, 0},{"_p_wxMemoryDC", 0, 0, 0, 0, 0, 0},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxMemoryDC, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
21536static swig_type_info _swigt__p_wxFontMapper[] = {{"_p_wxFontMapper", 0, "wxFontMapper *", 0, 0, 0, 0},{"_p_wxFontMapper", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
21537static swig_type_info _swigt__p_wxEffects[] = {{"_p_wxEffects", 0, "wxEffects *", 0, 0, 0, 0},{"_p_wxEffects", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
21538static swig_type_info _swigt__p_wxNativeEncodingInfo[] = {{"_p_wxNativeEncodingInfo", 0, "wxNativeEncodingInfo *", 0, 0, 0, 0},{"_p_wxNativeEncodingInfo", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
21539static swig_type_info _swigt__p_wxPalette[] = {{"_p_wxPalette", 0, "wxPalette *", 0, 0, 0, 0},{"_p_wxPalette", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
21540static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0, 0, 0, 0},{"_p_wxBitmap", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
53aa7709 21541static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxRegionIterator", _p_wxRegionIteratorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPen", _p_wxPenTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxColourDatabase", _p_wxColourDatabaseTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPenList", _p_wxPenListTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMask", _p_wxMaskTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFont", _p_wxFontTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxClientDC", _p_wxClientDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMemoryDC", _p_wxMemoryDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxRegion", _p_wxRegionTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDC", _p_wxDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIcon", _p_wxIconTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDC", _p_wxWindowDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGDIObject", _p_wxGDIObjectTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEffects", _p_wxEffectsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPostScriptDC", _p_wxPostScriptDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDateEvent", _p_wxDateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintDC", _p_wxPaintDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPrinterDC", _p_wxPrinterDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScreenDC", _p_wxScreenDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStdDialogButtonSizer", _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBufferedDC", _p_wxBufferedDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPalette", _p_wxPaletteTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageList", _p_wxImageListTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCursor", _p_wxCursorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxMirrorDC", _p_wxMirrorDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEncodingConverter", _p_wxEncodingConverterTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMetaFileDC", _p_wxMetaFileDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBrushList", _p_wxBrushListTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBitmap", _p_wxBitmapTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBrush", _p_wxBrushTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMetaFile", _p_wxMetaFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxColour", _p_wxColourTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFontList", _p_wxFontListTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
15afbcd0
RD
21542static swig_type_info _swigt__p_wxRegionIterator[] = {{"_p_wxRegionIterator", 0, "wxRegionIterator *", 0, 0, 0, 0},{"_p_wxRegionIterator", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
21543static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0, 0, 0, 0},{"_p_wxRect", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
093d3ff1 21544static swig_type_info _swigt__p_wxPaperSize[] = {{"_p_wxPaperSize", 0, "enum wxPaperSize *|wxPaperSize *", 0, 0, 0, 0},{"_p_wxPaperSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
15afbcd0 21545static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0, 0, 0, 0},{"_p_wxString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
093d3ff1
RD
21546static swig_type_info _swigt__unsigned_int[] = {{"_unsigned_int", 0, "unsigned int|std::size_t", 0, 0, 0, 0},{"_unsigned_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
21547static swig_type_info _swigt__p_unsigned_int[] = {{"_p_unsigned_int", 0, "unsigned int *|time_t *", 0, 0, 0, 0},{"_p_unsigned_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
15afbcd0
RD
21548static swig_type_info _swigt__p_wxPrinterDC[] = {{"_p_wxPrinterDC", 0, "wxPrinterDC *", 0, 0, 0, 0},{"_p_wxPrinterDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
21549static swig_type_info _swigt__p_wxIconBundle[] = {{"_p_wxIconBundle", 0, "wxIconBundle *", 0, 0, 0, 0},{"_p_wxIconBundle", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
21550static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0, 0, 0, 0},{"_p_wxPoint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
21551static swig_type_info _swigt__p_wxDash[] = {{"_p_wxDash", 0, "wxDash *", 0, 0, 0, 0},{"_p_wxDash", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
21552static swig_type_info _swigt__p_wxScreenDC[] = {{"_p_wxScreenDC", 0, "wxScreenDC *", 0, 0, 0, 0},{"_p_wxScreenDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
21553static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0, 0, 0, 0},{"_p_wxCursor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
21554static swig_type_info _swigt__p_wxClientDC[] = {{"_p_wxClientDC", 0, "wxClientDC *", 0, 0, 0, 0},{"_p_wxClientDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
21555static swig_type_info _swigt__p_wxBufferedDC[] = {{"_p_wxBufferedDC", 0, "wxBufferedDC *", 0, 0, 0, 0},{"_p_wxBufferedDC", 0, 0, 0, 0, 0, 0},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxBufferedDC, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
21556static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0, 0, 0, 0},{"_p_wxImageList", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
093d3ff1 21557static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *|byte *", 0, 0, 0, 0},{"_p_unsigned_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
66c033b4 21558static swig_type_info _swigt__p_wxGDIObject[] = {{"_p_wxGDIObject", 0, "wxGDIObject *", 0, 0, 0, 0},{"_p_wxIcon", _p_wxIconTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxPen", _p_wxPenTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxFont", _p_wxFontTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxPalette", _p_wxPaletteTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxGDIObject", 0, 0, 0, 0, 0, 0},{"_p_wxCursor", _p_wxCursorTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxBitmap", _p_wxBitmapTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxRegion", _p_wxRegionTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxBrush", _p_wxBrushTo_p_wxGDIObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
15afbcd0
RD
21559static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0, 0, 0, 0},{"_p_wxIcon", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
21560static swig_type_info _swigt__p_wxLocale[] = {{"_p_wxLocale", 0, "wxLocale *", 0, 0, 0, 0},{"_p_wxLocale", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
093d3ff1
RD
21561static swig_type_info _swigt__ptrdiff_t[] = {{"_ptrdiff_t", 0, "ptrdiff_t", 0, 0, 0, 0},{"_ptrdiff_t", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
21562static swig_type_info _swigt__std__ptrdiff_t[] = {{"_std__ptrdiff_t", 0, "std::ptrdiff_t", 0, 0, 0, 0},{"_std__ptrdiff_t", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
15afbcd0 21563static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0, 0, 0, 0},{"_p_wxRegion", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
66c033b4 21564static swig_type_info _swigt__p_wxConfigBase[] = {{"_p_wxConfigBase", 0, "wxConfigBase *", 0, 0, 0, 0},{"_p_wxConfigBase", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
093d3ff1 21565static swig_type_info _swigt__p_wxLanguageInfo[] = {{"_p_wxLanguageInfo", 0, "wxLanguageInfo *", 0, 0, 0, 0},{"_p_wxLanguageInfo", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
15afbcd0
RD
21566static swig_type_info _swigt__p_wxWindowDC[] = {{"_p_wxWindowDC", 0, "wxWindowDC *", 0, 0, 0, 0},{"_p_wxWindowDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
21567static swig_type_info _swigt__p_wxPrintData[] = {{"_p_wxPrintData", 0, "wxPrintData *", 0, 0, 0, 0},{"_p_wxPrintData", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
21568static swig_type_info _swigt__p_wxBrushList[] = {{"_p_wxBrushList", 0, "wxBrushList *", 0, 0, 0, 0},{"_p_wxBrushList", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
21569static swig_type_info _swigt__p_wxFontList[] = {{"_p_wxFontList", 0, "wxFontList *", 0, 0, 0, 0},{"_p_wxFontList", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
66c033b4 21570static swig_type_info _swigt__p_wxPen[] = {{"_p_wxPen", 0, "wxPen *", 0, 0, 0, 0},{"_p_wxPen", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
15afbcd0
RD
21571static swig_type_info _swigt__p_wxBufferedPaintDC[] = {{"_p_wxBufferedPaintDC", 0, "wxBufferedPaintDC *", 0, 0, 0, 0},{"_p_wxBufferedPaintDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
21572static swig_type_info _swigt__p_wxPaintDC[] = {{"_p_wxPaintDC", 0, "wxPaintDC *", 0, 0, 0, 0},{"_p_wxPaintDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
21573static swig_type_info _swigt__p_wxPenList[] = {{"_p_wxPenList", 0, "wxPenList *", 0, 0, 0, 0},{"_p_wxPenList", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
15afbcd0
RD
21574static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0, 0, 0, 0},{"_p_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
21575static swig_type_info _swigt__p_wxMetaFile[] = {{"_p_wxMetaFile", 0, "wxMetaFile *", 0, 0, 0, 0},{"_p_wxMetaFile", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
093d3ff1 21576static swig_type_info _swigt__p_unsigned_long[] = {{"_p_unsigned_long", 0, "unsigned long *|wxUIntPtr *", 0, 0, 0, 0},{"_p_unsigned_long", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
15afbcd0
RD
21577static swig_type_info _swigt__p_wxNativeFontInfo[] = {{"_p_wxNativeFontInfo", 0, "wxNativeFontInfo *", 0, 0, 0, 0},{"_p_wxNativeFontInfo", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
21578static swig_type_info _swigt__p_wxEncodingConverter[] = {{"_p_wxEncodingConverter", 0, "wxEncodingConverter *", 0, 0, 0, 0},{"_p_wxEncodingConverter", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
21579static swig_type_info _swigt__p_wxColourDatabase[] = {{"_p_wxColourDatabase", 0, "wxColourDatabase *", 0, 0, 0, 0},{"_p_wxColourDatabase", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
d14a1e28
RD
21580
21581static swig_type_info *swig_types_initial[] = {
21582_swigt__p_wxPostScriptDC,
d14a1e28
RD
21583_swigt__p_wxBrush,
21584_swigt__p_wxColour,
d14a1e28
RD
21585_swigt__p_wxDC,
21586_swigt__p_wxMirrorDC,
093d3ff1
RD
21587_swigt__p_form_ops_t,
21588_swigt__p_wxDuplexMode,
d14a1e28 21589_swigt__p_wxPyFontEnumerator,
994141e6 21590_swigt__p_char,
d14a1e28
RD
21591_swigt__p_wxIconLocation,
21592_swigt__p_wxImage,
21593_swigt__p_wxMetaFileDC,
21594_swigt__p_wxMask,
b2df227b 21595_swigt__p_wxSize,
d14a1e28
RD
21596_swigt__p_wxFont,
21597_swigt__p_wxWindow,
d14a1e28
RD
21598_swigt__p_double,
21599_swigt__p_wxMemoryDC,
21600_swigt__p_wxFontMapper,
d14a1e28
RD
21601_swigt__p_wxEffects,
21602_swigt__p_wxNativeEncodingInfo,
21603_swigt__p_wxPalette,
21604_swigt__p_wxBitmap,
21605_swigt__p_wxObject,
21606_swigt__p_wxRegionIterator,
21607_swigt__p_wxRect,
093d3ff1 21608_swigt__p_wxPaperSize,
d14a1e28 21609_swigt__p_wxString,
093d3ff1
RD
21610_swigt__unsigned_int,
21611_swigt__p_unsigned_int,
d14a1e28
RD
21612_swigt__p_wxPrinterDC,
21613_swigt__p_wxIconBundle,
21614_swigt__p_wxPoint,
21615_swigt__p_wxDash,
21616_swigt__p_wxScreenDC,
21617_swigt__p_wxCursor,
21618_swigt__p_wxClientDC,
d14a1e28
RD
21619_swigt__p_wxBufferedDC,
21620_swigt__p_wxImageList,
21621_swigt__p_unsigned_char,
21622_swigt__p_wxGDIObject,
d14a1e28 21623_swigt__p_wxIcon,
994141e6 21624_swigt__p_wxLocale,
093d3ff1
RD
21625_swigt__ptrdiff_t,
21626_swigt__std__ptrdiff_t,
d14a1e28 21627_swigt__p_wxRegion,
66c033b4 21628_swigt__p_wxConfigBase,
093d3ff1 21629_swigt__p_wxLanguageInfo,
d14a1e28
RD
21630_swigt__p_wxWindowDC,
21631_swigt__p_wxPrintData,
21632_swigt__p_wxBrushList,
21633_swigt__p_wxFontList,
21634_swigt__p_wxPen,
21635_swigt__p_wxBufferedPaintDC,
21636_swigt__p_wxPaintDC,
21637_swigt__p_wxPenList,
d14a1e28
RD
21638_swigt__p_int,
21639_swigt__p_wxMetaFile,
093d3ff1 21640_swigt__p_unsigned_long,
d14a1e28
RD
21641_swigt__p_wxNativeFontInfo,
21642_swigt__p_wxEncodingConverter,
21643_swigt__p_wxColourDatabase,
216440
21645};
21646
21647
21648/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
21649
21650static swig_const_info swig_const_table[] = {
c32bde28 21651{0, 0, 0, 0.0, 0, 0}};
d14a1e28
RD
21652
21653#ifdef __cplusplus
21654}
21655#endif
21656
093d3ff1
RD
21657
21658#ifdef __cplusplus
21659extern "C" {
21660#endif
21661
21662 /* Python-specific SWIG API */
21663#define SWIG_newvarlink() SWIG_Python_newvarlink()
21664#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
21665#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
21666
21667 /* -----------------------------------------------------------------------------
21668 * global variable support code.
21669 * ----------------------------------------------------------------------------- */
21670
21671 typedef struct swig_globalvar {
21672 char *name; /* Name of global variable */
21673 PyObject *(*get_attr)(); /* Return the current value */
21674 int (*set_attr)(PyObject *); /* Set the value */
21675 struct swig_globalvar *next;
21676 } swig_globalvar;
21677
21678 typedef struct swig_varlinkobject {
21679 PyObject_HEAD
21680 swig_globalvar *vars;
21681 } swig_varlinkobject;
21682
21683 static PyObject *
21684 swig_varlink_repr(swig_varlinkobject *v) {
21685 v = v;
21686 return PyString_FromString("<Swig global variables>");
21687 }
21688
21689 static int
21690 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) {
21691 swig_globalvar *var;
21692 flags = flags;
21693 fprintf(fp,"Swig global variables { ");
21694 for (var = v->vars; var; var=var->next) {
21695 fprintf(fp,"%s", var->name);
21696 if (var->next) fprintf(fp,", ");
21697 }
21698 fprintf(fp," }\n");
21699 return 0;
21700 }
21701
21702 static PyObject *
21703 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
21704 swig_globalvar *var = v->vars;
21705 while (var) {
21706 if (strcmp(var->name,n) == 0) {
21707 return (*var->get_attr)();
21708 }
21709 var = var->next;
21710 }
21711 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
21712 return NULL;
21713 }
21714
21715 static int
21716 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
21717 swig_globalvar *var = v->vars;
21718 while (var) {
21719 if (strcmp(var->name,n) == 0) {
21720 return (*var->set_attr)(p);
21721 }
21722 var = var->next;
21723 }
21724 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
21725 return 1;
21726 }
21727
21728 static PyTypeObject varlinktype = {
21729 PyObject_HEAD_INIT(0)
21730 0, /* Number of items in variable part (ob_size) */
21731 (char *)"swigvarlink", /* Type name (tp_name) */
21732 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
21733 0, /* Itemsize (tp_itemsize) */
21734 0, /* Deallocator (tp_dealloc) */
21735 (printfunc) swig_varlink_print, /* Print (tp_print) */
21736 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
21737 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
21738 0, /* tp_compare */
21739 (reprfunc) swig_varlink_repr, /* tp_repr */
21740 0, /* tp_as_number */
21741 0, /* tp_as_sequence */
21742 0, /* tp_as_mapping */
21743 0, /* tp_hash */
21744 0, /* tp_call */
21745 0, /* tp_str */
21746 0, /* tp_getattro */
21747 0, /* tp_setattro */
21748 0, /* tp_as_buffer */
21749 0, /* tp_flags */
21750 0, /* tp_doc */
21751#if PY_VERSION_HEX >= 0x02000000
21752 0, /* tp_traverse */
21753 0, /* tp_clear */
21754#endif
21755#if PY_VERSION_HEX >= 0x02010000
21756 0, /* tp_richcompare */
21757 0, /* tp_weaklistoffset */
21758#endif
21759#if PY_VERSION_HEX >= 0x02020000
21760 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
21761#endif
21762#if PY_VERSION_HEX >= 0x02030000
21763 0, /* tp_del */
21764#endif
21765#ifdef COUNT_ALLOCS
21766 0,0,0,0 /* tp_alloc -> tp_next */
21767#endif
21768 };
21769
21770 /* Create a variable linking object for use later */
21771 static PyObject *
21772 SWIG_Python_newvarlink(void) {
21773 swig_varlinkobject *result = 0;
21774 result = PyMem_NEW(swig_varlinkobject,1);
21775 varlinktype.ob_type = &PyType_Type; /* Patch varlinktype into a PyType */
21776 result->ob_type = &varlinktype;
21777 result->vars = 0;
21778 result->ob_refcnt = 0;
21779 Py_XINCREF((PyObject *) result);
21780 return ((PyObject*) result);
21781 }
21782
21783 static void
21784 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
21785 swig_varlinkobject *v;
21786 swig_globalvar *gv;
21787 v= (swig_varlinkobject *) p;
21788 gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
21789 gv->name = (char *) malloc(strlen(name)+1);
21790 strcpy(gv->name,name);
21791 gv->get_attr = get_attr;
21792 gv->set_attr = set_attr;
21793 gv->next = v->vars;
21794 v->vars = gv;
21795 }
21796
21797 /* -----------------------------------------------------------------------------
21798 * constants/methods manipulation
21799 * ----------------------------------------------------------------------------- */
21800
21801 /* Install Constants */
21802 static void
21803 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
21804 PyObject *obj = 0;
21805 size_t i;
21806 for (i = 0; constants[i].type; i++) {
21807 switch(constants[i].type) {
21808 case SWIG_PY_INT:
21809 obj = PyInt_FromLong(constants[i].lvalue);
21810 break;
21811 case SWIG_PY_FLOAT:
21812 obj = PyFloat_FromDouble(constants[i].dvalue);
21813 break;
21814 case SWIG_PY_STRING:
21815 if (constants[i].pvalue) {
21816 obj = PyString_FromString((char *) constants[i].pvalue);
21817 } else {
21818 Py_INCREF(Py_None);
21819 obj = Py_None;
21820 }
21821 break;
21822 case SWIG_PY_POINTER:
21823 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
21824 break;
21825 case SWIG_PY_BINARY:
21826 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
21827 break;
21828 default:
21829 obj = 0;
21830 break;
21831 }
21832 if (obj) {
21833 PyDict_SetItemString(d,constants[i].name,obj);
21834 Py_DECREF(obj);
21835 }
21836 }
21837 }
21838
21839 /* -----------------------------------------------------------------------------*/
21840 /* Fix SwigMethods to carry the callback ptrs when needed */
21841 /* -----------------------------------------------------------------------------*/
21842
21843 static void
21844 SWIG_Python_FixMethods(PyMethodDef *methods,
21845 swig_const_info *const_table,
21846 swig_type_info **types,
21847 swig_type_info **types_initial) {
21848 size_t i;
21849 for (i = 0; methods[i].ml_name; ++i) {
21850 char *c = methods[i].ml_doc;
21851 if (c && (c = strstr(c, "swig_ptr: "))) {
21852 int j;
21853 swig_const_info *ci = 0;
21854 char *name = c + 10;
21855 for (j = 0; const_table[j].type; j++) {
21856 if (strncmp(const_table[j].name, name,
21857 strlen(const_table[j].name)) == 0) {
21858 ci = &(const_table[j]);
21859 break;
21860 }
21861 }
21862 if (ci) {
21863 size_t shift = (ci->ptype) - types;
21864 swig_type_info *ty = types_initial[shift];
21865 size_t ldoc = (c - methods[i].ml_doc);
21866 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
21867 char *ndoc = (char*)malloc(ldoc + lptr + 10);
21868 char *buff = ndoc;
21869 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue: (void *)(ci->lvalue);
21870 strncpy(buff, methods[i].ml_doc, ldoc);
21871 buff += ldoc;
21872 strncpy(buff, "swig_ptr: ", 10);
21873 buff += 10;
21874 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
21875 methods[i].ml_doc = ndoc;
21876 }
21877 }
21878 }
21879 }
21880
21881 /* -----------------------------------------------------------------------------*
21882 * Initialize type list
21883 * -----------------------------------------------------------------------------*/
21884
21885#if PY_MAJOR_VERSION < 2
21886 /* PyModule_AddObject function was introduced in Python 2.0. The following function
21887 is copied out of Python/modsupport.c in python version 2.3.4 */
21888 static int
21889 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
21890 {
21891 PyObject *dict;
21892 if (!PyModule_Check(m)) {
21893 PyErr_SetString(PyExc_TypeError,
21894 "PyModule_AddObject() needs module as first arg");
21895 return -1;
21896 }
21897 if (!o) {
21898 PyErr_SetString(PyExc_TypeError,
21899 "PyModule_AddObject() needs non-NULL value");
21900 return -1;
21901 }
21902
21903 dict = PyModule_GetDict(m);
21904 if (dict == NULL) {
21905 /* Internal error -- modules must have a dict! */
21906 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
21907 PyModule_GetName(m));
21908 return -1;
21909 }
21910 if (PyDict_SetItemString(dict, name, o))
21911 return -1;
21912 Py_DECREF(o);
21913 return 0;
21914 }
21915#endif
21916
21917 static swig_type_info **
21918 SWIG_Python_SetTypeListHandle(swig_type_info **type_list_handle) {
21919 static PyMethodDef swig_empty_runtime_method_table[] = {
21920 {
21921 NULL, NULL, 0, NULL
21922 }
21923 };/* Sentinel */
21924
21925 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
21926 swig_empty_runtime_method_table);
21927 PyObject *pointer = PyCObject_FromVoidPtr((void *) type_list_handle, NULL);
21928 if (pointer && module) {
21929 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
21930 }
21931 return type_list_handle;
21932 }
21933
21934 static swig_type_info **
21935 SWIG_Python_LookupTypePointer(swig_type_info **type_list_handle) {
21936 swig_type_info **type_pointer;
21937
21938 /* first check if module already created */
21939 type_pointer = SWIG_Python_GetTypeListHandle();
21940 if (type_pointer) {
21941 return type_pointer;
21942 } else {
21943 /* create a new module and variable */
21944 return SWIG_Python_SetTypeListHandle(type_list_handle);
21945 }
21946 }
21947
21948#ifdef __cplusplus
21949}
21950#endif
21951
21952/* -----------------------------------------------------------------------------*
21953 * Partial Init method
21954 * -----------------------------------------------------------------------------*/
21955
21956#ifdef SWIG_LINK_RUNTIME
21957#ifdef __cplusplus
21958extern "C"
21959#endif
21960SWIGEXPORT(void *) SWIG_ReturnGlobalTypeList(void *);
21961#endif
21962
d14a1e28
RD
21963#ifdef __cplusplus
21964extern "C"
21965#endif
21966SWIGEXPORT(void) SWIG_init(void) {
21967 static PyObject *SWIG_globals = 0;
21968 static int typeinit = 0;
21969 PyObject *m, *d;
21970 int i;
21971 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
093d3ff1
RD
21972
21973 /* Fix SwigMethods to carry the callback ptrs when needed */
21974 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_types_initial);
21975
d14a1e28
RD
21976 m = Py_InitModule((char *) SWIG_name, SwigMethods);
21977 d = PyModule_GetDict(m);
21978
21979 if (!typeinit) {
093d3ff1
RD
21980#ifdef SWIG_LINK_RUNTIME
21981 swig_type_list_handle = (swig_type_info **) SWIG_ReturnGlobalTypeList(swig_type_list_handle);
21982#else
21983# ifndef SWIG_STATIC_RUNTIME
21984 swig_type_list_handle = SWIG_Python_LookupTypePointer(swig_type_list_handle);
21985# endif
21986#endif
d14a1e28
RD
21987 for (i = 0; swig_types_initial[i]; i++) {
21988 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
21989 }
21990 typeinit = 1;
21991 }
21992 SWIG_InstallConstants(d,swig_const_table);
21993
093d3ff1
RD
21994 {
21995 PyDict_SetItemString(d,"OutRegion", SWIG_From_int((int)(wxOutRegion)));
21996 }
21997 {
21998 PyDict_SetItemString(d,"PartRegion", SWIG_From_int((int)(wxPartRegion)));
21999 }
22000 {
22001 PyDict_SetItemString(d,"InRegion", SWIG_From_int((int)(wxInRegion)));
22002 }
22003 {
22004 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_From_int((int)(wxFONTFAMILY_DEFAULT)));
22005 }
22006 {
22007 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_From_int((int)(wxFONTFAMILY_DECORATIVE)));
22008 }
22009 {
22010 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_From_int((int)(wxFONTFAMILY_ROMAN)));
22011 }
22012 {
22013 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_From_int((int)(wxFONTFAMILY_SCRIPT)));
22014 }
22015 {
22016 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_From_int((int)(wxFONTFAMILY_SWISS)));
22017 }
22018 {
22019 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_From_int((int)(wxFONTFAMILY_MODERN)));
22020 }
22021 {
22022 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_From_int((int)(wxFONTFAMILY_TELETYPE)));
22023 }
22024 {
22025 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_From_int((int)(wxFONTFAMILY_MAX)));
22026 }
22027 {
22028 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_From_int((int)(wxFONTFAMILY_UNKNOWN)));
22029 }
22030 {
22031 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_From_int((int)(wxFONTSTYLE_NORMAL)));
22032 }
22033 {
22034 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_From_int((int)(wxFONTSTYLE_ITALIC)));
22035 }
22036 {
22037 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_From_int((int)(wxFONTSTYLE_SLANT)));
22038 }
22039 {
22040 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_From_int((int)(wxFONTSTYLE_MAX)));
22041 }
22042 {
22043 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_From_int((int)(wxFONTWEIGHT_NORMAL)));
22044 }
22045 {
22046 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_From_int((int)(wxFONTWEIGHT_LIGHT)));
22047 }
22048 {
22049 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_From_int((int)(wxFONTWEIGHT_BOLD)));
22050 }
22051 {
22052 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_From_int((int)(wxFONTWEIGHT_MAX)));
22053 }
22054 {
22055 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_From_int((int)(wxFONTFLAG_DEFAULT)));
22056 }
22057 {
22058 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_From_int((int)(wxFONTFLAG_ITALIC)));
22059 }
22060 {
22061 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_From_int((int)(wxFONTFLAG_SLANT)));
22062 }
22063 {
22064 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_From_int((int)(wxFONTFLAG_LIGHT)));
22065 }
22066 {
22067 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_From_int((int)(wxFONTFLAG_BOLD)));
22068 }
22069 {
22070 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_From_int((int)(wxFONTFLAG_ANTIALIASED)));
22071 }
22072 {
22073 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_From_int((int)(wxFONTFLAG_NOT_ANTIALIASED)));
22074 }
22075 {
22076 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_From_int((int)(wxFONTFLAG_UNDERLINED)));
22077 }
22078 {
22079 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_From_int((int)(wxFONTFLAG_STRIKETHROUGH)));
22080 }
22081 {
22082 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_From_int((int)(wxFONTFLAG_MASK)));
22083 }
22084 {
22085 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_From_int((int)(wxFONTENCODING_SYSTEM)));
22086 }
22087 {
22088 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_From_int((int)(wxFONTENCODING_DEFAULT)));
22089 }
22090 {
22091 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_From_int((int)(wxFONTENCODING_ISO8859_1)));
22092 }
22093 {
22094 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_From_int((int)(wxFONTENCODING_ISO8859_2)));
22095 }
22096 {
22097 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_From_int((int)(wxFONTENCODING_ISO8859_3)));
22098 }
22099 {
22100 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_From_int((int)(wxFONTENCODING_ISO8859_4)));
22101 }
22102 {
22103 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_From_int((int)(wxFONTENCODING_ISO8859_5)));
22104 }
22105 {
22106 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_From_int((int)(wxFONTENCODING_ISO8859_6)));
22107 }
22108 {
22109 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_From_int((int)(wxFONTENCODING_ISO8859_7)));
22110 }
22111 {
22112 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_From_int((int)(wxFONTENCODING_ISO8859_8)));
22113 }
22114 {
22115 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_From_int((int)(wxFONTENCODING_ISO8859_9)));
22116 }
22117 {
22118 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_From_int((int)(wxFONTENCODING_ISO8859_10)));
22119 }
22120 {
22121 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_From_int((int)(wxFONTENCODING_ISO8859_11)));
22122 }
22123 {
22124 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_From_int((int)(wxFONTENCODING_ISO8859_12)));
22125 }
22126 {
22127 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_From_int((int)(wxFONTENCODING_ISO8859_13)));
22128 }
22129 {
22130 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_From_int((int)(wxFONTENCODING_ISO8859_14)));
22131 }
22132 {
22133 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_From_int((int)(wxFONTENCODING_ISO8859_15)));
22134 }
22135 {
22136 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_From_int((int)(wxFONTENCODING_ISO8859_MAX)));
22137 }
22138 {
22139 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_From_int((int)(wxFONTENCODING_KOI8)));
22140 }
22141 {
22142 PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_From_int((int)(wxFONTENCODING_KOI8_U)));
22143 }
22144 {
22145 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_From_int((int)(wxFONTENCODING_ALTERNATIVE)));
22146 }
22147 {
22148 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_From_int((int)(wxFONTENCODING_BULGARIAN)));
22149 }
22150 {
22151 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_From_int((int)(wxFONTENCODING_CP437)));
22152 }
22153 {
22154 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_From_int((int)(wxFONTENCODING_CP850)));
22155 }
22156 {
22157 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_From_int((int)(wxFONTENCODING_CP852)));
22158 }
22159 {
22160 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_From_int((int)(wxFONTENCODING_CP855)));
22161 }
22162 {
22163 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_From_int((int)(wxFONTENCODING_CP866)));
22164 }
22165 {
22166 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_From_int((int)(wxFONTENCODING_CP874)));
22167 }
22168 {
22169 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_From_int((int)(wxFONTENCODING_CP932)));
22170 }
22171 {
22172 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_From_int((int)(wxFONTENCODING_CP936)));
22173 }
22174 {
22175 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_From_int((int)(wxFONTENCODING_CP949)));
22176 }
22177 {
22178 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_From_int((int)(wxFONTENCODING_CP950)));
22179 }
22180 {
22181 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_From_int((int)(wxFONTENCODING_CP1250)));
22182 }
22183 {
22184 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_From_int((int)(wxFONTENCODING_CP1251)));
22185 }
22186 {
22187 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_From_int((int)(wxFONTENCODING_CP1252)));
22188 }
22189 {
22190 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_From_int((int)(wxFONTENCODING_CP1253)));
22191 }
22192 {
22193 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_From_int((int)(wxFONTENCODING_CP1254)));
22194 }
22195 {
22196 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_From_int((int)(wxFONTENCODING_CP1255)));
22197 }
22198 {
22199 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_From_int((int)(wxFONTENCODING_CP1256)));
22200 }
22201 {
22202 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_From_int((int)(wxFONTENCODING_CP1257)));
22203 }
22204 {
22205 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_From_int((int)(wxFONTENCODING_CP12_MAX)));
22206 }
22207 {
22208 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_From_int((int)(wxFONTENCODING_UTF7)));
22209 }
22210 {
22211 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_From_int((int)(wxFONTENCODING_UTF8)));
22212 }
22213 {
22214 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_From_int((int)(wxFONTENCODING_EUC_JP)));
22215 }
22216 {
22217 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_From_int((int)(wxFONTENCODING_UTF16BE)));
22218 }
22219 {
22220 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_From_int((int)(wxFONTENCODING_UTF16LE)));
22221 }
22222 {
22223 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_From_int((int)(wxFONTENCODING_UTF32BE)));
22224 }
22225 {
22226 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_From_int((int)(wxFONTENCODING_UTF32LE)));
22227 }
22228 {
22229 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_From_int((int)(wxFONTENCODING_MACROMAN)));
22230 }
22231 {
22232 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_From_int((int)(wxFONTENCODING_MACJAPANESE)));
22233 }
22234 {
22235 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_From_int((int)(wxFONTENCODING_MACCHINESETRAD)));
22236 }
22237 {
22238 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_From_int((int)(wxFONTENCODING_MACKOREAN)));
22239 }
22240 {
22241 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_From_int((int)(wxFONTENCODING_MACARABIC)));
22242 }
22243 {
22244 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_From_int((int)(wxFONTENCODING_MACHEBREW)));
22245 }
22246 {
22247 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_From_int((int)(wxFONTENCODING_MACGREEK)));
22248 }
22249 {
22250 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_From_int((int)(wxFONTENCODING_MACCYRILLIC)));
22251 }
22252 {
22253 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_From_int((int)(wxFONTENCODING_MACDEVANAGARI)));
22254 }
22255 {
22256 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_From_int((int)(wxFONTENCODING_MACGURMUKHI)));
22257 }
22258 {
22259 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_From_int((int)(wxFONTENCODING_MACGUJARATI)));
22260 }
22261 {
22262 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_From_int((int)(wxFONTENCODING_MACORIYA)));
22263 }
22264 {
22265 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_From_int((int)(wxFONTENCODING_MACBENGALI)));
22266 }
22267 {
22268 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_From_int((int)(wxFONTENCODING_MACTAMIL)));
22269 }
22270 {
22271 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_From_int((int)(wxFONTENCODING_MACTELUGU)));
22272 }
22273 {
22274 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_From_int((int)(wxFONTENCODING_MACKANNADA)));
22275 }
22276 {
22277 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_From_int((int)(wxFONTENCODING_MACMALAJALAM)));
22278 }
22279 {
22280 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_From_int((int)(wxFONTENCODING_MACSINHALESE)));
22281 }
22282 {
22283 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_From_int((int)(wxFONTENCODING_MACBURMESE)));
22284 }
22285 {
22286 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_From_int((int)(wxFONTENCODING_MACKHMER)));
22287 }
22288 {
22289 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_From_int((int)(wxFONTENCODING_MACTHAI)));
22290 }
22291 {
22292 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_From_int((int)(wxFONTENCODING_MACLAOTIAN)));
22293 }
22294 {
22295 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_From_int((int)(wxFONTENCODING_MACGEORGIAN)));
22296 }
22297 {
22298 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_From_int((int)(wxFONTENCODING_MACARMENIAN)));
22299 }
22300 {
22301 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_From_int((int)(wxFONTENCODING_MACCHINESESIMP)));
22302 }
22303 {
22304 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_From_int((int)(wxFONTENCODING_MACTIBETAN)));
22305 }
22306 {
22307 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_From_int((int)(wxFONTENCODING_MACMONGOLIAN)));
22308 }
22309 {
22310 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_From_int((int)(wxFONTENCODING_MACETHIOPIC)));
22311 }
22312 {
22313 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_From_int((int)(wxFONTENCODING_MACCENTRALEUR)));
22314 }
22315 {
22316 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_From_int((int)(wxFONTENCODING_MACVIATNAMESE)));
22317 }
22318 {
22319 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_From_int((int)(wxFONTENCODING_MACARABICEXT)));
22320 }
22321 {
22322 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_From_int((int)(wxFONTENCODING_MACSYMBOL)));
22323 }
22324 {
22325 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_From_int((int)(wxFONTENCODING_MACDINGBATS)));
22326 }
22327 {
22328 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_From_int((int)(wxFONTENCODING_MACTURKISH)));
22329 }
22330 {
22331 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_From_int((int)(wxFONTENCODING_MACCROATIAN)));
22332 }
22333 {
22334 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_From_int((int)(wxFONTENCODING_MACICELANDIC)));
22335 }
22336 {
22337 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_From_int((int)(wxFONTENCODING_MACROMANIAN)));
22338 }
22339 {
22340 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_From_int((int)(wxFONTENCODING_MACCELTIC)));
22341 }
22342 {
22343 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_From_int((int)(wxFONTENCODING_MACGAELIC)));
22344 }
22345 {
22346 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_From_int((int)(wxFONTENCODING_MACKEYBOARD)));
22347 }
22348 {
22349 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_From_int((int)(wxFONTENCODING_MACMIN)));
22350 }
22351 {
22352 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_From_int((int)(wxFONTENCODING_MACMAX)));
22353 }
22354 {
22355 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_From_int((int)(wxFONTENCODING_MAX)));
22356 }
22357 {
22358 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_From_int((int)(wxFONTENCODING_UTF16)));
22359 }
22360 {
22361 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_From_int((int)(wxFONTENCODING_UTF32)));
22362 }
22363 {
22364 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_From_int((int)(wxFONTENCODING_UNICODE)));
22365 }
22366 {
22367 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_From_int((int)(wxFONTENCODING_GB2312)));
22368 }
22369 {
22370 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_From_int((int)(wxFONTENCODING_BIG5)));
22371 }
22372 {
22373 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_From_int((int)(wxFONTENCODING_SHIFT_JIS)));
22374 }
22375
22376 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
22377
22378 {
22379 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_From_int((int)(wxLANGUAGE_DEFAULT)));
22380 }
22381 {
22382 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_From_int((int)(wxLANGUAGE_UNKNOWN)));
22383 }
22384 {
22385 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_From_int((int)(wxLANGUAGE_ABKHAZIAN)));
22386 }
22387 {
22388 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_From_int((int)(wxLANGUAGE_AFAR)));
22389 }
22390 {
22391 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_From_int((int)(wxLANGUAGE_AFRIKAANS)));
22392 }
22393 {
22394 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_From_int((int)(wxLANGUAGE_ALBANIAN)));
22395 }
22396 {
22397 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_From_int((int)(wxLANGUAGE_AMHARIC)));
22398 }
22399 {
22400 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_From_int((int)(wxLANGUAGE_ARABIC)));
22401 }
22402 {
22403 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_From_int((int)(wxLANGUAGE_ARABIC_ALGERIA)));
22404 }
22405 {
22406 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_From_int((int)(wxLANGUAGE_ARABIC_BAHRAIN)));
22407 }
22408 {
22409 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_From_int((int)(wxLANGUAGE_ARABIC_EGYPT)));
22410 }
22411 {
22412 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_From_int((int)(wxLANGUAGE_ARABIC_IRAQ)));
22413 }
22414 {
22415 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_From_int((int)(wxLANGUAGE_ARABIC_JORDAN)));
22416 }
22417 {
22418 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_From_int((int)(wxLANGUAGE_ARABIC_KUWAIT)));
22419 }
22420 {
22421 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_From_int((int)(wxLANGUAGE_ARABIC_LEBANON)));
22422 }
22423 {
22424 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_From_int((int)(wxLANGUAGE_ARABIC_LIBYA)));
22425 }
22426 {
22427 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_From_int((int)(wxLANGUAGE_ARABIC_MOROCCO)));
22428 }
22429 {
22430 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_From_int((int)(wxLANGUAGE_ARABIC_OMAN)));
22431 }
22432 {
22433 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_From_int((int)(wxLANGUAGE_ARABIC_QATAR)));
22434 }
22435 {
22436 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_From_int((int)(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
22437 }
22438 {
22439 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_From_int((int)(wxLANGUAGE_ARABIC_SUDAN)));
22440 }
22441 {
22442 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_From_int((int)(wxLANGUAGE_ARABIC_SYRIA)));
22443 }
22444 {
22445 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_From_int((int)(wxLANGUAGE_ARABIC_TUNISIA)));
22446 }
22447 {
22448 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_From_int((int)(wxLANGUAGE_ARABIC_UAE)));
22449 }
22450 {
22451 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_From_int((int)(wxLANGUAGE_ARABIC_YEMEN)));
22452 }
22453 {
22454 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_From_int((int)(wxLANGUAGE_ARMENIAN)));
22455 }
22456 {
22457 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_From_int((int)(wxLANGUAGE_ASSAMESE)));
22458 }
22459 {
22460 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_From_int((int)(wxLANGUAGE_AYMARA)));
22461 }
22462 {
22463 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_From_int((int)(wxLANGUAGE_AZERI)));
22464 }
22465 {
22466 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_From_int((int)(wxLANGUAGE_AZERI_CYRILLIC)));
22467 }
22468 {
22469 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_From_int((int)(wxLANGUAGE_AZERI_LATIN)));
22470 }
22471 {
22472 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_From_int((int)(wxLANGUAGE_BASHKIR)));
22473 }
22474 {
22475 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_From_int((int)(wxLANGUAGE_BASQUE)));
22476 }
22477 {
22478 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_From_int((int)(wxLANGUAGE_BELARUSIAN)));
22479 }
22480 {
22481 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_From_int((int)(wxLANGUAGE_BENGALI)));
22482 }
22483 {
22484 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_From_int((int)(wxLANGUAGE_BHUTANI)));
22485 }
22486 {
22487 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_From_int((int)(wxLANGUAGE_BIHARI)));
22488 }
22489 {
22490 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_From_int((int)(wxLANGUAGE_BISLAMA)));
22491 }
22492 {
22493 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_From_int((int)(wxLANGUAGE_BRETON)));
22494 }
22495 {
22496 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_From_int((int)(wxLANGUAGE_BULGARIAN)));
22497 }
22498 {
22499 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_From_int((int)(wxLANGUAGE_BURMESE)));
22500 }
22501 {
22502 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_From_int((int)(wxLANGUAGE_CAMBODIAN)));
22503 }
22504 {
22505 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_From_int((int)(wxLANGUAGE_CATALAN)));
22506 }
22507 {
22508 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_From_int((int)(wxLANGUAGE_CHINESE)));
22509 }
22510 {
22511 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_From_int((int)(wxLANGUAGE_CHINESE_SIMPLIFIED)));
22512 }
22513 {
22514 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_From_int((int)(wxLANGUAGE_CHINESE_TRADITIONAL)));
22515 }
22516 {
22517 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_From_int((int)(wxLANGUAGE_CHINESE_HONGKONG)));
22518 }
22519 {
22520 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_From_int((int)(wxLANGUAGE_CHINESE_MACAU)));
22521 }
22522 {
22523 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_From_int((int)(wxLANGUAGE_CHINESE_SINGAPORE)));
22524 }
22525 {
22526 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_From_int((int)(wxLANGUAGE_CHINESE_TAIWAN)));
22527 }
22528 {
22529 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_From_int((int)(wxLANGUAGE_CORSICAN)));
22530 }
22531 {
22532 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_From_int((int)(wxLANGUAGE_CROATIAN)));
22533 }
22534 {
22535 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_From_int((int)(wxLANGUAGE_CZECH)));
22536 }
22537 {
22538 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_From_int((int)(wxLANGUAGE_DANISH)));
22539 }
22540 {
22541 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_From_int((int)(wxLANGUAGE_DUTCH)));
22542 }
22543 {
22544 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_From_int((int)(wxLANGUAGE_DUTCH_BELGIAN)));
22545 }
22546 {
22547 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_From_int((int)(wxLANGUAGE_ENGLISH)));
22548 }
22549 {
22550 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_From_int((int)(wxLANGUAGE_ENGLISH_UK)));
22551 }
22552 {
22553 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_From_int((int)(wxLANGUAGE_ENGLISH_US)));
22554 }
22555 {
22556 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_From_int((int)(wxLANGUAGE_ENGLISH_AUSTRALIA)));
22557 }
22558 {
22559 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_From_int((int)(wxLANGUAGE_ENGLISH_BELIZE)));
22560 }
22561 {
22562 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_From_int((int)(wxLANGUAGE_ENGLISH_BOTSWANA)));
22563 }
22564 {
22565 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_From_int((int)(wxLANGUAGE_ENGLISH_CANADA)));
22566 }
22567 {
22568 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_From_int((int)(wxLANGUAGE_ENGLISH_CARIBBEAN)));
22569 }
22570 {
22571 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_From_int((int)(wxLANGUAGE_ENGLISH_DENMARK)));
22572 }
22573 {
22574 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_From_int((int)(wxLANGUAGE_ENGLISH_EIRE)));
22575 }
22576 {
22577 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_From_int((int)(wxLANGUAGE_ENGLISH_JAMAICA)));
22578 }
22579 {
22580 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_From_int((int)(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
22581 }
22582 {
22583 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_From_int((int)(wxLANGUAGE_ENGLISH_PHILIPPINES)));
22584 }
22585 {
22586 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_From_int((int)(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
22587 }
22588 {
22589 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_From_int((int)(wxLANGUAGE_ENGLISH_TRINIDAD)));
22590 }
22591 {
22592 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_From_int((int)(wxLANGUAGE_ENGLISH_ZIMBABWE)));
22593 }
22594 {
22595 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_From_int((int)(wxLANGUAGE_ESPERANTO)));
22596 }
22597 {
22598 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_From_int((int)(wxLANGUAGE_ESTONIAN)));
22599 }
22600 {
22601 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_From_int((int)(wxLANGUAGE_FAEROESE)));
22602 }
22603 {
22604 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_From_int((int)(wxLANGUAGE_FARSI)));
22605 }
22606 {
22607 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_From_int((int)(wxLANGUAGE_FIJI)));
22608 }
22609 {
22610 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_From_int((int)(wxLANGUAGE_FINNISH)));
22611 }
22612 {
22613 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_From_int((int)(wxLANGUAGE_FRENCH)));
22614 }
22615 {
22616 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_From_int((int)(wxLANGUAGE_FRENCH_BELGIAN)));
22617 }
22618 {
22619 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_From_int((int)(wxLANGUAGE_FRENCH_CANADIAN)));
22620 }
22621 {
22622 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_From_int((int)(wxLANGUAGE_FRENCH_LUXEMBOURG)));
22623 }
22624 {
22625 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_From_int((int)(wxLANGUAGE_FRENCH_MONACO)));
22626 }
22627 {
22628 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_From_int((int)(wxLANGUAGE_FRENCH_SWISS)));
22629 }
22630 {
22631 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_From_int((int)(wxLANGUAGE_FRISIAN)));
22632 }
22633 {
22634 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_From_int((int)(wxLANGUAGE_GALICIAN)));
22635 }
22636 {
22637 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_From_int((int)(wxLANGUAGE_GEORGIAN)));
22638 }
22639 {
22640 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_From_int((int)(wxLANGUAGE_GERMAN)));
22641 }
22642 {
22643 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_From_int((int)(wxLANGUAGE_GERMAN_AUSTRIAN)));
22644 }
22645 {
22646 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_From_int((int)(wxLANGUAGE_GERMAN_BELGIUM)));
22647 }
22648 {
22649 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_From_int((int)(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
22650 }
22651 {
22652 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_From_int((int)(wxLANGUAGE_GERMAN_LUXEMBOURG)));
22653 }
22654 {
22655 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_From_int((int)(wxLANGUAGE_GERMAN_SWISS)));
22656 }
22657 {
22658 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_From_int((int)(wxLANGUAGE_GREEK)));
22659 }
22660 {
22661 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_From_int((int)(wxLANGUAGE_GREENLANDIC)));
22662 }
22663 {
22664 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_From_int((int)(wxLANGUAGE_GUARANI)));
22665 }
22666 {
22667 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_From_int((int)(wxLANGUAGE_GUJARATI)));
22668 }
22669 {
22670 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_From_int((int)(wxLANGUAGE_HAUSA)));
22671 }
22672 {
22673 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_From_int((int)(wxLANGUAGE_HEBREW)));
22674 }
22675 {
22676 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_From_int((int)(wxLANGUAGE_HINDI)));
22677 }
22678 {
22679 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_From_int((int)(wxLANGUAGE_HUNGARIAN)));
22680 }
22681 {
22682 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_From_int((int)(wxLANGUAGE_ICELANDIC)));
22683 }
22684 {
22685 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_From_int((int)(wxLANGUAGE_INDONESIAN)));
22686 }
22687 {
22688 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_From_int((int)(wxLANGUAGE_INTERLINGUA)));
22689 }
22690 {
22691 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_From_int((int)(wxLANGUAGE_INTERLINGUE)));
22692 }
22693 {
22694 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_From_int((int)(wxLANGUAGE_INUKTITUT)));
22695 }
22696 {
22697 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_From_int((int)(wxLANGUAGE_INUPIAK)));
22698 }
22699 {
22700 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_From_int((int)(wxLANGUAGE_IRISH)));
22701 }
22702 {
22703 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_From_int((int)(wxLANGUAGE_ITALIAN)));
22704 }
22705 {
22706 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_From_int((int)(wxLANGUAGE_ITALIAN_SWISS)));
22707 }
22708 {
22709 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_From_int((int)(wxLANGUAGE_JAPANESE)));
22710 }
22711 {
22712 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_From_int((int)(wxLANGUAGE_JAVANESE)));
22713 }
22714 {
22715 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_From_int((int)(wxLANGUAGE_KANNADA)));
22716 }
22717 {
22718 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_From_int((int)(wxLANGUAGE_KASHMIRI)));
22719 }
22720 {
22721 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_From_int((int)(wxLANGUAGE_KASHMIRI_INDIA)));
22722 }
22723 {
22724 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_From_int((int)(wxLANGUAGE_KAZAKH)));
22725 }
22726 {
22727 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_From_int((int)(wxLANGUAGE_KERNEWEK)));
22728 }
22729 {
22730 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_From_int((int)(wxLANGUAGE_KINYARWANDA)));
22731 }
22732 {
22733 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_From_int((int)(wxLANGUAGE_KIRGHIZ)));
22734 }
22735 {
22736 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_From_int((int)(wxLANGUAGE_KIRUNDI)));
22737 }
22738 {
22739 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_From_int((int)(wxLANGUAGE_KONKANI)));
22740 }
22741 {
22742 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_From_int((int)(wxLANGUAGE_KOREAN)));
22743 }
22744 {
22745 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_From_int((int)(wxLANGUAGE_KURDISH)));
22746 }
22747 {
22748 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_From_int((int)(wxLANGUAGE_LAOTHIAN)));
22749 }
22750 {
22751 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_From_int((int)(wxLANGUAGE_LATIN)));
22752 }
22753 {
22754 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_From_int((int)(wxLANGUAGE_LATVIAN)));
22755 }
22756 {
22757 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_From_int((int)(wxLANGUAGE_LINGALA)));
22758 }
22759 {
22760 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_From_int((int)(wxLANGUAGE_LITHUANIAN)));
22761 }
22762 {
22763 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_From_int((int)(wxLANGUAGE_MACEDONIAN)));
22764 }
22765 {
22766 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_From_int((int)(wxLANGUAGE_MALAGASY)));
22767 }
22768 {
22769 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_From_int((int)(wxLANGUAGE_MALAY)));
22770 }
22771 {
22772 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_From_int((int)(wxLANGUAGE_MALAYALAM)));
22773 }
22774 {
22775 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_From_int((int)(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
22776 }
22777 {
22778 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_From_int((int)(wxLANGUAGE_MALAY_MALAYSIA)));
22779 }
22780 {
22781 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_From_int((int)(wxLANGUAGE_MALTESE)));
22782 }
22783 {
22784 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_From_int((int)(wxLANGUAGE_MANIPURI)));
22785 }
22786 {
22787 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_From_int((int)(wxLANGUAGE_MAORI)));
22788 }
22789 {
22790 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_From_int((int)(wxLANGUAGE_MARATHI)));
22791 }
22792 {
22793 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_From_int((int)(wxLANGUAGE_MOLDAVIAN)));
22794 }
22795 {
22796 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_From_int((int)(wxLANGUAGE_MONGOLIAN)));
22797 }
22798 {
22799 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_From_int((int)(wxLANGUAGE_NAURU)));
22800 }
22801 {
22802 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_From_int((int)(wxLANGUAGE_NEPALI)));
22803 }
22804 {
22805 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_From_int((int)(wxLANGUAGE_NEPALI_INDIA)));
22806 }
22807 {
22808 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_From_int((int)(wxLANGUAGE_NORWEGIAN_BOKMAL)));
22809 }
22810 {
22811 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_From_int((int)(wxLANGUAGE_NORWEGIAN_NYNORSK)));
22812 }
22813 {
22814 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_From_int((int)(wxLANGUAGE_OCCITAN)));
22815 }
22816 {
22817 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_From_int((int)(wxLANGUAGE_ORIYA)));
22818 }
22819 {
22820 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_From_int((int)(wxLANGUAGE_OROMO)));
22821 }
22822 {
22823 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_From_int((int)(wxLANGUAGE_PASHTO)));
22824 }
22825 {
22826 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_From_int((int)(wxLANGUAGE_POLISH)));
22827 }
22828 {
22829 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_From_int((int)(wxLANGUAGE_PORTUGUESE)));
22830 }
22831 {
22832 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_From_int((int)(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
22833 }
22834 {
22835 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_From_int((int)(wxLANGUAGE_PUNJABI)));
22836 }
22837 {
22838 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_From_int((int)(wxLANGUAGE_QUECHUA)));
22839 }
22840 {
22841 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_From_int((int)(wxLANGUAGE_RHAETO_ROMANCE)));
22842 }
22843 {
22844 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_From_int((int)(wxLANGUAGE_ROMANIAN)));
22845 }
22846 {
22847 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_From_int((int)(wxLANGUAGE_RUSSIAN)));
22848 }
22849 {
22850 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_From_int((int)(wxLANGUAGE_RUSSIAN_UKRAINE)));
22851 }
22852 {
22853 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_From_int((int)(wxLANGUAGE_SAMOAN)));
22854 }
22855 {
22856 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_From_int((int)(wxLANGUAGE_SANGHO)));
22857 }
22858 {
22859 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_From_int((int)(wxLANGUAGE_SANSKRIT)));
22860 }
22861 {
22862 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_From_int((int)(wxLANGUAGE_SCOTS_GAELIC)));
22863 }
22864 {
22865 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_From_int((int)(wxLANGUAGE_SERBIAN)));
22866 }
22867 {
22868 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_From_int((int)(wxLANGUAGE_SERBIAN_CYRILLIC)));
22869 }
22870 {
22871 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_From_int((int)(wxLANGUAGE_SERBIAN_LATIN)));
22872 }
22873 {
22874 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_From_int((int)(wxLANGUAGE_SERBO_CROATIAN)));
22875 }
22876 {
22877 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_From_int((int)(wxLANGUAGE_SESOTHO)));
22878 }
22879 {
22880 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_From_int((int)(wxLANGUAGE_SETSWANA)));
22881 }
22882 {
22883 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_From_int((int)(wxLANGUAGE_SHONA)));
22884 }
22885 {
22886 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_From_int((int)(wxLANGUAGE_SINDHI)));
22887 }
22888 {
22889 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_From_int((int)(wxLANGUAGE_SINHALESE)));
22890 }
22891 {
22892 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_From_int((int)(wxLANGUAGE_SISWATI)));
22893 }
22894 {
22895 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_From_int((int)(wxLANGUAGE_SLOVAK)));
22896 }
22897 {
22898 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_From_int((int)(wxLANGUAGE_SLOVENIAN)));
22899 }
22900 {
22901 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_From_int((int)(wxLANGUAGE_SOMALI)));
22902 }
22903 {
22904 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_From_int((int)(wxLANGUAGE_SPANISH)));
22905 }
22906 {
22907 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_From_int((int)(wxLANGUAGE_SPANISH_ARGENTINA)));
22908 }
22909 {
22910 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_From_int((int)(wxLANGUAGE_SPANISH_BOLIVIA)));
22911 }
22912 {
22913 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_From_int((int)(wxLANGUAGE_SPANISH_CHILE)));
22914 }
22915 {
22916 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_From_int((int)(wxLANGUAGE_SPANISH_COLOMBIA)));
22917 }
22918 {
22919 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_From_int((int)(wxLANGUAGE_SPANISH_COSTA_RICA)));
22920 }
22921 {
22922 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_From_int((int)(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
22923 }
22924 {
22925 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_From_int((int)(wxLANGUAGE_SPANISH_ECUADOR)));
22926 }
22927 {
22928 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_From_int((int)(wxLANGUAGE_SPANISH_EL_SALVADOR)));
22929 }
22930 {
22931 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_From_int((int)(wxLANGUAGE_SPANISH_GUATEMALA)));
22932 }
22933 {
22934 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_From_int((int)(wxLANGUAGE_SPANISH_HONDURAS)));
22935 }
22936 {
22937 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_From_int((int)(wxLANGUAGE_SPANISH_MEXICAN)));
22938 }
22939 {
22940 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_From_int((int)(wxLANGUAGE_SPANISH_MODERN)));
22941 }
22942 {
22943 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_From_int((int)(wxLANGUAGE_SPANISH_NICARAGUA)));
22944 }
22945 {
22946 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_From_int((int)(wxLANGUAGE_SPANISH_PANAMA)));
22947 }
22948 {
22949 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_From_int((int)(wxLANGUAGE_SPANISH_PARAGUAY)));
22950 }
22951 {
22952 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_From_int((int)(wxLANGUAGE_SPANISH_PERU)));
22953 }
22954 {
22955 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_From_int((int)(wxLANGUAGE_SPANISH_PUERTO_RICO)));
22956 }
22957 {
22958 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_From_int((int)(wxLANGUAGE_SPANISH_URUGUAY)));
22959 }
22960 {
22961 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_From_int((int)(wxLANGUAGE_SPANISH_US)));
22962 }
22963 {
22964 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_From_int((int)(wxLANGUAGE_SPANISH_VENEZUELA)));
22965 }
22966 {
22967 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_From_int((int)(wxLANGUAGE_SUNDANESE)));
22968 }
22969 {
22970 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_From_int((int)(wxLANGUAGE_SWAHILI)));
22971 }
22972 {
22973 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_From_int((int)(wxLANGUAGE_SWEDISH)));
22974 }
22975 {
22976 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_From_int((int)(wxLANGUAGE_SWEDISH_FINLAND)));
22977 }
22978 {
22979 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_From_int((int)(wxLANGUAGE_TAGALOG)));
22980 }
22981 {
22982 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_From_int((int)(wxLANGUAGE_TAJIK)));
22983 }
22984 {
22985 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_From_int((int)(wxLANGUAGE_TAMIL)));
22986 }
22987 {
22988 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_From_int((int)(wxLANGUAGE_TATAR)));
22989 }
22990 {
22991 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_From_int((int)(wxLANGUAGE_TELUGU)));
22992 }
22993 {
22994 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_From_int((int)(wxLANGUAGE_THAI)));
22995 }
22996 {
22997 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_From_int((int)(wxLANGUAGE_TIBETAN)));
22998 }
22999 {
23000 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_From_int((int)(wxLANGUAGE_TIGRINYA)));
23001 }
23002 {
23003 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_From_int((int)(wxLANGUAGE_TONGA)));
23004 }
23005 {
23006 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_From_int((int)(wxLANGUAGE_TSONGA)));
23007 }
23008 {
23009 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_From_int((int)(wxLANGUAGE_TURKISH)));
23010 }
23011 {
23012 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_From_int((int)(wxLANGUAGE_TURKMEN)));
23013 }
23014 {
23015 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_From_int((int)(wxLANGUAGE_TWI)));
23016 }
23017 {
23018 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_From_int((int)(wxLANGUAGE_UIGHUR)));
23019 }
23020 {
23021 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_From_int((int)(wxLANGUAGE_UKRAINIAN)));
23022 }
23023 {
23024 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_From_int((int)(wxLANGUAGE_URDU)));
23025 }
23026 {
23027 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_From_int((int)(wxLANGUAGE_URDU_INDIA)));
23028 }
23029 {
23030 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_From_int((int)(wxLANGUAGE_URDU_PAKISTAN)));
23031 }
23032 {
23033 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_From_int((int)(wxLANGUAGE_UZBEK)));
23034 }
23035 {
23036 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_From_int((int)(wxLANGUAGE_UZBEK_CYRILLIC)));
23037 }
23038 {
23039 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_From_int((int)(wxLANGUAGE_UZBEK_LATIN)));
23040 }
23041 {
23042 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_From_int((int)(wxLANGUAGE_VIETNAMESE)));
23043 }
23044 {
23045 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_From_int((int)(wxLANGUAGE_VOLAPUK)));
23046 }
23047 {
23048 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_From_int((int)(wxLANGUAGE_WELSH)));
23049 }
23050 {
23051 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_From_int((int)(wxLANGUAGE_WOLOF)));
23052 }
23053 {
23054 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_From_int((int)(wxLANGUAGE_XHOSA)));
23055 }
23056 {
23057 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_From_int((int)(wxLANGUAGE_YIDDISH)));
23058 }
23059 {
23060 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_From_int((int)(wxLANGUAGE_YORUBA)));
23061 }
23062 {
23063 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_From_int((int)(wxLANGUAGE_ZHUANG)));
23064 }
23065 {
23066 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_From_int((int)(wxLANGUAGE_ZULU)));
23067 }
23068 {
23069 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_From_int((int)(wxLANGUAGE_USER_DEFINED)));
23070 }
23071 {
23072 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_From_int((int)(wxLOCALE_CAT_NUMBER)));
23073 }
23074 {
23075 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_From_int((int)(wxLOCALE_CAT_DATE)));
23076 }
23077 {
23078 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_From_int((int)(wxLOCALE_CAT_MONEY)));
23079 }
23080 {
23081 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_From_int((int)(wxLOCALE_CAT_MAX)));
23082 }
23083 {
23084 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_From_int((int)(wxLOCALE_THOUSANDS_SEP)));
23085 }
23086 {
23087 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_From_int((int)(wxLOCALE_DECIMAL_POINT)));
23088 }
23089 {
23090 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_From_int((int)(wxLOCALE_LOAD_DEFAULT)));
23091 }
23092 {
23093 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_From_int((int)(wxLOCALE_CONV_ENCODING)));
23094 }
23095 {
23096 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_From_int((int)(wxCONVERT_STRICT)));
23097 }
23098 {
23099 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_From_int((int)(wxCONVERT_SUBSTITUTE)));
23100 }
23101 {
23102 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_From_int((int)(wxPLATFORM_CURRENT)));
23103 }
23104 {
23105 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_From_int((int)(wxPLATFORM_UNIX)));
23106 }
23107 {
23108 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_From_int((int)(wxPLATFORM_WINDOWS)));
23109 }
23110 {
23111 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_From_int((int)(wxPLATFORM_OS2)));
23112 }
23113 {
23114 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_From_int((int)(wxPLATFORM_MAC)));
23115 }
e2950dbb
RD
23116 {
23117 PyDict_SetItemString(d,"BUFFER_VIRTUAL_AREA", SWIG_From_int((int)(wxBUFFER_VIRTUAL_AREA)));
23118 }
23119 {
23120 PyDict_SetItemString(d,"BUFFER_CLIENT_AREA", SWIG_From_int((int)(wxBUFFER_CLIENT_AREA)));
23121 }
093d3ff1
RD
23122 {
23123 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_From_int((int)(wxIMAGELIST_DRAW_NORMAL)));
23124 }
23125 {
23126 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_From_int((int)(wxIMAGELIST_DRAW_TRANSPARENT)));
23127 }
23128 {
23129 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_From_int((int)(wxIMAGELIST_DRAW_SELECTED)));
23130 }
23131 {
23132 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_From_int((int)(wxIMAGELIST_DRAW_FOCUSED)));
23133 }
23134 {
23135 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_From_int((int)(wxIMAGE_LIST_NORMAL)));
23136 }
23137 {
23138 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_From_int((int)(wxIMAGE_LIST_SMALL)));
23139 }
23140 {
23141 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_From_int((int)(wxIMAGE_LIST_STATE)));
23142 }
d14a1e28
RD
23143 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
23144 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
23145 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
23146 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
23147 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
23148 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
23149 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
23150 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
23151 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
23152 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
23153 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
23154 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
23155 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
23156 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
23157 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
23158 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
23159 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
23160 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
23161 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
23162 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
23163 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
23164 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
23165 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
23166 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
23167 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
23168 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
23169 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
23170 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
23171 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
23172 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
23173 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
23174 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
23175 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
23176 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
23177 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
23178 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
23179 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
23180 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
23181 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
23182 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
23183 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
23184 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
23185 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
23186 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
23187 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
23188 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
23189 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
7722248d
RD
23190
23191 // Work around a chicken/egg problem in drawlist.cpp
23192 wxPyDrawList_SetAPIPtr();
23193
d14a1e28
RD
23194}
23195