1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
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 * ----------------------------------------------------------------------------- */
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
15 template<class T
> class SwigValueWrapper
{
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper
<T
>& rhs
) : tt(new T(*rhs
.tt
)) { }
20 SwigValueWrapper(const T
& t
) : tt(new T(t
)) { }
21 ~SwigValueWrapper() { delete tt
; }
22 SwigValueWrapper
& operator=(const T
& t
) { delete tt
; tt
= new T(t
); return *this; }
23 operator T
&() const { return *tt
; }
24 T
*operator&() { return tt
; }
26 SwigValueWrapper
& operator=(const SwigValueWrapper
<T
>& rhs
);
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
41 # define SWIGTEMPLATEDISAMBIGUATOR
44 # define SWIGTEMPLATEDISAMBIGUATOR
48 /* inline attribute */
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
66 # define SWIGUNUSED __attribute__ ((__unused__))
72 #ifndef SWIGUNUSEDPARM
74 # define SWIGUNUSEDPARM(p)
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
80 /* internal SWIG method */
82 # define SWIGINTERN static SWIGUNUSED
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
102 # define SWIGEXPORT __declspec(dllexport)
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
113 /* calling conventions for Windows */
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
128 /* Python.h has to appear first */
131 /* -----------------------------------------------------------------------------
134 * This file contains generic CAPI SWIG runtime support for pointer
136 * ----------------------------------------------------------------------------- */
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
148 # define SWIG_TYPE_TABLE_NAME
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
161 # define SWIGRUNTIME SWIGINTERN
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
181 Flags/methods for returning states.
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
187 Use the following macros/flags to set or process the returning
190 In old swig versions, you usually write code as:
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
198 Now you can be more explicit as:
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
207 that seems to be the same, but now you can also do
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
213 if (SWIG_IsNewObj(res) {
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
227 int SWIG_ConvertPtr(obj, ptr,...) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
233 *ptr = <ptr to old object>;
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
256 just use the SWIG_AddCast()/SWIG_CheckState()
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE
int SWIG_AddCast(int r
) {
296 return SWIG_IsOK(r
) ? ((SWIG_CastRank(r
) < SWIG_MAXCASTRANK
) ? (r
+ 1) : SWIG_ERROR
) : r
;
298 SWIGINTERNINLINE
int SWIG_CheckState(int r
) {
299 return SWIG_IsOK(r
) ? SWIG_CastRank(r
) + 1 : 0;
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
315 typedef void *(*swig_converter_func
)(void *);
316 typedef struct swig_type_info
*(*swig_dycast_func
)(void **);
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info
{
320 const char *name
; /* mangled name of this type */
321 const char *str
; /* human readable name of this type */
322 swig_dycast_func dcast
; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info
*cast
; /* linked list of types that can cast into this type */
324 void *clientdata
; /* language specific type data */
325 int owndata
; /* flag if the structure owns the clientdata */
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info
{
330 swig_type_info
*type
; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter
; /* function to cast the void pointers */
332 struct swig_cast_info
*next
; /* pointer to next cast in linked list */
333 struct swig_cast_info
*prev
; /* pointer to the previous cast */
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info
{
340 swig_type_info
**types
; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size
; /* Number of types in this module */
342 struct swig_module_info
*next
; /* Pointer to next element in circularly linked list */
343 swig_type_info
**type_initial
; /* Array of initially generated type structures */
344 swig_cast_info
**cast_initial
; /* Array of initially generated casting structures */
345 void *clientdata
; /* Language specific module data */
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
356 SWIG_TypeNameComp(const char *f1
, const char *l1
,
357 const char *f2
, const char *l2
) {
358 for (;(f1
!= l1
) && (f2
!= l2
); ++f1
, ++f2
) {
359 while ((*f1
== ' ') && (f1
!= l1
)) ++f1
;
360 while ((*f2
== ' ') && (f2
!= l2
)) ++f2
;
361 if (*f1
!= *f2
) return (*f1
> *f2
) ? 1 : -1;
363 return (l1
- f1
) - (l2
- f2
);
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
371 SWIG_TypeEquiv(const char *nb
, const char *tb
) {
373 const char* te
= tb
+ strlen(tb
);
375 while (!equiv
&& *ne
) {
376 for (nb
= ne
; *ne
; ++ne
) {
377 if (*ne
== '|') break;
379 equiv
= (SWIG_TypeNameComp(nb
, ne
, tb
, te
) == 0) ? 1 : 0;
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
390 SWIG_TypeCompare(const char *nb
, const char *tb
) {
392 const char* te
= tb
+ strlen(tb
);
394 while (!equiv
&& *ne
) {
395 for (nb
= ne
; *ne
; ++ne
) {
396 if (*ne
== '|') break;
398 equiv
= (SWIG_TypeNameComp(nb
, ne
, tb
, te
) == 0) ? 1 : 0;
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
408 swig_cast_info *iter = ty->cast; \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
418 if (ty->cast) ty->cast->prev = iter; \
430 SWIGRUNTIME swig_cast_info
*
431 SWIG_TypeCheck(const char *c
, swig_type_info
*ty
) {
432 SWIG_TypeCheck_Template(strcmp(iter
->type
->name
, c
) == 0, ty
);
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info
*
437 SWIG_TypeCheckStruct(swig_type_info
*from
, swig_type_info
*into
) {
438 SWIG_TypeCheck_Template(iter
->type
== from
, into
);
442 Cast a pointer up an inheritance hierarchy
444 SWIGRUNTIMEINLINE
void *
445 SWIG_TypeCast(swig_cast_info
*ty
, void *ptr
) {
446 return ((!ty
) || (!ty
->converter
)) ? ptr
: (*ty
->converter
)(ptr
);
450 Dynamic pointer casting. Down an inheritance hierarchy
452 SWIGRUNTIME swig_type_info
*
453 SWIG_TypeDynamicCast(swig_type_info
*ty
, void **ptr
) {
454 swig_type_info
*lastty
= ty
;
455 if (!ty
|| !ty
->dcast
) return ty
;
456 while (ty
&& (ty
->dcast
)) {
457 ty
= (*ty
->dcast
)(ptr
);
464 Return the name associated with this type
466 SWIGRUNTIMEINLINE
const char *
467 SWIG_TypeName(const swig_type_info
*ty
) {
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
475 SWIGRUNTIME
const char *
476 SWIG_TypePrettyName(const swig_type_info
*type
) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
481 if (!type
) return NULL
;
482 if (type
->str
!= NULL
) {
483 const char *last_name
= type
->str
;
485 for (s
= type
->str
; *s
; s
++)
486 if (*s
== '|') last_name
= s
+1;
494 Set the clientdata field for a type
497 SWIG_TypeClientData(swig_type_info
*ti
, void *clientdata
) {
498 swig_cast_info
*cast
= ti
->cast
;
499 /* if (ti->clientdata == clientdata) return; */
500 ti
->clientdata
= clientdata
;
503 if (!cast
->converter
) {
504 swig_type_info
*tc
= cast
->type
;
505 if (!tc
->clientdata
) {
506 SWIG_TypeClientData(tc
, clientdata
);
513 SWIG_TypeNewClientData(swig_type_info
*ti
, void *clientdata
) {
514 SWIG_TypeClientData(ti
, clientdata
);
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
526 SWIGRUNTIME swig_type_info
*
527 SWIG_MangledTypeQueryModule(swig_module_info
*start
,
528 swig_module_info
*end
,
530 swig_module_info
*iter
= start
;
533 register size_t l
= 0;
534 register size_t r
= iter
->size
- 1;
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i
= (l
+ r
) >> 1;
538 const char *iname
= iter
->types
[i
]->name
;
540 register int compare
= strcmp(name
, iname
);
542 return iter
->types
[i
];
543 } else if (compare
< 0) {
549 } else if (compare
> 0) {
553 break; /* should never happen */
558 } while (iter
!= end
);
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
571 SWIGRUNTIME swig_type_info
*
572 SWIG_TypeQueryModule(swig_module_info
*start
,
573 swig_module_info
*end
,
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info
*ret
= SWIG_MangledTypeQueryModule(start
, end
, name
);
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info
*iter
= start
;
584 register size_t i
= 0;
585 for (; i
< iter
->size
; ++i
) {
586 if (iter
->types
[i
]->str
&& (SWIG_TypeEquiv(iter
->types
[i
]->str
, name
)))
587 return iter
->types
[i
];
590 } while (iter
!= end
);
593 /* neither found a match */
598 Pack binary data into a string
601 SWIG_PackData(char *c
, void *ptr
, size_t sz
) {
602 static const char hex
[17] = "0123456789abcdef";
603 register const unsigned char *u
= (unsigned char *) ptr
;
604 register const unsigned char *eu
= u
+ sz
;
605 for (; u
!= eu
; ++u
) {
606 register unsigned char uu
= *u
;
607 *(c
++) = hex
[(uu
& 0xf0) >> 4];
608 *(c
++) = hex
[uu
& 0xf];
614 Unpack binary data from a string
616 SWIGRUNTIME
const char *
617 SWIG_UnpackData(const char *c
, void *ptr
, size_t sz
) {
618 register unsigned char *u
= (unsigned char *) ptr
;
619 register const unsigned char *eu
= u
+ sz
;
620 for (; u
!= eu
; ++u
) {
621 register char d
= *(c
++);
622 register unsigned char uu
;
623 if ((d
>= '0') && (d
<= '9'))
624 uu
= ((d
- '0') << 4);
625 else if ((d
>= 'a') && (d
<= 'f'))
626 uu
= ((d
- ('a'-10)) << 4);
630 if ((d
>= '0') && (d
<= '9'))
632 else if ((d
>= 'a') && (d
<= 'f'))
633 uu
|= (d
- ('a'-10));
642 Pack 'void *' into a string buffer.
645 SWIG_PackVoidPtr(char *buff
, void *ptr
, const char *name
, size_t bsz
) {
647 if ((2*sizeof(void *) + 2) > bsz
) return 0;
649 r
= SWIG_PackData(r
,&ptr
,sizeof(void *));
650 if (strlen(name
) + 1 > (bsz
- (r
- buff
))) return 0;
655 SWIGRUNTIME
const char *
656 SWIG_UnpackVoidPtr(const char *c
, void **ptr
, const char *name
) {
658 if (strcmp(c
,"NULL") == 0) {
665 return SWIG_UnpackData(++c
,ptr
,sizeof(void *));
669 SWIG_PackDataName(char *buff
, void *ptr
, size_t sz
, const char *name
, size_t bsz
) {
671 size_t lname
= (name
? strlen(name
) : 0);
672 if ((2*sz
+ 2 + lname
) > bsz
) return 0;
674 r
= SWIG_PackData(r
,ptr
,sz
);
676 strncpy(r
,name
,lname
+1);
683 SWIGRUNTIME
const char *
684 SWIG_UnpackDataName(const char *c
, void *ptr
, size_t sz
, const char *name
) {
686 if (strcmp(c
,"NULL") == 0) {
693 return SWIG_UnpackData(++c
,ptr
,sz
);
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
717 /* Python.h has to appear first */
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
725 # define PyOS_snprintf snprintf
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
737 PyString_FromFormat(const char *fmt
, ...) {
739 char buf
[SWIG_PYBUFFER_SIZE
* 2];
742 res
= vsnprintf(buf
, sizeof(buf
), fmt
, ap
);
744 return (res
< 0 || res
>= (int)sizeof(buf
)) ? 0 : PyString_FromString(buf
);
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
753 # define PyObject_DEL PyObject_Del
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
791 PyObject
*PyBool_FromLong(long ok
)
793 PyObject
*result
= ok
? Py_True
: Py_False
;
800 /* -----------------------------------------------------------------------------
802 * ----------------------------------------------------------------------------- */
804 SWIGRUNTIME PyObject
*
805 SWIG_Python_ErrorType(int code
) {
808 case SWIG_MemoryError
:
809 type
= PyExc_MemoryError
;
812 type
= PyExc_IOError
;
814 case SWIG_RuntimeError
:
815 type
= PyExc_RuntimeError
;
817 case SWIG_IndexError
:
818 type
= PyExc_IndexError
;
821 type
= PyExc_TypeError
;
823 case SWIG_DivisionByZero
:
824 type
= PyExc_ZeroDivisionError
;
826 case SWIG_OverflowError
:
827 type
= PyExc_OverflowError
;
829 case SWIG_SyntaxError
:
830 type
= PyExc_SyntaxError
;
832 case SWIG_ValueError
:
833 type
= PyExc_ValueError
;
835 case SWIG_SystemError
:
836 type
= PyExc_SystemError
;
838 case SWIG_AttributeError
:
839 type
= PyExc_AttributeError
;
842 type
= PyExc_RuntimeError
;
849 SWIG_Python_AddErrorMsg(const char* mesg
)
853 PyObject
*traceback
= 0;
855 if (PyErr_Occurred()) PyErr_Fetch(&type
, &value
, &traceback
);
857 PyObject
*old_str
= PyObject_Str(value
);
860 PyErr_Format(type
, "%s %s", PyString_AsString(old_str
), mesg
);
864 PyErr_Format(PyExc_RuntimeError
, mesg
);
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block
{
888 PyGILState_STATE state
;
890 void end() { if (status
) { PyGILState_Release(state
); status
= false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
894 class SWIG_Python_Thread_Allow
{
898 void end() { if (status
) { PyEval_RestoreThread(save
); status
= false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
956 /* Constant information structure */
957 typedef struct swig_const_info
{
963 swig_type_info
**ptype
;
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
984 * ----------------------------------------------------------------------------- */
986 /* Common SWIG API */
988 /* for raw pointers */
989 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
990 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
991 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
992 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
993 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
994 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
995 #define swig_owntype int
997 /* for raw packed data */
998 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
999 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1001 /* for class or struct pointers */
1002 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1003 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1005 /* for C or C++ function pointers */
1006 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1007 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1009 /* for C++ member pointers, ie, member methods */
1010 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1011 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1016 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1017 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1018 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1020 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1021 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1022 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1023 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1024 #define SWIG_fail goto fail
1027 /* Runtime API implementation */
1029 /* Error manipulation */
1032 SWIG_Python_SetErrorObj(PyObject
*errtype
, PyObject
*obj
) {
1033 SWIG_PYTHON_THREAD_BEGIN_BLOCK
;
1034 PyErr_SetObject(errtype
, obj
);
1036 SWIG_PYTHON_THREAD_END_BLOCK
;
1040 SWIG_Python_SetErrorMsg(PyObject
*errtype
, const char *msg
) {
1041 SWIG_PYTHON_THREAD_BEGIN_BLOCK
;
1042 PyErr_SetString(errtype
, (char *) msg
);
1043 SWIG_PYTHON_THREAD_END_BLOCK
;
1046 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1048 /* Set a constant value */
1051 SWIG_Python_SetConstant(PyObject
*d
, const char *name
, PyObject
*obj
) {
1052 PyDict_SetItemString(d
, (char*) name
, obj
);
1056 /* Append a value to the result obj */
1058 SWIGINTERN PyObject
*
1059 SWIG_Python_AppendOutput(PyObject
* result
, PyObject
* obj
) {
1060 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1063 } else if (result
== Py_None
) {
1067 if (!PyList_Check(result
)) {
1068 PyObject
*o2
= result
;
1069 result
= PyList_New(1);
1070 PyList_SetItem(result
, 0, o2
);
1072 PyList_Append(result
,obj
);
1081 } else if (result
== Py_None
) {
1085 if (!PyTuple_Check(result
)) {
1087 result
= PyTuple_New(1);
1088 PyTuple_SET_ITEM(result
, 0, o2
);
1090 o3
= PyTuple_New(1);
1091 PyTuple_SET_ITEM(o3
, 0, obj
);
1093 result
= PySequence_Concat(o2
, o3
);
1101 /* Unpack the argument tuple */
1104 SWIG_Python_UnpackTuple(PyObject
*args
, const char *name
, int min
, int max
, PyObject
**objs
)
1110 PyErr_Format(PyExc_TypeError
, "%s expected %s%d arguments, got none",
1111 name
, (min
== max
? "" : "at least "), min
);
1115 if (!PyTuple_Check(args
)) {
1116 PyErr_SetString(PyExc_SystemError
, "UnpackTuple() argument list is not a tuple");
1119 register int l
= PyTuple_GET_SIZE(args
);
1121 PyErr_Format(PyExc_TypeError
, "%s expected %s%d arguments, got %d",
1122 name
, (min
== max
? "" : "at least "), min
, l
);
1124 } else if (l
> max
) {
1125 PyErr_Format(PyExc_TypeError
, "%s expected %s%d arguments, got %d",
1126 name
, (min
== max
? "" : "at most "), max
, l
);
1130 for (i
= 0; i
< l
; ++i
) {
1131 objs
[i
] = PyTuple_GET_ITEM(args
, i
);
1133 for (; l
< max
; ++l
) {
1141 /* A functor is a function object with one single object argument */
1142 #if PY_VERSION_HEX >= 0x02020000
1143 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1145 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1149 Helper for static pointer initialization for both C and C++ code, for example
1150 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1153 #define SWIG_STATIC_POINTER(var) var
1155 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1158 /* -----------------------------------------------------------------------------
1159 * Pointer declarations
1160 * ----------------------------------------------------------------------------- */
1162 /* Flags for new pointer objects */
1163 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1164 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1166 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1175 /* How to access Py_None */
1176 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1177 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1178 # ifndef SWIG_PYTHON_BUILD_NONE
1179 # define SWIG_PYTHON_BUILD_NONE
1184 #ifdef SWIG_PYTHON_BUILD_NONE
1187 # define Py_None SWIG_Py_None()
1189 SWIGRUNTIMEINLINE PyObject
*
1192 PyObject
*none
= Py_BuildValue("");
1196 SWIGRUNTIME PyObject
*
1199 static PyObject
*SWIG_STATIC_POINTER(none
) = _SWIG_Py_None();
1204 /* The python void return value */
1206 SWIGRUNTIMEINLINE PyObject
*
1209 PyObject
*none
= Py_None
;
1214 /* PySwigClientData */
1225 SWIGRUNTIMEINLINE
int
1226 SWIG_Python_CheckImplicit(swig_type_info
*ty
)
1228 PySwigClientData
*data
= (PySwigClientData
*)ty
->clientdata
;
1229 return data
? data
->implicitconv
: 0;
1232 SWIGRUNTIMEINLINE PyObject
*
1233 SWIG_Python_ExceptionType(swig_type_info
*desc
) {
1234 PySwigClientData
*data
= desc
? (PySwigClientData
*) desc
->clientdata
: 0;
1235 PyObject
*klass
= data
? data
->klass
: 0;
1236 return (klass
? klass
: PyExc_RuntimeError
);
1240 SWIGRUNTIME PySwigClientData
*
1241 PySwigClientData_New(PyObject
* obj
)
1246 PySwigClientData
*data
= (PySwigClientData
*)malloc(sizeof(PySwigClientData
));
1247 /* the klass element */
1249 Py_INCREF(data
->klass
);
1250 /* the newraw method and newargs arguments used to create a new raw instance */
1251 if (PyClass_Check(obj
)) {
1253 data
->newargs
= obj
;
1256 #if (PY_VERSION_HEX < 0x02020000)
1259 data
->newraw
= PyObject_GetAttrString(data
->klass
, (char *)"__new__");
1262 Py_INCREF(data
->newraw
);
1263 data
->newargs
= PyTuple_New(1);
1264 PyTuple_SetItem(data
->newargs
, 0, obj
);
1266 data
->newargs
= obj
;
1268 Py_INCREF(data
->newargs
);
1270 /* the destroy method, aka as the C++ delete method */
1271 data
->destroy
= PyObject_GetAttrString(data
->klass
, (char *)"__swig_destroy__");
1272 if (PyErr_Occurred()) {
1276 if (data
->destroy
) {
1278 Py_INCREF(data
->destroy
);
1279 flags
= PyCFunction_GET_FLAGS(data
->destroy
);
1281 data
->delargs
= !(flags
& (METH_O
));
1288 data
->implicitconv
= 0;
1294 PySwigClientData_Del(PySwigClientData
* data
)
1296 Py_XDECREF(data
->newraw
);
1297 Py_XDECREF(data
->newargs
);
1298 Py_XDECREF(data
->destroy
);
1301 /* =============== PySwigObject =====================*/
1311 SWIGRUNTIME PyObject
*
1312 PySwigObject_long(PySwigObject
*v
)
1314 return PyLong_FromVoidPtr(v
->ptr
);
1317 SWIGRUNTIME PyObject
*
1318 PySwigObject_format(const char* fmt
, PySwigObject
*v
)
1320 PyObject
*res
= NULL
;
1321 PyObject
*args
= PyTuple_New(1);
1323 if (PyTuple_SetItem(args
, 0, PySwigObject_long(v
)) == 0) {
1324 PyObject
*ofmt
= PyString_FromString(fmt
);
1326 res
= PyString_Format(ofmt
,args
);
1335 SWIGRUNTIME PyObject
*
1336 PySwigObject_oct(PySwigObject
*v
)
1338 return PySwigObject_format("%o",v
);
1341 SWIGRUNTIME PyObject
*
1342 PySwigObject_hex(PySwigObject
*v
)
1344 return PySwigObject_format("%x",v
);
1347 SWIGRUNTIME PyObject
*
1349 PySwigObject_repr(PySwigObject
*v
)
1351 PySwigObject_repr(PySwigObject
*v
, PyObject
*args
)
1354 const char *name
= SWIG_TypePrettyName(v
->ty
);
1355 PyObject
*hex
= PySwigObject_hex(v
);
1356 PyObject
*repr
= PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name
, PyString_AsString(hex
));
1360 PyObject
*nrep
= PySwigObject_repr((PySwigObject
*)v
->next
);
1362 PyObject
*nrep
= PySwigObject_repr((PySwigObject
*)v
->next
, args
);
1364 PyString_ConcatAndDel(&repr
,nrep
);
1370 PySwigObject_print(PySwigObject
*v
, FILE *fp
, int SWIGUNUSEDPARM(flags
))
1373 PyObject
*repr
= PySwigObject_repr(v
);
1375 PyObject
*repr
= PySwigObject_repr(v
, NULL
);
1378 fputs(PyString_AsString(repr
), fp
);
1386 SWIGRUNTIME PyObject
*
1387 PySwigObject_str(PySwigObject
*v
)
1389 char result
[SWIG_BUFFER_SIZE
];
1390 return SWIG_PackVoidPtr(result
, v
->ptr
, v
->ty
->name
, sizeof(result
)) ?
1391 PyString_FromString(result
) : 0;
1395 PySwigObject_compare(PySwigObject
*v
, PySwigObject
*w
)
1399 return (i
< j
) ? -1 : ((i
> j
) ? 1 : 0);
1402 SWIGRUNTIME PyTypeObject
* _PySwigObject_type(void);
1404 SWIGRUNTIME PyTypeObject
*
1405 PySwigObject_type(void) {
1406 static PyTypeObject
*SWIG_STATIC_POINTER(type
) = _PySwigObject_type();
1410 SWIGRUNTIMEINLINE
int
1411 PySwigObject_Check(PyObject
*op
) {
1412 return ((op
)->ob_type
== PySwigObject_type())
1413 || (strcmp((op
)->ob_type
->tp_name
,"PySwigObject") == 0);
1416 SWIGRUNTIME PyObject
*
1417 PySwigObject_New(void *ptr
, swig_type_info
*ty
, int own
);
1420 PySwigObject_dealloc(PyObject
*v
)
1422 PySwigObject
*sobj
= (PySwigObject
*) v
;
1423 PyObject
*next
= sobj
->next
;
1425 swig_type_info
*ty
= sobj
->ty
;
1426 PySwigClientData
*data
= ty
? (PySwigClientData
*) ty
->clientdata
: 0;
1427 PyObject
*destroy
= data
? data
->destroy
: 0;
1429 /* destroy is always a VARARGS method */
1431 if (data
->delargs
) {
1432 /* we need to create a temporal object to carry the destroy operation */
1433 PyObject
*tmp
= PySwigObject_New(sobj
->ptr
, ty
, 0);
1434 res
= SWIG_Python_CallFunctor(destroy
, tmp
);
1437 PyCFunction meth
= PyCFunction_GET_FUNCTION(destroy
);
1438 PyObject
*mself
= PyCFunction_GET_SELF(destroy
);
1439 res
= ((*meth
)(mself
, v
));
1443 const char *name
= SWIG_TypePrettyName(ty
);
1444 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1445 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name
);
1453 SWIGRUNTIME PyObject
*
1454 PySwigObject_append(PyObject
* v
, PyObject
* next
)
1456 PySwigObject
*sobj
= (PySwigObject
*) v
;
1459 if (!PyArg_ParseTuple(next
,(char *)"O:append", &tmp
)) return NULL
;
1462 if (!PySwigObject_Check(next
)) {
1467 return SWIG_Py_Void();
1470 SWIGRUNTIME PyObject
*
1472 PySwigObject_next(PyObject
* v
)
1474 PySwigObject_next(PyObject
* v
, PyObject
*SWIGUNUSEDPARM(args
))
1477 PySwigObject
*sobj
= (PySwigObject
*) v
;
1479 Py_INCREF(sobj
->next
);
1482 return SWIG_Py_Void();
1486 SWIGINTERN PyObject
*
1488 PySwigObject_disown(PyObject
*v
)
1490 PySwigObject_disown(PyObject
* v
, PyObject
*SWIGUNUSEDPARM(args
))
1493 PySwigObject
*sobj
= (PySwigObject
*)v
;
1495 return SWIG_Py_Void();
1498 SWIGINTERN PyObject
*
1500 PySwigObject_acquire(PyObject
*v
)
1502 PySwigObject_acquire(PyObject
* v
, PyObject
*SWIGUNUSEDPARM(args
))
1505 PySwigObject
*sobj
= (PySwigObject
*)v
;
1506 sobj
->own
= SWIG_POINTER_OWN
;
1507 return SWIG_Py_Void();
1510 SWIGINTERN PyObject
*
1511 PySwigObject_own(PyObject
*v
, PyObject
*args
)
1514 #if (PY_VERSION_HEX < 0x02020000)
1515 if (!PyArg_ParseTuple(args
,(char *)"|O:own",&val
))
1517 if (!PyArg_UnpackTuple(args
, (char *)"own", 0, 1, &val
))
1524 PySwigObject
*sobj
= (PySwigObject
*)v
;
1525 PyObject
*obj
= PyBool_FromLong(sobj
->own
);
1528 if (PyObject_IsTrue(val
)) {
1529 PySwigObject_acquire(v
);
1531 PySwigObject_disown(v
);
1534 if (PyObject_IsTrue(val
)) {
1535 PySwigObject_acquire(v
,args
);
1537 PySwigObject_disown(v
,args
);
1547 swigobject_methods
[] = {
1548 {(char *)"disown", (PyCFunction
)PySwigObject_disown
, METH_NOARGS
, (char *)"releases ownership of the pointer"},
1549 {(char *)"acquire", (PyCFunction
)PySwigObject_acquire
, METH_NOARGS
, (char *)"aquires ownership of the pointer"},
1550 {(char *)"own", (PyCFunction
)PySwigObject_own
, METH_VARARGS
, (char *)"returns/sets ownership of the pointer"},
1551 {(char *)"append", (PyCFunction
)PySwigObject_append
, METH_O
, (char *)"appends another 'this' object"},
1552 {(char *)"next", (PyCFunction
)PySwigObject_next
, METH_NOARGS
, (char *)"returns the next 'this' object"},
1553 {(char *)"__repr__",(PyCFunction
)PySwigObject_repr
, METH_NOARGS
, (char *)"returns object representation"},
1558 swigobject_methods
[] = {
1559 {(char *)"disown", (PyCFunction
)PySwigObject_disown
, METH_VARARGS
, (char *)"releases ownership of the pointer"},
1560 {(char *)"acquire", (PyCFunction
)PySwigObject_acquire
, METH_VARARGS
, (char *)"aquires ownership of the pointer"},
1561 {(char *)"own", (PyCFunction
)PySwigObject_own
, METH_VARARGS
, (char *)"returns/sets ownership of the pointer"},
1562 {(char *)"append", (PyCFunction
)PySwigObject_append
, METH_VARARGS
, (char *)"appends another 'this' object"},
1563 {(char *)"next", (PyCFunction
)PySwigObject_next
, METH_VARARGS
, (char *)"returns the next 'this' object"},
1564 {(char *)"__repr__",(PyCFunction
)PySwigObject_repr
, METH_VARARGS
, (char *)"returns object representation"},
1569 #if PY_VERSION_HEX < 0x02020000
1570 SWIGINTERN PyObject
*
1571 PySwigObject_getattr(PySwigObject
*sobj
,char *name
)
1573 return Py_FindMethod(swigobject_methods
, (PyObject
*)sobj
, name
);
1577 SWIGRUNTIME PyTypeObject
*
1578 _PySwigObject_type(void) {
1579 static char swigobject_doc
[] = "Swig object carries a C/C++ instance pointer";
1581 static PyNumberMethods PySwigObject_as_number
= {
1582 (binaryfunc
)0, /*nb_add*/
1583 (binaryfunc
)0, /*nb_subtract*/
1584 (binaryfunc
)0, /*nb_multiply*/
1585 (binaryfunc
)0, /*nb_divide*/
1586 (binaryfunc
)0, /*nb_remainder*/
1587 (binaryfunc
)0, /*nb_divmod*/
1588 (ternaryfunc
)0,/*nb_power*/
1589 (unaryfunc
)0, /*nb_negative*/
1590 (unaryfunc
)0, /*nb_positive*/
1591 (unaryfunc
)0, /*nb_absolute*/
1592 (inquiry
)0, /*nb_nonzero*/
1599 (coercion
)0, /*nb_coerce*/
1600 (unaryfunc
)PySwigObject_long
, /*nb_int*/
1601 (unaryfunc
)PySwigObject_long
, /*nb_long*/
1602 (unaryfunc
)0, /*nb_float*/
1603 (unaryfunc
)PySwigObject_oct
, /*nb_oct*/
1604 (unaryfunc
)PySwigObject_hex
, /*nb_hex*/
1605 #if PY_VERSION_HEX >= 0x02020000
1606 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1607 #elif PY_VERSION_HEX >= 0x02000000
1608 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1612 static PyTypeObject pyswigobject_type
;
1613 static int type_init
= 0;
1615 const PyTypeObject tmp
1617 PyObject_HEAD_INIT(NULL
)
1619 (char *)"PySwigObject", /* tp_name */
1620 sizeof(PySwigObject
), /* tp_basicsize */
1621 0, /* tp_itemsize */
1622 (destructor
)PySwigObject_dealloc
, /* tp_dealloc */
1623 (printfunc
)PySwigObject_print
, /* tp_print */
1624 #if PY_VERSION_HEX < 0x02020000
1625 (getattrfunc
)PySwigObject_getattr
, /* tp_getattr */
1627 (getattrfunc
)0, /* tp_getattr */
1629 (setattrfunc
)0, /* tp_setattr */
1630 (cmpfunc
)PySwigObject_compare
, /* tp_compare */
1631 (reprfunc
)PySwigObject_repr
, /* tp_repr */
1632 &PySwigObject_as_number
, /* tp_as_number */
1633 0, /* tp_as_sequence */
1634 0, /* tp_as_mapping */
1635 (hashfunc
)0, /* tp_hash */
1636 (ternaryfunc
)0, /* tp_call */
1637 (reprfunc
)PySwigObject_str
, /* tp_str */
1638 PyObject_GenericGetAttr
, /* tp_getattro */
1639 0, /* tp_setattro */
1640 0, /* tp_as_buffer */
1641 Py_TPFLAGS_DEFAULT
, /* tp_flags */
1642 swigobject_doc
, /* tp_doc */
1643 0, /* tp_traverse */
1645 0, /* tp_richcompare */
1646 0, /* tp_weaklistoffset */
1647 #if PY_VERSION_HEX >= 0x02020000
1649 0, /* tp_iternext */
1650 swigobject_methods
, /* tp_methods */
1655 0, /* tp_descr_get */
1656 0, /* tp_descr_set */
1657 0, /* tp_dictoffset */
1666 0, /* tp_subclasses */
1667 0, /* tp_weaklist */
1669 #if PY_VERSION_HEX >= 0x02030000
1673 0,0,0,0 /* tp_alloc -> tp_next */
1676 pyswigobject_type
= tmp
;
1677 pyswigobject_type
.ob_type
= &PyType_Type
;
1680 return &pyswigobject_type
;
1683 SWIGRUNTIME PyObject
*
1684 PySwigObject_New(void *ptr
, swig_type_info
*ty
, int own
)
1686 PySwigObject
*sobj
= PyObject_NEW(PySwigObject
, PySwigObject_type());
1693 return (PyObject
*)sobj
;
1696 /* -----------------------------------------------------------------------------
1697 * Implements a simple Swig Packed type, and use it instead of string
1698 * ----------------------------------------------------------------------------- */
1708 PySwigPacked_print(PySwigPacked
*v
, FILE *fp
, int SWIGUNUSEDPARM(flags
))
1710 char result
[SWIG_BUFFER_SIZE
];
1711 fputs("<Swig Packed ", fp
);
1712 if (SWIG_PackDataName(result
, v
->pack
, v
->size
, 0, sizeof(result
))) {
1716 fputs(v
->ty
->name
,fp
);
1721 SWIGRUNTIME PyObject
*
1722 PySwigPacked_repr(PySwigPacked
*v
)
1724 char result
[SWIG_BUFFER_SIZE
];
1725 if (SWIG_PackDataName(result
, v
->pack
, v
->size
, 0, sizeof(result
))) {
1726 return PyString_FromFormat("<Swig Packed at %s%s>", result
, v
->ty
->name
);
1728 return PyString_FromFormat("<Swig Packed %s>", v
->ty
->name
);
1732 SWIGRUNTIME PyObject
*
1733 PySwigPacked_str(PySwigPacked
*v
)
1735 char result
[SWIG_BUFFER_SIZE
];
1736 if (SWIG_PackDataName(result
, v
->pack
, v
->size
, 0, sizeof(result
))){
1737 return PyString_FromFormat("%s%s", result
, v
->ty
->name
);
1739 return PyString_FromString(v
->ty
->name
);
1744 PySwigPacked_compare(PySwigPacked
*v
, PySwigPacked
*w
)
1748 int s
= (i
< j
) ? -1 : ((i
> j
) ? 1 : 0);
1749 return s
? s
: strncmp((char *)v
->pack
, (char *)w
->pack
, 2*v
->size
);
1752 SWIGRUNTIME PyTypeObject
* _PySwigPacked_type(void);
1754 SWIGRUNTIME PyTypeObject
*
1755 PySwigPacked_type(void) {
1756 static PyTypeObject
*SWIG_STATIC_POINTER(type
) = _PySwigPacked_type();
1760 SWIGRUNTIMEINLINE
int
1761 PySwigPacked_Check(PyObject
*op
) {
1762 return ((op
)->ob_type
== _PySwigPacked_type())
1763 || (strcmp((op
)->ob_type
->tp_name
,"PySwigPacked") == 0);
1767 PySwigPacked_dealloc(PyObject
*v
)
1769 if (PySwigPacked_Check(v
)) {
1770 PySwigPacked
*sobj
= (PySwigPacked
*) v
;
1776 SWIGRUNTIME PyTypeObject
*
1777 _PySwigPacked_type(void) {
1778 static char swigpacked_doc
[] = "Swig object carries a C/C++ instance pointer";
1779 static PyTypeObject pyswigpacked_type
;
1780 static int type_init
= 0;
1782 const PyTypeObject tmp
1784 PyObject_HEAD_INIT(NULL
)
1786 (char *)"PySwigPacked", /* tp_name */
1787 sizeof(PySwigPacked
), /* tp_basicsize */
1788 0, /* tp_itemsize */
1789 (destructor
)PySwigPacked_dealloc
, /* tp_dealloc */
1790 (printfunc
)PySwigPacked_print
, /* tp_print */
1791 (getattrfunc
)0, /* tp_getattr */
1792 (setattrfunc
)0, /* tp_setattr */
1793 (cmpfunc
)PySwigPacked_compare
, /* tp_compare */
1794 (reprfunc
)PySwigPacked_repr
, /* tp_repr */
1795 0, /* tp_as_number */
1796 0, /* tp_as_sequence */
1797 0, /* tp_as_mapping */
1798 (hashfunc
)0, /* tp_hash */
1799 (ternaryfunc
)0, /* tp_call */
1800 (reprfunc
)PySwigPacked_str
, /* tp_str */
1801 PyObject_GenericGetAttr
, /* tp_getattro */
1802 0, /* tp_setattro */
1803 0, /* tp_as_buffer */
1804 Py_TPFLAGS_DEFAULT
, /* tp_flags */
1805 swigpacked_doc
, /* tp_doc */
1806 0, /* tp_traverse */
1808 0, /* tp_richcompare */
1809 0, /* tp_weaklistoffset */
1810 #if PY_VERSION_HEX >= 0x02020000
1812 0, /* tp_iternext */
1818 0, /* tp_descr_get */
1819 0, /* tp_descr_set */
1820 0, /* tp_dictoffset */
1829 0, /* tp_subclasses */
1830 0, /* tp_weaklist */
1832 #if PY_VERSION_HEX >= 0x02030000
1836 0,0,0,0 /* tp_alloc -> tp_next */
1839 pyswigpacked_type
= tmp
;
1840 pyswigpacked_type
.ob_type
= &PyType_Type
;
1843 return &pyswigpacked_type
;
1846 SWIGRUNTIME PyObject
*
1847 PySwigPacked_New(void *ptr
, size_t size
, swig_type_info
*ty
)
1849 PySwigPacked
*sobj
= PyObject_NEW(PySwigPacked
, PySwigPacked_type());
1851 void *pack
= malloc(size
);
1853 memcpy(pack
, ptr
, size
);
1858 PyObject_DEL((PyObject
*) sobj
);
1862 return (PyObject
*) sobj
;
1865 SWIGRUNTIME swig_type_info
*
1866 PySwigPacked_UnpackData(PyObject
*obj
, void *ptr
, size_t size
)
1868 if (PySwigPacked_Check(obj
)) {
1869 PySwigPacked
*sobj
= (PySwigPacked
*)obj
;
1870 if (sobj
->size
!= size
) return 0;
1871 memcpy(ptr
, sobj
->pack
, size
);
1878 /* -----------------------------------------------------------------------------
1879 * pointers/data manipulation
1880 * ----------------------------------------------------------------------------- */
1882 SWIGRUNTIMEINLINE PyObject
*
1885 return PyString_FromString("this");
1888 SWIGRUNTIME PyObject
*
1891 static PyObject
*SWIG_STATIC_POINTER(swig_this
) = _SWIG_This();
1895 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1897 SWIGRUNTIME PySwigObject
*
1898 SWIG_Python_GetSwigThis(PyObject
*pyobj
)
1900 if (PySwigObject_Check(pyobj
)) {
1901 return (PySwigObject
*) pyobj
;
1904 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1905 if (PyInstance_Check(pyobj
)) {
1906 obj
= _PyInstance_Lookup(pyobj
, SWIG_This());
1908 PyObject
**dictptr
= _PyObject_GetDictPtr(pyobj
);
1909 if (dictptr
!= NULL
) {
1910 PyObject
*dict
= *dictptr
;
1911 obj
= dict
? PyDict_GetItem(dict
, SWIG_This()) : 0;
1913 #ifdef PyWeakref_CheckProxy
1914 if (PyWeakref_CheckProxy(pyobj
)) {
1915 PyObject
*wobj
= PyWeakref_GET_OBJECT(pyobj
);
1916 return wobj
? SWIG_Python_GetSwigThis(wobj
) : 0;
1919 obj
= PyObject_GetAttr(pyobj
,SWIG_This());
1923 if (PyErr_Occurred()) PyErr_Clear();
1929 obj
= PyObject_GetAttr(pyobj
,SWIG_This());
1933 if (PyErr_Occurred()) PyErr_Clear();
1937 if (obj
&& !PySwigObject_Check(obj
)) {
1938 /* a PyObject is called 'this', try to get the 'real this'
1939 PySwigObject from it */
1940 return SWIG_Python_GetSwigThis(obj
);
1942 return (PySwigObject
*)obj
;
1946 /* Acquire a pointer value */
1949 SWIG_Python_AcquirePtr(PyObject
*obj
, int own
) {
1951 PySwigObject
*sobj
= SWIG_Python_GetSwigThis(obj
);
1953 int oldown
= sobj
->own
;
1961 /* Convert a pointer value */
1964 SWIG_Python_ConvertPtrAndOwn(PyObject
*obj
, void **ptr
, swig_type_info
*ty
, int flags
, int *own
) {
1965 if (!obj
) return SWIG_ERROR
;
1966 if (obj
== Py_None
) {
1970 PySwigObject
*sobj
= SWIG_Python_GetSwigThis(obj
);
1972 void *vptr
= sobj
->ptr
;
1974 swig_type_info
*to
= sobj
->ty
;
1976 /* no type cast needed */
1977 if (ptr
) *ptr
= vptr
;
1980 swig_cast_info
*tc
= SWIG_TypeCheck(to
->name
,ty
);
1982 sobj
= (PySwigObject
*)sobj
->next
;
1984 if (ptr
) *ptr
= SWIG_TypeCast(tc
,vptr
);
1989 if (ptr
) *ptr
= vptr
;
1994 if (own
) *own
= sobj
->own
;
1995 if (flags
& SWIG_POINTER_DISOWN
) {
2000 int res
= SWIG_ERROR
;
2001 if (flags
& SWIG_POINTER_IMPLICIT_CONV
) {
2002 PySwigClientData
*data
= ty
? (PySwigClientData
*) ty
->clientdata
: 0;
2003 if (data
&& !data
->implicitconv
) {
2004 PyObject
*klass
= data
->klass
;
2007 data
->implicitconv
= 1; /* avoid recursion and call 'explicit' constructors*/
2008 impconv
= SWIG_Python_CallFunctor(klass
, obj
);
2009 data
->implicitconv
= 0;
2010 if (PyErr_Occurred()) {
2015 PySwigObject
*iobj
= SWIG_Python_GetSwigThis(impconv
);
2018 res
= SWIG_Python_ConvertPtrAndOwn((PyObject
*)iobj
, &vptr
, ty
, 0, 0);
2019 if (SWIG_IsOK(res
)) {
2022 /* transfer the ownership to 'ptr' */
2024 res
= SWIG_AddCast(res
);
2025 res
= SWIG_AddNewMask(res
);
2027 res
= SWIG_AddCast(res
);
2041 /* Convert a function ptr value */
2044 SWIG_Python_ConvertFunctionPtr(PyObject
*obj
, void **ptr
, swig_type_info
*ty
) {
2045 if (!PyCFunction_Check(obj
)) {
2046 return SWIG_ConvertPtr(obj
, ptr
, ty
, 0);
2050 /* here we get the method pointer for callbacks */
2051 char *doc
= (((PyCFunctionObject
*)obj
) -> m_ml
-> ml_doc
);
2052 const char *desc
= doc
? strstr(doc
, "swig_ptr: ") : 0;
2054 desc
= ty
? SWIG_UnpackVoidPtr(desc
+ 10, &vptr
, ty
->name
) : 0;
2055 if (!desc
) return SWIG_ERROR
;
2058 swig_cast_info
*tc
= SWIG_TypeCheck(desc
,ty
);
2059 if (!tc
) return SWIG_ERROR
;
2060 *ptr
= SWIG_TypeCast(tc
,vptr
);
2068 /* Convert a packed value value */
2071 SWIG_Python_ConvertPacked(PyObject
*obj
, void *ptr
, size_t sz
, swig_type_info
*ty
) {
2072 swig_type_info
*to
= PySwigPacked_UnpackData(obj
, ptr
, sz
);
2073 if (!to
) return SWIG_ERROR
;
2076 /* check type cast? */
2077 swig_cast_info
*tc
= SWIG_TypeCheck(to
->name
,ty
);
2078 if (!tc
) return SWIG_ERROR
;
2084 /* -----------------------------------------------------------------------------
2085 * Create a new pointer object
2086 * ----------------------------------------------------------------------------- */
2089 Create a new instance object, whitout calling __init__, and set the
2093 SWIGRUNTIME PyObject
*
2094 SWIG_Python_NewShadowInstance(PySwigClientData
*data
, PyObject
*swig_this
)
2096 #if (PY_VERSION_HEX >= 0x02020000)
2098 PyObject
*newraw
= data
->newraw
;
2100 inst
= PyObject_Call(newraw
, data
->newargs
, NULL
);
2102 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2103 PyObject
**dictptr
= _PyObject_GetDictPtr(inst
);
2104 if (dictptr
!= NULL
) {
2105 PyObject
*dict
= *dictptr
;
2107 dict
= PyDict_New();
2109 PyDict_SetItem(dict
, SWIG_This(), swig_this
);
2113 PyObject
*key
= SWIG_This();
2114 PyObject_SetAttr(inst
, key
, swig_this
);
2118 PyObject
*dict
= PyDict_New();
2119 PyDict_SetItem(dict
, SWIG_This(), swig_this
);
2120 inst
= PyInstance_NewRaw(data
->newargs
, dict
);
2125 #if (PY_VERSION_HEX >= 0x02010000)
2127 PyObject
*dict
= PyDict_New();
2128 PyDict_SetItem(dict
, SWIG_This(), swig_this
);
2129 inst
= PyInstance_NewRaw(data
->newargs
, dict
);
2131 return (PyObject
*) inst
;
2133 PyInstanceObject
*inst
= PyObject_NEW(PyInstanceObject
, &PyInstance_Type
);
2137 inst
->in_class
= (PyClassObject
*)data
->newargs
;
2138 Py_INCREF(inst
->in_class
);
2139 inst
->in_dict
= PyDict_New();
2140 if (inst
->in_dict
== NULL
) {
2144 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2145 inst
->in_weakreflist
= NULL
;
2147 #ifdef Py_TPFLAGS_GC
2148 PyObject_GC_Init(inst
);
2150 PyDict_SetItem(inst
->in_dict
, SWIG_This(), swig_this
);
2151 return (PyObject
*) inst
;
2157 SWIG_Python_SetSwigThis(PyObject
*inst
, PyObject
*swig_this
)
2160 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2161 PyObject
**dictptr
= _PyObject_GetDictPtr(inst
);
2162 if (dictptr
!= NULL
) {
2165 dict
= PyDict_New();
2168 PyDict_SetItem(dict
, SWIG_This(), swig_this
);
2172 dict
= PyObject_GetAttrString(inst
, "__dict__");
2173 PyDict_SetItem(dict
, SWIG_This(), swig_this
);
2178 SWIGINTERN PyObject
*
2179 SWIG_Python_InitShadowInstance(PyObject
*args
) {
2181 if (!SWIG_Python_UnpackTuple(args
,(char*)"swiginit", 2, 2, obj
)) {
2184 PySwigObject
*sthis
= SWIG_Python_GetSwigThis(obj
[0]);
2186 PySwigObject_append((PyObject
*) sthis
, obj
[1]);
2188 SWIG_Python_SetSwigThis(obj
[0], obj
[1]);
2190 return SWIG_Py_Void();
2194 /* Create a new pointer object */
2196 SWIGRUNTIME PyObject
*
2197 SWIG_Python_NewPointerObj(void *ptr
, swig_type_info
*type
, int flags
) {
2199 return SWIG_Py_Void();
2201 int own
= (flags
& SWIG_POINTER_OWN
) ? SWIG_POINTER_OWN
: 0;
2202 PyObject
*robj
= PySwigObject_New(ptr
, type
, own
);
2203 PySwigClientData
*clientdata
= type
? (PySwigClientData
*)(type
->clientdata
) : 0;
2204 if (clientdata
&& !(flags
& SWIG_POINTER_NOSHADOW
)) {
2205 PyObject
*inst
= SWIG_Python_NewShadowInstance(clientdata
, robj
);
2215 /* Create a new packed object */
2217 SWIGRUNTIMEINLINE PyObject
*
2218 SWIG_Python_NewPackedObj(void *ptr
, size_t sz
, swig_type_info
*type
) {
2219 return ptr
? PySwigPacked_New((void *) ptr
, sz
, type
) : SWIG_Py_Void();
2222 /* -----------------------------------------------------------------------------*
2224 * -----------------------------------------------------------------------------*/
2226 #ifdef SWIG_LINK_RUNTIME
2227 void *SWIG_ReturnGlobalTypeList(void *);
2230 SWIGRUNTIME swig_module_info
*
2231 SWIG_Python_GetModule(void) {
2232 static void *type_pointer
= (void *)0;
2233 /* first check if module already created */
2234 if (!type_pointer
) {
2235 #ifdef SWIG_LINK_RUNTIME
2236 type_pointer
= SWIG_ReturnGlobalTypeList((void *)0);
2238 type_pointer
= PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION
,
2239 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME
);
2240 if (PyErr_Occurred()) {
2242 type_pointer
= (void *)0;
2246 return (swig_module_info
*) type_pointer
;
2249 #if PY_MAJOR_VERSION < 2
2250 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2251 is copied out of Python/modsupport.c in python version 2.3.4 */
2253 PyModule_AddObject(PyObject
*m
, char *name
, PyObject
*o
)
2256 if (!PyModule_Check(m
)) {
2257 PyErr_SetString(PyExc_TypeError
,
2258 "PyModule_AddObject() needs module as first arg");
2262 PyErr_SetString(PyExc_TypeError
,
2263 "PyModule_AddObject() needs non-NULL value");
2267 dict
= PyModule_GetDict(m
);
2269 /* Internal error -- modules must have a dict! */
2270 PyErr_Format(PyExc_SystemError
, "module '%s' has no __dict__",
2271 PyModule_GetName(m
));
2274 if (PyDict_SetItemString(dict
, name
, o
))
2282 SWIG_Python_DestroyModule(void *vptr
)
2284 swig_module_info
*swig_module
= (swig_module_info
*) vptr
;
2285 swig_type_info
**types
= swig_module
->types
;
2287 for (i
=0; i
< swig_module
->size
; ++i
) {
2288 swig_type_info
*ty
= types
[i
];
2290 PySwigClientData
*data
= (PySwigClientData
*) ty
->clientdata
;
2291 if (data
) PySwigClientData_Del(data
);
2294 Py_DECREF(SWIG_This());
2298 SWIG_Python_SetModule(swig_module_info
*swig_module
) {
2299 static PyMethodDef swig_empty_runtime_method_table
[] = { {NULL
, NULL
, 0, NULL
} };/* Sentinel */
2301 PyObject
*module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION
,
2302 swig_empty_runtime_method_table
);
2303 PyObject
*pointer
= PyCObject_FromVoidPtr((void *) swig_module
, SWIG_Python_DestroyModule
);
2304 if (pointer
&& module) {
2305 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME
, pointer
);
2307 Py_XDECREF(pointer
);
2311 /* The python cached type query */
2312 SWIGRUNTIME PyObject
*
2313 SWIG_Python_TypeCache() {
2314 static PyObject
*SWIG_STATIC_POINTER(cache
) = PyDict_New();
2318 SWIGRUNTIME swig_type_info
*
2319 SWIG_Python_TypeQuery(const char *type
)
2321 PyObject
*cache
= SWIG_Python_TypeCache();
2322 PyObject
*key
= PyString_FromString(type
);
2323 PyObject
*obj
= PyDict_GetItem(cache
, key
);
2324 swig_type_info
*descriptor
;
2326 descriptor
= (swig_type_info
*) PyCObject_AsVoidPtr(obj
);
2328 swig_module_info
*swig_module
= SWIG_Python_GetModule();
2329 descriptor
= SWIG_TypeQueryModule(swig_module
, swig_module
, type
);
2331 obj
= PyCObject_FromVoidPtr(descriptor
, NULL
);
2332 PyDict_SetItem(cache
, key
, obj
);
2341 For backward compatibility only
2343 #define SWIG_POINTER_EXCEPTION 0
2344 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2345 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2348 SWIG_Python_AddErrMesg(const char* mesg
, int infront
)
2350 if (PyErr_Occurred()) {
2352 PyObject
*value
= 0;
2353 PyObject
*traceback
= 0;
2354 PyErr_Fetch(&type
, &value
, &traceback
);
2356 PyObject
*old_str
= PyObject_Str(value
);
2360 PyErr_Format(type
, "%s %s", mesg
, PyString_AsString(old_str
));
2362 PyErr_Format(type
, "%s %s", PyString_AsString(old_str
), mesg
);
2373 SWIG_Python_ArgFail(int argnum
)
2375 if (PyErr_Occurred()) {
2376 /* add information about failing argument */
2378 PyOS_snprintf(mesg
, sizeof(mesg
), "argument number %d:", argnum
);
2379 return SWIG_Python_AddErrMesg(mesg
, 1);
2385 SWIGRUNTIMEINLINE
const char *
2386 PySwigObject_GetDesc(PyObject
*self
)
2388 PySwigObject
*v
= (PySwigObject
*)self
;
2389 swig_type_info
*ty
= v
? v
->ty
: 0;
2390 return ty
? ty
->str
: (char*)"";
2394 SWIG_Python_TypeError(const char *type
, PyObject
*obj
)
2397 #if defined(SWIG_COBJECT_TYPES)
2398 if (obj
&& PySwigObject_Check(obj
)) {
2399 const char *otype
= (const char *) PySwigObject_GetDesc(obj
);
2401 PyErr_Format(PyExc_TypeError
, "a '%s' is expected, 'PySwigObject(%s)' is received",
2408 const char *otype
= (obj
? obj
->ob_type
->tp_name
: 0);
2410 PyObject
*str
= PyObject_Str(obj
);
2411 const char *cstr
= str
? PyString_AsString(str
) : 0;
2413 PyErr_Format(PyExc_TypeError
, "a '%s' is expected, '%s(%s)' is received",
2416 PyErr_Format(PyExc_TypeError
, "a '%s' is expected, '%s' is received",
2423 PyErr_Format(PyExc_TypeError
, "a '%s' is expected", type
);
2425 PyErr_Format(PyExc_TypeError
, "unexpected type is received");
2430 /* Convert a pointer value, signal an exception on a type mismatch */
2432 SWIG_Python_MustGetPtr(PyObject
*obj
, swig_type_info
*ty
, int argnum
, int flags
) {
2434 if (SWIG_Python_ConvertPtr(obj
, &result
, ty
, flags
) == -1) {
2436 if (flags
& SWIG_POINTER_EXCEPTION
) {
2437 SWIG_Python_TypeError(SWIG_TypePrettyName(ty
), obj
);
2438 SWIG_Python_ArgFail(argnum
);
2454 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2456 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2460 /* -------- TYPES TABLE (BEGIN) -------- */
2462 #define SWIGTYPE_p_char swig_types[0]
2463 #define SWIGTYPE_p_double swig_types[1]
2464 #define SWIGTYPE_p_form_ops_t swig_types[2]
2465 #define SWIGTYPE_p_int swig_types[3]
2466 #define SWIGTYPE_p_unsigned_char swig_types[4]
2467 #define SWIGTYPE_p_unsigned_int swig_types[5]
2468 #define SWIGTYPE_p_unsigned_long swig_types[6]
2469 #define SWIGTYPE_p_wxANIHandler swig_types[7]
2470 #define SWIGTYPE_p_wxAcceleratorTable swig_types[8]
2471 #define SWIGTYPE_p_wxActivateEvent swig_types[9]
2472 #define SWIGTYPE_p_wxBMPHandler swig_types[10]
2473 #define SWIGTYPE_p_wxBitmap swig_types[11]
2474 #define SWIGTYPE_p_wxBoxSizer swig_types[12]
2475 #define SWIGTYPE_p_wxBrush swig_types[13]
2476 #define SWIGTYPE_p_wxBrushList swig_types[14]
2477 #define SWIGTYPE_p_wxBufferedDC swig_types[15]
2478 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[16]
2479 #define SWIGTYPE_p_wxCURHandler swig_types[17]
2480 #define SWIGTYPE_p_wxChildFocusEvent swig_types[18]
2481 #define SWIGTYPE_p_wxClientDC swig_types[19]
2482 #define SWIGTYPE_p_wxCloseEvent swig_types[20]
2483 #define SWIGTYPE_p_wxColour swig_types[21]
2484 #define SWIGTYPE_p_wxColourDatabase swig_types[22]
2485 #define SWIGTYPE_p_wxCommandEvent swig_types[23]
2486 #define SWIGTYPE_p_wxContextMenuEvent swig_types[24]
2487 #define SWIGTYPE_p_wxControl swig_types[25]
2488 #define SWIGTYPE_p_wxControlWithItems swig_types[26]
2489 #define SWIGTYPE_p_wxCursor swig_types[27]
2490 #define SWIGTYPE_p_wxDC swig_types[28]
2491 #define SWIGTYPE_p_wxDash swig_types[29]
2492 #define SWIGTYPE_p_wxDateEvent swig_types[30]
2493 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[31]
2494 #define SWIGTYPE_p_wxDropFilesEvent swig_types[32]
2495 #define SWIGTYPE_p_wxDuplexMode swig_types[33]
2496 #define SWIGTYPE_p_wxEffects swig_types[34]
2497 #define SWIGTYPE_p_wxEncodingConverter swig_types[35]
2498 #define SWIGTYPE_p_wxEraseEvent swig_types[36]
2499 #define SWIGTYPE_p_wxEvent swig_types[37]
2500 #define SWIGTYPE_p_wxEvtHandler swig_types[38]
2501 #define SWIGTYPE_p_wxFSFile swig_types[39]
2502 #define SWIGTYPE_p_wxFileSystem swig_types[40]
2503 #define SWIGTYPE_p_wxFlexGridSizer swig_types[41]
2504 #define SWIGTYPE_p_wxFocusEvent swig_types[42]
2505 #define SWIGTYPE_p_wxFont swig_types[43]
2506 #define SWIGTYPE_p_wxFontList swig_types[44]
2507 #define SWIGTYPE_p_wxFontMapper swig_types[45]
2508 #define SWIGTYPE_p_wxGBSizerItem swig_types[46]
2509 #define SWIGTYPE_p_wxGDIObjListBase swig_types[47]
2510 #define SWIGTYPE_p_wxGDIObject swig_types[48]
2511 #define SWIGTYPE_p_wxGIFHandler swig_types[49]
2512 #define SWIGTYPE_p_wxGridBagSizer swig_types[50]
2513 #define SWIGTYPE_p_wxGridSizer swig_types[51]
2514 #define SWIGTYPE_p_wxICOHandler swig_types[52]
2515 #define SWIGTYPE_p_wxIcon swig_types[53]
2516 #define SWIGTYPE_p_wxIconBundle swig_types[54]
2517 #define SWIGTYPE_p_wxIconLocation swig_types[55]
2518 #define SWIGTYPE_p_wxIconizeEvent swig_types[56]
2519 #define SWIGTYPE_p_wxIdleEvent swig_types[57]
2520 #define SWIGTYPE_p_wxImage swig_types[58]
2521 #define SWIGTYPE_p_wxImageHandler swig_types[59]
2522 #define SWIGTYPE_p_wxImageList swig_types[60]
2523 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[61]
2524 #define SWIGTYPE_p_wxInitDialogEvent swig_types[62]
2525 #define SWIGTYPE_p_wxJPEGHandler swig_types[63]
2526 #define SWIGTYPE_p_wxKeyEvent swig_types[64]
2527 #define SWIGTYPE_p_wxLanguageInfo swig_types[65]
2528 #define SWIGTYPE_p_wxLayoutConstraints swig_types[66]
2529 #define SWIGTYPE_p_wxLocale swig_types[67]
2530 #define SWIGTYPE_p_wxMask swig_types[68]
2531 #define SWIGTYPE_p_wxMaximizeEvent swig_types[69]
2532 #define SWIGTYPE_p_wxMemoryDC swig_types[70]
2533 #define SWIGTYPE_p_wxMenu swig_types[71]
2534 #define SWIGTYPE_p_wxMenuBar swig_types[72]
2535 #define SWIGTYPE_p_wxMenuEvent swig_types[73]
2536 #define SWIGTYPE_p_wxMenuItem swig_types[74]
2537 #define SWIGTYPE_p_wxMetaFile swig_types[75]
2538 #define SWIGTYPE_p_wxMetaFileDC swig_types[76]
2539 #define SWIGTYPE_p_wxMirrorDC swig_types[77]
2540 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[78]
2541 #define SWIGTYPE_p_wxMouseEvent swig_types[79]
2542 #define SWIGTYPE_p_wxMoveEvent swig_types[80]
2543 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[81]
2544 #define SWIGTYPE_p_wxNativeFontInfo swig_types[82]
2545 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[83]
2546 #define SWIGTYPE_p_wxNcPaintEvent swig_types[84]
2547 #define SWIGTYPE_p_wxNotifyEvent swig_types[85]
2548 #define SWIGTYPE_p_wxObject swig_types[86]
2549 #define SWIGTYPE_p_wxPCXHandler swig_types[87]
2550 #define SWIGTYPE_p_wxPNGHandler swig_types[88]
2551 #define SWIGTYPE_p_wxPNMHandler swig_types[89]
2552 #define SWIGTYPE_p_wxPaintDC swig_types[90]
2553 #define SWIGTYPE_p_wxPaintEvent swig_types[91]
2554 #define SWIGTYPE_p_wxPalette swig_types[92]
2555 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[93]
2556 #define SWIGTYPE_p_wxPaperSize swig_types[94]
2557 #define SWIGTYPE_p_wxPen swig_types[95]
2558 #define SWIGTYPE_p_wxPenList swig_types[96]
2559 #define SWIGTYPE_p_wxPoint swig_types[97]
2560 #define SWIGTYPE_p_wxPostScriptDC swig_types[98]
2561 #define SWIGTYPE_p_wxPrintData swig_types[99]
2562 #define SWIGTYPE_p_wxPrinterDC swig_types[100]
2563 #define SWIGTYPE_p_wxPyApp swig_types[101]
2564 #define SWIGTYPE_p_wxPyCommandEvent swig_types[102]
2565 #define SWIGTYPE_p_wxPyEvent swig_types[103]
2566 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[104]
2567 #define SWIGTYPE_p_wxPyImageHandler swig_types[105]
2568 #define SWIGTYPE_p_wxPySizer swig_types[106]
2569 #define SWIGTYPE_p_wxPyValidator swig_types[107]
2570 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[108]
2571 #define SWIGTYPE_p_wxRect swig_types[109]
2572 #define SWIGTYPE_p_wxRegion swig_types[110]
2573 #define SWIGTYPE_p_wxRegionIterator swig_types[111]
2574 #define SWIGTYPE_p_wxRendererNative swig_types[112]
2575 #define SWIGTYPE_p_wxRendererVersion swig_types[113]
2576 #define SWIGTYPE_p_wxScreenDC swig_types[114]
2577 #define SWIGTYPE_p_wxScrollEvent swig_types[115]
2578 #define SWIGTYPE_p_wxScrollWinEvent swig_types[116]
2579 #define SWIGTYPE_p_wxSetCursorEvent swig_types[117]
2580 #define SWIGTYPE_p_wxShowEvent swig_types[118]
2581 #define SWIGTYPE_p_wxSize swig_types[119]
2582 #define SWIGTYPE_p_wxSizeEvent swig_types[120]
2583 #define SWIGTYPE_p_wxSizer swig_types[121]
2584 #define SWIGTYPE_p_wxSizerItem swig_types[122]
2585 #define SWIGTYPE_p_wxSplitterRenderParams swig_types[123]
2586 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[124]
2587 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[125]
2588 #define SWIGTYPE_p_wxStockGDI swig_types[126]
2589 #define SWIGTYPE_p_wxString swig_types[127]
2590 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[128]
2591 #define SWIGTYPE_p_wxTIFFHandler swig_types[129]
2592 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[130]
2593 #define SWIGTYPE_p_wxValidator swig_types[131]
2594 #define SWIGTYPE_p_wxWindow swig_types[132]
2595 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[133]
2596 #define SWIGTYPE_p_wxWindowDC swig_types[134]
2597 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[135]
2598 #define SWIGTYPE_p_wxXPMHandler swig_types[136]
2599 static swig_type_info
*swig_types
[138];
2600 static swig_module_info swig_module
= {swig_types
, 137, 0, 0, 0, 0};
2601 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2602 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2604 /* -------- TYPES TABLE (END) -------- */
2606 #if (PY_VERSION_HEX <= 0x02000000)
2607 # if !defined(SWIG_PYTHON_CLASSIC)
2608 # error "This python version requires to use swig with the '-classic' option"
2611 #if (PY_VERSION_HEX <= 0x02020000)
2612 # error "This python version requires to use swig with the '-nomodern' option"
2614 #if (PY_VERSION_HEX <= 0x02020000)
2615 # error "This python version requires to use swig with the '-nomodernargs' option"
2618 # error "This python version requires to use swig with the '-nofastunpack' option"
2621 /*-----------------------------------------------
2622 @(target):= _gdi_.so
2623 ------------------------------------------------*/
2624 #define SWIG_init init_gdi_
2626 #define SWIG_name "_gdi_"
2628 #define SWIGVERSION 0x010329
2631 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2632 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2635 #include <stdexcept>
2639 class PyObject_ptr
{
2644 PyObject_ptr() :_obj(0)
2648 PyObject_ptr(const PyObject_ptr
& item
) : _obj(item
._obj
)
2653 PyObject_ptr(PyObject
*obj
, bool initial_ref
= true) :_obj(obj
)
2655 if (initial_ref
) Py_XINCREF(_obj
);
2658 PyObject_ptr
& operator=(const PyObject_ptr
& item
)
2660 Py_XINCREF(item
._obj
);
2671 operator PyObject
*() const
2676 PyObject
*operator->() const
2685 struct PyObject_var
: PyObject_ptr
{
2686 PyObject_var(PyObject
* obj
= 0) : PyObject_ptr(obj
, false) { }
2688 PyObject_var
& operator = (PyObject
* obj
)
2698 #include "wx/wxPython/wxPython.h"
2699 #include "wx/wxPython/pyclasses.h"
2702 static const wxString
wxPyEmptyString(wxEmptyString
);
2706 # define LLONG_MIN LONG_LONG_MIN
2709 # define LLONG_MAX LONG_LONG_MAX
2712 # define ULLONG_MAX ULONG_LONG_MAX
2717 SWIG_AsVal_long (PyObject
* obj
, long* val
)
2719 if (PyNumber_Check(obj
)) {
2720 if (val
) *val
= PyInt_AsLong(obj
);
2723 return SWIG_TypeError
;
2728 SWIG_AsVal_unsigned_SS_long (PyObject
* obj
, unsigned long* val
)
2731 if (SWIG_AsVal_long(obj
, &v
) && v
< 0) {
2732 return SWIG_TypeError
;
2735 *val
= (unsigned long)v
;
2741 SWIG_AsVal_unsigned_SS_char (PyObject
* obj
, unsigned char *val
)
2744 int res
= SWIG_AsVal_unsigned_SS_long (obj
, &v
);
2745 if (SWIG_IsOK(res
)) {
2746 if ((v
> UCHAR_MAX
)) {
2747 return SWIG_OverflowError
;
2749 if (val
) *val
= static_cast< unsigned char >(v
);
2756 #define SWIG_From_long PyInt_FromLong
2759 SWIGINTERNINLINE PyObject
*
2760 SWIG_From_unsigned_SS_long (unsigned long value
)
2762 return (value
> LONG_MAX
) ?
2763 PyLong_FromUnsignedLong(value
) : PyInt_FromLong(static_cast< long >(value
));
2767 SWIGINTERNINLINE PyObject
*
2768 SWIG_From_unsigned_SS_char (unsigned char value
)
2770 return SWIG_From_unsigned_SS_long (value
);
2773 SWIGINTERN
bool wxColour___eq__(wxColour
*self
,PyObject
*other
){
2774 wxColour temp
, *obj
= &temp
;
2775 if ( other
== Py_None
) return false;
2776 if ( ! wxColour_helper(other
, &obj
) ) {
2780 return self
->operator==(*obj
);
2782 SWIGINTERN
bool wxColour___ne__(wxColour
*self
,PyObject
*other
){
2783 wxColour temp
, *obj
= &temp
;
2784 if ( other
== Py_None
) return true;
2785 if ( ! wxColour_helper(other
, &obj
)) {
2789 return self
->operator!=(*obj
);
2791 SWIGINTERN PyObject
*wxColour_Get(wxColour
*self
){
2792 PyObject
* rv
= PyTuple_New(3);
2798 green
= self
->Green();
2799 blue
= self
->Blue();
2801 PyTuple_SetItem(rv
, 0, PyInt_FromLong(red
));
2802 PyTuple_SetItem(rv
, 1, PyInt_FromLong(green
));
2803 PyTuple_SetItem(rv
, 2, PyInt_FromLong(blue
));
2806 SWIGINTERN
unsigned long wxColour_GetRGB(wxColour
*self
){
2807 return self
->Red() | (self
->Green() << 8) | (self
->Blue() << 16);
2811 SWIG_AsVal_int (PyObject
* obj
, int *val
)
2814 int res
= SWIG_AsVal_long (obj
, &v
);
2815 if (SWIG_IsOK(res
)) {
2816 if ((v
< INT_MIN
|| v
> INT_MAX
)) {
2817 return SWIG_OverflowError
;
2819 if (val
) *val
= static_cast< int >(v
);
2826 SWIGINTERNINLINE PyObject
*
2827 SWIG_From_int (int value
)
2829 return SWIG_From_long (value
);
2832 SWIGINTERN PyObject
*wxPen_GetDashes(wxPen
*self
){
2834 int count
= self
->GetDashes(&dashes
);
2835 wxPyBlock_t blocked
= wxPyBeginBlockThreads();
2836 PyObject
* retval
= PyList_New(0);
2837 for (int x
=0; x
<count
; x
++) {
2838 PyObject
* pyint
= PyInt_FromLong(dashes
[x
]);
2839 PyList_Append(retval
, pyint
);
2842 wxPyEndBlockThreads(blocked
);
2845 SWIGINTERN
void wxPen__SetDashes(wxPen
*self
,PyObject
*_self
,PyObject
*pyDashes
){
2846 wxPyBlock_t blocked
= wxPyBeginBlockThreads();
2847 int size
= PyList_Size(pyDashes
);
2848 wxDash
* dashes
= (wxDash
*)byte_LIST_helper(pyDashes
);
2850 // black magic warning! The array of wxDashes needs to exist as
2851 // long as the pen does because wxPen does not copy the array. So
2852 // stick a copy in a Python string object and attach it to _self,
2853 // and then call SetDashes with a pointer to that array. Then
2854 // when the Python pen object is destroyed the array will be
2856 PyObject
* strDashes
= PyString_FromStringAndSize((char*)dashes
, size
*sizeof(wxDash
));
2857 PyObject_SetAttrString(_self
, "_dashes", strDashes
);
2859 self
->SetDashes(size
, (wxDash
*)PyString_AS_STRING(strDashes
));
2861 Py_DECREF(strDashes
);
2862 wxPyEndBlockThreads(blocked
);
2864 SWIGINTERN
bool wxPen___eq__(wxPen
*self
,wxPen
const *other
){ return other
? (*self
== *other
) : false; }
2865 SWIGINTERN
bool wxPen___ne__(wxPen
*self
,wxPen
const *other
){ return other
? (*self
!= *other
) : true; }
2867 #include <wx/image.h>
2869 static char** ConvertListOfStrings(PyObject
* listOfStrings
) {
2870 char** cArray
= NULL
;
2873 if (!PyList_Check(listOfStrings
)) {
2874 PyErr_SetString(PyExc_TypeError
, "Expected a list of strings.");
2877 count
= PyList_Size(listOfStrings
);
2878 cArray
= new char*[count
];
2880 for(int x
=0; x
<count
; x
++) {
2881 // TODO: Need some validation and error checking here
2882 cArray
[x
] = PyString_AsString(PyList_GET_ITEM(listOfStrings
, x
));
2888 SWIGINTERN wxBitmap
*new_wxBitmap(PyObject
*listOfStrings
){
2889 char** cArray
= NULL
;
2892 cArray
= ConvertListOfStrings(listOfStrings
);
2895 bmp
= new wxBitmap(cArray
);
2899 SWIGINTERN wxBitmap
*new_wxBitmap(PyObject
*bits
,int width
,int height
,int depth
=1){
2902 PyString_AsStringAndSize(bits
, &buf
, &length
);
2903 return new wxBitmap(buf
, width
, height
, depth
);
2905 SWIGINTERN
void wxBitmap_SetHandle(wxBitmap
*self
,long handle
){ self
->SetHandle((WXHANDLE
)handle
); }
2906 SWIGINTERN wxSize
wxBitmap_GetSize(wxBitmap
*self
){
2907 wxSize
size(self
->GetWidth(), self
->GetHeight());
2910 SWIGINTERN
void wxBitmap_SetMaskColour(wxBitmap
*self
,wxColour
const &colour
){
2911 wxMask
*mask
= new wxMask(*self
, colour
);
2912 self
->SetMask(mask
);
2914 SWIGINTERN
void wxBitmap_SetSize(wxBitmap
*self
,wxSize
const &size
){
2915 self
->SetWidth(size
.x
);
2916 self
->SetHeight(size
.y
);
2918 SWIGINTERN
bool wxBitmap___eq__(wxBitmap
*self
,wxBitmap
const *other
){ return other
? (*self
== *other
) : false; }
2919 SWIGINTERN
bool wxBitmap___ne__(wxBitmap
*self
,wxBitmap
const *other
){ return other
? (*self
!= *other
) : true; }
2920 SWIGINTERN wxMask
*new_wxMask(wxBitmap
const &bitmap
,wxColour
const &colour
=wxNullColour
){
2922 return new wxMask(bitmap
, *wxBLACK
);
2924 return new wxMask(bitmap
, colour
);
2927 #include <wx/iconbndl.h>
2929 SWIGINTERN wxIcon
*new_wxIcon(wxBitmap
const &bmp
){
2930 wxIcon
* icon
= new wxIcon();
2931 icon
->CopyFromBitmap(bmp
);
2934 SWIGINTERN wxIcon
*new_wxIcon(PyObject
*listOfStrings
){
2935 char** cArray
= NULL
;
2938 cArray
= ConvertListOfStrings(listOfStrings
);
2941 icon
= new wxIcon(cArray
);
2945 SWIGINTERN
void wxIcon_SetHandle(wxIcon
*self
,long handle
){ self
->SetHandle((WXHANDLE
)handle
); }
2946 SWIGINTERN wxIconLocation
*new_wxIconLocation(wxString
const *filename
=&wxPyEmptyString
,int num
=0){
2948 return new wxIconLocation(*filename
, num
);
2953 SWIGINTERN
void wxIconLocation_SetIndex(wxIconLocation
*self
,int num
){
2955 self
->SetIndex(num
);
2960 SWIGINTERN
int wxIconLocation_GetIndex(wxIconLocation
*self
){
2962 return self
->GetIndex();
2967 SWIGINTERN wxCursor
*new_wxCursor(wxString
const &cursorName
,long type
,int hotSpotX
=0,int hotSpotY
=0){
2969 wxImage
img(cursorName
, type
);
2970 img
.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X
, hotSpotX
);
2971 img
.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y
, hotSpotY
);
2972 return new wxCursor(img
);
2974 return new wxCursor(cursorName
, type
, hotSpotX
, hotSpotY
);
2977 SWIGINTERN
void wxCursor_SetHandle(wxCursor
*self
,long handle
){ self
->SetHandle((WXHANDLE
)handle
); }
2980 SWIGINTERN
void wxRegionIterator_Next(wxRegionIterator
*self
){
2983 SWIGINTERN
bool wxRegionIterator___nonzero__(wxRegionIterator
*self
){
2984 return self
->operator bool();
2987 #include <wx/fontutil.h>
2988 #include <wx/fontmap.h>
2989 #include <wx/fontenum.h>
2993 SWIG_AsVal_bool (PyObject
*obj
, bool *val
)
2995 if (obj
== Py_True
) {
2996 if (val
) *val
= true;
2998 } else if (obj
== Py_False
) {
2999 if (val
) *val
= false;
3003 int res
= SWIG_AddCast(SWIG_AsVal_long (obj
, val
? &v
: 0));
3004 if (SWIG_IsOK(res
) && val
) *val
= v
? true : false;
3009 SWIGINTERN wxString
wxNativeFontInfo___str__(wxNativeFontInfo
*self
){
3010 return self
->ToString();
3013 wxNativeEncodingInfo
* wxGetNativeFontEncoding(wxFontEncoding encoding
)
3014 { wxPyRaiseNotImplemented(); return NULL
; }
3016 bool wxTestFontEncoding(const wxNativeEncodingInfo
& info
)
3017 { wxPyRaiseNotImplemented(); return false; }
3020 SWIGINTERNINLINE PyObject
*
3021 SWIG_From_size_t (size_t value
)
3023 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value
));
3027 SWIGINTERNINLINE
int
3028 SWIG_AsVal_size_t (PyObject
* obj
, size_t *val
)
3031 int res
= SWIG_AsVal_unsigned_SS_long (obj
, val
? &v
: 0);
3032 if (SWIG_IsOK(res
) && val
) *val
= static_cast< size_t >(v
);
3036 SWIGINTERN PyObject
*wxFontMapper_GetAltForEncoding(wxFontMapper
*self
,wxFontEncoding encoding
,wxString
const &facename
=wxPyEmptyString
,bool interactive
=true){
3037 wxFontEncoding alt_enc
;
3038 if (self
->GetAltForEncoding(encoding
, &alt_enc
, facename
, interactive
))
3039 return PyInt_FromLong(alt_enc
);
3045 SWIGINTERN wxFont
*new_wxFont(wxString
const &info
){
3046 wxNativeFontInfo nfi
;
3047 nfi
.FromString(info
);
3048 return new wxFont(nfi
);
3050 SWIGINTERN wxFont
*new_wxFont(int pointSize
,wxFontFamily family
,int flags
=wxFONTFLAG_DEFAULT
,wxString
const &face
=wxPyEmptyString
,wxFontEncoding encoding
=wxFONTENCODING_DEFAULT
){
3051 return wxFont::New(pointSize
, family
, flags
, face
, encoding
);
3053 SWIGINTERN wxFont
*new_wxFont(wxSize
const &pixelSize
,int family
,int style
,int weight
,bool underlined
=false,wxString
const &face
=wxEmptyString
,wxFontEncoding encoding
=wxFONTENCODING_DEFAULT
){
3054 return wxFontBase::New(pixelSize
, family
,
3055 style
, weight
, underlined
,
3058 SWIGINTERN wxFont
*new_wxFont(wxSize
const &pixelSize
,wxFontFamily family
,int flags
=wxFONTFLAG_DEFAULT
,wxString
const &face
=wxEmptyString
,wxFontEncoding encoding
=wxFONTENCODING_DEFAULT
){
3059 return wxFontBase::New(pixelSize
, family
, flags
, face
, encoding
);
3061 SWIGINTERN
bool wxFont___eq__(wxFont
*self
,wxFont
const *other
){ return other
? (*self
== *other
) : false; }
3062 SWIGINTERN
bool wxFont___ne__(wxFont
*self
,wxFont
const *other
){ return other
? (*self
!= *other
) : true; }
3064 class wxPyFontEnumerator
: public wxFontEnumerator
{
3066 wxPyFontEnumerator() {}
3067 ~wxPyFontEnumerator() {}
3069 DEC_PYCALLBACK_BOOL_STRING(OnFacename
);
3070 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding
);
3075 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator
, wxFontEnumerator
, OnFacename
);
3076 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator
, wxFontEnumerator
, OnFontEncoding
);
3079 SWIGINTERN PyObject
*wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator
*self
){
3081 wxArrayString
* arr
= self
->GetEncodings();
3082 wxPyBlock_t blocked
= wxPyBeginBlockThreads();
3084 ret
= wxArrayString2PyList_helper(*arr
);
3086 ret
= PyList_New(0);
3087 wxPyEndBlockThreads(blocked
);
3090 SWIGINTERN PyObject
*wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator
*self
){
3092 wxArrayString
* arr
= self
->GetFacenames();
3093 wxPyBlock_t blocked
= wxPyBeginBlockThreads();
3095 ret
= wxArrayString2PyList_helper(*arr
);
3097 ret
= PyList_New(0);
3098 wxPyEndBlockThreads(blocked
);
3104 SWIGINTERN wxLocale
*new_wxLocale(int language
=-1,int flags
=wxLOCALE_LOAD_DEFAULT
|wxLOCALE_CONV_ENCODING
){
3107 loc
= new wxLocale();
3109 loc
= new wxLocale(language
, flags
);
3110 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3111 // for the floating point conversions and such to work right.
3112 #if PY_VERSION_HEX < 0x02040000
3113 setlocale(LC_NUMERIC
, "C");
3117 SWIGINTERN
bool wxLocale_Init1(wxLocale
*self
,wxString
const &szName
,wxString
const &szShort
=wxPyEmptyString
,wxString
const &szLocale
=wxPyEmptyString
,bool bLoadDefault
=true,bool bConvertEncoding
=false){
3118 bool rc
= self
->Init(szName
, szShort
, szLocale
, bLoadDefault
, bConvertEncoding
);
3119 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3120 // for the floating point conversions and such to work right.
3121 #if PY_VERSION_HEX < 0x02040000
3122 setlocale(LC_NUMERIC
, "C");
3126 SWIGINTERN
bool wxLocale_Init2(wxLocale
*self
,int language
=wxLANGUAGE_DEFAULT
,int flags
=wxLOCALE_LOAD_DEFAULT
|wxLOCALE_CONV_ENCODING
){
3127 bool rc
= self
->Init(language
, flags
);
3128 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3129 // for the floating point conversions and such to work right.
3130 #if PY_VERSION_HEX < 0x02040000
3131 setlocale(LC_NUMERIC
, "C");
3136 #include "wx/wxPython/pydrawxxx.h"
3138 SWIGINTERN wxColour
wxDC_GetPixel(wxDC
*self
,int x
,int y
){
3140 self
->GetPixel(x
, y
, &col
);
3143 SWIGINTERN wxColour
wxDC_GetPixelPoint(wxDC
*self
,wxPoint
const &pt
){
3145 self
->GetPixel(pt
, &col
);
3150 SWIG_AsVal_double (PyObject
*obj
, double* val
)
3152 if (PyNumber_Check(obj
)) {
3153 if (val
) *val
= PyFloat_AsDouble(obj
);
3156 return SWIG_TypeError
;
3159 SWIGINTERN wxRect
wxDC_DrawImageLabel(wxDC
*self
,wxString
const &text
,wxBitmap
const &image
,wxRect
const &rect
,int alignment
=wxALIGN_LEFT
|wxALIGN_TOP
,int indexAccel
=-1){
3161 self
->DrawLabel(text
, image
, rect
, alignment
, indexAccel
, &rv
);
3164 SWIGINTERN wxRect
wxDC_GetClippingRect(wxDC
*self
){
3166 self
->GetClippingBox(rect
);
3169 SWIGINTERN wxArrayInt
wxDC_GetPartialTextExtents(wxDC
*self
,wxString
const &text
){
3171 self
->GetPartialTextExtents(text
, widths
);
3175 #define SWIG_From_double PyFloat_FromDouble
3177 SWIGINTERN
void wxDC_SetLogicalOriginPoint(wxDC
*self
,wxPoint
const &point
){
3178 self
->SetLogicalOrigin(point
.x
, point
.y
);
3180 SWIGINTERN
void wxDC_SetDeviceOriginPoint(wxDC
*self
,wxPoint
const &point
){
3181 self
->SetDeviceOrigin(point
.x
, point
.y
);
3183 SWIGINTERN
void wxDC_CalcBoundingBoxPoint(wxDC
*self
,wxPoint
const &point
){
3184 self
->CalcBoundingBox(point
.x
, point
.y
);
3186 SWIGINTERN PyObject
*wxDC__DrawPointList(wxDC
*self
,PyObject
*pyCoords
,PyObject
*pyPens
,PyObject
*pyBrushes
){
3187 return wxPyDrawXXXList(*self
, wxPyDrawXXXPoint
, pyCoords
, pyPens
, pyBrushes
);
3189 SWIGINTERN PyObject
*wxDC__DrawLineList(wxDC
*self
,PyObject
*pyCoords
,PyObject
*pyPens
,PyObject
*pyBrushes
){
3190 return wxPyDrawXXXList(*self
, wxPyDrawXXXLine
, pyCoords
, pyPens
, pyBrushes
);
3192 SWIGINTERN PyObject
*wxDC__DrawRectangleList(wxDC
*self
,PyObject
*pyCoords
,PyObject
*pyPens
,PyObject
*pyBrushes
){
3193 return wxPyDrawXXXList(*self
, wxPyDrawXXXRectangle
, pyCoords
, pyPens
, pyBrushes
);
3195 SWIGINTERN PyObject
*wxDC__DrawEllipseList(wxDC
*self
,PyObject
*pyCoords
,PyObject
*pyPens
,PyObject
*pyBrushes
){
3196 return wxPyDrawXXXList(*self
, wxPyDrawXXXEllipse
, pyCoords
, pyPens
, pyBrushes
);
3198 SWIGINTERN PyObject
*wxDC__DrawPolygonList(wxDC
*self
,PyObject
*pyCoords
,PyObject
*pyPens
,PyObject
*pyBrushes
){
3199 return wxPyDrawXXXList(*self
, wxPyDrawXXXPolygon
, pyCoords
, pyPens
, pyBrushes
);
3201 SWIGINTERN PyObject
*wxDC__DrawTextList(wxDC
*self
,PyObject
*textList
,PyObject
*pyPoints
,PyObject
*foregroundList
,PyObject
*backgroundList
){
3202 return wxPyDrawTextList(*self
, textList
, pyPoints
, foregroundList
, backgroundList
);
3205 static void wxDC_GetBoundingBox(wxDC
* dc
, int* x1
, int* y1
, int* x2
, int* y2
) {
3213 #include <wx/dcbuffer.h>
3216 #include <wx/dcps.h>
3219 #include <wx/metafile.h>
3223 SWIGINTERN
void wxColourDatabase_Append(wxColourDatabase
*self
,wxString
const &name
,int red
,int green
,int blue
){
3224 self
->AddColour(name
, wxColour(red
, green
, blue
));
3227 wxFontList
* _wxPyInitTheFontList() { return wxTheFontList
; }
3228 wxPenList
* _wxPyInitThePenList() { return wxThePenList
; }
3229 wxBrushList
* _wxPyInitTheBrushList() { return wxTheBrushList
; }
3230 wxColourDatabase
* _wxPyInitTheColourDatabase() { return wxTheColourDatabase
; }
3233 #include <wx/effects.h>
3236 #include "wx/renderer.h"
3239 SWIGINTERNINLINE PyObject
*
3240 SWIG_From_bool (bool value
)
3242 return PyBool_FromLong(value
? 1 : 0);
3248 SWIGINTERN PyObject
*_wrap_new_GDIObject(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
3249 PyObject
*resultobj
= 0;
3250 wxGDIObject
*result
= 0 ;
3252 if (!SWIG_Python_UnpackTuple(args
,"new_GDIObject",0,0,0)) SWIG_fail
;
3254 if (!wxPyCheckForApp()) SWIG_fail
;
3255 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3256 result
= (wxGDIObject
*)new wxGDIObject();
3257 wxPyEndAllowThreads(__tstate
);
3258 if (PyErr_Occurred()) SWIG_fail
;
3260 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxGDIObject
, SWIG_POINTER_NEW
| 0 );
3267 SWIGINTERN PyObject
*_wrap_delete_GDIObject(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
3268 PyObject
*resultobj
= 0;
3269 wxGDIObject
*arg1
= (wxGDIObject
*) 0 ;
3272 PyObject
*swig_obj
[1] ;
3274 if (!args
) SWIG_fail
;
3276 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxGDIObject
, SWIG_POINTER_DISOWN
| 0 );
3277 if (!SWIG_IsOK(res1
)) {
3278 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3280 arg1
= reinterpret_cast< wxGDIObject
* >(argp1
);
3282 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3285 wxPyEndAllowThreads(__tstate
);
3286 if (PyErr_Occurred()) SWIG_fail
;
3288 resultobj
= SWIG_Py_Void();
3295 SWIGINTERN PyObject
*_wrap_GDIObject_IsNull(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
3296 PyObject
*resultobj
= 0;
3297 wxGDIObject
*arg1
= (wxGDIObject
*) 0 ;
3301 PyObject
*swig_obj
[1] ;
3303 if (!args
) SWIG_fail
;
3305 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxGDIObject
, 0 | 0 );
3306 if (!SWIG_IsOK(res1
)) {
3307 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3309 arg1
= reinterpret_cast< wxGDIObject
* >(argp1
);
3311 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3312 result
= (bool)(arg1
)->IsNull();
3313 wxPyEndAllowThreads(__tstate
);
3314 if (PyErr_Occurred()) SWIG_fail
;
3317 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3325 SWIGINTERN PyObject
*GDIObject_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
3327 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
3328 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject
, SWIG_NewClientData(obj
));
3329 return SWIG_Py_Void();
3332 SWIGINTERN PyObject
*GDIObject_swiginit(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
3333 return SWIG_Python_InitShadowInstance(args
);
3336 SWIGINTERN PyObject
*_wrap_new_Colour(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
3337 PyObject
*resultobj
= 0;
3338 byte arg1
= (byte
) 0 ;
3339 byte arg2
= (byte
) 0 ;
3340 byte arg3
= (byte
) 0 ;
3341 wxColour
*result
= 0 ;
3342 unsigned char val1
;
3344 unsigned char val2
;
3346 unsigned char val3
;
3348 PyObject
* obj0
= 0 ;
3349 PyObject
* obj1
= 0 ;
3350 PyObject
* obj2
= 0 ;
3351 char * kwnames
[] = {
3352 (char *) "red",(char *) "green",(char *) "blue", NULL
3355 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|OOO:new_Colour",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
3357 ecode1
= SWIG_AsVal_unsigned_SS_char(obj0
, &val1
);
3358 if (!SWIG_IsOK(ecode1
)) {
3359 SWIG_exception_fail(SWIG_ArgError(ecode1
), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
3361 arg1
= static_cast< byte
>(val1
);
3364 ecode2
= SWIG_AsVal_unsigned_SS_char(obj1
, &val2
);
3365 if (!SWIG_IsOK(ecode2
)) {
3366 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
3368 arg2
= static_cast< byte
>(val2
);
3371 ecode3
= SWIG_AsVal_unsigned_SS_char(obj2
, &val3
);
3372 if (!SWIG_IsOK(ecode3
)) {
3373 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
3375 arg3
= static_cast< byte
>(val3
);
3378 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3379 result
= (wxColour
*)new wxColour(arg1
,arg2
,arg3
);
3380 wxPyEndAllowThreads(__tstate
);
3381 if (PyErr_Occurred()) SWIG_fail
;
3383 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxColour
, SWIG_POINTER_NEW
| 0 );
3390 SWIGINTERN PyObject
*_wrap_new_NamedColour(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
3391 PyObject
*resultobj
= 0;
3392 wxString
*arg1
= 0 ;
3393 wxColour
*result
= 0 ;
3394 bool temp1
= false ;
3395 PyObject
* obj0
= 0 ;
3396 char * kwnames
[] = {
3397 (char *) "colorName", NULL
3400 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:new_NamedColour",kwnames
,&obj0
)) SWIG_fail
;
3402 arg1
= wxString_in_helper(obj0
);
3403 if (arg1
== NULL
) SWIG_fail
;
3407 if (!wxPyCheckForApp()) SWIG_fail
;
3408 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3409 result
= (wxColour
*)new wxColour((wxString
const &)*arg1
);
3410 wxPyEndAllowThreads(__tstate
);
3411 if (PyErr_Occurred()) SWIG_fail
;
3413 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxColour
, SWIG_POINTER_OWN
| 0 );
3428 SWIGINTERN PyObject
*_wrap_new_ColourRGB(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
3429 PyObject
*resultobj
= 0;
3430 unsigned long arg1
;
3431 wxColour
*result
= 0 ;
3432 unsigned long val1
;
3434 PyObject
* obj0
= 0 ;
3435 char * kwnames
[] = {
3436 (char *) "colRGB", NULL
3439 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:new_ColourRGB",kwnames
,&obj0
)) SWIG_fail
;
3440 ecode1
= SWIG_AsVal_unsigned_SS_long(obj0
, &val1
);
3441 if (!SWIG_IsOK(ecode1
)) {
3442 SWIG_exception_fail(SWIG_ArgError(ecode1
), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
3444 arg1
= static_cast< unsigned long >(val1
);
3446 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3447 result
= (wxColour
*)new wxColour(arg1
);
3448 wxPyEndAllowThreads(__tstate
);
3449 if (PyErr_Occurred()) SWIG_fail
;
3451 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxColour
, SWIG_POINTER_OWN
| 0 );
3458 SWIGINTERN PyObject
*_wrap_delete_Colour(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
3459 PyObject
*resultobj
= 0;
3460 wxColour
*arg1
= (wxColour
*) 0 ;
3463 PyObject
*swig_obj
[1] ;
3465 if (!args
) SWIG_fail
;
3467 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxColour
, SWIG_POINTER_DISOWN
| 0 );
3468 if (!SWIG_IsOK(res1
)) {
3469 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
3471 arg1
= reinterpret_cast< wxColour
* >(argp1
);
3473 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3476 wxPyEndAllowThreads(__tstate
);
3477 if (PyErr_Occurred()) SWIG_fail
;
3479 resultobj
= SWIG_Py_Void();
3486 SWIGINTERN PyObject
*_wrap_Colour_Red(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
3487 PyObject
*resultobj
= 0;
3488 wxColour
*arg1
= (wxColour
*) 0 ;
3492 PyObject
*swig_obj
[1] ;
3494 if (!args
) SWIG_fail
;
3496 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxColour
, 0 | 0 );
3497 if (!SWIG_IsOK(res1
)) {
3498 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
3500 arg1
= reinterpret_cast< wxColour
* >(argp1
);
3502 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3503 result
= (byte
)(arg1
)->Red();
3504 wxPyEndAllowThreads(__tstate
);
3505 if (PyErr_Occurred()) SWIG_fail
;
3507 resultobj
= SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result
));
3514 SWIGINTERN PyObject
*_wrap_Colour_Green(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
3515 PyObject
*resultobj
= 0;
3516 wxColour
*arg1
= (wxColour
*) 0 ;
3520 PyObject
*swig_obj
[1] ;
3522 if (!args
) SWIG_fail
;
3524 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxColour
, 0 | 0 );
3525 if (!SWIG_IsOK(res1
)) {
3526 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
3528 arg1
= reinterpret_cast< wxColour
* >(argp1
);
3530 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3531 result
= (byte
)(arg1
)->Green();
3532 wxPyEndAllowThreads(__tstate
);
3533 if (PyErr_Occurred()) SWIG_fail
;
3535 resultobj
= SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result
));
3542 SWIGINTERN PyObject
*_wrap_Colour_Blue(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
3543 PyObject
*resultobj
= 0;
3544 wxColour
*arg1
= (wxColour
*) 0 ;
3548 PyObject
*swig_obj
[1] ;
3550 if (!args
) SWIG_fail
;
3552 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxColour
, 0 | 0 );
3553 if (!SWIG_IsOK(res1
)) {
3554 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
3556 arg1
= reinterpret_cast< wxColour
* >(argp1
);
3558 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3559 result
= (byte
)(arg1
)->Blue();
3560 wxPyEndAllowThreads(__tstate
);
3561 if (PyErr_Occurred()) SWIG_fail
;
3563 resultobj
= SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result
));
3570 SWIGINTERN PyObject
*_wrap_Colour_Ok(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
3571 PyObject
*resultobj
= 0;
3572 wxColour
*arg1
= (wxColour
*) 0 ;
3576 PyObject
*swig_obj
[1] ;
3578 if (!args
) SWIG_fail
;
3580 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxColour
, 0 | 0 );
3581 if (!SWIG_IsOK(res1
)) {
3582 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Colour_Ok" "', expected argument " "1"" of type '" "wxColour *""'");
3584 arg1
= reinterpret_cast< wxColour
* >(argp1
);
3586 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3587 result
= (bool)(arg1
)->Ok();
3588 wxPyEndAllowThreads(__tstate
);
3589 if (PyErr_Occurred()) SWIG_fail
;
3592 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3600 SWIGINTERN PyObject
*_wrap_Colour_Set(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
3601 PyObject
*resultobj
= 0;
3602 wxColour
*arg1
= (wxColour
*) 0 ;
3608 unsigned char val2
;
3610 unsigned char val3
;
3612 unsigned char val4
;
3614 PyObject
* obj0
= 0 ;
3615 PyObject
* obj1
= 0 ;
3616 PyObject
* obj2
= 0 ;
3617 PyObject
* obj3
= 0 ;
3618 char * kwnames
[] = {
3619 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
3622 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:Colour_Set",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) SWIG_fail
;
3623 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxColour
, 0 | 0 );
3624 if (!SWIG_IsOK(res1
)) {
3625 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
3627 arg1
= reinterpret_cast< wxColour
* >(argp1
);
3628 ecode2
= SWIG_AsVal_unsigned_SS_char(obj1
, &val2
);
3629 if (!SWIG_IsOK(ecode2
)) {
3630 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
3632 arg2
= static_cast< byte
>(val2
);
3633 ecode3
= SWIG_AsVal_unsigned_SS_char(obj2
, &val3
);
3634 if (!SWIG_IsOK(ecode3
)) {
3635 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
3637 arg3
= static_cast< byte
>(val3
);
3638 ecode4
= SWIG_AsVal_unsigned_SS_char(obj3
, &val4
);
3639 if (!SWIG_IsOK(ecode4
)) {
3640 SWIG_exception_fail(SWIG_ArgError(ecode4
), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
3642 arg4
= static_cast< byte
>(val4
);
3644 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3645 (arg1
)->Set(arg2
,arg3
,arg4
);
3646 wxPyEndAllowThreads(__tstate
);
3647 if (PyErr_Occurred()) SWIG_fail
;
3649 resultobj
= SWIG_Py_Void();
3656 SWIGINTERN PyObject
*_wrap_Colour_SetRGB(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
3657 PyObject
*resultobj
= 0;
3658 wxColour
*arg1
= (wxColour
*) 0 ;
3659 unsigned long arg2
;
3662 unsigned long val2
;
3664 PyObject
* obj0
= 0 ;
3665 PyObject
* obj1
= 0 ;
3666 char * kwnames
[] = {
3667 (char *) "self",(char *) "colRGB", NULL
3670 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Colour_SetRGB",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
3671 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxColour
, 0 | 0 );
3672 if (!SWIG_IsOK(res1
)) {
3673 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
3675 arg1
= reinterpret_cast< wxColour
* >(argp1
);
3676 ecode2
= SWIG_AsVal_unsigned_SS_long(obj1
, &val2
);
3677 if (!SWIG_IsOK(ecode2
)) {
3678 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
3680 arg2
= static_cast< unsigned long >(val2
);
3682 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3684 wxPyEndAllowThreads(__tstate
);
3685 if (PyErr_Occurred()) SWIG_fail
;
3687 resultobj
= SWIG_Py_Void();
3694 SWIGINTERN PyObject
*_wrap_Colour_SetFromName(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
3695 PyObject
*resultobj
= 0;
3696 wxColour
*arg1
= (wxColour
*) 0 ;
3697 wxString
*arg2
= 0 ;
3700 bool temp2
= false ;
3701 PyObject
* obj0
= 0 ;
3702 PyObject
* obj1
= 0 ;
3703 char * kwnames
[] = {
3704 (char *) "self",(char *) "colourName", NULL
3707 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Colour_SetFromName",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
3708 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxColour
, 0 | 0 );
3709 if (!SWIG_IsOK(res1
)) {
3710 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
3712 arg1
= reinterpret_cast< wxColour
* >(argp1
);
3714 arg2
= wxString_in_helper(obj1
);
3715 if (arg2
== NULL
) SWIG_fail
;
3719 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3720 (arg1
)->InitFromName((wxString
const &)*arg2
);
3721 wxPyEndAllowThreads(__tstate
);
3722 if (PyErr_Occurred()) SWIG_fail
;
3724 resultobj
= SWIG_Py_Void();
3739 SWIGINTERN PyObject
*_wrap_Colour_GetPixel(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
3740 PyObject
*resultobj
= 0;
3741 wxColour
*arg1
= (wxColour
*) 0 ;
3745 PyObject
*swig_obj
[1] ;
3747 if (!args
) SWIG_fail
;
3749 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxColour
, 0 | 0 );
3750 if (!SWIG_IsOK(res1
)) {
3751 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
3753 arg1
= reinterpret_cast< wxColour
* >(argp1
);
3755 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3756 result
= (long)((wxColour
const *)arg1
)->GetPixel();
3757 wxPyEndAllowThreads(__tstate
);
3758 if (PyErr_Occurred()) SWIG_fail
;
3760 resultobj
= SWIG_From_long(static_cast< long >(result
));
3767 SWIGINTERN PyObject
*_wrap_Colour___eq__(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
3768 PyObject
*resultobj
= 0;
3769 wxColour
*arg1
= (wxColour
*) 0 ;
3770 PyObject
*arg2
= (PyObject
*) 0 ;
3774 PyObject
* obj0
= 0 ;
3775 PyObject
* obj1
= 0 ;
3776 char * kwnames
[] = {
3777 (char *) "self",(char *) "other", NULL
3780 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Colour___eq__",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
3781 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxColour
, 0 | 0 );
3782 if (!SWIG_IsOK(res1
)) {
3783 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
3785 arg1
= reinterpret_cast< wxColour
* >(argp1
);
3788 result
= (bool)wxColour___eq__(arg1
,arg2
);
3789 if (PyErr_Occurred()) SWIG_fail
;
3792 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3800 SWIGINTERN PyObject
*_wrap_Colour___ne__(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
3801 PyObject
*resultobj
= 0;
3802 wxColour
*arg1
= (wxColour
*) 0 ;
3803 PyObject
*arg2
= (PyObject
*) 0 ;
3807 PyObject
* obj0
= 0 ;
3808 PyObject
* obj1
= 0 ;
3809 char * kwnames
[] = {
3810 (char *) "self",(char *) "other", NULL
3813 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Colour___ne__",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
3814 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxColour
, 0 | 0 );
3815 if (!SWIG_IsOK(res1
)) {
3816 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
3818 arg1
= reinterpret_cast< wxColour
* >(argp1
);
3821 result
= (bool)wxColour___ne__(arg1
,arg2
);
3822 if (PyErr_Occurred()) SWIG_fail
;
3825 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3833 SWIGINTERN PyObject
*_wrap_Colour_Get(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
3834 PyObject
*resultobj
= 0;
3835 wxColour
*arg1
= (wxColour
*) 0 ;
3836 PyObject
*result
= 0 ;
3839 PyObject
*swig_obj
[1] ;
3841 if (!args
) SWIG_fail
;
3843 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxColour
, 0 | 0 );
3844 if (!SWIG_IsOK(res1
)) {
3845 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
3847 arg1
= reinterpret_cast< wxColour
* >(argp1
);
3849 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3850 result
= (PyObject
*)wxColour_Get(arg1
);
3851 wxPyEndAllowThreads(__tstate
);
3852 if (PyErr_Occurred()) SWIG_fail
;
3861 SWIGINTERN PyObject
*_wrap_Colour_GetRGB(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
3862 PyObject
*resultobj
= 0;
3863 wxColour
*arg1
= (wxColour
*) 0 ;
3864 unsigned long result
;
3867 PyObject
*swig_obj
[1] ;
3869 if (!args
) SWIG_fail
;
3871 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxColour
, 0 | 0 );
3872 if (!SWIG_IsOK(res1
)) {
3873 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
3875 arg1
= reinterpret_cast< wxColour
* >(argp1
);
3877 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3878 result
= (unsigned long)wxColour_GetRGB(arg1
);
3879 wxPyEndAllowThreads(__tstate
);
3880 if (PyErr_Occurred()) SWIG_fail
;
3882 resultobj
= SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result
));
3889 SWIGINTERN PyObject
*Colour_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
3891 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
3892 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour
, SWIG_NewClientData(obj
));
3893 return SWIG_Py_Void();
3896 SWIGINTERN PyObject
*Colour_swiginit(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
3897 return SWIG_Python_InitShadowInstance(args
);
3900 SWIGINTERN PyObject
*_wrap_new_Palette(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
3901 PyObject
*resultobj
= 0;
3903 unsigned char *arg2
= (unsigned char *) 0 ;
3904 unsigned char *arg3
= (unsigned char *) 0 ;
3905 unsigned char *arg4
= (unsigned char *) 0 ;
3906 wxPalette
*result
= 0 ;
3915 PyObject
* obj0
= 0 ;
3916 PyObject
* obj1
= 0 ;
3917 PyObject
* obj2
= 0 ;
3918 PyObject
* obj3
= 0 ;
3919 char * kwnames
[] = {
3920 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
3923 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:new_Palette",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) SWIG_fail
;
3924 ecode1
= SWIG_AsVal_int(obj0
, &val1
);
3925 if (!SWIG_IsOK(ecode1
)) {
3926 SWIG_exception_fail(SWIG_ArgError(ecode1
), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
3928 arg1
= static_cast< int >(val1
);
3929 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_unsigned_char
, 0 | 0 );
3930 if (!SWIG_IsOK(res2
)) {
3931 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
3933 arg2
= reinterpret_cast< unsigned char * >(argp2
);
3934 res3
= SWIG_ConvertPtr(obj2
, &argp3
,SWIGTYPE_p_unsigned_char
, 0 | 0 );
3935 if (!SWIG_IsOK(res3
)) {
3936 SWIG_exception_fail(SWIG_ArgError(res3
), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
3938 arg3
= reinterpret_cast< unsigned char * >(argp3
);
3939 res4
= SWIG_ConvertPtr(obj3
, &argp4
,SWIGTYPE_p_unsigned_char
, 0 | 0 );
3940 if (!SWIG_IsOK(res4
)) {
3941 SWIG_exception_fail(SWIG_ArgError(res4
), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
3943 arg4
= reinterpret_cast< unsigned char * >(argp4
);
3945 if (!wxPyCheckForApp()) SWIG_fail
;
3946 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3947 result
= (wxPalette
*)new wxPalette(arg1
,(unsigned char const *)arg2
,(unsigned char const *)arg3
,(unsigned char const *)arg4
);
3948 wxPyEndAllowThreads(__tstate
);
3949 if (PyErr_Occurred()) SWIG_fail
;
3951 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxPalette
, SWIG_POINTER_NEW
| 0 );
3958 SWIGINTERN PyObject
*_wrap_delete_Palette(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
3959 PyObject
*resultobj
= 0;
3960 wxPalette
*arg1
= (wxPalette
*) 0 ;
3963 PyObject
*swig_obj
[1] ;
3965 if (!args
) SWIG_fail
;
3967 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxPalette
, SWIG_POINTER_DISOWN
| 0 );
3968 if (!SWIG_IsOK(res1
)) {
3969 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
3971 arg1
= reinterpret_cast< wxPalette
* >(argp1
);
3973 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3976 wxPyEndAllowThreads(__tstate
);
3977 if (PyErr_Occurred()) SWIG_fail
;
3979 resultobj
= SWIG_Py_Void();
3986 SWIGINTERN PyObject
*_wrap_Palette_GetPixel(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
3987 PyObject
*resultobj
= 0;
3988 wxPalette
*arg1
= (wxPalette
*) 0 ;
3995 unsigned char val2
;
3997 unsigned char val3
;
3999 unsigned char val4
;
4001 PyObject
* obj0
= 0 ;
4002 PyObject
* obj1
= 0 ;
4003 PyObject
* obj2
= 0 ;
4004 PyObject
* obj3
= 0 ;
4005 char * kwnames
[] = {
4006 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4009 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:Palette_GetPixel",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) SWIG_fail
;
4010 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPalette
, 0 | 0 );
4011 if (!SWIG_IsOK(res1
)) {
4012 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4014 arg1
= reinterpret_cast< wxPalette
* >(argp1
);
4015 ecode2
= SWIG_AsVal_unsigned_SS_char(obj1
, &val2
);
4016 if (!SWIG_IsOK(ecode2
)) {
4017 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4019 arg2
= static_cast< byte
>(val2
);
4020 ecode3
= SWIG_AsVal_unsigned_SS_char(obj2
, &val3
);
4021 if (!SWIG_IsOK(ecode3
)) {
4022 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4024 arg3
= static_cast< byte
>(val3
);
4025 ecode4
= SWIG_AsVal_unsigned_SS_char(obj3
, &val4
);
4026 if (!SWIG_IsOK(ecode4
)) {
4027 SWIG_exception_fail(SWIG_ArgError(ecode4
), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4029 arg4
= static_cast< byte
>(val4
);
4031 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4032 result
= (int)(arg1
)->GetPixel(arg2
,arg3
,arg4
);
4033 wxPyEndAllowThreads(__tstate
);
4034 if (PyErr_Occurred()) SWIG_fail
;
4036 resultobj
= SWIG_From_int(static_cast< int >(result
));
4043 SWIGINTERN PyObject
*_wrap_Palette_GetRGB(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
4044 PyObject
*resultobj
= 0;
4045 wxPalette
*arg1
= (wxPalette
*) 0 ;
4047 byte
*arg3
= (byte
*) 0 ;
4048 byte
*arg4
= (byte
*) 0 ;
4049 byte
*arg5
= (byte
*) 0 ;
4056 int res3
= SWIG_TMPOBJ
;
4058 int res4
= SWIG_TMPOBJ
;
4060 int res5
= SWIG_TMPOBJ
;
4061 PyObject
* obj0
= 0 ;
4062 PyObject
* obj1
= 0 ;
4063 char * kwnames
[] = {
4064 (char *) "self",(char *) "pixel", NULL
4070 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Palette_GetRGB",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
4071 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPalette
, 0 | 0 );
4072 if (!SWIG_IsOK(res1
)) {
4073 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4075 arg1
= reinterpret_cast< wxPalette
* >(argp1
);
4076 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
4077 if (!SWIG_IsOK(ecode2
)) {
4078 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4080 arg2
= static_cast< int >(val2
);
4082 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4083 result
= (bool)(arg1
)->GetRGB(arg2
,arg3
,arg4
,arg5
);
4084 wxPyEndAllowThreads(__tstate
);
4085 if (PyErr_Occurred()) SWIG_fail
;
4088 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
4090 if (SWIG_IsTmpObj(res3
)) {
4091 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_From_unsigned_SS_char((*arg3
)));
4093 int new_flags
= SWIG_IsNewObj(res3
) ? (SWIG_POINTER_OWN
| 0 ) : 0 ;
4094 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_NewPointerObj((void*)(arg3
), SWIGTYPE_p_unsigned_char
, new_flags
));
4096 if (SWIG_IsTmpObj(res4
)) {
4097 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_From_unsigned_SS_char((*arg4
)));
4099 int new_flags
= SWIG_IsNewObj(res4
) ? (SWIG_POINTER_OWN
| 0 ) : 0 ;
4100 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_NewPointerObj((void*)(arg4
), SWIGTYPE_p_unsigned_char
, new_flags
));
4102 if (SWIG_IsTmpObj(res5
)) {
4103 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_From_unsigned_SS_char((*arg5
)));
4105 int new_flags
= SWIG_IsNewObj(res5
) ? (SWIG_POINTER_OWN
| 0 ) : 0 ;
4106 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_NewPointerObj((void*)(arg5
), SWIGTYPE_p_unsigned_char
, new_flags
));
4114 SWIGINTERN PyObject
*_wrap_Palette_GetColoursCount(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
4115 PyObject
*resultobj
= 0;
4116 wxPalette
*arg1
= (wxPalette
*) 0 ;
4120 PyObject
*swig_obj
[1] ;
4122 if (!args
) SWIG_fail
;
4124 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxPalette
, 0 | 0 );
4125 if (!SWIG_IsOK(res1
)) {
4126 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4128 arg1
= reinterpret_cast< wxPalette
* >(argp1
);
4130 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4131 result
= (int)((wxPalette
const *)arg1
)->GetColoursCount();
4132 wxPyEndAllowThreads(__tstate
);
4133 if (PyErr_Occurred()) SWIG_fail
;
4135 resultobj
= SWIG_From_int(static_cast< int >(result
));
4142 SWIGINTERN PyObject
*_wrap_Palette_Ok(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
4143 PyObject
*resultobj
= 0;
4144 wxPalette
*arg1
= (wxPalette
*) 0 ;
4148 PyObject
*swig_obj
[1] ;
4150 if (!args
) SWIG_fail
;
4152 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxPalette
, 0 | 0 );
4153 if (!SWIG_IsOK(res1
)) {
4154 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Palette_Ok" "', expected argument " "1"" of type '" "wxPalette *""'");
4156 arg1
= reinterpret_cast< wxPalette
* >(argp1
);
4158 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4159 result
= (bool)(arg1
)->Ok();
4160 wxPyEndAllowThreads(__tstate
);
4161 if (PyErr_Occurred()) SWIG_fail
;
4164 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
4172 SWIGINTERN PyObject
*Palette_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
4174 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
4175 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette
, SWIG_NewClientData(obj
));
4176 return SWIG_Py_Void();
4179 SWIGINTERN PyObject
*Palette_swiginit(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
4180 return SWIG_Python_InitShadowInstance(args
);
4183 SWIGINTERN PyObject
*_wrap_new_Pen(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
4184 PyObject
*resultobj
= 0;
4185 wxColour
*arg1
= 0 ;
4186 int arg2
= (int) 1 ;
4187 int arg3
= (int) wxSOLID
;
4194 PyObject
* obj0
= 0 ;
4195 PyObject
* obj1
= 0 ;
4196 PyObject
* obj2
= 0 ;
4197 char * kwnames
[] = {
4198 (char *) "colour",(char *) "width",(char *) "style", NULL
4201 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OO:new_Pen",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
4204 if ( ! wxColour_helper(obj0
, &arg1
)) SWIG_fail
;
4207 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
4208 if (!SWIG_IsOK(ecode2
)) {
4209 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4211 arg2
= static_cast< int >(val2
);
4214 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
4215 if (!SWIG_IsOK(ecode3
)) {
4216 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4218 arg3
= static_cast< int >(val3
);
4221 if (!wxPyCheckForApp()) SWIG_fail
;
4222 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4223 result
= (wxPen
*)new wxPen(*arg1
,arg2
,arg3
);
4224 wxPyEndAllowThreads(__tstate
);
4225 if (PyErr_Occurred()) SWIG_fail
;
4227 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxPen
, SWIG_POINTER_NEW
| 0 );
4234 SWIGINTERN PyObject
*_wrap_delete_Pen(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
4235 PyObject
*resultobj
= 0;
4236 wxPen
*arg1
= (wxPen
*) 0 ;
4239 PyObject
*swig_obj
[1] ;
4241 if (!args
) SWIG_fail
;
4243 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxPen
, SWIG_POINTER_DISOWN
| 0 );
4244 if (!SWIG_IsOK(res1
)) {
4245 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
4247 arg1
= reinterpret_cast< wxPen
* >(argp1
);
4249 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4252 wxPyEndAllowThreads(__tstate
);
4253 if (PyErr_Occurred()) SWIG_fail
;
4255 resultobj
= SWIG_Py_Void();
4262 SWIGINTERN PyObject
*_wrap_Pen_GetCap(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
4263 PyObject
*resultobj
= 0;
4264 wxPen
*arg1
= (wxPen
*) 0 ;
4268 PyObject
*swig_obj
[1] ;
4270 if (!args
) SWIG_fail
;
4272 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxPen
, 0 | 0 );
4273 if (!SWIG_IsOK(res1
)) {
4274 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4276 arg1
= reinterpret_cast< wxPen
* >(argp1
);
4278 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4279 result
= (int)(arg1
)->GetCap();
4280 wxPyEndAllowThreads(__tstate
);
4281 if (PyErr_Occurred()) SWIG_fail
;
4283 resultobj
= SWIG_From_int(static_cast< int >(result
));
4290 SWIGINTERN PyObject
*_wrap_Pen_GetColour(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
4291 PyObject
*resultobj
= 0;
4292 wxPen
*arg1
= (wxPen
*) 0 ;
4296 PyObject
*swig_obj
[1] ;
4298 if (!args
) SWIG_fail
;
4300 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxPen
, 0 | 0 );
4301 if (!SWIG_IsOK(res1
)) {
4302 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4304 arg1
= reinterpret_cast< wxPen
* >(argp1
);
4306 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4307 result
= (arg1
)->GetColour();
4308 wxPyEndAllowThreads(__tstate
);
4309 if (PyErr_Occurred()) SWIG_fail
;
4311 resultobj
= SWIG_NewPointerObj((new wxColour(static_cast< const wxColour
& >(result
))), SWIGTYPE_p_wxColour
, SWIG_POINTER_OWN
| 0 );
4318 SWIGINTERN PyObject
*_wrap_Pen_GetJoin(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
4319 PyObject
*resultobj
= 0;
4320 wxPen
*arg1
= (wxPen
*) 0 ;
4324 PyObject
*swig_obj
[1] ;
4326 if (!args
) SWIG_fail
;
4328 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxPen
, 0 | 0 );
4329 if (!SWIG_IsOK(res1
)) {
4330 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4332 arg1
= reinterpret_cast< wxPen
* >(argp1
);
4334 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4335 result
= (int)(arg1
)->GetJoin();
4336 wxPyEndAllowThreads(__tstate
);
4337 if (PyErr_Occurred()) SWIG_fail
;
4339 resultobj
= SWIG_From_int(static_cast< int >(result
));
4346 SWIGINTERN PyObject
*_wrap_Pen_GetStyle(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
4347 PyObject
*resultobj
= 0;
4348 wxPen
*arg1
= (wxPen
*) 0 ;
4352 PyObject
*swig_obj
[1] ;
4354 if (!args
) SWIG_fail
;
4356 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxPen
, 0 | 0 );
4357 if (!SWIG_IsOK(res1
)) {
4358 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4360 arg1
= reinterpret_cast< wxPen
* >(argp1
);
4362 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4363 result
= (int)(arg1
)->GetStyle();
4364 wxPyEndAllowThreads(__tstate
);
4365 if (PyErr_Occurred()) SWIG_fail
;
4367 resultobj
= SWIG_From_int(static_cast< int >(result
));
4374 SWIGINTERN PyObject
*_wrap_Pen_GetWidth(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
4375 PyObject
*resultobj
= 0;
4376 wxPen
*arg1
= (wxPen
*) 0 ;
4380 PyObject
*swig_obj
[1] ;
4382 if (!args
) SWIG_fail
;
4384 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxPen
, 0 | 0 );
4385 if (!SWIG_IsOK(res1
)) {
4386 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4388 arg1
= reinterpret_cast< wxPen
* >(argp1
);
4390 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4391 result
= (int)(arg1
)->GetWidth();
4392 wxPyEndAllowThreads(__tstate
);
4393 if (PyErr_Occurred()) SWIG_fail
;
4395 resultobj
= SWIG_From_int(static_cast< int >(result
));
4402 SWIGINTERN PyObject
*_wrap_Pen_Ok(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
4403 PyObject
*resultobj
= 0;
4404 wxPen
*arg1
= (wxPen
*) 0 ;
4408 PyObject
*swig_obj
[1] ;
4410 if (!args
) SWIG_fail
;
4412 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxPen
, 0 | 0 );
4413 if (!SWIG_IsOK(res1
)) {
4414 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Pen_Ok" "', expected argument " "1"" of type '" "wxPen *""'");
4416 arg1
= reinterpret_cast< wxPen
* >(argp1
);
4418 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4419 result
= (bool)(arg1
)->Ok();
4420 wxPyEndAllowThreads(__tstate
);
4421 if (PyErr_Occurred()) SWIG_fail
;
4424 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
4432 SWIGINTERN PyObject
*_wrap_Pen_SetCap(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
4433 PyObject
*resultobj
= 0;
4434 wxPen
*arg1
= (wxPen
*) 0 ;
4440 PyObject
* obj0
= 0 ;
4441 PyObject
* obj1
= 0 ;
4442 char * kwnames
[] = {
4443 (char *) "self",(char *) "cap_style", NULL
4446 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Pen_SetCap",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
4447 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPen
, 0 | 0 );
4448 if (!SWIG_IsOK(res1
)) {
4449 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4451 arg1
= reinterpret_cast< wxPen
* >(argp1
);
4452 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
4453 if (!SWIG_IsOK(ecode2
)) {
4454 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
4456 arg2
= static_cast< int >(val2
);
4458 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4459 (arg1
)->SetCap(arg2
);
4460 wxPyEndAllowThreads(__tstate
);
4461 if (PyErr_Occurred()) SWIG_fail
;
4463 resultobj
= SWIG_Py_Void();
4470 SWIGINTERN PyObject
*_wrap_Pen_SetColour(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
4471 PyObject
*resultobj
= 0;
4472 wxPen
*arg1
= (wxPen
*) 0 ;
4473 wxColour
*arg2
= 0 ;
4477 PyObject
* obj0
= 0 ;
4478 PyObject
* obj1
= 0 ;
4479 char * kwnames
[] = {
4480 (char *) "self",(char *) "colour", NULL
4483 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Pen_SetColour",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
4484 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPen
, 0 | 0 );
4485 if (!SWIG_IsOK(res1
)) {
4486 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4488 arg1
= reinterpret_cast< wxPen
* >(argp1
);
4491 if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
;
4494 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4495 (arg1
)->SetColour(*arg2
);
4496 wxPyEndAllowThreads(__tstate
);
4497 if (PyErr_Occurred()) SWIG_fail
;
4499 resultobj
= SWIG_Py_Void();
4506 SWIGINTERN PyObject
*_wrap_Pen_SetJoin(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
4507 PyObject
*resultobj
= 0;
4508 wxPen
*arg1
= (wxPen
*) 0 ;
4514 PyObject
* obj0
= 0 ;
4515 PyObject
* obj1
= 0 ;
4516 char * kwnames
[] = {
4517 (char *) "self",(char *) "join_style", NULL
4520 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Pen_SetJoin",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
4521 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPen
, 0 | 0 );
4522 if (!SWIG_IsOK(res1
)) {
4523 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4525 arg1
= reinterpret_cast< wxPen
* >(argp1
);
4526 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
4527 if (!SWIG_IsOK(ecode2
)) {
4528 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
4530 arg2
= static_cast< int >(val2
);
4532 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4533 (arg1
)->SetJoin(arg2
);
4534 wxPyEndAllowThreads(__tstate
);
4535 if (PyErr_Occurred()) SWIG_fail
;
4537 resultobj
= SWIG_Py_Void();
4544 SWIGINTERN PyObject
*_wrap_Pen_SetStyle(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
4545 PyObject
*resultobj
= 0;
4546 wxPen
*arg1
= (wxPen
*) 0 ;
4552 PyObject
* obj0
= 0 ;
4553 PyObject
* obj1
= 0 ;
4554 char * kwnames
[] = {
4555 (char *) "self",(char *) "style", NULL
4558 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Pen_SetStyle",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
4559 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPen
, 0 | 0 );
4560 if (!SWIG_IsOK(res1
)) {
4561 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4563 arg1
= reinterpret_cast< wxPen
* >(argp1
);
4564 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
4565 if (!SWIG_IsOK(ecode2
)) {
4566 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
4568 arg2
= static_cast< int >(val2
);
4570 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4571 (arg1
)->SetStyle(arg2
);
4572 wxPyEndAllowThreads(__tstate
);
4573 if (PyErr_Occurred()) SWIG_fail
;
4575 resultobj
= SWIG_Py_Void();
4582 SWIGINTERN PyObject
*_wrap_Pen_SetWidth(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
4583 PyObject
*resultobj
= 0;
4584 wxPen
*arg1
= (wxPen
*) 0 ;
4590 PyObject
* obj0
= 0 ;
4591 PyObject
* obj1
= 0 ;
4592 char * kwnames
[] = {
4593 (char *) "self",(char *) "width", NULL
4596 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Pen_SetWidth",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
4597 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPen
, 0 | 0 );
4598 if (!SWIG_IsOK(res1
)) {
4599 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4601 arg1
= reinterpret_cast< wxPen
* >(argp1
);
4602 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
4603 if (!SWIG_IsOK(ecode2
)) {
4604 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
4606 arg2
= static_cast< int >(val2
);
4608 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4609 (arg1
)->SetWidth(arg2
);
4610 wxPyEndAllowThreads(__tstate
);
4611 if (PyErr_Occurred()) SWIG_fail
;
4613 resultobj
= SWIG_Py_Void();
4620 SWIGINTERN PyObject
*_wrap_Pen_SetDashes(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
4621 PyObject
*resultobj
= 0;
4622 wxPen
*arg1
= (wxPen
*) 0 ;
4624 wxDash
*arg3
= (wxDash
*) 0 ;
4627 PyObject
* obj0
= 0 ;
4628 PyObject
* obj1
= 0 ;
4629 char * kwnames
[] = {
4630 (char *) "self",(char *) "dashes", NULL
4633 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Pen_SetDashes",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
4634 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPen
, 0 | 0 );
4635 if (!SWIG_IsOK(res1
)) {
4636 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4638 arg1
= reinterpret_cast< wxPen
* >(argp1
);
4640 arg2
= PyList_Size(obj1
);
4641 arg3
= (wxDash
*)byte_LIST_helper(obj1
);
4642 if (arg3
== NULL
) SWIG_fail
;
4645 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4646 (arg1
)->SetDashes(arg2
,arg3
);
4647 wxPyEndAllowThreads(__tstate
);
4648 if (PyErr_Occurred()) SWIG_fail
;
4650 resultobj
= SWIG_Py_Void();
4652 if (arg3
) delete [] arg3
;
4657 if (arg3
) delete [] arg3
;
4663 SWIGINTERN PyObject
*_wrap_Pen_GetDashes(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
4664 PyObject
*resultobj
= 0;
4665 wxPen
*arg1
= (wxPen
*) 0 ;
4666 PyObject
*result
= 0 ;
4669 PyObject
*swig_obj
[1] ;
4671 if (!args
) SWIG_fail
;
4673 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxPen
, 0 | 0 );
4674 if (!SWIG_IsOK(res1
)) {
4675 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4677 arg1
= reinterpret_cast< wxPen
* >(argp1
);
4679 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4680 result
= (PyObject
*)wxPen_GetDashes(arg1
);
4681 wxPyEndAllowThreads(__tstate
);
4682 if (PyErr_Occurred()) SWIG_fail
;
4691 SWIGINTERN PyObject
*_wrap_Pen__SetDashes(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
4692 PyObject
*resultobj
= 0;
4693 wxPen
*arg1
= (wxPen
*) 0 ;
4694 PyObject
*arg2
= (PyObject
*) 0 ;
4695 PyObject
*arg3
= (PyObject
*) 0 ;
4698 PyObject
* obj0
= 0 ;
4699 PyObject
* obj1
= 0 ;
4700 PyObject
* obj2
= 0 ;
4701 char * kwnames
[] = {
4702 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
4705 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:Pen__SetDashes",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
4706 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPen
, 0 | 0 );
4707 if (!SWIG_IsOK(res1
)) {
4708 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4710 arg1
= reinterpret_cast< wxPen
* >(argp1
);
4714 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4715 wxPen__SetDashes(arg1
,arg2
,arg3
);
4716 wxPyEndAllowThreads(__tstate
);
4717 if (PyErr_Occurred()) SWIG_fail
;
4719 resultobj
= SWIG_Py_Void();
4726 SWIGINTERN PyObject
*_wrap_Pen_GetDashCount(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
4727 PyObject
*resultobj
= 0;
4728 wxPen
*arg1
= (wxPen
*) 0 ;
4732 PyObject
*swig_obj
[1] ;
4734 if (!args
) SWIG_fail
;
4736 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxPen
, 0 | 0 );
4737 if (!SWIG_IsOK(res1
)) {
4738 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
4740 arg1
= reinterpret_cast< wxPen
* >(argp1
);
4742 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4743 result
= (int)((wxPen
const *)arg1
)->GetDashCount();
4744 wxPyEndAllowThreads(__tstate
);
4745 if (PyErr_Occurred()) SWIG_fail
;
4747 resultobj
= SWIG_From_int(static_cast< int >(result
));
4754 SWIGINTERN PyObject
*_wrap_Pen_GetStipple(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
4755 PyObject
*resultobj
= 0;
4756 wxPen
*arg1
= (wxPen
*) 0 ;
4757 wxBitmap
*result
= 0 ;
4760 PyObject
*swig_obj
[1] ;
4762 if (!args
) SWIG_fail
;
4764 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxPen
, 0 | 0 );
4765 if (!SWIG_IsOK(res1
)) {
4766 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Pen_GetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
4768 arg1
= reinterpret_cast< wxPen
* >(argp1
);
4770 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4771 result
= (wxBitmap
*)(arg1
)->GetStipple();
4772 wxPyEndAllowThreads(__tstate
);
4773 if (PyErr_Occurred()) SWIG_fail
;
4775 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxBitmap
, 0 | 0 );
4782 SWIGINTERN PyObject
*_wrap_Pen_SetStipple(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
4783 PyObject
*resultobj
= 0;
4784 wxPen
*arg1
= (wxPen
*) 0 ;
4785 wxBitmap
*arg2
= 0 ;
4790 PyObject
* obj0
= 0 ;
4791 PyObject
* obj1
= 0 ;
4792 char * kwnames
[] = {
4793 (char *) "self",(char *) "stipple", NULL
4796 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Pen_SetStipple",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
4797 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPen
, 0 | 0 );
4798 if (!SWIG_IsOK(res1
)) {
4799 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Pen_SetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
4801 arg1
= reinterpret_cast< wxPen
* >(argp1
);
4802 res2
= SWIG_ConvertPtr(obj1
, &argp2
, SWIGTYPE_p_wxBitmap
, 0 );
4803 if (!SWIG_IsOK(res2
)) {
4804 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
4807 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
4809 arg2
= reinterpret_cast< wxBitmap
* >(argp2
);
4811 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4812 (arg1
)->SetStipple(*arg2
);
4813 wxPyEndAllowThreads(__tstate
);
4814 if (PyErr_Occurred()) SWIG_fail
;
4816 resultobj
= SWIG_Py_Void();
4823 SWIGINTERN PyObject
*_wrap_Pen___eq__(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
4824 PyObject
*resultobj
= 0;
4825 wxPen
*arg1
= (wxPen
*) 0 ;
4826 wxPen
*arg2
= (wxPen
*) 0 ;
4832 PyObject
* obj0
= 0 ;
4833 PyObject
* obj1
= 0 ;
4834 char * kwnames
[] = {
4835 (char *) "self",(char *) "other", NULL
4838 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Pen___eq__",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
4839 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPen
, 0 | 0 );
4840 if (!SWIG_IsOK(res1
)) {
4841 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
4843 arg1
= reinterpret_cast< wxPen
* >(argp1
);
4844 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxPen
, 0 | 0 );
4845 if (!SWIG_IsOK(res2
)) {
4846 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
4848 arg2
= reinterpret_cast< wxPen
* >(argp2
);
4850 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4851 result
= (bool)wxPen___eq__(arg1
,(wxPen
const *)arg2
);
4852 wxPyEndAllowThreads(__tstate
);
4853 if (PyErr_Occurred()) SWIG_fail
;
4856 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
4864 SWIGINTERN PyObject
*_wrap_Pen___ne__(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
4865 PyObject
*resultobj
= 0;
4866 wxPen
*arg1
= (wxPen
*) 0 ;
4867 wxPen
*arg2
= (wxPen
*) 0 ;
4873 PyObject
* obj0
= 0 ;
4874 PyObject
* obj1
= 0 ;
4875 char * kwnames
[] = {
4876 (char *) "self",(char *) "other", NULL
4879 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Pen___ne__",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
4880 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPen
, 0 | 0 );
4881 if (!SWIG_IsOK(res1
)) {
4882 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
4884 arg1
= reinterpret_cast< wxPen
* >(argp1
);
4885 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxPen
, 0 | 0 );
4886 if (!SWIG_IsOK(res2
)) {
4887 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
4889 arg2
= reinterpret_cast< wxPen
* >(argp2
);
4891 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4892 result
= (bool)wxPen___ne__(arg1
,(wxPen
const *)arg2
);
4893 wxPyEndAllowThreads(__tstate
);
4894 if (PyErr_Occurred()) SWIG_fail
;
4897 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
4905 SWIGINTERN PyObject
*Pen_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
4907 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
4908 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen
, SWIG_NewClientData(obj
));
4909 return SWIG_Py_Void();
4912 SWIGINTERN PyObject
*Pen_swiginit(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
4913 return SWIG_Python_InitShadowInstance(args
);
4916 SWIGINTERN PyObject
*_wrap_new_Brush(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
4917 PyObject
*resultobj
= 0;
4918 wxColour
*arg1
= 0 ;
4919 int arg2
= (int) wxSOLID
;
4920 wxBrush
*result
= 0 ;
4924 PyObject
* obj0
= 0 ;
4925 PyObject
* obj1
= 0 ;
4926 char * kwnames
[] = {
4927 (char *) "colour",(char *) "style", NULL
4930 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:new_Brush",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
4933 if ( ! wxColour_helper(obj0
, &arg1
)) SWIG_fail
;
4936 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
4937 if (!SWIG_IsOK(ecode2
)) {
4938 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
4940 arg2
= static_cast< int >(val2
);
4943 if (!wxPyCheckForApp()) SWIG_fail
;
4944 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4945 result
= (wxBrush
*)new wxBrush((wxColour
const &)*arg1
,arg2
);
4946 wxPyEndAllowThreads(__tstate
);
4947 if (PyErr_Occurred()) SWIG_fail
;
4949 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxBrush
, SWIG_POINTER_NEW
| 0 );
4956 SWIGINTERN PyObject
*_wrap_new_BrushFromBitmap(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
4957 PyObject
*resultobj
= 0;
4958 wxBitmap
*arg1
= 0 ;
4959 wxBrush
*result
= 0 ;
4962 PyObject
* obj0
= 0 ;
4963 char * kwnames
[] = {
4964 (char *) "stippleBitmap", NULL
4967 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:new_BrushFromBitmap",kwnames
,&obj0
)) SWIG_fail
;
4968 res1
= SWIG_ConvertPtr(obj0
, &argp1
, SWIGTYPE_p_wxBitmap
, 0 | 0);
4969 if (!SWIG_IsOK(res1
)) {
4970 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
4973 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
4975 arg1
= reinterpret_cast< wxBitmap
* >(argp1
);
4977 if (!wxPyCheckForApp()) SWIG_fail
;
4978 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4979 result
= (wxBrush
*)new wxBrush((wxBitmap
const &)*arg1
);
4980 wxPyEndAllowThreads(__tstate
);
4981 if (PyErr_Occurred()) SWIG_fail
;
4983 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxBrush
, SWIG_POINTER_OWN
| 0 );
4990 SWIGINTERN PyObject
*_wrap_delete_Brush(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
4991 PyObject
*resultobj
= 0;
4992 wxBrush
*arg1
= (wxBrush
*) 0 ;
4995 PyObject
*swig_obj
[1] ;
4997 if (!args
) SWIG_fail
;
4999 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxBrush
, SWIG_POINTER_DISOWN
| 0 );
5000 if (!SWIG_IsOK(res1
)) {
5001 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5003 arg1
= reinterpret_cast< wxBrush
* >(argp1
);
5005 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5008 wxPyEndAllowThreads(__tstate
);
5009 if (PyErr_Occurred()) SWIG_fail
;
5011 resultobj
= SWIG_Py_Void();
5018 SWIGINTERN PyObject
*_wrap_Brush_SetColour(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
5019 PyObject
*resultobj
= 0;
5020 wxBrush
*arg1
= (wxBrush
*) 0 ;
5021 wxColour
*arg2
= 0 ;
5025 PyObject
* obj0
= 0 ;
5026 PyObject
* obj1
= 0 ;
5027 char * kwnames
[] = {
5028 (char *) "self",(char *) "col", NULL
5031 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Brush_SetColour",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
5032 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxBrush
, 0 | 0 );
5033 if (!SWIG_IsOK(res1
)) {
5034 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5036 arg1
= reinterpret_cast< wxBrush
* >(argp1
);
5039 if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
;
5042 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5043 (arg1
)->SetColour((wxColour
const &)*arg2
);
5044 wxPyEndAllowThreads(__tstate
);
5045 if (PyErr_Occurred()) SWIG_fail
;
5047 resultobj
= SWIG_Py_Void();
5054 SWIGINTERN PyObject
*_wrap_Brush_SetStyle(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
5055 PyObject
*resultobj
= 0;
5056 wxBrush
*arg1
= (wxBrush
*) 0 ;
5062 PyObject
* obj0
= 0 ;
5063 PyObject
* obj1
= 0 ;
5064 char * kwnames
[] = {
5065 (char *) "self",(char *) "style", NULL
5068 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Brush_SetStyle",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
5069 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxBrush
, 0 | 0 );
5070 if (!SWIG_IsOK(res1
)) {
5071 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5073 arg1
= reinterpret_cast< wxBrush
* >(argp1
);
5074 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
5075 if (!SWIG_IsOK(ecode2
)) {
5076 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5078 arg2
= static_cast< int >(val2
);
5080 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5081 (arg1
)->SetStyle(arg2
);
5082 wxPyEndAllowThreads(__tstate
);
5083 if (PyErr_Occurred()) SWIG_fail
;
5085 resultobj
= SWIG_Py_Void();
5092 SWIGINTERN PyObject
*_wrap_Brush_SetStipple(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
5093 PyObject
*resultobj
= 0;
5094 wxBrush
*arg1
= (wxBrush
*) 0 ;
5095 wxBitmap
*arg2
= 0 ;
5100 PyObject
* obj0
= 0 ;
5101 PyObject
* obj1
= 0 ;
5102 char * kwnames
[] = {
5103 (char *) "self",(char *) "stipple", NULL
5106 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Brush_SetStipple",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
5107 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxBrush
, 0 | 0 );
5108 if (!SWIG_IsOK(res1
)) {
5109 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5111 arg1
= reinterpret_cast< wxBrush
* >(argp1
);
5112 res2
= SWIG_ConvertPtr(obj1
, &argp2
, SWIGTYPE_p_wxBitmap
, 0 | 0);
5113 if (!SWIG_IsOK(res2
)) {
5114 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5117 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5119 arg2
= reinterpret_cast< wxBitmap
* >(argp2
);
5121 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5122 (arg1
)->SetStipple((wxBitmap
const &)*arg2
);
5123 wxPyEndAllowThreads(__tstate
);
5124 if (PyErr_Occurred()) SWIG_fail
;
5126 resultobj
= SWIG_Py_Void();
5133 SWIGINTERN PyObject
*_wrap_Brush_GetColour(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
5134 PyObject
*resultobj
= 0;
5135 wxBrush
*arg1
= (wxBrush
*) 0 ;
5139 PyObject
*swig_obj
[1] ;
5141 if (!args
) SWIG_fail
;
5143 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxBrush
, 0 | 0 );
5144 if (!SWIG_IsOK(res1
)) {
5145 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5147 arg1
= reinterpret_cast< wxBrush
* >(argp1
);
5149 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5150 result
= ((wxBrush
const *)arg1
)->GetColour();
5151 wxPyEndAllowThreads(__tstate
);
5152 if (PyErr_Occurred()) SWIG_fail
;
5154 resultobj
= SWIG_NewPointerObj((new wxColour(static_cast< const wxColour
& >(result
))), SWIGTYPE_p_wxColour
, SWIG_POINTER_OWN
| 0 );
5161 SWIGINTERN PyObject
*_wrap_Brush_GetStyle(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
5162 PyObject
*resultobj
= 0;
5163 wxBrush
*arg1
= (wxBrush
*) 0 ;
5167 PyObject
*swig_obj
[1] ;
5169 if (!args
) SWIG_fail
;
5171 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxBrush
, 0 | 0 );
5172 if (!SWIG_IsOK(res1
)) {
5173 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5175 arg1
= reinterpret_cast< wxBrush
* >(argp1
);
5177 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5178 result
= (int)((wxBrush
const *)arg1
)->GetStyle();
5179 wxPyEndAllowThreads(__tstate
);
5180 if (PyErr_Occurred()) SWIG_fail
;
5182 resultobj
= SWIG_From_int(static_cast< int >(result
));
5189 SWIGINTERN PyObject
*_wrap_Brush_GetStipple(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
5190 PyObject
*resultobj
= 0;
5191 wxBrush
*arg1
= (wxBrush
*) 0 ;
5192 wxBitmap
*result
= 0 ;
5195 PyObject
*swig_obj
[1] ;
5197 if (!args
) SWIG_fail
;
5199 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxBrush
, 0 | 0 );
5200 if (!SWIG_IsOK(res1
)) {
5201 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5203 arg1
= reinterpret_cast< wxBrush
* >(argp1
);
5205 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5206 result
= (wxBitmap
*)((wxBrush
const *)arg1
)->GetStipple();
5207 wxPyEndAllowThreads(__tstate
);
5208 if (PyErr_Occurred()) SWIG_fail
;
5210 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxBitmap
, 0 | 0 );
5217 SWIGINTERN PyObject
*_wrap_Brush_IsHatch(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
5218 PyObject
*resultobj
= 0;
5219 wxBrush
*arg1
= (wxBrush
*) 0 ;
5223 PyObject
*swig_obj
[1] ;
5225 if (!args
) SWIG_fail
;
5227 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxBrush
, 0 | 0 );
5228 if (!SWIG_IsOK(res1
)) {
5229 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5231 arg1
= reinterpret_cast< wxBrush
* >(argp1
);
5233 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5234 result
= (bool)((wxBrush
const *)arg1
)->IsHatch();
5235 wxPyEndAllowThreads(__tstate
);
5236 if (PyErr_Occurred()) SWIG_fail
;
5239 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
5247 SWIGINTERN PyObject
*_wrap_Brush_Ok(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
5248 PyObject
*resultobj
= 0;
5249 wxBrush
*arg1
= (wxBrush
*) 0 ;
5253 PyObject
*swig_obj
[1] ;
5255 if (!args
) SWIG_fail
;
5257 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxBrush
, 0 | 0 );
5258 if (!SWIG_IsOK(res1
)) {
5259 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Brush_Ok" "', expected argument " "1"" of type '" "wxBrush *""'");
5261 arg1
= reinterpret_cast< wxBrush
* >(argp1
);
5263 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5264 result
= (bool)(arg1
)->Ok();
5265 wxPyEndAllowThreads(__tstate
);
5266 if (PyErr_Occurred()) SWIG_fail
;
5269 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
5277 SWIGINTERN PyObject
*Brush_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
5279 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
5280 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush
, SWIG_NewClientData(obj
));
5281 return SWIG_Py_Void();
5284 SWIGINTERN PyObject
*Brush_swiginit(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
5285 return SWIG_Python_InitShadowInstance(args
);
5288 SWIGINTERN PyObject
*_wrap_new_Bitmap(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
5289 PyObject
*resultobj
= 0;
5290 wxString
*arg1
= 0 ;
5291 wxBitmapType arg2
= (wxBitmapType
) wxBITMAP_TYPE_ANY
;
5292 wxBitmap
*result
= 0 ;
5293 bool temp1
= false ;
5296 PyObject
* obj0
= 0 ;
5297 PyObject
* obj1
= 0 ;
5298 char * kwnames
[] = {
5299 (char *) "name",(char *) "type", NULL
5302 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:new_Bitmap",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
5304 arg1
= wxString_in_helper(obj0
);
5305 if (arg1
== NULL
) SWIG_fail
;
5309 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
5310 if (!SWIG_IsOK(ecode2
)) {
5311 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
5313 arg2
= static_cast< wxBitmapType
>(val2
);
5316 if (!wxPyCheckForApp()) SWIG_fail
;
5317 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5318 result
= (wxBitmap
*)new wxBitmap((wxString
const &)*arg1
,arg2
);
5319 wxPyEndAllowThreads(__tstate
);
5320 if (PyErr_Occurred()) SWIG_fail
;
5322 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxBitmap
, SWIG_POINTER_NEW
| 0 );
5337 SWIGINTERN PyObject
*_wrap_delete_Bitmap(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
5338 PyObject
*resultobj
= 0;
5339 wxBitmap
*arg1
= (wxBitmap
*) 0 ;
5342 PyObject
*swig_obj
[1] ;
5344 if (!args
) SWIG_fail
;
5346 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxBitmap
, SWIG_POINTER_DISOWN
| 0 );
5347 if (!SWIG_IsOK(res1
)) {
5348 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
5350 arg1
= reinterpret_cast< wxBitmap
* >(argp1
);
5352 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5355 wxPyEndAllowThreads(__tstate
);
5356 if (PyErr_Occurred()) SWIG_fail
;
5358 resultobj
= SWIG_Py_Void();
5365 SWIGINTERN PyObject
*_wrap_new_EmptyBitmap(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
5366 PyObject
*resultobj
= 0;
5369 int arg3
= (int) -1 ;
5370 wxBitmap
*result
= 0 ;
5377 PyObject
* obj0
= 0 ;
5378 PyObject
* obj1
= 0 ;
5379 PyObject
* obj2
= 0 ;
5380 char * kwnames
[] = {
5381 (char *) "width",(char *) "height",(char *) "depth", NULL
5384 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:new_EmptyBitmap",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
5385 ecode1
= SWIG_AsVal_int(obj0
, &val1
);
5386 if (!SWIG_IsOK(ecode1
)) {
5387 SWIG_exception_fail(SWIG_ArgError(ecode1
), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
5389 arg1
= static_cast< int >(val1
);
5390 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
5391 if (!SWIG_IsOK(ecode2
)) {
5392 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
5394 arg2
= static_cast< int >(val2
);
5396 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
5397 if (!SWIG_IsOK(ecode3
)) {
5398 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
5400 arg3
= static_cast< int >(val3
);
5403 if (!wxPyCheckForApp()) SWIG_fail
;
5404 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5405 result
= (wxBitmap
*)new wxBitmap(arg1
,arg2
,arg3
);
5406 wxPyEndAllowThreads(__tstate
);
5407 if (PyErr_Occurred()) SWIG_fail
;
5409 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxBitmap
, SWIG_POINTER_OWN
| 0 );
5416 SWIGINTERN PyObject
*_wrap_new_BitmapFromIcon(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
5417 PyObject
*resultobj
= 0;
5419 wxBitmap
*result
= 0 ;
5422 PyObject
* obj0
= 0 ;
5423 char * kwnames
[] = {
5424 (char *) "icon", NULL
5427 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:new_BitmapFromIcon",kwnames
,&obj0
)) SWIG_fail
;
5428 res1
= SWIG_ConvertPtr(obj0
, &argp1
, SWIGTYPE_p_wxIcon
, 0 | 0);
5429 if (!SWIG_IsOK(res1
)) {
5430 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5433 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5435 arg1
= reinterpret_cast< wxIcon
* >(argp1
);
5437 if (!wxPyCheckForApp()) SWIG_fail
;
5438 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5439 result
= (wxBitmap
*)new wxBitmap((wxIcon
const &)*arg1
);
5440 wxPyEndAllowThreads(__tstate
);
5441 if (PyErr_Occurred()) SWIG_fail
;
5443 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxBitmap
, SWIG_POINTER_OWN
| 0 );
5450 SWIGINTERN PyObject
*_wrap_new_BitmapFromImage(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
5451 PyObject
*resultobj
= 0;
5453 int arg2
= (int) -1 ;
5454 wxBitmap
*result
= 0 ;
5459 PyObject
* obj0
= 0 ;
5460 PyObject
* obj1
= 0 ;
5461 char * kwnames
[] = {
5462 (char *) "image",(char *) "depth", NULL
5465 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:new_BitmapFromImage",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
5466 res1
= SWIG_ConvertPtr(obj0
, &argp1
, SWIGTYPE_p_wxImage
, 0 | 0);
5467 if (!SWIG_IsOK(res1
)) {
5468 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5471 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5473 arg1
= reinterpret_cast< wxImage
* >(argp1
);
5475 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
5476 if (!SWIG_IsOK(ecode2
)) {
5477 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
5479 arg2
= static_cast< int >(val2
);
5482 if (!wxPyCheckForApp()) SWIG_fail
;
5483 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5484 result
= (wxBitmap
*)new wxBitmap((wxImage
const &)*arg1
,arg2
);
5485 wxPyEndAllowThreads(__tstate
);
5486 if (PyErr_Occurred()) SWIG_fail
;
5488 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxBitmap
, SWIG_POINTER_OWN
| 0 );
5495 SWIGINTERN PyObject
*_wrap_new_BitmapFromXPMData(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
5496 PyObject
*resultobj
= 0;
5497 PyObject
*arg1
= (PyObject
*) 0 ;
5498 wxBitmap
*result
= 0 ;
5499 PyObject
* obj0
= 0 ;
5500 char * kwnames
[] = {
5501 (char *) "listOfStrings", NULL
5504 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:new_BitmapFromXPMData",kwnames
,&obj0
)) SWIG_fail
;
5507 if (!wxPyCheckForApp()) SWIG_fail
;
5508 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5509 result
= (wxBitmap
*)new_wxBitmap(arg1
);
5510 wxPyEndAllowThreads(__tstate
);
5511 if (PyErr_Occurred()) SWIG_fail
;
5513 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxBitmap
, SWIG_POINTER_OWN
| 0 );
5520 SWIGINTERN PyObject
*_wrap_new_BitmapFromBits(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
5521 PyObject
*resultobj
= 0;
5522 PyObject
*arg1
= (PyObject
*) 0 ;
5525 int arg4
= (int) 1 ;
5526 wxBitmap
*result
= 0 ;
5533 PyObject
* obj0
= 0 ;
5534 PyObject
* obj1
= 0 ;
5535 PyObject
* obj2
= 0 ;
5536 PyObject
* obj3
= 0 ;
5537 char * kwnames
[] = {
5538 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
5541 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO|O:new_BitmapFromBits",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) SWIG_fail
;
5543 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
5544 if (!SWIG_IsOK(ecode2
)) {
5545 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
5547 arg2
= static_cast< int >(val2
);
5548 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
5549 if (!SWIG_IsOK(ecode3
)) {
5550 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
5552 arg3
= static_cast< int >(val3
);
5554 ecode4
= SWIG_AsVal_int(obj3
, &val4
);
5555 if (!SWIG_IsOK(ecode4
)) {
5556 SWIG_exception_fail(SWIG_ArgError(ecode4
), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
5558 arg4
= static_cast< int >(val4
);
5561 if (!wxPyCheckForApp()) SWIG_fail
;
5562 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5563 result
= (wxBitmap
*)new_wxBitmap(arg1
,arg2
,arg3
,arg4
);
5564 wxPyEndAllowThreads(__tstate
);
5565 if (PyErr_Occurred()) SWIG_fail
;
5567 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxBitmap
, SWIG_POINTER_OWN
| 0 );
5574 SWIGINTERN PyObject
*_wrap_Bitmap_GetHandle(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
5575 PyObject
*resultobj
= 0;
5576 wxBitmap
*arg1
= (wxBitmap
*) 0 ;
5580 PyObject
*swig_obj
[1] ;
5582 if (!args
) SWIG_fail
;
5584 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxBitmap
, 0 | 0 );
5585 if (!SWIG_IsOK(res1
)) {
5586 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Bitmap_GetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
5588 arg1
= reinterpret_cast< wxBitmap
* >(argp1
);
5590 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5591 result
= (long)(arg1
)->GetHandle();
5592 wxPyEndAllowThreads(__tstate
);
5593 if (PyErr_Occurred()) SWIG_fail
;
5595 resultobj
= SWIG_From_long(static_cast< long >(result
));
5602 SWIGINTERN PyObject
*_wrap_Bitmap_SetHandle(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
5603 PyObject
*resultobj
= 0;
5604 wxBitmap
*arg1
= (wxBitmap
*) 0 ;
5610 PyObject
* obj0
= 0 ;
5611 PyObject
* obj1
= 0 ;
5612 char * kwnames
[] = {
5613 (char *) "self",(char *) "handle", NULL
5616 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Bitmap_SetHandle",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
5617 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxBitmap
, 0 | 0 );
5618 if (!SWIG_IsOK(res1
)) {
5619 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Bitmap_SetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
5621 arg1
= reinterpret_cast< wxBitmap
* >(argp1
);
5622 ecode2
= SWIG_AsVal_long(obj1
, &val2
);
5623 if (!SWIG_IsOK(ecode2
)) {
5624 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "Bitmap_SetHandle" "', expected argument " "2"" of type '" "long""'");
5626 arg2
= static_cast< long >(val2
);
5628 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5629 wxBitmap_SetHandle(arg1
,arg2
);
5630 wxPyEndAllowThreads(__tstate
);
5631 if (PyErr_Occurred()) SWIG_fail
;
5633 resultobj
= SWIG_Py_Void();
5640 SWIGINTERN PyObject
*_wrap_Bitmap_Ok(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
5641 PyObject
*resultobj
= 0;
5642 wxBitmap
*arg1
= (wxBitmap
*) 0 ;
5646 PyObject
*swig_obj
[1] ;
5648 if (!args
) SWIG_fail
;
5650 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxBitmap
, 0 | 0 );
5651 if (!SWIG_IsOK(res1
)) {
5652 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Bitmap_Ok" "', expected argument " "1"" of type '" "wxBitmap *""'");
5654 arg1
= reinterpret_cast< wxBitmap
* >(argp1
);
5656 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5657 result
= (bool)(arg1
)->Ok();
5658 wxPyEndAllowThreads(__tstate
);
5659 if (PyErr_Occurred()) SWIG_fail
;
5662 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
5670 SWIGINTERN PyObject
*_wrap_Bitmap_GetWidth(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
5671 PyObject
*resultobj
= 0;
5672 wxBitmap
*arg1
= (wxBitmap
*) 0 ;
5676 PyObject
*swig_obj
[1] ;
5678 if (!args
) SWIG_fail
;
5680 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxBitmap
, 0 | 0 );
5681 if (!SWIG_IsOK(res1
)) {
5682 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
5684 arg1
= reinterpret_cast< wxBitmap
* >(argp1
);
5686 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5687 result
= (int)(arg1
)->GetWidth();
5688 wxPyEndAllowThreads(__tstate
);
5689 if (PyErr_Occurred()) SWIG_fail
;
5691 resultobj
= SWIG_From_int(static_cast< int >(result
));
5698 SWIGINTERN PyObject
*_wrap_Bitmap_GetHeight(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
5699 PyObject
*resultobj
= 0;
5700 wxBitmap
*arg1
= (wxBitmap
*) 0 ;
5704 PyObject
*swig_obj
[1] ;
5706 if (!args
) SWIG_fail
;
5708 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxBitmap
, 0 | 0 );
5709 if (!SWIG_IsOK(res1
)) {
5710 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
5712 arg1
= reinterpret_cast< wxBitmap
* >(argp1
);
5714 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5715 result
= (int)(arg1
)->GetHeight();
5716 wxPyEndAllowThreads(__tstate
);
5717 if (PyErr_Occurred()) SWIG_fail
;
5719 resultobj
= SWIG_From_int(static_cast< int >(result
));
5726 SWIGINTERN PyObject
*_wrap_Bitmap_GetDepth(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
5727 PyObject
*resultobj
= 0;
5728 wxBitmap
*arg1
= (wxBitmap
*) 0 ;
5732 PyObject
*swig_obj
[1] ;
5734 if (!args
) SWIG_fail
;
5736 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxBitmap
, 0 | 0 );
5737 if (!SWIG_IsOK(res1
)) {
5738 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
5740 arg1
= reinterpret_cast< wxBitmap
* >(argp1
);
5742 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5743 result
= (int)(arg1
)->GetDepth();
5744 wxPyEndAllowThreads(__tstate
);
5745 if (PyErr_Occurred()) SWIG_fail
;
5747 resultobj
= SWIG_From_int(static_cast< int >(result
));
5754 SWIGINTERN PyObject
*_wrap_Bitmap_GetSize(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
5755 PyObject
*resultobj
= 0;
5756 wxBitmap
*arg1
= (wxBitmap
*) 0 ;
5760 PyObject
*swig_obj
[1] ;
5762 if (!args
) SWIG_fail
;
5764 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxBitmap
, 0 | 0 );
5765 if (!SWIG_IsOK(res1
)) {
5766 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
5768 arg1
= reinterpret_cast< wxBitmap
* >(argp1
);
5770 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5771 result
= wxBitmap_GetSize(arg1
);
5772 wxPyEndAllowThreads(__tstate
);
5773 if (PyErr_Occurred()) SWIG_fail
;
5775 resultobj
= SWIG_NewPointerObj((new wxSize(static_cast< const wxSize
& >(result
))), SWIGTYPE_p_wxSize
, SWIG_POINTER_OWN
| 0 );
5782 SWIGINTERN PyObject
*_wrap_Bitmap_ConvertToImage(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
5783 PyObject
*resultobj
= 0;
5784 wxBitmap
*arg1
= (wxBitmap
*) 0 ;
5785 SwigValueWrapper
<wxImage
> result
;
5788 PyObject
*swig_obj
[1] ;
5790 if (!args
) SWIG_fail
;
5792 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxBitmap
, 0 | 0 );
5793 if (!SWIG_IsOK(res1
)) {
5794 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5796 arg1
= reinterpret_cast< wxBitmap
* >(argp1
);
5798 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5799 result
= ((wxBitmap
const *)arg1
)->ConvertToImage();
5800 wxPyEndAllowThreads(__tstate
);
5801 if (PyErr_Occurred()) SWIG_fail
;
5803 resultobj
= SWIG_NewPointerObj((new wxImage(static_cast< const wxImage
& >(result
))), SWIGTYPE_p_wxImage
, SWIG_POINTER_OWN
| 0 );
5810 SWIGINTERN PyObject
*_wrap_Bitmap_GetMask(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
5811 PyObject
*resultobj
= 0;
5812 wxBitmap
*arg1
= (wxBitmap
*) 0 ;
5813 wxMask
*result
= 0 ;
5816 PyObject
*swig_obj
[1] ;
5818 if (!args
) SWIG_fail
;
5820 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxBitmap
, 0 | 0 );
5821 if (!SWIG_IsOK(res1
)) {
5822 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5824 arg1
= reinterpret_cast< wxBitmap
* >(argp1
);
5826 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5827 result
= (wxMask
*)((wxBitmap
const *)arg1
)->GetMask();
5828 wxPyEndAllowThreads(__tstate
);
5829 if (PyErr_Occurred()) SWIG_fail
;
5831 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxMask
, 0 | 0 );
5838 SWIGINTERN PyObject
*_wrap_Bitmap_SetMask(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
5839 PyObject
*resultobj
= 0;
5840 wxBitmap
*arg1
= (wxBitmap
*) 0 ;
5841 wxMask
*arg2
= (wxMask
*) 0 ;
5845 PyObject
* obj0
= 0 ;
5846 PyObject
* obj1
= 0 ;
5847 char * kwnames
[] = {
5848 (char *) "self",(char *) "mask", NULL
5851 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Bitmap_SetMask",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
5852 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxBitmap
, 0 | 0 );
5853 if (!SWIG_IsOK(res1
)) {
5854 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
5856 arg1
= reinterpret_cast< wxBitmap
* >(argp1
);
5857 res2
= SWIG_ConvertPtr(obj1
, SWIG_as_voidptrptr(&arg2
), SWIGTYPE_p_wxMask
, SWIG_POINTER_DISOWN
| 0 );
5858 if (!SWIG_IsOK(res2
)) {
5859 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
5862 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5863 (arg1
)->SetMask(arg2
);
5864 wxPyEndAllowThreads(__tstate
);
5865 if (PyErr_Occurred()) SWIG_fail
;
5867 resultobj
= SWIG_Py_Void();
5874 SWIGINTERN PyObject
*_wrap_Bitmap_SetMaskColour(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
5875 PyObject
*resultobj
= 0;
5876 wxBitmap
*arg1
= (wxBitmap
*) 0 ;
5877 wxColour
*arg2
= 0 ;
5881 PyObject
* obj0
= 0 ;
5882 PyObject
* obj1
= 0 ;
5883 char * kwnames
[] = {
5884 (char *) "self",(char *) "colour", NULL
5887 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Bitmap_SetMaskColour",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
5888 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxBitmap
, 0 | 0 );
5889 if (!SWIG_IsOK(res1
)) {
5890 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
5892 arg1
= reinterpret_cast< wxBitmap
* >(argp1
);
5895 if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
;
5898 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5899 wxBitmap_SetMaskColour(arg1
,(wxColour
const &)*arg2
);
5900 wxPyEndAllowThreads(__tstate
);
5901 if (PyErr_Occurred()) SWIG_fail
;
5903 resultobj
= SWIG_Py_Void();
5910 SWIGINTERN PyObject
*_wrap_Bitmap_GetSubBitmap(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
5911 PyObject
*resultobj
= 0;
5912 wxBitmap
*arg1
= (wxBitmap
*) 0 ;
5914 SwigValueWrapper
<wxBitmap
> result
;
5918 PyObject
* obj0
= 0 ;
5919 PyObject
* obj1
= 0 ;
5920 char * kwnames
[] = {
5921 (char *) "self",(char *) "rect", NULL
5924 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Bitmap_GetSubBitmap",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
5925 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxBitmap
, 0 | 0 );
5926 if (!SWIG_IsOK(res1
)) {
5927 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5929 arg1
= reinterpret_cast< wxBitmap
* >(argp1
);
5932 if ( ! wxRect_helper(obj1
, &arg2
)) SWIG_fail
;
5935 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5936 result
= ((wxBitmap
const *)arg1
)->GetSubBitmap((wxRect
const &)*arg2
);
5937 wxPyEndAllowThreads(__tstate
);
5938 if (PyErr_Occurred()) SWIG_fail
;
5940 resultobj
= SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap
& >(result
))), SWIGTYPE_p_wxBitmap
, SWIG_POINTER_OWN
| 0 );
5947 SWIGINTERN PyObject
*_wrap_Bitmap_SaveFile(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
5948 PyObject
*resultobj
= 0;
5949 wxBitmap
*arg1
= (wxBitmap
*) 0 ;
5950 wxString
*arg2
= 0 ;
5952 wxPalette
*arg4
= (wxPalette
*) NULL
;
5956 bool temp2
= false ;
5961 PyObject
* obj0
= 0 ;
5962 PyObject
* obj1
= 0 ;
5963 PyObject
* obj2
= 0 ;
5964 PyObject
* obj3
= 0 ;
5965 char * kwnames
[] = {
5966 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
5969 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO|O:Bitmap_SaveFile",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) SWIG_fail
;
5970 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxBitmap
, 0 | 0 );
5971 if (!SWIG_IsOK(res1
)) {
5972 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
5974 arg1
= reinterpret_cast< wxBitmap
* >(argp1
);
5976 arg2
= wxString_in_helper(obj1
);
5977 if (arg2
== NULL
) SWIG_fail
;
5980 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
5981 if (!SWIG_IsOK(ecode3
)) {
5982 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
5984 arg3
= static_cast< wxBitmapType
>(val3
);
5986 res4
= SWIG_ConvertPtr(obj3
, &argp4
,SWIGTYPE_p_wxPalette
, 0 | 0 );
5987 if (!SWIG_IsOK(res4
)) {
5988 SWIG_exception_fail(SWIG_ArgError(res4
), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
5990 arg4
= reinterpret_cast< wxPalette
* >(argp4
);
5993 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5994 result
= (bool)(arg1
)->SaveFile((wxString
const &)*arg2
,arg3
,arg4
);
5995 wxPyEndAllowThreads(__tstate
);
5996 if (PyErr_Occurred()) SWIG_fail
;
5999 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
6015 SWIGINTERN PyObject
*_wrap_Bitmap_LoadFile(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
6016 PyObject
*resultobj
= 0;
6017 wxBitmap
*arg1
= (wxBitmap
*) 0 ;
6018 wxString
*arg2
= 0 ;
6023 bool temp2
= false ;
6026 PyObject
* obj0
= 0 ;
6027 PyObject
* obj1
= 0 ;
6028 PyObject
* obj2
= 0 ;
6029 char * kwnames
[] = {
6030 (char *) "self",(char *) "name",(char *) "type", NULL
6033 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:Bitmap_LoadFile",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
6034 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxBitmap
, 0 | 0 );
6035 if (!SWIG_IsOK(res1
)) {
6036 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6038 arg1
= reinterpret_cast< wxBitmap
* >(argp1
);
6040 arg2
= wxString_in_helper(obj1
);
6041 if (arg2
== NULL
) SWIG_fail
;
6044 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
6045 if (!SWIG_IsOK(ecode3
)) {
6046 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6048 arg3
= static_cast< wxBitmapType
>(val3
);
6050 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6051 result
= (bool)(arg1
)->LoadFile((wxString
const &)*arg2
,arg3
);
6052 wxPyEndAllowThreads(__tstate
);
6053 if (PyErr_Occurred()) SWIG_fail
;
6056 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
6072 SWIGINTERN PyObject
*_wrap_Bitmap_GetPalette(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
6073 PyObject
*resultobj
= 0;
6074 wxBitmap
*arg1
= (wxBitmap
*) 0 ;
6075 wxPalette
*result
= 0 ;
6078 PyObject
*swig_obj
[1] ;
6080 if (!args
) SWIG_fail
;
6082 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxBitmap
, 0 | 0 );
6083 if (!SWIG_IsOK(res1
)) {
6084 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6086 arg1
= reinterpret_cast< wxBitmap
* >(argp1
);
6088 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6089 result
= (wxPalette
*)((wxBitmap
const *)arg1
)->GetPalette();
6090 wxPyEndAllowThreads(__tstate
);
6091 if (PyErr_Occurred()) SWIG_fail
;
6093 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxPalette
, 0 | 0 );
6100 SWIGINTERN PyObject
*_wrap_Bitmap_SetPalette(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
6101 PyObject
*resultobj
= 0;
6102 wxBitmap
*arg1
= (wxBitmap
*) 0 ;
6103 wxPalette
*arg2
= 0 ;
6108 PyObject
* obj0
= 0 ;
6109 PyObject
* obj1
= 0 ;
6110 char * kwnames
[] = {
6111 (char *) "self",(char *) "palette", NULL
6114 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Bitmap_SetPalette",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
6115 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxBitmap
, 0 | 0 );
6116 if (!SWIG_IsOK(res1
)) {
6117 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Bitmap_SetPalette" "', expected argument " "1"" of type '" "wxBitmap *""'");
6119 arg1
= reinterpret_cast< wxBitmap
* >(argp1
);
6120 res2
= SWIG_ConvertPtr(obj1
, &argp2
, SWIGTYPE_p_wxPalette
, 0 | 0);
6121 if (!SWIG_IsOK(res2
)) {
6122 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6125 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6127 arg2
= reinterpret_cast< wxPalette
* >(argp2
);
6129 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6130 (arg1
)->SetPalette((wxPalette
const &)*arg2
);
6131 wxPyEndAllowThreads(__tstate
);
6132 if (PyErr_Occurred()) SWIG_fail
;
6134 resultobj
= SWIG_Py_Void();
6141 SWIGINTERN PyObject
*_wrap_Bitmap_CopyFromIcon(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
6142 PyObject
*resultobj
= 0;
6143 wxBitmap
*arg1
= (wxBitmap
*) 0 ;
6150 PyObject
* obj0
= 0 ;
6151 PyObject
* obj1
= 0 ;
6152 char * kwnames
[] = {
6153 (char *) "self",(char *) "icon", NULL
6156 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Bitmap_CopyFromIcon",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
6157 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxBitmap
, 0 | 0 );
6158 if (!SWIG_IsOK(res1
)) {
6159 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6161 arg1
= reinterpret_cast< wxBitmap
* >(argp1
);
6162 res2
= SWIG_ConvertPtr(obj1
, &argp2
, SWIGTYPE_p_wxIcon
, 0 | 0);
6163 if (!SWIG_IsOK(res2
)) {
6164 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6167 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6169 arg2
= reinterpret_cast< wxIcon
* >(argp2
);
6171 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6172 result
= (bool)(arg1
)->CopyFromIcon((wxIcon
const &)*arg2
);
6173 wxPyEndAllowThreads(__tstate
);
6174 if (PyErr_Occurred()) SWIG_fail
;
6177 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
6185 SWIGINTERN PyObject
*_wrap_Bitmap_SetHeight(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
6186 PyObject
*resultobj
= 0;
6187 wxBitmap
*arg1
= (wxBitmap
*) 0 ;
6193 PyObject
* obj0
= 0 ;
6194 PyObject
* obj1
= 0 ;
6195 char * kwnames
[] = {
6196 (char *) "self",(char *) "height", NULL
6199 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Bitmap_SetHeight",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
6200 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxBitmap
, 0 | 0 );
6201 if (!SWIG_IsOK(res1
)) {
6202 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6204 arg1
= reinterpret_cast< wxBitmap
* >(argp1
);
6205 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
6206 if (!SWIG_IsOK(ecode2
)) {
6207 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6209 arg2
= static_cast< int >(val2
);
6211 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6212 (arg1
)->SetHeight(arg2
);
6213 wxPyEndAllowThreads(__tstate
);
6214 if (PyErr_Occurred()) SWIG_fail
;
6216 resultobj
= SWIG_Py_Void();
6223 SWIGINTERN PyObject
*_wrap_Bitmap_SetWidth(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
6224 PyObject
*resultobj
= 0;
6225 wxBitmap
*arg1
= (wxBitmap
*) 0 ;
6231 PyObject
* obj0
= 0 ;
6232 PyObject
* obj1
= 0 ;
6233 char * kwnames
[] = {
6234 (char *) "self",(char *) "width", NULL
6237 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Bitmap_SetWidth",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
6238 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxBitmap
, 0 | 0 );
6239 if (!SWIG_IsOK(res1
)) {
6240 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6242 arg1
= reinterpret_cast< wxBitmap
* >(argp1
);
6243 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
6244 if (!SWIG_IsOK(ecode2
)) {
6245 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6247 arg2
= static_cast< int >(val2
);
6249 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6250 (arg1
)->SetWidth(arg2
);
6251 wxPyEndAllowThreads(__tstate
);
6252 if (PyErr_Occurred()) SWIG_fail
;
6254 resultobj
= SWIG_Py_Void();
6261 SWIGINTERN PyObject
*_wrap_Bitmap_SetDepth(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
6262 PyObject
*resultobj
= 0;
6263 wxBitmap
*arg1
= (wxBitmap
*) 0 ;
6269 PyObject
* obj0
= 0 ;
6270 PyObject
* obj1
= 0 ;
6271 char * kwnames
[] = {
6272 (char *) "self",(char *) "depth", NULL
6275 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Bitmap_SetDepth",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
6276 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxBitmap
, 0 | 0 );
6277 if (!SWIG_IsOK(res1
)) {
6278 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6280 arg1
= reinterpret_cast< wxBitmap
* >(argp1
);
6281 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
6282 if (!SWIG_IsOK(ecode2
)) {
6283 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6285 arg2
= static_cast< int >(val2
);
6287 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6288 (arg1
)->SetDepth(arg2
);
6289 wxPyEndAllowThreads(__tstate
);
6290 if (PyErr_Occurred()) SWIG_fail
;
6292 resultobj
= SWIG_Py_Void();
6299 SWIGINTERN PyObject
*_wrap_Bitmap_SetSize(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
6300 PyObject
*resultobj
= 0;
6301 wxBitmap
*arg1
= (wxBitmap
*) 0 ;
6306 PyObject
* obj0
= 0 ;
6307 PyObject
* obj1
= 0 ;
6308 char * kwnames
[] = {
6309 (char *) "self",(char *) "size", NULL
6312 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Bitmap_SetSize",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
6313 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxBitmap
, 0 | 0 );
6314 if (!SWIG_IsOK(res1
)) {
6315 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6317 arg1
= reinterpret_cast< wxBitmap
* >(argp1
);
6320 if ( ! wxSize_helper(obj1
, &arg2
)) SWIG_fail
;
6323 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6324 wxBitmap_SetSize(arg1
,(wxSize
const &)*arg2
);
6325 wxPyEndAllowThreads(__tstate
);
6326 if (PyErr_Occurred()) SWIG_fail
;
6328 resultobj
= SWIG_Py_Void();
6335 SWIGINTERN PyObject
*_wrap_Bitmap_CopyFromCursor(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
6336 PyObject
*resultobj
= 0;
6337 wxBitmap
*arg1
= (wxBitmap
*) 0 ;
6338 wxCursor
*arg2
= 0 ;
6344 PyObject
* obj0
= 0 ;
6345 PyObject
* obj1
= 0 ;
6346 char * kwnames
[] = {
6347 (char *) "self",(char *) "cursor", NULL
6350 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Bitmap_CopyFromCursor",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
6351 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxBitmap
, 0 | 0 );
6352 if (!SWIG_IsOK(res1
)) {
6353 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "1"" of type '" "wxBitmap *""'");
6355 arg1
= reinterpret_cast< wxBitmap
* >(argp1
);
6356 res2
= SWIG_ConvertPtr(obj1
, &argp2
, SWIGTYPE_p_wxCursor
, 0 | 0);
6357 if (!SWIG_IsOK(res2
)) {
6358 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
6361 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
6363 arg2
= reinterpret_cast< wxCursor
* >(argp2
);
6365 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6366 result
= (bool)(arg1
)->CopyFromCursor((wxCursor
const &)*arg2
);
6367 wxPyEndAllowThreads(__tstate
);
6368 if (PyErr_Occurred()) SWIG_fail
;
6371 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
6379 SWIGINTERN PyObject
*_wrap_Bitmap___eq__(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
6380 PyObject
*resultobj
= 0;
6381 wxBitmap
*arg1
= (wxBitmap
*) 0 ;
6382 wxBitmap
*arg2
= (wxBitmap
*) 0 ;
6388 PyObject
* obj0
= 0 ;
6389 PyObject
* obj1
= 0 ;
6390 char * kwnames
[] = {
6391 (char *) "self",(char *) "other", NULL
6394 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Bitmap___eq__",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
6395 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxBitmap
, 0 | 0 );
6396 if (!SWIG_IsOK(res1
)) {
6397 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6399 arg1
= reinterpret_cast< wxBitmap
* >(argp1
);
6400 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxBitmap
, 0 | 0 );
6401 if (!SWIG_IsOK(res2
)) {
6402 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6404 arg2
= reinterpret_cast< wxBitmap
* >(argp2
);
6406 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6407 result
= (bool)wxBitmap___eq__(arg1
,(wxBitmap
const *)arg2
);
6408 wxPyEndAllowThreads(__tstate
);
6409 if (PyErr_Occurred()) SWIG_fail
;
6412 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
6420 SWIGINTERN PyObject
*_wrap_Bitmap___ne__(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
6421 PyObject
*resultobj
= 0;
6422 wxBitmap
*arg1
= (wxBitmap
*) 0 ;
6423 wxBitmap
*arg2
= (wxBitmap
*) 0 ;
6429 PyObject
* obj0
= 0 ;
6430 PyObject
* obj1
= 0 ;
6431 char * kwnames
[] = {
6432 (char *) "self",(char *) "other", NULL
6435 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Bitmap___ne__",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
6436 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxBitmap
, 0 | 0 );
6437 if (!SWIG_IsOK(res1
)) {
6438 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6440 arg1
= reinterpret_cast< wxBitmap
* >(argp1
);
6441 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxBitmap
, 0 | 0 );
6442 if (!SWIG_IsOK(res2
)) {
6443 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6445 arg2
= reinterpret_cast< wxBitmap
* >(argp2
);
6447 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6448 result
= (bool)wxBitmap___ne__(arg1
,(wxBitmap
const *)arg2
);
6449 wxPyEndAllowThreads(__tstate
);
6450 if (PyErr_Occurred()) SWIG_fail
;
6453 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
6461 SWIGINTERN PyObject
*Bitmap_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
6463 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
6464 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap
, SWIG_NewClientData(obj
));
6465 return SWIG_Py_Void();
6468 SWIGINTERN PyObject
*Bitmap_swiginit(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
6469 return SWIG_Python_InitShadowInstance(args
);
6472 SWIGINTERN PyObject
*_wrap_new_Mask(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
6473 PyObject
*resultobj
= 0;
6474 wxBitmap
*arg1
= 0 ;
6475 wxColour
const &arg2_defvalue
= wxNullColour
;
6476 wxColour
*arg2
= (wxColour
*) &arg2_defvalue
;
6477 wxMask
*result
= 0 ;
6481 PyObject
* obj0
= 0 ;
6482 PyObject
* obj1
= 0 ;
6483 char * kwnames
[] = {
6484 (char *) "bitmap",(char *) "colour", NULL
6487 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:new_Mask",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
6488 res1
= SWIG_ConvertPtr(obj0
, &argp1
, SWIGTYPE_p_wxBitmap
, 0 | 0);
6489 if (!SWIG_IsOK(res1
)) {
6490 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6493 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6495 arg1
= reinterpret_cast< wxBitmap
* >(argp1
);
6499 if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
;
6503 if (!wxPyCheckForApp()) SWIG_fail
;
6504 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6505 result
= (wxMask
*)new_wxMask((wxBitmap
const &)*arg1
,(wxColour
const &)*arg2
);
6506 wxPyEndAllowThreads(__tstate
);
6507 if (PyErr_Occurred()) SWIG_fail
;
6509 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxMask
, SWIG_POINTER_NEW
| 0 );
6516 SWIGINTERN PyObject
*_wrap_delete_Mask(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
6517 PyObject
*resultobj
= 0;
6518 wxMask
*arg1
= (wxMask
*) 0 ;
6521 PyObject
*swig_obj
[1] ;
6523 if (!args
) SWIG_fail
;
6525 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxMask
, SWIG_POINTER_DISOWN
| 0 );
6526 if (!SWIG_IsOK(res1
)) {
6527 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
6529 arg1
= reinterpret_cast< wxMask
* >(argp1
);
6531 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6534 wxPyEndAllowThreads(__tstate
);
6535 if (PyErr_Occurred()) SWIG_fail
;
6537 resultobj
= SWIG_Py_Void();
6544 SWIGINTERN PyObject
*Mask_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
6546 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
6547 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask
, SWIG_NewClientData(obj
));
6548 return SWIG_Py_Void();
6551 SWIGINTERN PyObject
*Mask_swiginit(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
6552 return SWIG_Python_InitShadowInstance(args
);
6555 SWIGINTERN PyObject
*_wrap_new_Icon(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
6556 PyObject
*resultobj
= 0;
6557 wxString
*arg1
= 0 ;
6559 int arg3
= (int) -1 ;
6560 int arg4
= (int) -1 ;
6561 wxIcon
*result
= 0 ;
6562 bool temp1
= false ;
6569 PyObject
* obj0
= 0 ;
6570 PyObject
* obj1
= 0 ;
6571 PyObject
* obj2
= 0 ;
6572 PyObject
* obj3
= 0 ;
6573 char * kwnames
[] = {
6574 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
6577 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|OO:new_Icon",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) SWIG_fail
;
6579 arg1
= wxString_in_helper(obj0
);
6580 if (arg1
== NULL
) SWIG_fail
;
6583 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
6584 if (!SWIG_IsOK(ecode2
)) {
6585 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
6587 arg2
= static_cast< wxBitmapType
>(val2
);
6589 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
6590 if (!SWIG_IsOK(ecode3
)) {
6591 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
6593 arg3
= static_cast< int >(val3
);
6596 ecode4
= SWIG_AsVal_int(obj3
, &val4
);
6597 if (!SWIG_IsOK(ecode4
)) {
6598 SWIG_exception_fail(SWIG_ArgError(ecode4
), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
6600 arg4
= static_cast< int >(val4
);
6603 if (!wxPyCheckForApp()) SWIG_fail
;
6604 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6605 result
= (wxIcon
*)new wxIcon((wxString
const &)*arg1
,arg2
,arg3
,arg4
);
6606 wxPyEndAllowThreads(__tstate
);
6607 if (PyErr_Occurred()) SWIG_fail
;
6609 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxIcon
, SWIG_POINTER_NEW
| 0 );
6624 SWIGINTERN PyObject
*_wrap_delete_Icon(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
6625 PyObject
*resultobj
= 0;
6626 wxIcon
*arg1
= (wxIcon
*) 0 ;
6629 PyObject
*swig_obj
[1] ;
6631 if (!args
) SWIG_fail
;
6633 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxIcon
, SWIG_POINTER_DISOWN
| 0 );
6634 if (!SWIG_IsOK(res1
)) {
6635 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
6637 arg1
= reinterpret_cast< wxIcon
* >(argp1
);
6639 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6642 wxPyEndAllowThreads(__tstate
);
6643 if (PyErr_Occurred()) SWIG_fail
;
6645 resultobj
= SWIG_Py_Void();
6652 SWIGINTERN PyObject
*_wrap_new_EmptyIcon(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
6653 PyObject
*resultobj
= 0;
6654 wxIcon
*result
= 0 ;
6656 if (!SWIG_Python_UnpackTuple(args
,"new_EmptyIcon",0,0,0)) SWIG_fail
;
6658 if (!wxPyCheckForApp()) SWIG_fail
;
6659 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6660 result
= (wxIcon
*)new wxIcon();
6661 wxPyEndAllowThreads(__tstate
);
6662 if (PyErr_Occurred()) SWIG_fail
;
6664 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxIcon
, SWIG_POINTER_OWN
| 0 );
6671 SWIGINTERN PyObject
*_wrap_new_IconFromLocation(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
6672 PyObject
*resultobj
= 0;
6673 wxIconLocation
*arg1
= 0 ;
6674 wxIcon
*result
= 0 ;
6677 PyObject
* obj0
= 0 ;
6678 char * kwnames
[] = {
6679 (char *) "loc", NULL
6682 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:new_IconFromLocation",kwnames
,&obj0
)) SWIG_fail
;
6683 res1
= SWIG_ConvertPtr(obj0
, &argp1
, SWIGTYPE_p_wxIconLocation
, 0 | 0);
6684 if (!SWIG_IsOK(res1
)) {
6685 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
6688 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
6690 arg1
= reinterpret_cast< wxIconLocation
* >(argp1
);
6692 if (!wxPyCheckForApp()) SWIG_fail
;
6693 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6694 result
= (wxIcon
*)new wxIcon((wxIconLocation
const &)*arg1
);
6695 wxPyEndAllowThreads(__tstate
);
6696 if (PyErr_Occurred()) SWIG_fail
;
6698 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxIcon
, SWIG_POINTER_OWN
| 0 );
6705 SWIGINTERN PyObject
*_wrap_new_IconFromBitmap(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
6706 PyObject
*resultobj
= 0;
6707 wxBitmap
*arg1
= 0 ;
6708 wxIcon
*result
= 0 ;
6711 PyObject
* obj0
= 0 ;
6712 char * kwnames
[] = {
6713 (char *) "bmp", NULL
6716 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:new_IconFromBitmap",kwnames
,&obj0
)) SWIG_fail
;
6717 res1
= SWIG_ConvertPtr(obj0
, &argp1
, SWIGTYPE_p_wxBitmap
, 0 | 0);
6718 if (!SWIG_IsOK(res1
)) {
6719 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6722 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6724 arg1
= reinterpret_cast< wxBitmap
* >(argp1
);
6726 if (!wxPyCheckForApp()) SWIG_fail
;
6727 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6728 result
= (wxIcon
*)new_wxIcon((wxBitmap
const &)*arg1
);
6729 wxPyEndAllowThreads(__tstate
);
6730 if (PyErr_Occurred()) SWIG_fail
;
6732 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxIcon
, SWIG_POINTER_OWN
| 0 );
6739 SWIGINTERN PyObject
*_wrap_new_IconFromXPMData(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
6740 PyObject
*resultobj
= 0;
6741 PyObject
*arg1
= (PyObject
*) 0 ;
6742 wxIcon
*result
= 0 ;
6743 PyObject
* obj0
= 0 ;
6744 char * kwnames
[] = {
6745 (char *) "listOfStrings", NULL
6748 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:new_IconFromXPMData",kwnames
,&obj0
)) SWIG_fail
;
6751 if (!wxPyCheckForApp()) SWIG_fail
;
6752 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6753 result
= (wxIcon
*)new_wxIcon(arg1
);
6754 wxPyEndAllowThreads(__tstate
);
6755 if (PyErr_Occurred()) SWIG_fail
;
6757 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxIcon
, SWIG_POINTER_OWN
| 0 );
6764 SWIGINTERN PyObject
*_wrap_Icon_LoadFile(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
6765 PyObject
*resultobj
= 0;
6766 wxIcon
*arg1
= (wxIcon
*) 0 ;
6767 wxString
*arg2
= 0 ;
6772 bool temp2
= false ;
6775 PyObject
* obj0
= 0 ;
6776 PyObject
* obj1
= 0 ;
6777 PyObject
* obj2
= 0 ;
6778 char * kwnames
[] = {
6779 (char *) "self",(char *) "name",(char *) "type", NULL
6782 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:Icon_LoadFile",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
6783 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxIcon
, 0 | 0 );
6784 if (!SWIG_IsOK(res1
)) {
6785 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
6787 arg1
= reinterpret_cast< wxIcon
* >(argp1
);
6789 arg2
= wxString_in_helper(obj1
);
6790 if (arg2
== NULL
) SWIG_fail
;
6793 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
6794 if (!SWIG_IsOK(ecode3
)) {
6795 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6797 arg3
= static_cast< wxBitmapType
>(val3
);
6799 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6800 result
= (bool)(arg1
)->LoadFile((wxString
const &)*arg2
,arg3
);
6801 wxPyEndAllowThreads(__tstate
);
6802 if (PyErr_Occurred()) SWIG_fail
;
6805 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
6821 SWIGINTERN PyObject
*_wrap_Icon_GetHandle(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
6822 PyObject
*resultobj
= 0;
6823 wxIcon
*arg1
= (wxIcon
*) 0 ;
6827 PyObject
*swig_obj
[1] ;
6829 if (!args
) SWIG_fail
;
6831 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxIcon
, 0 | 0 );
6832 if (!SWIG_IsOK(res1
)) {
6833 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Icon_GetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
6835 arg1
= reinterpret_cast< wxIcon
* >(argp1
);
6837 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6838 result
= (long)(arg1
)->GetHandle();
6839 wxPyEndAllowThreads(__tstate
);
6840 if (PyErr_Occurred()) SWIG_fail
;
6842 resultobj
= SWIG_From_long(static_cast< long >(result
));
6849 SWIGINTERN PyObject
*_wrap_Icon_SetHandle(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
6850 PyObject
*resultobj
= 0;
6851 wxIcon
*arg1
= (wxIcon
*) 0 ;
6857 PyObject
* obj0
= 0 ;
6858 PyObject
* obj1
= 0 ;
6859 char * kwnames
[] = {
6860 (char *) "self",(char *) "handle", NULL
6863 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Icon_SetHandle",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
6864 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxIcon
, 0 | 0 );
6865 if (!SWIG_IsOK(res1
)) {
6866 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Icon_SetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
6868 arg1
= reinterpret_cast< wxIcon
* >(argp1
);
6869 ecode2
= SWIG_AsVal_long(obj1
, &val2
);
6870 if (!SWIG_IsOK(ecode2
)) {
6871 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "Icon_SetHandle" "', expected argument " "2"" of type '" "long""'");
6873 arg2
= static_cast< long >(val2
);
6875 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6876 wxIcon_SetHandle(arg1
,arg2
);
6877 wxPyEndAllowThreads(__tstate
);
6878 if (PyErr_Occurred()) SWIG_fail
;
6880 resultobj
= SWIG_Py_Void();
6887 SWIGINTERN PyObject
*_wrap_Icon_Ok(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
6888 PyObject
*resultobj
= 0;
6889 wxIcon
*arg1
= (wxIcon
*) 0 ;
6893 PyObject
*swig_obj
[1] ;
6895 if (!args
) SWIG_fail
;
6897 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxIcon
, 0 | 0 );
6898 if (!SWIG_IsOK(res1
)) {
6899 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Icon_Ok" "', expected argument " "1"" of type '" "wxIcon *""'");
6901 arg1
= reinterpret_cast< wxIcon
* >(argp1
);
6903 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6904 result
= (bool)(arg1
)->Ok();
6905 wxPyEndAllowThreads(__tstate
);
6906 if (PyErr_Occurred()) SWIG_fail
;
6909 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
6917 SWIGINTERN PyObject
*_wrap_Icon_GetWidth(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
6918 PyObject
*resultobj
= 0;
6919 wxIcon
*arg1
= (wxIcon
*) 0 ;
6923 PyObject
*swig_obj
[1] ;
6925 if (!args
) SWIG_fail
;
6927 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxIcon
, 0 | 0 );
6928 if (!SWIG_IsOK(res1
)) {
6929 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
6931 arg1
= reinterpret_cast< wxIcon
* >(argp1
);
6933 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6934 result
= (int)(arg1
)->GetWidth();
6935 wxPyEndAllowThreads(__tstate
);
6936 if (PyErr_Occurred()) SWIG_fail
;
6938 resultobj
= SWIG_From_int(static_cast< int >(result
));
6945 SWIGINTERN PyObject
*_wrap_Icon_GetHeight(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
6946 PyObject
*resultobj
= 0;
6947 wxIcon
*arg1
= (wxIcon
*) 0 ;
6951 PyObject
*swig_obj
[1] ;
6953 if (!args
) SWIG_fail
;
6955 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxIcon
, 0 | 0 );
6956 if (!SWIG_IsOK(res1
)) {
6957 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
6959 arg1
= reinterpret_cast< wxIcon
* >(argp1
);
6961 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6962 result
= (int)(arg1
)->GetHeight();
6963 wxPyEndAllowThreads(__tstate
);
6964 if (PyErr_Occurred()) SWIG_fail
;
6966 resultobj
= SWIG_From_int(static_cast< int >(result
));
6973 SWIGINTERN PyObject
*_wrap_Icon_GetDepth(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
6974 PyObject
*resultobj
= 0;
6975 wxIcon
*arg1
= (wxIcon
*) 0 ;
6979 PyObject
*swig_obj
[1] ;
6981 if (!args
) SWIG_fail
;
6983 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxIcon
, 0 | 0 );
6984 if (!SWIG_IsOK(res1
)) {
6985 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
6987 arg1
= reinterpret_cast< wxIcon
* >(argp1
);
6989 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6990 result
= (int)(arg1
)->GetDepth();
6991 wxPyEndAllowThreads(__tstate
);
6992 if (PyErr_Occurred()) SWIG_fail
;
6994 resultobj
= SWIG_From_int(static_cast< int >(result
));
7001 SWIGINTERN PyObject
*_wrap_Icon_SetWidth(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
7002 PyObject
*resultobj
= 0;
7003 wxIcon
*arg1
= (wxIcon
*) 0 ;
7009 PyObject
* obj0
= 0 ;
7010 PyObject
* obj1
= 0 ;
7011 char * kwnames
[] = {
7012 (char *) "self",(char *) "w", NULL
7015 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Icon_SetWidth",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
7016 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxIcon
, 0 | 0 );
7017 if (!SWIG_IsOK(res1
)) {
7018 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
7020 arg1
= reinterpret_cast< wxIcon
* >(argp1
);
7021 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
7022 if (!SWIG_IsOK(ecode2
)) {
7023 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
7025 arg2
= static_cast< int >(val2
);
7027 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7028 (arg1
)->SetWidth(arg2
);
7029 wxPyEndAllowThreads(__tstate
);
7030 if (PyErr_Occurred()) SWIG_fail
;
7032 resultobj
= SWIG_Py_Void();
7039 SWIGINTERN PyObject
*_wrap_Icon_SetHeight(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
7040 PyObject
*resultobj
= 0;
7041 wxIcon
*arg1
= (wxIcon
*) 0 ;
7047 PyObject
* obj0
= 0 ;
7048 PyObject
* obj1
= 0 ;
7049 char * kwnames
[] = {
7050 (char *) "self",(char *) "h", NULL
7053 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Icon_SetHeight",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
7054 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxIcon
, 0 | 0 );
7055 if (!SWIG_IsOK(res1
)) {
7056 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
7058 arg1
= reinterpret_cast< wxIcon
* >(argp1
);
7059 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
7060 if (!SWIG_IsOK(ecode2
)) {
7061 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
7063 arg2
= static_cast< int >(val2
);
7065 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7066 (arg1
)->SetHeight(arg2
);
7067 wxPyEndAllowThreads(__tstate
);
7068 if (PyErr_Occurred()) SWIG_fail
;
7070 resultobj
= SWIG_Py_Void();
7077 SWIGINTERN PyObject
*_wrap_Icon_SetDepth(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
7078 PyObject
*resultobj
= 0;
7079 wxIcon
*arg1
= (wxIcon
*) 0 ;
7085 PyObject
* obj0
= 0 ;
7086 PyObject
* obj1
= 0 ;
7087 char * kwnames
[] = {
7088 (char *) "self",(char *) "d", NULL
7091 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Icon_SetDepth",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
7092 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxIcon
, 0 | 0 );
7093 if (!SWIG_IsOK(res1
)) {
7094 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
7096 arg1
= reinterpret_cast< wxIcon
* >(argp1
);
7097 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
7098 if (!SWIG_IsOK(ecode2
)) {
7099 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
7101 arg2
= static_cast< int >(val2
);
7103 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7104 (arg1
)->SetDepth(arg2
);
7105 wxPyEndAllowThreads(__tstate
);
7106 if (PyErr_Occurred()) SWIG_fail
;
7108 resultobj
= SWIG_Py_Void();
7115 SWIGINTERN PyObject
*_wrap_Icon_SetSize(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
7116 PyObject
*resultobj
= 0;
7117 wxIcon
*arg1
= (wxIcon
*) 0 ;
7122 PyObject
* obj0
= 0 ;
7123 PyObject
* obj1
= 0 ;
7124 char * kwnames
[] = {
7125 (char *) "self",(char *) "size", NULL
7128 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Icon_SetSize",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
7129 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxIcon
, 0 | 0 );
7130 if (!SWIG_IsOK(res1
)) {
7131 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Icon_SetSize" "', expected argument " "1"" of type '" "wxIcon *""'");
7133 arg1
= reinterpret_cast< wxIcon
* >(argp1
);
7136 if ( ! wxSize_helper(obj1
, &arg2
)) SWIG_fail
;
7139 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7140 (arg1
)->SetSize((wxSize
const &)*arg2
);
7141 wxPyEndAllowThreads(__tstate
);
7142 if (PyErr_Occurred()) SWIG_fail
;
7144 resultobj
= SWIG_Py_Void();
7151 SWIGINTERN PyObject
*_wrap_Icon_CopyFromBitmap(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
7152 PyObject
*resultobj
= 0;
7153 wxIcon
*arg1
= (wxIcon
*) 0 ;
7154 wxBitmap
*arg2
= 0 ;
7159 PyObject
* obj0
= 0 ;
7160 PyObject
* obj1
= 0 ;
7161 char * kwnames
[] = {
7162 (char *) "self",(char *) "bmp", NULL
7165 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Icon_CopyFromBitmap",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
7166 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxIcon
, 0 | 0 );
7167 if (!SWIG_IsOK(res1
)) {
7168 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
7170 arg1
= reinterpret_cast< wxIcon
* >(argp1
);
7171 res2
= SWIG_ConvertPtr(obj1
, &argp2
, SWIGTYPE_p_wxBitmap
, 0 | 0);
7172 if (!SWIG_IsOK(res2
)) {
7173 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
7176 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
7178 arg2
= reinterpret_cast< wxBitmap
* >(argp2
);
7180 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7181 (arg1
)->CopyFromBitmap((wxBitmap
const &)*arg2
);
7182 wxPyEndAllowThreads(__tstate
);
7183 if (PyErr_Occurred()) SWIG_fail
;
7185 resultobj
= SWIG_Py_Void();
7192 SWIGINTERN PyObject
*Icon_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
7194 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
7195 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon
, SWIG_NewClientData(obj
));
7196 return SWIG_Py_Void();
7199 SWIGINTERN PyObject
*Icon_swiginit(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
7200 return SWIG_Python_InitShadowInstance(args
);
7203 SWIGINTERN PyObject
*_wrap_new_IconLocation(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
7204 PyObject
*resultobj
= 0;
7205 wxString
*arg1
= (wxString
*) &wxPyEmptyString
;
7206 int arg2
= (int) 0 ;
7207 wxIconLocation
*result
= 0 ;
7208 bool temp1
= false ;
7211 PyObject
* obj0
= 0 ;
7212 PyObject
* obj1
= 0 ;
7213 char * kwnames
[] = {
7214 (char *) "filename",(char *) "num", NULL
7217 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|OO:new_IconLocation",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
7220 arg1
= wxString_in_helper(obj0
);
7221 if (arg1
== NULL
) SWIG_fail
;
7226 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
7227 if (!SWIG_IsOK(ecode2
)) {
7228 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
7230 arg2
= static_cast< int >(val2
);
7233 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7234 result
= (wxIconLocation
*)new_wxIconLocation((wxString
const *)arg1
,arg2
);
7235 wxPyEndAllowThreads(__tstate
);
7236 if (PyErr_Occurred()) SWIG_fail
;
7238 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxIconLocation
, SWIG_POINTER_NEW
| 0 );
7253 SWIGINTERN PyObject
*_wrap_delete_IconLocation(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
7254 PyObject
*resultobj
= 0;
7255 wxIconLocation
*arg1
= (wxIconLocation
*) 0 ;
7258 PyObject
*swig_obj
[1] ;
7260 if (!args
) SWIG_fail
;
7262 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxIconLocation
, SWIG_POINTER_DISOWN
| 0 );
7263 if (!SWIG_IsOK(res1
)) {
7264 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7266 arg1
= reinterpret_cast< wxIconLocation
* >(argp1
);
7268 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7271 wxPyEndAllowThreads(__tstate
);
7272 if (PyErr_Occurred()) SWIG_fail
;
7274 resultobj
= SWIG_Py_Void();
7281 SWIGINTERN PyObject
*_wrap_IconLocation_IsOk(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
7282 PyObject
*resultobj
= 0;
7283 wxIconLocation
*arg1
= (wxIconLocation
*) 0 ;
7287 PyObject
*swig_obj
[1] ;
7289 if (!args
) SWIG_fail
;
7291 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxIconLocation
, 0 | 0 );
7292 if (!SWIG_IsOK(res1
)) {
7293 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
7295 arg1
= reinterpret_cast< wxIconLocation
* >(argp1
);
7297 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7298 result
= (bool)((wxIconLocation
const *)arg1
)->IsOk();
7299 wxPyEndAllowThreads(__tstate
);
7300 if (PyErr_Occurred()) SWIG_fail
;
7303 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
7311 SWIGINTERN PyObject
*_wrap_IconLocation_SetFileName(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
7312 PyObject
*resultobj
= 0;
7313 wxIconLocation
*arg1
= (wxIconLocation
*) 0 ;
7314 wxString
*arg2
= 0 ;
7317 bool temp2
= false ;
7318 PyObject
* obj0
= 0 ;
7319 PyObject
* obj1
= 0 ;
7320 char * kwnames
[] = {
7321 (char *) "self",(char *) "filename", NULL
7324 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:IconLocation_SetFileName",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
7325 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxIconLocation
, 0 | 0 );
7326 if (!SWIG_IsOK(res1
)) {
7327 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7329 arg1
= reinterpret_cast< wxIconLocation
* >(argp1
);
7331 arg2
= wxString_in_helper(obj1
);
7332 if (arg2
== NULL
) SWIG_fail
;
7336 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7337 (arg1
)->SetFileName((wxString
const &)*arg2
);
7338 wxPyEndAllowThreads(__tstate
);
7339 if (PyErr_Occurred()) SWIG_fail
;
7341 resultobj
= SWIG_Py_Void();
7356 SWIGINTERN PyObject
*_wrap_IconLocation_GetFileName(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
7357 PyObject
*resultobj
= 0;
7358 wxIconLocation
*arg1
= (wxIconLocation
*) 0 ;
7359 wxString
*result
= 0 ;
7362 PyObject
*swig_obj
[1] ;
7364 if (!args
) SWIG_fail
;
7366 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxIconLocation
, 0 | 0 );
7367 if (!SWIG_IsOK(res1
)) {
7368 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
7370 arg1
= reinterpret_cast< wxIconLocation
* >(argp1
);
7372 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7374 wxString
const &_result_ref
= ((wxIconLocation
const *)arg1
)->GetFileName();
7375 result
= (wxString
*) &_result_ref
;
7377 wxPyEndAllowThreads(__tstate
);
7378 if (PyErr_Occurred()) SWIG_fail
;
7382 resultobj
= PyUnicode_FromWideChar(result
->c_str(), result
->Len());
7384 resultobj
= PyString_FromStringAndSize(result
->c_str(), result
->Len());
7393 SWIGINTERN PyObject
*_wrap_IconLocation_SetIndex(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
7394 PyObject
*resultobj
= 0;
7395 wxIconLocation
*arg1
= (wxIconLocation
*) 0 ;
7401 PyObject
* obj0
= 0 ;
7402 PyObject
* obj1
= 0 ;
7403 char * kwnames
[] = {
7404 (char *) "self",(char *) "num", NULL
7407 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:IconLocation_SetIndex",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
7408 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxIconLocation
, 0 | 0 );
7409 if (!SWIG_IsOK(res1
)) {
7410 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7412 arg1
= reinterpret_cast< wxIconLocation
* >(argp1
);
7413 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
7414 if (!SWIG_IsOK(ecode2
)) {
7415 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
7417 arg2
= static_cast< int >(val2
);
7419 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7420 wxIconLocation_SetIndex(arg1
,arg2
);
7421 wxPyEndAllowThreads(__tstate
);
7422 if (PyErr_Occurred()) SWIG_fail
;
7424 resultobj
= SWIG_Py_Void();
7431 SWIGINTERN PyObject
*_wrap_IconLocation_GetIndex(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
7432 PyObject
*resultobj
= 0;
7433 wxIconLocation
*arg1
= (wxIconLocation
*) 0 ;
7437 PyObject
*swig_obj
[1] ;
7439 if (!args
) SWIG_fail
;
7441 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxIconLocation
, 0 | 0 );
7442 if (!SWIG_IsOK(res1
)) {
7443 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7445 arg1
= reinterpret_cast< wxIconLocation
* >(argp1
);
7447 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7448 result
= (int)wxIconLocation_GetIndex(arg1
);
7449 wxPyEndAllowThreads(__tstate
);
7450 if (PyErr_Occurred()) SWIG_fail
;
7452 resultobj
= SWIG_From_int(static_cast< int >(result
));
7459 SWIGINTERN PyObject
*IconLocation_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
7461 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
7462 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation
, SWIG_NewClientData(obj
));
7463 return SWIG_Py_Void();
7466 SWIGINTERN PyObject
*IconLocation_swiginit(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
7467 return SWIG_Python_InitShadowInstance(args
);
7470 SWIGINTERN PyObject
*_wrap_new_IconBundle(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
7471 PyObject
*resultobj
= 0;
7472 wxIconBundle
*result
= 0 ;
7474 if (!SWIG_Python_UnpackTuple(args
,"new_IconBundle",0,0,0)) SWIG_fail
;
7476 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7477 result
= (wxIconBundle
*)new wxIconBundle();
7478 wxPyEndAllowThreads(__tstate
);
7479 if (PyErr_Occurred()) SWIG_fail
;
7481 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxIconBundle
, SWIG_POINTER_NEW
| 0 );
7488 SWIGINTERN PyObject
*_wrap_new_IconBundleFromFile(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
7489 PyObject
*resultobj
= 0;
7490 wxString
*arg1
= 0 ;
7492 wxIconBundle
*result
= 0 ;
7493 bool temp1
= false ;
7496 PyObject
* obj0
= 0 ;
7497 PyObject
* obj1
= 0 ;
7498 char * kwnames
[] = {
7499 (char *) "file",(char *) "type", NULL
7502 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:new_IconBundleFromFile",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
7504 arg1
= wxString_in_helper(obj0
);
7505 if (arg1
== NULL
) SWIG_fail
;
7508 ecode2
= SWIG_AsVal_long(obj1
, &val2
);
7509 if (!SWIG_IsOK(ecode2
)) {
7510 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
7512 arg2
= static_cast< long >(val2
);
7514 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7515 result
= (wxIconBundle
*)new wxIconBundle((wxString
const &)*arg1
,arg2
);
7516 wxPyEndAllowThreads(__tstate
);
7517 if (PyErr_Occurred()) SWIG_fail
;
7519 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxIconBundle
, SWIG_POINTER_OWN
| 0 );
7534 SWIGINTERN PyObject
*_wrap_new_IconBundleFromIcon(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
7535 PyObject
*resultobj
= 0;
7537 wxIconBundle
*result
= 0 ;
7540 PyObject
* obj0
= 0 ;
7541 char * kwnames
[] = {
7542 (char *) "icon", NULL
7545 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:new_IconBundleFromIcon",kwnames
,&obj0
)) SWIG_fail
;
7546 res1
= SWIG_ConvertPtr(obj0
, &argp1
, SWIGTYPE_p_wxIcon
, 0 | 0);
7547 if (!SWIG_IsOK(res1
)) {
7548 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
7551 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
7553 arg1
= reinterpret_cast< wxIcon
* >(argp1
);
7555 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7556 result
= (wxIconBundle
*)new wxIconBundle((wxIcon
const &)*arg1
);
7557 wxPyEndAllowThreads(__tstate
);
7558 if (PyErr_Occurred()) SWIG_fail
;
7560 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxIconBundle
, SWIG_POINTER_OWN
| 0 );
7567 SWIGINTERN PyObject
*_wrap_delete_IconBundle(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
7568 PyObject
*resultobj
= 0;
7569 wxIconBundle
*arg1
= (wxIconBundle
*) 0 ;
7572 PyObject
*swig_obj
[1] ;
7574 if (!args
) SWIG_fail
;
7576 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxIconBundle
, SWIG_POINTER_DISOWN
| 0 );
7577 if (!SWIG_IsOK(res1
)) {
7578 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7580 arg1
= reinterpret_cast< wxIconBundle
* >(argp1
);
7582 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7585 wxPyEndAllowThreads(__tstate
);
7586 if (PyErr_Occurred()) SWIG_fail
;
7588 resultobj
= SWIG_Py_Void();
7595 SWIGINTERN PyObject
*_wrap_IconBundle_AddIcon(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
7596 PyObject
*resultobj
= 0;
7597 wxIconBundle
*arg1
= (wxIconBundle
*) 0 ;
7603 PyObject
* obj0
= 0 ;
7604 PyObject
* obj1
= 0 ;
7605 char * kwnames
[] = {
7606 (char *) "self",(char *) "icon", NULL
7609 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:IconBundle_AddIcon",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
7610 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxIconBundle
, 0 | 0 );
7611 if (!SWIG_IsOK(res1
)) {
7612 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7614 arg1
= reinterpret_cast< wxIconBundle
* >(argp1
);
7615 res2
= SWIG_ConvertPtr(obj1
, &argp2
, SWIGTYPE_p_wxIcon
, 0 | 0);
7616 if (!SWIG_IsOK(res2
)) {
7617 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
7620 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
7622 arg2
= reinterpret_cast< wxIcon
* >(argp2
);
7624 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7625 (arg1
)->AddIcon((wxIcon
const &)*arg2
);
7626 wxPyEndAllowThreads(__tstate
);
7627 if (PyErr_Occurred()) SWIG_fail
;
7629 resultobj
= SWIG_Py_Void();
7636 SWIGINTERN PyObject
*_wrap_IconBundle_AddIconFromFile(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
7637 PyObject
*resultobj
= 0;
7638 wxIconBundle
*arg1
= (wxIconBundle
*) 0 ;
7639 wxString
*arg2
= 0 ;
7643 bool temp2
= false ;
7646 PyObject
* obj0
= 0 ;
7647 PyObject
* obj1
= 0 ;
7648 PyObject
* obj2
= 0 ;
7649 char * kwnames
[] = {
7650 (char *) "self",(char *) "file",(char *) "type", NULL
7653 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:IconBundle_AddIconFromFile",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
7654 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxIconBundle
, 0 | 0 );
7655 if (!SWIG_IsOK(res1
)) {
7656 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7658 arg1
= reinterpret_cast< wxIconBundle
* >(argp1
);
7660 arg2
= wxString_in_helper(obj1
);
7661 if (arg2
== NULL
) SWIG_fail
;
7664 ecode3
= SWIG_AsVal_long(obj2
, &val3
);
7665 if (!SWIG_IsOK(ecode3
)) {
7666 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
7668 arg3
= static_cast< long >(val3
);
7670 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7671 (arg1
)->AddIcon((wxString
const &)*arg2
,arg3
);
7672 wxPyEndAllowThreads(__tstate
);
7673 if (PyErr_Occurred()) SWIG_fail
;
7675 resultobj
= SWIG_Py_Void();
7690 SWIGINTERN PyObject
*_wrap_IconBundle_GetIcon(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
7691 PyObject
*resultobj
= 0;
7692 wxIconBundle
*arg1
= (wxIconBundle
*) 0 ;
7694 wxIcon
*result
= 0 ;
7698 PyObject
* obj0
= 0 ;
7699 PyObject
* obj1
= 0 ;
7700 char * kwnames
[] = {
7701 (char *) "self",(char *) "size", NULL
7704 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:IconBundle_GetIcon",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
7705 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxIconBundle
, 0 | 0 );
7706 if (!SWIG_IsOK(res1
)) {
7707 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
7709 arg1
= reinterpret_cast< wxIconBundle
* >(argp1
);
7712 if ( ! wxSize_helper(obj1
, &arg2
)) SWIG_fail
;
7715 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7717 wxIcon
const &_result_ref
= ((wxIconBundle
const *)arg1
)->GetIcon((wxSize
const &)*arg2
);
7718 result
= (wxIcon
*) &_result_ref
;
7720 wxPyEndAllowThreads(__tstate
);
7721 if (PyErr_Occurred()) SWIG_fail
;
7724 wxIcon
* resultptr
= new wxIcon(*result
);
7725 resultobj
= SWIG_NewPointerObj((void*)(resultptr
), SWIGTYPE_p_wxIcon
, 1);
7733 SWIGINTERN PyObject
*IconBundle_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
7735 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
7736 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle
, SWIG_NewClientData(obj
));
7737 return SWIG_Py_Void();
7740 SWIGINTERN PyObject
*IconBundle_swiginit(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
7741 return SWIG_Python_InitShadowInstance(args
);
7744 SWIGINTERN PyObject
*_wrap_new_Cursor(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
7745 PyObject
*resultobj
= 0;
7746 wxString
*arg1
= 0 ;
7748 int arg3
= (int) 0 ;
7749 int arg4
= (int) 0 ;
7750 wxCursor
*result
= 0 ;
7751 bool temp1
= false ;
7758 PyObject
* obj0
= 0 ;
7759 PyObject
* obj1
= 0 ;
7760 PyObject
* obj2
= 0 ;
7761 PyObject
* obj3
= 0 ;
7762 char * kwnames
[] = {
7763 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
7766 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|OO:new_Cursor",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) SWIG_fail
;
7768 arg1
= wxString_in_helper(obj0
);
7769 if (arg1
== NULL
) SWIG_fail
;
7772 ecode2
= SWIG_AsVal_long(obj1
, &val2
);
7773 if (!SWIG_IsOK(ecode2
)) {
7774 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
7776 arg2
= static_cast< long >(val2
);
7778 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
7779 if (!SWIG_IsOK(ecode3
)) {
7780 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
7782 arg3
= static_cast< int >(val3
);
7785 ecode4
= SWIG_AsVal_int(obj3
, &val4
);
7786 if (!SWIG_IsOK(ecode4
)) {
7787 SWIG_exception_fail(SWIG_ArgError(ecode4
), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
7789 arg4
= static_cast< int >(val4
);
7792 if (!wxPyCheckForApp()) SWIG_fail
;
7793 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7794 result
= (wxCursor
*)new_wxCursor((wxString
const &)*arg1
,arg2
,arg3
,arg4
);
7795 wxPyEndAllowThreads(__tstate
);
7796 if (PyErr_Occurred()) SWIG_fail
;
7798 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxCursor
, SWIG_POINTER_NEW
| 0 );
7813 SWIGINTERN PyObject
*_wrap_delete_Cursor(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
7814 PyObject
*resultobj
= 0;
7815 wxCursor
*arg1
= (wxCursor
*) 0 ;
7818 PyObject
*swig_obj
[1] ;
7820 if (!args
) SWIG_fail
;
7822 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxCursor
, SWIG_POINTER_DISOWN
| 0 );
7823 if (!SWIG_IsOK(res1
)) {
7824 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
7826 arg1
= reinterpret_cast< wxCursor
* >(argp1
);
7828 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7831 wxPyEndAllowThreads(__tstate
);
7832 if (PyErr_Occurred()) SWIG_fail
;
7834 resultobj
= SWIG_Py_Void();
7841 SWIGINTERN PyObject
*_wrap_new_StockCursor(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
7842 PyObject
*resultobj
= 0;
7844 wxCursor
*result
= 0 ;
7847 PyObject
* obj0
= 0 ;
7848 char * kwnames
[] = {
7852 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:new_StockCursor",kwnames
,&obj0
)) SWIG_fail
;
7853 ecode1
= SWIG_AsVal_int(obj0
, &val1
);
7854 if (!SWIG_IsOK(ecode1
)) {
7855 SWIG_exception_fail(SWIG_ArgError(ecode1
), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
7857 arg1
= static_cast< int >(val1
);
7859 if (!wxPyCheckForApp()) SWIG_fail
;
7860 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7861 result
= (wxCursor
*)new wxCursor(arg1
);
7862 wxPyEndAllowThreads(__tstate
);
7863 if (PyErr_Occurred()) SWIG_fail
;
7865 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxCursor
, SWIG_POINTER_OWN
| 0 );
7872 SWIGINTERN PyObject
*_wrap_new_CursorFromImage(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
7873 PyObject
*resultobj
= 0;
7875 wxCursor
*result
= 0 ;
7878 PyObject
* obj0
= 0 ;
7879 char * kwnames
[] = {
7880 (char *) "image", NULL
7883 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:new_CursorFromImage",kwnames
,&obj0
)) SWIG_fail
;
7884 res1
= SWIG_ConvertPtr(obj0
, &argp1
, SWIGTYPE_p_wxImage
, 0 | 0);
7885 if (!SWIG_IsOK(res1
)) {
7886 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
7889 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
7891 arg1
= reinterpret_cast< wxImage
* >(argp1
);
7893 if (!wxPyCheckForApp()) SWIG_fail
;
7894 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7895 result
= (wxCursor
*)new wxCursor((wxImage
const &)*arg1
);
7896 wxPyEndAllowThreads(__tstate
);
7897 if (PyErr_Occurred()) SWIG_fail
;
7899 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxCursor
, SWIG_POINTER_OWN
| 0 );
7906 SWIGINTERN PyObject
*_wrap_Cursor_GetHandle(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
7907 PyObject
*resultobj
= 0;
7908 wxCursor
*arg1
= (wxCursor
*) 0 ;
7912 PyObject
*swig_obj
[1] ;
7914 if (!args
) SWIG_fail
;
7916 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxCursor
, 0 | 0 );
7917 if (!SWIG_IsOK(res1
)) {
7918 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Cursor_GetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
7920 arg1
= reinterpret_cast< wxCursor
* >(argp1
);
7922 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7923 result
= (long)(arg1
)->GetHandle();
7924 wxPyEndAllowThreads(__tstate
);
7925 if (PyErr_Occurred()) SWIG_fail
;
7927 resultobj
= SWIG_From_long(static_cast< long >(result
));
7934 SWIGINTERN PyObject
*_wrap_Cursor_SetHandle(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
7935 PyObject
*resultobj
= 0;
7936 wxCursor
*arg1
= (wxCursor
*) 0 ;
7942 PyObject
* obj0
= 0 ;
7943 PyObject
* obj1
= 0 ;
7944 char * kwnames
[] = {
7945 (char *) "self",(char *) "handle", NULL
7948 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Cursor_SetHandle",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
7949 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxCursor
, 0 | 0 );
7950 if (!SWIG_IsOK(res1
)) {
7951 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Cursor_SetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
7953 arg1
= reinterpret_cast< wxCursor
* >(argp1
);
7954 ecode2
= SWIG_AsVal_long(obj1
, &val2
);
7955 if (!SWIG_IsOK(ecode2
)) {
7956 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "Cursor_SetHandle" "', expected argument " "2"" of type '" "long""'");
7958 arg2
= static_cast< long >(val2
);
7960 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7961 wxCursor_SetHandle(arg1
,arg2
);
7962 wxPyEndAllowThreads(__tstate
);
7963 if (PyErr_Occurred()) SWIG_fail
;
7965 resultobj
= SWIG_Py_Void();
7972 SWIGINTERN PyObject
*_wrap_Cursor_Ok(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
7973 PyObject
*resultobj
= 0;
7974 wxCursor
*arg1
= (wxCursor
*) 0 ;
7978 PyObject
*swig_obj
[1] ;
7980 if (!args
) SWIG_fail
;
7982 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxCursor
, 0 | 0 );
7983 if (!SWIG_IsOK(res1
)) {
7984 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Cursor_Ok" "', expected argument " "1"" of type '" "wxCursor *""'");
7986 arg1
= reinterpret_cast< wxCursor
* >(argp1
);
7988 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7989 result
= (bool)(arg1
)->Ok();
7990 wxPyEndAllowThreads(__tstate
);
7991 if (PyErr_Occurred()) SWIG_fail
;
7994 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
8002 SWIGINTERN PyObject
*_wrap_Cursor_GetWidth(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
8003 PyObject
*resultobj
= 0;
8004 wxCursor
*arg1
= (wxCursor
*) 0 ;
8008 PyObject
*swig_obj
[1] ;
8010 if (!args
) SWIG_fail
;
8012 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxCursor
, 0 | 0 );
8013 if (!SWIG_IsOK(res1
)) {
8014 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Cursor_GetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
8016 arg1
= reinterpret_cast< wxCursor
* >(argp1
);
8018 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8019 result
= (int)(arg1
)->GetWidth();
8020 wxPyEndAllowThreads(__tstate
);
8021 if (PyErr_Occurred()) SWIG_fail
;
8023 resultobj
= SWIG_From_int(static_cast< int >(result
));
8030 SWIGINTERN PyObject
*_wrap_Cursor_GetHeight(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
8031 PyObject
*resultobj
= 0;
8032 wxCursor
*arg1
= (wxCursor
*) 0 ;
8036 PyObject
*swig_obj
[1] ;
8038 if (!args
) SWIG_fail
;
8040 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxCursor
, 0 | 0 );
8041 if (!SWIG_IsOK(res1
)) {
8042 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Cursor_GetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
8044 arg1
= reinterpret_cast< wxCursor
* >(argp1
);
8046 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8047 result
= (int)(arg1
)->GetHeight();
8048 wxPyEndAllowThreads(__tstate
);
8049 if (PyErr_Occurred()) SWIG_fail
;
8051 resultobj
= SWIG_From_int(static_cast< int >(result
));
8058 SWIGINTERN PyObject
*_wrap_Cursor_GetDepth(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
8059 PyObject
*resultobj
= 0;
8060 wxCursor
*arg1
= (wxCursor
*) 0 ;
8064 PyObject
*swig_obj
[1] ;
8066 if (!args
) SWIG_fail
;
8068 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxCursor
, 0 | 0 );
8069 if (!SWIG_IsOK(res1
)) {
8070 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Cursor_GetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
8072 arg1
= reinterpret_cast< wxCursor
* >(argp1
);
8074 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8075 result
= (int)(arg1
)->GetDepth();
8076 wxPyEndAllowThreads(__tstate
);
8077 if (PyErr_Occurred()) SWIG_fail
;
8079 resultobj
= SWIG_From_int(static_cast< int >(result
));
8086 SWIGINTERN PyObject
*_wrap_Cursor_SetWidth(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
8087 PyObject
*resultobj
= 0;
8088 wxCursor
*arg1
= (wxCursor
*) 0 ;
8094 PyObject
* obj0
= 0 ;
8095 PyObject
* obj1
= 0 ;
8096 char * kwnames
[] = {
8097 (char *) "self",(char *) "w", NULL
8100 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Cursor_SetWidth",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
8101 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxCursor
, 0 | 0 );
8102 if (!SWIG_IsOK(res1
)) {
8103 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Cursor_SetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
8105 arg1
= reinterpret_cast< wxCursor
* >(argp1
);
8106 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
8107 if (!SWIG_IsOK(ecode2
)) {
8108 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "Cursor_SetWidth" "', expected argument " "2"" of type '" "int""'");
8110 arg2
= static_cast< int >(val2
);
8112 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8113 (arg1
)->SetWidth(arg2
);
8114 wxPyEndAllowThreads(__tstate
);
8115 if (PyErr_Occurred()) SWIG_fail
;
8117 resultobj
= SWIG_Py_Void();
8124 SWIGINTERN PyObject
*_wrap_Cursor_SetHeight(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
8125 PyObject
*resultobj
= 0;
8126 wxCursor
*arg1
= (wxCursor
*) 0 ;
8132 PyObject
* obj0
= 0 ;
8133 PyObject
* obj1
= 0 ;
8134 char * kwnames
[] = {
8135 (char *) "self",(char *) "h", NULL
8138 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Cursor_SetHeight",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
8139 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxCursor
, 0 | 0 );
8140 if (!SWIG_IsOK(res1
)) {
8141 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Cursor_SetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
8143 arg1
= reinterpret_cast< wxCursor
* >(argp1
);
8144 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
8145 if (!SWIG_IsOK(ecode2
)) {
8146 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "Cursor_SetHeight" "', expected argument " "2"" of type '" "int""'");
8148 arg2
= static_cast< int >(val2
);
8150 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8151 (arg1
)->SetHeight(arg2
);
8152 wxPyEndAllowThreads(__tstate
);
8153 if (PyErr_Occurred()) SWIG_fail
;
8155 resultobj
= SWIG_Py_Void();
8162 SWIGINTERN PyObject
*_wrap_Cursor_SetDepth(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
8163 PyObject
*resultobj
= 0;
8164 wxCursor
*arg1
= (wxCursor
*) 0 ;
8170 PyObject
* obj0
= 0 ;
8171 PyObject
* obj1
= 0 ;
8172 char * kwnames
[] = {
8173 (char *) "self",(char *) "d", NULL
8176 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Cursor_SetDepth",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
8177 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxCursor
, 0 | 0 );
8178 if (!SWIG_IsOK(res1
)) {
8179 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Cursor_SetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
8181 arg1
= reinterpret_cast< wxCursor
* >(argp1
);
8182 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
8183 if (!SWIG_IsOK(ecode2
)) {
8184 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "Cursor_SetDepth" "', expected argument " "2"" of type '" "int""'");
8186 arg2
= static_cast< int >(val2
);
8188 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8189 (arg1
)->SetDepth(arg2
);
8190 wxPyEndAllowThreads(__tstate
);
8191 if (PyErr_Occurred()) SWIG_fail
;
8193 resultobj
= SWIG_Py_Void();
8200 SWIGINTERN PyObject
*_wrap_Cursor_SetSize(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
8201 PyObject
*resultobj
= 0;
8202 wxCursor
*arg1
= (wxCursor
*) 0 ;
8207 PyObject
* obj0
= 0 ;
8208 PyObject
* obj1
= 0 ;
8209 char * kwnames
[] = {
8210 (char *) "self",(char *) "size", NULL
8213 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Cursor_SetSize",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
8214 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxCursor
, 0 | 0 );
8215 if (!SWIG_IsOK(res1
)) {
8216 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Cursor_SetSize" "', expected argument " "1"" of type '" "wxCursor *""'");
8218 arg1
= reinterpret_cast< wxCursor
* >(argp1
);
8221 if ( ! wxSize_helper(obj1
, &arg2
)) SWIG_fail
;
8224 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8225 (arg1
)->SetSize((wxSize
const &)*arg2
);
8226 wxPyEndAllowThreads(__tstate
);
8227 if (PyErr_Occurred()) SWIG_fail
;
8229 resultobj
= SWIG_Py_Void();
8236 SWIGINTERN PyObject
*Cursor_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
8238 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
8239 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor
, SWIG_NewClientData(obj
));
8240 return SWIG_Py_Void();
8243 SWIGINTERN PyObject
*Cursor_swiginit(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
8244 return SWIG_Python_InitShadowInstance(args
);
8247 SWIGINTERN PyObject
*_wrap_new_Region(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
8248 PyObject
*resultobj
= 0;
8249 int arg1
= (int) 0 ;
8250 int arg2
= (int) 0 ;
8251 int arg3
= (int) 0 ;
8252 int arg4
= (int) 0 ;
8253 wxRegion
*result
= 0 ;
8262 PyObject
* obj0
= 0 ;
8263 PyObject
* obj1
= 0 ;
8264 PyObject
* obj2
= 0 ;
8265 PyObject
* obj3
= 0 ;
8266 char * kwnames
[] = {
8267 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8270 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|OOOO:new_Region",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) SWIG_fail
;
8272 ecode1
= SWIG_AsVal_int(obj0
, &val1
);
8273 if (!SWIG_IsOK(ecode1
)) {
8274 SWIG_exception_fail(SWIG_ArgError(ecode1
), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
8276 arg1
= static_cast< int >(val1
);
8279 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
8280 if (!SWIG_IsOK(ecode2
)) {
8281 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
8283 arg2
= static_cast< int >(val2
);
8286 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
8287 if (!SWIG_IsOK(ecode3
)) {
8288 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
8290 arg3
= static_cast< int >(val3
);
8293 ecode4
= SWIG_AsVal_int(obj3
, &val4
);
8294 if (!SWIG_IsOK(ecode4
)) {
8295 SWIG_exception_fail(SWIG_ArgError(ecode4
), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
8297 arg4
= static_cast< int >(val4
);
8300 if (!wxPyCheckForApp()) SWIG_fail
;
8301 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8302 result
= (wxRegion
*)new wxRegion(arg1
,arg2
,arg3
,arg4
);
8303 wxPyEndAllowThreads(__tstate
);
8304 if (PyErr_Occurred()) SWIG_fail
;
8306 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxRegion
, SWIG_POINTER_NEW
| 0 );
8313 SWIGINTERN PyObject
*_wrap_new_RegionFromBitmap(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
8314 PyObject
*resultobj
= 0;
8315 wxBitmap
*arg1
= 0 ;
8316 wxRegion
*result
= 0 ;
8319 PyObject
* obj0
= 0 ;
8320 char * kwnames
[] = {
8321 (char *) "bmp", NULL
8324 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:new_RegionFromBitmap",kwnames
,&obj0
)) SWIG_fail
;
8325 res1
= SWIG_ConvertPtr(obj0
, &argp1
, SWIGTYPE_p_wxBitmap
, 0 | 0);
8326 if (!SWIG_IsOK(res1
)) {
8327 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8330 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8332 arg1
= reinterpret_cast< wxBitmap
* >(argp1
);
8334 if (!wxPyCheckForApp()) SWIG_fail
;
8335 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8336 result
= (wxRegion
*)new wxRegion((wxBitmap
const &)*arg1
);
8337 wxPyEndAllowThreads(__tstate
);
8338 if (PyErr_Occurred()) SWIG_fail
;
8340 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxRegion
, SWIG_POINTER_OWN
| 0 );
8347 SWIGINTERN PyObject
*_wrap_new_RegionFromBitmapColour(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
8348 PyObject
*resultobj
= 0;
8349 wxBitmap
*arg1
= 0 ;
8350 wxColour
*arg2
= 0 ;
8351 int arg3
= (int) 0 ;
8352 wxRegion
*result
= 0 ;
8358 PyObject
* obj0
= 0 ;
8359 PyObject
* obj1
= 0 ;
8360 PyObject
* obj2
= 0 ;
8361 char * kwnames
[] = {
8362 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
8365 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:new_RegionFromBitmapColour",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
8366 res1
= SWIG_ConvertPtr(obj0
, &argp1
, SWIGTYPE_p_wxBitmap
, 0 | 0);
8367 if (!SWIG_IsOK(res1
)) {
8368 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8371 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8373 arg1
= reinterpret_cast< wxBitmap
* >(argp1
);
8376 if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
;
8379 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
8380 if (!SWIG_IsOK(ecode3
)) {
8381 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
8383 arg3
= static_cast< int >(val3
);
8386 if (!wxPyCheckForApp()) SWIG_fail
;
8387 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8388 result
= (wxRegion
*)new wxRegion((wxBitmap
const &)*arg1
,(wxColour
const &)*arg2
,arg3
);
8389 wxPyEndAllowThreads(__tstate
);
8390 if (PyErr_Occurred()) SWIG_fail
;
8392 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxRegion
, SWIG_POINTER_OWN
| 0 );
8399 SWIGINTERN PyObject
*_wrap_new_RegionFromPoints(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
8400 PyObject
*resultobj
= 0;
8402 wxPoint
*arg2
= (wxPoint
*) 0 ;
8403 int arg3
= (int) wxWINDING_RULE
;
8404 wxRegion
*result
= 0 ;
8407 PyObject
* obj0
= 0 ;
8408 PyObject
* obj1
= 0 ;
8409 char * kwnames
[] = {
8410 (char *) "points",(char *) "fillStyle", NULL
8413 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:new_RegionFromPoints",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
8415 arg2
= wxPoint_LIST_helper(obj0
, &arg1
);
8416 if (arg2
== NULL
) SWIG_fail
;
8419 ecode3
= SWIG_AsVal_int(obj1
, &val3
);
8420 if (!SWIG_IsOK(ecode3
)) {
8421 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
8423 arg3
= static_cast< int >(val3
);
8426 if (!wxPyCheckForApp()) SWIG_fail
;
8427 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8428 result
= (wxRegion
*)new wxRegion(arg1
,arg2
,arg3
);
8429 wxPyEndAllowThreads(__tstate
);
8430 if (PyErr_Occurred()) SWIG_fail
;
8432 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxRegion
, SWIG_POINTER_OWN
| 0 );
8434 if (arg2
) delete [] arg2
;
8439 if (arg2
) delete [] arg2
;
8445 SWIGINTERN PyObject
*_wrap_delete_Region(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
8446 PyObject
*resultobj
= 0;
8447 wxRegion
*arg1
= (wxRegion
*) 0 ;
8450 PyObject
*swig_obj
[1] ;
8452 if (!args
) SWIG_fail
;
8454 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxRegion
, SWIG_POINTER_DISOWN
| 0 );
8455 if (!SWIG_IsOK(res1
)) {
8456 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
8458 arg1
= reinterpret_cast< wxRegion
* >(argp1
);
8460 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8463 wxPyEndAllowThreads(__tstate
);
8464 if (PyErr_Occurred()) SWIG_fail
;
8466 resultobj
= SWIG_Py_Void();
8473 SWIGINTERN PyObject
*_wrap_Region_Clear(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
8474 PyObject
*resultobj
= 0;
8475 wxRegion
*arg1
= (wxRegion
*) 0 ;
8478 PyObject
*swig_obj
[1] ;
8480 if (!args
) SWIG_fail
;
8482 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxRegion
, 0 | 0 );
8483 if (!SWIG_IsOK(res1
)) {
8484 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
8486 arg1
= reinterpret_cast< wxRegion
* >(argp1
);
8488 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8490 wxPyEndAllowThreads(__tstate
);
8491 if (PyErr_Occurred()) SWIG_fail
;
8493 resultobj
= SWIG_Py_Void();
8500 SWIGINTERN PyObject
*_wrap_Region_Offset(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
8501 PyObject
*resultobj
= 0;
8502 wxRegion
*arg1
= (wxRegion
*) 0 ;
8512 PyObject
* obj0
= 0 ;
8513 PyObject
* obj1
= 0 ;
8514 PyObject
* obj2
= 0 ;
8515 char * kwnames
[] = {
8516 (char *) "self",(char *) "x",(char *) "y", NULL
8519 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:Region_Offset",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
8520 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxRegion
, 0 | 0 );
8521 if (!SWIG_IsOK(res1
)) {
8522 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
8524 arg1
= reinterpret_cast< wxRegion
* >(argp1
);
8525 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
8526 if (!SWIG_IsOK(ecode2
)) {
8527 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
8529 arg2
= static_cast< int >(val2
);
8530 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
8531 if (!SWIG_IsOK(ecode3
)) {
8532 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
8534 arg3
= static_cast< int >(val3
);
8536 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8537 result
= (bool)(arg1
)->Offset(arg2
,arg3
);
8538 wxPyEndAllowThreads(__tstate
);
8539 if (PyErr_Occurred()) SWIG_fail
;
8542 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
8550 SWIGINTERN PyObject
*_wrap_Region_Contains(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
8551 PyObject
*resultobj
= 0;
8552 wxRegion
*arg1
= (wxRegion
*) 0 ;
8555 wxRegionContain result
;
8562 PyObject
* obj0
= 0 ;
8563 PyObject
* obj1
= 0 ;
8564 PyObject
* obj2
= 0 ;
8565 char * kwnames
[] = {
8566 (char *) "self",(char *) "x",(char *) "y", NULL
8569 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:Region_Contains",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
8570 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxRegion
, 0 | 0 );
8571 if (!SWIG_IsOK(res1
)) {
8572 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
8574 arg1
= reinterpret_cast< wxRegion
* >(argp1
);
8575 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
8576 if (!SWIG_IsOK(ecode2
)) {
8577 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
8579 arg2
= static_cast< int >(val2
);
8580 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
8581 if (!SWIG_IsOK(ecode3
)) {
8582 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
8584 arg3
= static_cast< int >(val3
);
8586 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8587 result
= (wxRegionContain
)(arg1
)->Contains(arg2
,arg3
);
8588 wxPyEndAllowThreads(__tstate
);
8589 if (PyErr_Occurred()) SWIG_fail
;
8591 resultobj
= SWIG_From_int(static_cast< int >(result
));
8598 SWIGINTERN PyObject
*_wrap_Region_ContainsPoint(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
8599 PyObject
*resultobj
= 0;
8600 wxRegion
*arg1
= (wxRegion
*) 0 ;
8602 wxRegionContain result
;
8606 PyObject
* obj0
= 0 ;
8607 PyObject
* obj1
= 0 ;
8608 char * kwnames
[] = {
8609 (char *) "self",(char *) "pt", NULL
8612 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Region_ContainsPoint",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
8613 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxRegion
, 0 | 0 );
8614 if (!SWIG_IsOK(res1
)) {
8615 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
8617 arg1
= reinterpret_cast< wxRegion
* >(argp1
);
8620 if ( ! wxPoint_helper(obj1
, &arg2
)) SWIG_fail
;
8623 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8624 result
= (wxRegionContain
)(arg1
)->Contains((wxPoint
const &)*arg2
);
8625 wxPyEndAllowThreads(__tstate
);
8626 if (PyErr_Occurred()) SWIG_fail
;
8628 resultobj
= SWIG_From_int(static_cast< int >(result
));
8635 SWIGINTERN PyObject
*_wrap_Region_ContainsRect(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
8636 PyObject
*resultobj
= 0;
8637 wxRegion
*arg1
= (wxRegion
*) 0 ;
8639 wxRegionContain result
;
8643 PyObject
* obj0
= 0 ;
8644 PyObject
* obj1
= 0 ;
8645 char * kwnames
[] = {
8646 (char *) "self",(char *) "rect", NULL
8649 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Region_ContainsRect",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
8650 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxRegion
, 0 | 0 );
8651 if (!SWIG_IsOK(res1
)) {
8652 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8654 arg1
= reinterpret_cast< wxRegion
* >(argp1
);
8657 if ( ! wxRect_helper(obj1
, &arg2
)) SWIG_fail
;
8660 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8661 result
= (wxRegionContain
)(arg1
)->Contains((wxRect
const &)*arg2
);
8662 wxPyEndAllowThreads(__tstate
);
8663 if (PyErr_Occurred()) SWIG_fail
;
8665 resultobj
= SWIG_From_int(static_cast< int >(result
));
8672 SWIGINTERN PyObject
*_wrap_Region_ContainsRectDim(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
8673 PyObject
*resultobj
= 0;
8674 wxRegion
*arg1
= (wxRegion
*) 0 ;
8679 wxRegionContain result
;
8690 PyObject
* obj0
= 0 ;
8691 PyObject
* obj1
= 0 ;
8692 PyObject
* obj2
= 0 ;
8693 PyObject
* obj3
= 0 ;
8694 PyObject
* obj4
= 0 ;
8695 char * kwnames
[] = {
8696 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
8699 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOOO:Region_ContainsRectDim",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) SWIG_fail
;
8700 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxRegion
, 0 | 0 );
8701 if (!SWIG_IsOK(res1
)) {
8702 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
8704 arg1
= reinterpret_cast< wxRegion
* >(argp1
);
8705 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
8706 if (!SWIG_IsOK(ecode2
)) {
8707 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
8709 arg2
= static_cast< int >(val2
);
8710 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
8711 if (!SWIG_IsOK(ecode3
)) {
8712 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
8714 arg3
= static_cast< int >(val3
);
8715 ecode4
= SWIG_AsVal_int(obj3
, &val4
);
8716 if (!SWIG_IsOK(ecode4
)) {
8717 SWIG_exception_fail(SWIG_ArgError(ecode4
), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
8719 arg4
= static_cast< int >(val4
);
8720 ecode5
= SWIG_AsVal_int(obj4
, &val5
);
8721 if (!SWIG_IsOK(ecode5
)) {
8722 SWIG_exception_fail(SWIG_ArgError(ecode5
), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
8724 arg5
= static_cast< int >(val5
);
8726 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8727 result
= (wxRegionContain
)(arg1
)->Contains(arg2
,arg3
,arg4
,arg5
);
8728 wxPyEndAllowThreads(__tstate
);
8729 if (PyErr_Occurred()) SWIG_fail
;
8731 resultobj
= SWIG_From_int(static_cast< int >(result
));
8738 SWIGINTERN PyObject
*_wrap_Region_GetBox(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
8739 PyObject
*resultobj
= 0;
8740 wxRegion
*arg1
= (wxRegion
*) 0 ;
8744 PyObject
*swig_obj
[1] ;
8746 if (!args
) SWIG_fail
;
8748 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxRegion
, 0 | 0 );
8749 if (!SWIG_IsOK(res1
)) {
8750 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
8752 arg1
= reinterpret_cast< wxRegion
* >(argp1
);
8754 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8755 result
= (arg1
)->GetBox();
8756 wxPyEndAllowThreads(__tstate
);
8757 if (PyErr_Occurred()) SWIG_fail
;
8759 resultobj
= SWIG_NewPointerObj((new wxRect(static_cast< const wxRect
& >(result
))), SWIGTYPE_p_wxRect
, SWIG_POINTER_OWN
| 0 );
8766 SWIGINTERN PyObject
*_wrap_Region_Intersect(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
8767 PyObject
*resultobj
= 0;
8768 wxRegion
*arg1
= (wxRegion
*) 0 ;
8784 PyObject
* obj0
= 0 ;
8785 PyObject
* obj1
= 0 ;
8786 PyObject
* obj2
= 0 ;
8787 PyObject
* obj3
= 0 ;
8788 PyObject
* obj4
= 0 ;
8789 char * kwnames
[] = {
8790 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8793 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOOO:Region_Intersect",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) SWIG_fail
;
8794 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxRegion
, 0 | 0 );
8795 if (!SWIG_IsOK(res1
)) {
8796 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
8798 arg1
= reinterpret_cast< wxRegion
* >(argp1
);
8799 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
8800 if (!SWIG_IsOK(ecode2
)) {
8801 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
8803 arg2
= static_cast< int >(val2
);
8804 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
8805 if (!SWIG_IsOK(ecode3
)) {
8806 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
8808 arg3
= static_cast< int >(val3
);
8809 ecode4
= SWIG_AsVal_int(obj3
, &val4
);
8810 if (!SWIG_IsOK(ecode4
)) {
8811 SWIG_exception_fail(SWIG_ArgError(ecode4
), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
8813 arg4
= static_cast< int >(val4
);
8814 ecode5
= SWIG_AsVal_int(obj4
, &val5
);
8815 if (!SWIG_IsOK(ecode5
)) {
8816 SWIG_exception_fail(SWIG_ArgError(ecode5
), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
8818 arg5
= static_cast< int >(val5
);
8820 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8821 result
= (bool)(arg1
)->Intersect(arg2
,arg3
,arg4
,arg5
);
8822 wxPyEndAllowThreads(__tstate
);
8823 if (PyErr_Occurred()) SWIG_fail
;
8826 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
8834 SWIGINTERN PyObject
*_wrap_Region_IntersectRect(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
8835 PyObject
*resultobj
= 0;
8836 wxRegion
*arg1
= (wxRegion
*) 0 ;
8842 PyObject
* obj0
= 0 ;
8843 PyObject
* obj1
= 0 ;
8844 char * kwnames
[] = {
8845 (char *) "self",(char *) "rect", NULL
8848 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Region_IntersectRect",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
8849 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxRegion
, 0 | 0 );
8850 if (!SWIG_IsOK(res1
)) {
8851 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8853 arg1
= reinterpret_cast< wxRegion
* >(argp1
);
8856 if ( ! wxRect_helper(obj1
, &arg2
)) SWIG_fail
;
8859 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8860 result
= (bool)(arg1
)->Intersect((wxRect
const &)*arg2
);
8861 wxPyEndAllowThreads(__tstate
);
8862 if (PyErr_Occurred()) SWIG_fail
;
8865 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
8873 SWIGINTERN PyObject
*_wrap_Region_IntersectRegion(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
8874 PyObject
*resultobj
= 0;
8875 wxRegion
*arg1
= (wxRegion
*) 0 ;
8876 wxRegion
*arg2
= 0 ;
8882 PyObject
* obj0
= 0 ;
8883 PyObject
* obj1
= 0 ;
8884 char * kwnames
[] = {
8885 (char *) "self",(char *) "region", NULL
8888 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Region_IntersectRegion",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
8889 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxRegion
, 0 | 0 );
8890 if (!SWIG_IsOK(res1
)) {
8891 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
8893 arg1
= reinterpret_cast< wxRegion
* >(argp1
);
8894 res2
= SWIG_ConvertPtr(obj1
, &argp2
, SWIGTYPE_p_wxRegion
, 0 | 0);
8895 if (!SWIG_IsOK(res2
)) {
8896 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8899 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8901 arg2
= reinterpret_cast< wxRegion
* >(argp2
);
8903 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8904 result
= (bool)(arg1
)->Intersect((wxRegion
const &)*arg2
);
8905 wxPyEndAllowThreads(__tstate
);
8906 if (PyErr_Occurred()) SWIG_fail
;
8909 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
8917 SWIGINTERN PyObject
*_wrap_Region_IsEmpty(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
8918 PyObject
*resultobj
= 0;
8919 wxRegion
*arg1
= (wxRegion
*) 0 ;
8923 PyObject
*swig_obj
[1] ;
8925 if (!args
) SWIG_fail
;
8927 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxRegion
, 0 | 0 );
8928 if (!SWIG_IsOK(res1
)) {
8929 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
8931 arg1
= reinterpret_cast< wxRegion
* >(argp1
);
8933 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8934 result
= (bool)(arg1
)->IsEmpty();
8935 wxPyEndAllowThreads(__tstate
);
8936 if (PyErr_Occurred()) SWIG_fail
;
8939 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
8947 SWIGINTERN PyObject
*_wrap_Region_Union(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
8948 PyObject
*resultobj
= 0;
8949 wxRegion
*arg1
= (wxRegion
*) 0 ;
8965 PyObject
* obj0
= 0 ;
8966 PyObject
* obj1
= 0 ;
8967 PyObject
* obj2
= 0 ;
8968 PyObject
* obj3
= 0 ;
8969 PyObject
* obj4
= 0 ;
8970 char * kwnames
[] = {
8971 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8974 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOOO:Region_Union",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) SWIG_fail
;
8975 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxRegion
, 0 | 0 );
8976 if (!SWIG_IsOK(res1
)) {
8977 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
8979 arg1
= reinterpret_cast< wxRegion
* >(argp1
);
8980 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
8981 if (!SWIG_IsOK(ecode2
)) {
8982 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
8984 arg2
= static_cast< int >(val2
);
8985 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
8986 if (!SWIG_IsOK(ecode3
)) {
8987 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
8989 arg3
= static_cast< int >(val3
);
8990 ecode4
= SWIG_AsVal_int(obj3
, &val4
);
8991 if (!SWIG_IsOK(ecode4
)) {
8992 SWIG_exception_fail(SWIG_ArgError(ecode4
), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
8994 arg4
= static_cast< int >(val4
);
8995 ecode5
= SWIG_AsVal_int(obj4
, &val5
);
8996 if (!SWIG_IsOK(ecode5
)) {
8997 SWIG_exception_fail(SWIG_ArgError(ecode5
), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
8999 arg5
= static_cast< int >(val5
);
9001 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9002 result
= (bool)(arg1
)->Union(arg2
,arg3
,arg4
,arg5
);
9003 wxPyEndAllowThreads(__tstate
);
9004 if (PyErr_Occurred()) SWIG_fail
;
9007 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
9015 SWIGINTERN PyObject
*_wrap_Region_UnionRect(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
9016 PyObject
*resultobj
= 0;
9017 wxRegion
*arg1
= (wxRegion
*) 0 ;
9023 PyObject
* obj0
= 0 ;
9024 PyObject
* obj1
= 0 ;
9025 char * kwnames
[] = {
9026 (char *) "self",(char *) "rect", NULL
9029 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Region_UnionRect",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
9030 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxRegion
, 0 | 0 );
9031 if (!SWIG_IsOK(res1
)) {
9032 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
9034 arg1
= reinterpret_cast< wxRegion
* >(argp1
);
9037 if ( ! wxRect_helper(obj1
, &arg2
)) SWIG_fail
;
9040 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9041 result
= (bool)(arg1
)->Union((wxRect
const &)*arg2
);
9042 wxPyEndAllowThreads(__tstate
);
9043 if (PyErr_Occurred()) SWIG_fail
;
9046 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
9054 SWIGINTERN PyObject
*_wrap_Region_UnionRegion(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
9055 PyObject
*resultobj
= 0;
9056 wxRegion
*arg1
= (wxRegion
*) 0 ;
9057 wxRegion
*arg2
= 0 ;
9063 PyObject
* obj0
= 0 ;
9064 PyObject
* obj1
= 0 ;
9065 char * kwnames
[] = {
9066 (char *) "self",(char *) "region", NULL
9069 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Region_UnionRegion",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
9070 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxRegion
, 0 | 0 );
9071 if (!SWIG_IsOK(res1
)) {
9072 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
9074 arg1
= reinterpret_cast< wxRegion
* >(argp1
);
9075 res2
= SWIG_ConvertPtr(obj1
, &argp2
, SWIGTYPE_p_wxRegion
, 0 | 0);
9076 if (!SWIG_IsOK(res2
)) {
9077 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
9080 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
9082 arg2
= reinterpret_cast< wxRegion
* >(argp2
);
9084 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9085 result
= (bool)(arg1
)->Union((wxRegion
const &)*arg2
);
9086 wxPyEndAllowThreads(__tstate
);
9087 if (PyErr_Occurred()) SWIG_fail
;
9090 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
9098 SWIGINTERN PyObject
*_wrap_Region_Subtract(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
9099 PyObject
*resultobj
= 0;
9100 wxRegion
*arg1
= (wxRegion
*) 0 ;
9116 PyObject
* obj0
= 0 ;
9117 PyObject
* obj1
= 0 ;
9118 PyObject
* obj2
= 0 ;
9119 PyObject
* obj3
= 0 ;
9120 PyObject
* obj4
= 0 ;
9121 char * kwnames
[] = {
9122 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9125 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOOO:Region_Subtract",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) SWIG_fail
;
9126 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxRegion
, 0 | 0 );
9127 if (!SWIG_IsOK(res1
)) {
9128 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
9130 arg1
= reinterpret_cast< wxRegion
* >(argp1
);
9131 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
9132 if (!SWIG_IsOK(ecode2
)) {
9133 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
9135 arg2
= static_cast< int >(val2
);
9136 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
9137 if (!SWIG_IsOK(ecode3
)) {
9138 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
9140 arg3
= static_cast< int >(val3
);
9141 ecode4
= SWIG_AsVal_int(obj3
, &val4
);
9142 if (!SWIG_IsOK(ecode4
)) {
9143 SWIG_exception_fail(SWIG_ArgError(ecode4
), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
9145 arg4
= static_cast< int >(val4
);
9146 ecode5
= SWIG_AsVal_int(obj4
, &val5
);
9147 if (!SWIG_IsOK(ecode5
)) {
9148 SWIG_exception_fail(SWIG_ArgError(ecode5
), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
9150 arg5
= static_cast< int >(val5
);
9152 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9153 result
= (bool)(arg1
)->Subtract(arg2
,arg3
,arg4
,arg5
);
9154 wxPyEndAllowThreads(__tstate
);
9155 if (PyErr_Occurred()) SWIG_fail
;
9158 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
9166 SWIGINTERN PyObject
*_wrap_Region_SubtractRect(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
9167 PyObject
*resultobj
= 0;
9168 wxRegion
*arg1
= (wxRegion
*) 0 ;
9174 PyObject
* obj0
= 0 ;
9175 PyObject
* obj1
= 0 ;
9176 char * kwnames
[] = {
9177 (char *) "self",(char *) "rect", NULL
9180 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Region_SubtractRect",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
9181 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxRegion
, 0 | 0 );
9182 if (!SWIG_IsOK(res1
)) {
9183 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
9185 arg1
= reinterpret_cast< wxRegion
* >(argp1
);
9188 if ( ! wxRect_helper(obj1
, &arg2
)) SWIG_fail
;
9191 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9192 result
= (bool)(arg1
)->Subtract((wxRect
const &)*arg2
);
9193 wxPyEndAllowThreads(__tstate
);
9194 if (PyErr_Occurred()) SWIG_fail
;
9197 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
9205 SWIGINTERN PyObject
*_wrap_Region_SubtractRegion(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
9206 PyObject
*resultobj
= 0;
9207 wxRegion
*arg1
= (wxRegion
*) 0 ;
9208 wxRegion
*arg2
= 0 ;
9214 PyObject
* obj0
= 0 ;
9215 PyObject
* obj1
= 0 ;
9216 char * kwnames
[] = {
9217 (char *) "self",(char *) "region", NULL
9220 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Region_SubtractRegion",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
9221 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxRegion
, 0 | 0 );
9222 if (!SWIG_IsOK(res1
)) {
9223 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
9225 arg1
= reinterpret_cast< wxRegion
* >(argp1
);
9226 res2
= SWIG_ConvertPtr(obj1
, &argp2
, SWIGTYPE_p_wxRegion
, 0 | 0);
9227 if (!SWIG_IsOK(res2
)) {
9228 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
9231 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
9233 arg2
= reinterpret_cast< wxRegion
* >(argp2
);
9235 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9236 result
= (bool)(arg1
)->Subtract((wxRegion
const &)*arg2
);
9237 wxPyEndAllowThreads(__tstate
);
9238 if (PyErr_Occurred()) SWIG_fail
;
9241 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
9249 SWIGINTERN PyObject
*_wrap_Region_Xor(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
9250 PyObject
*resultobj
= 0;
9251 wxRegion
*arg1
= (wxRegion
*) 0 ;
9267 PyObject
* obj0
= 0 ;
9268 PyObject
* obj1
= 0 ;
9269 PyObject
* obj2
= 0 ;
9270 PyObject
* obj3
= 0 ;
9271 PyObject
* obj4
= 0 ;
9272 char * kwnames
[] = {
9273 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9276 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOOO:Region_Xor",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) SWIG_fail
;
9277 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxRegion
, 0 | 0 );
9278 if (!SWIG_IsOK(res1
)) {
9279 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
9281 arg1
= reinterpret_cast< wxRegion
* >(argp1
);
9282 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
9283 if (!SWIG_IsOK(ecode2
)) {
9284 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
9286 arg2
= static_cast< int >(val2
);
9287 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
9288 if (!SWIG_IsOK(ecode3
)) {
9289 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
9291 arg3
= static_cast< int >(val3
);
9292 ecode4
= SWIG_AsVal_int(obj3
, &val4
);
9293 if (!SWIG_IsOK(ecode4
)) {
9294 SWIG_exception_fail(SWIG_ArgError(ecode4
), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
9296 arg4
= static_cast< int >(val4
);
9297 ecode5
= SWIG_AsVal_int(obj4
, &val5
);
9298 if (!SWIG_IsOK(ecode5
)) {
9299 SWIG_exception_fail(SWIG_ArgError(ecode5
), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
9301 arg5
= static_cast< int >(val5
);
9303 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9304 result
= (bool)(arg1
)->Xor(arg2
,arg3
,arg4
,arg5
);
9305 wxPyEndAllowThreads(__tstate
);
9306 if (PyErr_Occurred()) SWIG_fail
;
9309 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
9317 SWIGINTERN PyObject
*_wrap_Region_XorRect(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
9318 PyObject
*resultobj
= 0;
9319 wxRegion
*arg1
= (wxRegion
*) 0 ;
9325 PyObject
* obj0
= 0 ;
9326 PyObject
* obj1
= 0 ;
9327 char * kwnames
[] = {
9328 (char *) "self",(char *) "rect", NULL
9331 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Region_XorRect",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
9332 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxRegion
, 0 | 0 );
9333 if (!SWIG_IsOK(res1
)) {
9334 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
9336 arg1
= reinterpret_cast< wxRegion
* >(argp1
);
9339 if ( ! wxRect_helper(obj1
, &arg2
)) SWIG_fail
;
9342 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9343 result
= (bool)(arg1
)->Xor((wxRect
const &)*arg2
);
9344 wxPyEndAllowThreads(__tstate
);
9345 if (PyErr_Occurred()) SWIG_fail
;
9348 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
9356 SWIGINTERN PyObject
*_wrap_Region_XorRegion(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
9357 PyObject
*resultobj
= 0;
9358 wxRegion
*arg1
= (wxRegion
*) 0 ;
9359 wxRegion
*arg2
= 0 ;
9365 PyObject
* obj0
= 0 ;
9366 PyObject
* obj1
= 0 ;
9367 char * kwnames
[] = {
9368 (char *) "self",(char *) "region", NULL
9371 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Region_XorRegion",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
9372 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxRegion
, 0 | 0 );
9373 if (!SWIG_IsOK(res1
)) {
9374 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
9376 arg1
= reinterpret_cast< wxRegion
* >(argp1
);
9377 res2
= SWIG_ConvertPtr(obj1
, &argp2
, SWIGTYPE_p_wxRegion
, 0 | 0);
9378 if (!SWIG_IsOK(res2
)) {
9379 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
9382 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
9384 arg2
= reinterpret_cast< wxRegion
* >(argp2
);
9386 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9387 result
= (bool)(arg1
)->Xor((wxRegion
const &)*arg2
);
9388 wxPyEndAllowThreads(__tstate
);
9389 if (PyErr_Occurred()) SWIG_fail
;
9392 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
9400 SWIGINTERN PyObject
*_wrap_Region_ConvertToBitmap(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
9401 PyObject
*resultobj
= 0;
9402 wxRegion
*arg1
= (wxRegion
*) 0 ;
9403 SwigValueWrapper
<wxBitmap
> result
;
9406 PyObject
*swig_obj
[1] ;
9408 if (!args
) SWIG_fail
;
9410 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxRegion
, 0 | 0 );
9411 if (!SWIG_IsOK(res1
)) {
9412 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
9414 arg1
= reinterpret_cast< wxRegion
* >(argp1
);
9416 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9417 result
= (arg1
)->ConvertToBitmap();
9418 wxPyEndAllowThreads(__tstate
);
9419 if (PyErr_Occurred()) SWIG_fail
;
9421 resultobj
= SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap
& >(result
))), SWIGTYPE_p_wxBitmap
, SWIG_POINTER_OWN
| 0 );
9428 SWIGINTERN PyObject
*_wrap_Region_UnionBitmap(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
9429 PyObject
*resultobj
= 0;
9430 wxRegion
*arg1
= (wxRegion
*) 0 ;
9431 wxBitmap
*arg2
= 0 ;
9437 PyObject
* obj0
= 0 ;
9438 PyObject
* obj1
= 0 ;
9439 char * kwnames
[] = {
9440 (char *) "self",(char *) "bmp", NULL
9443 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Region_UnionBitmap",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
9444 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxRegion
, 0 | 0 );
9445 if (!SWIG_IsOK(res1
)) {
9446 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
9448 arg1
= reinterpret_cast< wxRegion
* >(argp1
);
9449 res2
= SWIG_ConvertPtr(obj1
, &argp2
, SWIGTYPE_p_wxBitmap
, 0 | 0);
9450 if (!SWIG_IsOK(res2
)) {
9451 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9454 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9456 arg2
= reinterpret_cast< wxBitmap
* >(argp2
);
9458 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9459 result
= (bool)(arg1
)->Union((wxBitmap
const &)*arg2
);
9460 wxPyEndAllowThreads(__tstate
);
9461 if (PyErr_Occurred()) SWIG_fail
;
9464 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
9472 SWIGINTERN PyObject
*_wrap_Region_UnionBitmapColour(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
9473 PyObject
*resultobj
= 0;
9474 wxRegion
*arg1
= (wxRegion
*) 0 ;
9475 wxBitmap
*arg2
= 0 ;
9476 wxColour
*arg3
= 0 ;
9477 int arg4
= (int) 0 ;
9486 PyObject
* obj0
= 0 ;
9487 PyObject
* obj1
= 0 ;
9488 PyObject
* obj2
= 0 ;
9489 PyObject
* obj3
= 0 ;
9490 char * kwnames
[] = {
9491 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
9494 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO|O:Region_UnionBitmapColour",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) SWIG_fail
;
9495 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxRegion
, 0 | 0 );
9496 if (!SWIG_IsOK(res1
)) {
9497 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
9499 arg1
= reinterpret_cast< wxRegion
* >(argp1
);
9500 res2
= SWIG_ConvertPtr(obj1
, &argp2
, SWIGTYPE_p_wxBitmap
, 0 | 0);
9501 if (!SWIG_IsOK(res2
)) {
9502 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9505 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9507 arg2
= reinterpret_cast< wxBitmap
* >(argp2
);
9510 if ( ! wxColour_helper(obj2
, &arg3
)) SWIG_fail
;
9513 ecode4
= SWIG_AsVal_int(obj3
, &val4
);
9514 if (!SWIG_IsOK(ecode4
)) {
9515 SWIG_exception_fail(SWIG_ArgError(ecode4
), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
9517 arg4
= static_cast< int >(val4
);
9520 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9521 result
= (bool)(arg1
)->Union((wxBitmap
const &)*arg2
,(wxColour
const &)*arg3
,arg4
);
9522 wxPyEndAllowThreads(__tstate
);
9523 if (PyErr_Occurred()) SWIG_fail
;
9526 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
9534 SWIGINTERN PyObject
*Region_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
9536 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
9537 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion
, SWIG_NewClientData(obj
));
9538 return SWIG_Py_Void();
9541 SWIGINTERN PyObject
*Region_swiginit(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
9542 return SWIG_Python_InitShadowInstance(args
);
9545 SWIGINTERN PyObject
*_wrap_new_RegionIterator(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
9546 PyObject
*resultobj
= 0;
9547 wxRegion
*arg1
= 0 ;
9548 wxRegionIterator
*result
= 0 ;
9551 PyObject
* obj0
= 0 ;
9552 char * kwnames
[] = {
9553 (char *) "region", NULL
9556 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:new_RegionIterator",kwnames
,&obj0
)) SWIG_fail
;
9557 res1
= SWIG_ConvertPtr(obj0
, &argp1
, SWIGTYPE_p_wxRegion
, 0 | 0);
9558 if (!SWIG_IsOK(res1
)) {
9559 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
9562 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
9564 arg1
= reinterpret_cast< wxRegion
* >(argp1
);
9566 if (!wxPyCheckForApp()) SWIG_fail
;
9567 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9568 result
= (wxRegionIterator
*)new wxRegionIterator((wxRegion
const &)*arg1
);
9569 wxPyEndAllowThreads(__tstate
);
9570 if (PyErr_Occurred()) SWIG_fail
;
9572 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxRegionIterator
, SWIG_POINTER_NEW
| 0 );
9579 SWIGINTERN PyObject
*_wrap_delete_RegionIterator(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
9580 PyObject
*resultobj
= 0;
9581 wxRegionIterator
*arg1
= (wxRegionIterator
*) 0 ;
9584 PyObject
*swig_obj
[1] ;
9586 if (!args
) SWIG_fail
;
9588 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxRegionIterator
, SWIG_POINTER_DISOWN
| 0 );
9589 if (!SWIG_IsOK(res1
)) {
9590 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9592 arg1
= reinterpret_cast< wxRegionIterator
* >(argp1
);
9594 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9597 wxPyEndAllowThreads(__tstate
);
9598 if (PyErr_Occurred()) SWIG_fail
;
9600 resultobj
= SWIG_Py_Void();
9607 SWIGINTERN PyObject
*_wrap_RegionIterator_GetX(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
9608 PyObject
*resultobj
= 0;
9609 wxRegionIterator
*arg1
= (wxRegionIterator
*) 0 ;
9613 PyObject
*swig_obj
[1] ;
9615 if (!args
) SWIG_fail
;
9617 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxRegionIterator
, 0 | 0 );
9618 if (!SWIG_IsOK(res1
)) {
9619 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9621 arg1
= reinterpret_cast< wxRegionIterator
* >(argp1
);
9623 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9624 result
= (int)(arg1
)->GetX();
9625 wxPyEndAllowThreads(__tstate
);
9626 if (PyErr_Occurred()) SWIG_fail
;
9628 resultobj
= SWIG_From_int(static_cast< int >(result
));
9635 SWIGINTERN PyObject
*_wrap_RegionIterator_GetY(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
9636 PyObject
*resultobj
= 0;
9637 wxRegionIterator
*arg1
= (wxRegionIterator
*) 0 ;
9641 PyObject
*swig_obj
[1] ;
9643 if (!args
) SWIG_fail
;
9645 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxRegionIterator
, 0 | 0 );
9646 if (!SWIG_IsOK(res1
)) {
9647 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9649 arg1
= reinterpret_cast< wxRegionIterator
* >(argp1
);
9651 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9652 result
= (int)(arg1
)->GetY();
9653 wxPyEndAllowThreads(__tstate
);
9654 if (PyErr_Occurred()) SWIG_fail
;
9656 resultobj
= SWIG_From_int(static_cast< int >(result
));
9663 SWIGINTERN PyObject
*_wrap_RegionIterator_GetW(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
9664 PyObject
*resultobj
= 0;
9665 wxRegionIterator
*arg1
= (wxRegionIterator
*) 0 ;
9669 PyObject
*swig_obj
[1] ;
9671 if (!args
) SWIG_fail
;
9673 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxRegionIterator
, 0 | 0 );
9674 if (!SWIG_IsOK(res1
)) {
9675 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9677 arg1
= reinterpret_cast< wxRegionIterator
* >(argp1
);
9679 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9680 result
= (int)(arg1
)->GetW();
9681 wxPyEndAllowThreads(__tstate
);
9682 if (PyErr_Occurred()) SWIG_fail
;
9684 resultobj
= SWIG_From_int(static_cast< int >(result
));
9691 SWIGINTERN PyObject
*_wrap_RegionIterator_GetWidth(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
9692 PyObject
*resultobj
= 0;
9693 wxRegionIterator
*arg1
= (wxRegionIterator
*) 0 ;
9697 PyObject
*swig_obj
[1] ;
9699 if (!args
) SWIG_fail
;
9701 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxRegionIterator
, 0 | 0 );
9702 if (!SWIG_IsOK(res1
)) {
9703 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9705 arg1
= reinterpret_cast< wxRegionIterator
* >(argp1
);
9707 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9708 result
= (int)(arg1
)->GetWidth();
9709 wxPyEndAllowThreads(__tstate
);
9710 if (PyErr_Occurred()) SWIG_fail
;
9712 resultobj
= SWIG_From_int(static_cast< int >(result
));
9719 SWIGINTERN PyObject
*_wrap_RegionIterator_GetH(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
9720 PyObject
*resultobj
= 0;
9721 wxRegionIterator
*arg1
= (wxRegionIterator
*) 0 ;
9725 PyObject
*swig_obj
[1] ;
9727 if (!args
) SWIG_fail
;
9729 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxRegionIterator
, 0 | 0 );
9730 if (!SWIG_IsOK(res1
)) {
9731 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9733 arg1
= reinterpret_cast< wxRegionIterator
* >(argp1
);
9735 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9736 result
= (int)(arg1
)->GetH();
9737 wxPyEndAllowThreads(__tstate
);
9738 if (PyErr_Occurred()) SWIG_fail
;
9740 resultobj
= SWIG_From_int(static_cast< int >(result
));
9747 SWIGINTERN PyObject
*_wrap_RegionIterator_GetHeight(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
9748 PyObject
*resultobj
= 0;
9749 wxRegionIterator
*arg1
= (wxRegionIterator
*) 0 ;
9753 PyObject
*swig_obj
[1] ;
9755 if (!args
) SWIG_fail
;
9757 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxRegionIterator
, 0 | 0 );
9758 if (!SWIG_IsOK(res1
)) {
9759 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9761 arg1
= reinterpret_cast< wxRegionIterator
* >(argp1
);
9763 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9764 result
= (int)(arg1
)->GetHeight();
9765 wxPyEndAllowThreads(__tstate
);
9766 if (PyErr_Occurred()) SWIG_fail
;
9768 resultobj
= SWIG_From_int(static_cast< int >(result
));
9775 SWIGINTERN PyObject
*_wrap_RegionIterator_GetRect(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
9776 PyObject
*resultobj
= 0;
9777 wxRegionIterator
*arg1
= (wxRegionIterator
*) 0 ;
9781 PyObject
*swig_obj
[1] ;
9783 if (!args
) SWIG_fail
;
9785 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxRegionIterator
, 0 | 0 );
9786 if (!SWIG_IsOK(res1
)) {
9787 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9789 arg1
= reinterpret_cast< wxRegionIterator
* >(argp1
);
9791 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9792 result
= (arg1
)->GetRect();
9793 wxPyEndAllowThreads(__tstate
);
9794 if (PyErr_Occurred()) SWIG_fail
;
9796 resultobj
= SWIG_NewPointerObj((new wxRect(static_cast< const wxRect
& >(result
))), SWIGTYPE_p_wxRect
, SWIG_POINTER_OWN
| 0 );
9803 SWIGINTERN PyObject
*_wrap_RegionIterator_HaveRects(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
9804 PyObject
*resultobj
= 0;
9805 wxRegionIterator
*arg1
= (wxRegionIterator
*) 0 ;
9809 PyObject
*swig_obj
[1] ;
9811 if (!args
) SWIG_fail
;
9813 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxRegionIterator
, 0 | 0 );
9814 if (!SWIG_IsOK(res1
)) {
9815 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9817 arg1
= reinterpret_cast< wxRegionIterator
* >(argp1
);
9819 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9820 result
= (bool)(arg1
)->HaveRects();
9821 wxPyEndAllowThreads(__tstate
);
9822 if (PyErr_Occurred()) SWIG_fail
;
9825 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
9833 SWIGINTERN PyObject
*_wrap_RegionIterator_Reset(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
9834 PyObject
*resultobj
= 0;
9835 wxRegionIterator
*arg1
= (wxRegionIterator
*) 0 ;
9838 PyObject
*swig_obj
[1] ;
9840 if (!args
) SWIG_fail
;
9842 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxRegionIterator
, 0 | 0 );
9843 if (!SWIG_IsOK(res1
)) {
9844 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9846 arg1
= reinterpret_cast< wxRegionIterator
* >(argp1
);
9848 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9850 wxPyEndAllowThreads(__tstate
);
9851 if (PyErr_Occurred()) SWIG_fail
;
9853 resultobj
= SWIG_Py_Void();
9860 SWIGINTERN PyObject
*_wrap_RegionIterator_Next(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
9861 PyObject
*resultobj
= 0;
9862 wxRegionIterator
*arg1
= (wxRegionIterator
*) 0 ;
9865 PyObject
*swig_obj
[1] ;
9867 if (!args
) SWIG_fail
;
9869 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxRegionIterator
, 0 | 0 );
9870 if (!SWIG_IsOK(res1
)) {
9871 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9873 arg1
= reinterpret_cast< wxRegionIterator
* >(argp1
);
9875 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9876 wxRegionIterator_Next(arg1
);
9877 wxPyEndAllowThreads(__tstate
);
9878 if (PyErr_Occurred()) SWIG_fail
;
9880 resultobj
= SWIG_Py_Void();
9887 SWIGINTERN PyObject
*_wrap_RegionIterator___nonzero__(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
9888 PyObject
*resultobj
= 0;
9889 wxRegionIterator
*arg1
= (wxRegionIterator
*) 0 ;
9893 PyObject
*swig_obj
[1] ;
9895 if (!args
) SWIG_fail
;
9897 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxRegionIterator
, 0 | 0 );
9898 if (!SWIG_IsOK(res1
)) {
9899 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9901 arg1
= reinterpret_cast< wxRegionIterator
* >(argp1
);
9903 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9904 result
= (bool)wxRegionIterator___nonzero__(arg1
);
9905 wxPyEndAllowThreads(__tstate
);
9906 if (PyErr_Occurred()) SWIG_fail
;
9909 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
9917 SWIGINTERN PyObject
*RegionIterator_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
9919 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
9920 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator
, SWIG_NewClientData(obj
));
9921 return SWIG_Py_Void();
9924 SWIGINTERN PyObject
*RegionIterator_swiginit(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
9925 return SWIG_Python_InitShadowInstance(args
);
9928 SWIGINTERN PyObject
*_wrap_new_NativeFontInfo(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
9929 PyObject
*resultobj
= 0;
9930 wxNativeFontInfo
*result
= 0 ;
9932 if (!SWIG_Python_UnpackTuple(args
,"new_NativeFontInfo",0,0,0)) SWIG_fail
;
9934 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9935 result
= (wxNativeFontInfo
*)new wxNativeFontInfo();
9936 wxPyEndAllowThreads(__tstate
);
9937 if (PyErr_Occurred()) SWIG_fail
;
9939 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxNativeFontInfo
, SWIG_POINTER_NEW
| 0 );
9946 SWIGINTERN PyObject
*_wrap_delete_NativeFontInfo(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
9947 PyObject
*resultobj
= 0;
9948 wxNativeFontInfo
*arg1
= (wxNativeFontInfo
*) 0 ;
9951 PyObject
*swig_obj
[1] ;
9953 if (!args
) SWIG_fail
;
9955 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxNativeFontInfo
, SWIG_POINTER_DISOWN
| 0 );
9956 if (!SWIG_IsOK(res1
)) {
9957 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9959 arg1
= reinterpret_cast< wxNativeFontInfo
* >(argp1
);
9961 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9964 wxPyEndAllowThreads(__tstate
);
9965 if (PyErr_Occurred()) SWIG_fail
;
9967 resultobj
= SWIG_Py_Void();
9974 SWIGINTERN PyObject
*_wrap_NativeFontInfo_Init(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
9975 PyObject
*resultobj
= 0;
9976 wxNativeFontInfo
*arg1
= (wxNativeFontInfo
*) 0 ;
9979 PyObject
*swig_obj
[1] ;
9981 if (!args
) SWIG_fail
;
9983 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxNativeFontInfo
, 0 | 0 );
9984 if (!SWIG_IsOK(res1
)) {
9985 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9987 arg1
= reinterpret_cast< wxNativeFontInfo
* >(argp1
);
9989 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9991 wxPyEndAllowThreads(__tstate
);
9992 if (PyErr_Occurred()) SWIG_fail
;
9994 resultobj
= SWIG_Py_Void();
10001 SWIGINTERN PyObject
*_wrap_NativeFontInfo_InitFromFont(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
10002 PyObject
*resultobj
= 0;
10003 wxNativeFontInfo
*arg1
= (wxNativeFontInfo
*) 0 ;
10009 PyObject
* obj0
= 0 ;
10010 PyObject
* obj1
= 0 ;
10011 char * kwnames
[] = {
10012 (char *) "self",(char *) "font", NULL
10015 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:NativeFontInfo_InitFromFont",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
10016 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxNativeFontInfo
, 0 | 0 );
10017 if (!SWIG_IsOK(res1
)) {
10018 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10020 arg1
= reinterpret_cast< wxNativeFontInfo
* >(argp1
);
10021 res2
= SWIG_ConvertPtr(obj1
, &argp2
, SWIGTYPE_p_wxFont
, 0 | 0);
10022 if (!SWIG_IsOK(res2
)) {
10023 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10026 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10028 arg2
= reinterpret_cast< wxFont
* >(argp2
);
10030 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10031 (arg1
)->InitFromFont((wxFont
const &)*arg2
);
10032 wxPyEndAllowThreads(__tstate
);
10033 if (PyErr_Occurred()) SWIG_fail
;
10035 resultobj
= SWIG_Py_Void();
10042 SWIGINTERN PyObject
*_wrap_NativeFontInfo_GetPointSize(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
10043 PyObject
*resultobj
= 0;
10044 wxNativeFontInfo
*arg1
= (wxNativeFontInfo
*) 0 ;
10048 PyObject
*swig_obj
[1] ;
10050 if (!args
) SWIG_fail
;
10051 swig_obj
[0] = args
;
10052 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxNativeFontInfo
, 0 | 0 );
10053 if (!SWIG_IsOK(res1
)) {
10054 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10056 arg1
= reinterpret_cast< wxNativeFontInfo
* >(argp1
);
10058 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10059 result
= (int)((wxNativeFontInfo
const *)arg1
)->GetPointSize();
10060 wxPyEndAllowThreads(__tstate
);
10061 if (PyErr_Occurred()) SWIG_fail
;
10063 resultobj
= SWIG_From_int(static_cast< int >(result
));
10070 SWIGINTERN PyObject
*_wrap_NativeFontInfo_GetPixelSize(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
10071 PyObject
*resultobj
= 0;
10072 wxNativeFontInfo
*arg1
= (wxNativeFontInfo
*) 0 ;
10076 PyObject
*swig_obj
[1] ;
10078 if (!args
) SWIG_fail
;
10079 swig_obj
[0] = args
;
10080 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxNativeFontInfo
, 0 | 0 );
10081 if (!SWIG_IsOK(res1
)) {
10082 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "NativeFontInfo_GetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10084 arg1
= reinterpret_cast< wxNativeFontInfo
* >(argp1
);
10086 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10087 result
= ((wxNativeFontInfo
const *)arg1
)->GetPixelSize();
10088 wxPyEndAllowThreads(__tstate
);
10089 if (PyErr_Occurred()) SWIG_fail
;
10091 resultobj
= SWIG_NewPointerObj((new wxSize(static_cast< const wxSize
& >(result
))), SWIGTYPE_p_wxSize
, SWIG_POINTER_OWN
| 0 );
10098 SWIGINTERN PyObject
*_wrap_NativeFontInfo_GetStyle(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
10099 PyObject
*resultobj
= 0;
10100 wxNativeFontInfo
*arg1
= (wxNativeFontInfo
*) 0 ;
10101 wxFontStyle result
;
10104 PyObject
*swig_obj
[1] ;
10106 if (!args
) SWIG_fail
;
10107 swig_obj
[0] = args
;
10108 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxNativeFontInfo
, 0 | 0 );
10109 if (!SWIG_IsOK(res1
)) {
10110 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10112 arg1
= reinterpret_cast< wxNativeFontInfo
* >(argp1
);
10114 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10115 result
= (wxFontStyle
)((wxNativeFontInfo
const *)arg1
)->GetStyle();
10116 wxPyEndAllowThreads(__tstate
);
10117 if (PyErr_Occurred()) SWIG_fail
;
10119 resultobj
= SWIG_From_int(static_cast< int >(result
));
10126 SWIGINTERN PyObject
*_wrap_NativeFontInfo_GetWeight(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
10127 PyObject
*resultobj
= 0;
10128 wxNativeFontInfo
*arg1
= (wxNativeFontInfo
*) 0 ;
10129 wxFontWeight result
;
10132 PyObject
*swig_obj
[1] ;
10134 if (!args
) SWIG_fail
;
10135 swig_obj
[0] = args
;
10136 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxNativeFontInfo
, 0 | 0 );
10137 if (!SWIG_IsOK(res1
)) {
10138 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10140 arg1
= reinterpret_cast< wxNativeFontInfo
* >(argp1
);
10142 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10143 result
= (wxFontWeight
)((wxNativeFontInfo
const *)arg1
)->GetWeight();
10144 wxPyEndAllowThreads(__tstate
);
10145 if (PyErr_Occurred()) SWIG_fail
;
10147 resultobj
= SWIG_From_int(static_cast< int >(result
));
10154 SWIGINTERN PyObject
*_wrap_NativeFontInfo_GetUnderlined(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
10155 PyObject
*resultobj
= 0;
10156 wxNativeFontInfo
*arg1
= (wxNativeFontInfo
*) 0 ;
10160 PyObject
*swig_obj
[1] ;
10162 if (!args
) SWIG_fail
;
10163 swig_obj
[0] = args
;
10164 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxNativeFontInfo
, 0 | 0 );
10165 if (!SWIG_IsOK(res1
)) {
10166 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10168 arg1
= reinterpret_cast< wxNativeFontInfo
* >(argp1
);
10170 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10171 result
= (bool)((wxNativeFontInfo
const *)arg1
)->GetUnderlined();
10172 wxPyEndAllowThreads(__tstate
);
10173 if (PyErr_Occurred()) SWIG_fail
;
10176 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
10184 SWIGINTERN PyObject
*_wrap_NativeFontInfo_GetFaceName(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
10185 PyObject
*resultobj
= 0;
10186 wxNativeFontInfo
*arg1
= (wxNativeFontInfo
*) 0 ;
10190 PyObject
*swig_obj
[1] ;
10192 if (!args
) SWIG_fail
;
10193 swig_obj
[0] = args
;
10194 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxNativeFontInfo
, 0 | 0 );
10195 if (!SWIG_IsOK(res1
)) {
10196 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10198 arg1
= reinterpret_cast< wxNativeFontInfo
* >(argp1
);
10200 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10201 result
= ((wxNativeFontInfo
const *)arg1
)->GetFaceName();
10202 wxPyEndAllowThreads(__tstate
);
10203 if (PyErr_Occurred()) SWIG_fail
;
10207 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
10209 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
10218 SWIGINTERN PyObject
*_wrap_NativeFontInfo_GetFamily(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
10219 PyObject
*resultobj
= 0;
10220 wxNativeFontInfo
*arg1
= (wxNativeFontInfo
*) 0 ;
10221 wxFontFamily result
;
10224 PyObject
*swig_obj
[1] ;
10226 if (!args
) SWIG_fail
;
10227 swig_obj
[0] = args
;
10228 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxNativeFontInfo
, 0 | 0 );
10229 if (!SWIG_IsOK(res1
)) {
10230 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10232 arg1
= reinterpret_cast< wxNativeFontInfo
* >(argp1
);
10234 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10235 result
= (wxFontFamily
)((wxNativeFontInfo
const *)arg1
)->GetFamily();
10236 wxPyEndAllowThreads(__tstate
);
10237 if (PyErr_Occurred()) SWIG_fail
;
10239 resultobj
= SWIG_From_int(static_cast< int >(result
));
10246 SWIGINTERN PyObject
*_wrap_NativeFontInfo_GetEncoding(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
10247 PyObject
*resultobj
= 0;
10248 wxNativeFontInfo
*arg1
= (wxNativeFontInfo
*) 0 ;
10249 wxFontEncoding result
;
10252 PyObject
*swig_obj
[1] ;
10254 if (!args
) SWIG_fail
;
10255 swig_obj
[0] = args
;
10256 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxNativeFontInfo
, 0 | 0 );
10257 if (!SWIG_IsOK(res1
)) {
10258 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10260 arg1
= reinterpret_cast< wxNativeFontInfo
* >(argp1
);
10262 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10263 result
= (wxFontEncoding
)((wxNativeFontInfo
const *)arg1
)->GetEncoding();
10264 wxPyEndAllowThreads(__tstate
);
10265 if (PyErr_Occurred()) SWIG_fail
;
10267 resultobj
= SWIG_From_int(static_cast< int >(result
));
10274 SWIGINTERN PyObject
*_wrap_NativeFontInfo_SetPointSize(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
10275 PyObject
*resultobj
= 0;
10276 wxNativeFontInfo
*arg1
= (wxNativeFontInfo
*) 0 ;
10282 PyObject
* obj0
= 0 ;
10283 PyObject
* obj1
= 0 ;
10284 char * kwnames
[] = {
10285 (char *) "self",(char *) "pointsize", NULL
10288 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:NativeFontInfo_SetPointSize",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
10289 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxNativeFontInfo
, 0 | 0 );
10290 if (!SWIG_IsOK(res1
)) {
10291 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10293 arg1
= reinterpret_cast< wxNativeFontInfo
* >(argp1
);
10294 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
10295 if (!SWIG_IsOK(ecode2
)) {
10296 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
10298 arg2
= static_cast< int >(val2
);
10300 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10301 (arg1
)->SetPointSize(arg2
);
10302 wxPyEndAllowThreads(__tstate
);
10303 if (PyErr_Occurred()) SWIG_fail
;
10305 resultobj
= SWIG_Py_Void();
10312 SWIGINTERN PyObject
*_wrap_NativeFontInfo_SetPixelSize(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
10313 PyObject
*resultobj
= 0;
10314 wxNativeFontInfo
*arg1
= (wxNativeFontInfo
*) 0 ;
10319 PyObject
* obj0
= 0 ;
10320 PyObject
* obj1
= 0 ;
10321 char * kwnames
[] = {
10322 (char *) "self",(char *) "pixelSize", NULL
10325 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:NativeFontInfo_SetPixelSize",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
10326 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxNativeFontInfo
, 0 | 0 );
10327 if (!SWIG_IsOK(res1
)) {
10328 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "NativeFontInfo_SetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10330 arg1
= reinterpret_cast< wxNativeFontInfo
* >(argp1
);
10333 if ( ! wxSize_helper(obj1
, &arg2
)) SWIG_fail
;
10336 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10337 (arg1
)->SetPixelSize((wxSize
const &)*arg2
);
10338 wxPyEndAllowThreads(__tstate
);
10339 if (PyErr_Occurred()) SWIG_fail
;
10341 resultobj
= SWIG_Py_Void();
10348 SWIGINTERN PyObject
*_wrap_NativeFontInfo_SetStyle(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
10349 PyObject
*resultobj
= 0;
10350 wxNativeFontInfo
*arg1
= (wxNativeFontInfo
*) 0 ;
10356 PyObject
* obj0
= 0 ;
10357 PyObject
* obj1
= 0 ;
10358 char * kwnames
[] = {
10359 (char *) "self",(char *) "style", NULL
10362 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:NativeFontInfo_SetStyle",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
10363 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxNativeFontInfo
, 0 | 0 );
10364 if (!SWIG_IsOK(res1
)) {
10365 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10367 arg1
= reinterpret_cast< wxNativeFontInfo
* >(argp1
);
10368 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
10369 if (!SWIG_IsOK(ecode2
)) {
10370 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
10372 arg2
= static_cast< wxFontStyle
>(val2
);
10374 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10375 (arg1
)->SetStyle(arg2
);
10376 wxPyEndAllowThreads(__tstate
);
10377 if (PyErr_Occurred()) SWIG_fail
;
10379 resultobj
= SWIG_Py_Void();
10386 SWIGINTERN PyObject
*_wrap_NativeFontInfo_SetWeight(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
10387 PyObject
*resultobj
= 0;
10388 wxNativeFontInfo
*arg1
= (wxNativeFontInfo
*) 0 ;
10389 wxFontWeight arg2
;
10394 PyObject
* obj0
= 0 ;
10395 PyObject
* obj1
= 0 ;
10396 char * kwnames
[] = {
10397 (char *) "self",(char *) "weight", NULL
10400 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:NativeFontInfo_SetWeight",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
10401 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxNativeFontInfo
, 0 | 0 );
10402 if (!SWIG_IsOK(res1
)) {
10403 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10405 arg1
= reinterpret_cast< wxNativeFontInfo
* >(argp1
);
10406 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
10407 if (!SWIG_IsOK(ecode2
)) {
10408 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
10410 arg2
= static_cast< wxFontWeight
>(val2
);
10412 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10413 (arg1
)->SetWeight(arg2
);
10414 wxPyEndAllowThreads(__tstate
);
10415 if (PyErr_Occurred()) SWIG_fail
;
10417 resultobj
= SWIG_Py_Void();
10424 SWIGINTERN PyObject
*_wrap_NativeFontInfo_SetUnderlined(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
10425 PyObject
*resultobj
= 0;
10426 wxNativeFontInfo
*arg1
= (wxNativeFontInfo
*) 0 ;
10432 PyObject
* obj0
= 0 ;
10433 PyObject
* obj1
= 0 ;
10434 char * kwnames
[] = {
10435 (char *) "self",(char *) "underlined", NULL
10438 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
10439 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxNativeFontInfo
, 0 | 0 );
10440 if (!SWIG_IsOK(res1
)) {
10441 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10443 arg1
= reinterpret_cast< wxNativeFontInfo
* >(argp1
);
10444 ecode2
= SWIG_AsVal_bool(obj1
, &val2
);
10445 if (!SWIG_IsOK(ecode2
)) {
10446 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
10448 arg2
= static_cast< bool >(val2
);
10450 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10451 (arg1
)->SetUnderlined(arg2
);
10452 wxPyEndAllowThreads(__tstate
);
10453 if (PyErr_Occurred()) SWIG_fail
;
10455 resultobj
= SWIG_Py_Void();
10462 SWIGINTERN PyObject
*_wrap_NativeFontInfo_SetFaceName(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
10463 PyObject
*resultobj
= 0;
10464 wxNativeFontInfo
*arg1
= (wxNativeFontInfo
*) 0 ;
10468 PyObject
* obj0
= 0 ;
10469 PyObject
* obj1
= 0 ;
10470 char * kwnames
[] = {
10471 (char *) "self",(char *) "facename", NULL
10474 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:NativeFontInfo_SetFaceName",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
10475 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxNativeFontInfo
, 0 | 0 );
10476 if (!SWIG_IsOK(res1
)) {
10477 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10479 arg1
= reinterpret_cast< wxNativeFontInfo
* >(argp1
);
10481 wxString
* sptr
= wxString_in_helper(obj1
);
10482 if (sptr
== NULL
) SWIG_fail
;
10487 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10488 (arg1
)->SetFaceName(arg2
);
10489 wxPyEndAllowThreads(__tstate
);
10490 if (PyErr_Occurred()) SWIG_fail
;
10492 resultobj
= SWIG_Py_Void();
10499 SWIGINTERN PyObject
*_wrap_NativeFontInfo_SetFamily(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
10500 PyObject
*resultobj
= 0;
10501 wxNativeFontInfo
*arg1
= (wxNativeFontInfo
*) 0 ;
10502 wxFontFamily arg2
;
10507 PyObject
* obj0
= 0 ;
10508 PyObject
* obj1
= 0 ;
10509 char * kwnames
[] = {
10510 (char *) "self",(char *) "family", NULL
10513 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:NativeFontInfo_SetFamily",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
10514 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxNativeFontInfo
, 0 | 0 );
10515 if (!SWIG_IsOK(res1
)) {
10516 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10518 arg1
= reinterpret_cast< wxNativeFontInfo
* >(argp1
);
10519 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
10520 if (!SWIG_IsOK(ecode2
)) {
10521 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
10523 arg2
= static_cast< wxFontFamily
>(val2
);
10525 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10526 (arg1
)->SetFamily(arg2
);
10527 wxPyEndAllowThreads(__tstate
);
10528 if (PyErr_Occurred()) SWIG_fail
;
10530 resultobj
= SWIG_Py_Void();
10537 SWIGINTERN PyObject
*_wrap_NativeFontInfo_SetEncoding(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
10538 PyObject
*resultobj
= 0;
10539 wxNativeFontInfo
*arg1
= (wxNativeFontInfo
*) 0 ;
10540 wxFontEncoding arg2
;
10545 PyObject
* obj0
= 0 ;
10546 PyObject
* obj1
= 0 ;
10547 char * kwnames
[] = {
10548 (char *) "self",(char *) "encoding", NULL
10551 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:NativeFontInfo_SetEncoding",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
10552 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxNativeFontInfo
, 0 | 0 );
10553 if (!SWIG_IsOK(res1
)) {
10554 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10556 arg1
= reinterpret_cast< wxNativeFontInfo
* >(argp1
);
10557 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
10558 if (!SWIG_IsOK(ecode2
)) {
10559 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
10561 arg2
= static_cast< wxFontEncoding
>(val2
);
10563 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10564 (arg1
)->SetEncoding(arg2
);
10565 wxPyEndAllowThreads(__tstate
);
10566 if (PyErr_Occurred()) SWIG_fail
;
10568 resultobj
= SWIG_Py_Void();
10575 SWIGINTERN PyObject
*_wrap_NativeFontInfo_FromString(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
10576 PyObject
*resultobj
= 0;
10577 wxNativeFontInfo
*arg1
= (wxNativeFontInfo
*) 0 ;
10578 wxString
*arg2
= 0 ;
10582 bool temp2
= false ;
10583 PyObject
* obj0
= 0 ;
10584 PyObject
* obj1
= 0 ;
10585 char * kwnames
[] = {
10586 (char *) "self",(char *) "s", NULL
10589 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:NativeFontInfo_FromString",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
10590 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxNativeFontInfo
, 0 | 0 );
10591 if (!SWIG_IsOK(res1
)) {
10592 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10594 arg1
= reinterpret_cast< wxNativeFontInfo
* >(argp1
);
10596 arg2
= wxString_in_helper(obj1
);
10597 if (arg2
== NULL
) SWIG_fail
;
10601 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10602 result
= (bool)(arg1
)->FromString((wxString
const &)*arg2
);
10603 wxPyEndAllowThreads(__tstate
);
10604 if (PyErr_Occurred()) SWIG_fail
;
10607 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
10623 SWIGINTERN PyObject
*_wrap_NativeFontInfo_ToString(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
10624 PyObject
*resultobj
= 0;
10625 wxNativeFontInfo
*arg1
= (wxNativeFontInfo
*) 0 ;
10629 PyObject
*swig_obj
[1] ;
10631 if (!args
) SWIG_fail
;
10632 swig_obj
[0] = args
;
10633 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxNativeFontInfo
, 0 | 0 );
10634 if (!SWIG_IsOK(res1
)) {
10635 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10637 arg1
= reinterpret_cast< wxNativeFontInfo
* >(argp1
);
10639 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10640 result
= ((wxNativeFontInfo
const *)arg1
)->ToString();
10641 wxPyEndAllowThreads(__tstate
);
10642 if (PyErr_Occurred()) SWIG_fail
;
10646 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
10648 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
10657 SWIGINTERN PyObject
*_wrap_NativeFontInfo___str__(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
10658 PyObject
*resultobj
= 0;
10659 wxNativeFontInfo
*arg1
= (wxNativeFontInfo
*) 0 ;
10663 PyObject
*swig_obj
[1] ;
10665 if (!args
) SWIG_fail
;
10666 swig_obj
[0] = args
;
10667 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxNativeFontInfo
, 0 | 0 );
10668 if (!SWIG_IsOK(res1
)) {
10669 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10671 arg1
= reinterpret_cast< wxNativeFontInfo
* >(argp1
);
10673 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10674 result
= wxNativeFontInfo___str__(arg1
);
10675 wxPyEndAllowThreads(__tstate
);
10676 if (PyErr_Occurred()) SWIG_fail
;
10680 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
10682 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
10691 SWIGINTERN PyObject
*_wrap_NativeFontInfo_FromUserString(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
10692 PyObject
*resultobj
= 0;
10693 wxNativeFontInfo
*arg1
= (wxNativeFontInfo
*) 0 ;
10694 wxString
*arg2
= 0 ;
10698 bool temp2
= false ;
10699 PyObject
* obj0
= 0 ;
10700 PyObject
* obj1
= 0 ;
10701 char * kwnames
[] = {
10702 (char *) "self",(char *) "s", NULL
10705 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:NativeFontInfo_FromUserString",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
10706 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxNativeFontInfo
, 0 | 0 );
10707 if (!SWIG_IsOK(res1
)) {
10708 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10710 arg1
= reinterpret_cast< wxNativeFontInfo
* >(argp1
);
10712 arg2
= wxString_in_helper(obj1
);
10713 if (arg2
== NULL
) SWIG_fail
;
10717 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10718 result
= (bool)(arg1
)->FromUserString((wxString
const &)*arg2
);
10719 wxPyEndAllowThreads(__tstate
);
10720 if (PyErr_Occurred()) SWIG_fail
;
10723 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
10739 SWIGINTERN PyObject
*_wrap_NativeFontInfo_ToUserString(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
10740 PyObject
*resultobj
= 0;
10741 wxNativeFontInfo
*arg1
= (wxNativeFontInfo
*) 0 ;
10745 PyObject
*swig_obj
[1] ;
10747 if (!args
) SWIG_fail
;
10748 swig_obj
[0] = args
;
10749 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxNativeFontInfo
, 0 | 0 );
10750 if (!SWIG_IsOK(res1
)) {
10751 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10753 arg1
= reinterpret_cast< wxNativeFontInfo
* >(argp1
);
10755 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10756 result
= ((wxNativeFontInfo
const *)arg1
)->ToUserString();
10757 wxPyEndAllowThreads(__tstate
);
10758 if (PyErr_Occurred()) SWIG_fail
;
10762 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
10764 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
10773 SWIGINTERN PyObject
*NativeFontInfo_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
10775 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
10776 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo
, SWIG_NewClientData(obj
));
10777 return SWIG_Py_Void();
10780 SWIGINTERN PyObject
*NativeFontInfo_swiginit(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
10781 return SWIG_Python_InitShadowInstance(args
);
10784 SWIGINTERN PyObject
*_wrap_NativeEncodingInfo_facename_set(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
10785 PyObject
*resultobj
= 0;
10786 wxNativeEncodingInfo
*arg1
= (wxNativeEncodingInfo
*) 0 ;
10787 wxString
*arg2
= (wxString
*) 0 ;
10790 bool temp2
= false ;
10791 PyObject
*swig_obj
[2] ;
10793 if (!SWIG_Python_UnpackTuple(args
,"NativeEncodingInfo_facename_set",2,2,swig_obj
)) SWIG_fail
;
10794 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxNativeEncodingInfo
, 0 | 0 );
10795 if (!SWIG_IsOK(res1
)) {
10796 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10798 arg1
= reinterpret_cast< wxNativeEncodingInfo
* >(argp1
);
10800 arg2
= wxString_in_helper(swig_obj
[1]);
10801 if (arg2
== NULL
) SWIG_fail
;
10804 if (arg1
) (arg1
)->facename
= *arg2
;
10806 resultobj
= SWIG_Py_Void();
10821 SWIGINTERN PyObject
*_wrap_NativeEncodingInfo_facename_get(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
10822 PyObject
*resultobj
= 0;
10823 wxNativeEncodingInfo
*arg1
= (wxNativeEncodingInfo
*) 0 ;
10824 wxString
*result
= 0 ;
10827 PyObject
*swig_obj
[1] ;
10829 if (!args
) SWIG_fail
;
10830 swig_obj
[0] = args
;
10831 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxNativeEncodingInfo
, 0 | 0 );
10832 if (!SWIG_IsOK(res1
)) {
10833 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10835 arg1
= reinterpret_cast< wxNativeEncodingInfo
* >(argp1
);
10836 result
= (wxString
*)& ((arg1
)->facename
);
10839 resultobj
= PyUnicode_FromWideChar(result
->c_str(), result
->Len());
10841 resultobj
= PyString_FromStringAndSize(result
->c_str(), result
->Len());
10850 SWIGINTERN PyObject
*_wrap_NativeEncodingInfo_encoding_set(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
10851 PyObject
*resultobj
= 0;
10852 wxNativeEncodingInfo
*arg1
= (wxNativeEncodingInfo
*) 0 ;
10853 wxFontEncoding arg2
;
10858 PyObject
*swig_obj
[2] ;
10860 if (!SWIG_Python_UnpackTuple(args
,"NativeEncodingInfo_encoding_set",2,2,swig_obj
)) SWIG_fail
;
10861 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxNativeEncodingInfo
, 0 | 0 );
10862 if (!SWIG_IsOK(res1
)) {
10863 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10865 arg1
= reinterpret_cast< wxNativeEncodingInfo
* >(argp1
);
10866 ecode2
= SWIG_AsVal_int(swig_obj
[1], &val2
);
10867 if (!SWIG_IsOK(ecode2
)) {
10868 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
10870 arg2
= static_cast< wxFontEncoding
>(val2
);
10871 if (arg1
) (arg1
)->encoding
= arg2
;
10873 resultobj
= SWIG_Py_Void();
10880 SWIGINTERN PyObject
*_wrap_NativeEncodingInfo_encoding_get(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
10881 PyObject
*resultobj
= 0;
10882 wxNativeEncodingInfo
*arg1
= (wxNativeEncodingInfo
*) 0 ;
10883 wxFontEncoding result
;
10886 PyObject
*swig_obj
[1] ;
10888 if (!args
) SWIG_fail
;
10889 swig_obj
[0] = args
;
10890 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxNativeEncodingInfo
, 0 | 0 );
10891 if (!SWIG_IsOK(res1
)) {
10892 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10894 arg1
= reinterpret_cast< wxNativeEncodingInfo
* >(argp1
);
10895 result
= (wxFontEncoding
) ((arg1
)->encoding
);
10896 resultobj
= SWIG_From_int(static_cast< int >(result
));
10903 SWIGINTERN PyObject
*_wrap_new_NativeEncodingInfo(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
10904 PyObject
*resultobj
= 0;
10905 wxNativeEncodingInfo
*result
= 0 ;
10907 if (!SWIG_Python_UnpackTuple(args
,"new_NativeEncodingInfo",0,0,0)) SWIG_fail
;
10909 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10910 result
= (wxNativeEncodingInfo
*)new wxNativeEncodingInfo();
10911 wxPyEndAllowThreads(__tstate
);
10912 if (PyErr_Occurred()) SWIG_fail
;
10914 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxNativeEncodingInfo
, SWIG_POINTER_NEW
| 0 );
10921 SWIGINTERN PyObject
*_wrap_delete_NativeEncodingInfo(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
10922 PyObject
*resultobj
= 0;
10923 wxNativeEncodingInfo
*arg1
= (wxNativeEncodingInfo
*) 0 ;
10926 PyObject
*swig_obj
[1] ;
10928 if (!args
) SWIG_fail
;
10929 swig_obj
[0] = args
;
10930 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxNativeEncodingInfo
, SWIG_POINTER_DISOWN
| 0 );
10931 if (!SWIG_IsOK(res1
)) {
10932 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10934 arg1
= reinterpret_cast< wxNativeEncodingInfo
* >(argp1
);
10936 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10939 wxPyEndAllowThreads(__tstate
);
10940 if (PyErr_Occurred()) SWIG_fail
;
10942 resultobj
= SWIG_Py_Void();
10949 SWIGINTERN PyObject
*_wrap_NativeEncodingInfo_FromString(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
10950 PyObject
*resultobj
= 0;
10951 wxNativeEncodingInfo
*arg1
= (wxNativeEncodingInfo
*) 0 ;
10952 wxString
*arg2
= 0 ;
10956 bool temp2
= false ;
10957 PyObject
* obj0
= 0 ;
10958 PyObject
* obj1
= 0 ;
10959 char * kwnames
[] = {
10960 (char *) "self",(char *) "s", NULL
10963 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:NativeEncodingInfo_FromString",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
10964 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxNativeEncodingInfo
, 0 | 0 );
10965 if (!SWIG_IsOK(res1
)) {
10966 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10968 arg1
= reinterpret_cast< wxNativeEncodingInfo
* >(argp1
);
10970 arg2
= wxString_in_helper(obj1
);
10971 if (arg2
== NULL
) SWIG_fail
;
10975 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10976 result
= (bool)(arg1
)->FromString((wxString
const &)*arg2
);
10977 wxPyEndAllowThreads(__tstate
);
10978 if (PyErr_Occurred()) SWIG_fail
;
10981 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
10997 SWIGINTERN PyObject
*_wrap_NativeEncodingInfo_ToString(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
10998 PyObject
*resultobj
= 0;
10999 wxNativeEncodingInfo
*arg1
= (wxNativeEncodingInfo
*) 0 ;
11003 PyObject
*swig_obj
[1] ;
11005 if (!args
) SWIG_fail
;
11006 swig_obj
[0] = args
;
11007 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxNativeEncodingInfo
, 0 | 0 );
11008 if (!SWIG_IsOK(res1
)) {
11009 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
11011 arg1
= reinterpret_cast< wxNativeEncodingInfo
* >(argp1
);
11013 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11014 result
= ((wxNativeEncodingInfo
const *)arg1
)->ToString();
11015 wxPyEndAllowThreads(__tstate
);
11016 if (PyErr_Occurred()) SWIG_fail
;
11020 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
11022 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
11031 SWIGINTERN PyObject
*NativeEncodingInfo_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
11033 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
11034 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo
, SWIG_NewClientData(obj
));
11035 return SWIG_Py_Void();
11038 SWIGINTERN PyObject
*NativeEncodingInfo_swiginit(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
11039 return SWIG_Python_InitShadowInstance(args
);
11042 SWIGINTERN PyObject
*_wrap_GetNativeFontEncoding(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
11043 PyObject
*resultobj
= 0;
11044 wxFontEncoding arg1
;
11045 wxNativeEncodingInfo
*result
= 0 ;
11048 PyObject
* obj0
= 0 ;
11049 char * kwnames
[] = {
11050 (char *) "encoding", NULL
11053 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:GetNativeFontEncoding",kwnames
,&obj0
)) SWIG_fail
;
11054 ecode1
= SWIG_AsVal_int(obj0
, &val1
);
11055 if (!SWIG_IsOK(ecode1
)) {
11056 SWIG_exception_fail(SWIG_ArgError(ecode1
), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
11058 arg1
= static_cast< wxFontEncoding
>(val1
);
11060 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11061 result
= (wxNativeEncodingInfo
*)wxGetNativeFontEncoding(arg1
);
11062 wxPyEndAllowThreads(__tstate
);
11063 if (PyErr_Occurred()) SWIG_fail
;
11065 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxNativeEncodingInfo
, 0 | 0 );
11072 SWIGINTERN PyObject
*_wrap_TestFontEncoding(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
11073 PyObject
*resultobj
= 0;
11074 wxNativeEncodingInfo
*arg1
= 0 ;
11078 PyObject
* obj0
= 0 ;
11079 char * kwnames
[] = {
11080 (char *) "info", NULL
11083 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:TestFontEncoding",kwnames
,&obj0
)) SWIG_fail
;
11084 res1
= SWIG_ConvertPtr(obj0
, &argp1
, SWIGTYPE_p_wxNativeEncodingInfo
, 0 | 0);
11085 if (!SWIG_IsOK(res1
)) {
11086 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
11089 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
11091 arg1
= reinterpret_cast< wxNativeEncodingInfo
* >(argp1
);
11093 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11094 result
= (bool)wxTestFontEncoding((wxNativeEncodingInfo
const &)*arg1
);
11095 wxPyEndAllowThreads(__tstate
);
11096 if (PyErr_Occurred()) SWIG_fail
;
11099 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
11107 SWIGINTERN PyObject
*_wrap_new_FontMapper(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
11108 PyObject
*resultobj
= 0;
11109 wxFontMapper
*result
= 0 ;
11111 if (!SWIG_Python_UnpackTuple(args
,"new_FontMapper",0,0,0)) SWIG_fail
;
11113 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11114 result
= (wxFontMapper
*)new wxFontMapper();
11115 wxPyEndAllowThreads(__tstate
);
11116 if (PyErr_Occurred()) SWIG_fail
;
11118 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxFontMapper
, SWIG_POINTER_NEW
| 0 );
11125 SWIGINTERN PyObject
*_wrap_delete_FontMapper(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
11126 PyObject
*resultobj
= 0;
11127 wxFontMapper
*arg1
= (wxFontMapper
*) 0 ;
11130 PyObject
*swig_obj
[1] ;
11132 if (!args
) SWIG_fail
;
11133 swig_obj
[0] = args
;
11134 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxFontMapper
, SWIG_POINTER_DISOWN
| 0 );
11135 if (!SWIG_IsOK(res1
)) {
11136 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11138 arg1
= reinterpret_cast< wxFontMapper
* >(argp1
);
11140 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11143 wxPyEndAllowThreads(__tstate
);
11144 if (PyErr_Occurred()) SWIG_fail
;
11146 resultobj
= SWIG_Py_Void();
11153 SWIGINTERN PyObject
*_wrap_FontMapper_Get(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
11154 PyObject
*resultobj
= 0;
11155 wxFontMapper
*result
= 0 ;
11157 if (!SWIG_Python_UnpackTuple(args
,"FontMapper_Get",0,0,0)) SWIG_fail
;
11159 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11160 result
= (wxFontMapper
*)wxFontMapper::Get();
11161 wxPyEndAllowThreads(__tstate
);
11162 if (PyErr_Occurred()) SWIG_fail
;
11164 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxFontMapper
, 0 | 0 );
11171 SWIGINTERN PyObject
*_wrap_FontMapper_Set(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
11172 PyObject
*resultobj
= 0;
11173 wxFontMapper
*arg1
= (wxFontMapper
*) 0 ;
11174 wxFontMapper
*result
= 0 ;
11177 PyObject
* obj0
= 0 ;
11178 char * kwnames
[] = {
11179 (char *) "mapper", NULL
11182 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:FontMapper_Set",kwnames
,&obj0
)) SWIG_fail
;
11183 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxFontMapper
, 0 | 0 );
11184 if (!SWIG_IsOK(res1
)) {
11185 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11187 arg1
= reinterpret_cast< wxFontMapper
* >(argp1
);
11189 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11190 result
= (wxFontMapper
*)wxFontMapper::Set(arg1
);
11191 wxPyEndAllowThreads(__tstate
);
11192 if (PyErr_Occurred()) SWIG_fail
;
11194 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxFontMapper
, 0 | 0 );
11201 SWIGINTERN PyObject
*_wrap_FontMapper_CharsetToEncoding(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
11202 PyObject
*resultobj
= 0;
11203 wxFontMapper
*arg1
= (wxFontMapper
*) 0 ;
11204 wxString
*arg2
= 0 ;
11205 bool arg3
= (bool) true ;
11206 wxFontEncoding result
;
11209 bool temp2
= false ;
11212 PyObject
* obj0
= 0 ;
11213 PyObject
* obj1
= 0 ;
11214 PyObject
* obj2
= 0 ;
11215 char * kwnames
[] = {
11216 (char *) "self",(char *) "charset",(char *) "interactive", NULL
11219 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
11220 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxFontMapper
, 0 | 0 );
11221 if (!SWIG_IsOK(res1
)) {
11222 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11224 arg1
= reinterpret_cast< wxFontMapper
* >(argp1
);
11226 arg2
= wxString_in_helper(obj1
);
11227 if (arg2
== NULL
) SWIG_fail
;
11231 ecode3
= SWIG_AsVal_bool(obj2
, &val3
);
11232 if (!SWIG_IsOK(ecode3
)) {
11233 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
11235 arg3
= static_cast< bool >(val3
);
11238 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11239 result
= (wxFontEncoding
)(arg1
)->CharsetToEncoding((wxString
const &)*arg2
,arg3
);
11240 wxPyEndAllowThreads(__tstate
);
11241 if (PyErr_Occurred()) SWIG_fail
;
11243 resultobj
= SWIG_From_int(static_cast< int >(result
));
11258 SWIGINTERN PyObject
*_wrap_FontMapper_GetSupportedEncodingsCount(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
11259 PyObject
*resultobj
= 0;
11262 if (!SWIG_Python_UnpackTuple(args
,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail
;
11264 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11265 result
= (size_t)wxFontMapper::GetSupportedEncodingsCount();
11266 wxPyEndAllowThreads(__tstate
);
11267 if (PyErr_Occurred()) SWIG_fail
;
11269 resultobj
= SWIG_From_size_t(static_cast< size_t >(result
));
11276 SWIGINTERN PyObject
*_wrap_FontMapper_GetEncoding(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
11277 PyObject
*resultobj
= 0;
11279 wxFontEncoding result
;
11282 PyObject
* obj0
= 0 ;
11283 char * kwnames
[] = {
11287 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:FontMapper_GetEncoding",kwnames
,&obj0
)) SWIG_fail
;
11288 ecode1
= SWIG_AsVal_size_t(obj0
, &val1
);
11289 if (!SWIG_IsOK(ecode1
)) {
11290 SWIG_exception_fail(SWIG_ArgError(ecode1
), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
11292 arg1
= static_cast< size_t >(val1
);
11294 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11295 result
= (wxFontEncoding
)wxFontMapper::GetEncoding(arg1
);
11296 wxPyEndAllowThreads(__tstate
);
11297 if (PyErr_Occurred()) SWIG_fail
;
11299 resultobj
= SWIG_From_int(static_cast< int >(result
));
11306 SWIGINTERN PyObject
*_wrap_FontMapper_GetEncodingName(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
11307 PyObject
*resultobj
= 0;
11308 wxFontEncoding arg1
;
11312 PyObject
* obj0
= 0 ;
11313 char * kwnames
[] = {
11314 (char *) "encoding", NULL
11317 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:FontMapper_GetEncodingName",kwnames
,&obj0
)) SWIG_fail
;
11318 ecode1
= SWIG_AsVal_int(obj0
, &val1
);
11319 if (!SWIG_IsOK(ecode1
)) {
11320 SWIG_exception_fail(SWIG_ArgError(ecode1
), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
11322 arg1
= static_cast< wxFontEncoding
>(val1
);
11324 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11325 result
= wxFontMapper::GetEncodingName(arg1
);
11326 wxPyEndAllowThreads(__tstate
);
11327 if (PyErr_Occurred()) SWIG_fail
;
11331 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
11333 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
11342 SWIGINTERN PyObject
*_wrap_FontMapper_GetEncodingDescription(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
11343 PyObject
*resultobj
= 0;
11344 wxFontEncoding arg1
;
11348 PyObject
* obj0
= 0 ;
11349 char * kwnames
[] = {
11350 (char *) "encoding", NULL
11353 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:FontMapper_GetEncodingDescription",kwnames
,&obj0
)) SWIG_fail
;
11354 ecode1
= SWIG_AsVal_int(obj0
, &val1
);
11355 if (!SWIG_IsOK(ecode1
)) {
11356 SWIG_exception_fail(SWIG_ArgError(ecode1
), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
11358 arg1
= static_cast< wxFontEncoding
>(val1
);
11360 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11361 result
= wxFontMapper::GetEncodingDescription(arg1
);
11362 wxPyEndAllowThreads(__tstate
);
11363 if (PyErr_Occurred()) SWIG_fail
;
11367 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
11369 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
11378 SWIGINTERN PyObject
*_wrap_FontMapper_GetEncodingFromName(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
11379 PyObject
*resultobj
= 0;
11380 wxString
*arg1
= 0 ;
11381 wxFontEncoding result
;
11382 bool temp1
= false ;
11383 PyObject
* obj0
= 0 ;
11384 char * kwnames
[] = {
11385 (char *) "name", NULL
11388 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:FontMapper_GetEncodingFromName",kwnames
,&obj0
)) SWIG_fail
;
11390 arg1
= wxString_in_helper(obj0
);
11391 if (arg1
== NULL
) SWIG_fail
;
11395 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11396 result
= (wxFontEncoding
)wxFontMapper::GetEncodingFromName((wxString
const &)*arg1
);
11397 wxPyEndAllowThreads(__tstate
);
11398 if (PyErr_Occurred()) SWIG_fail
;
11400 resultobj
= SWIG_From_int(static_cast< int >(result
));
11415 SWIGINTERN PyObject
*_wrap_FontMapper_SetConfigPath(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
11416 PyObject
*resultobj
= 0;
11417 wxFontMapper
*arg1
= (wxFontMapper
*) 0 ;
11418 wxString
*arg2
= 0 ;
11421 bool temp2
= false ;
11422 PyObject
* obj0
= 0 ;
11423 PyObject
* obj1
= 0 ;
11424 char * kwnames
[] = {
11425 (char *) "self",(char *) "prefix", NULL
11428 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:FontMapper_SetConfigPath",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
11429 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxFontMapper
, 0 | 0 );
11430 if (!SWIG_IsOK(res1
)) {
11431 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11433 arg1
= reinterpret_cast< wxFontMapper
* >(argp1
);
11435 arg2
= wxString_in_helper(obj1
);
11436 if (arg2
== NULL
) SWIG_fail
;
11440 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11441 (arg1
)->SetConfigPath((wxString
const &)*arg2
);
11442 wxPyEndAllowThreads(__tstate
);
11443 if (PyErr_Occurred()) SWIG_fail
;
11445 resultobj
= SWIG_Py_Void();
11460 SWIGINTERN PyObject
*_wrap_FontMapper_GetDefaultConfigPath(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
11461 PyObject
*resultobj
= 0;
11464 if (!SWIG_Python_UnpackTuple(args
,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail
;
11466 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11467 result
= wxFontMapper::GetDefaultConfigPath();
11468 wxPyEndAllowThreads(__tstate
);
11469 if (PyErr_Occurred()) SWIG_fail
;
11473 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
11475 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
11484 SWIGINTERN PyObject
*_wrap_FontMapper_GetAltForEncoding(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
11485 PyObject
*resultobj
= 0;
11486 wxFontMapper
*arg1
= (wxFontMapper
*) 0 ;
11487 wxFontEncoding arg2
;
11488 wxString
const &arg3_defvalue
= wxPyEmptyString
;
11489 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
11490 bool arg4
= (bool) true ;
11491 PyObject
*result
= 0 ;
11496 bool temp3
= false ;
11499 PyObject
* obj0
= 0 ;
11500 PyObject
* obj1
= 0 ;
11501 PyObject
* obj2
= 0 ;
11502 PyObject
* obj3
= 0 ;
11503 char * kwnames
[] = {
11504 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
11507 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) SWIG_fail
;
11508 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxFontMapper
, 0 | 0 );
11509 if (!SWIG_IsOK(res1
)) {
11510 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11512 arg1
= reinterpret_cast< wxFontMapper
* >(argp1
);
11513 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
11514 if (!SWIG_IsOK(ecode2
)) {
11515 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
11517 arg2
= static_cast< wxFontEncoding
>(val2
);
11520 arg3
= wxString_in_helper(obj2
);
11521 if (arg3
== NULL
) SWIG_fail
;
11526 ecode4
= SWIG_AsVal_bool(obj3
, &val4
);
11527 if (!SWIG_IsOK(ecode4
)) {
11528 SWIG_exception_fail(SWIG_ArgError(ecode4
), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
11530 arg4
= static_cast< bool >(val4
);
11533 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11534 result
= (PyObject
*)wxFontMapper_GetAltForEncoding(arg1
,arg2
,(wxString
const &)*arg3
,arg4
);
11535 wxPyEndAllowThreads(__tstate
);
11536 if (PyErr_Occurred()) SWIG_fail
;
11538 resultobj
= result
;
11553 SWIGINTERN PyObject
*_wrap_FontMapper_IsEncodingAvailable(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
11554 PyObject
*resultobj
= 0;
11555 wxFontMapper
*arg1
= (wxFontMapper
*) 0 ;
11556 wxFontEncoding arg2
;
11557 wxString
const &arg3_defvalue
= wxPyEmptyString
;
11558 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
11564 bool temp3
= false ;
11565 PyObject
* obj0
= 0 ;
11566 PyObject
* obj1
= 0 ;
11567 PyObject
* obj2
= 0 ;
11568 char * kwnames
[] = {
11569 (char *) "self",(char *) "encoding",(char *) "facename", NULL
11572 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
11573 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxFontMapper
, 0 | 0 );
11574 if (!SWIG_IsOK(res1
)) {
11575 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11577 arg1
= reinterpret_cast< wxFontMapper
* >(argp1
);
11578 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
11579 if (!SWIG_IsOK(ecode2
)) {
11580 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
11582 arg2
= static_cast< wxFontEncoding
>(val2
);
11585 arg3
= wxString_in_helper(obj2
);
11586 if (arg3
== NULL
) SWIG_fail
;
11591 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11592 result
= (bool)(arg1
)->IsEncodingAvailable(arg2
,(wxString
const &)*arg3
);
11593 wxPyEndAllowThreads(__tstate
);
11594 if (PyErr_Occurred()) SWIG_fail
;
11597 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
11613 SWIGINTERN PyObject
*_wrap_FontMapper_SetDialogParent(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
11614 PyObject
*resultobj
= 0;
11615 wxFontMapper
*arg1
= (wxFontMapper
*) 0 ;
11616 wxWindow
*arg2
= (wxWindow
*) 0 ;
11621 PyObject
* obj0
= 0 ;
11622 PyObject
* obj1
= 0 ;
11623 char * kwnames
[] = {
11624 (char *) "self",(char *) "parent", NULL
11627 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:FontMapper_SetDialogParent",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
11628 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxFontMapper
, 0 | 0 );
11629 if (!SWIG_IsOK(res1
)) {
11630 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11632 arg1
= reinterpret_cast< wxFontMapper
* >(argp1
);
11633 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxWindow
, 0 | 0 );
11634 if (!SWIG_IsOK(res2
)) {
11635 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
11637 arg2
= reinterpret_cast< wxWindow
* >(argp2
);
11639 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11640 (arg1
)->SetDialogParent(arg2
);
11641 wxPyEndAllowThreads(__tstate
);
11642 if (PyErr_Occurred()) SWIG_fail
;
11644 resultobj
= SWIG_Py_Void();
11651 SWIGINTERN PyObject
*_wrap_FontMapper_SetDialogTitle(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
11652 PyObject
*resultobj
= 0;
11653 wxFontMapper
*arg1
= (wxFontMapper
*) 0 ;
11654 wxString
*arg2
= 0 ;
11657 bool temp2
= false ;
11658 PyObject
* obj0
= 0 ;
11659 PyObject
* obj1
= 0 ;
11660 char * kwnames
[] = {
11661 (char *) "self",(char *) "title", NULL
11664 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:FontMapper_SetDialogTitle",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
11665 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxFontMapper
, 0 | 0 );
11666 if (!SWIG_IsOK(res1
)) {
11667 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11669 arg1
= reinterpret_cast< wxFontMapper
* >(argp1
);
11671 arg2
= wxString_in_helper(obj1
);
11672 if (arg2
== NULL
) SWIG_fail
;
11676 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11677 (arg1
)->SetDialogTitle((wxString
const &)*arg2
);
11678 wxPyEndAllowThreads(__tstate
);
11679 if (PyErr_Occurred()) SWIG_fail
;
11681 resultobj
= SWIG_Py_Void();
11696 SWIGINTERN PyObject
*FontMapper_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
11698 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
11699 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper
, SWIG_NewClientData(obj
));
11700 return SWIG_Py_Void();
11703 SWIGINTERN PyObject
*FontMapper_swiginit(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
11704 return SWIG_Python_InitShadowInstance(args
);
11707 SWIGINTERN PyObject
*_wrap_new_Font(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
11708 PyObject
*resultobj
= 0;
11713 bool arg5
= (bool) false ;
11714 wxString
const &arg6_defvalue
= wxPyEmptyString
;
11715 wxString
*arg6
= (wxString
*) &arg6_defvalue
;
11716 wxFontEncoding arg7
= (wxFontEncoding
) wxFONTENCODING_DEFAULT
;
11717 wxFont
*result
= 0 ;
11728 bool temp6
= false ;
11731 PyObject
* obj0
= 0 ;
11732 PyObject
* obj1
= 0 ;
11733 PyObject
* obj2
= 0 ;
11734 PyObject
* obj3
= 0 ;
11735 PyObject
* obj4
= 0 ;
11736 PyObject
* obj5
= 0 ;
11737 PyObject
* obj6
= 0 ;
11738 char * kwnames
[] = {
11739 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
11742 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO|OOO:new_Font",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
,&obj5
,&obj6
)) SWIG_fail
;
11743 ecode1
= SWIG_AsVal_int(obj0
, &val1
);
11744 if (!SWIG_IsOK(ecode1
)) {
11745 SWIG_exception_fail(SWIG_ArgError(ecode1
), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
11747 arg1
= static_cast< int >(val1
);
11748 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
11749 if (!SWIG_IsOK(ecode2
)) {
11750 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
11752 arg2
= static_cast< int >(val2
);
11753 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
11754 if (!SWIG_IsOK(ecode3
)) {
11755 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
11757 arg3
= static_cast< int >(val3
);
11758 ecode4
= SWIG_AsVal_int(obj3
, &val4
);
11759 if (!SWIG_IsOK(ecode4
)) {
11760 SWIG_exception_fail(SWIG_ArgError(ecode4
), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
11762 arg4
= static_cast< int >(val4
);
11764 ecode5
= SWIG_AsVal_bool(obj4
, &val5
);
11765 if (!SWIG_IsOK(ecode5
)) {
11766 SWIG_exception_fail(SWIG_ArgError(ecode5
), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
11768 arg5
= static_cast< bool >(val5
);
11772 arg6
= wxString_in_helper(obj5
);
11773 if (arg6
== NULL
) SWIG_fail
;
11778 ecode7
= SWIG_AsVal_int(obj6
, &val7
);
11779 if (!SWIG_IsOK(ecode7
)) {
11780 SWIG_exception_fail(SWIG_ArgError(ecode7
), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
11782 arg7
= static_cast< wxFontEncoding
>(val7
);
11785 if (!wxPyCheckForApp()) SWIG_fail
;
11786 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11787 result
= (wxFont
*)new wxFont(arg1
,arg2
,arg3
,arg4
,arg5
,(wxString
const &)*arg6
,arg7
);
11788 wxPyEndAllowThreads(__tstate
);
11789 if (PyErr_Occurred()) SWIG_fail
;
11791 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxFont
, SWIG_POINTER_NEW
| 0 );
11806 SWIGINTERN PyObject
*_wrap_delete_Font(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
11807 PyObject
*resultobj
= 0;
11808 wxFont
*arg1
= (wxFont
*) 0 ;
11811 PyObject
*swig_obj
[1] ;
11813 if (!args
) SWIG_fail
;
11814 swig_obj
[0] = args
;
11815 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxFont
, SWIG_POINTER_DISOWN
| 0 );
11816 if (!SWIG_IsOK(res1
)) {
11817 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
11819 arg1
= reinterpret_cast< wxFont
* >(argp1
);
11821 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11824 wxPyEndAllowThreads(__tstate
);
11825 if (PyErr_Occurred()) SWIG_fail
;
11827 resultobj
= SWIG_Py_Void();
11834 SWIGINTERN PyObject
*_wrap_new_FontFromNativeInfo(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
11835 PyObject
*resultobj
= 0;
11836 wxNativeFontInfo
*arg1
= 0 ;
11837 wxFont
*result
= 0 ;
11840 PyObject
* obj0
= 0 ;
11841 char * kwnames
[] = {
11842 (char *) "info", NULL
11845 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:new_FontFromNativeInfo",kwnames
,&obj0
)) SWIG_fail
;
11846 res1
= SWIG_ConvertPtr(obj0
, &argp1
, SWIGTYPE_p_wxNativeFontInfo
, 0 | 0);
11847 if (!SWIG_IsOK(res1
)) {
11848 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
11851 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
11853 arg1
= reinterpret_cast< wxNativeFontInfo
* >(argp1
);
11855 if (!wxPyCheckForApp()) SWIG_fail
;
11856 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11857 result
= (wxFont
*)new wxFont((wxNativeFontInfo
const &)*arg1
);
11858 wxPyEndAllowThreads(__tstate
);
11859 if (PyErr_Occurred()) SWIG_fail
;
11861 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxFont
, SWIG_POINTER_OWN
| 0 );
11868 SWIGINTERN PyObject
*_wrap_new_FontFromNativeInfoString(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
11869 PyObject
*resultobj
= 0;
11870 wxString
*arg1
= 0 ;
11871 wxFont
*result
= 0 ;
11872 bool temp1
= false ;
11873 PyObject
* obj0
= 0 ;
11874 char * kwnames
[] = {
11875 (char *) "info", NULL
11878 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:new_FontFromNativeInfoString",kwnames
,&obj0
)) SWIG_fail
;
11880 arg1
= wxString_in_helper(obj0
);
11881 if (arg1
== NULL
) SWIG_fail
;
11885 if (!wxPyCheckForApp()) SWIG_fail
;
11886 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11887 result
= (wxFont
*)new_wxFont((wxString
const &)*arg1
);
11888 wxPyEndAllowThreads(__tstate
);
11889 if (PyErr_Occurred()) SWIG_fail
;
11891 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxFont
, SWIG_POINTER_OWN
| 0 );
11906 SWIGINTERN PyObject
*_wrap_new_FFont(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
11907 PyObject
*resultobj
= 0;
11909 wxFontFamily arg2
;
11910 int arg3
= (int) wxFONTFLAG_DEFAULT
;
11911 wxString
const &arg4_defvalue
= wxPyEmptyString
;
11912 wxString
*arg4
= (wxString
*) &arg4_defvalue
;
11913 wxFontEncoding arg5
= (wxFontEncoding
) wxFONTENCODING_DEFAULT
;
11914 wxFont
*result
= 0 ;
11921 bool temp4
= false ;
11924 PyObject
* obj0
= 0 ;
11925 PyObject
* obj1
= 0 ;
11926 PyObject
* obj2
= 0 ;
11927 PyObject
* obj3
= 0 ;
11928 PyObject
* obj4
= 0 ;
11929 char * kwnames
[] = {
11930 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
11933 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|OOO:new_FFont",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) SWIG_fail
;
11934 ecode1
= SWIG_AsVal_int(obj0
, &val1
);
11935 if (!SWIG_IsOK(ecode1
)) {
11936 SWIG_exception_fail(SWIG_ArgError(ecode1
), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
11938 arg1
= static_cast< int >(val1
);
11939 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
11940 if (!SWIG_IsOK(ecode2
)) {
11941 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
11943 arg2
= static_cast< wxFontFamily
>(val2
);
11945 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
11946 if (!SWIG_IsOK(ecode3
)) {
11947 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
11949 arg3
= static_cast< int >(val3
);
11953 arg4
= wxString_in_helper(obj3
);
11954 if (arg4
== NULL
) SWIG_fail
;
11959 ecode5
= SWIG_AsVal_int(obj4
, &val5
);
11960 if (!SWIG_IsOK(ecode5
)) {
11961 SWIG_exception_fail(SWIG_ArgError(ecode5
), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
11963 arg5
= static_cast< wxFontEncoding
>(val5
);
11966 if (!wxPyCheckForApp()) SWIG_fail
;
11967 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11968 result
= (wxFont
*)new_wxFont(arg1
,arg2
,arg3
,(wxString
const &)*arg4
,arg5
);
11969 wxPyEndAllowThreads(__tstate
);
11970 if (PyErr_Occurred()) SWIG_fail
;
11972 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxFont
, SWIG_POINTER_OWN
| 0 );
11987 SWIGINTERN PyObject
*_wrap_new_FontFromPixelSize(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
11988 PyObject
*resultobj
= 0;
11993 bool arg5
= (bool) false ;
11994 wxString
const &arg6_defvalue
= wxEmptyString
;
11995 wxString
*arg6
= (wxString
*) &arg6_defvalue
;
11996 wxFontEncoding arg7
= (wxFontEncoding
) wxFONTENCODING_DEFAULT
;
11997 wxFont
*result
= 0 ;
12007 bool temp6
= false ;
12010 PyObject
* obj0
= 0 ;
12011 PyObject
* obj1
= 0 ;
12012 PyObject
* obj2
= 0 ;
12013 PyObject
* obj3
= 0 ;
12014 PyObject
* obj4
= 0 ;
12015 PyObject
* obj5
= 0 ;
12016 PyObject
* obj6
= 0 ;
12017 char * kwnames
[] = {
12018 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
12021 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
,&obj5
,&obj6
)) SWIG_fail
;
12024 if ( ! wxSize_helper(obj0
, &arg1
)) SWIG_fail
;
12026 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
12027 if (!SWIG_IsOK(ecode2
)) {
12028 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
12030 arg2
= static_cast< int >(val2
);
12031 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
12032 if (!SWIG_IsOK(ecode3
)) {
12033 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
12035 arg3
= static_cast< int >(val3
);
12036 ecode4
= SWIG_AsVal_int(obj3
, &val4
);
12037 if (!SWIG_IsOK(ecode4
)) {
12038 SWIG_exception_fail(SWIG_ArgError(ecode4
), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
12040 arg4
= static_cast< int >(val4
);
12042 ecode5
= SWIG_AsVal_bool(obj4
, &val5
);
12043 if (!SWIG_IsOK(ecode5
)) {
12044 SWIG_exception_fail(SWIG_ArgError(ecode5
), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
12046 arg5
= static_cast< bool >(val5
);
12050 arg6
= wxString_in_helper(obj5
);
12051 if (arg6
== NULL
) SWIG_fail
;
12056 ecode7
= SWIG_AsVal_int(obj6
, &val7
);
12057 if (!SWIG_IsOK(ecode7
)) {
12058 SWIG_exception_fail(SWIG_ArgError(ecode7
), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
12060 arg7
= static_cast< wxFontEncoding
>(val7
);
12063 if (!wxPyCheckForApp()) SWIG_fail
;
12064 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12065 result
= (wxFont
*)new_wxFont((wxSize
const &)*arg1
,arg2
,arg3
,arg4
,arg5
,(wxString
const &)*arg6
,arg7
);
12066 wxPyEndAllowThreads(__tstate
);
12067 if (PyErr_Occurred()) SWIG_fail
;
12069 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxFont
, SWIG_POINTER_OWN
| 0 );
12084 SWIGINTERN PyObject
*_wrap_new_FFontFromPixelSize(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
12085 PyObject
*resultobj
= 0;
12087 wxFontFamily arg2
;
12088 int arg3
= (int) wxFONTFLAG_DEFAULT
;
12089 wxString
const &arg4_defvalue
= wxEmptyString
;
12090 wxString
*arg4
= (wxString
*) &arg4_defvalue
;
12091 wxFontEncoding arg5
= (wxFontEncoding
) wxFONTENCODING_DEFAULT
;
12092 wxFont
*result
= 0 ;
12098 bool temp4
= false ;
12101 PyObject
* obj0
= 0 ;
12102 PyObject
* obj1
= 0 ;
12103 PyObject
* obj2
= 0 ;
12104 PyObject
* obj3
= 0 ;
12105 PyObject
* obj4
= 0 ;
12106 char * kwnames
[] = {
12107 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
12110 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) SWIG_fail
;
12113 if ( ! wxSize_helper(obj0
, &arg1
)) SWIG_fail
;
12115 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
12116 if (!SWIG_IsOK(ecode2
)) {
12117 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
12119 arg2
= static_cast< wxFontFamily
>(val2
);
12121 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
12122 if (!SWIG_IsOK(ecode3
)) {
12123 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
12125 arg3
= static_cast< int >(val3
);
12129 arg4
= wxString_in_helper(obj3
);
12130 if (arg4
== NULL
) SWIG_fail
;
12135 ecode5
= SWIG_AsVal_int(obj4
, &val5
);
12136 if (!SWIG_IsOK(ecode5
)) {
12137 SWIG_exception_fail(SWIG_ArgError(ecode5
), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
12139 arg5
= static_cast< wxFontEncoding
>(val5
);
12142 if (!wxPyCheckForApp()) SWIG_fail
;
12143 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12144 result
= (wxFont
*)new_wxFont((wxSize
const &)*arg1
,arg2
,arg3
,(wxString
const &)*arg4
,arg5
);
12145 wxPyEndAllowThreads(__tstate
);
12146 if (PyErr_Occurred()) SWIG_fail
;
12148 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxFont
, SWIG_POINTER_OWN
| 0 );
12163 SWIGINTERN PyObject
*_wrap_Font_Ok(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
12164 PyObject
*resultobj
= 0;
12165 wxFont
*arg1
= (wxFont
*) 0 ;
12169 PyObject
*swig_obj
[1] ;
12171 if (!args
) SWIG_fail
;
12172 swig_obj
[0] = args
;
12173 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxFont
, 0 | 0 );
12174 if (!SWIG_IsOK(res1
)) {
12175 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Font_Ok" "', expected argument " "1"" of type '" "wxFont const *""'");
12177 arg1
= reinterpret_cast< wxFont
* >(argp1
);
12179 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12180 result
= (bool)((wxFont
const *)arg1
)->Ok();
12181 wxPyEndAllowThreads(__tstate
);
12182 if (PyErr_Occurred()) SWIG_fail
;
12185 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
12193 SWIGINTERN PyObject
*_wrap_Font___eq__(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
12194 PyObject
*resultobj
= 0;
12195 wxFont
*arg1
= (wxFont
*) 0 ;
12196 wxFont
*arg2
= (wxFont
*) 0 ;
12202 PyObject
* obj0
= 0 ;
12203 PyObject
* obj1
= 0 ;
12204 char * kwnames
[] = {
12205 (char *) "self",(char *) "other", NULL
12208 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Font___eq__",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
12209 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxFont
, 0 | 0 );
12210 if (!SWIG_IsOK(res1
)) {
12211 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
12213 arg1
= reinterpret_cast< wxFont
* >(argp1
);
12214 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxFont
, 0 | 0 );
12215 if (!SWIG_IsOK(res2
)) {
12216 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
12218 arg2
= reinterpret_cast< wxFont
* >(argp2
);
12220 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12221 result
= (bool)wxFont___eq__(arg1
,(wxFont
const *)arg2
);
12222 wxPyEndAllowThreads(__tstate
);
12223 if (PyErr_Occurred()) SWIG_fail
;
12226 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
12234 SWIGINTERN PyObject
*_wrap_Font___ne__(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
12235 PyObject
*resultobj
= 0;
12236 wxFont
*arg1
= (wxFont
*) 0 ;
12237 wxFont
*arg2
= (wxFont
*) 0 ;
12243 PyObject
* obj0
= 0 ;
12244 PyObject
* obj1
= 0 ;
12245 char * kwnames
[] = {
12246 (char *) "self",(char *) "other", NULL
12249 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Font___ne__",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
12250 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxFont
, 0 | 0 );
12251 if (!SWIG_IsOK(res1
)) {
12252 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
12254 arg1
= reinterpret_cast< wxFont
* >(argp1
);
12255 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxFont
, 0 | 0 );
12256 if (!SWIG_IsOK(res2
)) {
12257 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
12259 arg2
= reinterpret_cast< wxFont
* >(argp2
);
12261 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12262 result
= (bool)wxFont___ne__(arg1
,(wxFont
const *)arg2
);
12263 wxPyEndAllowThreads(__tstate
);
12264 if (PyErr_Occurred()) SWIG_fail
;
12267 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
12275 SWIGINTERN PyObject
*_wrap_Font_GetPointSize(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
12276 PyObject
*resultobj
= 0;
12277 wxFont
*arg1
= (wxFont
*) 0 ;
12281 PyObject
*swig_obj
[1] ;
12283 if (!args
) SWIG_fail
;
12284 swig_obj
[0] = args
;
12285 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxFont
, 0 | 0 );
12286 if (!SWIG_IsOK(res1
)) {
12287 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
12289 arg1
= reinterpret_cast< wxFont
* >(argp1
);
12291 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12292 result
= (int)((wxFont
const *)arg1
)->GetPointSize();
12293 wxPyEndAllowThreads(__tstate
);
12294 if (PyErr_Occurred()) SWIG_fail
;
12296 resultobj
= SWIG_From_int(static_cast< int >(result
));
12303 SWIGINTERN PyObject
*_wrap_Font_GetPixelSize(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
12304 PyObject
*resultobj
= 0;
12305 wxFont
*arg1
= (wxFont
*) 0 ;
12309 PyObject
*swig_obj
[1] ;
12311 if (!args
) SWIG_fail
;
12312 swig_obj
[0] = args
;
12313 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxFont
, 0 | 0 );
12314 if (!SWIG_IsOK(res1
)) {
12315 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
12317 arg1
= reinterpret_cast< wxFont
* >(argp1
);
12319 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12320 result
= ((wxFont
const *)arg1
)->GetPixelSize();
12321 wxPyEndAllowThreads(__tstate
);
12322 if (PyErr_Occurred()) SWIG_fail
;
12324 resultobj
= SWIG_NewPointerObj((new wxSize(static_cast< const wxSize
& >(result
))), SWIGTYPE_p_wxSize
, SWIG_POINTER_OWN
| 0 );
12331 SWIGINTERN PyObject
*_wrap_Font_IsUsingSizeInPixels(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
12332 PyObject
*resultobj
= 0;
12333 wxFont
*arg1
= (wxFont
*) 0 ;
12337 PyObject
*swig_obj
[1] ;
12339 if (!args
) SWIG_fail
;
12340 swig_obj
[0] = args
;
12341 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxFont
, 0 | 0 );
12342 if (!SWIG_IsOK(res1
)) {
12343 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
12345 arg1
= reinterpret_cast< wxFont
* >(argp1
);
12347 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12348 result
= (bool)((wxFont
const *)arg1
)->IsUsingSizeInPixels();
12349 wxPyEndAllowThreads(__tstate
);
12350 if (PyErr_Occurred()) SWIG_fail
;
12353 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
12361 SWIGINTERN PyObject
*_wrap_Font_GetFamily(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
12362 PyObject
*resultobj
= 0;
12363 wxFont
*arg1
= (wxFont
*) 0 ;
12367 PyObject
*swig_obj
[1] ;
12369 if (!args
) SWIG_fail
;
12370 swig_obj
[0] = args
;
12371 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxFont
, 0 | 0 );
12372 if (!SWIG_IsOK(res1
)) {
12373 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
12375 arg1
= reinterpret_cast< wxFont
* >(argp1
);
12377 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12378 result
= (int)((wxFont
const *)arg1
)->GetFamily();
12379 wxPyEndAllowThreads(__tstate
);
12380 if (PyErr_Occurred()) SWIG_fail
;
12382 resultobj
= SWIG_From_int(static_cast< int >(result
));
12389 SWIGINTERN PyObject
*_wrap_Font_GetStyle(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
12390 PyObject
*resultobj
= 0;
12391 wxFont
*arg1
= (wxFont
*) 0 ;
12395 PyObject
*swig_obj
[1] ;
12397 if (!args
) SWIG_fail
;
12398 swig_obj
[0] = args
;
12399 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxFont
, 0 | 0 );
12400 if (!SWIG_IsOK(res1
)) {
12401 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
12403 arg1
= reinterpret_cast< wxFont
* >(argp1
);
12405 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12406 result
= (int)((wxFont
const *)arg1
)->GetStyle();
12407 wxPyEndAllowThreads(__tstate
);
12408 if (PyErr_Occurred()) SWIG_fail
;
12410 resultobj
= SWIG_From_int(static_cast< int >(result
));
12417 SWIGINTERN PyObject
*_wrap_Font_GetWeight(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
12418 PyObject
*resultobj
= 0;
12419 wxFont
*arg1
= (wxFont
*) 0 ;
12423 PyObject
*swig_obj
[1] ;
12425 if (!args
) SWIG_fail
;
12426 swig_obj
[0] = args
;
12427 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxFont
, 0 | 0 );
12428 if (!SWIG_IsOK(res1
)) {
12429 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
12431 arg1
= reinterpret_cast< wxFont
* >(argp1
);
12433 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12434 result
= (int)((wxFont
const *)arg1
)->GetWeight();
12435 wxPyEndAllowThreads(__tstate
);
12436 if (PyErr_Occurred()) SWIG_fail
;
12438 resultobj
= SWIG_From_int(static_cast< int >(result
));
12445 SWIGINTERN PyObject
*_wrap_Font_GetUnderlined(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
12446 PyObject
*resultobj
= 0;
12447 wxFont
*arg1
= (wxFont
*) 0 ;
12451 PyObject
*swig_obj
[1] ;
12453 if (!args
) SWIG_fail
;
12454 swig_obj
[0] = args
;
12455 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxFont
, 0 | 0 );
12456 if (!SWIG_IsOK(res1
)) {
12457 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
12459 arg1
= reinterpret_cast< wxFont
* >(argp1
);
12461 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12462 result
= (bool)((wxFont
const *)arg1
)->GetUnderlined();
12463 wxPyEndAllowThreads(__tstate
);
12464 if (PyErr_Occurred()) SWIG_fail
;
12467 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
12475 SWIGINTERN PyObject
*_wrap_Font_GetFaceName(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
12476 PyObject
*resultobj
= 0;
12477 wxFont
*arg1
= (wxFont
*) 0 ;
12481 PyObject
*swig_obj
[1] ;
12483 if (!args
) SWIG_fail
;
12484 swig_obj
[0] = args
;
12485 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxFont
, 0 | 0 );
12486 if (!SWIG_IsOK(res1
)) {
12487 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
12489 arg1
= reinterpret_cast< wxFont
* >(argp1
);
12491 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12492 result
= ((wxFont
const *)arg1
)->GetFaceName();
12493 wxPyEndAllowThreads(__tstate
);
12494 if (PyErr_Occurred()) SWIG_fail
;
12498 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
12500 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
12509 SWIGINTERN PyObject
*_wrap_Font_GetEncoding(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
12510 PyObject
*resultobj
= 0;
12511 wxFont
*arg1
= (wxFont
*) 0 ;
12512 wxFontEncoding result
;
12515 PyObject
*swig_obj
[1] ;
12517 if (!args
) SWIG_fail
;
12518 swig_obj
[0] = args
;
12519 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxFont
, 0 | 0 );
12520 if (!SWIG_IsOK(res1
)) {
12521 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
12523 arg1
= reinterpret_cast< wxFont
* >(argp1
);
12525 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12526 result
= (wxFontEncoding
)((wxFont
const *)arg1
)->GetEncoding();
12527 wxPyEndAllowThreads(__tstate
);
12528 if (PyErr_Occurred()) SWIG_fail
;
12530 resultobj
= SWIG_From_int(static_cast< int >(result
));
12537 SWIGINTERN PyObject
*_wrap_Font_GetNativeFontInfo(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
12538 PyObject
*resultobj
= 0;
12539 wxFont
*arg1
= (wxFont
*) 0 ;
12540 wxNativeFontInfo
*result
= 0 ;
12543 PyObject
*swig_obj
[1] ;
12545 if (!args
) SWIG_fail
;
12546 swig_obj
[0] = args
;
12547 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxFont
, 0 | 0 );
12548 if (!SWIG_IsOK(res1
)) {
12549 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
12551 arg1
= reinterpret_cast< wxFont
* >(argp1
);
12553 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12554 result
= (wxNativeFontInfo
*)((wxFont
const *)arg1
)->GetNativeFontInfo();
12555 wxPyEndAllowThreads(__tstate
);
12556 if (PyErr_Occurred()) SWIG_fail
;
12558 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxNativeFontInfo
, 0 | 0 );
12565 SWIGINTERN PyObject
*_wrap_Font_IsFixedWidth(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
12566 PyObject
*resultobj
= 0;
12567 wxFont
*arg1
= (wxFont
*) 0 ;
12571 PyObject
*swig_obj
[1] ;
12573 if (!args
) SWIG_fail
;
12574 swig_obj
[0] = args
;
12575 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxFont
, 0 | 0 );
12576 if (!SWIG_IsOK(res1
)) {
12577 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
12579 arg1
= reinterpret_cast< wxFont
* >(argp1
);
12581 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12582 result
= (bool)((wxFont
const *)arg1
)->IsFixedWidth();
12583 wxPyEndAllowThreads(__tstate
);
12584 if (PyErr_Occurred()) SWIG_fail
;
12587 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
12595 SWIGINTERN PyObject
*_wrap_Font_GetNativeFontInfoDesc(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
12596 PyObject
*resultobj
= 0;
12597 wxFont
*arg1
= (wxFont
*) 0 ;
12601 PyObject
*swig_obj
[1] ;
12603 if (!args
) SWIG_fail
;
12604 swig_obj
[0] = args
;
12605 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxFont
, 0 | 0 );
12606 if (!SWIG_IsOK(res1
)) {
12607 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
12609 arg1
= reinterpret_cast< wxFont
* >(argp1
);
12611 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12612 result
= ((wxFont
const *)arg1
)->GetNativeFontInfoDesc();
12613 wxPyEndAllowThreads(__tstate
);
12614 if (PyErr_Occurred()) SWIG_fail
;
12618 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
12620 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
12629 SWIGINTERN PyObject
*_wrap_Font_GetNativeFontInfoUserDesc(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
12630 PyObject
*resultobj
= 0;
12631 wxFont
*arg1
= (wxFont
*) 0 ;
12635 PyObject
*swig_obj
[1] ;
12637 if (!args
) SWIG_fail
;
12638 swig_obj
[0] = args
;
12639 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxFont
, 0 | 0 );
12640 if (!SWIG_IsOK(res1
)) {
12641 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
12643 arg1
= reinterpret_cast< wxFont
* >(argp1
);
12645 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12646 result
= ((wxFont
const *)arg1
)->GetNativeFontInfoUserDesc();
12647 wxPyEndAllowThreads(__tstate
);
12648 if (PyErr_Occurred()) SWIG_fail
;
12652 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
12654 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
12663 SWIGINTERN PyObject
*_wrap_Font_SetPointSize(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
12664 PyObject
*resultobj
= 0;
12665 wxFont
*arg1
= (wxFont
*) 0 ;
12671 PyObject
* obj0
= 0 ;
12672 PyObject
* obj1
= 0 ;
12673 char * kwnames
[] = {
12674 (char *) "self",(char *) "pointSize", NULL
12677 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Font_SetPointSize",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
12678 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxFont
, 0 | 0 );
12679 if (!SWIG_IsOK(res1
)) {
12680 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
12682 arg1
= reinterpret_cast< wxFont
* >(argp1
);
12683 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
12684 if (!SWIG_IsOK(ecode2
)) {
12685 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12687 arg2
= static_cast< int >(val2
);
12689 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12690 (arg1
)->SetPointSize(arg2
);
12691 wxPyEndAllowThreads(__tstate
);
12692 if (PyErr_Occurred()) SWIG_fail
;
12694 resultobj
= SWIG_Py_Void();
12701 SWIGINTERN PyObject
*_wrap_Font_SetPixelSize(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
12702 PyObject
*resultobj
= 0;
12703 wxFont
*arg1
= (wxFont
*) 0 ;
12708 PyObject
* obj0
= 0 ;
12709 PyObject
* obj1
= 0 ;
12710 char * kwnames
[] = {
12711 (char *) "self",(char *) "pixelSize", NULL
12714 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Font_SetPixelSize",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
12715 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxFont
, 0 | 0 );
12716 if (!SWIG_IsOK(res1
)) {
12717 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
12719 arg1
= reinterpret_cast< wxFont
* >(argp1
);
12722 if ( ! wxSize_helper(obj1
, &arg2
)) SWIG_fail
;
12725 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12726 (arg1
)->SetPixelSize((wxSize
const &)*arg2
);
12727 wxPyEndAllowThreads(__tstate
);
12728 if (PyErr_Occurred()) SWIG_fail
;
12730 resultobj
= SWIG_Py_Void();
12737 SWIGINTERN PyObject
*_wrap_Font_SetFamily(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
12738 PyObject
*resultobj
= 0;
12739 wxFont
*arg1
= (wxFont
*) 0 ;
12745 PyObject
* obj0
= 0 ;
12746 PyObject
* obj1
= 0 ;
12747 char * kwnames
[] = {
12748 (char *) "self",(char *) "family", NULL
12751 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Font_SetFamily",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
12752 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxFont
, 0 | 0 );
12753 if (!SWIG_IsOK(res1
)) {
12754 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
12756 arg1
= reinterpret_cast< wxFont
* >(argp1
);
12757 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
12758 if (!SWIG_IsOK(ecode2
)) {
12759 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
12761 arg2
= static_cast< int >(val2
);
12763 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12764 (arg1
)->SetFamily(arg2
);
12765 wxPyEndAllowThreads(__tstate
);
12766 if (PyErr_Occurred()) SWIG_fail
;
12768 resultobj
= SWIG_Py_Void();
12775 SWIGINTERN PyObject
*_wrap_Font_SetStyle(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
12776 PyObject
*resultobj
= 0;
12777 wxFont
*arg1
= (wxFont
*) 0 ;
12783 PyObject
* obj0
= 0 ;
12784 PyObject
* obj1
= 0 ;
12785 char * kwnames
[] = {
12786 (char *) "self",(char *) "style", NULL
12789 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Font_SetStyle",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
12790 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxFont
, 0 | 0 );
12791 if (!SWIG_IsOK(res1
)) {
12792 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
12794 arg1
= reinterpret_cast< wxFont
* >(argp1
);
12795 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
12796 if (!SWIG_IsOK(ecode2
)) {
12797 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
12799 arg2
= static_cast< int >(val2
);
12801 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12802 (arg1
)->SetStyle(arg2
);
12803 wxPyEndAllowThreads(__tstate
);
12804 if (PyErr_Occurred()) SWIG_fail
;
12806 resultobj
= SWIG_Py_Void();
12813 SWIGINTERN PyObject
*_wrap_Font_SetWeight(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
12814 PyObject
*resultobj
= 0;
12815 wxFont
*arg1
= (wxFont
*) 0 ;
12821 PyObject
* obj0
= 0 ;
12822 PyObject
* obj1
= 0 ;
12823 char * kwnames
[] = {
12824 (char *) "self",(char *) "weight", NULL
12827 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Font_SetWeight",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
12828 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxFont
, 0 | 0 );
12829 if (!SWIG_IsOK(res1
)) {
12830 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
12832 arg1
= reinterpret_cast< wxFont
* >(argp1
);
12833 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
12834 if (!SWIG_IsOK(ecode2
)) {
12835 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
12837 arg2
= static_cast< int >(val2
);
12839 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12840 (arg1
)->SetWeight(arg2
);
12841 wxPyEndAllowThreads(__tstate
);
12842 if (PyErr_Occurred()) SWIG_fail
;
12844 resultobj
= SWIG_Py_Void();
12851 SWIGINTERN PyObject
*_wrap_Font_SetFaceName(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
12852 PyObject
*resultobj
= 0;
12853 wxFont
*arg1
= (wxFont
*) 0 ;
12854 wxString
*arg2
= 0 ;
12857 bool temp2
= false ;
12858 PyObject
* obj0
= 0 ;
12859 PyObject
* obj1
= 0 ;
12860 char * kwnames
[] = {
12861 (char *) "self",(char *) "faceName", NULL
12864 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Font_SetFaceName",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
12865 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxFont
, 0 | 0 );
12866 if (!SWIG_IsOK(res1
)) {
12867 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
12869 arg1
= reinterpret_cast< wxFont
* >(argp1
);
12871 arg2
= wxString_in_helper(obj1
);
12872 if (arg2
== NULL
) SWIG_fail
;
12876 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12877 (arg1
)->SetFaceName((wxString
const &)*arg2
);
12878 wxPyEndAllowThreads(__tstate
);
12879 if (PyErr_Occurred()) SWIG_fail
;
12881 resultobj
= SWIG_Py_Void();
12896 SWIGINTERN PyObject
*_wrap_Font_SetUnderlined(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
12897 PyObject
*resultobj
= 0;
12898 wxFont
*arg1
= (wxFont
*) 0 ;
12904 PyObject
* obj0
= 0 ;
12905 PyObject
* obj1
= 0 ;
12906 char * kwnames
[] = {
12907 (char *) "self",(char *) "underlined", NULL
12910 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Font_SetUnderlined",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
12911 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxFont
, 0 | 0 );
12912 if (!SWIG_IsOK(res1
)) {
12913 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
12915 arg1
= reinterpret_cast< wxFont
* >(argp1
);
12916 ecode2
= SWIG_AsVal_bool(obj1
, &val2
);
12917 if (!SWIG_IsOK(ecode2
)) {
12918 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12920 arg2
= static_cast< bool >(val2
);
12922 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12923 (arg1
)->SetUnderlined(arg2
);
12924 wxPyEndAllowThreads(__tstate
);
12925 if (PyErr_Occurred()) SWIG_fail
;
12927 resultobj
= SWIG_Py_Void();
12934 SWIGINTERN PyObject
*_wrap_Font_SetEncoding(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
12935 PyObject
*resultobj
= 0;
12936 wxFont
*arg1
= (wxFont
*) 0 ;
12937 wxFontEncoding arg2
;
12942 PyObject
* obj0
= 0 ;
12943 PyObject
* obj1
= 0 ;
12944 char * kwnames
[] = {
12945 (char *) "self",(char *) "encoding", NULL
12948 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Font_SetEncoding",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
12949 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxFont
, 0 | 0 );
12950 if (!SWIG_IsOK(res1
)) {
12951 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
12953 arg1
= reinterpret_cast< wxFont
* >(argp1
);
12954 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
12955 if (!SWIG_IsOK(ecode2
)) {
12956 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12958 arg2
= static_cast< wxFontEncoding
>(val2
);
12960 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12961 (arg1
)->SetEncoding(arg2
);
12962 wxPyEndAllowThreads(__tstate
);
12963 if (PyErr_Occurred()) SWIG_fail
;
12965 resultobj
= SWIG_Py_Void();
12972 SWIGINTERN PyObject
*_wrap_Font_SetNativeFontInfo(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
12973 PyObject
*resultobj
= 0;
12974 wxFont
*arg1
= (wxFont
*) 0 ;
12975 wxNativeFontInfo
*arg2
= 0 ;
12980 PyObject
* obj0
= 0 ;
12981 PyObject
* obj1
= 0 ;
12982 char * kwnames
[] = {
12983 (char *) "self",(char *) "info", NULL
12986 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Font_SetNativeFontInfo",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
12987 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxFont
, 0 | 0 );
12988 if (!SWIG_IsOK(res1
)) {
12989 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
12991 arg1
= reinterpret_cast< wxFont
* >(argp1
);
12992 res2
= SWIG_ConvertPtr(obj1
, &argp2
, SWIGTYPE_p_wxNativeFontInfo
, 0 | 0);
12993 if (!SWIG_IsOK(res2
)) {
12994 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
12997 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
12999 arg2
= reinterpret_cast< wxNativeFontInfo
* >(argp2
);
13001 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
13002 (arg1
)->SetNativeFontInfo((wxNativeFontInfo
const &)*arg2
);
13003 wxPyEndAllowThreads(__tstate
);
13004 if (PyErr_Occurred()) SWIG_fail
;
13006 resultobj
= SWIG_Py_Void();
13013 SWIGINTERN PyObject
*_wrap_Font_SetNativeFontInfoFromString(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
13014 PyObject
*resultobj
= 0;
13015 wxFont
*arg1
= (wxFont
*) 0 ;
13016 wxString
*arg2
= 0 ;
13019 bool temp2
= false ;
13020 PyObject
* obj0
= 0 ;
13021 PyObject
* obj1
= 0 ;
13022 char * kwnames
[] = {
13023 (char *) "self",(char *) "info", NULL
13026 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
13027 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxFont
, 0 | 0 );
13028 if (!SWIG_IsOK(res1
)) {
13029 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
13031 arg1
= reinterpret_cast< wxFont
* >(argp1
);
13033 arg2
= wxString_in_helper(obj1
);
13034 if (arg2
== NULL
) SWIG_fail
;
13038 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
13039 (arg1
)->SetNativeFontInfo((wxString
const &)*arg2
);
13040 wxPyEndAllowThreads(__tstate
);
13041 if (PyErr_Occurred()) SWIG_fail
;
13043 resultobj
= SWIG_Py_Void();
13058 SWIGINTERN PyObject
*_wrap_Font_SetNativeFontInfoUserDesc(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
13059 PyObject
*resultobj
= 0;
13060 wxFont
*arg1
= (wxFont
*) 0 ;
13061 wxString
*arg2
= 0 ;
13064 bool temp2
= false ;
13065 PyObject
* obj0
= 0 ;
13066 PyObject
* obj1
= 0 ;
13067 char * kwnames
[] = {
13068 (char *) "self",(char *) "info", NULL
13071 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
13072 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxFont
, 0 | 0 );
13073 if (!SWIG_IsOK(res1
)) {
13074 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
13076 arg1
= reinterpret_cast< wxFont
* >(argp1
);
13078 arg2
= wxString_in_helper(obj1
);
13079 if (arg2
== NULL
) SWIG_fail
;
13083 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
13084 (arg1
)->SetNativeFontInfoUserDesc((wxString
const &)*arg2
);
13085 wxPyEndAllowThreads(__tstate
);
13086 if (PyErr_Occurred()) SWIG_fail
;
13088 resultobj
= SWIG_Py_Void();
13103 SWIGINTERN PyObject
*_wrap_Font_GetFamilyString(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
13104 PyObject
*resultobj
= 0;
13105 wxFont
*arg1
= (wxFont
*) 0 ;
13109 PyObject
*swig_obj
[1] ;
13111 if (!args
) SWIG_fail
;
13112 swig_obj
[0] = args
;
13113 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxFont
, 0 | 0 );
13114 if (!SWIG_IsOK(res1
)) {
13115 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
13117 arg1
= reinterpret_cast< wxFont
* >(argp1
);
13119 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
13120 result
= ((wxFont
const *)arg1
)->GetFamilyString();
13121 wxPyEndAllowThreads(__tstate
);
13122 if (PyErr_Occurred()) SWIG_fail
;
13126 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
13128 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
13137 SWIGINTERN PyObject
*_wrap_Font_GetStyleString(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
13138 PyObject
*resultobj
= 0;
13139 wxFont
*arg1
= (wxFont
*) 0 ;
13143 PyObject
*swig_obj
[1] ;
13145 if (!args
) SWIG_fail
;
13146 swig_obj
[0] = args
;
13147 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxFont
, 0 | 0 );
13148 if (!SWIG_IsOK(res1
)) {
13149 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
13151 arg1
= reinterpret_cast< wxFont
* >(argp1
);
13153 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
13154 result
= ((wxFont
const *)arg1
)->GetStyleString();
13155 wxPyEndAllowThreads(__tstate
);
13156 if (PyErr_Occurred()) SWIG_fail
;
13160 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
13162 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
13171 SWIGINTERN PyObject
*_wrap_Font_GetWeightString(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
13172 PyObject
*resultobj
= 0;
13173 wxFont
*arg1
= (wxFont
*) 0 ;
13177 PyObject
*swig_obj
[1] ;
13179 if (!args
) SWIG_fail
;
13180 swig_obj
[0] = args
;
13181 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxFont
, 0 | 0 );
13182 if (!SWIG_IsOK(res1
)) {
13183 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
13185 arg1
= reinterpret_cast< wxFont
* >(argp1
);
13187 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
13188 result
= ((wxFont
const *)arg1
)->GetWeightString();
13189 wxPyEndAllowThreads(__tstate
);
13190 if (PyErr_Occurred()) SWIG_fail
;
13194 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
13196 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
13205 SWIGINTERN PyObject
*_wrap_Font_SetNoAntiAliasing(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
13206 PyObject
*resultobj
= 0;
13207 wxFont
*arg1
= (wxFont
*) 0 ;
13208 bool arg2
= (bool) true ;
13213 PyObject
* obj0
= 0 ;
13214 PyObject
* obj1
= 0 ;
13215 char * kwnames
[] = {
13216 (char *) "self",(char *) "no", NULL
13219 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:Font_SetNoAntiAliasing",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
13220 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxFont
, 0 | 0 );
13221 if (!SWIG_IsOK(res1
)) {
13222 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
13224 arg1
= reinterpret_cast< wxFont
* >(argp1
);
13226 ecode2
= SWIG_AsVal_bool(obj1
, &val2
);
13227 if (!SWIG_IsOK(ecode2
)) {
13228 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
13230 arg2
= static_cast< bool >(val2
);
13233 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
13234 (arg1
)->SetNoAntiAliasing(arg2
);
13235 wxPyEndAllowThreads(__tstate
);
13236 if (PyErr_Occurred()) SWIG_fail
;
13238 resultobj
= SWIG_Py_Void();
13245 SWIGINTERN PyObject
*_wrap_Font_GetNoAntiAliasing(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
13246 PyObject
*resultobj
= 0;
13247 wxFont
*arg1
= (wxFont
*) 0 ;
13251 PyObject
*swig_obj
[1] ;
13253 if (!args
) SWIG_fail
;
13254 swig_obj
[0] = args
;
13255 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxFont
, 0 | 0 );
13256 if (!SWIG_IsOK(res1
)) {
13257 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
13259 arg1
= reinterpret_cast< wxFont
* >(argp1
);
13261 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
13262 result
= (bool)((wxFont
const *)arg1
)->GetNoAntiAliasing();
13263 wxPyEndAllowThreads(__tstate
);
13264 if (PyErr_Occurred()) SWIG_fail
;
13267 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
13275 SWIGINTERN PyObject
*_wrap_Font_GetDefaultEncoding(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
13276 PyObject
*resultobj
= 0;
13277 wxFontEncoding result
;
13279 if (!SWIG_Python_UnpackTuple(args
,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail
;
13281 if (!wxPyCheckForApp()) SWIG_fail
;
13282 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
13283 result
= (wxFontEncoding
)wxFont::GetDefaultEncoding();
13284 wxPyEndAllowThreads(__tstate
);
13285 if (PyErr_Occurred()) SWIG_fail
;
13287 resultobj
= SWIG_From_int(static_cast< int >(result
));
13294 SWIGINTERN PyObject
*_wrap_Font_SetDefaultEncoding(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
13295 PyObject
*resultobj
= 0;
13296 wxFontEncoding arg1
;
13299 PyObject
* obj0
= 0 ;
13300 char * kwnames
[] = {
13301 (char *) "encoding", NULL
13304 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:Font_SetDefaultEncoding",kwnames
,&obj0
)) SWIG_fail
;
13305 ecode1
= SWIG_AsVal_int(obj0
, &val1
);
13306 if (!SWIG_IsOK(ecode1
)) {
13307 SWIG_exception_fail(SWIG_ArgError(ecode1
), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13309 arg1
= static_cast< wxFontEncoding
>(val1
);
13311 if (!wxPyCheckForApp()) SWIG_fail
;
13312 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
13313 wxFont::SetDefaultEncoding(arg1
);
13314 wxPyEndAllowThreads(__tstate
);
13315 if (PyErr_Occurred()) SWIG_fail
;
13317 resultobj
= SWIG_Py_Void();
13324 SWIGINTERN PyObject
*Font_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
13326 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
13327 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont
, SWIG_NewClientData(obj
));
13328 return SWIG_Py_Void();
13331 SWIGINTERN PyObject
*Font_swiginit(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
13332 return SWIG_Python_InitShadowInstance(args
);
13335 SWIGINTERN PyObject
*_wrap_new_FontEnumerator(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
13336 PyObject
*resultobj
= 0;
13337 wxPyFontEnumerator
*result
= 0 ;
13339 if (!SWIG_Python_UnpackTuple(args
,"new_FontEnumerator",0,0,0)) SWIG_fail
;
13341 if (!wxPyCheckForApp()) SWIG_fail
;
13342 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
13343 result
= (wxPyFontEnumerator
*)new wxPyFontEnumerator();
13344 wxPyEndAllowThreads(__tstate
);
13345 if (PyErr_Occurred()) SWIG_fail
;
13347 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxPyFontEnumerator
, SWIG_POINTER_NEW
| 0 );
13354 SWIGINTERN PyObject
*_wrap_delete_FontEnumerator(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
13355 PyObject
*resultobj
= 0;
13356 wxPyFontEnumerator
*arg1
= (wxPyFontEnumerator
*) 0 ;
13359 PyObject
*swig_obj
[1] ;
13361 if (!args
) SWIG_fail
;
13362 swig_obj
[0] = args
;
13363 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxPyFontEnumerator
, SWIG_POINTER_DISOWN
| 0 );
13364 if (!SWIG_IsOK(res1
)) {
13365 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
13367 arg1
= reinterpret_cast< wxPyFontEnumerator
* >(argp1
);
13369 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
13372 wxPyEndAllowThreads(__tstate
);
13373 if (PyErr_Occurred()) SWIG_fail
;
13375 resultobj
= SWIG_Py_Void();
13382 SWIGINTERN PyObject
*_wrap_FontEnumerator__setCallbackInfo(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
13383 PyObject
*resultobj
= 0;
13384 wxPyFontEnumerator
*arg1
= (wxPyFontEnumerator
*) 0 ;
13385 PyObject
*arg2
= (PyObject
*) 0 ;
13386 PyObject
*arg3
= (PyObject
*) 0 ;
13392 PyObject
* obj0
= 0 ;
13393 PyObject
* obj1
= 0 ;
13394 PyObject
* obj2
= 0 ;
13395 PyObject
* obj3
= 0 ;
13396 char * kwnames
[] = {
13397 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
13400 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) SWIG_fail
;
13401 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPyFontEnumerator
, 0 | 0 );
13402 if (!SWIG_IsOK(res1
)) {
13403 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
13405 arg1
= reinterpret_cast< wxPyFontEnumerator
* >(argp1
);
13408 ecode4
= SWIG_AsVal_bool(obj3
, &val4
);
13409 if (!SWIG_IsOK(ecode4
)) {
13410 SWIG_exception_fail(SWIG_ArgError(ecode4
), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
13412 arg4
= static_cast< bool >(val4
);
13414 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
13415 (arg1
)->_setCallbackInfo(arg2
,arg3
,arg4
);
13416 wxPyEndAllowThreads(__tstate
);
13417 if (PyErr_Occurred()) SWIG_fail
;
13419 resultobj
= SWIG_Py_Void();
13426 SWIGINTERN PyObject
*_wrap_FontEnumerator_EnumerateFacenames(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
13427 PyObject
*resultobj
= 0;
13428 wxPyFontEnumerator
*arg1
= (wxPyFontEnumerator
*) 0 ;
13429 wxFontEncoding arg2
= (wxFontEncoding
) wxFONTENCODING_SYSTEM
;
13430 bool arg3
= (bool) false ;
13438 PyObject
* obj0
= 0 ;
13439 PyObject
* obj1
= 0 ;
13440 PyObject
* obj2
= 0 ;
13441 char * kwnames
[] = {
13442 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
13445 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
13446 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPyFontEnumerator
, 0 | 0 );
13447 if (!SWIG_IsOK(res1
)) {
13448 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
13450 arg1
= reinterpret_cast< wxPyFontEnumerator
* >(argp1
);
13452 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
13453 if (!SWIG_IsOK(ecode2
)) {
13454 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13456 arg2
= static_cast< wxFontEncoding
>(val2
);
13459 ecode3
= SWIG_AsVal_bool(obj2
, &val3
);
13460 if (!SWIG_IsOK(ecode3
)) {
13461 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
13463 arg3
= static_cast< bool >(val3
);
13466 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
13467 result
= (bool)(arg1
)->EnumerateFacenames(arg2
,arg3
);
13468 wxPyEndAllowThreads(__tstate
);
13469 if (PyErr_Occurred()) SWIG_fail
;
13472 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
13480 SWIGINTERN PyObject
*_wrap_FontEnumerator_EnumerateEncodings(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
13481 PyObject
*resultobj
= 0;
13482 wxPyFontEnumerator
*arg1
= (wxPyFontEnumerator
*) 0 ;
13483 wxString
const &arg2_defvalue
= wxPyEmptyString
;
13484 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
13488 bool temp2
= false ;
13489 PyObject
* obj0
= 0 ;
13490 PyObject
* obj1
= 0 ;
13491 char * kwnames
[] = {
13492 (char *) "self",(char *) "facename", NULL
13495 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
13496 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPyFontEnumerator
, 0 | 0 );
13497 if (!SWIG_IsOK(res1
)) {
13498 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
13500 arg1
= reinterpret_cast< wxPyFontEnumerator
* >(argp1
);
13503 arg2
= wxString_in_helper(obj1
);
13504 if (arg2
== NULL
) SWIG_fail
;
13509 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
13510 result
= (bool)(arg1
)->EnumerateEncodings((wxString
const &)*arg2
);
13511 wxPyEndAllowThreads(__tstate
);
13512 if (PyErr_Occurred()) SWIG_fail
;
13515 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
13531 SWIGINTERN PyObject
*_wrap_FontEnumerator_GetEncodings(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
13532 PyObject
*resultobj
= 0;
13533 wxPyFontEnumerator
*arg1
= (wxPyFontEnumerator
*) 0 ;
13534 PyObject
*result
= 0 ;
13537 PyObject
*swig_obj
[1] ;
13539 if (!args
) SWIG_fail
;
13540 swig_obj
[0] = args
;
13541 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxPyFontEnumerator
, 0 | 0 );
13542 if (!SWIG_IsOK(res1
)) {
13543 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "FontEnumerator_GetEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
13545 arg1
= reinterpret_cast< wxPyFontEnumerator
* >(argp1
);
13547 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
13548 result
= (PyObject
*)wxPyFontEnumerator_GetEncodings(arg1
);
13549 wxPyEndAllowThreads(__tstate
);
13550 if (PyErr_Occurred()) SWIG_fail
;
13552 resultobj
= result
;
13559 SWIGINTERN PyObject
*_wrap_FontEnumerator_GetFacenames(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
13560 PyObject
*resultobj
= 0;
13561 wxPyFontEnumerator
*arg1
= (wxPyFontEnumerator
*) 0 ;
13562 PyObject
*result
= 0 ;
13565 PyObject
*swig_obj
[1] ;
13567 if (!args
) SWIG_fail
;
13568 swig_obj
[0] = args
;
13569 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxPyFontEnumerator
, 0 | 0 );
13570 if (!SWIG_IsOK(res1
)) {
13571 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "FontEnumerator_GetFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
13573 arg1
= reinterpret_cast< wxPyFontEnumerator
* >(argp1
);
13575 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
13576 result
= (PyObject
*)wxPyFontEnumerator_GetFacenames(arg1
);
13577 wxPyEndAllowThreads(__tstate
);
13578 if (PyErr_Occurred()) SWIG_fail
;
13580 resultobj
= result
;
13587 SWIGINTERN PyObject
*FontEnumerator_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
13589 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
13590 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator
, SWIG_NewClientData(obj
));
13591 return SWIG_Py_Void();
13594 SWIGINTERN PyObject
*FontEnumerator_swiginit(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
13595 return SWIG_Python_InitShadowInstance(args
);
13598 SWIGINTERN PyObject
*_wrap_LanguageInfo_Language_set(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
13599 PyObject
*resultobj
= 0;
13600 wxLanguageInfo
*arg1
= (wxLanguageInfo
*) 0 ;
13606 PyObject
*swig_obj
[2] ;
13608 if (!SWIG_Python_UnpackTuple(args
,"LanguageInfo_Language_set",2,2,swig_obj
)) SWIG_fail
;
13609 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxLanguageInfo
, 0 | 0 );
13610 if (!SWIG_IsOK(res1
)) {
13611 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13613 arg1
= reinterpret_cast< wxLanguageInfo
* >(argp1
);
13614 ecode2
= SWIG_AsVal_int(swig_obj
[1], &val2
);
13615 if (!SWIG_IsOK(ecode2
)) {
13616 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
13618 arg2
= static_cast< int >(val2
);
13619 if (arg1
) (arg1
)->Language
= arg2
;
13621 resultobj
= SWIG_Py_Void();
13628 SWIGINTERN PyObject
*_wrap_LanguageInfo_Language_get(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
13629 PyObject
*resultobj
= 0;
13630 wxLanguageInfo
*arg1
= (wxLanguageInfo
*) 0 ;
13634 PyObject
*swig_obj
[1] ;
13636 if (!args
) SWIG_fail
;
13637 swig_obj
[0] = args
;
13638 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxLanguageInfo
, 0 | 0 );
13639 if (!SWIG_IsOK(res1
)) {
13640 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13642 arg1
= reinterpret_cast< wxLanguageInfo
* >(argp1
);
13643 result
= (int) ((arg1
)->Language
);
13644 resultobj
= SWIG_From_int(static_cast< int >(result
));
13651 SWIGINTERN PyObject
*_wrap_LanguageInfo_CanonicalName_set(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
13652 PyObject
*resultobj
= 0;
13653 wxLanguageInfo
*arg1
= (wxLanguageInfo
*) 0 ;
13654 wxString
*arg2
= (wxString
*) 0 ;
13657 bool temp2
= false ;
13658 PyObject
*swig_obj
[2] ;
13660 if (!SWIG_Python_UnpackTuple(args
,"LanguageInfo_CanonicalName_set",2,2,swig_obj
)) SWIG_fail
;
13661 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxLanguageInfo
, 0 | 0 );
13662 if (!SWIG_IsOK(res1
)) {
13663 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13665 arg1
= reinterpret_cast< wxLanguageInfo
* >(argp1
);
13667 arg2
= wxString_in_helper(swig_obj
[1]);
13668 if (arg2
== NULL
) SWIG_fail
;
13671 if (arg1
) (arg1
)->CanonicalName
= *arg2
;
13673 resultobj
= SWIG_Py_Void();
13688 SWIGINTERN PyObject
*_wrap_LanguageInfo_CanonicalName_get(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
13689 PyObject
*resultobj
= 0;
13690 wxLanguageInfo
*arg1
= (wxLanguageInfo
*) 0 ;
13691 wxString
*result
= 0 ;
13694 PyObject
*swig_obj
[1] ;
13696 if (!args
) SWIG_fail
;
13697 swig_obj
[0] = args
;
13698 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxLanguageInfo
, 0 | 0 );
13699 if (!SWIG_IsOK(res1
)) {
13700 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13702 arg1
= reinterpret_cast< wxLanguageInfo
* >(argp1
);
13703 result
= (wxString
*)& ((arg1
)->CanonicalName
);
13706 resultobj
= PyUnicode_FromWideChar(result
->c_str(), result
->Len());
13708 resultobj
= PyString_FromStringAndSize(result
->c_str(), result
->Len());
13717 SWIGINTERN PyObject
*_wrap_LanguageInfo_Description_set(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
13718 PyObject
*resultobj
= 0;
13719 wxLanguageInfo
*arg1
= (wxLanguageInfo
*) 0 ;
13720 wxString
*arg2
= (wxString
*) 0 ;
13723 bool temp2
= false ;
13724 PyObject
*swig_obj
[2] ;
13726 if (!SWIG_Python_UnpackTuple(args
,"LanguageInfo_Description_set",2,2,swig_obj
)) SWIG_fail
;
13727 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxLanguageInfo
, 0 | 0 );
13728 if (!SWIG_IsOK(res1
)) {
13729 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13731 arg1
= reinterpret_cast< wxLanguageInfo
* >(argp1
);
13733 arg2
= wxString_in_helper(swig_obj
[1]);
13734 if (arg2
== NULL
) SWIG_fail
;
13737 if (arg1
) (arg1
)->Description
= *arg2
;
13739 resultobj
= SWIG_Py_Void();
13754 SWIGINTERN PyObject
*_wrap_LanguageInfo_Description_get(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
13755 PyObject
*resultobj
= 0;
13756 wxLanguageInfo
*arg1
= (wxLanguageInfo
*) 0 ;
13757 wxString
*result
= 0 ;
13760 PyObject
*swig_obj
[1] ;
13762 if (!args
) SWIG_fail
;
13763 swig_obj
[0] = args
;
13764 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxLanguageInfo
, 0 | 0 );
13765 if (!SWIG_IsOK(res1
)) {
13766 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13768 arg1
= reinterpret_cast< wxLanguageInfo
* >(argp1
);
13769 result
= (wxString
*)& ((arg1
)->Description
);
13772 resultobj
= PyUnicode_FromWideChar(result
->c_str(), result
->Len());
13774 resultobj
= PyString_FromStringAndSize(result
->c_str(), result
->Len());
13783 SWIGINTERN PyObject
*LanguageInfo_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
13785 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
13786 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo
, SWIG_NewClientData(obj
));
13787 return SWIG_Py_Void();
13790 SWIGINTERN PyObject
*_wrap_new_Locale(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
13791 PyObject
*resultobj
= 0;
13792 int arg1
= (int) -1 ;
13793 int arg2
= (int) wxLOCALE_LOAD_DEFAULT
|wxLOCALE_CONV_ENCODING
;
13794 wxLocale
*result
= 0 ;
13799 PyObject
* obj0
= 0 ;
13800 PyObject
* obj1
= 0 ;
13801 char * kwnames
[] = {
13802 (char *) "language",(char *) "flags", NULL
13805 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|OO:new_Locale",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
13807 ecode1
= SWIG_AsVal_int(obj0
, &val1
);
13808 if (!SWIG_IsOK(ecode1
)) {
13809 SWIG_exception_fail(SWIG_ArgError(ecode1
), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
13811 arg1
= static_cast< int >(val1
);
13814 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
13815 if (!SWIG_IsOK(ecode2
)) {
13816 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
13818 arg2
= static_cast< int >(val2
);
13821 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
13822 result
= (wxLocale
*)new_wxLocale(arg1
,arg2
);
13823 wxPyEndAllowThreads(__tstate
);
13824 if (PyErr_Occurred()) SWIG_fail
;
13826 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxLocale
, SWIG_POINTER_NEW
| 0 );
13833 SWIGINTERN PyObject
*_wrap_delete_Locale(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
13834 PyObject
*resultobj
= 0;
13835 wxLocale
*arg1
= (wxLocale
*) 0 ;
13838 PyObject
*swig_obj
[1] ;
13840 if (!args
) SWIG_fail
;
13841 swig_obj
[0] = args
;
13842 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxLocale
, SWIG_POINTER_DISOWN
| 0 );
13843 if (!SWIG_IsOK(res1
)) {
13844 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
13846 arg1
= reinterpret_cast< wxLocale
* >(argp1
);
13848 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
13851 wxPyEndAllowThreads(__tstate
);
13852 if (PyErr_Occurred()) SWIG_fail
;
13854 resultobj
= SWIG_Py_Void();
13861 SWIGINTERN PyObject
*_wrap_Locale_Init1(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
13862 PyObject
*resultobj
= 0;
13863 wxLocale
*arg1
= (wxLocale
*) 0 ;
13864 wxString
*arg2
= 0 ;
13865 wxString
const &arg3_defvalue
= wxPyEmptyString
;
13866 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
13867 wxString
const &arg4_defvalue
= wxPyEmptyString
;
13868 wxString
*arg4
= (wxString
*) &arg4_defvalue
;
13869 bool arg5
= (bool) true ;
13870 bool arg6
= (bool) false ;
13874 bool temp2
= false ;
13875 bool temp3
= false ;
13876 bool temp4
= false ;
13881 PyObject
* obj0
= 0 ;
13882 PyObject
* obj1
= 0 ;
13883 PyObject
* obj2
= 0 ;
13884 PyObject
* obj3
= 0 ;
13885 PyObject
* obj4
= 0 ;
13886 PyObject
* obj5
= 0 ;
13887 char * kwnames
[] = {
13888 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
13891 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|OOOO:Locale_Init1",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
,&obj5
)) SWIG_fail
;
13892 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxLocale
, 0 | 0 );
13893 if (!SWIG_IsOK(res1
)) {
13894 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
13896 arg1
= reinterpret_cast< wxLocale
* >(argp1
);
13898 arg2
= wxString_in_helper(obj1
);
13899 if (arg2
== NULL
) SWIG_fail
;
13904 arg3
= wxString_in_helper(obj2
);
13905 if (arg3
== NULL
) SWIG_fail
;
13911 arg4
= wxString_in_helper(obj3
);
13912 if (arg4
== NULL
) SWIG_fail
;
13917 ecode5
= SWIG_AsVal_bool(obj4
, &val5
);
13918 if (!SWIG_IsOK(ecode5
)) {
13919 SWIG_exception_fail(SWIG_ArgError(ecode5
), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
13921 arg5
= static_cast< bool >(val5
);
13924 ecode6
= SWIG_AsVal_bool(obj5
, &val6
);
13925 if (!SWIG_IsOK(ecode6
)) {
13926 SWIG_exception_fail(SWIG_ArgError(ecode6
), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
13928 arg6
= static_cast< bool >(val6
);
13931 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
13932 result
= (bool)wxLocale_Init1(arg1
,(wxString
const &)*arg2
,(wxString
const &)*arg3
,(wxString
const &)*arg4
,arg5
,arg6
);
13933 wxPyEndAllowThreads(__tstate
);
13934 if (PyErr_Occurred()) SWIG_fail
;
13937 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
13969 SWIGINTERN PyObject
*_wrap_Locale_Init2(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
13970 PyObject
*resultobj
= 0;
13971 wxLocale
*arg1
= (wxLocale
*) 0 ;
13972 int arg2
= (int) wxLANGUAGE_DEFAULT
;
13973 int arg3
= (int) wxLOCALE_LOAD_DEFAULT
|wxLOCALE_CONV_ENCODING
;
13981 PyObject
* obj0
= 0 ;
13982 PyObject
* obj1
= 0 ;
13983 PyObject
* obj2
= 0 ;
13984 char * kwnames
[] = {
13985 (char *) "self",(char *) "language",(char *) "flags", NULL
13988 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OO:Locale_Init2",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
13989 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxLocale
, 0 | 0 );
13990 if (!SWIG_IsOK(res1
)) {
13991 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
13993 arg1
= reinterpret_cast< wxLocale
* >(argp1
);
13995 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
13996 if (!SWIG_IsOK(ecode2
)) {
13997 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
13999 arg2
= static_cast< int >(val2
);
14002 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
14003 if (!SWIG_IsOK(ecode3
)) {
14004 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
14006 arg3
= static_cast< int >(val3
);
14009 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
14010 result
= (bool)wxLocale_Init2(arg1
,arg2
,arg3
);
14011 wxPyEndAllowThreads(__tstate
);
14012 if (PyErr_Occurred()) SWIG_fail
;
14015 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
14023 SWIGINTERN PyObject
*_wrap_Locale_GetSystemLanguage(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
14024 PyObject
*resultobj
= 0;
14027 if (!SWIG_Python_UnpackTuple(args
,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail
;
14029 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
14030 result
= (int)wxLocale::GetSystemLanguage();
14031 wxPyEndAllowThreads(__tstate
);
14032 if (PyErr_Occurred()) SWIG_fail
;
14034 resultobj
= SWIG_From_int(static_cast< int >(result
));
14041 SWIGINTERN PyObject
*_wrap_Locale_GetSystemEncoding(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
14042 PyObject
*resultobj
= 0;
14043 wxFontEncoding result
;
14045 if (!SWIG_Python_UnpackTuple(args
,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail
;
14047 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
14048 result
= (wxFontEncoding
)wxLocale::GetSystemEncoding();
14049 wxPyEndAllowThreads(__tstate
);
14050 if (PyErr_Occurred()) SWIG_fail
;
14052 resultobj
= SWIG_From_int(static_cast< int >(result
));
14059 SWIGINTERN PyObject
*_wrap_Locale_GetSystemEncodingName(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
14060 PyObject
*resultobj
= 0;
14063 if (!SWIG_Python_UnpackTuple(args
,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail
;
14065 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
14066 result
= wxLocale::GetSystemEncodingName();
14067 wxPyEndAllowThreads(__tstate
);
14068 if (PyErr_Occurred()) SWIG_fail
;
14072 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
14074 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
14083 SWIGINTERN PyObject
*_wrap_Locale_IsOk(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
14084 PyObject
*resultobj
= 0;
14085 wxLocale
*arg1
= (wxLocale
*) 0 ;
14089 PyObject
*swig_obj
[1] ;
14091 if (!args
) SWIG_fail
;
14092 swig_obj
[0] = args
;
14093 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxLocale
, 0 | 0 );
14094 if (!SWIG_IsOK(res1
)) {
14095 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
14097 arg1
= reinterpret_cast< wxLocale
* >(argp1
);
14099 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
14100 result
= (bool)((wxLocale
const *)arg1
)->IsOk();
14101 wxPyEndAllowThreads(__tstate
);
14102 if (PyErr_Occurred()) SWIG_fail
;
14105 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
14113 SWIGINTERN PyObject
*_wrap_Locale_GetLocale(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
14114 PyObject
*resultobj
= 0;
14115 wxLocale
*arg1
= (wxLocale
*) 0 ;
14119 PyObject
*swig_obj
[1] ;
14121 if (!args
) SWIG_fail
;
14122 swig_obj
[0] = args
;
14123 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxLocale
, 0 | 0 );
14124 if (!SWIG_IsOK(res1
)) {
14125 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
14127 arg1
= reinterpret_cast< wxLocale
* >(argp1
);
14129 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
14130 result
= ((wxLocale
const *)arg1
)->GetLocale();
14131 wxPyEndAllowThreads(__tstate
);
14132 if (PyErr_Occurred()) SWIG_fail
;
14136 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
14138 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
14147 SWIGINTERN PyObject
*_wrap_Locale_GetLanguage(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
14148 PyObject
*resultobj
= 0;
14149 wxLocale
*arg1
= (wxLocale
*) 0 ;
14153 PyObject
*swig_obj
[1] ;
14155 if (!args
) SWIG_fail
;
14156 swig_obj
[0] = args
;
14157 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxLocale
, 0 | 0 );
14158 if (!SWIG_IsOK(res1
)) {
14159 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
14161 arg1
= reinterpret_cast< wxLocale
* >(argp1
);
14163 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
14164 result
= (int)((wxLocale
const *)arg1
)->GetLanguage();
14165 wxPyEndAllowThreads(__tstate
);
14166 if (PyErr_Occurred()) SWIG_fail
;
14168 resultobj
= SWIG_From_int(static_cast< int >(result
));
14175 SWIGINTERN PyObject
*_wrap_Locale_GetSysName(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
14176 PyObject
*resultobj
= 0;
14177 wxLocale
*arg1
= (wxLocale
*) 0 ;
14181 PyObject
*swig_obj
[1] ;
14183 if (!args
) SWIG_fail
;
14184 swig_obj
[0] = args
;
14185 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxLocale
, 0 | 0 );
14186 if (!SWIG_IsOK(res1
)) {
14187 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
14189 arg1
= reinterpret_cast< wxLocale
* >(argp1
);
14191 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
14192 result
= ((wxLocale
const *)arg1
)->GetSysName();
14193 wxPyEndAllowThreads(__tstate
);
14194 if (PyErr_Occurred()) SWIG_fail
;
14198 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
14200 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
14209 SWIGINTERN PyObject
*_wrap_Locale_GetCanonicalName(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
14210 PyObject
*resultobj
= 0;
14211 wxLocale
*arg1
= (wxLocale
*) 0 ;
14215 PyObject
*swig_obj
[1] ;
14217 if (!args
) SWIG_fail
;
14218 swig_obj
[0] = args
;
14219 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxLocale
, 0 | 0 );
14220 if (!SWIG_IsOK(res1
)) {
14221 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
14223 arg1
= reinterpret_cast< wxLocale
* >(argp1
);
14225 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
14226 result
= ((wxLocale
const *)arg1
)->GetCanonicalName();
14227 wxPyEndAllowThreads(__tstate
);
14228 if (PyErr_Occurred()) SWIG_fail
;
14232 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
14234 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
14243 SWIGINTERN PyObject
*_wrap_Locale_AddCatalogLookupPathPrefix(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
14244 PyObject
*resultobj
= 0;
14245 wxString
*arg1
= 0 ;
14246 bool temp1
= false ;
14247 PyObject
* obj0
= 0 ;
14248 char * kwnames
[] = {
14249 (char *) "prefix", NULL
14252 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames
,&obj0
)) SWIG_fail
;
14254 arg1
= wxString_in_helper(obj0
);
14255 if (arg1
== NULL
) SWIG_fail
;
14259 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
14260 wxLocale::AddCatalogLookupPathPrefix((wxString
const &)*arg1
);
14261 wxPyEndAllowThreads(__tstate
);
14262 if (PyErr_Occurred()) SWIG_fail
;
14264 resultobj
= SWIG_Py_Void();
14279 SWIGINTERN PyObject
*_wrap_Locale_AddCatalog(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
14280 PyObject
*resultobj
= 0;
14281 wxLocale
*arg1
= (wxLocale
*) 0 ;
14282 wxString
*arg2
= 0 ;
14286 bool temp2
= false ;
14287 PyObject
* obj0
= 0 ;
14288 PyObject
* obj1
= 0 ;
14289 char * kwnames
[] = {
14290 (char *) "self",(char *) "szDomain", NULL
14293 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Locale_AddCatalog",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
14294 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxLocale
, 0 | 0 );
14295 if (!SWIG_IsOK(res1
)) {
14296 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
14298 arg1
= reinterpret_cast< wxLocale
* >(argp1
);
14300 arg2
= wxString_in_helper(obj1
);
14301 if (arg2
== NULL
) SWIG_fail
;
14305 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
14306 result
= (bool)(arg1
)->AddCatalog((wxString
const &)*arg2
);
14307 wxPyEndAllowThreads(__tstate
);
14308 if (PyErr_Occurred()) SWIG_fail
;
14311 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
14327 SWIGINTERN PyObject
*_wrap_Locale_IsLoaded(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
14328 PyObject
*resultobj
= 0;
14329 wxLocale
*arg1
= (wxLocale
*) 0 ;
14330 wxString
*arg2
= 0 ;
14334 bool temp2
= false ;
14335 PyObject
* obj0
= 0 ;
14336 PyObject
* obj1
= 0 ;
14337 char * kwnames
[] = {
14338 (char *) "self",(char *) "szDomain", NULL
14341 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Locale_IsLoaded",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
14342 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxLocale
, 0 | 0 );
14343 if (!SWIG_IsOK(res1
)) {
14344 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
14346 arg1
= reinterpret_cast< wxLocale
* >(argp1
);
14348 arg2
= wxString_in_helper(obj1
);
14349 if (arg2
== NULL
) SWIG_fail
;
14353 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
14354 result
= (bool)((wxLocale
const *)arg1
)->IsLoaded((wxString
const &)*arg2
);
14355 wxPyEndAllowThreads(__tstate
);
14356 if (PyErr_Occurred()) SWIG_fail
;
14359 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
14375 SWIGINTERN PyObject
*_wrap_Locale_GetLanguageInfo(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
14376 PyObject
*resultobj
= 0;
14378 wxLanguageInfo
*result
= 0 ;
14381 PyObject
* obj0
= 0 ;
14382 char * kwnames
[] = {
14383 (char *) "lang", NULL
14386 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:Locale_GetLanguageInfo",kwnames
,&obj0
)) SWIG_fail
;
14387 ecode1
= SWIG_AsVal_int(obj0
, &val1
);
14388 if (!SWIG_IsOK(ecode1
)) {
14389 SWIG_exception_fail(SWIG_ArgError(ecode1
), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
14391 arg1
= static_cast< int >(val1
);
14393 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
14394 result
= (wxLanguageInfo
*)wxLocale::GetLanguageInfo(arg1
);
14395 wxPyEndAllowThreads(__tstate
);
14396 if (PyErr_Occurred()) SWIG_fail
;
14398 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxLanguageInfo
, 0 | 0 );
14405 SWIGINTERN PyObject
*_wrap_Locale_GetLanguageName(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
14406 PyObject
*resultobj
= 0;
14411 PyObject
* obj0
= 0 ;
14412 char * kwnames
[] = {
14413 (char *) "lang", NULL
14416 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:Locale_GetLanguageName",kwnames
,&obj0
)) SWIG_fail
;
14417 ecode1
= SWIG_AsVal_int(obj0
, &val1
);
14418 if (!SWIG_IsOK(ecode1
)) {
14419 SWIG_exception_fail(SWIG_ArgError(ecode1
), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
14421 arg1
= static_cast< int >(val1
);
14423 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
14424 result
= wxLocale::GetLanguageName(arg1
);
14425 wxPyEndAllowThreads(__tstate
);
14426 if (PyErr_Occurred()) SWIG_fail
;
14430 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
14432 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
14441 SWIGINTERN PyObject
*_wrap_Locale_FindLanguageInfo(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
14442 PyObject
*resultobj
= 0;
14443 wxString
*arg1
= 0 ;
14444 wxLanguageInfo
*result
= 0 ;
14445 bool temp1
= false ;
14446 PyObject
* obj0
= 0 ;
14447 char * kwnames
[] = {
14448 (char *) "locale", NULL
14451 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:Locale_FindLanguageInfo",kwnames
,&obj0
)) SWIG_fail
;
14453 arg1
= wxString_in_helper(obj0
);
14454 if (arg1
== NULL
) SWIG_fail
;
14458 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
14459 result
= (wxLanguageInfo
*)wxLocale::FindLanguageInfo((wxString
const &)*arg1
);
14460 wxPyEndAllowThreads(__tstate
);
14461 if (PyErr_Occurred()) SWIG_fail
;
14463 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxLanguageInfo
, 0 | 0 );
14478 SWIGINTERN PyObject
*_wrap_Locale_AddLanguage(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
14479 PyObject
*resultobj
= 0;
14480 wxLanguageInfo
*arg1
= 0 ;
14483 PyObject
* obj0
= 0 ;
14484 char * kwnames
[] = {
14485 (char *) "info", NULL
14488 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:Locale_AddLanguage",kwnames
,&obj0
)) SWIG_fail
;
14489 res1
= SWIG_ConvertPtr(obj0
, &argp1
, SWIGTYPE_p_wxLanguageInfo
, 0 | 0);
14490 if (!SWIG_IsOK(res1
)) {
14491 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
14494 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
14496 arg1
= reinterpret_cast< wxLanguageInfo
* >(argp1
);
14498 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
14499 wxLocale::AddLanguage((wxLanguageInfo
const &)*arg1
);
14500 wxPyEndAllowThreads(__tstate
);
14501 if (PyErr_Occurred()) SWIG_fail
;
14503 resultobj
= SWIG_Py_Void();
14510 SWIGINTERN PyObject
*_wrap_Locale_GetString(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
14511 PyObject
*resultobj
= 0;
14512 wxLocale
*arg1
= (wxLocale
*) 0 ;
14513 wxString
*arg2
= 0 ;
14514 wxString
const &arg3_defvalue
= wxPyEmptyString
;
14515 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
14519 bool temp2
= false ;
14520 bool temp3
= false ;
14521 PyObject
* obj0
= 0 ;
14522 PyObject
* obj1
= 0 ;
14523 PyObject
* obj2
= 0 ;
14524 char * kwnames
[] = {
14525 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
14528 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:Locale_GetString",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
14529 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxLocale
, 0 | 0 );
14530 if (!SWIG_IsOK(res1
)) {
14531 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
14533 arg1
= reinterpret_cast< wxLocale
* >(argp1
);
14535 arg2
= wxString_in_helper(obj1
);
14536 if (arg2
== NULL
) SWIG_fail
;
14541 arg3
= wxString_in_helper(obj2
);
14542 if (arg3
== NULL
) SWIG_fail
;
14547 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
14548 result
= ((wxLocale
const *)arg1
)->GetString((wxString
const &)*arg2
,(wxString
const &)*arg3
);
14549 wxPyEndAllowThreads(__tstate
);
14550 if (PyErr_Occurred()) SWIG_fail
;
14554 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
14556 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
14581 SWIGINTERN PyObject
*_wrap_Locale_GetName(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
14582 PyObject
*resultobj
= 0;
14583 wxLocale
*arg1
= (wxLocale
*) 0 ;
14584 wxString
*result
= 0 ;
14587 PyObject
*swig_obj
[1] ;
14589 if (!args
) SWIG_fail
;
14590 swig_obj
[0] = args
;
14591 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxLocale
, 0 | 0 );
14592 if (!SWIG_IsOK(res1
)) {
14593 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
14595 arg1
= reinterpret_cast< wxLocale
* >(argp1
);
14597 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
14599 wxString
const &_result_ref
= ((wxLocale
const *)arg1
)->GetName();
14600 result
= (wxString
*) &_result_ref
;
14602 wxPyEndAllowThreads(__tstate
);
14603 if (PyErr_Occurred()) SWIG_fail
;
14607 resultobj
= PyUnicode_FromWideChar(result
->c_str(), result
->Len());
14609 resultobj
= PyString_FromStringAndSize(result
->c_str(), result
->Len());
14618 SWIGINTERN PyObject
*Locale_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
14620 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
14621 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale
, SWIG_NewClientData(obj
));
14622 return SWIG_Py_Void();
14625 SWIGINTERN PyObject
*Locale_swiginit(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
14626 return SWIG_Python_InitShadowInstance(args
);
14629 SWIGINTERN PyObject
*_wrap_GetLocale(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
14630 PyObject
*resultobj
= 0;
14631 wxLocale
*result
= 0 ;
14633 if (!SWIG_Python_UnpackTuple(args
,"GetLocale",0,0,0)) SWIG_fail
;
14635 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
14636 result
= (wxLocale
*)wxGetLocale();
14637 wxPyEndAllowThreads(__tstate
);
14638 if (PyErr_Occurred()) SWIG_fail
;
14640 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxLocale
, 0 | 0 );
14647 SWIGINTERN PyObject
*_wrap_GetTranslation__SWIG_0(PyObject
*SWIGUNUSEDPARM(self
), int nobjs
, PyObject
**swig_obj
) {
14648 PyObject
*resultobj
= 0;
14649 wxString
*arg1
= 0 ;
14651 bool temp1
= false ;
14653 if ((nobjs
< 1) || (nobjs
> 1)) SWIG_fail
;
14655 arg1
= wxString_in_helper(swig_obj
[0]);
14656 if (arg1
== NULL
) SWIG_fail
;
14660 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
14661 result
= wxGetTranslation((wxString
const &)*arg1
);
14662 wxPyEndAllowThreads(__tstate
);
14663 if (PyErr_Occurred()) SWIG_fail
;
14667 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
14669 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
14686 SWIGINTERN PyObject
*_wrap_GetTranslation__SWIG_1(PyObject
*SWIGUNUSEDPARM(self
), int nobjs
, PyObject
**swig_obj
) {
14687 PyObject
*resultobj
= 0;
14688 wxString
*arg1
= 0 ;
14689 wxString
*arg2
= 0 ;
14692 bool temp1
= false ;
14693 bool temp2
= false ;
14697 if ((nobjs
< 3) || (nobjs
> 3)) SWIG_fail
;
14699 arg1
= wxString_in_helper(swig_obj
[0]);
14700 if (arg1
== NULL
) SWIG_fail
;
14704 arg2
= wxString_in_helper(swig_obj
[1]);
14705 if (arg2
== NULL
) SWIG_fail
;
14708 ecode3
= SWIG_AsVal_size_t(swig_obj
[2], &val3
);
14709 if (!SWIG_IsOK(ecode3
)) {
14710 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
14712 arg3
= static_cast< size_t >(val3
);
14714 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
14715 result
= wxGetTranslation((wxString
const &)*arg1
,(wxString
const &)*arg2
,arg3
);
14716 wxPyEndAllowThreads(__tstate
);
14717 if (PyErr_Occurred()) SWIG_fail
;
14721 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
14723 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
14748 SWIGINTERN PyObject
*_wrap_GetTranslation(PyObject
*self
, PyObject
*args
) {
14752 if (!(argc
= SWIG_Python_UnpackTuple(args
,"GetTranslation",0,3,argv
))) SWIG_fail
;
14755 return _wrap_GetTranslation__SWIG_0(self
, argc
, argv
);
14758 return _wrap_GetTranslation__SWIG_1(self
, argc
, argv
);
14762 SWIG_SetErrorMsg(PyExc_NotImplementedError
,"No matching function for overloaded 'GetTranslation'");
14767 SWIGINTERN PyObject
*_wrap_new_EncodingConverter(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
14768 PyObject
*resultobj
= 0;
14769 wxEncodingConverter
*result
= 0 ;
14771 if (!SWIG_Python_UnpackTuple(args
,"new_EncodingConverter",0,0,0)) SWIG_fail
;
14773 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
14774 result
= (wxEncodingConverter
*)new wxEncodingConverter();
14775 wxPyEndAllowThreads(__tstate
);
14776 if (PyErr_Occurred()) SWIG_fail
;
14778 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxEncodingConverter
, SWIG_POINTER_NEW
| 0 );
14785 SWIGINTERN PyObject
*_wrap_delete_EncodingConverter(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
14786 PyObject
*resultobj
= 0;
14787 wxEncodingConverter
*arg1
= (wxEncodingConverter
*) 0 ;
14790 PyObject
*swig_obj
[1] ;
14792 if (!args
) SWIG_fail
;
14793 swig_obj
[0] = args
;
14794 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxEncodingConverter
, SWIG_POINTER_DISOWN
| 0 );
14795 if (!SWIG_IsOK(res1
)) {
14796 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14798 arg1
= reinterpret_cast< wxEncodingConverter
* >(argp1
);
14800 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
14803 wxPyEndAllowThreads(__tstate
);
14804 if (PyErr_Occurred()) SWIG_fail
;
14806 resultobj
= SWIG_Py_Void();
14813 SWIGINTERN PyObject
*_wrap_EncodingConverter_Init(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
14814 PyObject
*resultobj
= 0;
14815 wxEncodingConverter
*arg1
= (wxEncodingConverter
*) 0 ;
14816 wxFontEncoding arg2
;
14817 wxFontEncoding arg3
;
14818 int arg4
= (int) wxCONVERT_STRICT
;
14828 PyObject
* obj0
= 0 ;
14829 PyObject
* obj1
= 0 ;
14830 PyObject
* obj2
= 0 ;
14831 PyObject
* obj3
= 0 ;
14832 char * kwnames
[] = {
14833 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
14836 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO|O:EncodingConverter_Init",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) SWIG_fail
;
14837 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxEncodingConverter
, 0 | 0 );
14838 if (!SWIG_IsOK(res1
)) {
14839 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14841 arg1
= reinterpret_cast< wxEncodingConverter
* >(argp1
);
14842 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
14843 if (!SWIG_IsOK(ecode2
)) {
14844 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14846 arg2
= static_cast< wxFontEncoding
>(val2
);
14847 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
14848 if (!SWIG_IsOK(ecode3
)) {
14849 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
14851 arg3
= static_cast< wxFontEncoding
>(val3
);
14853 ecode4
= SWIG_AsVal_int(obj3
, &val4
);
14854 if (!SWIG_IsOK(ecode4
)) {
14855 SWIG_exception_fail(SWIG_ArgError(ecode4
), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
14857 arg4
= static_cast< int >(val4
);
14860 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
14861 result
= (bool)(arg1
)->Init(arg2
,arg3
,arg4
);
14862 wxPyEndAllowThreads(__tstate
);
14863 if (PyErr_Occurred()) SWIG_fail
;
14866 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
14874 SWIGINTERN PyObject
*_wrap_EncodingConverter_Convert(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
14875 PyObject
*resultobj
= 0;
14876 wxEncodingConverter
*arg1
= (wxEncodingConverter
*) 0 ;
14877 wxString
*arg2
= 0 ;
14881 bool temp2
= false ;
14882 PyObject
* obj0
= 0 ;
14883 PyObject
* obj1
= 0 ;
14884 char * kwnames
[] = {
14885 (char *) "self",(char *) "input", NULL
14888 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:EncodingConverter_Convert",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
14889 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxEncodingConverter
, 0 | 0 );
14890 if (!SWIG_IsOK(res1
)) {
14891 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14893 arg1
= reinterpret_cast< wxEncodingConverter
* >(argp1
);
14895 arg2
= wxString_in_helper(obj1
);
14896 if (arg2
== NULL
) SWIG_fail
;
14900 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
14901 result
= (arg1
)->Convert((wxString
const &)*arg2
);
14902 wxPyEndAllowThreads(__tstate
);
14903 if (PyErr_Occurred()) SWIG_fail
;
14907 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
14909 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
14926 SWIGINTERN PyObject
*_wrap_EncodingConverter_GetPlatformEquivalents(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
14927 PyObject
*resultobj
= 0;
14928 wxFontEncoding arg1
;
14929 int arg2
= (int) wxPLATFORM_CURRENT
;
14930 wxFontEncodingArray result
;
14935 PyObject
* obj0
= 0 ;
14936 PyObject
* obj1
= 0 ;
14937 char * kwnames
[] = {
14938 (char *) "enc",(char *) "platform", NULL
14941 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
14942 ecode1
= SWIG_AsVal_int(obj0
, &val1
);
14943 if (!SWIG_IsOK(ecode1
)) {
14944 SWIG_exception_fail(SWIG_ArgError(ecode1
), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14946 arg1
= static_cast< wxFontEncoding
>(val1
);
14948 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
14949 if (!SWIG_IsOK(ecode2
)) {
14950 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
14952 arg2
= static_cast< int >(val2
);
14955 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
14956 result
= wxEncodingConverter::GetPlatformEquivalents(arg1
,arg2
);
14957 wxPyEndAllowThreads(__tstate
);
14958 if (PyErr_Occurred()) SWIG_fail
;
14961 resultobj
= PyList_New(0);
14962 for (size_t i
=0; i
< (&result
)->GetCount(); i
++) {
14963 PyObject
* number
= PyInt_FromLong((&result
)->Item(i
));
14964 PyList_Append(resultobj
, number
);
14974 SWIGINTERN PyObject
*_wrap_EncodingConverter_GetAllEquivalents(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
14975 PyObject
*resultobj
= 0;
14976 wxFontEncoding arg1
;
14977 wxFontEncodingArray result
;
14980 PyObject
* obj0
= 0 ;
14981 char * kwnames
[] = {
14982 (char *) "enc", NULL
14985 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames
,&obj0
)) SWIG_fail
;
14986 ecode1
= SWIG_AsVal_int(obj0
, &val1
);
14987 if (!SWIG_IsOK(ecode1
)) {
14988 SWIG_exception_fail(SWIG_ArgError(ecode1
), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14990 arg1
= static_cast< wxFontEncoding
>(val1
);
14992 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
14993 result
= wxEncodingConverter::GetAllEquivalents(arg1
);
14994 wxPyEndAllowThreads(__tstate
);
14995 if (PyErr_Occurred()) SWIG_fail
;
14998 resultobj
= PyList_New(0);
14999 for (size_t i
=0; i
< (&result
)->GetCount(); i
++) {
15000 PyObject
* number
= PyInt_FromLong((&result
)->Item(i
));
15001 PyList_Append(resultobj
, number
);
15011 SWIGINTERN PyObject
*_wrap_EncodingConverter_CanConvert(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
15012 PyObject
*resultobj
= 0;
15013 wxFontEncoding arg1
;
15014 wxFontEncoding arg2
;
15020 PyObject
* obj0
= 0 ;
15021 PyObject
* obj1
= 0 ;
15022 char * kwnames
[] = {
15023 (char *) "encIn",(char *) "encOut", NULL
15026 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:EncodingConverter_CanConvert",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
15027 ecode1
= SWIG_AsVal_int(obj0
, &val1
);
15028 if (!SWIG_IsOK(ecode1
)) {
15029 SWIG_exception_fail(SWIG_ArgError(ecode1
), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15031 arg1
= static_cast< wxFontEncoding
>(val1
);
15032 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
15033 if (!SWIG_IsOK(ecode2
)) {
15034 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15036 arg2
= static_cast< wxFontEncoding
>(val2
);
15038 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
15039 result
= (bool)wxEncodingConverter::CanConvert(arg1
,arg2
);
15040 wxPyEndAllowThreads(__tstate
);
15041 if (PyErr_Occurred()) SWIG_fail
;
15044 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
15052 SWIGINTERN PyObject
*EncodingConverter_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
15054 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
15055 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter
, SWIG_NewClientData(obj
));
15056 return SWIG_Py_Void();
15059 SWIGINTERN PyObject
*EncodingConverter_swiginit(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
15060 return SWIG_Python_InitShadowInstance(args
);
15063 SWIGINTERN PyObject
*_wrap_delete_DC(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
15064 PyObject
*resultobj
= 0;
15065 wxDC
*arg1
= (wxDC
*) 0 ;
15068 PyObject
*swig_obj
[1] ;
15070 if (!args
) SWIG_fail
;
15071 swig_obj
[0] = args
;
15072 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxDC
, SWIG_POINTER_DISOWN
| 0 );
15073 if (!SWIG_IsOK(res1
)) {
15074 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
15076 arg1
= reinterpret_cast< wxDC
* >(argp1
);
15078 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
15081 wxPyEndAllowThreads(__tstate
);
15082 if (PyErr_Occurred()) SWIG_fail
;
15084 resultobj
= SWIG_Py_Void();
15091 SWIGINTERN PyObject
*_wrap_DC_FloodFill(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
15092 PyObject
*resultobj
= 0;
15093 wxDC
*arg1
= (wxDC
*) 0 ;
15096 wxColour
*arg4
= 0 ;
15097 int arg5
= (int) wxFLOOD_SURFACE
;
15108 PyObject
* obj0
= 0 ;
15109 PyObject
* obj1
= 0 ;
15110 PyObject
* obj2
= 0 ;
15111 PyObject
* obj3
= 0 ;
15112 PyObject
* obj4
= 0 ;
15113 char * kwnames
[] = {
15114 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
15117 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO|O:DC_FloodFill",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) SWIG_fail
;
15118 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
15119 if (!SWIG_IsOK(res1
)) {
15120 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
15122 arg1
= reinterpret_cast< wxDC
* >(argp1
);
15123 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
15124 if (!SWIG_IsOK(ecode2
)) {
15125 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
15127 arg2
= static_cast< int >(val2
);
15128 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
15129 if (!SWIG_IsOK(ecode3
)) {
15130 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
15132 arg3
= static_cast< int >(val3
);
15135 if ( ! wxColour_helper(obj3
, &arg4
)) SWIG_fail
;
15138 ecode5
= SWIG_AsVal_int(obj4
, &val5
);
15139 if (!SWIG_IsOK(ecode5
)) {
15140 SWIG_exception_fail(SWIG_ArgError(ecode5
), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
15142 arg5
= static_cast< int >(val5
);
15145 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
15146 result
= (bool)(arg1
)->FloodFill(arg2
,arg3
,(wxColour
const &)*arg4
,arg5
);
15147 wxPyEndAllowThreads(__tstate
);
15148 if (PyErr_Occurred()) SWIG_fail
;
15151 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
15159 SWIGINTERN PyObject
*_wrap_DC_FloodFillPoint(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
15160 PyObject
*resultobj
= 0;
15161 wxDC
*arg1
= (wxDC
*) 0 ;
15162 wxPoint
*arg2
= 0 ;
15163 wxColour
*arg3
= 0 ;
15164 int arg4
= (int) wxFLOOD_SURFACE
;
15172 PyObject
* obj0
= 0 ;
15173 PyObject
* obj1
= 0 ;
15174 PyObject
* obj2
= 0 ;
15175 PyObject
* obj3
= 0 ;
15176 char * kwnames
[] = {
15177 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
15180 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO|O:DC_FloodFillPoint",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) SWIG_fail
;
15181 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
15182 if (!SWIG_IsOK(res1
)) {
15183 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15185 arg1
= reinterpret_cast< wxDC
* >(argp1
);
15188 if ( ! wxPoint_helper(obj1
, &arg2
)) SWIG_fail
;
15192 if ( ! wxColour_helper(obj2
, &arg3
)) SWIG_fail
;
15195 ecode4
= SWIG_AsVal_int(obj3
, &val4
);
15196 if (!SWIG_IsOK(ecode4
)) {
15197 SWIG_exception_fail(SWIG_ArgError(ecode4
), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
15199 arg4
= static_cast< int >(val4
);
15202 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
15203 result
= (bool)(arg1
)->FloodFill((wxPoint
const &)*arg2
,(wxColour
const &)*arg3
,arg4
);
15204 wxPyEndAllowThreads(__tstate
);
15205 if (PyErr_Occurred()) SWIG_fail
;
15208 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
15216 SWIGINTERN PyObject
*_wrap_DC_GradientFillConcentric(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
15217 PyObject
*resultobj
= 0;
15218 wxDC
*arg1
= (wxDC
*) 0 ;
15220 wxColour
*arg3
= 0 ;
15221 wxColour
*arg4
= 0 ;
15222 wxPoint
*arg5
= 0 ;
15229 PyObject
* obj0
= 0 ;
15230 PyObject
* obj1
= 0 ;
15231 PyObject
* obj2
= 0 ;
15232 PyObject
* obj3
= 0 ;
15233 PyObject
* obj4
= 0 ;
15234 char * kwnames
[] = {
15235 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
15238 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOOO:DC_GradientFillConcentric",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) SWIG_fail
;
15239 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
15240 if (!SWIG_IsOK(res1
)) {
15241 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
15243 arg1
= reinterpret_cast< wxDC
* >(argp1
);
15246 if ( ! wxRect_helper(obj1
, &arg2
)) SWIG_fail
;
15250 if ( ! wxColour_helper(obj2
, &arg3
)) SWIG_fail
;
15254 if ( ! wxColour_helper(obj3
, &arg4
)) SWIG_fail
;
15258 if ( ! wxPoint_helper(obj4
, &arg5
)) SWIG_fail
;
15261 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
15262 (arg1
)->GradientFillConcentric((wxRect
const &)*arg2
,(wxColour
const &)*arg3
,(wxColour
const &)*arg4
,(wxPoint
const &)*arg5
);
15263 wxPyEndAllowThreads(__tstate
);
15264 if (PyErr_Occurred()) SWIG_fail
;
15266 resultobj
= SWIG_Py_Void();
15273 SWIGINTERN PyObject
*_wrap_DC_GradientFillLinear(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
15274 PyObject
*resultobj
= 0;
15275 wxDC
*arg1
= (wxDC
*) 0 ;
15277 wxColour
*arg3
= 0 ;
15278 wxColour
*arg4
= 0 ;
15279 wxDirection arg5
= (wxDirection
) wxEAST
;
15287 PyObject
* obj0
= 0 ;
15288 PyObject
* obj1
= 0 ;
15289 PyObject
* obj2
= 0 ;
15290 PyObject
* obj3
= 0 ;
15291 PyObject
* obj4
= 0 ;
15292 char * kwnames
[] = {
15293 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
15296 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO|O:DC_GradientFillLinear",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) SWIG_fail
;
15297 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
15298 if (!SWIG_IsOK(res1
)) {
15299 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
15301 arg1
= reinterpret_cast< wxDC
* >(argp1
);
15304 if ( ! wxRect_helper(obj1
, &arg2
)) SWIG_fail
;
15308 if ( ! wxColour_helper(obj2
, &arg3
)) SWIG_fail
;
15312 if ( ! wxColour_helper(obj3
, &arg4
)) SWIG_fail
;
15315 ecode5
= SWIG_AsVal_int(obj4
, &val5
);
15316 if (!SWIG_IsOK(ecode5
)) {
15317 SWIG_exception_fail(SWIG_ArgError(ecode5
), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
15319 arg5
= static_cast< wxDirection
>(val5
);
15322 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
15323 (arg1
)->GradientFillLinear((wxRect
const &)*arg2
,(wxColour
const &)*arg3
,(wxColour
const &)*arg4
,arg5
);
15324 wxPyEndAllowThreads(__tstate
);
15325 if (PyErr_Occurred()) SWIG_fail
;
15327 resultobj
= SWIG_Py_Void();
15334 SWIGINTERN PyObject
*_wrap_DC_GetPixel(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
15335 PyObject
*resultobj
= 0;
15336 wxDC
*arg1
= (wxDC
*) 0 ;
15346 PyObject
* obj0
= 0 ;
15347 PyObject
* obj1
= 0 ;
15348 PyObject
* obj2
= 0 ;
15349 char * kwnames
[] = {
15350 (char *) "self",(char *) "x",(char *) "y", NULL
15353 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:DC_GetPixel",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
15354 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
15355 if (!SWIG_IsOK(res1
)) {
15356 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
15358 arg1
= reinterpret_cast< wxDC
* >(argp1
);
15359 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
15360 if (!SWIG_IsOK(ecode2
)) {
15361 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
15363 arg2
= static_cast< int >(val2
);
15364 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
15365 if (!SWIG_IsOK(ecode3
)) {
15366 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
15368 arg3
= static_cast< int >(val3
);
15370 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
15371 result
= wxDC_GetPixel(arg1
,arg2
,arg3
);
15372 wxPyEndAllowThreads(__tstate
);
15373 if (PyErr_Occurred()) SWIG_fail
;
15375 resultobj
= SWIG_NewPointerObj((new wxColour(static_cast< const wxColour
& >(result
))), SWIGTYPE_p_wxColour
, SWIG_POINTER_OWN
| 0 );
15382 SWIGINTERN PyObject
*_wrap_DC_GetPixelPoint(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
15383 PyObject
*resultobj
= 0;
15384 wxDC
*arg1
= (wxDC
*) 0 ;
15385 wxPoint
*arg2
= 0 ;
15390 PyObject
* obj0
= 0 ;
15391 PyObject
* obj1
= 0 ;
15392 char * kwnames
[] = {
15393 (char *) "self",(char *) "pt", NULL
15396 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:DC_GetPixelPoint",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
15397 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
15398 if (!SWIG_IsOK(res1
)) {
15399 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15401 arg1
= reinterpret_cast< wxDC
* >(argp1
);
15404 if ( ! wxPoint_helper(obj1
, &arg2
)) SWIG_fail
;
15407 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
15408 result
= wxDC_GetPixelPoint(arg1
,(wxPoint
const &)*arg2
);
15409 wxPyEndAllowThreads(__tstate
);
15410 if (PyErr_Occurred()) SWIG_fail
;
15412 resultobj
= SWIG_NewPointerObj((new wxColour(static_cast< const wxColour
& >(result
))), SWIGTYPE_p_wxColour
, SWIG_POINTER_OWN
| 0 );
15419 SWIGINTERN PyObject
*_wrap_DC_DrawLine(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
15420 PyObject
*resultobj
= 0;
15421 wxDC
*arg1
= (wxDC
*) 0 ;
15436 PyObject
* obj0
= 0 ;
15437 PyObject
* obj1
= 0 ;
15438 PyObject
* obj2
= 0 ;
15439 PyObject
* obj3
= 0 ;
15440 PyObject
* obj4
= 0 ;
15441 char * kwnames
[] = {
15442 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
15445 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOOO:DC_DrawLine",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) SWIG_fail
;
15446 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
15447 if (!SWIG_IsOK(res1
)) {
15448 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
15450 arg1
= reinterpret_cast< wxDC
* >(argp1
);
15451 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
15452 if (!SWIG_IsOK(ecode2
)) {
15453 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
15455 arg2
= static_cast< int >(val2
);
15456 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
15457 if (!SWIG_IsOK(ecode3
)) {
15458 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
15460 arg3
= static_cast< int >(val3
);
15461 ecode4
= SWIG_AsVal_int(obj3
, &val4
);
15462 if (!SWIG_IsOK(ecode4
)) {
15463 SWIG_exception_fail(SWIG_ArgError(ecode4
), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
15465 arg4
= static_cast< int >(val4
);
15466 ecode5
= SWIG_AsVal_int(obj4
, &val5
);
15467 if (!SWIG_IsOK(ecode5
)) {
15468 SWIG_exception_fail(SWIG_ArgError(ecode5
), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
15470 arg5
= static_cast< int >(val5
);
15472 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
15473 (arg1
)->DrawLine(arg2
,arg3
,arg4
,arg5
);
15474 wxPyEndAllowThreads(__tstate
);
15475 if (PyErr_Occurred()) SWIG_fail
;
15477 resultobj
= SWIG_Py_Void();
15484 SWIGINTERN PyObject
*_wrap_DC_DrawLinePoint(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
15485 PyObject
*resultobj
= 0;
15486 wxDC
*arg1
= (wxDC
*) 0 ;
15487 wxPoint
*arg2
= 0 ;
15488 wxPoint
*arg3
= 0 ;
15493 PyObject
* obj0
= 0 ;
15494 PyObject
* obj1
= 0 ;
15495 PyObject
* obj2
= 0 ;
15496 char * kwnames
[] = {
15497 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
15500 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:DC_DrawLinePoint",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
15501 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
15502 if (!SWIG_IsOK(res1
)) {
15503 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
15505 arg1
= reinterpret_cast< wxDC
* >(argp1
);
15508 if ( ! wxPoint_helper(obj1
, &arg2
)) SWIG_fail
;
15512 if ( ! wxPoint_helper(obj2
, &arg3
)) SWIG_fail
;
15515 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
15516 (arg1
)->DrawLine((wxPoint
const &)*arg2
,(wxPoint
const &)*arg3
);
15517 wxPyEndAllowThreads(__tstate
);
15518 if (PyErr_Occurred()) SWIG_fail
;
15520 resultobj
= SWIG_Py_Void();
15527 SWIGINTERN PyObject
*_wrap_DC_CrossHair(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
15528 PyObject
*resultobj
= 0;
15529 wxDC
*arg1
= (wxDC
*) 0 ;
15538 PyObject
* obj0
= 0 ;
15539 PyObject
* obj1
= 0 ;
15540 PyObject
* obj2
= 0 ;
15541 char * kwnames
[] = {
15542 (char *) "self",(char *) "x",(char *) "y", NULL
15545 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:DC_CrossHair",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
15546 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
15547 if (!SWIG_IsOK(res1
)) {
15548 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
15550 arg1
= reinterpret_cast< wxDC
* >(argp1
);
15551 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
15552 if (!SWIG_IsOK(ecode2
)) {
15553 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
15555 arg2
= static_cast< int >(val2
);
15556 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
15557 if (!SWIG_IsOK(ecode3
)) {
15558 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
15560 arg3
= static_cast< int >(val3
);
15562 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
15563 (arg1
)->CrossHair(arg2
,arg3
);
15564 wxPyEndAllowThreads(__tstate
);
15565 if (PyErr_Occurred()) SWIG_fail
;
15567 resultobj
= SWIG_Py_Void();
15574 SWIGINTERN PyObject
*_wrap_DC_CrossHairPoint(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
15575 PyObject
*resultobj
= 0;
15576 wxDC
*arg1
= (wxDC
*) 0 ;
15577 wxPoint
*arg2
= 0 ;
15581 PyObject
* obj0
= 0 ;
15582 PyObject
* obj1
= 0 ;
15583 char * kwnames
[] = {
15584 (char *) "self",(char *) "pt", NULL
15587 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:DC_CrossHairPoint",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
15588 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
15589 if (!SWIG_IsOK(res1
)) {
15590 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15592 arg1
= reinterpret_cast< wxDC
* >(argp1
);
15595 if ( ! wxPoint_helper(obj1
, &arg2
)) SWIG_fail
;
15598 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
15599 (arg1
)->CrossHair((wxPoint
const &)*arg2
);
15600 wxPyEndAllowThreads(__tstate
);
15601 if (PyErr_Occurred()) SWIG_fail
;
15603 resultobj
= SWIG_Py_Void();
15610 SWIGINTERN PyObject
*_wrap_DC_DrawArc(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
15611 PyObject
*resultobj
= 0;
15612 wxDC
*arg1
= (wxDC
*) 0 ;
15633 PyObject
* obj0
= 0 ;
15634 PyObject
* obj1
= 0 ;
15635 PyObject
* obj2
= 0 ;
15636 PyObject
* obj3
= 0 ;
15637 PyObject
* obj4
= 0 ;
15638 PyObject
* obj5
= 0 ;
15639 PyObject
* obj6
= 0 ;
15640 char * kwnames
[] = {
15641 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
15644 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOOOOO:DC_DrawArc",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
,&obj5
,&obj6
)) SWIG_fail
;
15645 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
15646 if (!SWIG_IsOK(res1
)) {
15647 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
15649 arg1
= reinterpret_cast< wxDC
* >(argp1
);
15650 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
15651 if (!SWIG_IsOK(ecode2
)) {
15652 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
15654 arg2
= static_cast< int >(val2
);
15655 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
15656 if (!SWIG_IsOK(ecode3
)) {
15657 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
15659 arg3
= static_cast< int >(val3
);
15660 ecode4
= SWIG_AsVal_int(obj3
, &val4
);
15661 if (!SWIG_IsOK(ecode4
)) {
15662 SWIG_exception_fail(SWIG_ArgError(ecode4
), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
15664 arg4
= static_cast< int >(val4
);
15665 ecode5
= SWIG_AsVal_int(obj4
, &val5
);
15666 if (!SWIG_IsOK(ecode5
)) {
15667 SWIG_exception_fail(SWIG_ArgError(ecode5
), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
15669 arg5
= static_cast< int >(val5
);
15670 ecode6
= SWIG_AsVal_int(obj5
, &val6
);
15671 if (!SWIG_IsOK(ecode6
)) {
15672 SWIG_exception_fail(SWIG_ArgError(ecode6
), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
15674 arg6
= static_cast< int >(val6
);
15675 ecode7
= SWIG_AsVal_int(obj6
, &val7
);
15676 if (!SWIG_IsOK(ecode7
)) {
15677 SWIG_exception_fail(SWIG_ArgError(ecode7
), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
15679 arg7
= static_cast< int >(val7
);
15681 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
15682 (arg1
)->DrawArc(arg2
,arg3
,arg4
,arg5
,arg6
,arg7
);
15683 wxPyEndAllowThreads(__tstate
);
15684 if (PyErr_Occurred()) SWIG_fail
;
15686 resultobj
= SWIG_Py_Void();
15693 SWIGINTERN PyObject
*_wrap_DC_DrawArcPoint(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
15694 PyObject
*resultobj
= 0;
15695 wxDC
*arg1
= (wxDC
*) 0 ;
15696 wxPoint
*arg2
= 0 ;
15697 wxPoint
*arg3
= 0 ;
15698 wxPoint
*arg4
= 0 ;
15704 PyObject
* obj0
= 0 ;
15705 PyObject
* obj1
= 0 ;
15706 PyObject
* obj2
= 0 ;
15707 PyObject
* obj3
= 0 ;
15708 char * kwnames
[] = {
15709 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
15712 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:DC_DrawArcPoint",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) SWIG_fail
;
15713 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
15714 if (!SWIG_IsOK(res1
)) {
15715 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15717 arg1
= reinterpret_cast< wxDC
* >(argp1
);
15720 if ( ! wxPoint_helper(obj1
, &arg2
)) SWIG_fail
;
15724 if ( ! wxPoint_helper(obj2
, &arg3
)) SWIG_fail
;
15728 if ( ! wxPoint_helper(obj3
, &arg4
)) SWIG_fail
;
15731 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
15732 (arg1
)->DrawArc((wxPoint
const &)*arg2
,(wxPoint
const &)*arg3
,(wxPoint
const &)*arg4
);
15733 wxPyEndAllowThreads(__tstate
);
15734 if (PyErr_Occurred()) SWIG_fail
;
15736 resultobj
= SWIG_Py_Void();
15743 SWIGINTERN PyObject
*_wrap_DC_DrawCheckMark(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
15744 PyObject
*resultobj
= 0;
15745 wxDC
*arg1
= (wxDC
*) 0 ;
15760 PyObject
* obj0
= 0 ;
15761 PyObject
* obj1
= 0 ;
15762 PyObject
* obj2
= 0 ;
15763 PyObject
* obj3
= 0 ;
15764 PyObject
* obj4
= 0 ;
15765 char * kwnames
[] = {
15766 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
15769 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOOO:DC_DrawCheckMark",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) SWIG_fail
;
15770 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
15771 if (!SWIG_IsOK(res1
)) {
15772 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
15774 arg1
= reinterpret_cast< wxDC
* >(argp1
);
15775 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
15776 if (!SWIG_IsOK(ecode2
)) {
15777 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
15779 arg2
= static_cast< int >(val2
);
15780 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
15781 if (!SWIG_IsOK(ecode3
)) {
15782 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
15784 arg3
= static_cast< int >(val3
);
15785 ecode4
= SWIG_AsVal_int(obj3
, &val4
);
15786 if (!SWIG_IsOK(ecode4
)) {
15787 SWIG_exception_fail(SWIG_ArgError(ecode4
), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
15789 arg4
= static_cast< int >(val4
);
15790 ecode5
= SWIG_AsVal_int(obj4
, &val5
);
15791 if (!SWIG_IsOK(ecode5
)) {
15792 SWIG_exception_fail(SWIG_ArgError(ecode5
), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
15794 arg5
= static_cast< int >(val5
);
15796 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
15797 (arg1
)->DrawCheckMark(arg2
,arg3
,arg4
,arg5
);
15798 wxPyEndAllowThreads(__tstate
);
15799 if (PyErr_Occurred()) SWIG_fail
;
15801 resultobj
= SWIG_Py_Void();
15808 SWIGINTERN PyObject
*_wrap_DC_DrawCheckMarkRect(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
15809 PyObject
*resultobj
= 0;
15810 wxDC
*arg1
= (wxDC
*) 0 ;
15815 PyObject
* obj0
= 0 ;
15816 PyObject
* obj1
= 0 ;
15817 char * kwnames
[] = {
15818 (char *) "self",(char *) "rect", NULL
15821 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:DC_DrawCheckMarkRect",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
15822 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
15823 if (!SWIG_IsOK(res1
)) {
15824 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
15826 arg1
= reinterpret_cast< wxDC
* >(argp1
);
15829 if ( ! wxRect_helper(obj1
, &arg2
)) SWIG_fail
;
15832 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
15833 (arg1
)->DrawCheckMark((wxRect
const &)*arg2
);
15834 wxPyEndAllowThreads(__tstate
);
15835 if (PyErr_Occurred()) SWIG_fail
;
15837 resultobj
= SWIG_Py_Void();
15844 SWIGINTERN PyObject
*_wrap_DC_DrawEllipticArc(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
15845 PyObject
*resultobj
= 0;
15846 wxDC
*arg1
= (wxDC
*) 0 ;
15867 PyObject
* obj0
= 0 ;
15868 PyObject
* obj1
= 0 ;
15869 PyObject
* obj2
= 0 ;
15870 PyObject
* obj3
= 0 ;
15871 PyObject
* obj4
= 0 ;
15872 PyObject
* obj5
= 0 ;
15873 PyObject
* obj6
= 0 ;
15874 char * kwnames
[] = {
15875 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
15878 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
,&obj5
,&obj6
)) SWIG_fail
;
15879 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
15880 if (!SWIG_IsOK(res1
)) {
15881 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
15883 arg1
= reinterpret_cast< wxDC
* >(argp1
);
15884 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
15885 if (!SWIG_IsOK(ecode2
)) {
15886 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
15888 arg2
= static_cast< int >(val2
);
15889 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
15890 if (!SWIG_IsOK(ecode3
)) {
15891 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
15893 arg3
= static_cast< int >(val3
);
15894 ecode4
= SWIG_AsVal_int(obj3
, &val4
);
15895 if (!SWIG_IsOK(ecode4
)) {
15896 SWIG_exception_fail(SWIG_ArgError(ecode4
), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
15898 arg4
= static_cast< int >(val4
);
15899 ecode5
= SWIG_AsVal_int(obj4
, &val5
);
15900 if (!SWIG_IsOK(ecode5
)) {
15901 SWIG_exception_fail(SWIG_ArgError(ecode5
), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
15903 arg5
= static_cast< int >(val5
);
15904 ecode6
= SWIG_AsVal_double(obj5
, &val6
);
15905 if (!SWIG_IsOK(ecode6
)) {
15906 SWIG_exception_fail(SWIG_ArgError(ecode6
), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
15908 arg6
= static_cast< double >(val6
);
15909 ecode7
= SWIG_AsVal_double(obj6
, &val7
);
15910 if (!SWIG_IsOK(ecode7
)) {
15911 SWIG_exception_fail(SWIG_ArgError(ecode7
), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
15913 arg7
= static_cast< double >(val7
);
15915 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
15916 (arg1
)->DrawEllipticArc(arg2
,arg3
,arg4
,arg5
,arg6
,arg7
);
15917 wxPyEndAllowThreads(__tstate
);
15918 if (PyErr_Occurred()) SWIG_fail
;
15920 resultobj
= SWIG_Py_Void();
15927 SWIGINTERN PyObject
*_wrap_DC_DrawEllipticArcPointSize(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
15928 PyObject
*resultobj
= 0;
15929 wxDC
*arg1
= (wxDC
*) 0 ;
15930 wxPoint
*arg2
= 0 ;
15942 PyObject
* obj0
= 0 ;
15943 PyObject
* obj1
= 0 ;
15944 PyObject
* obj2
= 0 ;
15945 PyObject
* obj3
= 0 ;
15946 PyObject
* obj4
= 0 ;
15947 char * kwnames
[] = {
15948 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
15951 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) SWIG_fail
;
15952 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
15953 if (!SWIG_IsOK(res1
)) {
15954 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
15956 arg1
= reinterpret_cast< wxDC
* >(argp1
);
15959 if ( ! wxPoint_helper(obj1
, &arg2
)) SWIG_fail
;
15963 if ( ! wxSize_helper(obj2
, &arg3
)) SWIG_fail
;
15965 ecode4
= SWIG_AsVal_double(obj3
, &val4
);
15966 if (!SWIG_IsOK(ecode4
)) {
15967 SWIG_exception_fail(SWIG_ArgError(ecode4
), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
15969 arg4
= static_cast< double >(val4
);
15970 ecode5
= SWIG_AsVal_double(obj4
, &val5
);
15971 if (!SWIG_IsOK(ecode5
)) {
15972 SWIG_exception_fail(SWIG_ArgError(ecode5
), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
15974 arg5
= static_cast< double >(val5
);
15976 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
15977 (arg1
)->DrawEllipticArc((wxPoint
const &)*arg2
,(wxSize
const &)*arg3
,arg4
,arg5
);
15978 wxPyEndAllowThreads(__tstate
);
15979 if (PyErr_Occurred()) SWIG_fail
;
15981 resultobj
= SWIG_Py_Void();
15988 SWIGINTERN PyObject
*_wrap_DC_DrawPoint(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
15989 PyObject
*resultobj
= 0;
15990 wxDC
*arg1
= (wxDC
*) 0 ;
15999 PyObject
* obj0
= 0 ;
16000 PyObject
* obj1
= 0 ;
16001 PyObject
* obj2
= 0 ;
16002 char * kwnames
[] = {
16003 (char *) "self",(char *) "x",(char *) "y", NULL
16006 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:DC_DrawPoint",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
16007 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
16008 if (!SWIG_IsOK(res1
)) {
16009 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16011 arg1
= reinterpret_cast< wxDC
* >(argp1
);
16012 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
16013 if (!SWIG_IsOK(ecode2
)) {
16014 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
16016 arg2
= static_cast< int >(val2
);
16017 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
16018 if (!SWIG_IsOK(ecode3
)) {
16019 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
16021 arg3
= static_cast< int >(val3
);
16023 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
16024 (arg1
)->DrawPoint(arg2
,arg3
);
16025 wxPyEndAllowThreads(__tstate
);
16026 if (PyErr_Occurred()) SWIG_fail
;
16028 resultobj
= SWIG_Py_Void();
16035 SWIGINTERN PyObject
*_wrap_DC_DrawPointPoint(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
16036 PyObject
*resultobj
= 0;
16037 wxDC
*arg1
= (wxDC
*) 0 ;
16038 wxPoint
*arg2
= 0 ;
16042 PyObject
* obj0
= 0 ;
16043 PyObject
* obj1
= 0 ;
16044 char * kwnames
[] = {
16045 (char *) "self",(char *) "pt", NULL
16048 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:DC_DrawPointPoint",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
16049 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
16050 if (!SWIG_IsOK(res1
)) {
16051 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16053 arg1
= reinterpret_cast< wxDC
* >(argp1
);
16056 if ( ! wxPoint_helper(obj1
, &arg2
)) SWIG_fail
;
16059 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
16060 (arg1
)->DrawPoint((wxPoint
const &)*arg2
);
16061 wxPyEndAllowThreads(__tstate
);
16062 if (PyErr_Occurred()) SWIG_fail
;
16064 resultobj
= SWIG_Py_Void();
16071 SWIGINTERN PyObject
*_wrap_DC_DrawRectangle(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
16072 PyObject
*resultobj
= 0;
16073 wxDC
*arg1
= (wxDC
*) 0 ;
16088 PyObject
* obj0
= 0 ;
16089 PyObject
* obj1
= 0 ;
16090 PyObject
* obj2
= 0 ;
16091 PyObject
* obj3
= 0 ;
16092 PyObject
* obj4
= 0 ;
16093 char * kwnames
[] = {
16094 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
16097 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOOO:DC_DrawRectangle",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) SWIG_fail
;
16098 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
16099 if (!SWIG_IsOK(res1
)) {
16100 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
16102 arg1
= reinterpret_cast< wxDC
* >(argp1
);
16103 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
16104 if (!SWIG_IsOK(ecode2
)) {
16105 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
16107 arg2
= static_cast< int >(val2
);
16108 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
16109 if (!SWIG_IsOK(ecode3
)) {
16110 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
16112 arg3
= static_cast< int >(val3
);
16113 ecode4
= SWIG_AsVal_int(obj3
, &val4
);
16114 if (!SWIG_IsOK(ecode4
)) {
16115 SWIG_exception_fail(SWIG_ArgError(ecode4
), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
16117 arg4
= static_cast< int >(val4
);
16118 ecode5
= SWIG_AsVal_int(obj4
, &val5
);
16119 if (!SWIG_IsOK(ecode5
)) {
16120 SWIG_exception_fail(SWIG_ArgError(ecode5
), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
16122 arg5
= static_cast< int >(val5
);
16124 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
16125 (arg1
)->DrawRectangle(arg2
,arg3
,arg4
,arg5
);
16126 wxPyEndAllowThreads(__tstate
);
16127 if (PyErr_Occurred()) SWIG_fail
;
16129 resultobj
= SWIG_Py_Void();
16136 SWIGINTERN PyObject
*_wrap_DC_DrawRectangleRect(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
16137 PyObject
*resultobj
= 0;
16138 wxDC
*arg1
= (wxDC
*) 0 ;
16143 PyObject
* obj0
= 0 ;
16144 PyObject
* obj1
= 0 ;
16145 char * kwnames
[] = {
16146 (char *) "self",(char *) "rect", NULL
16149 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:DC_DrawRectangleRect",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
16150 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
16151 if (!SWIG_IsOK(res1
)) {
16152 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
16154 arg1
= reinterpret_cast< wxDC
* >(argp1
);
16157 if ( ! wxRect_helper(obj1
, &arg2
)) SWIG_fail
;
16160 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
16161 (arg1
)->DrawRectangle((wxRect
const &)*arg2
);
16162 wxPyEndAllowThreads(__tstate
);
16163 if (PyErr_Occurred()) SWIG_fail
;
16165 resultobj
= SWIG_Py_Void();
16172 SWIGINTERN PyObject
*_wrap_DC_DrawRectanglePointSize(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
16173 PyObject
*resultobj
= 0;
16174 wxDC
*arg1
= (wxDC
*) 0 ;
16175 wxPoint
*arg2
= 0 ;
16181 PyObject
* obj0
= 0 ;
16182 PyObject
* obj1
= 0 ;
16183 PyObject
* obj2
= 0 ;
16184 char * kwnames
[] = {
16185 (char *) "self",(char *) "pt",(char *) "sz", NULL
16188 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:DC_DrawRectanglePointSize",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
16189 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
16190 if (!SWIG_IsOK(res1
)) {
16191 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16193 arg1
= reinterpret_cast< wxDC
* >(argp1
);
16196 if ( ! wxPoint_helper(obj1
, &arg2
)) SWIG_fail
;
16200 if ( ! wxSize_helper(obj2
, &arg3
)) SWIG_fail
;
16203 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
16204 (arg1
)->DrawRectangle((wxPoint
const &)*arg2
,(wxSize
const &)*arg3
);
16205 wxPyEndAllowThreads(__tstate
);
16206 if (PyErr_Occurred()) SWIG_fail
;
16208 resultobj
= SWIG_Py_Void();
16215 SWIGINTERN PyObject
*_wrap_DC_DrawRoundedRectangle(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
16216 PyObject
*resultobj
= 0;
16217 wxDC
*arg1
= (wxDC
*) 0 ;
16235 PyObject
* obj0
= 0 ;
16236 PyObject
* obj1
= 0 ;
16237 PyObject
* obj2
= 0 ;
16238 PyObject
* obj3
= 0 ;
16239 PyObject
* obj4
= 0 ;
16240 PyObject
* obj5
= 0 ;
16241 char * kwnames
[] = {
16242 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
16245 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
,&obj5
)) SWIG_fail
;
16246 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
16247 if (!SWIG_IsOK(res1
)) {
16248 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
16250 arg1
= reinterpret_cast< wxDC
* >(argp1
);
16251 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
16252 if (!SWIG_IsOK(ecode2
)) {
16253 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
16255 arg2
= static_cast< int >(val2
);
16256 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
16257 if (!SWIG_IsOK(ecode3
)) {
16258 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
16260 arg3
= static_cast< int >(val3
);
16261 ecode4
= SWIG_AsVal_int(obj3
, &val4
);
16262 if (!SWIG_IsOK(ecode4
)) {
16263 SWIG_exception_fail(SWIG_ArgError(ecode4
), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
16265 arg4
= static_cast< int >(val4
);
16266 ecode5
= SWIG_AsVal_int(obj4
, &val5
);
16267 if (!SWIG_IsOK(ecode5
)) {
16268 SWIG_exception_fail(SWIG_ArgError(ecode5
), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
16270 arg5
= static_cast< int >(val5
);
16271 ecode6
= SWIG_AsVal_double(obj5
, &val6
);
16272 if (!SWIG_IsOK(ecode6
)) {
16273 SWIG_exception_fail(SWIG_ArgError(ecode6
), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
16275 arg6
= static_cast< double >(val6
);
16277 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
16278 (arg1
)->DrawRoundedRectangle(arg2
,arg3
,arg4
,arg5
,arg6
);
16279 wxPyEndAllowThreads(__tstate
);
16280 if (PyErr_Occurred()) SWIG_fail
;
16282 resultobj
= SWIG_Py_Void();
16289 SWIGINTERN PyObject
*_wrap_DC_DrawRoundedRectangleRect(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
16290 PyObject
*resultobj
= 0;
16291 wxDC
*arg1
= (wxDC
*) 0 ;
16299 PyObject
* obj0
= 0 ;
16300 PyObject
* obj1
= 0 ;
16301 PyObject
* obj2
= 0 ;
16302 char * kwnames
[] = {
16303 (char *) "self",(char *) "r",(char *) "radius", NULL
16306 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
16307 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
16308 if (!SWIG_IsOK(res1
)) {
16309 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
16311 arg1
= reinterpret_cast< wxDC
* >(argp1
);
16314 if ( ! wxRect_helper(obj1
, &arg2
)) SWIG_fail
;
16316 ecode3
= SWIG_AsVal_double(obj2
, &val3
);
16317 if (!SWIG_IsOK(ecode3
)) {
16318 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
16320 arg3
= static_cast< double >(val3
);
16322 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
16323 (arg1
)->DrawRoundedRectangle((wxRect
const &)*arg2
,arg3
);
16324 wxPyEndAllowThreads(__tstate
);
16325 if (PyErr_Occurred()) SWIG_fail
;
16327 resultobj
= SWIG_Py_Void();
16334 SWIGINTERN PyObject
*_wrap_DC_DrawRoundedRectanglePointSize(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
16335 PyObject
*resultobj
= 0;
16336 wxDC
*arg1
= (wxDC
*) 0 ;
16337 wxPoint
*arg2
= 0 ;
16346 PyObject
* obj0
= 0 ;
16347 PyObject
* obj1
= 0 ;
16348 PyObject
* obj2
= 0 ;
16349 PyObject
* obj3
= 0 ;
16350 char * kwnames
[] = {
16351 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
16354 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) SWIG_fail
;
16355 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
16356 if (!SWIG_IsOK(res1
)) {
16357 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16359 arg1
= reinterpret_cast< wxDC
* >(argp1
);
16362 if ( ! wxPoint_helper(obj1
, &arg2
)) SWIG_fail
;
16366 if ( ! wxSize_helper(obj2
, &arg3
)) SWIG_fail
;
16368 ecode4
= SWIG_AsVal_double(obj3
, &val4
);
16369 if (!SWIG_IsOK(ecode4
)) {
16370 SWIG_exception_fail(SWIG_ArgError(ecode4
), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
16372 arg4
= static_cast< double >(val4
);
16374 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
16375 (arg1
)->DrawRoundedRectangle((wxPoint
const &)*arg2
,(wxSize
const &)*arg3
,arg4
);
16376 wxPyEndAllowThreads(__tstate
);
16377 if (PyErr_Occurred()) SWIG_fail
;
16379 resultobj
= SWIG_Py_Void();
16386 SWIGINTERN PyObject
*_wrap_DC_DrawCircle(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
16387 PyObject
*resultobj
= 0;
16388 wxDC
*arg1
= (wxDC
*) 0 ;
16400 PyObject
* obj0
= 0 ;
16401 PyObject
* obj1
= 0 ;
16402 PyObject
* obj2
= 0 ;
16403 PyObject
* obj3
= 0 ;
16404 char * kwnames
[] = {
16405 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
16408 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:DC_DrawCircle",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) SWIG_fail
;
16409 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
16410 if (!SWIG_IsOK(res1
)) {
16411 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
16413 arg1
= reinterpret_cast< wxDC
* >(argp1
);
16414 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
16415 if (!SWIG_IsOK(ecode2
)) {
16416 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
16418 arg2
= static_cast< int >(val2
);
16419 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
16420 if (!SWIG_IsOK(ecode3
)) {
16421 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
16423 arg3
= static_cast< int >(val3
);
16424 ecode4
= SWIG_AsVal_int(obj3
, &val4
);
16425 if (!SWIG_IsOK(ecode4
)) {
16426 SWIG_exception_fail(SWIG_ArgError(ecode4
), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
16428 arg4
= static_cast< int >(val4
);
16430 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
16431 (arg1
)->DrawCircle(arg2
,arg3
,arg4
);
16432 wxPyEndAllowThreads(__tstate
);
16433 if (PyErr_Occurred()) SWIG_fail
;
16435 resultobj
= SWIG_Py_Void();
16442 SWIGINTERN PyObject
*_wrap_DC_DrawCirclePoint(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
16443 PyObject
*resultobj
= 0;
16444 wxDC
*arg1
= (wxDC
*) 0 ;
16445 wxPoint
*arg2
= 0 ;
16452 PyObject
* obj0
= 0 ;
16453 PyObject
* obj1
= 0 ;
16454 PyObject
* obj2
= 0 ;
16455 char * kwnames
[] = {
16456 (char *) "self",(char *) "pt",(char *) "radius", NULL
16459 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:DC_DrawCirclePoint",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
16460 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
16461 if (!SWIG_IsOK(res1
)) {
16462 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
16464 arg1
= reinterpret_cast< wxDC
* >(argp1
);
16467 if ( ! wxPoint_helper(obj1
, &arg2
)) SWIG_fail
;
16469 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
16470 if (!SWIG_IsOK(ecode3
)) {
16471 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
16473 arg3
= static_cast< int >(val3
);
16475 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
16476 (arg1
)->DrawCircle((wxPoint
const &)*arg2
,arg3
);
16477 wxPyEndAllowThreads(__tstate
);
16478 if (PyErr_Occurred()) SWIG_fail
;
16480 resultobj
= SWIG_Py_Void();
16487 SWIGINTERN PyObject
*_wrap_DC_DrawEllipse(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
16488 PyObject
*resultobj
= 0;
16489 wxDC
*arg1
= (wxDC
*) 0 ;
16504 PyObject
* obj0
= 0 ;
16505 PyObject
* obj1
= 0 ;
16506 PyObject
* obj2
= 0 ;
16507 PyObject
* obj3
= 0 ;
16508 PyObject
* obj4
= 0 ;
16509 char * kwnames
[] = {
16510 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
16513 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOOO:DC_DrawEllipse",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) SWIG_fail
;
16514 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
16515 if (!SWIG_IsOK(res1
)) {
16516 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
16518 arg1
= reinterpret_cast< wxDC
* >(argp1
);
16519 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
16520 if (!SWIG_IsOK(ecode2
)) {
16521 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
16523 arg2
= static_cast< int >(val2
);
16524 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
16525 if (!SWIG_IsOK(ecode3
)) {
16526 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
16528 arg3
= static_cast< int >(val3
);
16529 ecode4
= SWIG_AsVal_int(obj3
, &val4
);
16530 if (!SWIG_IsOK(ecode4
)) {
16531 SWIG_exception_fail(SWIG_ArgError(ecode4
), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
16533 arg4
= static_cast< int >(val4
);
16534 ecode5
= SWIG_AsVal_int(obj4
, &val5
);
16535 if (!SWIG_IsOK(ecode5
)) {
16536 SWIG_exception_fail(SWIG_ArgError(ecode5
), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
16538 arg5
= static_cast< int >(val5
);
16540 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
16541 (arg1
)->DrawEllipse(arg2
,arg3
,arg4
,arg5
);
16542 wxPyEndAllowThreads(__tstate
);
16543 if (PyErr_Occurred()) SWIG_fail
;
16545 resultobj
= SWIG_Py_Void();
16552 SWIGINTERN PyObject
*_wrap_DC_DrawEllipseRect(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
16553 PyObject
*resultobj
= 0;
16554 wxDC
*arg1
= (wxDC
*) 0 ;
16559 PyObject
* obj0
= 0 ;
16560 PyObject
* obj1
= 0 ;
16561 char * kwnames
[] = {
16562 (char *) "self",(char *) "rect", NULL
16565 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:DC_DrawEllipseRect",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
16566 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
16567 if (!SWIG_IsOK(res1
)) {
16568 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
16570 arg1
= reinterpret_cast< wxDC
* >(argp1
);
16573 if ( ! wxRect_helper(obj1
, &arg2
)) SWIG_fail
;
16576 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
16577 (arg1
)->DrawEllipse((wxRect
const &)*arg2
);
16578 wxPyEndAllowThreads(__tstate
);
16579 if (PyErr_Occurred()) SWIG_fail
;
16581 resultobj
= SWIG_Py_Void();
16588 SWIGINTERN PyObject
*_wrap_DC_DrawEllipsePointSize(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
16589 PyObject
*resultobj
= 0;
16590 wxDC
*arg1
= (wxDC
*) 0 ;
16591 wxPoint
*arg2
= 0 ;
16597 PyObject
* obj0
= 0 ;
16598 PyObject
* obj1
= 0 ;
16599 PyObject
* obj2
= 0 ;
16600 char * kwnames
[] = {
16601 (char *) "self",(char *) "pt",(char *) "sz", NULL
16604 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:DC_DrawEllipsePointSize",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
16605 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
16606 if (!SWIG_IsOK(res1
)) {
16607 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16609 arg1
= reinterpret_cast< wxDC
* >(argp1
);
16612 if ( ! wxPoint_helper(obj1
, &arg2
)) SWIG_fail
;
16616 if ( ! wxSize_helper(obj2
, &arg3
)) SWIG_fail
;
16619 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
16620 (arg1
)->DrawEllipse((wxPoint
const &)*arg2
,(wxSize
const &)*arg3
);
16621 wxPyEndAllowThreads(__tstate
);
16622 if (PyErr_Occurred()) SWIG_fail
;
16624 resultobj
= SWIG_Py_Void();
16631 SWIGINTERN PyObject
*_wrap_DC_DrawIcon(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
16632 PyObject
*resultobj
= 0;
16633 wxDC
*arg1
= (wxDC
*) 0 ;
16645 PyObject
* obj0
= 0 ;
16646 PyObject
* obj1
= 0 ;
16647 PyObject
* obj2
= 0 ;
16648 PyObject
* obj3
= 0 ;
16649 char * kwnames
[] = {
16650 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
16653 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:DC_DrawIcon",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) SWIG_fail
;
16654 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
16655 if (!SWIG_IsOK(res1
)) {
16656 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
16658 arg1
= reinterpret_cast< wxDC
* >(argp1
);
16659 res2
= SWIG_ConvertPtr(obj1
, &argp2
, SWIGTYPE_p_wxIcon
, 0 | 0);
16660 if (!SWIG_IsOK(res2
)) {
16661 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
16664 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
16666 arg2
= reinterpret_cast< wxIcon
* >(argp2
);
16667 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
16668 if (!SWIG_IsOK(ecode3
)) {
16669 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
16671 arg3
= static_cast< int >(val3
);
16672 ecode4
= SWIG_AsVal_int(obj3
, &val4
);
16673 if (!SWIG_IsOK(ecode4
)) {
16674 SWIG_exception_fail(SWIG_ArgError(ecode4
), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
16676 arg4
= static_cast< int >(val4
);
16678 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
16679 (arg1
)->DrawIcon((wxIcon
const &)*arg2
,arg3
,arg4
);
16680 wxPyEndAllowThreads(__tstate
);
16681 if (PyErr_Occurred()) SWIG_fail
;
16683 resultobj
= SWIG_Py_Void();
16690 SWIGINTERN PyObject
*_wrap_DC_DrawIconPoint(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
16691 PyObject
*resultobj
= 0;
16692 wxDC
*arg1
= (wxDC
*) 0 ;
16694 wxPoint
*arg3
= 0 ;
16700 PyObject
* obj0
= 0 ;
16701 PyObject
* obj1
= 0 ;
16702 PyObject
* obj2
= 0 ;
16703 char * kwnames
[] = {
16704 (char *) "self",(char *) "icon",(char *) "pt", NULL
16707 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:DC_DrawIconPoint",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
16708 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
16709 if (!SWIG_IsOK(res1
)) {
16710 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16712 arg1
= reinterpret_cast< wxDC
* >(argp1
);
16713 res2
= SWIG_ConvertPtr(obj1
, &argp2
, SWIGTYPE_p_wxIcon
, 0 | 0);
16714 if (!SWIG_IsOK(res2
)) {
16715 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
16718 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
16720 arg2
= reinterpret_cast< wxIcon
* >(argp2
);
16723 if ( ! wxPoint_helper(obj2
, &arg3
)) SWIG_fail
;
16726 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
16727 (arg1
)->DrawIcon((wxIcon
const &)*arg2
,(wxPoint
const &)*arg3
);
16728 wxPyEndAllowThreads(__tstate
);
16729 if (PyErr_Occurred()) SWIG_fail
;
16731 resultobj
= SWIG_Py_Void();
16738 SWIGINTERN PyObject
*_wrap_DC_DrawBitmap(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
16739 PyObject
*resultobj
= 0;
16740 wxDC
*arg1
= (wxDC
*) 0 ;
16741 wxBitmap
*arg2
= 0 ;
16744 bool arg5
= (bool) false ;
16755 PyObject
* obj0
= 0 ;
16756 PyObject
* obj1
= 0 ;
16757 PyObject
* obj2
= 0 ;
16758 PyObject
* obj3
= 0 ;
16759 PyObject
* obj4
= 0 ;
16760 char * kwnames
[] = {
16761 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
16764 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO|O:DC_DrawBitmap",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) SWIG_fail
;
16765 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
16766 if (!SWIG_IsOK(res1
)) {
16767 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
16769 arg1
= reinterpret_cast< wxDC
* >(argp1
);
16770 res2
= SWIG_ConvertPtr(obj1
, &argp2
, SWIGTYPE_p_wxBitmap
, 0 | 0);
16771 if (!SWIG_IsOK(res2
)) {
16772 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16775 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16777 arg2
= reinterpret_cast< wxBitmap
* >(argp2
);
16778 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
16779 if (!SWIG_IsOK(ecode3
)) {
16780 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
16782 arg3
= static_cast< int >(val3
);
16783 ecode4
= SWIG_AsVal_int(obj3
, &val4
);
16784 if (!SWIG_IsOK(ecode4
)) {
16785 SWIG_exception_fail(SWIG_ArgError(ecode4
), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
16787 arg4
= static_cast< int >(val4
);
16789 ecode5
= SWIG_AsVal_bool(obj4
, &val5
);
16790 if (!SWIG_IsOK(ecode5
)) {
16791 SWIG_exception_fail(SWIG_ArgError(ecode5
), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
16793 arg5
= static_cast< bool >(val5
);
16796 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
16797 (arg1
)->DrawBitmap((wxBitmap
const &)*arg2
,arg3
,arg4
,arg5
);
16798 wxPyEndAllowThreads(__tstate
);
16799 if (PyErr_Occurred()) SWIG_fail
;
16801 resultobj
= SWIG_Py_Void();
16808 SWIGINTERN PyObject
*_wrap_DC_DrawBitmapPoint(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
16809 PyObject
*resultobj
= 0;
16810 wxDC
*arg1
= (wxDC
*) 0 ;
16811 wxBitmap
*arg2
= 0 ;
16812 wxPoint
*arg3
= 0 ;
16813 bool arg4
= (bool) false ;
16821 PyObject
* obj0
= 0 ;
16822 PyObject
* obj1
= 0 ;
16823 PyObject
* obj2
= 0 ;
16824 PyObject
* obj3
= 0 ;
16825 char * kwnames
[] = {
16826 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
16829 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) SWIG_fail
;
16830 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
16831 if (!SWIG_IsOK(res1
)) {
16832 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16834 arg1
= reinterpret_cast< wxDC
* >(argp1
);
16835 res2
= SWIG_ConvertPtr(obj1
, &argp2
, SWIGTYPE_p_wxBitmap
, 0 | 0);
16836 if (!SWIG_IsOK(res2
)) {
16837 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16840 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16842 arg2
= reinterpret_cast< wxBitmap
* >(argp2
);
16845 if ( ! wxPoint_helper(obj2
, &arg3
)) SWIG_fail
;
16848 ecode4
= SWIG_AsVal_bool(obj3
, &val4
);
16849 if (!SWIG_IsOK(ecode4
)) {
16850 SWIG_exception_fail(SWIG_ArgError(ecode4
), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
16852 arg4
= static_cast< bool >(val4
);
16855 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
16856 (arg1
)->DrawBitmap((wxBitmap
const &)*arg2
,(wxPoint
const &)*arg3
,arg4
);
16857 wxPyEndAllowThreads(__tstate
);
16858 if (PyErr_Occurred()) SWIG_fail
;
16860 resultobj
= SWIG_Py_Void();
16867 SWIGINTERN PyObject
*_wrap_DC_DrawText(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
16868 PyObject
*resultobj
= 0;
16869 wxDC
*arg1
= (wxDC
*) 0 ;
16870 wxString
*arg2
= 0 ;
16875 bool temp2
= false ;
16880 PyObject
* obj0
= 0 ;
16881 PyObject
* obj1
= 0 ;
16882 PyObject
* obj2
= 0 ;
16883 PyObject
* obj3
= 0 ;
16884 char * kwnames
[] = {
16885 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
16888 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:DC_DrawText",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) SWIG_fail
;
16889 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
16890 if (!SWIG_IsOK(res1
)) {
16891 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
16893 arg1
= reinterpret_cast< wxDC
* >(argp1
);
16895 arg2
= wxString_in_helper(obj1
);
16896 if (arg2
== NULL
) SWIG_fail
;
16899 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
16900 if (!SWIG_IsOK(ecode3
)) {
16901 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
16903 arg3
= static_cast< int >(val3
);
16904 ecode4
= SWIG_AsVal_int(obj3
, &val4
);
16905 if (!SWIG_IsOK(ecode4
)) {
16906 SWIG_exception_fail(SWIG_ArgError(ecode4
), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
16908 arg4
= static_cast< int >(val4
);
16910 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
16911 (arg1
)->DrawText((wxString
const &)*arg2
,arg3
,arg4
);
16912 wxPyEndAllowThreads(__tstate
);
16913 if (PyErr_Occurred()) SWIG_fail
;
16915 resultobj
= SWIG_Py_Void();
16930 SWIGINTERN PyObject
*_wrap_DC_DrawTextPoint(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
16931 PyObject
*resultobj
= 0;
16932 wxDC
*arg1
= (wxDC
*) 0 ;
16933 wxString
*arg2
= 0 ;
16934 wxPoint
*arg3
= 0 ;
16937 bool temp2
= false ;
16939 PyObject
* obj0
= 0 ;
16940 PyObject
* obj1
= 0 ;
16941 PyObject
* obj2
= 0 ;
16942 char * kwnames
[] = {
16943 (char *) "self",(char *) "text",(char *) "pt", NULL
16946 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:DC_DrawTextPoint",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
16947 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
16948 if (!SWIG_IsOK(res1
)) {
16949 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16951 arg1
= reinterpret_cast< wxDC
* >(argp1
);
16953 arg2
= wxString_in_helper(obj1
);
16954 if (arg2
== NULL
) SWIG_fail
;
16959 if ( ! wxPoint_helper(obj2
, &arg3
)) SWIG_fail
;
16962 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
16963 (arg1
)->DrawText((wxString
const &)*arg2
,(wxPoint
const &)*arg3
);
16964 wxPyEndAllowThreads(__tstate
);
16965 if (PyErr_Occurred()) SWIG_fail
;
16967 resultobj
= SWIG_Py_Void();
16982 SWIGINTERN PyObject
*_wrap_DC_DrawRotatedText(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
16983 PyObject
*resultobj
= 0;
16984 wxDC
*arg1
= (wxDC
*) 0 ;
16985 wxString
*arg2
= 0 ;
16991 bool temp2
= false ;
16998 PyObject
* obj0
= 0 ;
16999 PyObject
* obj1
= 0 ;
17000 PyObject
* obj2
= 0 ;
17001 PyObject
* obj3
= 0 ;
17002 PyObject
* obj4
= 0 ;
17003 char * kwnames
[] = {
17004 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
17007 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOOO:DC_DrawRotatedText",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) SWIG_fail
;
17008 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
17009 if (!SWIG_IsOK(res1
)) {
17010 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
17012 arg1
= reinterpret_cast< wxDC
* >(argp1
);
17014 arg2
= wxString_in_helper(obj1
);
17015 if (arg2
== NULL
) SWIG_fail
;
17018 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
17019 if (!SWIG_IsOK(ecode3
)) {
17020 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
17022 arg3
= static_cast< int >(val3
);
17023 ecode4
= SWIG_AsVal_int(obj3
, &val4
);
17024 if (!SWIG_IsOK(ecode4
)) {
17025 SWIG_exception_fail(SWIG_ArgError(ecode4
), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
17027 arg4
= static_cast< int >(val4
);
17028 ecode5
= SWIG_AsVal_double(obj4
, &val5
);
17029 if (!SWIG_IsOK(ecode5
)) {
17030 SWIG_exception_fail(SWIG_ArgError(ecode5
), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
17032 arg5
= static_cast< double >(val5
);
17034 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
17035 (arg1
)->DrawRotatedText((wxString
const &)*arg2
,arg3
,arg4
,arg5
);
17036 wxPyEndAllowThreads(__tstate
);
17037 if (PyErr_Occurred()) SWIG_fail
;
17039 resultobj
= SWIG_Py_Void();
17054 SWIGINTERN PyObject
*_wrap_DC_DrawRotatedTextPoint(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
17055 PyObject
*resultobj
= 0;
17056 wxDC
*arg1
= (wxDC
*) 0 ;
17057 wxString
*arg2
= 0 ;
17058 wxPoint
*arg3
= 0 ;
17062 bool temp2
= false ;
17066 PyObject
* obj0
= 0 ;
17067 PyObject
* obj1
= 0 ;
17068 PyObject
* obj2
= 0 ;
17069 PyObject
* obj3
= 0 ;
17070 char * kwnames
[] = {
17071 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
17074 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) SWIG_fail
;
17075 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
17076 if (!SWIG_IsOK(res1
)) {
17077 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17079 arg1
= reinterpret_cast< wxDC
* >(argp1
);
17081 arg2
= wxString_in_helper(obj1
);
17082 if (arg2
== NULL
) SWIG_fail
;
17087 if ( ! wxPoint_helper(obj2
, &arg3
)) SWIG_fail
;
17089 ecode4
= SWIG_AsVal_double(obj3
, &val4
);
17090 if (!SWIG_IsOK(ecode4
)) {
17091 SWIG_exception_fail(SWIG_ArgError(ecode4
), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
17093 arg4
= static_cast< double >(val4
);
17095 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
17096 (arg1
)->DrawRotatedText((wxString
const &)*arg2
,(wxPoint
const &)*arg3
,arg4
);
17097 wxPyEndAllowThreads(__tstate
);
17098 if (PyErr_Occurred()) SWIG_fail
;
17100 resultobj
= SWIG_Py_Void();
17115 SWIGINTERN PyObject
*_wrap_DC_Blit(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
17116 PyObject
*resultobj
= 0;
17117 wxDC
*arg1
= (wxDC
*) 0 ;
17122 wxDC
*arg6
= (wxDC
*) 0 ;
17125 int arg9
= (int) wxCOPY
;
17126 bool arg10
= (bool) false ;
17127 int arg11
= (int) -1 ;
17128 int arg12
= (int) -1 ;
17154 PyObject
* obj0
= 0 ;
17155 PyObject
* obj1
= 0 ;
17156 PyObject
* obj2
= 0 ;
17157 PyObject
* obj3
= 0 ;
17158 PyObject
* obj4
= 0 ;
17159 PyObject
* obj5
= 0 ;
17160 PyObject
* obj6
= 0 ;
17161 PyObject
* obj7
= 0 ;
17162 PyObject
* obj8
= 0 ;
17163 PyObject
* obj9
= 0 ;
17164 PyObject
* obj10
= 0 ;
17165 PyObject
* obj11
= 0 ;
17166 char * kwnames
[] = {
17167 (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
17170 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOOOOOO|OOOO:DC_Blit",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
,&obj5
,&obj6
,&obj7
,&obj8
,&obj9
,&obj10
,&obj11
)) SWIG_fail
;
17171 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
17172 if (!SWIG_IsOK(res1
)) {
17173 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
17175 arg1
= reinterpret_cast< wxDC
* >(argp1
);
17176 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
17177 if (!SWIG_IsOK(ecode2
)) {
17178 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
17180 arg2
= static_cast< int >(val2
);
17181 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
17182 if (!SWIG_IsOK(ecode3
)) {
17183 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
17185 arg3
= static_cast< int >(val3
);
17186 ecode4
= SWIG_AsVal_int(obj3
, &val4
);
17187 if (!SWIG_IsOK(ecode4
)) {
17188 SWIG_exception_fail(SWIG_ArgError(ecode4
), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
17190 arg4
= static_cast< int >(val4
);
17191 ecode5
= SWIG_AsVal_int(obj4
, &val5
);
17192 if (!SWIG_IsOK(ecode5
)) {
17193 SWIG_exception_fail(SWIG_ArgError(ecode5
), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
17195 arg5
= static_cast< int >(val5
);
17196 res6
= SWIG_ConvertPtr(obj5
, &argp6
,SWIGTYPE_p_wxDC
, 0 | 0 );
17197 if (!SWIG_IsOK(res6
)) {
17198 SWIG_exception_fail(SWIG_ArgError(res6
), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
17200 arg6
= reinterpret_cast< wxDC
* >(argp6
);
17201 ecode7
= SWIG_AsVal_int(obj6
, &val7
);
17202 if (!SWIG_IsOK(ecode7
)) {
17203 SWIG_exception_fail(SWIG_ArgError(ecode7
), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
17205 arg7
= static_cast< int >(val7
);
17206 ecode8
= SWIG_AsVal_int(obj7
, &val8
);
17207 if (!SWIG_IsOK(ecode8
)) {
17208 SWIG_exception_fail(SWIG_ArgError(ecode8
), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
17210 arg8
= static_cast< int >(val8
);
17212 ecode9
= SWIG_AsVal_int(obj8
, &val9
);
17213 if (!SWIG_IsOK(ecode9
)) {
17214 SWIG_exception_fail(SWIG_ArgError(ecode9
), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
17216 arg9
= static_cast< int >(val9
);
17219 ecode10
= SWIG_AsVal_bool(obj9
, &val10
);
17220 if (!SWIG_IsOK(ecode10
)) {
17221 SWIG_exception_fail(SWIG_ArgError(ecode10
), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
17223 arg10
= static_cast< bool >(val10
);
17226 ecode11
= SWIG_AsVal_int(obj10
, &val11
);
17227 if (!SWIG_IsOK(ecode11
)) {
17228 SWIG_exception_fail(SWIG_ArgError(ecode11
), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
17230 arg11
= static_cast< int >(val11
);
17233 ecode12
= SWIG_AsVal_int(obj11
, &val12
);
17234 if (!SWIG_IsOK(ecode12
)) {
17235 SWIG_exception_fail(SWIG_ArgError(ecode12
), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
17237 arg12
= static_cast< int >(val12
);
17240 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
17241 result
= (bool)(arg1
)->Blit(arg2
,arg3
,arg4
,arg5
,arg6
,arg7
,arg8
,arg9
,arg10
,arg11
,arg12
);
17242 wxPyEndAllowThreads(__tstate
);
17243 if (PyErr_Occurred()) SWIG_fail
;
17246 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
17254 SWIGINTERN PyObject
*_wrap_DC_BlitPointSize(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
17255 PyObject
*resultobj
= 0;
17256 wxDC
*arg1
= (wxDC
*) 0 ;
17257 wxPoint
*arg2
= 0 ;
17259 wxDC
*arg4
= (wxDC
*) 0 ;
17260 wxPoint
*arg5
= 0 ;
17261 int arg6
= (int) wxCOPY
;
17262 bool arg7
= (bool) false ;
17263 wxPoint
const &arg8_defvalue
= wxDefaultPosition
;
17264 wxPoint
*arg8
= (wxPoint
*) &arg8_defvalue
;
17278 PyObject
* obj0
= 0 ;
17279 PyObject
* obj1
= 0 ;
17280 PyObject
* obj2
= 0 ;
17281 PyObject
* obj3
= 0 ;
17282 PyObject
* obj4
= 0 ;
17283 PyObject
* obj5
= 0 ;
17284 PyObject
* obj6
= 0 ;
17285 PyObject
* obj7
= 0 ;
17286 char * kwnames
[] = {
17287 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
17290 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
,&obj5
,&obj6
,&obj7
)) SWIG_fail
;
17291 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
17292 if (!SWIG_IsOK(res1
)) {
17293 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
17295 arg1
= reinterpret_cast< wxDC
* >(argp1
);
17298 if ( ! wxPoint_helper(obj1
, &arg2
)) SWIG_fail
;
17302 if ( ! wxSize_helper(obj2
, &arg3
)) SWIG_fail
;
17304 res4
= SWIG_ConvertPtr(obj3
, &argp4
,SWIGTYPE_p_wxDC
, 0 | 0 );
17305 if (!SWIG_IsOK(res4
)) {
17306 SWIG_exception_fail(SWIG_ArgError(res4
), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
17308 arg4
= reinterpret_cast< wxDC
* >(argp4
);
17311 if ( ! wxPoint_helper(obj4
, &arg5
)) SWIG_fail
;
17314 ecode6
= SWIG_AsVal_int(obj5
, &val6
);
17315 if (!SWIG_IsOK(ecode6
)) {
17316 SWIG_exception_fail(SWIG_ArgError(ecode6
), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
17318 arg6
= static_cast< int >(val6
);
17321 ecode7
= SWIG_AsVal_bool(obj6
, &val7
);
17322 if (!SWIG_IsOK(ecode7
)) {
17323 SWIG_exception_fail(SWIG_ArgError(ecode7
), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
17325 arg7
= static_cast< bool >(val7
);
17330 if ( ! wxPoint_helper(obj7
, &arg8
)) SWIG_fail
;
17334 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
17335 result
= (bool)(arg1
)->Blit((wxPoint
const &)*arg2
,(wxSize
const &)*arg3
,arg4
,(wxPoint
const &)*arg5
,arg6
,arg7
,(wxPoint
const &)*arg8
);
17336 wxPyEndAllowThreads(__tstate
);
17337 if (PyErr_Occurred()) SWIG_fail
;
17340 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
17348 SWIGINTERN PyObject
*_wrap_DC_SetClippingRegion(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
17349 PyObject
*resultobj
= 0;
17350 wxDC
*arg1
= (wxDC
*) 0 ;
17365 PyObject
* obj0
= 0 ;
17366 PyObject
* obj1
= 0 ;
17367 PyObject
* obj2
= 0 ;
17368 PyObject
* obj3
= 0 ;
17369 PyObject
* obj4
= 0 ;
17370 char * kwnames
[] = {
17371 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
17374 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOOO:DC_SetClippingRegion",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) SWIG_fail
;
17375 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
17376 if (!SWIG_IsOK(res1
)) {
17377 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
17379 arg1
= reinterpret_cast< wxDC
* >(argp1
);
17380 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
17381 if (!SWIG_IsOK(ecode2
)) {
17382 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
17384 arg2
= static_cast< int >(val2
);
17385 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
17386 if (!SWIG_IsOK(ecode3
)) {
17387 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
17389 arg3
= static_cast< int >(val3
);
17390 ecode4
= SWIG_AsVal_int(obj3
, &val4
);
17391 if (!SWIG_IsOK(ecode4
)) {
17392 SWIG_exception_fail(SWIG_ArgError(ecode4
), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
17394 arg4
= static_cast< int >(val4
);
17395 ecode5
= SWIG_AsVal_int(obj4
, &val5
);
17396 if (!SWIG_IsOK(ecode5
)) {
17397 SWIG_exception_fail(SWIG_ArgError(ecode5
), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
17399 arg5
= static_cast< int >(val5
);
17401 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
17402 (arg1
)->SetClippingRegion(arg2
,arg3
,arg4
,arg5
);
17403 wxPyEndAllowThreads(__tstate
);
17404 if (PyErr_Occurred()) SWIG_fail
;
17406 resultobj
= SWIG_Py_Void();
17413 SWIGINTERN PyObject
*_wrap_DC_SetClippingRegionPointSize(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
17414 PyObject
*resultobj
= 0;
17415 wxDC
*arg1
= (wxDC
*) 0 ;
17416 wxPoint
*arg2
= 0 ;
17422 PyObject
* obj0
= 0 ;
17423 PyObject
* obj1
= 0 ;
17424 PyObject
* obj2
= 0 ;
17425 char * kwnames
[] = {
17426 (char *) "self",(char *) "pt",(char *) "sz", NULL
17429 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
17430 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
17431 if (!SWIG_IsOK(res1
)) {
17432 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
17434 arg1
= reinterpret_cast< wxDC
* >(argp1
);
17437 if ( ! wxPoint_helper(obj1
, &arg2
)) SWIG_fail
;
17441 if ( ! wxSize_helper(obj2
, &arg3
)) SWIG_fail
;
17444 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
17445 (arg1
)->SetClippingRegion((wxPoint
const &)*arg2
,(wxSize
const &)*arg3
);
17446 wxPyEndAllowThreads(__tstate
);
17447 if (PyErr_Occurred()) SWIG_fail
;
17449 resultobj
= SWIG_Py_Void();
17456 SWIGINTERN PyObject
*_wrap_DC_SetClippingRegionAsRegion(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
17457 PyObject
*resultobj
= 0;
17458 wxDC
*arg1
= (wxDC
*) 0 ;
17459 wxRegion
*arg2
= 0 ;
17464 PyObject
* obj0
= 0 ;
17465 PyObject
* obj1
= 0 ;
17466 char * kwnames
[] = {
17467 (char *) "self",(char *) "region", NULL
17470 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
17471 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
17472 if (!SWIG_IsOK(res1
)) {
17473 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
17475 arg1
= reinterpret_cast< wxDC
* >(argp1
);
17476 res2
= SWIG_ConvertPtr(obj1
, &argp2
, SWIGTYPE_p_wxRegion
, 0 | 0);
17477 if (!SWIG_IsOK(res2
)) {
17478 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
17481 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
17483 arg2
= reinterpret_cast< wxRegion
* >(argp2
);
17485 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
17486 (arg1
)->SetClippingRegion((wxRegion
const &)*arg2
);
17487 wxPyEndAllowThreads(__tstate
);
17488 if (PyErr_Occurred()) SWIG_fail
;
17490 resultobj
= SWIG_Py_Void();
17497 SWIGINTERN PyObject
*_wrap_DC_SetClippingRect(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
17498 PyObject
*resultobj
= 0;
17499 wxDC
*arg1
= (wxDC
*) 0 ;
17504 PyObject
* obj0
= 0 ;
17505 PyObject
* obj1
= 0 ;
17506 char * kwnames
[] = {
17507 (char *) "self",(char *) "rect", NULL
17510 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:DC_SetClippingRect",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
17511 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
17512 if (!SWIG_IsOK(res1
)) {
17513 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
17515 arg1
= reinterpret_cast< wxDC
* >(argp1
);
17518 if ( ! wxRect_helper(obj1
, &arg2
)) SWIG_fail
;
17521 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
17522 (arg1
)->SetClippingRegion((wxRect
const &)*arg2
);
17523 wxPyEndAllowThreads(__tstate
);
17524 if (PyErr_Occurred()) SWIG_fail
;
17526 resultobj
= SWIG_Py_Void();
17533 SWIGINTERN PyObject
*_wrap_DC_DrawLines(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
17534 PyObject
*resultobj
= 0;
17535 wxDC
*arg1
= (wxDC
*) 0 ;
17537 wxPoint
*arg3
= (wxPoint
*) 0 ;
17538 int arg4
= (int) 0 ;
17539 int arg5
= (int) 0 ;
17546 PyObject
* obj0
= 0 ;
17547 PyObject
* obj1
= 0 ;
17548 PyObject
* obj2
= 0 ;
17549 PyObject
* obj3
= 0 ;
17550 char * kwnames
[] = {
17551 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
17554 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|OO:DC_DrawLines",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) SWIG_fail
;
17555 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
17556 if (!SWIG_IsOK(res1
)) {
17557 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
17559 arg1
= reinterpret_cast< wxDC
* >(argp1
);
17561 arg3
= wxPoint_LIST_helper(obj1
, &arg2
);
17562 if (arg3
== NULL
) SWIG_fail
;
17565 ecode4
= SWIG_AsVal_int(obj2
, &val4
);
17566 if (!SWIG_IsOK(ecode4
)) {
17567 SWIG_exception_fail(SWIG_ArgError(ecode4
), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
17569 arg4
= static_cast< int >(val4
);
17572 ecode5
= SWIG_AsVal_int(obj3
, &val5
);
17573 if (!SWIG_IsOK(ecode5
)) {
17574 SWIG_exception_fail(SWIG_ArgError(ecode5
), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
17576 arg5
= static_cast< int >(val5
);
17579 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
17580 (arg1
)->DrawLines(arg2
,arg3
,arg4
,arg5
);
17581 wxPyEndAllowThreads(__tstate
);
17582 if (PyErr_Occurred()) SWIG_fail
;
17584 resultobj
= SWIG_Py_Void();
17586 if (arg3
) delete [] arg3
;
17591 if (arg3
) delete [] arg3
;
17597 SWIGINTERN PyObject
*_wrap_DC_DrawPolygon(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
17598 PyObject
*resultobj
= 0;
17599 wxDC
*arg1
= (wxDC
*) 0 ;
17601 wxPoint
*arg3
= (wxPoint
*) 0 ;
17602 int arg4
= (int) 0 ;
17603 int arg5
= (int) 0 ;
17604 int arg6
= (int) wxODDEVEN_RULE
;
17613 PyObject
* obj0
= 0 ;
17614 PyObject
* obj1
= 0 ;
17615 PyObject
* obj2
= 0 ;
17616 PyObject
* obj3
= 0 ;
17617 PyObject
* obj4
= 0 ;
17618 char * kwnames
[] = {
17619 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
17622 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|OOO:DC_DrawPolygon",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) SWIG_fail
;
17623 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
17624 if (!SWIG_IsOK(res1
)) {
17625 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
17627 arg1
= reinterpret_cast< wxDC
* >(argp1
);
17629 arg3
= wxPoint_LIST_helper(obj1
, &arg2
);
17630 if (arg3
== NULL
) SWIG_fail
;
17633 ecode4
= SWIG_AsVal_int(obj2
, &val4
);
17634 if (!SWIG_IsOK(ecode4
)) {
17635 SWIG_exception_fail(SWIG_ArgError(ecode4
), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
17637 arg4
= static_cast< int >(val4
);
17640 ecode5
= SWIG_AsVal_int(obj3
, &val5
);
17641 if (!SWIG_IsOK(ecode5
)) {
17642 SWIG_exception_fail(SWIG_ArgError(ecode5
), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
17644 arg5
= static_cast< int >(val5
);
17647 ecode6
= SWIG_AsVal_int(obj4
, &val6
);
17648 if (!SWIG_IsOK(ecode6
)) {
17649 SWIG_exception_fail(SWIG_ArgError(ecode6
), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
17651 arg6
= static_cast< int >(val6
);
17654 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
17655 (arg1
)->DrawPolygon(arg2
,arg3
,arg4
,arg5
,arg6
);
17656 wxPyEndAllowThreads(__tstate
);
17657 if (PyErr_Occurred()) SWIG_fail
;
17659 resultobj
= SWIG_Py_Void();
17661 if (arg3
) delete [] arg3
;
17666 if (arg3
) delete [] arg3
;
17672 SWIGINTERN PyObject
*_wrap_DC_DrawLabel(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
17673 PyObject
*resultobj
= 0;
17674 wxDC
*arg1
= (wxDC
*) 0 ;
17675 wxString
*arg2
= 0 ;
17677 int arg4
= (int) wxALIGN_LEFT
|wxALIGN_TOP
;
17678 int arg5
= (int) -1 ;
17681 bool temp2
= false ;
17687 PyObject
* obj0
= 0 ;
17688 PyObject
* obj1
= 0 ;
17689 PyObject
* obj2
= 0 ;
17690 PyObject
* obj3
= 0 ;
17691 PyObject
* obj4
= 0 ;
17692 char * kwnames
[] = {
17693 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
17696 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO|OO:DC_DrawLabel",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) SWIG_fail
;
17697 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
17698 if (!SWIG_IsOK(res1
)) {
17699 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
17701 arg1
= reinterpret_cast< wxDC
* >(argp1
);
17703 arg2
= wxString_in_helper(obj1
);
17704 if (arg2
== NULL
) SWIG_fail
;
17709 if ( ! wxRect_helper(obj2
, &arg3
)) SWIG_fail
;
17712 ecode4
= SWIG_AsVal_int(obj3
, &val4
);
17713 if (!SWIG_IsOK(ecode4
)) {
17714 SWIG_exception_fail(SWIG_ArgError(ecode4
), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
17716 arg4
= static_cast< int >(val4
);
17719 ecode5
= SWIG_AsVal_int(obj4
, &val5
);
17720 if (!SWIG_IsOK(ecode5
)) {
17721 SWIG_exception_fail(SWIG_ArgError(ecode5
), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
17723 arg5
= static_cast< int >(val5
);
17726 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
17727 (arg1
)->DrawLabel((wxString
const &)*arg2
,(wxRect
const &)*arg3
,arg4
,arg5
);
17728 wxPyEndAllowThreads(__tstate
);
17729 if (PyErr_Occurred()) SWIG_fail
;
17731 resultobj
= SWIG_Py_Void();
17746 SWIGINTERN PyObject
*_wrap_DC_DrawImageLabel(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
17747 PyObject
*resultobj
= 0;
17748 wxDC
*arg1
= (wxDC
*) 0 ;
17749 wxString
*arg2
= 0 ;
17750 wxBitmap
*arg3
= 0 ;
17752 int arg5
= (int) wxALIGN_LEFT
|wxALIGN_TOP
;
17753 int arg6
= (int) -1 ;
17757 bool temp2
= false ;
17765 PyObject
* obj0
= 0 ;
17766 PyObject
* obj1
= 0 ;
17767 PyObject
* obj2
= 0 ;
17768 PyObject
* obj3
= 0 ;
17769 PyObject
* obj4
= 0 ;
17770 PyObject
* obj5
= 0 ;
17771 char * kwnames
[] = {
17772 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
17775 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
,&obj5
)) SWIG_fail
;
17776 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
17777 if (!SWIG_IsOK(res1
)) {
17778 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
17780 arg1
= reinterpret_cast< wxDC
* >(argp1
);
17782 arg2
= wxString_in_helper(obj1
);
17783 if (arg2
== NULL
) SWIG_fail
;
17786 res3
= SWIG_ConvertPtr(obj2
, &argp3
, SWIGTYPE_p_wxBitmap
, 0 | 0);
17787 if (!SWIG_IsOK(res3
)) {
17788 SWIG_exception_fail(SWIG_ArgError(res3
), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
17791 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
17793 arg3
= reinterpret_cast< wxBitmap
* >(argp3
);
17796 if ( ! wxRect_helper(obj3
, &arg4
)) SWIG_fail
;
17799 ecode5
= SWIG_AsVal_int(obj4
, &val5
);
17800 if (!SWIG_IsOK(ecode5
)) {
17801 SWIG_exception_fail(SWIG_ArgError(ecode5
), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
17803 arg5
= static_cast< int >(val5
);
17806 ecode6
= SWIG_AsVal_int(obj5
, &val6
);
17807 if (!SWIG_IsOK(ecode6
)) {
17808 SWIG_exception_fail(SWIG_ArgError(ecode6
), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
17810 arg6
= static_cast< int >(val6
);
17813 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
17814 result
= wxDC_DrawImageLabel(arg1
,(wxString
const &)*arg2
,(wxBitmap
const &)*arg3
,(wxRect
const &)*arg4
,arg5
,arg6
);
17815 wxPyEndAllowThreads(__tstate
);
17816 if (PyErr_Occurred()) SWIG_fail
;
17818 resultobj
= SWIG_NewPointerObj((new wxRect(static_cast< const wxRect
& >(result
))), SWIGTYPE_p_wxRect
, SWIG_POINTER_OWN
| 0 );
17833 SWIGINTERN PyObject
*_wrap_DC_DrawSpline(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
17834 PyObject
*resultobj
= 0;
17835 wxDC
*arg1
= (wxDC
*) 0 ;
17837 wxPoint
*arg3
= (wxPoint
*) 0 ;
17840 PyObject
* obj0
= 0 ;
17841 PyObject
* obj1
= 0 ;
17842 char * kwnames
[] = {
17843 (char *) "self",(char *) "points", NULL
17846 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:DC_DrawSpline",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
17847 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
17848 if (!SWIG_IsOK(res1
)) {
17849 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
17851 arg1
= reinterpret_cast< wxDC
* >(argp1
);
17853 arg3
= wxPoint_LIST_helper(obj1
, &arg2
);
17854 if (arg3
== NULL
) SWIG_fail
;
17857 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
17858 (arg1
)->DrawSpline(arg2
,arg3
);
17859 wxPyEndAllowThreads(__tstate
);
17860 if (PyErr_Occurred()) SWIG_fail
;
17862 resultobj
= SWIG_Py_Void();
17864 if (arg3
) delete [] arg3
;
17869 if (arg3
) delete [] arg3
;
17875 SWIGINTERN PyObject
*_wrap_DC_Clear(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
17876 PyObject
*resultobj
= 0;
17877 wxDC
*arg1
= (wxDC
*) 0 ;
17880 PyObject
*swig_obj
[1] ;
17882 if (!args
) SWIG_fail
;
17883 swig_obj
[0] = args
;
17884 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
17885 if (!SWIG_IsOK(res1
)) {
17886 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
17888 arg1
= reinterpret_cast< wxDC
* >(argp1
);
17890 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
17892 wxPyEndAllowThreads(__tstate
);
17893 if (PyErr_Occurred()) SWIG_fail
;
17895 resultobj
= SWIG_Py_Void();
17902 SWIGINTERN PyObject
*_wrap_DC_StartDoc(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
17903 PyObject
*resultobj
= 0;
17904 wxDC
*arg1
= (wxDC
*) 0 ;
17905 wxString
*arg2
= 0 ;
17909 bool temp2
= false ;
17910 PyObject
* obj0
= 0 ;
17911 PyObject
* obj1
= 0 ;
17912 char * kwnames
[] = {
17913 (char *) "self",(char *) "message", NULL
17916 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:DC_StartDoc",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
17917 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
17918 if (!SWIG_IsOK(res1
)) {
17919 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
17921 arg1
= reinterpret_cast< wxDC
* >(argp1
);
17923 arg2
= wxString_in_helper(obj1
);
17924 if (arg2
== NULL
) SWIG_fail
;
17928 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
17929 result
= (bool)(arg1
)->StartDoc((wxString
const &)*arg2
);
17930 wxPyEndAllowThreads(__tstate
);
17931 if (PyErr_Occurred()) SWIG_fail
;
17934 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
17950 SWIGINTERN PyObject
*_wrap_DC_EndDoc(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
17951 PyObject
*resultobj
= 0;
17952 wxDC
*arg1
= (wxDC
*) 0 ;
17955 PyObject
*swig_obj
[1] ;
17957 if (!args
) SWIG_fail
;
17958 swig_obj
[0] = args
;
17959 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
17960 if (!SWIG_IsOK(res1
)) {
17961 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
17963 arg1
= reinterpret_cast< wxDC
* >(argp1
);
17965 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
17967 wxPyEndAllowThreads(__tstate
);
17968 if (PyErr_Occurred()) SWIG_fail
;
17970 resultobj
= SWIG_Py_Void();
17977 SWIGINTERN PyObject
*_wrap_DC_StartPage(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
17978 PyObject
*resultobj
= 0;
17979 wxDC
*arg1
= (wxDC
*) 0 ;
17982 PyObject
*swig_obj
[1] ;
17984 if (!args
) SWIG_fail
;
17985 swig_obj
[0] = args
;
17986 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
17987 if (!SWIG_IsOK(res1
)) {
17988 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
17990 arg1
= reinterpret_cast< wxDC
* >(argp1
);
17992 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
17993 (arg1
)->StartPage();
17994 wxPyEndAllowThreads(__tstate
);
17995 if (PyErr_Occurred()) SWIG_fail
;
17997 resultobj
= SWIG_Py_Void();
18004 SWIGINTERN PyObject
*_wrap_DC_EndPage(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
18005 PyObject
*resultobj
= 0;
18006 wxDC
*arg1
= (wxDC
*) 0 ;
18009 PyObject
*swig_obj
[1] ;
18011 if (!args
) SWIG_fail
;
18012 swig_obj
[0] = args
;
18013 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
18014 if (!SWIG_IsOK(res1
)) {
18015 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
18017 arg1
= reinterpret_cast< wxDC
* >(argp1
);
18019 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
18021 wxPyEndAllowThreads(__tstate
);
18022 if (PyErr_Occurred()) SWIG_fail
;
18024 resultobj
= SWIG_Py_Void();
18031 SWIGINTERN PyObject
*_wrap_DC_SetFont(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
18032 PyObject
*resultobj
= 0;
18033 wxDC
*arg1
= (wxDC
*) 0 ;
18039 PyObject
* obj0
= 0 ;
18040 PyObject
* obj1
= 0 ;
18041 char * kwnames
[] = {
18042 (char *) "self",(char *) "font", NULL
18045 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:DC_SetFont",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
18046 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
18047 if (!SWIG_IsOK(res1
)) {
18048 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
18050 arg1
= reinterpret_cast< wxDC
* >(argp1
);
18051 res2
= SWIG_ConvertPtr(obj1
, &argp2
, SWIGTYPE_p_wxFont
, 0 | 0);
18052 if (!SWIG_IsOK(res2
)) {
18053 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
18056 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
18058 arg2
= reinterpret_cast< wxFont
* >(argp2
);
18060 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
18061 (arg1
)->SetFont((wxFont
const &)*arg2
);
18062 wxPyEndAllowThreads(__tstate
);
18063 if (PyErr_Occurred()) SWIG_fail
;
18065 resultobj
= SWIG_Py_Void();
18072 SWIGINTERN PyObject
*_wrap_DC_SetPen(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
18073 PyObject
*resultobj
= 0;
18074 wxDC
*arg1
= (wxDC
*) 0 ;
18080 PyObject
* obj0
= 0 ;
18081 PyObject
* obj1
= 0 ;
18082 char * kwnames
[] = {
18083 (char *) "self",(char *) "pen", NULL
18086 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:DC_SetPen",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
18087 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
18088 if (!SWIG_IsOK(res1
)) {
18089 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
18091 arg1
= reinterpret_cast< wxDC
* >(argp1
);
18092 res2
= SWIG_ConvertPtr(obj1
, &argp2
, SWIGTYPE_p_wxPen
, 0 | 0);
18093 if (!SWIG_IsOK(res2
)) {
18094 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
18097 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
18099 arg2
= reinterpret_cast< wxPen
* >(argp2
);
18101 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
18102 (arg1
)->SetPen((wxPen
const &)*arg2
);
18103 wxPyEndAllowThreads(__tstate
);
18104 if (PyErr_Occurred()) SWIG_fail
;
18106 resultobj
= SWIG_Py_Void();
18113 SWIGINTERN PyObject
*_wrap_DC_SetBrush(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
18114 PyObject
*resultobj
= 0;
18115 wxDC
*arg1
= (wxDC
*) 0 ;
18116 wxBrush
*arg2
= 0 ;
18121 PyObject
* obj0
= 0 ;
18122 PyObject
* obj1
= 0 ;
18123 char * kwnames
[] = {
18124 (char *) "self",(char *) "brush", NULL
18127 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:DC_SetBrush",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
18128 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
18129 if (!SWIG_IsOK(res1
)) {
18130 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
18132 arg1
= reinterpret_cast< wxDC
* >(argp1
);
18133 res2
= SWIG_ConvertPtr(obj1
, &argp2
, SWIGTYPE_p_wxBrush
, 0 | 0);
18134 if (!SWIG_IsOK(res2
)) {
18135 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
18138 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
18140 arg2
= reinterpret_cast< wxBrush
* >(argp2
);
18142 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
18143 (arg1
)->SetBrush((wxBrush
const &)*arg2
);
18144 wxPyEndAllowThreads(__tstate
);
18145 if (PyErr_Occurred()) SWIG_fail
;
18147 resultobj
= SWIG_Py_Void();
18154 SWIGINTERN PyObject
*_wrap_DC_SetBackground(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
18155 PyObject
*resultobj
= 0;
18156 wxDC
*arg1
= (wxDC
*) 0 ;
18157 wxBrush
*arg2
= 0 ;
18162 PyObject
* obj0
= 0 ;
18163 PyObject
* obj1
= 0 ;
18164 char * kwnames
[] = {
18165 (char *) "self",(char *) "brush", NULL
18168 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:DC_SetBackground",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
18169 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
18170 if (!SWIG_IsOK(res1
)) {
18171 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
18173 arg1
= reinterpret_cast< wxDC
* >(argp1
);
18174 res2
= SWIG_ConvertPtr(obj1
, &argp2
, SWIGTYPE_p_wxBrush
, 0 | 0);
18175 if (!SWIG_IsOK(res2
)) {
18176 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
18179 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
18181 arg2
= reinterpret_cast< wxBrush
* >(argp2
);
18183 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
18184 (arg1
)->SetBackground((wxBrush
const &)*arg2
);
18185 wxPyEndAllowThreads(__tstate
);
18186 if (PyErr_Occurred()) SWIG_fail
;
18188 resultobj
= SWIG_Py_Void();
18195 SWIGINTERN PyObject
*_wrap_DC_SetBackgroundMode(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
18196 PyObject
*resultobj
= 0;
18197 wxDC
*arg1
= (wxDC
*) 0 ;
18203 PyObject
* obj0
= 0 ;
18204 PyObject
* obj1
= 0 ;
18205 char * kwnames
[] = {
18206 (char *) "self",(char *) "mode", NULL
18209 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:DC_SetBackgroundMode",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
18210 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
18211 if (!SWIG_IsOK(res1
)) {
18212 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
18214 arg1
= reinterpret_cast< wxDC
* >(argp1
);
18215 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
18216 if (!SWIG_IsOK(ecode2
)) {
18217 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
18219 arg2
= static_cast< int >(val2
);
18221 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
18222 (arg1
)->SetBackgroundMode(arg2
);
18223 wxPyEndAllowThreads(__tstate
);
18224 if (PyErr_Occurred()) SWIG_fail
;
18226 resultobj
= SWIG_Py_Void();
18233 SWIGINTERN PyObject
*_wrap_DC_SetPalette(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
18234 PyObject
*resultobj
= 0;
18235 wxDC
*arg1
= (wxDC
*) 0 ;
18236 wxPalette
*arg2
= 0 ;
18241 PyObject
* obj0
= 0 ;
18242 PyObject
* obj1
= 0 ;
18243 char * kwnames
[] = {
18244 (char *) "self",(char *) "palette", NULL
18247 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:DC_SetPalette",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
18248 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
18249 if (!SWIG_IsOK(res1
)) {
18250 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
18252 arg1
= reinterpret_cast< wxDC
* >(argp1
);
18253 res2
= SWIG_ConvertPtr(obj1
, &argp2
, SWIGTYPE_p_wxPalette
, 0 | 0);
18254 if (!SWIG_IsOK(res2
)) {
18255 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
18258 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
18260 arg2
= reinterpret_cast< wxPalette
* >(argp2
);
18262 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
18263 (arg1
)->SetPalette((wxPalette
const &)*arg2
);
18264 wxPyEndAllowThreads(__tstate
);
18265 if (PyErr_Occurred()) SWIG_fail
;
18267 resultobj
= SWIG_Py_Void();
18274 SWIGINTERN PyObject
*_wrap_DC_DestroyClippingRegion(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
18275 PyObject
*resultobj
= 0;
18276 wxDC
*arg1
= (wxDC
*) 0 ;
18279 PyObject
*swig_obj
[1] ;
18281 if (!args
) SWIG_fail
;
18282 swig_obj
[0] = args
;
18283 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
18284 if (!SWIG_IsOK(res1
)) {
18285 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
18287 arg1
= reinterpret_cast< wxDC
* >(argp1
);
18289 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
18290 (arg1
)->DestroyClippingRegion();
18291 wxPyEndAllowThreads(__tstate
);
18292 if (PyErr_Occurred()) SWIG_fail
;
18294 resultobj
= SWIG_Py_Void();
18301 SWIGINTERN PyObject
*_wrap_DC_GetClippingBox(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
18302 PyObject
*resultobj
= 0;
18303 wxDC
*arg1
= (wxDC
*) 0 ;
18304 int *arg2
= (int *) 0 ;
18305 int *arg3
= (int *) 0 ;
18306 int *arg4
= (int *) 0 ;
18307 int *arg5
= (int *) 0 ;
18311 int res2
= SWIG_TMPOBJ
;
18313 int res3
= SWIG_TMPOBJ
;
18315 int res4
= SWIG_TMPOBJ
;
18317 int res5
= SWIG_TMPOBJ
;
18318 PyObject
*swig_obj
[1] ;
18324 if (!args
) SWIG_fail
;
18325 swig_obj
[0] = args
;
18326 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
18327 if (!SWIG_IsOK(res1
)) {
18328 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
18330 arg1
= reinterpret_cast< wxDC
* >(argp1
);
18332 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
18333 ((wxDC
const *)arg1
)->GetClippingBox(arg2
,arg3
,arg4
,arg5
);
18334 wxPyEndAllowThreads(__tstate
);
18335 if (PyErr_Occurred()) SWIG_fail
;
18337 resultobj
= SWIG_Py_Void();
18338 if (SWIG_IsTmpObj(res2
)) {
18339 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_From_int((*arg2
)));
18341 int new_flags
= SWIG_IsNewObj(res2
) ? (SWIG_POINTER_OWN
| 0 ) : 0 ;
18342 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_NewPointerObj((void*)(arg2
), SWIGTYPE_p_int
, new_flags
));
18344 if (SWIG_IsTmpObj(res3
)) {
18345 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_From_int((*arg3
)));
18347 int new_flags
= SWIG_IsNewObj(res3
) ? (SWIG_POINTER_OWN
| 0 ) : 0 ;
18348 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_NewPointerObj((void*)(arg3
), SWIGTYPE_p_int
, new_flags
));
18350 if (SWIG_IsTmpObj(res4
)) {
18351 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_From_int((*arg4
)));
18353 int new_flags
= SWIG_IsNewObj(res4
) ? (SWIG_POINTER_OWN
| 0 ) : 0 ;
18354 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_NewPointerObj((void*)(arg4
), SWIGTYPE_p_int
, new_flags
));
18356 if (SWIG_IsTmpObj(res5
)) {
18357 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_From_int((*arg5
)));
18359 int new_flags
= SWIG_IsNewObj(res5
) ? (SWIG_POINTER_OWN
| 0 ) : 0 ;
18360 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_NewPointerObj((void*)(arg5
), SWIGTYPE_p_int
, new_flags
));
18368 SWIGINTERN PyObject
*_wrap_DC_GetClippingRect(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
18369 PyObject
*resultobj
= 0;
18370 wxDC
*arg1
= (wxDC
*) 0 ;
18374 PyObject
*swig_obj
[1] ;
18376 if (!args
) SWIG_fail
;
18377 swig_obj
[0] = args
;
18378 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
18379 if (!SWIG_IsOK(res1
)) {
18380 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
18382 arg1
= reinterpret_cast< wxDC
* >(argp1
);
18384 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
18385 result
= wxDC_GetClippingRect(arg1
);
18386 wxPyEndAllowThreads(__tstate
);
18387 if (PyErr_Occurred()) SWIG_fail
;
18389 resultobj
= SWIG_NewPointerObj((new wxRect(static_cast< const wxRect
& >(result
))), SWIGTYPE_p_wxRect
, SWIG_POINTER_OWN
| 0 );
18396 SWIGINTERN PyObject
*_wrap_DC_GetCharHeight(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
18397 PyObject
*resultobj
= 0;
18398 wxDC
*arg1
= (wxDC
*) 0 ;
18402 PyObject
*swig_obj
[1] ;
18404 if (!args
) SWIG_fail
;
18405 swig_obj
[0] = args
;
18406 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
18407 if (!SWIG_IsOK(res1
)) {
18408 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
18410 arg1
= reinterpret_cast< wxDC
* >(argp1
);
18412 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
18413 result
= (int)((wxDC
const *)arg1
)->GetCharHeight();
18414 wxPyEndAllowThreads(__tstate
);
18415 if (PyErr_Occurred()) SWIG_fail
;
18417 resultobj
= SWIG_From_int(static_cast< int >(result
));
18424 SWIGINTERN PyObject
*_wrap_DC_GetCharWidth(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
18425 PyObject
*resultobj
= 0;
18426 wxDC
*arg1
= (wxDC
*) 0 ;
18430 PyObject
*swig_obj
[1] ;
18432 if (!args
) SWIG_fail
;
18433 swig_obj
[0] = args
;
18434 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
18435 if (!SWIG_IsOK(res1
)) {
18436 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
18438 arg1
= reinterpret_cast< wxDC
* >(argp1
);
18440 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
18441 result
= (int)((wxDC
const *)arg1
)->GetCharWidth();
18442 wxPyEndAllowThreads(__tstate
);
18443 if (PyErr_Occurred()) SWIG_fail
;
18445 resultobj
= SWIG_From_int(static_cast< int >(result
));
18452 SWIGINTERN PyObject
*_wrap_DC_GetTextExtent(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
18453 PyObject
*resultobj
= 0;
18454 wxDC
*arg1
= (wxDC
*) 0 ;
18455 wxString
*arg2
= 0 ;
18456 int *arg3
= (int *) 0 ;
18457 int *arg4
= (int *) 0 ;
18460 bool temp2
= false ;
18462 int res3
= SWIG_TMPOBJ
;
18464 int res4
= SWIG_TMPOBJ
;
18465 PyObject
* obj0
= 0 ;
18466 PyObject
* obj1
= 0 ;
18467 char * kwnames
[] = {
18468 (char *) "self",(char *) "string", NULL
18473 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:DC_GetTextExtent",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
18474 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
18475 if (!SWIG_IsOK(res1
)) {
18476 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
18478 arg1
= reinterpret_cast< wxDC
* >(argp1
);
18480 arg2
= wxString_in_helper(obj1
);
18481 if (arg2
== NULL
) SWIG_fail
;
18485 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
18486 (arg1
)->GetTextExtent((wxString
const &)*arg2
,arg3
,arg4
);
18487 wxPyEndAllowThreads(__tstate
);
18488 if (PyErr_Occurred()) SWIG_fail
;
18490 resultobj
= SWIG_Py_Void();
18491 if (SWIG_IsTmpObj(res3
)) {
18492 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_From_int((*arg3
)));
18494 int new_flags
= SWIG_IsNewObj(res3
) ? (SWIG_POINTER_OWN
| 0 ) : 0 ;
18495 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_NewPointerObj((void*)(arg3
), SWIGTYPE_p_int
, new_flags
));
18497 if (SWIG_IsTmpObj(res4
)) {
18498 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_From_int((*arg4
)));
18500 int new_flags
= SWIG_IsNewObj(res4
) ? (SWIG_POINTER_OWN
| 0 ) : 0 ;
18501 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_NewPointerObj((void*)(arg4
), SWIGTYPE_p_int
, new_flags
));
18517 SWIGINTERN PyObject
*_wrap_DC_GetFullTextExtent(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
18518 PyObject
*resultobj
= 0;
18519 wxDC
*arg1
= (wxDC
*) 0 ;
18520 wxString
*arg2
= 0 ;
18521 int *arg3
= (int *) 0 ;
18522 int *arg4
= (int *) 0 ;
18523 int *arg5
= (int *) 0 ;
18524 int *arg6
= (int *) 0 ;
18525 wxFont
*arg7
= (wxFont
*) NULL
;
18528 bool temp2
= false ;
18530 int res3
= SWIG_TMPOBJ
;
18532 int res4
= SWIG_TMPOBJ
;
18534 int res5
= SWIG_TMPOBJ
;
18536 int res6
= SWIG_TMPOBJ
;
18539 PyObject
* obj0
= 0 ;
18540 PyObject
* obj1
= 0 ;
18541 PyObject
* obj2
= 0 ;
18542 char * kwnames
[] = {
18543 (char *) "self",(char *) "string",(char *) "font", NULL
18550 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:DC_GetFullTextExtent",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
18551 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
18552 if (!SWIG_IsOK(res1
)) {
18553 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
18555 arg1
= reinterpret_cast< wxDC
* >(argp1
);
18557 arg2
= wxString_in_helper(obj1
);
18558 if (arg2
== NULL
) SWIG_fail
;
18562 res7
= SWIG_ConvertPtr(obj2
, &argp7
,SWIGTYPE_p_wxFont
, 0 | 0 );
18563 if (!SWIG_IsOK(res7
)) {
18564 SWIG_exception_fail(SWIG_ArgError(res7
), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
18566 arg7
= reinterpret_cast< wxFont
* >(argp7
);
18569 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
18570 (arg1
)->GetTextExtent((wxString
const &)*arg2
,arg3
,arg4
,arg5
,arg6
,arg7
);
18571 wxPyEndAllowThreads(__tstate
);
18572 if (PyErr_Occurred()) SWIG_fail
;
18574 resultobj
= SWIG_Py_Void();
18575 if (SWIG_IsTmpObj(res3
)) {
18576 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_From_int((*arg3
)));
18578 int new_flags
= SWIG_IsNewObj(res3
) ? (SWIG_POINTER_OWN
| 0 ) : 0 ;
18579 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_NewPointerObj((void*)(arg3
), SWIGTYPE_p_int
, new_flags
));
18581 if (SWIG_IsTmpObj(res4
)) {
18582 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_From_int((*arg4
)));
18584 int new_flags
= SWIG_IsNewObj(res4
) ? (SWIG_POINTER_OWN
| 0 ) : 0 ;
18585 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_NewPointerObj((void*)(arg4
), SWIGTYPE_p_int
, new_flags
));
18587 if (SWIG_IsTmpObj(res5
)) {
18588 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_From_int((*arg5
)));
18590 int new_flags
= SWIG_IsNewObj(res5
) ? (SWIG_POINTER_OWN
| 0 ) : 0 ;
18591 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_NewPointerObj((void*)(arg5
), SWIGTYPE_p_int
, new_flags
));
18593 if (SWIG_IsTmpObj(res6
)) {
18594 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_From_int((*arg6
)));
18596 int new_flags
= SWIG_IsNewObj(res6
) ? (SWIG_POINTER_OWN
| 0 ) : 0 ;
18597 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_NewPointerObj((void*)(arg6
), SWIGTYPE_p_int
, new_flags
));
18613 SWIGINTERN PyObject
*_wrap_DC_GetMultiLineTextExtent(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
18614 PyObject
*resultobj
= 0;
18615 wxDC
*arg1
= (wxDC
*) 0 ;
18616 wxString
*arg2
= 0 ;
18617 int *arg3
= (int *) 0 ;
18618 int *arg4
= (int *) 0 ;
18619 int *arg5
= (int *) 0 ;
18620 wxFont
*arg6
= (wxFont
*) NULL
;
18623 bool temp2
= false ;
18625 int res3
= SWIG_TMPOBJ
;
18627 int res4
= SWIG_TMPOBJ
;
18629 int res5
= SWIG_TMPOBJ
;
18632 PyObject
* obj0
= 0 ;
18633 PyObject
* obj1
= 0 ;
18634 PyObject
* obj2
= 0 ;
18635 char * kwnames
[] = {
18636 (char *) "self",(char *) "text",(char *) "font", NULL
18642 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
18643 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
18644 if (!SWIG_IsOK(res1
)) {
18645 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
18647 arg1
= reinterpret_cast< wxDC
* >(argp1
);
18649 arg2
= wxString_in_helper(obj1
);
18650 if (arg2
== NULL
) SWIG_fail
;
18654 res6
= SWIG_ConvertPtr(obj2
, &argp6
,SWIGTYPE_p_wxFont
, 0 | 0 );
18655 if (!SWIG_IsOK(res6
)) {
18656 SWIG_exception_fail(SWIG_ArgError(res6
), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
18658 arg6
= reinterpret_cast< wxFont
* >(argp6
);
18661 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
18662 (arg1
)->GetMultiLineTextExtent((wxString
const &)*arg2
,arg3
,arg4
,arg5
,arg6
);
18663 wxPyEndAllowThreads(__tstate
);
18664 if (PyErr_Occurred()) SWIG_fail
;
18666 resultobj
= SWIG_Py_Void();
18667 if (SWIG_IsTmpObj(res3
)) {
18668 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_From_int((*arg3
)));
18670 int new_flags
= SWIG_IsNewObj(res3
) ? (SWIG_POINTER_OWN
| 0 ) : 0 ;
18671 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_NewPointerObj((void*)(arg3
), SWIGTYPE_p_int
, new_flags
));
18673 if (SWIG_IsTmpObj(res4
)) {
18674 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_From_int((*arg4
)));
18676 int new_flags
= SWIG_IsNewObj(res4
) ? (SWIG_POINTER_OWN
| 0 ) : 0 ;
18677 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_NewPointerObj((void*)(arg4
), SWIGTYPE_p_int
, new_flags
));
18679 if (SWIG_IsTmpObj(res5
)) {
18680 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_From_int((*arg5
)));
18682 int new_flags
= SWIG_IsNewObj(res5
) ? (SWIG_POINTER_OWN
| 0 ) : 0 ;
18683 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_NewPointerObj((void*)(arg5
), SWIGTYPE_p_int
, new_flags
));
18699 SWIGINTERN PyObject
*_wrap_DC_GetPartialTextExtents(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
18700 PyObject
*resultobj
= 0;
18701 wxDC
*arg1
= (wxDC
*) 0 ;
18702 wxString
*arg2
= 0 ;
18706 bool temp2
= false ;
18707 PyObject
* obj0
= 0 ;
18708 PyObject
* obj1
= 0 ;
18709 char * kwnames
[] = {
18710 (char *) "self",(char *) "text", NULL
18713 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:DC_GetPartialTextExtents",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
18714 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
18715 if (!SWIG_IsOK(res1
)) {
18716 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
18718 arg1
= reinterpret_cast< wxDC
* >(argp1
);
18720 arg2
= wxString_in_helper(obj1
);
18721 if (arg2
== NULL
) SWIG_fail
;
18725 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
18726 result
= wxDC_GetPartialTextExtents(arg1
,(wxString
const &)*arg2
);
18727 wxPyEndAllowThreads(__tstate
);
18728 if (PyErr_Occurred()) SWIG_fail
;
18731 resultobj
= PyList_New(0);
18733 for (idx
= 0; idx
< (&result
)->GetCount(); idx
+= 1) {
18734 PyObject
* val
= PyInt_FromLong( (&result
)->Item(idx
) );
18735 PyList_Append(resultobj
, val
);
18753 SWIGINTERN PyObject
*_wrap_DC_GetSize(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
18754 PyObject
*resultobj
= 0;
18755 wxDC
*arg1
= (wxDC
*) 0 ;
18759 PyObject
*swig_obj
[1] ;
18761 if (!args
) SWIG_fail
;
18762 swig_obj
[0] = args
;
18763 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
18764 if (!SWIG_IsOK(res1
)) {
18765 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
18767 arg1
= reinterpret_cast< wxDC
* >(argp1
);
18769 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
18770 result
= (arg1
)->GetSize();
18771 wxPyEndAllowThreads(__tstate
);
18772 if (PyErr_Occurred()) SWIG_fail
;
18774 resultobj
= SWIG_NewPointerObj((new wxSize(static_cast< const wxSize
& >(result
))), SWIGTYPE_p_wxSize
, SWIG_POINTER_OWN
| 0 );
18781 SWIGINTERN PyObject
*_wrap_DC_GetSizeTuple(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
18782 PyObject
*resultobj
= 0;
18783 wxDC
*arg1
= (wxDC
*) 0 ;
18784 int *arg2
= (int *) 0 ;
18785 int *arg3
= (int *) 0 ;
18789 int res2
= SWIG_TMPOBJ
;
18791 int res3
= SWIG_TMPOBJ
;
18792 PyObject
*swig_obj
[1] ;
18796 if (!args
) SWIG_fail
;
18797 swig_obj
[0] = args
;
18798 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
18799 if (!SWIG_IsOK(res1
)) {
18800 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
18802 arg1
= reinterpret_cast< wxDC
* >(argp1
);
18804 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
18805 (arg1
)->GetSize(arg2
,arg3
);
18806 wxPyEndAllowThreads(__tstate
);
18807 if (PyErr_Occurred()) SWIG_fail
;
18809 resultobj
= SWIG_Py_Void();
18810 if (SWIG_IsTmpObj(res2
)) {
18811 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_From_int((*arg2
)));
18813 int new_flags
= SWIG_IsNewObj(res2
) ? (SWIG_POINTER_OWN
| 0 ) : 0 ;
18814 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_NewPointerObj((void*)(arg2
), SWIGTYPE_p_int
, new_flags
));
18816 if (SWIG_IsTmpObj(res3
)) {
18817 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_From_int((*arg3
)));
18819 int new_flags
= SWIG_IsNewObj(res3
) ? (SWIG_POINTER_OWN
| 0 ) : 0 ;
18820 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_NewPointerObj((void*)(arg3
), SWIGTYPE_p_int
, new_flags
));
18828 SWIGINTERN PyObject
*_wrap_DC_GetSizeMM(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
18829 PyObject
*resultobj
= 0;
18830 wxDC
*arg1
= (wxDC
*) 0 ;
18834 PyObject
*swig_obj
[1] ;
18836 if (!args
) SWIG_fail
;
18837 swig_obj
[0] = args
;
18838 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
18839 if (!SWIG_IsOK(res1
)) {
18840 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
18842 arg1
= reinterpret_cast< wxDC
* >(argp1
);
18844 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
18845 result
= ((wxDC
const *)arg1
)->GetSizeMM();
18846 wxPyEndAllowThreads(__tstate
);
18847 if (PyErr_Occurred()) SWIG_fail
;
18849 resultobj
= SWIG_NewPointerObj((new wxSize(static_cast< const wxSize
& >(result
))), SWIGTYPE_p_wxSize
, SWIG_POINTER_OWN
| 0 );
18856 SWIGINTERN PyObject
*_wrap_DC_GetSizeMMTuple(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
18857 PyObject
*resultobj
= 0;
18858 wxDC
*arg1
= (wxDC
*) 0 ;
18859 int *arg2
= (int *) 0 ;
18860 int *arg3
= (int *) 0 ;
18864 int res2
= SWIG_TMPOBJ
;
18866 int res3
= SWIG_TMPOBJ
;
18867 PyObject
*swig_obj
[1] ;
18871 if (!args
) SWIG_fail
;
18872 swig_obj
[0] = args
;
18873 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
18874 if (!SWIG_IsOK(res1
)) {
18875 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
18877 arg1
= reinterpret_cast< wxDC
* >(argp1
);
18879 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
18880 ((wxDC
const *)arg1
)->GetSizeMM(arg2
,arg3
);
18881 wxPyEndAllowThreads(__tstate
);
18882 if (PyErr_Occurred()) SWIG_fail
;
18884 resultobj
= SWIG_Py_Void();
18885 if (SWIG_IsTmpObj(res2
)) {
18886 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_From_int((*arg2
)));
18888 int new_flags
= SWIG_IsNewObj(res2
) ? (SWIG_POINTER_OWN
| 0 ) : 0 ;
18889 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_NewPointerObj((void*)(arg2
), SWIGTYPE_p_int
, new_flags
));
18891 if (SWIG_IsTmpObj(res3
)) {
18892 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_From_int((*arg3
)));
18894 int new_flags
= SWIG_IsNewObj(res3
) ? (SWIG_POINTER_OWN
| 0 ) : 0 ;
18895 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_NewPointerObj((void*)(arg3
), SWIGTYPE_p_int
, new_flags
));
18903 SWIGINTERN PyObject
*_wrap_DC_DeviceToLogicalX(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
18904 PyObject
*resultobj
= 0;
18905 wxDC
*arg1
= (wxDC
*) 0 ;
18912 PyObject
* obj0
= 0 ;
18913 PyObject
* obj1
= 0 ;
18914 char * kwnames
[] = {
18915 (char *) "self",(char *) "x", NULL
18918 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:DC_DeviceToLogicalX",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
18919 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
18920 if (!SWIG_IsOK(res1
)) {
18921 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
18923 arg1
= reinterpret_cast< wxDC
* >(argp1
);
18924 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
18925 if (!SWIG_IsOK(ecode2
)) {
18926 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
18928 arg2
= static_cast< int >(val2
);
18930 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
18931 result
= (int)((wxDC
const *)arg1
)->DeviceToLogicalX(arg2
);
18932 wxPyEndAllowThreads(__tstate
);
18933 if (PyErr_Occurred()) SWIG_fail
;
18935 resultobj
= SWIG_From_int(static_cast< int >(result
));
18942 SWIGINTERN PyObject
*_wrap_DC_DeviceToLogicalY(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
18943 PyObject
*resultobj
= 0;
18944 wxDC
*arg1
= (wxDC
*) 0 ;
18951 PyObject
* obj0
= 0 ;
18952 PyObject
* obj1
= 0 ;
18953 char * kwnames
[] = {
18954 (char *) "self",(char *) "y", NULL
18957 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:DC_DeviceToLogicalY",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
18958 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
18959 if (!SWIG_IsOK(res1
)) {
18960 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
18962 arg1
= reinterpret_cast< wxDC
* >(argp1
);
18963 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
18964 if (!SWIG_IsOK(ecode2
)) {
18965 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
18967 arg2
= static_cast< int >(val2
);
18969 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
18970 result
= (int)((wxDC
const *)arg1
)->DeviceToLogicalY(arg2
);
18971 wxPyEndAllowThreads(__tstate
);
18972 if (PyErr_Occurred()) SWIG_fail
;
18974 resultobj
= SWIG_From_int(static_cast< int >(result
));
18981 SWIGINTERN PyObject
*_wrap_DC_DeviceToLogicalXRel(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
18982 PyObject
*resultobj
= 0;
18983 wxDC
*arg1
= (wxDC
*) 0 ;
18990 PyObject
* obj0
= 0 ;
18991 PyObject
* obj1
= 0 ;
18992 char * kwnames
[] = {
18993 (char *) "self",(char *) "x", NULL
18996 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:DC_DeviceToLogicalXRel",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
18997 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
18998 if (!SWIG_IsOK(res1
)) {
18999 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
19001 arg1
= reinterpret_cast< wxDC
* >(argp1
);
19002 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
19003 if (!SWIG_IsOK(ecode2
)) {
19004 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
19006 arg2
= static_cast< int >(val2
);
19008 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
19009 result
= (int)((wxDC
const *)arg1
)->DeviceToLogicalXRel(arg2
);
19010 wxPyEndAllowThreads(__tstate
);
19011 if (PyErr_Occurred()) SWIG_fail
;
19013 resultobj
= SWIG_From_int(static_cast< int >(result
));
19020 SWIGINTERN PyObject
*_wrap_DC_DeviceToLogicalYRel(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
19021 PyObject
*resultobj
= 0;
19022 wxDC
*arg1
= (wxDC
*) 0 ;
19029 PyObject
* obj0
= 0 ;
19030 PyObject
* obj1
= 0 ;
19031 char * kwnames
[] = {
19032 (char *) "self",(char *) "y", NULL
19035 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:DC_DeviceToLogicalYRel",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
19036 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
19037 if (!SWIG_IsOK(res1
)) {
19038 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
19040 arg1
= reinterpret_cast< wxDC
* >(argp1
);
19041 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
19042 if (!SWIG_IsOK(ecode2
)) {
19043 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
19045 arg2
= static_cast< int >(val2
);
19047 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
19048 result
= (int)((wxDC
const *)arg1
)->DeviceToLogicalYRel(arg2
);
19049 wxPyEndAllowThreads(__tstate
);
19050 if (PyErr_Occurred()) SWIG_fail
;
19052 resultobj
= SWIG_From_int(static_cast< int >(result
));
19059 SWIGINTERN PyObject
*_wrap_DC_LogicalToDeviceX(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
19060 PyObject
*resultobj
= 0;
19061 wxDC
*arg1
= (wxDC
*) 0 ;
19068 PyObject
* obj0
= 0 ;
19069 PyObject
* obj1
= 0 ;
19070 char * kwnames
[] = {
19071 (char *) "self",(char *) "x", NULL
19074 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:DC_LogicalToDeviceX",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
19075 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
19076 if (!SWIG_IsOK(res1
)) {
19077 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
19079 arg1
= reinterpret_cast< wxDC
* >(argp1
);
19080 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
19081 if (!SWIG_IsOK(ecode2
)) {
19082 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
19084 arg2
= static_cast< int >(val2
);
19086 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
19087 result
= (int)((wxDC
const *)arg1
)->LogicalToDeviceX(arg2
);
19088 wxPyEndAllowThreads(__tstate
);
19089 if (PyErr_Occurred()) SWIG_fail
;
19091 resultobj
= SWIG_From_int(static_cast< int >(result
));
19098 SWIGINTERN PyObject
*_wrap_DC_LogicalToDeviceY(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
19099 PyObject
*resultobj
= 0;
19100 wxDC
*arg1
= (wxDC
*) 0 ;
19107 PyObject
* obj0
= 0 ;
19108 PyObject
* obj1
= 0 ;
19109 char * kwnames
[] = {
19110 (char *) "self",(char *) "y", NULL
19113 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:DC_LogicalToDeviceY",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
19114 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
19115 if (!SWIG_IsOK(res1
)) {
19116 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
19118 arg1
= reinterpret_cast< wxDC
* >(argp1
);
19119 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
19120 if (!SWIG_IsOK(ecode2
)) {
19121 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
19123 arg2
= static_cast< int >(val2
);
19125 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
19126 result
= (int)((wxDC
const *)arg1
)->LogicalToDeviceY(arg2
);
19127 wxPyEndAllowThreads(__tstate
);
19128 if (PyErr_Occurred()) SWIG_fail
;
19130 resultobj
= SWIG_From_int(static_cast< int >(result
));
19137 SWIGINTERN PyObject
*_wrap_DC_LogicalToDeviceXRel(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
19138 PyObject
*resultobj
= 0;
19139 wxDC
*arg1
= (wxDC
*) 0 ;
19146 PyObject
* obj0
= 0 ;
19147 PyObject
* obj1
= 0 ;
19148 char * kwnames
[] = {
19149 (char *) "self",(char *) "x", NULL
19152 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:DC_LogicalToDeviceXRel",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
19153 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
19154 if (!SWIG_IsOK(res1
)) {
19155 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
19157 arg1
= reinterpret_cast< wxDC
* >(argp1
);
19158 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
19159 if (!SWIG_IsOK(ecode2
)) {
19160 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
19162 arg2
= static_cast< int >(val2
);
19164 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
19165 result
= (int)((wxDC
const *)arg1
)->LogicalToDeviceXRel(arg2
);
19166 wxPyEndAllowThreads(__tstate
);
19167 if (PyErr_Occurred()) SWIG_fail
;
19169 resultobj
= SWIG_From_int(static_cast< int >(result
));
19176 SWIGINTERN PyObject
*_wrap_DC_LogicalToDeviceYRel(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
19177 PyObject
*resultobj
= 0;
19178 wxDC
*arg1
= (wxDC
*) 0 ;
19185 PyObject
* obj0
= 0 ;
19186 PyObject
* obj1
= 0 ;
19187 char * kwnames
[] = {
19188 (char *) "self",(char *) "y", NULL
19191 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:DC_LogicalToDeviceYRel",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
19192 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
19193 if (!SWIG_IsOK(res1
)) {
19194 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
19196 arg1
= reinterpret_cast< wxDC
* >(argp1
);
19197 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
19198 if (!SWIG_IsOK(ecode2
)) {
19199 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
19201 arg2
= static_cast< int >(val2
);
19203 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
19204 result
= (int)((wxDC
const *)arg1
)->LogicalToDeviceYRel(arg2
);
19205 wxPyEndAllowThreads(__tstate
);
19206 if (PyErr_Occurred()) SWIG_fail
;
19208 resultobj
= SWIG_From_int(static_cast< int >(result
));
19215 SWIGINTERN PyObject
*_wrap_DC_CanDrawBitmap(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
19216 PyObject
*resultobj
= 0;
19217 wxDC
*arg1
= (wxDC
*) 0 ;
19221 PyObject
*swig_obj
[1] ;
19223 if (!args
) SWIG_fail
;
19224 swig_obj
[0] = args
;
19225 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
19226 if (!SWIG_IsOK(res1
)) {
19227 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
19229 arg1
= reinterpret_cast< wxDC
* >(argp1
);
19231 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
19232 result
= (bool)((wxDC
const *)arg1
)->CanDrawBitmap();
19233 wxPyEndAllowThreads(__tstate
);
19234 if (PyErr_Occurred()) SWIG_fail
;
19237 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
19245 SWIGINTERN PyObject
*_wrap_DC_CanGetTextExtent(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
19246 PyObject
*resultobj
= 0;
19247 wxDC
*arg1
= (wxDC
*) 0 ;
19251 PyObject
*swig_obj
[1] ;
19253 if (!args
) SWIG_fail
;
19254 swig_obj
[0] = args
;
19255 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
19256 if (!SWIG_IsOK(res1
)) {
19257 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
19259 arg1
= reinterpret_cast< wxDC
* >(argp1
);
19261 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
19262 result
= (bool)((wxDC
const *)arg1
)->CanGetTextExtent();
19263 wxPyEndAllowThreads(__tstate
);
19264 if (PyErr_Occurred()) SWIG_fail
;
19267 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
19275 SWIGINTERN PyObject
*_wrap_DC_GetDepth(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
19276 PyObject
*resultobj
= 0;
19277 wxDC
*arg1
= (wxDC
*) 0 ;
19281 PyObject
*swig_obj
[1] ;
19283 if (!args
) SWIG_fail
;
19284 swig_obj
[0] = args
;
19285 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
19286 if (!SWIG_IsOK(res1
)) {
19287 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
19289 arg1
= reinterpret_cast< wxDC
* >(argp1
);
19291 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
19292 result
= (int)((wxDC
const *)arg1
)->GetDepth();
19293 wxPyEndAllowThreads(__tstate
);
19294 if (PyErr_Occurred()) SWIG_fail
;
19296 resultobj
= SWIG_From_int(static_cast< int >(result
));
19303 SWIGINTERN PyObject
*_wrap_DC_GetPPI(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
19304 PyObject
*resultobj
= 0;
19305 wxDC
*arg1
= (wxDC
*) 0 ;
19309 PyObject
*swig_obj
[1] ;
19311 if (!args
) SWIG_fail
;
19312 swig_obj
[0] = args
;
19313 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
19314 if (!SWIG_IsOK(res1
)) {
19315 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
19317 arg1
= reinterpret_cast< wxDC
* >(argp1
);
19319 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
19320 result
= ((wxDC
const *)arg1
)->GetPPI();
19321 wxPyEndAllowThreads(__tstate
);
19322 if (PyErr_Occurred()) SWIG_fail
;
19324 resultobj
= SWIG_NewPointerObj((new wxSize(static_cast< const wxSize
& >(result
))), SWIGTYPE_p_wxSize
, SWIG_POINTER_OWN
| 0 );
19331 SWIGINTERN PyObject
*_wrap_DC_Ok(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
19332 PyObject
*resultobj
= 0;
19333 wxDC
*arg1
= (wxDC
*) 0 ;
19337 PyObject
*swig_obj
[1] ;
19339 if (!args
) SWIG_fail
;
19340 swig_obj
[0] = args
;
19341 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
19342 if (!SWIG_IsOK(res1
)) {
19343 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_Ok" "', expected argument " "1"" of type '" "wxDC const *""'");
19345 arg1
= reinterpret_cast< wxDC
* >(argp1
);
19347 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
19348 result
= (bool)((wxDC
const *)arg1
)->Ok();
19349 wxPyEndAllowThreads(__tstate
);
19350 if (PyErr_Occurred()) SWIG_fail
;
19353 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
19361 SWIGINTERN PyObject
*_wrap_DC_GetBackgroundMode(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
19362 PyObject
*resultobj
= 0;
19363 wxDC
*arg1
= (wxDC
*) 0 ;
19367 PyObject
*swig_obj
[1] ;
19369 if (!args
) SWIG_fail
;
19370 swig_obj
[0] = args
;
19371 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
19372 if (!SWIG_IsOK(res1
)) {
19373 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
19375 arg1
= reinterpret_cast< wxDC
* >(argp1
);
19377 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
19378 result
= (int)((wxDC
const *)arg1
)->GetBackgroundMode();
19379 wxPyEndAllowThreads(__tstate
);
19380 if (PyErr_Occurred()) SWIG_fail
;
19382 resultobj
= SWIG_From_int(static_cast< int >(result
));
19389 SWIGINTERN PyObject
*_wrap_DC_GetBackground(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
19390 PyObject
*resultobj
= 0;
19391 wxDC
*arg1
= (wxDC
*) 0 ;
19392 wxBrush
*result
= 0 ;
19395 PyObject
*swig_obj
[1] ;
19397 if (!args
) SWIG_fail
;
19398 swig_obj
[0] = args
;
19399 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
19400 if (!SWIG_IsOK(res1
)) {
19401 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
19403 arg1
= reinterpret_cast< wxDC
* >(argp1
);
19405 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
19407 wxBrush
const &_result_ref
= ((wxDC
const *)arg1
)->GetBackground();
19408 result
= (wxBrush
*) &_result_ref
;
19410 wxPyEndAllowThreads(__tstate
);
19411 if (PyErr_Occurred()) SWIG_fail
;
19414 wxBrush
* resultptr
= new wxBrush(*result
);
19415 resultobj
= SWIG_NewPointerObj((void*)(resultptr
), SWIGTYPE_p_wxBrush
, 1);
19423 SWIGINTERN PyObject
*_wrap_DC_GetBrush(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
19424 PyObject
*resultobj
= 0;
19425 wxDC
*arg1
= (wxDC
*) 0 ;
19426 wxBrush
*result
= 0 ;
19429 PyObject
*swig_obj
[1] ;
19431 if (!args
) SWIG_fail
;
19432 swig_obj
[0] = args
;
19433 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
19434 if (!SWIG_IsOK(res1
)) {
19435 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
19437 arg1
= reinterpret_cast< wxDC
* >(argp1
);
19439 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
19441 wxBrush
const &_result_ref
= ((wxDC
const *)arg1
)->GetBrush();
19442 result
= (wxBrush
*) &_result_ref
;
19444 wxPyEndAllowThreads(__tstate
);
19445 if (PyErr_Occurred()) SWIG_fail
;
19448 wxBrush
* resultptr
= new wxBrush(*result
);
19449 resultobj
= SWIG_NewPointerObj((void*)(resultptr
), SWIGTYPE_p_wxBrush
, 1);
19457 SWIGINTERN PyObject
*_wrap_DC_GetFont(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
19458 PyObject
*resultobj
= 0;
19459 wxDC
*arg1
= (wxDC
*) 0 ;
19460 wxFont
*result
= 0 ;
19463 PyObject
*swig_obj
[1] ;
19465 if (!args
) SWIG_fail
;
19466 swig_obj
[0] = args
;
19467 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
19468 if (!SWIG_IsOK(res1
)) {
19469 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
19471 arg1
= reinterpret_cast< wxDC
* >(argp1
);
19473 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
19475 wxFont
const &_result_ref
= ((wxDC
const *)arg1
)->GetFont();
19476 result
= (wxFont
*) &_result_ref
;
19478 wxPyEndAllowThreads(__tstate
);
19479 if (PyErr_Occurred()) SWIG_fail
;
19482 wxFont
* resultptr
= new wxFont(*result
);
19483 resultobj
= SWIG_NewPointerObj((void*)(resultptr
), SWIGTYPE_p_wxFont
, 1);
19491 SWIGINTERN PyObject
*_wrap_DC_GetPen(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
19492 PyObject
*resultobj
= 0;
19493 wxDC
*arg1
= (wxDC
*) 0 ;
19494 wxPen
*result
= 0 ;
19497 PyObject
*swig_obj
[1] ;
19499 if (!args
) SWIG_fail
;
19500 swig_obj
[0] = args
;
19501 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
19502 if (!SWIG_IsOK(res1
)) {
19503 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
19505 arg1
= reinterpret_cast< wxDC
* >(argp1
);
19507 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
19509 wxPen
const &_result_ref
= ((wxDC
const *)arg1
)->GetPen();
19510 result
= (wxPen
*) &_result_ref
;
19512 wxPyEndAllowThreads(__tstate
);
19513 if (PyErr_Occurred()) SWIG_fail
;
19516 wxPen
* resultptr
= new wxPen(*result
);
19517 resultobj
= SWIG_NewPointerObj((void*)(resultptr
), SWIGTYPE_p_wxPen
, 1);
19525 SWIGINTERN PyObject
*_wrap_DC_GetTextBackground(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
19526 PyObject
*resultobj
= 0;
19527 wxDC
*arg1
= (wxDC
*) 0 ;
19528 wxColour
*result
= 0 ;
19531 PyObject
*swig_obj
[1] ;
19533 if (!args
) SWIG_fail
;
19534 swig_obj
[0] = args
;
19535 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
19536 if (!SWIG_IsOK(res1
)) {
19537 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
19539 arg1
= reinterpret_cast< wxDC
* >(argp1
);
19541 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
19543 wxColour
const &_result_ref
= ((wxDC
const *)arg1
)->GetTextBackground();
19544 result
= (wxColour
*) &_result_ref
;
19546 wxPyEndAllowThreads(__tstate
);
19547 if (PyErr_Occurred()) SWIG_fail
;
19549 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxColour
, 0 | 0 );
19556 SWIGINTERN PyObject
*_wrap_DC_GetTextForeground(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
19557 PyObject
*resultobj
= 0;
19558 wxDC
*arg1
= (wxDC
*) 0 ;
19559 wxColour
*result
= 0 ;
19562 PyObject
*swig_obj
[1] ;
19564 if (!args
) SWIG_fail
;
19565 swig_obj
[0] = args
;
19566 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
19567 if (!SWIG_IsOK(res1
)) {
19568 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
19570 arg1
= reinterpret_cast< wxDC
* >(argp1
);
19572 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
19574 wxColour
const &_result_ref
= ((wxDC
const *)arg1
)->GetTextForeground();
19575 result
= (wxColour
*) &_result_ref
;
19577 wxPyEndAllowThreads(__tstate
);
19578 if (PyErr_Occurred()) SWIG_fail
;
19580 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxColour
, 0 | 0 );
19587 SWIGINTERN PyObject
*_wrap_DC_SetTextForeground(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
19588 PyObject
*resultobj
= 0;
19589 wxDC
*arg1
= (wxDC
*) 0 ;
19590 wxColour
*arg2
= 0 ;
19594 PyObject
* obj0
= 0 ;
19595 PyObject
* obj1
= 0 ;
19596 char * kwnames
[] = {
19597 (char *) "self",(char *) "colour", NULL
19600 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:DC_SetTextForeground",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
19601 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
19602 if (!SWIG_IsOK(res1
)) {
19603 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
19605 arg1
= reinterpret_cast< wxDC
* >(argp1
);
19608 if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
;
19611 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
19612 (arg1
)->SetTextForeground((wxColour
const &)*arg2
);
19613 wxPyEndAllowThreads(__tstate
);
19614 if (PyErr_Occurred()) SWIG_fail
;
19616 resultobj
= SWIG_Py_Void();
19623 SWIGINTERN PyObject
*_wrap_DC_SetTextBackground(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
19624 PyObject
*resultobj
= 0;
19625 wxDC
*arg1
= (wxDC
*) 0 ;
19626 wxColour
*arg2
= 0 ;
19630 PyObject
* obj0
= 0 ;
19631 PyObject
* obj1
= 0 ;
19632 char * kwnames
[] = {
19633 (char *) "self",(char *) "colour", NULL
19636 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:DC_SetTextBackground",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
19637 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
19638 if (!SWIG_IsOK(res1
)) {
19639 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
19641 arg1
= reinterpret_cast< wxDC
* >(argp1
);
19644 if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
;
19647 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
19648 (arg1
)->SetTextBackground((wxColour
const &)*arg2
);
19649 wxPyEndAllowThreads(__tstate
);
19650 if (PyErr_Occurred()) SWIG_fail
;
19652 resultobj
= SWIG_Py_Void();
19659 SWIGINTERN PyObject
*_wrap_DC_GetMapMode(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
19660 PyObject
*resultobj
= 0;
19661 wxDC
*arg1
= (wxDC
*) 0 ;
19665 PyObject
*swig_obj
[1] ;
19667 if (!args
) SWIG_fail
;
19668 swig_obj
[0] = args
;
19669 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
19670 if (!SWIG_IsOK(res1
)) {
19671 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
19673 arg1
= reinterpret_cast< wxDC
* >(argp1
);
19675 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
19676 result
= (int)((wxDC
const *)arg1
)->GetMapMode();
19677 wxPyEndAllowThreads(__tstate
);
19678 if (PyErr_Occurred()) SWIG_fail
;
19680 resultobj
= SWIG_From_int(static_cast< int >(result
));
19687 SWIGINTERN PyObject
*_wrap_DC_SetMapMode(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
19688 PyObject
*resultobj
= 0;
19689 wxDC
*arg1
= (wxDC
*) 0 ;
19695 PyObject
* obj0
= 0 ;
19696 PyObject
* obj1
= 0 ;
19697 char * kwnames
[] = {
19698 (char *) "self",(char *) "mode", NULL
19701 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:DC_SetMapMode",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
19702 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
19703 if (!SWIG_IsOK(res1
)) {
19704 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
19706 arg1
= reinterpret_cast< wxDC
* >(argp1
);
19707 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
19708 if (!SWIG_IsOK(ecode2
)) {
19709 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
19711 arg2
= static_cast< int >(val2
);
19713 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
19714 (arg1
)->SetMapMode(arg2
);
19715 wxPyEndAllowThreads(__tstate
);
19716 if (PyErr_Occurred()) SWIG_fail
;
19718 resultobj
= SWIG_Py_Void();
19725 SWIGINTERN PyObject
*_wrap_DC_GetUserScale(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
19726 PyObject
*resultobj
= 0;
19727 wxDC
*arg1
= (wxDC
*) 0 ;
19728 double *arg2
= (double *) 0 ;
19729 double *arg3
= (double *) 0 ;
19733 int res2
= SWIG_TMPOBJ
;
19735 int res3
= SWIG_TMPOBJ
;
19736 PyObject
*swig_obj
[1] ;
19740 if (!args
) SWIG_fail
;
19741 swig_obj
[0] = args
;
19742 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
19743 if (!SWIG_IsOK(res1
)) {
19744 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
19746 arg1
= reinterpret_cast< wxDC
* >(argp1
);
19748 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
19749 ((wxDC
const *)arg1
)->GetUserScale(arg2
,arg3
);
19750 wxPyEndAllowThreads(__tstate
);
19751 if (PyErr_Occurred()) SWIG_fail
;
19753 resultobj
= SWIG_Py_Void();
19754 if (SWIG_IsTmpObj(res2
)) {
19755 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_From_double((*arg2
)));
19757 int new_flags
= SWIG_IsNewObj(res2
) ? (SWIG_POINTER_OWN
| 0 ) : 0 ;
19758 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_NewPointerObj((void*)(arg2
), SWIGTYPE_p_double
, new_flags
));
19760 if (SWIG_IsTmpObj(res3
)) {
19761 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_From_double((*arg3
)));
19763 int new_flags
= SWIG_IsNewObj(res3
) ? (SWIG_POINTER_OWN
| 0 ) : 0 ;
19764 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_NewPointerObj((void*)(arg3
), SWIGTYPE_p_double
, new_flags
));
19772 SWIGINTERN PyObject
*_wrap_DC_SetUserScale(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
19773 PyObject
*resultobj
= 0;
19774 wxDC
*arg1
= (wxDC
*) 0 ;
19783 PyObject
* obj0
= 0 ;
19784 PyObject
* obj1
= 0 ;
19785 PyObject
* obj2
= 0 ;
19786 char * kwnames
[] = {
19787 (char *) "self",(char *) "x",(char *) "y", NULL
19790 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:DC_SetUserScale",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
19791 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
19792 if (!SWIG_IsOK(res1
)) {
19793 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
19795 arg1
= reinterpret_cast< wxDC
* >(argp1
);
19796 ecode2
= SWIG_AsVal_double(obj1
, &val2
);
19797 if (!SWIG_IsOK(ecode2
)) {
19798 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
19800 arg2
= static_cast< double >(val2
);
19801 ecode3
= SWIG_AsVal_double(obj2
, &val3
);
19802 if (!SWIG_IsOK(ecode3
)) {
19803 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
19805 arg3
= static_cast< double >(val3
);
19807 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
19808 (arg1
)->SetUserScale(arg2
,arg3
);
19809 wxPyEndAllowThreads(__tstate
);
19810 if (PyErr_Occurred()) SWIG_fail
;
19812 resultobj
= SWIG_Py_Void();
19819 SWIGINTERN PyObject
*_wrap_DC_GetLogicalScale(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
19820 PyObject
*resultobj
= 0;
19821 wxDC
*arg1
= (wxDC
*) 0 ;
19822 double *arg2
= (double *) 0 ;
19823 double *arg3
= (double *) 0 ;
19827 int res2
= SWIG_TMPOBJ
;
19829 int res3
= SWIG_TMPOBJ
;
19830 PyObject
*swig_obj
[1] ;
19834 if (!args
) SWIG_fail
;
19835 swig_obj
[0] = args
;
19836 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
19837 if (!SWIG_IsOK(res1
)) {
19838 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
19840 arg1
= reinterpret_cast< wxDC
* >(argp1
);
19842 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
19843 (arg1
)->GetLogicalScale(arg2
,arg3
);
19844 wxPyEndAllowThreads(__tstate
);
19845 if (PyErr_Occurred()) SWIG_fail
;
19847 resultobj
= SWIG_Py_Void();
19848 if (SWIG_IsTmpObj(res2
)) {
19849 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_From_double((*arg2
)));
19851 int new_flags
= SWIG_IsNewObj(res2
) ? (SWIG_POINTER_OWN
| 0 ) : 0 ;
19852 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_NewPointerObj((void*)(arg2
), SWIGTYPE_p_double
, new_flags
));
19854 if (SWIG_IsTmpObj(res3
)) {
19855 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_From_double((*arg3
)));
19857 int new_flags
= SWIG_IsNewObj(res3
) ? (SWIG_POINTER_OWN
| 0 ) : 0 ;
19858 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_NewPointerObj((void*)(arg3
), SWIGTYPE_p_double
, new_flags
));
19866 SWIGINTERN PyObject
*_wrap_DC_SetLogicalScale(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
19867 PyObject
*resultobj
= 0;
19868 wxDC
*arg1
= (wxDC
*) 0 ;
19877 PyObject
* obj0
= 0 ;
19878 PyObject
* obj1
= 0 ;
19879 PyObject
* obj2
= 0 ;
19880 char * kwnames
[] = {
19881 (char *) "self",(char *) "x",(char *) "y", NULL
19884 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:DC_SetLogicalScale",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
19885 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
19886 if (!SWIG_IsOK(res1
)) {
19887 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
19889 arg1
= reinterpret_cast< wxDC
* >(argp1
);
19890 ecode2
= SWIG_AsVal_double(obj1
, &val2
);
19891 if (!SWIG_IsOK(ecode2
)) {
19892 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
19894 arg2
= static_cast< double >(val2
);
19895 ecode3
= SWIG_AsVal_double(obj2
, &val3
);
19896 if (!SWIG_IsOK(ecode3
)) {
19897 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
19899 arg3
= static_cast< double >(val3
);
19901 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
19902 (arg1
)->SetLogicalScale(arg2
,arg3
);
19903 wxPyEndAllowThreads(__tstate
);
19904 if (PyErr_Occurred()) SWIG_fail
;
19906 resultobj
= SWIG_Py_Void();
19913 SWIGINTERN PyObject
*_wrap_DC_GetLogicalOrigin(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
19914 PyObject
*resultobj
= 0;
19915 wxDC
*arg1
= (wxDC
*) 0 ;
19919 PyObject
*swig_obj
[1] ;
19921 if (!args
) SWIG_fail
;
19922 swig_obj
[0] = args
;
19923 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
19924 if (!SWIG_IsOK(res1
)) {
19925 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
19927 arg1
= reinterpret_cast< wxDC
* >(argp1
);
19929 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
19930 result
= ((wxDC
const *)arg1
)->GetLogicalOrigin();
19931 wxPyEndAllowThreads(__tstate
);
19932 if (PyErr_Occurred()) SWIG_fail
;
19934 resultobj
= SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint
& >(result
))), SWIGTYPE_p_wxPoint
, SWIG_POINTER_OWN
| 0 );
19941 SWIGINTERN PyObject
*_wrap_DC_GetLogicalOriginTuple(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
19942 PyObject
*resultobj
= 0;
19943 wxDC
*arg1
= (wxDC
*) 0 ;
19944 int *arg2
= (int *) 0 ;
19945 int *arg3
= (int *) 0 ;
19949 int res2
= SWIG_TMPOBJ
;
19951 int res3
= SWIG_TMPOBJ
;
19952 PyObject
*swig_obj
[1] ;
19956 if (!args
) SWIG_fail
;
19957 swig_obj
[0] = args
;
19958 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
19959 if (!SWIG_IsOK(res1
)) {
19960 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
19962 arg1
= reinterpret_cast< wxDC
* >(argp1
);
19964 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
19965 ((wxDC
const *)arg1
)->GetLogicalOrigin(arg2
,arg3
);
19966 wxPyEndAllowThreads(__tstate
);
19967 if (PyErr_Occurred()) SWIG_fail
;
19969 resultobj
= SWIG_Py_Void();
19970 if (SWIG_IsTmpObj(res2
)) {
19971 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_From_int((*arg2
)));
19973 int new_flags
= SWIG_IsNewObj(res2
) ? (SWIG_POINTER_OWN
| 0 ) : 0 ;
19974 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_NewPointerObj((void*)(arg2
), SWIGTYPE_p_int
, new_flags
));
19976 if (SWIG_IsTmpObj(res3
)) {
19977 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_From_int((*arg3
)));
19979 int new_flags
= SWIG_IsNewObj(res3
) ? (SWIG_POINTER_OWN
| 0 ) : 0 ;
19980 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_NewPointerObj((void*)(arg3
), SWIGTYPE_p_int
, new_flags
));
19988 SWIGINTERN PyObject
*_wrap_DC_SetLogicalOrigin(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
19989 PyObject
*resultobj
= 0;
19990 wxDC
*arg1
= (wxDC
*) 0 ;
19999 PyObject
* obj0
= 0 ;
20000 PyObject
* obj1
= 0 ;
20001 PyObject
* obj2
= 0 ;
20002 char * kwnames
[] = {
20003 (char *) "self",(char *) "x",(char *) "y", NULL
20006 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:DC_SetLogicalOrigin",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
20007 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
20008 if (!SWIG_IsOK(res1
)) {
20009 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
20011 arg1
= reinterpret_cast< wxDC
* >(argp1
);
20012 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
20013 if (!SWIG_IsOK(ecode2
)) {
20014 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
20016 arg2
= static_cast< int >(val2
);
20017 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
20018 if (!SWIG_IsOK(ecode3
)) {
20019 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
20021 arg3
= static_cast< int >(val3
);
20023 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
20024 (arg1
)->SetLogicalOrigin(arg2
,arg3
);
20025 wxPyEndAllowThreads(__tstate
);
20026 if (PyErr_Occurred()) SWIG_fail
;
20028 resultobj
= SWIG_Py_Void();
20035 SWIGINTERN PyObject
*_wrap_DC_SetLogicalOriginPoint(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
20036 PyObject
*resultobj
= 0;
20037 wxDC
*arg1
= (wxDC
*) 0 ;
20038 wxPoint
*arg2
= 0 ;
20042 PyObject
* obj0
= 0 ;
20043 PyObject
* obj1
= 0 ;
20044 char * kwnames
[] = {
20045 (char *) "self",(char *) "point", NULL
20048 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:DC_SetLogicalOriginPoint",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
20049 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
20050 if (!SWIG_IsOK(res1
)) {
20051 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20053 arg1
= reinterpret_cast< wxDC
* >(argp1
);
20056 if ( ! wxPoint_helper(obj1
, &arg2
)) SWIG_fail
;
20059 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
20060 wxDC_SetLogicalOriginPoint(arg1
,(wxPoint
const &)*arg2
);
20061 wxPyEndAllowThreads(__tstate
);
20062 if (PyErr_Occurred()) SWIG_fail
;
20064 resultobj
= SWIG_Py_Void();
20071 SWIGINTERN PyObject
*_wrap_DC_GetDeviceOrigin(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
20072 PyObject
*resultobj
= 0;
20073 wxDC
*arg1
= (wxDC
*) 0 ;
20077 PyObject
*swig_obj
[1] ;
20079 if (!args
) SWIG_fail
;
20080 swig_obj
[0] = args
;
20081 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
20082 if (!SWIG_IsOK(res1
)) {
20083 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
20085 arg1
= reinterpret_cast< wxDC
* >(argp1
);
20087 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
20088 result
= ((wxDC
const *)arg1
)->GetDeviceOrigin();
20089 wxPyEndAllowThreads(__tstate
);
20090 if (PyErr_Occurred()) SWIG_fail
;
20092 resultobj
= SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint
& >(result
))), SWIGTYPE_p_wxPoint
, SWIG_POINTER_OWN
| 0 );
20099 SWIGINTERN PyObject
*_wrap_DC_GetDeviceOriginTuple(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
20100 PyObject
*resultobj
= 0;
20101 wxDC
*arg1
= (wxDC
*) 0 ;
20102 int *arg2
= (int *) 0 ;
20103 int *arg3
= (int *) 0 ;
20107 int res2
= SWIG_TMPOBJ
;
20109 int res3
= SWIG_TMPOBJ
;
20110 PyObject
*swig_obj
[1] ;
20114 if (!args
) SWIG_fail
;
20115 swig_obj
[0] = args
;
20116 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
20117 if (!SWIG_IsOK(res1
)) {
20118 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
20120 arg1
= reinterpret_cast< wxDC
* >(argp1
);
20122 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
20123 ((wxDC
const *)arg1
)->GetDeviceOrigin(arg2
,arg3
);
20124 wxPyEndAllowThreads(__tstate
);
20125 if (PyErr_Occurred()) SWIG_fail
;
20127 resultobj
= SWIG_Py_Void();
20128 if (SWIG_IsTmpObj(res2
)) {
20129 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_From_int((*arg2
)));
20131 int new_flags
= SWIG_IsNewObj(res2
) ? (SWIG_POINTER_OWN
| 0 ) : 0 ;
20132 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_NewPointerObj((void*)(arg2
), SWIGTYPE_p_int
, new_flags
));
20134 if (SWIG_IsTmpObj(res3
)) {
20135 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_From_int((*arg3
)));
20137 int new_flags
= SWIG_IsNewObj(res3
) ? (SWIG_POINTER_OWN
| 0 ) : 0 ;
20138 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_NewPointerObj((void*)(arg3
), SWIGTYPE_p_int
, new_flags
));
20146 SWIGINTERN PyObject
*_wrap_DC_SetDeviceOrigin(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
20147 PyObject
*resultobj
= 0;
20148 wxDC
*arg1
= (wxDC
*) 0 ;
20157 PyObject
* obj0
= 0 ;
20158 PyObject
* obj1
= 0 ;
20159 PyObject
* obj2
= 0 ;
20160 char * kwnames
[] = {
20161 (char *) "self",(char *) "x",(char *) "y", NULL
20164 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:DC_SetDeviceOrigin",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
20165 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
20166 if (!SWIG_IsOK(res1
)) {
20167 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
20169 arg1
= reinterpret_cast< wxDC
* >(argp1
);
20170 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
20171 if (!SWIG_IsOK(ecode2
)) {
20172 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
20174 arg2
= static_cast< int >(val2
);
20175 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
20176 if (!SWIG_IsOK(ecode3
)) {
20177 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
20179 arg3
= static_cast< int >(val3
);
20181 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
20182 (arg1
)->SetDeviceOrigin(arg2
,arg3
);
20183 wxPyEndAllowThreads(__tstate
);
20184 if (PyErr_Occurred()) SWIG_fail
;
20186 resultobj
= SWIG_Py_Void();
20193 SWIGINTERN PyObject
*_wrap_DC_SetDeviceOriginPoint(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
20194 PyObject
*resultobj
= 0;
20195 wxDC
*arg1
= (wxDC
*) 0 ;
20196 wxPoint
*arg2
= 0 ;
20200 PyObject
* obj0
= 0 ;
20201 PyObject
* obj1
= 0 ;
20202 char * kwnames
[] = {
20203 (char *) "self",(char *) "point", NULL
20206 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:DC_SetDeviceOriginPoint",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
20207 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
20208 if (!SWIG_IsOK(res1
)) {
20209 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20211 arg1
= reinterpret_cast< wxDC
* >(argp1
);
20214 if ( ! wxPoint_helper(obj1
, &arg2
)) SWIG_fail
;
20217 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
20218 wxDC_SetDeviceOriginPoint(arg1
,(wxPoint
const &)*arg2
);
20219 wxPyEndAllowThreads(__tstate
);
20220 if (PyErr_Occurred()) SWIG_fail
;
20222 resultobj
= SWIG_Py_Void();
20229 SWIGINTERN PyObject
*_wrap_DC_SetAxisOrientation(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
20230 PyObject
*resultobj
= 0;
20231 wxDC
*arg1
= (wxDC
*) 0 ;
20240 PyObject
* obj0
= 0 ;
20241 PyObject
* obj1
= 0 ;
20242 PyObject
* obj2
= 0 ;
20243 char * kwnames
[] = {
20244 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
20247 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:DC_SetAxisOrientation",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
20248 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
20249 if (!SWIG_IsOK(res1
)) {
20250 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
20252 arg1
= reinterpret_cast< wxDC
* >(argp1
);
20253 ecode2
= SWIG_AsVal_bool(obj1
, &val2
);
20254 if (!SWIG_IsOK(ecode2
)) {
20255 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
20257 arg2
= static_cast< bool >(val2
);
20258 ecode3
= SWIG_AsVal_bool(obj2
, &val3
);
20259 if (!SWIG_IsOK(ecode3
)) {
20260 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
20262 arg3
= static_cast< bool >(val3
);
20264 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
20265 (arg1
)->SetAxisOrientation(arg2
,arg3
);
20266 wxPyEndAllowThreads(__tstate
);
20267 if (PyErr_Occurred()) SWIG_fail
;
20269 resultobj
= SWIG_Py_Void();
20276 SWIGINTERN PyObject
*_wrap_DC_GetLogicalFunction(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
20277 PyObject
*resultobj
= 0;
20278 wxDC
*arg1
= (wxDC
*) 0 ;
20282 PyObject
*swig_obj
[1] ;
20284 if (!args
) SWIG_fail
;
20285 swig_obj
[0] = args
;
20286 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
20287 if (!SWIG_IsOK(res1
)) {
20288 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
20290 arg1
= reinterpret_cast< wxDC
* >(argp1
);
20292 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
20293 result
= (int)((wxDC
const *)arg1
)->GetLogicalFunction();
20294 wxPyEndAllowThreads(__tstate
);
20295 if (PyErr_Occurred()) SWIG_fail
;
20297 resultobj
= SWIG_From_int(static_cast< int >(result
));
20304 SWIGINTERN PyObject
*_wrap_DC_SetLogicalFunction(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
20305 PyObject
*resultobj
= 0;
20306 wxDC
*arg1
= (wxDC
*) 0 ;
20312 PyObject
* obj0
= 0 ;
20313 PyObject
* obj1
= 0 ;
20314 char * kwnames
[] = {
20315 (char *) "self",(char *) "function", NULL
20318 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:DC_SetLogicalFunction",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
20319 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
20320 if (!SWIG_IsOK(res1
)) {
20321 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
20323 arg1
= reinterpret_cast< wxDC
* >(argp1
);
20324 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
20325 if (!SWIG_IsOK(ecode2
)) {
20326 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
20328 arg2
= static_cast< int >(val2
);
20330 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
20331 (arg1
)->SetLogicalFunction(arg2
);
20332 wxPyEndAllowThreads(__tstate
);
20333 if (PyErr_Occurred()) SWIG_fail
;
20335 resultobj
= SWIG_Py_Void();
20342 SWIGINTERN PyObject
*_wrap_DC_ComputeScaleAndOrigin(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
20343 PyObject
*resultobj
= 0;
20344 wxDC
*arg1
= (wxDC
*) 0 ;
20347 PyObject
*swig_obj
[1] ;
20349 if (!args
) SWIG_fail
;
20350 swig_obj
[0] = args
;
20351 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
20352 if (!SWIG_IsOK(res1
)) {
20353 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
20355 arg1
= reinterpret_cast< wxDC
* >(argp1
);
20357 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
20358 (arg1
)->ComputeScaleAndOrigin();
20359 wxPyEndAllowThreads(__tstate
);
20360 if (PyErr_Occurred()) SWIG_fail
;
20362 resultobj
= SWIG_Py_Void();
20369 SWIGINTERN PyObject
*_wrap_DC_CalcBoundingBox(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
20370 PyObject
*resultobj
= 0;
20371 wxDC
*arg1
= (wxDC
*) 0 ;
20380 PyObject
* obj0
= 0 ;
20381 PyObject
* obj1
= 0 ;
20382 PyObject
* obj2
= 0 ;
20383 char * kwnames
[] = {
20384 (char *) "self",(char *) "x",(char *) "y", NULL
20387 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:DC_CalcBoundingBox",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
20388 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
20389 if (!SWIG_IsOK(res1
)) {
20390 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
20392 arg1
= reinterpret_cast< wxDC
* >(argp1
);
20393 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
20394 if (!SWIG_IsOK(ecode2
)) {
20395 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
20397 arg2
= static_cast< int >(val2
);
20398 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
20399 if (!SWIG_IsOK(ecode3
)) {
20400 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
20402 arg3
= static_cast< int >(val3
);
20404 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
20405 (arg1
)->CalcBoundingBox(arg2
,arg3
);
20406 wxPyEndAllowThreads(__tstate
);
20407 if (PyErr_Occurred()) SWIG_fail
;
20409 resultobj
= SWIG_Py_Void();
20416 SWIGINTERN PyObject
*_wrap_DC_CalcBoundingBoxPoint(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
20417 PyObject
*resultobj
= 0;
20418 wxDC
*arg1
= (wxDC
*) 0 ;
20419 wxPoint
*arg2
= 0 ;
20423 PyObject
* obj0
= 0 ;
20424 PyObject
* obj1
= 0 ;
20425 char * kwnames
[] = {
20426 (char *) "self",(char *) "point", NULL
20429 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
20430 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
20431 if (!SWIG_IsOK(res1
)) {
20432 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20434 arg1
= reinterpret_cast< wxDC
* >(argp1
);
20437 if ( ! wxPoint_helper(obj1
, &arg2
)) SWIG_fail
;
20440 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
20441 wxDC_CalcBoundingBoxPoint(arg1
,(wxPoint
const &)*arg2
);
20442 wxPyEndAllowThreads(__tstate
);
20443 if (PyErr_Occurred()) SWIG_fail
;
20445 resultobj
= SWIG_Py_Void();
20452 SWIGINTERN PyObject
*_wrap_DC_ResetBoundingBox(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
20453 PyObject
*resultobj
= 0;
20454 wxDC
*arg1
= (wxDC
*) 0 ;
20457 PyObject
*swig_obj
[1] ;
20459 if (!args
) SWIG_fail
;
20460 swig_obj
[0] = args
;
20461 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
20462 if (!SWIG_IsOK(res1
)) {
20463 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
20465 arg1
= reinterpret_cast< wxDC
* >(argp1
);
20467 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
20468 (arg1
)->ResetBoundingBox();
20469 wxPyEndAllowThreads(__tstate
);
20470 if (PyErr_Occurred()) SWIG_fail
;
20472 resultobj
= SWIG_Py_Void();
20479 SWIGINTERN PyObject
*_wrap_DC_MinX(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
20480 PyObject
*resultobj
= 0;
20481 wxDC
*arg1
= (wxDC
*) 0 ;
20485 PyObject
*swig_obj
[1] ;
20487 if (!args
) SWIG_fail
;
20488 swig_obj
[0] = args
;
20489 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
20490 if (!SWIG_IsOK(res1
)) {
20491 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
20493 arg1
= reinterpret_cast< wxDC
* >(argp1
);
20495 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
20496 result
= (int)((wxDC
const *)arg1
)->MinX();
20497 wxPyEndAllowThreads(__tstate
);
20498 if (PyErr_Occurred()) SWIG_fail
;
20500 resultobj
= SWIG_From_int(static_cast< int >(result
));
20507 SWIGINTERN PyObject
*_wrap_DC_MaxX(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
20508 PyObject
*resultobj
= 0;
20509 wxDC
*arg1
= (wxDC
*) 0 ;
20513 PyObject
*swig_obj
[1] ;
20515 if (!args
) SWIG_fail
;
20516 swig_obj
[0] = args
;
20517 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
20518 if (!SWIG_IsOK(res1
)) {
20519 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
20521 arg1
= reinterpret_cast< wxDC
* >(argp1
);
20523 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
20524 result
= (int)((wxDC
const *)arg1
)->MaxX();
20525 wxPyEndAllowThreads(__tstate
);
20526 if (PyErr_Occurred()) SWIG_fail
;
20528 resultobj
= SWIG_From_int(static_cast< int >(result
));
20535 SWIGINTERN PyObject
*_wrap_DC_MinY(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
20536 PyObject
*resultobj
= 0;
20537 wxDC
*arg1
= (wxDC
*) 0 ;
20541 PyObject
*swig_obj
[1] ;
20543 if (!args
) SWIG_fail
;
20544 swig_obj
[0] = args
;
20545 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
20546 if (!SWIG_IsOK(res1
)) {
20547 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
20549 arg1
= reinterpret_cast< wxDC
* >(argp1
);
20551 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
20552 result
= (int)((wxDC
const *)arg1
)->MinY();
20553 wxPyEndAllowThreads(__tstate
);
20554 if (PyErr_Occurred()) SWIG_fail
;
20556 resultobj
= SWIG_From_int(static_cast< int >(result
));
20563 SWIGINTERN PyObject
*_wrap_DC_MaxY(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
20564 PyObject
*resultobj
= 0;
20565 wxDC
*arg1
= (wxDC
*) 0 ;
20569 PyObject
*swig_obj
[1] ;
20571 if (!args
) SWIG_fail
;
20572 swig_obj
[0] = args
;
20573 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
20574 if (!SWIG_IsOK(res1
)) {
20575 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
20577 arg1
= reinterpret_cast< wxDC
* >(argp1
);
20579 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
20580 result
= (int)((wxDC
const *)arg1
)->MaxY();
20581 wxPyEndAllowThreads(__tstate
);
20582 if (PyErr_Occurred()) SWIG_fail
;
20584 resultobj
= SWIG_From_int(static_cast< int >(result
));
20591 SWIGINTERN PyObject
*_wrap_DC_GetBoundingBox(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
20592 PyObject
*resultobj
= 0;
20593 wxDC
*arg1
= (wxDC
*) 0 ;
20594 int *arg2
= (int *) 0 ;
20595 int *arg3
= (int *) 0 ;
20596 int *arg4
= (int *) 0 ;
20597 int *arg5
= (int *) 0 ;
20601 int res2
= SWIG_TMPOBJ
;
20603 int res3
= SWIG_TMPOBJ
;
20605 int res4
= SWIG_TMPOBJ
;
20607 int res5
= SWIG_TMPOBJ
;
20608 PyObject
*swig_obj
[1] ;
20614 if (!args
) SWIG_fail
;
20615 swig_obj
[0] = args
;
20616 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
20617 if (!SWIG_IsOK(res1
)) {
20618 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
20620 arg1
= reinterpret_cast< wxDC
* >(argp1
);
20622 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
20623 wxDC_GetBoundingBox(arg1
,arg2
,arg3
,arg4
,arg5
);
20624 wxPyEndAllowThreads(__tstate
);
20625 if (PyErr_Occurred()) SWIG_fail
;
20627 resultobj
= SWIG_Py_Void();
20628 if (SWIG_IsTmpObj(res2
)) {
20629 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_From_int((*arg2
)));
20631 int new_flags
= SWIG_IsNewObj(res2
) ? (SWIG_POINTER_OWN
| 0 ) : 0 ;
20632 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_NewPointerObj((void*)(arg2
), SWIGTYPE_p_int
, new_flags
));
20634 if (SWIG_IsTmpObj(res3
)) {
20635 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_From_int((*arg3
)));
20637 int new_flags
= SWIG_IsNewObj(res3
) ? (SWIG_POINTER_OWN
| 0 ) : 0 ;
20638 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_NewPointerObj((void*)(arg3
), SWIGTYPE_p_int
, new_flags
));
20640 if (SWIG_IsTmpObj(res4
)) {
20641 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_From_int((*arg4
)));
20643 int new_flags
= SWIG_IsNewObj(res4
) ? (SWIG_POINTER_OWN
| 0 ) : 0 ;
20644 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_NewPointerObj((void*)(arg4
), SWIGTYPE_p_int
, new_flags
));
20646 if (SWIG_IsTmpObj(res5
)) {
20647 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_From_int((*arg5
)));
20649 int new_flags
= SWIG_IsNewObj(res5
) ? (SWIG_POINTER_OWN
| 0 ) : 0 ;
20650 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_NewPointerObj((void*)(arg5
), SWIGTYPE_p_int
, new_flags
));
20658 SWIGINTERN PyObject
*_wrap_DC_GetHDC(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
20659 PyObject
*resultobj
= 0;
20660 wxDC
*arg1
= (wxDC
*) 0 ;
20664 PyObject
*swig_obj
[1] ;
20666 if (!args
) SWIG_fail
;
20667 swig_obj
[0] = args
;
20668 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
20669 if (!SWIG_IsOK(res1
)) {
20670 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC_GetHDC" "', expected argument " "1"" of type '" "wxDC *""'");
20672 arg1
= reinterpret_cast< wxDC
* >(argp1
);
20674 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
20675 result
= (long)(arg1
)->GetHDC();
20676 wxPyEndAllowThreads(__tstate
);
20677 if (PyErr_Occurred()) SWIG_fail
;
20679 resultobj
= SWIG_From_long(static_cast< long >(result
));
20686 SWIGINTERN PyObject
*_wrap_DC__DrawPointList(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
20687 PyObject
*resultobj
= 0;
20688 wxDC
*arg1
= (wxDC
*) 0 ;
20689 PyObject
*arg2
= (PyObject
*) 0 ;
20690 PyObject
*arg3
= (PyObject
*) 0 ;
20691 PyObject
*arg4
= (PyObject
*) 0 ;
20692 PyObject
*result
= 0 ;
20695 PyObject
* obj0
= 0 ;
20696 PyObject
* obj1
= 0 ;
20697 PyObject
* obj2
= 0 ;
20698 PyObject
* obj3
= 0 ;
20699 char * kwnames
[] = {
20700 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20703 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:DC__DrawPointList",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) SWIG_fail
;
20704 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
20705 if (!SWIG_IsOK(res1
)) {
20706 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
20708 arg1
= reinterpret_cast< wxDC
* >(argp1
);
20713 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
20714 result
= (PyObject
*)wxDC__DrawPointList(arg1
,arg2
,arg3
,arg4
);
20715 wxPyEndAllowThreads(__tstate
);
20716 if (PyErr_Occurred()) SWIG_fail
;
20718 resultobj
= result
;
20725 SWIGINTERN PyObject
*_wrap_DC__DrawLineList(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
20726 PyObject
*resultobj
= 0;
20727 wxDC
*arg1
= (wxDC
*) 0 ;
20728 PyObject
*arg2
= (PyObject
*) 0 ;
20729 PyObject
*arg3
= (PyObject
*) 0 ;
20730 PyObject
*arg4
= (PyObject
*) 0 ;
20731 PyObject
*result
= 0 ;
20734 PyObject
* obj0
= 0 ;
20735 PyObject
* obj1
= 0 ;
20736 PyObject
* obj2
= 0 ;
20737 PyObject
* obj3
= 0 ;
20738 char * kwnames
[] = {
20739 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20742 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:DC__DrawLineList",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) SWIG_fail
;
20743 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
20744 if (!SWIG_IsOK(res1
)) {
20745 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
20747 arg1
= reinterpret_cast< wxDC
* >(argp1
);
20752 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
20753 result
= (PyObject
*)wxDC__DrawLineList(arg1
,arg2
,arg3
,arg4
);
20754 wxPyEndAllowThreads(__tstate
);
20755 if (PyErr_Occurred()) SWIG_fail
;
20757 resultobj
= result
;
20764 SWIGINTERN PyObject
*_wrap_DC__DrawRectangleList(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
20765 PyObject
*resultobj
= 0;
20766 wxDC
*arg1
= (wxDC
*) 0 ;
20767 PyObject
*arg2
= (PyObject
*) 0 ;
20768 PyObject
*arg3
= (PyObject
*) 0 ;
20769 PyObject
*arg4
= (PyObject
*) 0 ;
20770 PyObject
*result
= 0 ;
20773 PyObject
* obj0
= 0 ;
20774 PyObject
* obj1
= 0 ;
20775 PyObject
* obj2
= 0 ;
20776 PyObject
* obj3
= 0 ;
20777 char * kwnames
[] = {
20778 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20781 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:DC__DrawRectangleList",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) SWIG_fail
;
20782 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
20783 if (!SWIG_IsOK(res1
)) {
20784 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
20786 arg1
= reinterpret_cast< wxDC
* >(argp1
);
20791 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
20792 result
= (PyObject
*)wxDC__DrawRectangleList(arg1
,arg2
,arg3
,arg4
);
20793 wxPyEndAllowThreads(__tstate
);
20794 if (PyErr_Occurred()) SWIG_fail
;
20796 resultobj
= result
;
20803 SWIGINTERN PyObject
*_wrap_DC__DrawEllipseList(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
20804 PyObject
*resultobj
= 0;
20805 wxDC
*arg1
= (wxDC
*) 0 ;
20806 PyObject
*arg2
= (PyObject
*) 0 ;
20807 PyObject
*arg3
= (PyObject
*) 0 ;
20808 PyObject
*arg4
= (PyObject
*) 0 ;
20809 PyObject
*result
= 0 ;
20812 PyObject
* obj0
= 0 ;
20813 PyObject
* obj1
= 0 ;
20814 PyObject
* obj2
= 0 ;
20815 PyObject
* obj3
= 0 ;
20816 char * kwnames
[] = {
20817 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20820 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:DC__DrawEllipseList",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) SWIG_fail
;
20821 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
20822 if (!SWIG_IsOK(res1
)) {
20823 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
20825 arg1
= reinterpret_cast< wxDC
* >(argp1
);
20830 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
20831 result
= (PyObject
*)wxDC__DrawEllipseList(arg1
,arg2
,arg3
,arg4
);
20832 wxPyEndAllowThreads(__tstate
);
20833 if (PyErr_Occurred()) SWIG_fail
;
20835 resultobj
= result
;
20842 SWIGINTERN PyObject
*_wrap_DC__DrawPolygonList(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
20843 PyObject
*resultobj
= 0;
20844 wxDC
*arg1
= (wxDC
*) 0 ;
20845 PyObject
*arg2
= (PyObject
*) 0 ;
20846 PyObject
*arg3
= (PyObject
*) 0 ;
20847 PyObject
*arg4
= (PyObject
*) 0 ;
20848 PyObject
*result
= 0 ;
20851 PyObject
* obj0
= 0 ;
20852 PyObject
* obj1
= 0 ;
20853 PyObject
* obj2
= 0 ;
20854 PyObject
* obj3
= 0 ;
20855 char * kwnames
[] = {
20856 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20859 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:DC__DrawPolygonList",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) SWIG_fail
;
20860 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
20861 if (!SWIG_IsOK(res1
)) {
20862 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
20864 arg1
= reinterpret_cast< wxDC
* >(argp1
);
20869 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
20870 result
= (PyObject
*)wxDC__DrawPolygonList(arg1
,arg2
,arg3
,arg4
);
20871 wxPyEndAllowThreads(__tstate
);
20872 if (PyErr_Occurred()) SWIG_fail
;
20874 resultobj
= result
;
20881 SWIGINTERN PyObject
*_wrap_DC__DrawTextList(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
20882 PyObject
*resultobj
= 0;
20883 wxDC
*arg1
= (wxDC
*) 0 ;
20884 PyObject
*arg2
= (PyObject
*) 0 ;
20885 PyObject
*arg3
= (PyObject
*) 0 ;
20886 PyObject
*arg4
= (PyObject
*) 0 ;
20887 PyObject
*arg5
= (PyObject
*) 0 ;
20888 PyObject
*result
= 0 ;
20891 PyObject
* obj0
= 0 ;
20892 PyObject
* obj1
= 0 ;
20893 PyObject
* obj2
= 0 ;
20894 PyObject
* obj3
= 0 ;
20895 PyObject
* obj4
= 0 ;
20896 char * kwnames
[] = {
20897 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
20900 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOOO:DC__DrawTextList",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) SWIG_fail
;
20901 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
20902 if (!SWIG_IsOK(res1
)) {
20903 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
20905 arg1
= reinterpret_cast< wxDC
* >(argp1
);
20911 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
20912 result
= (PyObject
*)wxDC__DrawTextList(arg1
,arg2
,arg3
,arg4
,arg5
);
20913 wxPyEndAllowThreads(__tstate
);
20914 if (PyErr_Occurred()) SWIG_fail
;
20916 resultobj
= result
;
20923 SWIGINTERN PyObject
*DC_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
20925 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
20926 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC
, SWIG_NewClientData(obj
));
20927 return SWIG_Py_Void();
20930 SWIGINTERN PyObject
*_wrap_new_MemoryDC(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
20931 PyObject
*resultobj
= 0;
20932 wxMemoryDC
*result
= 0 ;
20934 if (!SWIG_Python_UnpackTuple(args
,"new_MemoryDC",0,0,0)) SWIG_fail
;
20936 if (!wxPyCheckForApp()) SWIG_fail
;
20937 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
20938 result
= (wxMemoryDC
*)new wxMemoryDC();
20939 wxPyEndAllowThreads(__tstate
);
20940 if (PyErr_Occurred()) SWIG_fail
;
20942 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxMemoryDC
, SWIG_POINTER_NEW
| 0 );
20949 SWIGINTERN PyObject
*_wrap_new_MemoryDCFromDC(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
20950 PyObject
*resultobj
= 0;
20951 wxDC
*arg1
= (wxDC
*) 0 ;
20952 wxMemoryDC
*result
= 0 ;
20955 PyObject
* obj0
= 0 ;
20956 char * kwnames
[] = {
20957 (char *) "oldDC", NULL
20960 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:new_MemoryDCFromDC",kwnames
,&obj0
)) SWIG_fail
;
20961 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
20962 if (!SWIG_IsOK(res1
)) {
20963 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
20965 arg1
= reinterpret_cast< wxDC
* >(argp1
);
20967 if (!wxPyCheckForApp()) SWIG_fail
;
20968 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
20969 result
= (wxMemoryDC
*)new wxMemoryDC(arg1
);
20970 wxPyEndAllowThreads(__tstate
);
20971 if (PyErr_Occurred()) SWIG_fail
;
20973 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxMemoryDC
, SWIG_POINTER_OWN
| 0 );
20980 SWIGINTERN PyObject
*_wrap_MemoryDC_SelectObject(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
20981 PyObject
*resultobj
= 0;
20982 wxMemoryDC
*arg1
= (wxMemoryDC
*) 0 ;
20983 wxBitmap
*arg2
= 0 ;
20988 PyObject
* obj0
= 0 ;
20989 PyObject
* obj1
= 0 ;
20990 char * kwnames
[] = {
20991 (char *) "self",(char *) "bitmap", NULL
20994 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:MemoryDC_SelectObject",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
20995 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxMemoryDC
, 0 | 0 );
20996 if (!SWIG_IsOK(res1
)) {
20997 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
20999 arg1
= reinterpret_cast< wxMemoryDC
* >(argp1
);
21000 res2
= SWIG_ConvertPtr(obj1
, &argp2
, SWIGTYPE_p_wxBitmap
, 0 | 0);
21001 if (!SWIG_IsOK(res2
)) {
21002 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21005 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21007 arg2
= reinterpret_cast< wxBitmap
* >(argp2
);
21009 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
21010 (arg1
)->SelectObject((wxBitmap
const &)*arg2
);
21011 wxPyEndAllowThreads(__tstate
);
21012 if (PyErr_Occurred()) SWIG_fail
;
21014 resultobj
= SWIG_Py_Void();
21021 SWIGINTERN PyObject
*MemoryDC_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
21023 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
21024 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC
, SWIG_NewClientData(obj
));
21025 return SWIG_Py_Void();
21028 SWIGINTERN PyObject
*MemoryDC_swiginit(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
21029 return SWIG_Python_InitShadowInstance(args
);
21032 SWIGINTERN PyObject
*_wrap_new_BufferedDC__SWIG_0(PyObject
*SWIGUNUSEDPARM(self
), int nobjs
, PyObject
**swig_obj
) {
21033 PyObject
*resultobj
= 0;
21034 wxDC
*arg1
= (wxDC
*) 0 ;
21035 wxBitmap
const &arg2_defvalue
= wxNullBitmap
;
21036 wxBitmap
*arg2
= (wxBitmap
*) &arg2_defvalue
;
21037 int arg3
= (int) wxBUFFER_CLIENT_AREA
;
21038 wxBufferedDC
*result
= 0 ;
21046 if ((nobjs
< 1) || (nobjs
> 3)) SWIG_fail
;
21047 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
21048 if (!SWIG_IsOK(res1
)) {
21049 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
21051 arg1
= reinterpret_cast< wxDC
* >(argp1
);
21053 res2
= SWIG_ConvertPtr(swig_obj
[1], &argp2
, SWIGTYPE_p_wxBitmap
, 0 | 0);
21054 if (!SWIG_IsOK(res2
)) {
21055 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21058 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21060 arg2
= reinterpret_cast< wxBitmap
* >(argp2
);
21063 ecode3
= SWIG_AsVal_int(swig_obj
[2], &val3
);
21064 if (!SWIG_IsOK(ecode3
)) {
21065 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
21067 arg3
= static_cast< int >(val3
);
21070 if (!wxPyCheckForApp()) SWIG_fail
;
21071 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
21072 result
= (wxBufferedDC
*)new wxBufferedDC(arg1
,(wxBitmap
const &)*arg2
,arg3
);
21073 wxPyEndAllowThreads(__tstate
);
21074 if (PyErr_Occurred()) SWIG_fail
;
21076 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxBufferedDC
, SWIG_POINTER_NEW
| 0 );
21083 SWIGINTERN PyObject
*_wrap_new_BufferedDC__SWIG_1(PyObject
*SWIGUNUSEDPARM(self
), int nobjs
, PyObject
**swig_obj
) {
21084 PyObject
*resultobj
= 0;
21085 wxDC
*arg1
= (wxDC
*) 0 ;
21087 int arg3
= (int) wxBUFFER_CLIENT_AREA
;
21088 wxBufferedDC
*result
= 0 ;
21095 if ((nobjs
< 2) || (nobjs
> 3)) SWIG_fail
;
21096 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxDC
, 0 | 0 );
21097 if (!SWIG_IsOK(res1
)) {
21098 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
21100 arg1
= reinterpret_cast< wxDC
* >(argp1
);
21103 if ( ! wxSize_helper(swig_obj
[1], &arg2
)) SWIG_fail
;
21106 ecode3
= SWIG_AsVal_int(swig_obj
[2], &val3
);
21107 if (!SWIG_IsOK(ecode3
)) {
21108 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
21110 arg3
= static_cast< int >(val3
);
21113 if (!wxPyCheckForApp()) SWIG_fail
;
21114 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
21115 result
= (wxBufferedDC
*)new wxBufferedDC(arg1
,(wxSize
const &)*arg2
,arg3
);
21116 wxPyEndAllowThreads(__tstate
);
21117 if (PyErr_Occurred()) SWIG_fail
;
21119 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxBufferedDC
, SWIG_POINTER_NEW
| 0 );
21126 SWIGINTERN PyObject
*_wrap_new_BufferedDC(PyObject
*self
, PyObject
*args
) {
21130 if (!(argc
= SWIG_Python_UnpackTuple(args
,"new_BufferedDC",0,3,argv
))) SWIG_fail
;
21132 if ((argc
>= 1) && (argc
<= 3)) {
21136 int res
= SWIG_ConvertPtr(argv
[1], 0, SWIGTYPE_p_wxBitmap
, 0);
21137 _v
= SWIG_CheckState(res
);
21139 if (!_v
) goto check_1
;
21141 return _wrap_new_BufferedDC__SWIG_0(self
, argc
, argv
);
21145 if ((argc
>= 2) && (argc
<= 3)) {
21146 return _wrap_new_BufferedDC__SWIG_1(self
, argc
, argv
);
21150 SWIG_SetErrorMsg(PyExc_NotImplementedError
,"No matching function for overloaded 'new_BufferedDC'");
21155 SWIGINTERN PyObject
*_wrap_delete_BufferedDC(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
21156 PyObject
*resultobj
= 0;
21157 wxBufferedDC
*arg1
= (wxBufferedDC
*) 0 ;
21160 PyObject
*swig_obj
[1] ;
21162 if (!args
) SWIG_fail
;
21163 swig_obj
[0] = args
;
21164 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxBufferedDC
, SWIG_POINTER_DISOWN
| 0 );
21165 if (!SWIG_IsOK(res1
)) {
21166 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
21168 arg1
= reinterpret_cast< wxBufferedDC
* >(argp1
);
21170 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
21173 wxPyEndAllowThreads(__tstate
);
21174 if (PyErr_Occurred()) SWIG_fail
;
21176 resultobj
= SWIG_Py_Void();
21183 SWIGINTERN PyObject
*_wrap_BufferedDC_UnMask(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
21184 PyObject
*resultobj
= 0;
21185 wxBufferedDC
*arg1
= (wxBufferedDC
*) 0 ;
21188 PyObject
*swig_obj
[1] ;
21190 if (!args
) SWIG_fail
;
21191 swig_obj
[0] = args
;
21192 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxBufferedDC
, 0 | 0 );
21193 if (!SWIG_IsOK(res1
)) {
21194 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
21196 arg1
= reinterpret_cast< wxBufferedDC
* >(argp1
);
21198 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
21200 wxPyEndAllowThreads(__tstate
);
21201 if (PyErr_Occurred()) SWIG_fail
;
21203 resultobj
= SWIG_Py_Void();
21210 SWIGINTERN PyObject
*BufferedDC_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
21212 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
21213 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC
, SWIG_NewClientData(obj
));
21214 return SWIG_Py_Void();
21217 SWIGINTERN PyObject
*BufferedDC_swiginit(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
21218 return SWIG_Python_InitShadowInstance(args
);
21221 SWIGINTERN PyObject
*_wrap_new_BufferedPaintDC(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
21222 PyObject
*resultobj
= 0;
21223 wxWindow
*arg1
= (wxWindow
*) 0 ;
21224 wxBitmap
const &arg2_defvalue
= wxNullBitmap
;
21225 wxBitmap
*arg2
= (wxBitmap
*) &arg2_defvalue
;
21226 int arg3
= (int) wxBUFFER_CLIENT_AREA
;
21227 wxBufferedPaintDC
*result
= 0 ;
21234 PyObject
* obj0
= 0 ;
21235 PyObject
* obj1
= 0 ;
21236 PyObject
* obj2
= 0 ;
21237 char * kwnames
[] = {
21238 (char *) "window",(char *) "buffer",(char *) "style", NULL
21241 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OO:new_BufferedPaintDC",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
21242 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxWindow
, 0 | 0 );
21243 if (!SWIG_IsOK(res1
)) {
21244 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
21246 arg1
= reinterpret_cast< wxWindow
* >(argp1
);
21248 res2
= SWIG_ConvertPtr(obj1
, &argp2
, SWIGTYPE_p_wxBitmap
, 0 | 0);
21249 if (!SWIG_IsOK(res2
)) {
21250 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21253 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21255 arg2
= reinterpret_cast< wxBitmap
* >(argp2
);
21258 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
21259 if (!SWIG_IsOK(ecode3
)) {
21260 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
21262 arg3
= static_cast< int >(val3
);
21265 if (!wxPyCheckForApp()) SWIG_fail
;
21266 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
21267 result
= (wxBufferedPaintDC
*)new wxBufferedPaintDC(arg1
,(wxBitmap
const &)*arg2
,arg3
);
21268 wxPyEndAllowThreads(__tstate
);
21269 if (PyErr_Occurred()) SWIG_fail
;
21271 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxBufferedPaintDC
, SWIG_POINTER_NEW
| 0 );
21278 SWIGINTERN PyObject
*BufferedPaintDC_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
21280 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
21281 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC
, SWIG_NewClientData(obj
));
21282 return SWIG_Py_Void();
21285 SWIGINTERN PyObject
*BufferedPaintDC_swiginit(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
21286 return SWIG_Python_InitShadowInstance(args
);
21289 SWIGINTERN PyObject
*_wrap_new_ScreenDC(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
21290 PyObject
*resultobj
= 0;
21291 wxScreenDC
*result
= 0 ;
21293 if (!SWIG_Python_UnpackTuple(args
,"new_ScreenDC",0,0,0)) SWIG_fail
;
21295 if (!wxPyCheckForApp()) SWIG_fail
;
21296 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
21297 result
= (wxScreenDC
*)new wxScreenDC();
21298 wxPyEndAllowThreads(__tstate
);
21299 if (PyErr_Occurred()) SWIG_fail
;
21301 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxScreenDC
, SWIG_POINTER_NEW
| 0 );
21308 SWIGINTERN PyObject
*_wrap_ScreenDC_StartDrawingOnTopWin(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
21309 PyObject
*resultobj
= 0;
21310 wxScreenDC
*arg1
= (wxScreenDC
*) 0 ;
21311 wxWindow
*arg2
= (wxWindow
*) 0 ;
21317 PyObject
* obj0
= 0 ;
21318 PyObject
* obj1
= 0 ;
21319 char * kwnames
[] = {
21320 (char *) "self",(char *) "window", NULL
21323 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
21324 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxScreenDC
, 0 | 0 );
21325 if (!SWIG_IsOK(res1
)) {
21326 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
21328 arg1
= reinterpret_cast< wxScreenDC
* >(argp1
);
21329 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxWindow
, 0 | 0 );
21330 if (!SWIG_IsOK(res2
)) {
21331 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
21333 arg2
= reinterpret_cast< wxWindow
* >(argp2
);
21335 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
21336 result
= (bool)(arg1
)->StartDrawingOnTop(arg2
);
21337 wxPyEndAllowThreads(__tstate
);
21338 if (PyErr_Occurred()) SWIG_fail
;
21341 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
21349 SWIGINTERN PyObject
*_wrap_ScreenDC_StartDrawingOnTop(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
21350 PyObject
*resultobj
= 0;
21351 wxScreenDC
*arg1
= (wxScreenDC
*) 0 ;
21352 wxRect
*arg2
= (wxRect
*) NULL
;
21358 PyObject
* obj0
= 0 ;
21359 PyObject
* obj1
= 0 ;
21360 char * kwnames
[] = {
21361 (char *) "self",(char *) "rect", NULL
21364 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
21365 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxScreenDC
, 0 | 0 );
21366 if (!SWIG_IsOK(res1
)) {
21367 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
21369 arg1
= reinterpret_cast< wxScreenDC
* >(argp1
);
21371 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxRect
, 0 | 0 );
21372 if (!SWIG_IsOK(res2
)) {
21373 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
21375 arg2
= reinterpret_cast< wxRect
* >(argp2
);
21378 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
21379 result
= (bool)(arg1
)->StartDrawingOnTop(arg2
);
21380 wxPyEndAllowThreads(__tstate
);
21381 if (PyErr_Occurred()) SWIG_fail
;
21384 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
21392 SWIGINTERN PyObject
*_wrap_ScreenDC_EndDrawingOnTop(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
21393 PyObject
*resultobj
= 0;
21394 wxScreenDC
*arg1
= (wxScreenDC
*) 0 ;
21398 PyObject
*swig_obj
[1] ;
21400 if (!args
) SWIG_fail
;
21401 swig_obj
[0] = args
;
21402 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxScreenDC
, 0 | 0 );
21403 if (!SWIG_IsOK(res1
)) {
21404 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
21406 arg1
= reinterpret_cast< wxScreenDC
* >(argp1
);
21408 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
21409 result
= (bool)(arg1
)->EndDrawingOnTop();
21410 wxPyEndAllowThreads(__tstate
);
21411 if (PyErr_Occurred()) SWIG_fail
;
21414 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
21422 SWIGINTERN PyObject
*ScreenDC_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
21424 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
21425 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC
, SWIG_NewClientData(obj
));
21426 return SWIG_Py_Void();
21429 SWIGINTERN PyObject
*ScreenDC_swiginit(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
21430 return SWIG_Python_InitShadowInstance(args
);
21433 SWIGINTERN PyObject
*_wrap_new_ClientDC(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
21434 PyObject
*resultobj
= 0;
21435 wxWindow
*arg1
= (wxWindow
*) 0 ;
21436 wxClientDC
*result
= 0 ;
21439 PyObject
* obj0
= 0 ;
21440 char * kwnames
[] = {
21441 (char *) "win", NULL
21444 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:new_ClientDC",kwnames
,&obj0
)) SWIG_fail
;
21445 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxWindow
, 0 | 0 );
21446 if (!SWIG_IsOK(res1
)) {
21447 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
21449 arg1
= reinterpret_cast< wxWindow
* >(argp1
);
21451 if (!wxPyCheckForApp()) SWIG_fail
;
21452 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
21453 result
= (wxClientDC
*)new wxClientDC(arg1
);
21454 wxPyEndAllowThreads(__tstate
);
21455 if (PyErr_Occurred()) SWIG_fail
;
21457 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxClientDC
, SWIG_POINTER_NEW
| 0 );
21464 SWIGINTERN PyObject
*ClientDC_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
21466 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
21467 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC
, SWIG_NewClientData(obj
));
21468 return SWIG_Py_Void();
21471 SWIGINTERN PyObject
*ClientDC_swiginit(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
21472 return SWIG_Python_InitShadowInstance(args
);
21475 SWIGINTERN PyObject
*_wrap_new_PaintDC(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
21476 PyObject
*resultobj
= 0;
21477 wxWindow
*arg1
= (wxWindow
*) 0 ;
21478 wxPaintDC
*result
= 0 ;
21481 PyObject
* obj0
= 0 ;
21482 char * kwnames
[] = {
21483 (char *) "win", NULL
21486 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:new_PaintDC",kwnames
,&obj0
)) SWIG_fail
;
21487 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxWindow
, 0 | 0 );
21488 if (!SWIG_IsOK(res1
)) {
21489 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
21491 arg1
= reinterpret_cast< wxWindow
* >(argp1
);
21493 if (!wxPyCheckForApp()) SWIG_fail
;
21494 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
21495 result
= (wxPaintDC
*)new wxPaintDC(arg1
);
21496 wxPyEndAllowThreads(__tstate
);
21497 if (PyErr_Occurred()) SWIG_fail
;
21499 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxPaintDC
, SWIG_POINTER_NEW
| 0 );
21506 SWIGINTERN PyObject
*PaintDC_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
21508 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
21509 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC
, SWIG_NewClientData(obj
));
21510 return SWIG_Py_Void();
21513 SWIGINTERN PyObject
*PaintDC_swiginit(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
21514 return SWIG_Python_InitShadowInstance(args
);
21517 SWIGINTERN PyObject
*_wrap_new_WindowDC(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
21518 PyObject
*resultobj
= 0;
21519 wxWindow
*arg1
= (wxWindow
*) 0 ;
21520 wxWindowDC
*result
= 0 ;
21523 PyObject
* obj0
= 0 ;
21524 char * kwnames
[] = {
21525 (char *) "win", NULL
21528 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:new_WindowDC",kwnames
,&obj0
)) SWIG_fail
;
21529 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxWindow
, 0 | 0 );
21530 if (!SWIG_IsOK(res1
)) {
21531 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
21533 arg1
= reinterpret_cast< wxWindow
* >(argp1
);
21535 if (!wxPyCheckForApp()) SWIG_fail
;
21536 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
21537 result
= (wxWindowDC
*)new wxWindowDC(arg1
);
21538 wxPyEndAllowThreads(__tstate
);
21539 if (PyErr_Occurred()) SWIG_fail
;
21541 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxWindowDC
, SWIG_POINTER_NEW
| 0 );
21548 SWIGINTERN PyObject
*WindowDC_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
21550 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
21551 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC
, SWIG_NewClientData(obj
));
21552 return SWIG_Py_Void();
21555 SWIGINTERN PyObject
*WindowDC_swiginit(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
21556 return SWIG_Python_InitShadowInstance(args
);
21559 SWIGINTERN PyObject
*_wrap_new_MirrorDC(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
21560 PyObject
*resultobj
= 0;
21563 wxMirrorDC
*result
= 0 ;
21568 PyObject
* obj0
= 0 ;
21569 PyObject
* obj1
= 0 ;
21570 char * kwnames
[] = {
21571 (char *) "dc",(char *) "mirror", NULL
21574 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:new_MirrorDC",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
21575 res1
= SWIG_ConvertPtr(obj0
, &argp1
, SWIGTYPE_p_wxDC
, 0 );
21576 if (!SWIG_IsOK(res1
)) {
21577 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
21580 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
21582 arg1
= reinterpret_cast< wxDC
* >(argp1
);
21583 ecode2
= SWIG_AsVal_bool(obj1
, &val2
);
21584 if (!SWIG_IsOK(ecode2
)) {
21585 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
21587 arg2
= static_cast< bool >(val2
);
21589 if (!wxPyCheckForApp()) SWIG_fail
;
21590 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
21591 result
= (wxMirrorDC
*)new wxMirrorDC(*arg1
,arg2
);
21592 wxPyEndAllowThreads(__tstate
);
21593 if (PyErr_Occurred()) SWIG_fail
;
21595 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxMirrorDC
, SWIG_POINTER_NEW
| 0 );
21602 SWIGINTERN PyObject
*MirrorDC_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
21604 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
21605 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC
, SWIG_NewClientData(obj
));
21606 return SWIG_Py_Void();
21609 SWIGINTERN PyObject
*MirrorDC_swiginit(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
21610 return SWIG_Python_InitShadowInstance(args
);
21613 SWIGINTERN PyObject
*_wrap_new_PostScriptDC(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
21614 PyObject
*resultobj
= 0;
21615 wxPrintData
*arg1
= 0 ;
21616 wxPostScriptDC
*result
= 0 ;
21619 PyObject
* obj0
= 0 ;
21620 char * kwnames
[] = {
21621 (char *) "printData", NULL
21624 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:new_PostScriptDC",kwnames
,&obj0
)) SWIG_fail
;
21625 res1
= SWIG_ConvertPtr(obj0
, &argp1
, SWIGTYPE_p_wxPrintData
, 0 | 0);
21626 if (!SWIG_IsOK(res1
)) {
21627 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
21630 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
21632 arg1
= reinterpret_cast< wxPrintData
* >(argp1
);
21634 if (!wxPyCheckForApp()) SWIG_fail
;
21635 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
21636 result
= (wxPostScriptDC
*)new wxPostScriptDC((wxPrintData
const &)*arg1
);
21637 wxPyEndAllowThreads(__tstate
);
21638 if (PyErr_Occurred()) SWIG_fail
;
21640 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxPostScriptDC
, SWIG_POINTER_NEW
| 0 );
21647 SWIGINTERN PyObject
*_wrap_PostScriptDC_GetPrintData(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
21648 PyObject
*resultobj
= 0;
21649 wxPostScriptDC
*arg1
= (wxPostScriptDC
*) 0 ;
21650 wxPrintData
*result
= 0 ;
21653 PyObject
*swig_obj
[1] ;
21655 if (!args
) SWIG_fail
;
21656 swig_obj
[0] = args
;
21657 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxPostScriptDC
, 0 | 0 );
21658 if (!SWIG_IsOK(res1
)) {
21659 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
21661 arg1
= reinterpret_cast< wxPostScriptDC
* >(argp1
);
21663 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
21665 wxPrintData
&_result_ref
= (arg1
)->GetPrintData();
21666 result
= (wxPrintData
*) &_result_ref
;
21668 wxPyEndAllowThreads(__tstate
);
21669 if (PyErr_Occurred()) SWIG_fail
;
21671 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxPrintData
, 0 | 0 );
21678 SWIGINTERN PyObject
*_wrap_PostScriptDC_SetPrintData(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
21679 PyObject
*resultobj
= 0;
21680 wxPostScriptDC
*arg1
= (wxPostScriptDC
*) 0 ;
21681 wxPrintData
*arg2
= 0 ;
21686 PyObject
* obj0
= 0 ;
21687 PyObject
* obj1
= 0 ;
21688 char * kwnames
[] = {
21689 (char *) "self",(char *) "data", NULL
21692 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:PostScriptDC_SetPrintData",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
21693 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPostScriptDC
, 0 | 0 );
21694 if (!SWIG_IsOK(res1
)) {
21695 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
21697 arg1
= reinterpret_cast< wxPostScriptDC
* >(argp1
);
21698 res2
= SWIG_ConvertPtr(obj1
, &argp2
, SWIGTYPE_p_wxPrintData
, 0 | 0);
21699 if (!SWIG_IsOK(res2
)) {
21700 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
21703 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
21705 arg2
= reinterpret_cast< wxPrintData
* >(argp2
);
21707 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
21708 (arg1
)->SetPrintData((wxPrintData
const &)*arg2
);
21709 wxPyEndAllowThreads(__tstate
);
21710 if (PyErr_Occurred()) SWIG_fail
;
21712 resultobj
= SWIG_Py_Void();
21719 SWIGINTERN PyObject
*_wrap_PostScriptDC_SetResolution(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
21720 PyObject
*resultobj
= 0;
21724 PyObject
* obj0
= 0 ;
21725 char * kwnames
[] = {
21726 (char *) "ppi", NULL
21729 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:PostScriptDC_SetResolution",kwnames
,&obj0
)) SWIG_fail
;
21730 ecode1
= SWIG_AsVal_int(obj0
, &val1
);
21731 if (!SWIG_IsOK(ecode1
)) {
21732 SWIG_exception_fail(SWIG_ArgError(ecode1
), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
21734 arg1
= static_cast< int >(val1
);
21736 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
21737 wxPostScriptDC::SetResolution(arg1
);
21738 wxPyEndAllowThreads(__tstate
);
21739 if (PyErr_Occurred()) SWIG_fail
;
21741 resultobj
= SWIG_Py_Void();
21748 SWIGINTERN PyObject
*_wrap_PostScriptDC_GetResolution(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
21749 PyObject
*resultobj
= 0;
21752 if (!SWIG_Python_UnpackTuple(args
,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail
;
21754 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
21755 result
= (int)wxPostScriptDC::GetResolution();
21756 wxPyEndAllowThreads(__tstate
);
21757 if (PyErr_Occurred()) SWIG_fail
;
21759 resultobj
= SWIG_From_int(static_cast< int >(result
));
21766 SWIGINTERN PyObject
*PostScriptDC_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
21768 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
21769 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC
, SWIG_NewClientData(obj
));
21770 return SWIG_Py_Void();
21773 SWIGINTERN PyObject
*PostScriptDC_swiginit(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
21774 return SWIG_Python_InitShadowInstance(args
);
21777 SWIGINTERN PyObject
*_wrap_new_MetaFile(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
21778 PyObject
*resultobj
= 0;
21779 wxString
const &arg1_defvalue
= wxPyEmptyString
;
21780 wxString
*arg1
= (wxString
*) &arg1_defvalue
;
21781 wxMetaFile
*result
= 0 ;
21782 bool temp1
= false ;
21783 PyObject
* obj0
= 0 ;
21784 char * kwnames
[] = {
21785 (char *) "filename", NULL
21788 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|O:new_MetaFile",kwnames
,&obj0
)) SWIG_fail
;
21791 arg1
= wxString_in_helper(obj0
);
21792 if (arg1
== NULL
) SWIG_fail
;
21797 if (!wxPyCheckForApp()) SWIG_fail
;
21798 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
21799 result
= (wxMetaFile
*)new wxMetaFile((wxString
const &)*arg1
);
21800 wxPyEndAllowThreads(__tstate
);
21801 if (PyErr_Occurred()) SWIG_fail
;
21803 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxMetaFile
, SWIG_POINTER_NEW
| 0 );
21818 SWIGINTERN PyObject
*_wrap_delete_MetaFile(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
21819 PyObject
*resultobj
= 0;
21820 wxMetaFile
*arg1
= (wxMetaFile
*) 0 ;
21823 PyObject
*swig_obj
[1] ;
21825 if (!args
) SWIG_fail
;
21826 swig_obj
[0] = args
;
21827 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxMetaFile
, SWIG_POINTER_DISOWN
| 0 );
21828 if (!SWIG_IsOK(res1
)) {
21829 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21831 arg1
= reinterpret_cast< wxMetaFile
* >(argp1
);
21833 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
21836 wxPyEndAllowThreads(__tstate
);
21837 if (PyErr_Occurred()) SWIG_fail
;
21839 resultobj
= SWIG_Py_Void();
21846 SWIGINTERN PyObject
*_wrap_MetaFile_Ok(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
21847 PyObject
*resultobj
= 0;
21848 wxMetaFile
*arg1
= (wxMetaFile
*) 0 ;
21852 PyObject
*swig_obj
[1] ;
21854 if (!args
) SWIG_fail
;
21855 swig_obj
[0] = args
;
21856 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxMetaFile
, 0 | 0 );
21857 if (!SWIG_IsOK(res1
)) {
21858 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "MetaFile_Ok" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21860 arg1
= reinterpret_cast< wxMetaFile
* >(argp1
);
21862 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
21863 result
= (bool)(arg1
)->Ok();
21864 wxPyEndAllowThreads(__tstate
);
21865 if (PyErr_Occurred()) SWIG_fail
;
21868 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
21876 SWIGINTERN PyObject
*_wrap_MetaFile_SetClipboard(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
21877 PyObject
*resultobj
= 0;
21878 wxMetaFile
*arg1
= (wxMetaFile
*) 0 ;
21879 int arg2
= (int) 0 ;
21880 int arg3
= (int) 0 ;
21888 PyObject
* obj0
= 0 ;
21889 PyObject
* obj1
= 0 ;
21890 PyObject
* obj2
= 0 ;
21891 char * kwnames
[] = {
21892 (char *) "self",(char *) "width",(char *) "height", NULL
21895 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OO:MetaFile_SetClipboard",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
21896 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxMetaFile
, 0 | 0 );
21897 if (!SWIG_IsOK(res1
)) {
21898 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21900 arg1
= reinterpret_cast< wxMetaFile
* >(argp1
);
21902 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
21903 if (!SWIG_IsOK(ecode2
)) {
21904 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
21906 arg2
= static_cast< int >(val2
);
21909 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
21910 if (!SWIG_IsOK(ecode3
)) {
21911 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
21913 arg3
= static_cast< int >(val3
);
21916 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
21917 result
= (bool)(arg1
)->SetClipboard(arg2
,arg3
);
21918 wxPyEndAllowThreads(__tstate
);
21919 if (PyErr_Occurred()) SWIG_fail
;
21922 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
21930 SWIGINTERN PyObject
*_wrap_MetaFile_GetSize(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
21931 PyObject
*resultobj
= 0;
21932 wxMetaFile
*arg1
= (wxMetaFile
*) 0 ;
21936 PyObject
*swig_obj
[1] ;
21938 if (!args
) SWIG_fail
;
21939 swig_obj
[0] = args
;
21940 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxMetaFile
, 0 | 0 );
21941 if (!SWIG_IsOK(res1
)) {
21942 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21944 arg1
= reinterpret_cast< wxMetaFile
* >(argp1
);
21946 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
21947 result
= (arg1
)->GetSize();
21948 wxPyEndAllowThreads(__tstate
);
21949 if (PyErr_Occurred()) SWIG_fail
;
21951 resultobj
= SWIG_NewPointerObj((new wxSize(static_cast< const wxSize
& >(result
))), SWIGTYPE_p_wxSize
, SWIG_POINTER_OWN
| 0 );
21958 SWIGINTERN PyObject
*_wrap_MetaFile_GetWidth(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
21959 PyObject
*resultobj
= 0;
21960 wxMetaFile
*arg1
= (wxMetaFile
*) 0 ;
21964 PyObject
*swig_obj
[1] ;
21966 if (!args
) SWIG_fail
;
21967 swig_obj
[0] = args
;
21968 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxMetaFile
, 0 | 0 );
21969 if (!SWIG_IsOK(res1
)) {
21970 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21972 arg1
= reinterpret_cast< wxMetaFile
* >(argp1
);
21974 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
21975 result
= (int)(arg1
)->GetWidth();
21976 wxPyEndAllowThreads(__tstate
);
21977 if (PyErr_Occurred()) SWIG_fail
;
21979 resultobj
= SWIG_From_int(static_cast< int >(result
));
21986 SWIGINTERN PyObject
*_wrap_MetaFile_GetHeight(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
21987 PyObject
*resultobj
= 0;
21988 wxMetaFile
*arg1
= (wxMetaFile
*) 0 ;
21992 PyObject
*swig_obj
[1] ;
21994 if (!args
) SWIG_fail
;
21995 swig_obj
[0] = args
;
21996 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxMetaFile
, 0 | 0 );
21997 if (!SWIG_IsOK(res1
)) {
21998 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
22000 arg1
= reinterpret_cast< wxMetaFile
* >(argp1
);
22002 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
22003 result
= (int)(arg1
)->GetHeight();
22004 wxPyEndAllowThreads(__tstate
);
22005 if (PyErr_Occurred()) SWIG_fail
;
22007 resultobj
= SWIG_From_int(static_cast< int >(result
));
22014 SWIGINTERN PyObject
*_wrap_MetaFile_GetFileName(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
22015 PyObject
*resultobj
= 0;
22016 wxMetaFile
*arg1
= (wxMetaFile
*) 0 ;
22017 wxString
*result
= 0 ;
22020 PyObject
*swig_obj
[1] ;
22022 if (!args
) SWIG_fail
;
22023 swig_obj
[0] = args
;
22024 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxMetaFile
, 0 | 0 );
22025 if (!SWIG_IsOK(res1
)) {
22026 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "MetaFile_GetFileName" "', expected argument " "1"" of type '" "wxMetaFile const *""'");
22028 arg1
= reinterpret_cast< wxMetaFile
* >(argp1
);
22030 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
22032 wxString
const &_result_ref
= ((wxMetaFile
const *)arg1
)->GetFileName();
22033 result
= (wxString
*) &_result_ref
;
22035 wxPyEndAllowThreads(__tstate
);
22036 if (PyErr_Occurred()) SWIG_fail
;
22040 resultobj
= PyUnicode_FromWideChar(result
->c_str(), result
->Len());
22042 resultobj
= PyString_FromStringAndSize(result
->c_str(), result
->Len());
22051 SWIGINTERN PyObject
*MetaFile_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
22053 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
22054 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile
, SWIG_NewClientData(obj
));
22055 return SWIG_Py_Void();
22058 SWIGINTERN PyObject
*MetaFile_swiginit(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
22059 return SWIG_Python_InitShadowInstance(args
);
22062 SWIGINTERN PyObject
*_wrap_new_MetaFileDC(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
22063 PyObject
*resultobj
= 0;
22064 wxString
const &arg1_defvalue
= wxPyEmptyString
;
22065 wxString
*arg1
= (wxString
*) &arg1_defvalue
;
22066 int arg2
= (int) 0 ;
22067 int arg3
= (int) 0 ;
22068 wxString
const &arg4_defvalue
= wxPyEmptyString
;
22069 wxString
*arg4
= (wxString
*) &arg4_defvalue
;
22070 wxMetaFileDC
*result
= 0 ;
22071 bool temp1
= false ;
22076 bool temp4
= false ;
22077 PyObject
* obj0
= 0 ;
22078 PyObject
* obj1
= 0 ;
22079 PyObject
* obj2
= 0 ;
22080 PyObject
* obj3
= 0 ;
22081 char * kwnames
[] = {
22082 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
22085 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|OOOO:new_MetaFileDC",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) SWIG_fail
;
22088 arg1
= wxString_in_helper(obj0
);
22089 if (arg1
== NULL
) SWIG_fail
;
22094 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
22095 if (!SWIG_IsOK(ecode2
)) {
22096 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
22098 arg2
= static_cast< int >(val2
);
22101 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
22102 if (!SWIG_IsOK(ecode3
)) {
22103 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
22105 arg3
= static_cast< int >(val3
);
22109 arg4
= wxString_in_helper(obj3
);
22110 if (arg4
== NULL
) SWIG_fail
;
22115 if (!wxPyCheckForApp()) SWIG_fail
;
22116 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
22117 result
= (wxMetaFileDC
*)new wxMetaFileDC((wxString
const &)*arg1
,arg2
,arg3
,(wxString
const &)*arg4
);
22118 wxPyEndAllowThreads(__tstate
);
22119 if (PyErr_Occurred()) SWIG_fail
;
22121 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxMetaFileDC
, SWIG_POINTER_NEW
| 0 );
22144 SWIGINTERN PyObject
*_wrap_MetaFileDC_Close(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
22145 PyObject
*resultobj
= 0;
22146 wxMetaFileDC
*arg1
= (wxMetaFileDC
*) 0 ;
22147 wxMetaFile
*result
= 0 ;
22150 PyObject
*swig_obj
[1] ;
22152 if (!args
) SWIG_fail
;
22153 swig_obj
[0] = args
;
22154 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxMetaFileDC
, 0 | 0 );
22155 if (!SWIG_IsOK(res1
)) {
22156 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
22158 arg1
= reinterpret_cast< wxMetaFileDC
* >(argp1
);
22160 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
22161 result
= (wxMetaFile
*)(arg1
)->Close();
22162 wxPyEndAllowThreads(__tstate
);
22163 if (PyErr_Occurred()) SWIG_fail
;
22165 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxMetaFile
, 0 | 0 );
22172 SWIGINTERN PyObject
*MetaFileDC_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
22174 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
22175 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC
, SWIG_NewClientData(obj
));
22176 return SWIG_Py_Void();
22179 SWIGINTERN PyObject
*MetaFileDC_swiginit(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
22180 return SWIG_Python_InitShadowInstance(args
);
22183 SWIGINTERN PyObject
*_wrap_new_PrinterDC(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
22184 PyObject
*resultobj
= 0;
22185 wxPrintData
*arg1
= 0 ;
22186 wxPrinterDC
*result
= 0 ;
22189 PyObject
* obj0
= 0 ;
22190 char * kwnames
[] = {
22191 (char *) "printData", NULL
22194 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:new_PrinterDC",kwnames
,&obj0
)) SWIG_fail
;
22195 res1
= SWIG_ConvertPtr(obj0
, &argp1
, SWIGTYPE_p_wxPrintData
, 0 | 0);
22196 if (!SWIG_IsOK(res1
)) {
22197 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
22200 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
22202 arg1
= reinterpret_cast< wxPrintData
* >(argp1
);
22204 if (!wxPyCheckForApp()) SWIG_fail
;
22205 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
22206 result
= (wxPrinterDC
*)new wxPrinterDC((wxPrintData
const &)*arg1
);
22207 wxPyEndAllowThreads(__tstate
);
22208 if (PyErr_Occurred()) SWIG_fail
;
22210 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxPrinterDC
, SWIG_POINTER_NEW
| 0 );
22217 SWIGINTERN PyObject
*PrinterDC_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
22219 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
22220 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC
, SWIG_NewClientData(obj
));
22221 return SWIG_Py_Void();
22224 SWIGINTERN PyObject
*PrinterDC_swiginit(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
22225 return SWIG_Python_InitShadowInstance(args
);
22228 SWIGINTERN PyObject
*_wrap_new_ImageList(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
22229 PyObject
*resultobj
= 0;
22232 int arg3
= (int) true ;
22233 int arg4
= (int) 1 ;
22234 wxImageList
*result
= 0 ;
22243 PyObject
* obj0
= 0 ;
22244 PyObject
* obj1
= 0 ;
22245 PyObject
* obj2
= 0 ;
22246 PyObject
* obj3
= 0 ;
22247 char * kwnames
[] = {
22248 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
22251 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|OO:new_ImageList",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) SWIG_fail
;
22252 ecode1
= SWIG_AsVal_int(obj0
, &val1
);
22253 if (!SWIG_IsOK(ecode1
)) {
22254 SWIG_exception_fail(SWIG_ArgError(ecode1
), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
22256 arg1
= static_cast< int >(val1
);
22257 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
22258 if (!SWIG_IsOK(ecode2
)) {
22259 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
22261 arg2
= static_cast< int >(val2
);
22263 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
22264 if (!SWIG_IsOK(ecode3
)) {
22265 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
22267 arg3
= static_cast< int >(val3
);
22270 ecode4
= SWIG_AsVal_int(obj3
, &val4
);
22271 if (!SWIG_IsOK(ecode4
)) {
22272 SWIG_exception_fail(SWIG_ArgError(ecode4
), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
22274 arg4
= static_cast< int >(val4
);
22277 if (!wxPyCheckForApp()) SWIG_fail
;
22278 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
22279 result
= (wxImageList
*)new wxImageList(arg1
,arg2
,arg3
,arg4
);
22280 wxPyEndAllowThreads(__tstate
);
22281 if (PyErr_Occurred()) SWIG_fail
;
22284 resultobj
= wxPyMake_wxObject(result
, (bool)SWIG_POINTER_NEW
);
22292 SWIGINTERN PyObject
*_wrap_delete_ImageList(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
22293 PyObject
*resultobj
= 0;
22294 wxImageList
*arg1
= (wxImageList
*) 0 ;
22297 PyObject
*swig_obj
[1] ;
22299 if (!args
) SWIG_fail
;
22300 swig_obj
[0] = args
;
22301 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxImageList
, SWIG_POINTER_DISOWN
| 0 );
22302 if (!SWIG_IsOK(res1
)) {
22303 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
22305 arg1
= reinterpret_cast< wxImageList
* >(argp1
);
22307 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
22310 wxPyEndAllowThreads(__tstate
);
22311 if (PyErr_Occurred()) SWIG_fail
;
22313 resultobj
= SWIG_Py_Void();
22320 SWIGINTERN PyObject
*_wrap_ImageList_Add(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
22321 PyObject
*resultobj
= 0;
22322 wxImageList
*arg1
= (wxImageList
*) 0 ;
22323 wxBitmap
*arg2
= 0 ;
22324 wxBitmap
const &arg3_defvalue
= wxNullBitmap
;
22325 wxBitmap
*arg3
= (wxBitmap
*) &arg3_defvalue
;
22333 PyObject
* obj0
= 0 ;
22334 PyObject
* obj1
= 0 ;
22335 PyObject
* obj2
= 0 ;
22336 char * kwnames
[] = {
22337 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
22340 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:ImageList_Add",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
22341 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxImageList
, 0 | 0 );
22342 if (!SWIG_IsOK(res1
)) {
22343 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
22345 arg1
= reinterpret_cast< wxImageList
* >(argp1
);
22346 res2
= SWIG_ConvertPtr(obj1
, &argp2
, SWIGTYPE_p_wxBitmap
, 0 | 0);
22347 if (!SWIG_IsOK(res2
)) {
22348 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22351 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22353 arg2
= reinterpret_cast< wxBitmap
* >(argp2
);
22355 res3
= SWIG_ConvertPtr(obj2
, &argp3
, SWIGTYPE_p_wxBitmap
, 0 | 0);
22356 if (!SWIG_IsOK(res3
)) {
22357 SWIG_exception_fail(SWIG_ArgError(res3
), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
22360 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
22362 arg3
= reinterpret_cast< wxBitmap
* >(argp3
);
22365 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
22366 result
= (int)(arg1
)->Add((wxBitmap
const &)*arg2
,(wxBitmap
const &)*arg3
);
22367 wxPyEndAllowThreads(__tstate
);
22368 if (PyErr_Occurred()) SWIG_fail
;
22370 resultobj
= SWIG_From_int(static_cast< int >(result
));
22377 SWIGINTERN PyObject
*_wrap_ImageList_AddWithColourMask(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
22378 PyObject
*resultobj
= 0;
22379 wxImageList
*arg1
= (wxImageList
*) 0 ;
22380 wxBitmap
*arg2
= 0 ;
22381 wxColour
*arg3
= 0 ;
22388 PyObject
* obj0
= 0 ;
22389 PyObject
* obj1
= 0 ;
22390 PyObject
* obj2
= 0 ;
22391 char * kwnames
[] = {
22392 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
22395 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:ImageList_AddWithColourMask",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
22396 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxImageList
, 0 | 0 );
22397 if (!SWIG_IsOK(res1
)) {
22398 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
22400 arg1
= reinterpret_cast< wxImageList
* >(argp1
);
22401 res2
= SWIG_ConvertPtr(obj1
, &argp2
, SWIGTYPE_p_wxBitmap
, 0 | 0);
22402 if (!SWIG_IsOK(res2
)) {
22403 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22406 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22408 arg2
= reinterpret_cast< wxBitmap
* >(argp2
);
22411 if ( ! wxColour_helper(obj2
, &arg3
)) SWIG_fail
;
22414 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
22415 result
= (int)(arg1
)->Add((wxBitmap
const &)*arg2
,(wxColour
const &)*arg3
);
22416 wxPyEndAllowThreads(__tstate
);
22417 if (PyErr_Occurred()) SWIG_fail
;
22419 resultobj
= SWIG_From_int(static_cast< int >(result
));
22426 SWIGINTERN PyObject
*_wrap_ImageList_AddIcon(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
22427 PyObject
*resultobj
= 0;
22428 wxImageList
*arg1
= (wxImageList
*) 0 ;
22435 PyObject
* obj0
= 0 ;
22436 PyObject
* obj1
= 0 ;
22437 char * kwnames
[] = {
22438 (char *) "self",(char *) "icon", NULL
22441 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:ImageList_AddIcon",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
22442 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxImageList
, 0 | 0 );
22443 if (!SWIG_IsOK(res1
)) {
22444 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
22446 arg1
= reinterpret_cast< wxImageList
* >(argp1
);
22447 res2
= SWIG_ConvertPtr(obj1
, &argp2
, SWIGTYPE_p_wxIcon
, 0 | 0);
22448 if (!SWIG_IsOK(res2
)) {
22449 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
22452 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
22454 arg2
= reinterpret_cast< wxIcon
* >(argp2
);
22456 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
22457 result
= (int)(arg1
)->Add((wxIcon
const &)*arg2
);
22458 wxPyEndAllowThreads(__tstate
);
22459 if (PyErr_Occurred()) SWIG_fail
;
22461 resultobj
= SWIG_From_int(static_cast< int >(result
));
22468 SWIGINTERN PyObject
*_wrap_ImageList_GetBitmap(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
22469 PyObject
*resultobj
= 0;
22470 wxImageList
*arg1
= (wxImageList
*) 0 ;
22472 SwigValueWrapper
<wxBitmap
> result
;
22477 PyObject
* obj0
= 0 ;
22478 PyObject
* obj1
= 0 ;
22479 char * kwnames
[] = {
22480 (char *) "self",(char *) "index", NULL
22483 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:ImageList_GetBitmap",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
22484 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxImageList
, 0 | 0 );
22485 if (!SWIG_IsOK(res1
)) {
22486 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
22488 arg1
= reinterpret_cast< wxImageList
* >(argp1
);
22489 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
22490 if (!SWIG_IsOK(ecode2
)) {
22491 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
22493 arg2
= static_cast< int >(val2
);
22495 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
22496 result
= ((wxImageList
const *)arg1
)->GetBitmap(arg2
);
22497 wxPyEndAllowThreads(__tstate
);
22498 if (PyErr_Occurred()) SWIG_fail
;
22500 resultobj
= SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap
& >(result
))), SWIGTYPE_p_wxBitmap
, SWIG_POINTER_OWN
| 0 );
22507 SWIGINTERN PyObject
*_wrap_ImageList_GetIcon(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
22508 PyObject
*resultobj
= 0;
22509 wxImageList
*arg1
= (wxImageList
*) 0 ;
22516 PyObject
* obj0
= 0 ;
22517 PyObject
* obj1
= 0 ;
22518 char * kwnames
[] = {
22519 (char *) "self",(char *) "index", NULL
22522 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:ImageList_GetIcon",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
22523 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxImageList
, 0 | 0 );
22524 if (!SWIG_IsOK(res1
)) {
22525 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
22527 arg1
= reinterpret_cast< wxImageList
* >(argp1
);
22528 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
22529 if (!SWIG_IsOK(ecode2
)) {
22530 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
22532 arg2
= static_cast< int >(val2
);
22534 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
22535 result
= ((wxImageList
const *)arg1
)->GetIcon(arg2
);
22536 wxPyEndAllowThreads(__tstate
);
22537 if (PyErr_Occurred()) SWIG_fail
;
22539 resultobj
= SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon
& >(result
))), SWIGTYPE_p_wxIcon
, SWIG_POINTER_OWN
| 0 );
22546 SWIGINTERN PyObject
*_wrap_ImageList_Replace(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
22547 PyObject
*resultobj
= 0;
22548 wxImageList
*arg1
= (wxImageList
*) 0 ;
22550 wxBitmap
*arg3
= 0 ;
22551 wxBitmap
const &arg4_defvalue
= wxNullBitmap
;
22552 wxBitmap
*arg4
= (wxBitmap
*) &arg4_defvalue
;
22562 PyObject
* obj0
= 0 ;
22563 PyObject
* obj1
= 0 ;
22564 PyObject
* obj2
= 0 ;
22565 PyObject
* obj3
= 0 ;
22566 char * kwnames
[] = {
22567 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
22570 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO|O:ImageList_Replace",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) SWIG_fail
;
22571 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxImageList
, 0 | 0 );
22572 if (!SWIG_IsOK(res1
)) {
22573 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
22575 arg1
= reinterpret_cast< wxImageList
* >(argp1
);
22576 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
22577 if (!SWIG_IsOK(ecode2
)) {
22578 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
22580 arg2
= static_cast< int >(val2
);
22581 res3
= SWIG_ConvertPtr(obj2
, &argp3
, SWIGTYPE_p_wxBitmap
, 0 | 0);
22582 if (!SWIG_IsOK(res3
)) {
22583 SWIG_exception_fail(SWIG_ArgError(res3
), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
22586 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
22588 arg3
= reinterpret_cast< wxBitmap
* >(argp3
);
22590 res4
= SWIG_ConvertPtr(obj3
, &argp4
, SWIGTYPE_p_wxBitmap
, 0 | 0);
22591 if (!SWIG_IsOK(res4
)) {
22592 SWIG_exception_fail(SWIG_ArgError(res4
), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
22595 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
22597 arg4
= reinterpret_cast< wxBitmap
* >(argp4
);
22600 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
22601 result
= (bool)(arg1
)->Replace(arg2
,(wxBitmap
const &)*arg3
,(wxBitmap
const &)*arg4
);
22602 wxPyEndAllowThreads(__tstate
);
22603 if (PyErr_Occurred()) SWIG_fail
;
22606 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
22614 SWIGINTERN PyObject
*_wrap_ImageList_Draw(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
22615 PyObject
*resultobj
= 0;
22616 wxImageList
*arg1
= (wxImageList
*) 0 ;
22621 int arg6
= (int) wxIMAGELIST_DRAW_NORMAL
;
22622 bool arg7
= (bool) (bool)false ;
22638 PyObject
* obj0
= 0 ;
22639 PyObject
* obj1
= 0 ;
22640 PyObject
* obj2
= 0 ;
22641 PyObject
* obj3
= 0 ;
22642 PyObject
* obj4
= 0 ;
22643 PyObject
* obj5
= 0 ;
22644 PyObject
* obj6
= 0 ;
22645 char * kwnames
[] = {
22646 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
22649 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOOO|OO:ImageList_Draw",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
,&obj5
,&obj6
)) SWIG_fail
;
22650 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxImageList
, 0 | 0 );
22651 if (!SWIG_IsOK(res1
)) {
22652 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
22654 arg1
= reinterpret_cast< wxImageList
* >(argp1
);
22655 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
22656 if (!SWIG_IsOK(ecode2
)) {
22657 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
22659 arg2
= static_cast< int >(val2
);
22660 res3
= SWIG_ConvertPtr(obj2
, &argp3
, SWIGTYPE_p_wxDC
, 0 );
22661 if (!SWIG_IsOK(res3
)) {
22662 SWIG_exception_fail(SWIG_ArgError(res3
), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
22665 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
22667 arg3
= reinterpret_cast< wxDC
* >(argp3
);
22668 ecode4
= SWIG_AsVal_int(obj3
, &val4
);
22669 if (!SWIG_IsOK(ecode4
)) {
22670 SWIG_exception_fail(SWIG_ArgError(ecode4
), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
22672 arg4
= static_cast< int >(val4
);
22673 ecode5
= SWIG_AsVal_int(obj4
, &val5
);
22674 if (!SWIG_IsOK(ecode5
)) {
22675 SWIG_exception_fail(SWIG_ArgError(ecode5
), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
22677 arg5
= static_cast< int >(val5
);
22679 ecode6
= SWIG_AsVal_int(obj5
, &val6
);
22680 if (!SWIG_IsOK(ecode6
)) {
22681 SWIG_exception_fail(SWIG_ArgError(ecode6
), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
22683 arg6
= static_cast< int >(val6
);
22686 ecode7
= SWIG_AsVal_bool(obj6
, &val7
);
22687 if (!SWIG_IsOK(ecode7
)) {
22688 SWIG_exception_fail(SWIG_ArgError(ecode7
), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
22690 arg7
= static_cast< bool >(val7
);
22693 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
22694 result
= (bool)(arg1
)->Draw(arg2
,*arg3
,arg4
,arg5
,arg6
,arg7
);
22695 wxPyEndAllowThreads(__tstate
);
22696 if (PyErr_Occurred()) SWIG_fail
;
22699 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
22707 SWIGINTERN PyObject
*_wrap_ImageList_GetImageCount(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
22708 PyObject
*resultobj
= 0;
22709 wxImageList
*arg1
= (wxImageList
*) 0 ;
22713 PyObject
*swig_obj
[1] ;
22715 if (!args
) SWIG_fail
;
22716 swig_obj
[0] = args
;
22717 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxImageList
, 0 | 0 );
22718 if (!SWIG_IsOK(res1
)) {
22719 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
22721 arg1
= reinterpret_cast< wxImageList
* >(argp1
);
22723 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
22724 result
= (int)(arg1
)->GetImageCount();
22725 wxPyEndAllowThreads(__tstate
);
22726 if (PyErr_Occurred()) SWIG_fail
;
22728 resultobj
= SWIG_From_int(static_cast< int >(result
));
22735 SWIGINTERN PyObject
*_wrap_ImageList_Remove(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
22736 PyObject
*resultobj
= 0;
22737 wxImageList
*arg1
= (wxImageList
*) 0 ;
22744 PyObject
* obj0
= 0 ;
22745 PyObject
* obj1
= 0 ;
22746 char * kwnames
[] = {
22747 (char *) "self",(char *) "index", NULL
22750 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:ImageList_Remove",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
22751 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxImageList
, 0 | 0 );
22752 if (!SWIG_IsOK(res1
)) {
22753 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
22755 arg1
= reinterpret_cast< wxImageList
* >(argp1
);
22756 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
22757 if (!SWIG_IsOK(ecode2
)) {
22758 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
22760 arg2
= static_cast< int >(val2
);
22762 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
22763 result
= (bool)(arg1
)->Remove(arg2
);
22764 wxPyEndAllowThreads(__tstate
);
22765 if (PyErr_Occurred()) SWIG_fail
;
22768 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
22776 SWIGINTERN PyObject
*_wrap_ImageList_RemoveAll(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
22777 PyObject
*resultobj
= 0;
22778 wxImageList
*arg1
= (wxImageList
*) 0 ;
22782 PyObject
*swig_obj
[1] ;
22784 if (!args
) SWIG_fail
;
22785 swig_obj
[0] = args
;
22786 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxImageList
, 0 | 0 );
22787 if (!SWIG_IsOK(res1
)) {
22788 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
22790 arg1
= reinterpret_cast< wxImageList
* >(argp1
);
22792 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
22793 result
= (bool)(arg1
)->RemoveAll();
22794 wxPyEndAllowThreads(__tstate
);
22795 if (PyErr_Occurred()) SWIG_fail
;
22798 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
22806 SWIGINTERN PyObject
*_wrap_ImageList_GetSize(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
22807 PyObject
*resultobj
= 0;
22808 wxImageList
*arg1
= (wxImageList
*) 0 ;
22817 int res3
= SWIG_TMPOBJ
;
22819 int res4
= SWIG_TMPOBJ
;
22820 PyObject
* obj0
= 0 ;
22821 PyObject
* obj1
= 0 ;
22822 char * kwnames
[] = {
22823 (char *) "self",(char *) "index", NULL
22828 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:ImageList_GetSize",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
22829 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxImageList
, 0 | 0 );
22830 if (!SWIG_IsOK(res1
)) {
22831 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
22833 arg1
= reinterpret_cast< wxImageList
* >(argp1
);
22834 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
22835 if (!SWIG_IsOK(ecode2
)) {
22836 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
22838 arg2
= static_cast< int >(val2
);
22840 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
22841 (arg1
)->GetSize(arg2
,*arg3
,*arg4
);
22842 wxPyEndAllowThreads(__tstate
);
22843 if (PyErr_Occurred()) SWIG_fail
;
22845 resultobj
= SWIG_Py_Void();
22846 if (SWIG_IsTmpObj(res3
)) {
22847 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_From_int((*arg3
)));
22849 int new_flags
= SWIG_IsNewObj(res3
) ? (SWIG_POINTER_OWN
| 0 ) : 0 ;
22850 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_NewPointerObj((void*)(arg3
), SWIGTYPE_p_int
, new_flags
));
22852 if (SWIG_IsTmpObj(res4
)) {
22853 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_From_int((*arg4
)));
22855 int new_flags
= SWIG_IsNewObj(res4
) ? (SWIG_POINTER_OWN
| 0 ) : 0 ;
22856 resultobj
= SWIG_Python_AppendOutput(resultobj
, SWIG_NewPointerObj((void*)(arg4
), SWIGTYPE_p_int
, new_flags
));
22864 SWIGINTERN PyObject
*ImageList_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
22866 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
22867 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList
, SWIG_NewClientData(obj
));
22868 return SWIG_Py_Void();
22871 SWIGINTERN PyObject
*ImageList_swiginit(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
22872 return SWIG_Python_InitShadowInstance(args
);
22875 SWIGINTERN PyObject
*_wrap_new_StockGDI(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
22876 PyObject
*resultobj
= 0;
22877 wxStockGDI
*result
= 0 ;
22879 if (!SWIG_Python_UnpackTuple(args
,"new_StockGDI",0,0,0)) SWIG_fail
;
22881 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
22882 result
= (wxStockGDI
*)new wxStockGDI();
22883 wxPyEndAllowThreads(__tstate
);
22884 if (PyErr_Occurred()) SWIG_fail
;
22886 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxStockGDI
, SWIG_POINTER_NEW
| 0 );
22893 SWIGINTERN PyObject
*_wrap_delete_StockGDI(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
22894 PyObject
*resultobj
= 0;
22895 wxStockGDI
*arg1
= (wxStockGDI
*) 0 ;
22898 PyObject
*swig_obj
[1] ;
22900 if (!args
) SWIG_fail
;
22901 swig_obj
[0] = args
;
22902 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxStockGDI
, SWIG_POINTER_DISOWN
| 0 );
22903 if (!SWIG_IsOK(res1
)) {
22904 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
22906 arg1
= reinterpret_cast< wxStockGDI
* >(argp1
);
22908 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
22911 wxPyEndAllowThreads(__tstate
);
22912 if (PyErr_Occurred()) SWIG_fail
;
22914 resultobj
= SWIG_Py_Void();
22921 SWIGINTERN PyObject
*_wrap_StockGDI_DeleteAll(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
22922 PyObject
*resultobj
= 0;
22924 if (!SWIG_Python_UnpackTuple(args
,"StockGDI_DeleteAll",0,0,0)) SWIG_fail
;
22926 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
22927 wxStockGDI::DeleteAll();
22928 wxPyEndAllowThreads(__tstate
);
22929 if (PyErr_Occurred()) SWIG_fail
;
22931 resultobj
= SWIG_Py_Void();
22938 SWIGINTERN PyObject
*_wrap_StockGDI_instance(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
22939 PyObject
*resultobj
= 0;
22940 wxStockGDI
*result
= 0 ;
22942 if (!SWIG_Python_UnpackTuple(args
,"StockGDI_instance",0,0,0)) SWIG_fail
;
22944 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
22946 wxStockGDI
&_result_ref
= wxStockGDI::instance();
22947 result
= (wxStockGDI
*) &_result_ref
;
22949 wxPyEndAllowThreads(__tstate
);
22950 if (PyErr_Occurred()) SWIG_fail
;
22952 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxStockGDI
, 0 | 0 );
22959 SWIGINTERN PyObject
*_wrap_StockGDI_GetBrush(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
22960 PyObject
*resultobj
= 0;
22961 wxStockGDI::Item arg1
;
22962 wxBrush
*result
= 0 ;
22965 PyObject
* obj0
= 0 ;
22966 char * kwnames
[] = {
22967 (char *) "item", NULL
22970 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:StockGDI_GetBrush",kwnames
,&obj0
)) SWIG_fail
;
22971 ecode1
= SWIG_AsVal_int(obj0
, &val1
);
22972 if (!SWIG_IsOK(ecode1
)) {
22973 SWIG_exception_fail(SWIG_ArgError(ecode1
), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
22975 arg1
= static_cast< wxStockGDI::Item
>(val1
);
22977 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
22978 result
= (wxBrush
*)wxStockGDI::GetBrush(arg1
);
22979 wxPyEndAllowThreads(__tstate
);
22980 if (PyErr_Occurred()) SWIG_fail
;
22982 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxBrush
, 0 | 0 );
22989 SWIGINTERN PyObject
*_wrap_StockGDI_GetColour(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
22990 PyObject
*resultobj
= 0;
22991 wxStockGDI::Item arg1
;
22992 wxColour
*result
= 0 ;
22995 PyObject
* obj0
= 0 ;
22996 char * kwnames
[] = {
22997 (char *) "item", NULL
23000 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:StockGDI_GetColour",kwnames
,&obj0
)) SWIG_fail
;
23001 ecode1
= SWIG_AsVal_int(obj0
, &val1
);
23002 if (!SWIG_IsOK(ecode1
)) {
23003 SWIG_exception_fail(SWIG_ArgError(ecode1
), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
23005 arg1
= static_cast< wxStockGDI::Item
>(val1
);
23007 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
23008 result
= (wxColour
*)wxStockGDI::GetColour(arg1
);
23009 wxPyEndAllowThreads(__tstate
);
23010 if (PyErr_Occurred()) SWIG_fail
;
23012 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxColour
, 0 | 0 );
23019 SWIGINTERN PyObject
*_wrap_StockGDI_GetCursor(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
23020 PyObject
*resultobj
= 0;
23021 wxStockGDI::Item arg1
;
23022 wxCursor
*result
= 0 ;
23025 PyObject
* obj0
= 0 ;
23026 char * kwnames
[] = {
23027 (char *) "item", NULL
23030 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:StockGDI_GetCursor",kwnames
,&obj0
)) SWIG_fail
;
23031 ecode1
= SWIG_AsVal_int(obj0
, &val1
);
23032 if (!SWIG_IsOK(ecode1
)) {
23033 SWIG_exception_fail(SWIG_ArgError(ecode1
), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
23035 arg1
= static_cast< wxStockGDI::Item
>(val1
);
23037 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
23038 result
= (wxCursor
*)wxStockGDI::GetCursor(arg1
);
23039 wxPyEndAllowThreads(__tstate
);
23040 if (PyErr_Occurred()) SWIG_fail
;
23042 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxCursor
, 0 | 0 );
23049 SWIGINTERN PyObject
*_wrap_StockGDI_GetPen(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
23050 PyObject
*resultobj
= 0;
23051 wxStockGDI::Item arg1
;
23052 wxPen
*result
= 0 ;
23055 PyObject
* obj0
= 0 ;
23056 char * kwnames
[] = {
23057 (char *) "item", NULL
23060 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:StockGDI_GetPen",kwnames
,&obj0
)) SWIG_fail
;
23061 ecode1
= SWIG_AsVal_int(obj0
, &val1
);
23062 if (!SWIG_IsOK(ecode1
)) {
23063 SWIG_exception_fail(SWIG_ArgError(ecode1
), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
23065 arg1
= static_cast< wxStockGDI::Item
>(val1
);
23067 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
23068 result
= (wxPen
*)wxStockGDI::GetPen(arg1
);
23069 wxPyEndAllowThreads(__tstate
);
23070 if (PyErr_Occurred()) SWIG_fail
;
23072 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxPen
, 0 | 0 );
23079 SWIGINTERN PyObject
*_wrap_StockGDI_GetFont(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
23080 PyObject
*resultobj
= 0;
23081 wxStockGDI
*arg1
= (wxStockGDI
*) 0 ;
23082 wxStockGDI::Item arg2
;
23083 wxFont
*result
= 0 ;
23088 PyObject
* obj0
= 0 ;
23089 PyObject
* obj1
= 0 ;
23090 char * kwnames
[] = {
23091 (char *) "self",(char *) "item", NULL
23094 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:StockGDI_GetFont",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
23095 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxStockGDI
, 0 | 0 );
23096 if (!SWIG_IsOK(res1
)) {
23097 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
23099 arg1
= reinterpret_cast< wxStockGDI
* >(argp1
);
23100 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
23101 if (!SWIG_IsOK(ecode2
)) {
23102 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
23104 arg2
= static_cast< wxStockGDI::Item
>(val2
);
23106 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
23107 result
= (wxFont
*)(arg1
)->GetFont(arg2
);
23108 wxPyEndAllowThreads(__tstate
);
23109 if (PyErr_Occurred()) SWIG_fail
;
23111 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxFont
, 0 | 0 );
23118 SWIGINTERN PyObject
*StockGDI_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
23120 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
23121 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI
, SWIG_NewClientData(obj
));
23122 return SWIG_Py_Void();
23125 SWIGINTERN PyObject
*StockGDI_swiginit(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
23126 return SWIG_Python_InitShadowInstance(args
);
23129 SWIGINTERN
int NullBitmap_set(PyObject
*) {
23130 SWIG_Error(SWIG_AttributeError
,"Variable NullBitmap is read-only.");
23135 SWIGINTERN PyObject
*NullBitmap_get(void) {
23136 PyObject
*pyobj
= 0;
23138 pyobj
= SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap
), SWIGTYPE_p_wxBitmap
, 0 );
23143 SWIGINTERN
int NullIcon_set(PyObject
*) {
23144 SWIG_Error(SWIG_AttributeError
,"Variable NullIcon is read-only.");
23149 SWIGINTERN PyObject
*NullIcon_get(void) {
23150 PyObject
*pyobj
= 0;
23152 pyobj
= SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon
), SWIGTYPE_p_wxIcon
, 0 );
23157 SWIGINTERN
int NullCursor_set(PyObject
*) {
23158 SWIG_Error(SWIG_AttributeError
,"Variable NullCursor is read-only.");
23163 SWIGINTERN PyObject
*NullCursor_get(void) {
23164 PyObject
*pyobj
= 0;
23166 pyobj
= SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor
), SWIGTYPE_p_wxCursor
, 0 );
23171 SWIGINTERN
int NullPen_set(PyObject
*) {
23172 SWIG_Error(SWIG_AttributeError
,"Variable NullPen is read-only.");
23177 SWIGINTERN PyObject
*NullPen_get(void) {
23178 PyObject
*pyobj
= 0;
23180 pyobj
= SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen
), SWIGTYPE_p_wxPen
, 0 );
23185 SWIGINTERN
int NullBrush_set(PyObject
*) {
23186 SWIG_Error(SWIG_AttributeError
,"Variable NullBrush is read-only.");
23191 SWIGINTERN PyObject
*NullBrush_get(void) {
23192 PyObject
*pyobj
= 0;
23194 pyobj
= SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush
), SWIGTYPE_p_wxBrush
, 0 );
23199 SWIGINTERN
int NullPalette_set(PyObject
*) {
23200 SWIG_Error(SWIG_AttributeError
,"Variable NullPalette is read-only.");
23205 SWIGINTERN PyObject
*NullPalette_get(void) {
23206 PyObject
*pyobj
= 0;
23208 pyobj
= SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette
), SWIGTYPE_p_wxPalette
, 0 );
23213 SWIGINTERN
int NullFont_set(PyObject
*) {
23214 SWIG_Error(SWIG_AttributeError
,"Variable NullFont is read-only.");
23219 SWIGINTERN PyObject
*NullFont_get(void) {
23220 PyObject
*pyobj
= 0;
23222 pyobj
= SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont
), SWIGTYPE_p_wxFont
, 0 );
23227 SWIGINTERN
int NullColour_set(PyObject
*) {
23228 SWIG_Error(SWIG_AttributeError
,"Variable NullColour is read-only.");
23233 SWIGINTERN PyObject
*NullColour_get(void) {
23234 PyObject
*pyobj
= 0;
23236 pyobj
= SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour
), SWIGTYPE_p_wxColour
, 0 );
23241 SWIGINTERN PyObject
*_wrap_new_GDIObjListBase(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
23242 PyObject
*resultobj
= 0;
23243 wxGDIObjListBase
*result
= 0 ;
23245 if (!SWIG_Python_UnpackTuple(args
,"new_GDIObjListBase",0,0,0)) SWIG_fail
;
23247 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
23248 result
= (wxGDIObjListBase
*)new wxGDIObjListBase();
23249 wxPyEndAllowThreads(__tstate
);
23250 if (PyErr_Occurred()) SWIG_fail
;
23252 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxGDIObjListBase
, SWIG_POINTER_NEW
| 0 );
23259 SWIGINTERN PyObject
*_wrap_delete_GDIObjListBase(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
23260 PyObject
*resultobj
= 0;
23261 wxGDIObjListBase
*arg1
= (wxGDIObjListBase
*) 0 ;
23264 PyObject
*swig_obj
[1] ;
23266 if (!args
) SWIG_fail
;
23267 swig_obj
[0] = args
;
23268 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxGDIObjListBase
, SWIG_POINTER_DISOWN
| 0 );
23269 if (!SWIG_IsOK(res1
)) {
23270 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
23272 arg1
= reinterpret_cast< wxGDIObjListBase
* >(argp1
);
23274 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
23277 wxPyEndAllowThreads(__tstate
);
23278 if (PyErr_Occurred()) SWIG_fail
;
23280 resultobj
= SWIG_Py_Void();
23287 SWIGINTERN PyObject
*GDIObjListBase_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
23289 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
23290 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase
, SWIG_NewClientData(obj
));
23291 return SWIG_Py_Void();
23294 SWIGINTERN PyObject
*GDIObjListBase_swiginit(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
23295 return SWIG_Python_InitShadowInstance(args
);
23298 SWIGINTERN PyObject
*_wrap_PenList_FindOrCreatePen(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
23299 PyObject
*resultobj
= 0;
23300 wxPenList
*arg1
= (wxPenList
*) 0 ;
23301 wxColour
*arg2
= 0 ;
23304 wxPen
*result
= 0 ;
23312 PyObject
* obj0
= 0 ;
23313 PyObject
* obj1
= 0 ;
23314 PyObject
* obj2
= 0 ;
23315 PyObject
* obj3
= 0 ;
23316 char * kwnames
[] = {
23317 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
23320 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:PenList_FindOrCreatePen",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) SWIG_fail
;
23321 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPenList
, 0 | 0 );
23322 if (!SWIG_IsOK(res1
)) {
23323 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
23325 arg1
= reinterpret_cast< wxPenList
* >(argp1
);
23328 if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
;
23330 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
23331 if (!SWIG_IsOK(ecode3
)) {
23332 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
23334 arg3
= static_cast< int >(val3
);
23335 ecode4
= SWIG_AsVal_int(obj3
, &val4
);
23336 if (!SWIG_IsOK(ecode4
)) {
23337 SWIG_exception_fail(SWIG_ArgError(ecode4
), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
23339 arg4
= static_cast< int >(val4
);
23341 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
23342 result
= (wxPen
*)(arg1
)->FindOrCreatePen((wxColour
const &)*arg2
,arg3
,arg4
);
23343 wxPyEndAllowThreads(__tstate
);
23344 if (PyErr_Occurred()) SWIG_fail
;
23346 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxPen
, 0 | 0 );
23353 SWIGINTERN PyObject
*_wrap_PenList_AddPen(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
23354 PyObject
*resultobj
= 0;
23355 wxPenList
*arg1
= (wxPenList
*) 0 ;
23356 wxPen
*arg2
= (wxPen
*) 0 ;
23361 PyObject
* obj0
= 0 ;
23362 PyObject
* obj1
= 0 ;
23363 char * kwnames
[] = {
23364 (char *) "self",(char *) "pen", NULL
23367 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:PenList_AddPen",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
23368 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPenList
, 0 | 0 );
23369 if (!SWIG_IsOK(res1
)) {
23370 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
23372 arg1
= reinterpret_cast< wxPenList
* >(argp1
);
23373 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxPen
, 0 | 0 );
23374 if (!SWIG_IsOK(res2
)) {
23375 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
23377 arg2
= reinterpret_cast< wxPen
* >(argp2
);
23379 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
23380 (arg1
)->AddPen(arg2
);
23381 wxPyEndAllowThreads(__tstate
);
23382 if (PyErr_Occurred()) SWIG_fail
;
23384 resultobj
= SWIG_Py_Void();
23391 SWIGINTERN PyObject
*_wrap_PenList_RemovePen(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
23392 PyObject
*resultobj
= 0;
23393 wxPenList
*arg1
= (wxPenList
*) 0 ;
23394 wxPen
*arg2
= (wxPen
*) 0 ;
23399 PyObject
* obj0
= 0 ;
23400 PyObject
* obj1
= 0 ;
23401 char * kwnames
[] = {
23402 (char *) "self",(char *) "pen", NULL
23405 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:PenList_RemovePen",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
23406 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPenList
, 0 | 0 );
23407 if (!SWIG_IsOK(res1
)) {
23408 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
23410 arg1
= reinterpret_cast< wxPenList
* >(argp1
);
23411 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxPen
, 0 | 0 );
23412 if (!SWIG_IsOK(res2
)) {
23413 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
23415 arg2
= reinterpret_cast< wxPen
* >(argp2
);
23417 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
23418 (arg1
)->RemovePen(arg2
);
23419 wxPyEndAllowThreads(__tstate
);
23420 if (PyErr_Occurred()) SWIG_fail
;
23422 resultobj
= SWIG_Py_Void();
23429 SWIGINTERN PyObject
*PenList_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
23431 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
23432 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList
, SWIG_NewClientData(obj
));
23433 return SWIG_Py_Void();
23436 SWIGINTERN PyObject
*_wrap_BrushList_FindOrCreateBrush(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
23437 PyObject
*resultobj
= 0;
23438 wxBrushList
*arg1
= (wxBrushList
*) 0 ;
23439 wxColour
*arg2
= 0 ;
23440 int arg3
= (int) wxSOLID
;
23441 wxBrush
*result
= 0 ;
23447 PyObject
* obj0
= 0 ;
23448 PyObject
* obj1
= 0 ;
23449 PyObject
* obj2
= 0 ;
23450 char * kwnames
[] = {
23451 (char *) "self",(char *) "colour",(char *) "style", NULL
23454 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
23455 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxBrushList
, 0 | 0 );
23456 if (!SWIG_IsOK(res1
)) {
23457 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
23459 arg1
= reinterpret_cast< wxBrushList
* >(argp1
);
23462 if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
;
23465 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
23466 if (!SWIG_IsOK(ecode3
)) {
23467 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
23469 arg3
= static_cast< int >(val3
);
23472 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
23473 result
= (wxBrush
*)(arg1
)->FindOrCreateBrush((wxColour
const &)*arg2
,arg3
);
23474 wxPyEndAllowThreads(__tstate
);
23475 if (PyErr_Occurred()) SWIG_fail
;
23477 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxBrush
, 0 | 0 );
23484 SWIGINTERN PyObject
*_wrap_BrushList_AddBrush(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
23485 PyObject
*resultobj
= 0;
23486 wxBrushList
*arg1
= (wxBrushList
*) 0 ;
23487 wxBrush
*arg2
= (wxBrush
*) 0 ;
23492 PyObject
* obj0
= 0 ;
23493 PyObject
* obj1
= 0 ;
23494 char * kwnames
[] = {
23495 (char *) "self",(char *) "brush", NULL
23498 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:BrushList_AddBrush",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
23499 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxBrushList
, 0 | 0 );
23500 if (!SWIG_IsOK(res1
)) {
23501 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
23503 arg1
= reinterpret_cast< wxBrushList
* >(argp1
);
23504 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxBrush
, 0 | 0 );
23505 if (!SWIG_IsOK(res2
)) {
23506 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
23508 arg2
= reinterpret_cast< wxBrush
* >(argp2
);
23510 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
23511 (arg1
)->AddBrush(arg2
);
23512 wxPyEndAllowThreads(__tstate
);
23513 if (PyErr_Occurred()) SWIG_fail
;
23515 resultobj
= SWIG_Py_Void();
23522 SWIGINTERN PyObject
*_wrap_BrushList_RemoveBrush(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
23523 PyObject
*resultobj
= 0;
23524 wxBrushList
*arg1
= (wxBrushList
*) 0 ;
23525 wxBrush
*arg2
= (wxBrush
*) 0 ;
23530 PyObject
* obj0
= 0 ;
23531 PyObject
* obj1
= 0 ;
23532 char * kwnames
[] = {
23533 (char *) "self",(char *) "brush", NULL
23536 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:BrushList_RemoveBrush",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
23537 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxBrushList
, 0 | 0 );
23538 if (!SWIG_IsOK(res1
)) {
23539 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
23541 arg1
= reinterpret_cast< wxBrushList
* >(argp1
);
23542 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxBrush
, 0 | 0 );
23543 if (!SWIG_IsOK(res2
)) {
23544 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
23546 arg2
= reinterpret_cast< wxBrush
* >(argp2
);
23548 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
23549 (arg1
)->RemoveBrush(arg2
);
23550 wxPyEndAllowThreads(__tstate
);
23551 if (PyErr_Occurred()) SWIG_fail
;
23553 resultobj
= SWIG_Py_Void();
23560 SWIGINTERN PyObject
*BrushList_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
23562 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
23563 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList
, SWIG_NewClientData(obj
));
23564 return SWIG_Py_Void();
23567 SWIGINTERN PyObject
*_wrap_FontList_FindOrCreateFont(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
23568 PyObject
*resultobj
= 0;
23569 wxFontList
*arg1
= (wxFontList
*) 0 ;
23574 bool arg6
= (bool) false ;
23575 wxString
const &arg7_defvalue
= wxPyEmptyString
;
23576 wxString
*arg7
= (wxString
*) &arg7_defvalue
;
23577 wxFontEncoding arg8
= (wxFontEncoding
) wxFONTENCODING_DEFAULT
;
23578 wxFont
*result
= 0 ;
23591 bool temp7
= false ;
23594 PyObject
* obj0
= 0 ;
23595 PyObject
* obj1
= 0 ;
23596 PyObject
* obj2
= 0 ;
23597 PyObject
* obj3
= 0 ;
23598 PyObject
* obj4
= 0 ;
23599 PyObject
* obj5
= 0 ;
23600 PyObject
* obj6
= 0 ;
23601 PyObject
* obj7
= 0 ;
23602 char * kwnames
[] = {
23603 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
23606 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
,&obj5
,&obj6
,&obj7
)) SWIG_fail
;
23607 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxFontList
, 0 | 0 );
23608 if (!SWIG_IsOK(res1
)) {
23609 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
23611 arg1
= reinterpret_cast< wxFontList
* >(argp1
);
23612 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
23613 if (!SWIG_IsOK(ecode2
)) {
23614 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
23616 arg2
= static_cast< int >(val2
);
23617 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
23618 if (!SWIG_IsOK(ecode3
)) {
23619 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
23621 arg3
= static_cast< int >(val3
);
23622 ecode4
= SWIG_AsVal_int(obj3
, &val4
);
23623 if (!SWIG_IsOK(ecode4
)) {
23624 SWIG_exception_fail(SWIG_ArgError(ecode4
), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
23626 arg4
= static_cast< int >(val4
);
23627 ecode5
= SWIG_AsVal_int(obj4
, &val5
);
23628 if (!SWIG_IsOK(ecode5
)) {
23629 SWIG_exception_fail(SWIG_ArgError(ecode5
), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
23631 arg5
= static_cast< int >(val5
);
23633 ecode6
= SWIG_AsVal_bool(obj5
, &val6
);
23634 if (!SWIG_IsOK(ecode6
)) {
23635 SWIG_exception_fail(SWIG_ArgError(ecode6
), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
23637 arg6
= static_cast< bool >(val6
);
23641 arg7
= wxString_in_helper(obj6
);
23642 if (arg7
== NULL
) SWIG_fail
;
23647 ecode8
= SWIG_AsVal_int(obj7
, &val8
);
23648 if (!SWIG_IsOK(ecode8
)) {
23649 SWIG_exception_fail(SWIG_ArgError(ecode8
), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
23651 arg8
= static_cast< wxFontEncoding
>(val8
);
23654 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
23655 result
= (wxFont
*)(arg1
)->FindOrCreateFont(arg2
,arg3
,arg4
,arg5
,arg6
,(wxString
const &)*arg7
,arg8
);
23656 wxPyEndAllowThreads(__tstate
);
23657 if (PyErr_Occurred()) SWIG_fail
;
23659 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxFont
, 0 | 0 );
23674 SWIGINTERN PyObject
*_wrap_FontList_AddFont(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
23675 PyObject
*resultobj
= 0;
23676 wxFontList
*arg1
= (wxFontList
*) 0 ;
23677 wxFont
*arg2
= (wxFont
*) 0 ;
23682 PyObject
* obj0
= 0 ;
23683 PyObject
* obj1
= 0 ;
23684 char * kwnames
[] = {
23685 (char *) "self",(char *) "font", NULL
23688 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:FontList_AddFont",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
23689 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxFontList
, 0 | 0 );
23690 if (!SWIG_IsOK(res1
)) {
23691 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
23693 arg1
= reinterpret_cast< wxFontList
* >(argp1
);
23694 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxFont
, 0 | 0 );
23695 if (!SWIG_IsOK(res2
)) {
23696 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
23698 arg2
= reinterpret_cast< wxFont
* >(argp2
);
23700 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
23701 (arg1
)->AddFont(arg2
);
23702 wxPyEndAllowThreads(__tstate
);
23703 if (PyErr_Occurred()) SWIG_fail
;
23705 resultobj
= SWIG_Py_Void();
23712 SWIGINTERN PyObject
*_wrap_FontList_RemoveFont(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
23713 PyObject
*resultobj
= 0;
23714 wxFontList
*arg1
= (wxFontList
*) 0 ;
23715 wxFont
*arg2
= (wxFont
*) 0 ;
23720 PyObject
* obj0
= 0 ;
23721 PyObject
* obj1
= 0 ;
23722 char * kwnames
[] = {
23723 (char *) "self",(char *) "font", NULL
23726 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:FontList_RemoveFont",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
23727 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxFontList
, 0 | 0 );
23728 if (!SWIG_IsOK(res1
)) {
23729 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
23731 arg1
= reinterpret_cast< wxFontList
* >(argp1
);
23732 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxFont
, 0 | 0 );
23733 if (!SWIG_IsOK(res2
)) {
23734 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
23736 arg2
= reinterpret_cast< wxFont
* >(argp2
);
23738 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
23739 (arg1
)->RemoveFont(arg2
);
23740 wxPyEndAllowThreads(__tstate
);
23741 if (PyErr_Occurred()) SWIG_fail
;
23743 resultobj
= SWIG_Py_Void();
23750 SWIGINTERN PyObject
*FontList_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
23752 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
23753 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList
, SWIG_NewClientData(obj
));
23754 return SWIG_Py_Void();
23757 SWIGINTERN PyObject
*_wrap_new_ColourDatabase(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
23758 PyObject
*resultobj
= 0;
23759 wxColourDatabase
*result
= 0 ;
23761 if (!SWIG_Python_UnpackTuple(args
,"new_ColourDatabase",0,0,0)) SWIG_fail
;
23763 if (!wxPyCheckForApp()) SWIG_fail
;
23764 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
23765 result
= (wxColourDatabase
*)new wxColourDatabase();
23766 wxPyEndAllowThreads(__tstate
);
23767 if (PyErr_Occurred()) SWIG_fail
;
23769 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxColourDatabase
, SWIG_POINTER_NEW
| 0 );
23776 SWIGINTERN PyObject
*_wrap_delete_ColourDatabase(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
23777 PyObject
*resultobj
= 0;
23778 wxColourDatabase
*arg1
= (wxColourDatabase
*) 0 ;
23781 PyObject
*swig_obj
[1] ;
23783 if (!args
) SWIG_fail
;
23784 swig_obj
[0] = args
;
23785 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxColourDatabase
, SWIG_POINTER_DISOWN
| 0 );
23786 if (!SWIG_IsOK(res1
)) {
23787 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
23789 arg1
= reinterpret_cast< wxColourDatabase
* >(argp1
);
23791 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
23794 wxPyEndAllowThreads(__tstate
);
23795 if (PyErr_Occurred()) SWIG_fail
;
23797 resultobj
= SWIG_Py_Void();
23804 SWIGINTERN PyObject
*_wrap_ColourDatabase_Find(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
23805 PyObject
*resultobj
= 0;
23806 wxColourDatabase
*arg1
= (wxColourDatabase
*) 0 ;
23807 wxString
*arg2
= 0 ;
23811 bool temp2
= false ;
23812 PyObject
* obj0
= 0 ;
23813 PyObject
* obj1
= 0 ;
23814 char * kwnames
[] = {
23815 (char *) "self",(char *) "name", NULL
23818 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:ColourDatabase_Find",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
23819 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxColourDatabase
, 0 | 0 );
23820 if (!SWIG_IsOK(res1
)) {
23821 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
23823 arg1
= reinterpret_cast< wxColourDatabase
* >(argp1
);
23825 arg2
= wxString_in_helper(obj1
);
23826 if (arg2
== NULL
) SWIG_fail
;
23830 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
23831 result
= ((wxColourDatabase
const *)arg1
)->Find((wxString
const &)*arg2
);
23832 wxPyEndAllowThreads(__tstate
);
23833 if (PyErr_Occurred()) SWIG_fail
;
23835 resultobj
= SWIG_NewPointerObj((new wxColour(static_cast< const wxColour
& >(result
))), SWIGTYPE_p_wxColour
, SWIG_POINTER_OWN
| 0 );
23850 SWIGINTERN PyObject
*_wrap_ColourDatabase_FindName(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
23851 PyObject
*resultobj
= 0;
23852 wxColourDatabase
*arg1
= (wxColourDatabase
*) 0 ;
23853 wxColour
*arg2
= 0 ;
23858 PyObject
* obj0
= 0 ;
23859 PyObject
* obj1
= 0 ;
23860 char * kwnames
[] = {
23861 (char *) "self",(char *) "colour", NULL
23864 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:ColourDatabase_FindName",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
23865 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxColourDatabase
, 0 | 0 );
23866 if (!SWIG_IsOK(res1
)) {
23867 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
23869 arg1
= reinterpret_cast< wxColourDatabase
* >(argp1
);
23872 if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
;
23875 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
23876 result
= ((wxColourDatabase
const *)arg1
)->FindName((wxColour
const &)*arg2
);
23877 wxPyEndAllowThreads(__tstate
);
23878 if (PyErr_Occurred()) SWIG_fail
;
23882 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
23884 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
23893 SWIGINTERN PyObject
*_wrap_ColourDatabase_AddColour(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
23894 PyObject
*resultobj
= 0;
23895 wxColourDatabase
*arg1
= (wxColourDatabase
*) 0 ;
23896 wxString
*arg2
= 0 ;
23897 wxColour
*arg3
= 0 ;
23900 bool temp2
= false ;
23902 PyObject
* obj0
= 0 ;
23903 PyObject
* obj1
= 0 ;
23904 PyObject
* obj2
= 0 ;
23905 char * kwnames
[] = {
23906 (char *) "self",(char *) "name",(char *) "colour", NULL
23909 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:ColourDatabase_AddColour",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
23910 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxColourDatabase
, 0 | 0 );
23911 if (!SWIG_IsOK(res1
)) {
23912 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
23914 arg1
= reinterpret_cast< wxColourDatabase
* >(argp1
);
23916 arg2
= wxString_in_helper(obj1
);
23917 if (arg2
== NULL
) SWIG_fail
;
23922 if ( ! wxColour_helper(obj2
, &arg3
)) SWIG_fail
;
23925 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
23926 (arg1
)->AddColour((wxString
const &)*arg2
,(wxColour
const &)*arg3
);
23927 wxPyEndAllowThreads(__tstate
);
23928 if (PyErr_Occurred()) SWIG_fail
;
23930 resultobj
= SWIG_Py_Void();
23945 SWIGINTERN PyObject
*_wrap_ColourDatabase_Append(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
23946 PyObject
*resultobj
= 0;
23947 wxColourDatabase
*arg1
= (wxColourDatabase
*) 0 ;
23948 wxString
*arg2
= 0 ;
23954 bool temp2
= false ;
23961 PyObject
* obj0
= 0 ;
23962 PyObject
* obj1
= 0 ;
23963 PyObject
* obj2
= 0 ;
23964 PyObject
* obj3
= 0 ;
23965 PyObject
* obj4
= 0 ;
23966 char * kwnames
[] = {
23967 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
23970 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOOO:ColourDatabase_Append",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) SWIG_fail
;
23971 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxColourDatabase
, 0 | 0 );
23972 if (!SWIG_IsOK(res1
)) {
23973 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
23975 arg1
= reinterpret_cast< wxColourDatabase
* >(argp1
);
23977 arg2
= wxString_in_helper(obj1
);
23978 if (arg2
== NULL
) SWIG_fail
;
23981 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
23982 if (!SWIG_IsOK(ecode3
)) {
23983 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
23985 arg3
= static_cast< int >(val3
);
23986 ecode4
= SWIG_AsVal_int(obj3
, &val4
);
23987 if (!SWIG_IsOK(ecode4
)) {
23988 SWIG_exception_fail(SWIG_ArgError(ecode4
), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
23990 arg4
= static_cast< int >(val4
);
23991 ecode5
= SWIG_AsVal_int(obj4
, &val5
);
23992 if (!SWIG_IsOK(ecode5
)) {
23993 SWIG_exception_fail(SWIG_ArgError(ecode5
), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
23995 arg5
= static_cast< int >(val5
);
23997 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
23998 wxColourDatabase_Append(arg1
,(wxString
const &)*arg2
,arg3
,arg4
,arg5
);
23999 wxPyEndAllowThreads(__tstate
);
24000 if (PyErr_Occurred()) SWIG_fail
;
24002 resultobj
= SWIG_Py_Void();
24017 SWIGINTERN PyObject
*ColourDatabase_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
24019 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
24020 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase
, SWIG_NewClientData(obj
));
24021 return SWIG_Py_Void();
24024 SWIGINTERN PyObject
*ColourDatabase_swiginit(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
24025 return SWIG_Python_InitShadowInstance(args
);
24028 SWIGINTERN PyObject
*_wrap__wxPyInitTheFontList(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
24029 PyObject
*resultobj
= 0;
24030 wxFontList
*result
= 0 ;
24032 if (!SWIG_Python_UnpackTuple(args
,"_wxPyInitTheFontList",0,0,0)) SWIG_fail
;
24034 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
24035 result
= (wxFontList
*)_wxPyInitTheFontList();
24036 wxPyEndAllowThreads(__tstate
);
24037 if (PyErr_Occurred()) SWIG_fail
;
24039 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxFontList
, 0 | 0 );
24046 SWIGINTERN PyObject
*_wrap__wxPyInitThePenList(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
24047 PyObject
*resultobj
= 0;
24048 wxPenList
*result
= 0 ;
24050 if (!SWIG_Python_UnpackTuple(args
,"_wxPyInitThePenList",0,0,0)) SWIG_fail
;
24052 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
24053 result
= (wxPenList
*)_wxPyInitThePenList();
24054 wxPyEndAllowThreads(__tstate
);
24055 if (PyErr_Occurred()) SWIG_fail
;
24057 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxPenList
, 0 | 0 );
24064 SWIGINTERN PyObject
*_wrap__wxPyInitTheBrushList(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
24065 PyObject
*resultobj
= 0;
24066 wxBrushList
*result
= 0 ;
24068 if (!SWIG_Python_UnpackTuple(args
,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail
;
24070 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
24071 result
= (wxBrushList
*)_wxPyInitTheBrushList();
24072 wxPyEndAllowThreads(__tstate
);
24073 if (PyErr_Occurred()) SWIG_fail
;
24075 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxBrushList
, 0 | 0 );
24082 SWIGINTERN PyObject
*_wrap__wxPyInitTheColourDatabase(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
24083 PyObject
*resultobj
= 0;
24084 wxColourDatabase
*result
= 0 ;
24086 if (!SWIG_Python_UnpackTuple(args
,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail
;
24088 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
24089 result
= (wxColourDatabase
*)_wxPyInitTheColourDatabase();
24090 wxPyEndAllowThreads(__tstate
);
24091 if (PyErr_Occurred()) SWIG_fail
;
24093 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxColourDatabase
, 0 | 0 );
24100 SWIGINTERN PyObject
*_wrap_new_Effects(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
24101 PyObject
*resultobj
= 0;
24102 wxEffects
*result
= 0 ;
24104 if (!SWIG_Python_UnpackTuple(args
,"new_Effects",0,0,0)) SWIG_fail
;
24106 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
24107 result
= (wxEffects
*)new wxEffects();
24108 wxPyEndAllowThreads(__tstate
);
24109 if (PyErr_Occurred()) SWIG_fail
;
24111 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxEffects
, SWIG_POINTER_NEW
| 0 );
24118 SWIGINTERN PyObject
*_wrap_Effects_GetHighlightColour(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
24119 PyObject
*resultobj
= 0;
24120 wxEffects
*arg1
= (wxEffects
*) 0 ;
24124 PyObject
*swig_obj
[1] ;
24126 if (!args
) SWIG_fail
;
24127 swig_obj
[0] = args
;
24128 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxEffects
, 0 | 0 );
24129 if (!SWIG_IsOK(res1
)) {
24130 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
24132 arg1
= reinterpret_cast< wxEffects
* >(argp1
);
24134 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
24135 result
= ((wxEffects
const *)arg1
)->GetHighlightColour();
24136 wxPyEndAllowThreads(__tstate
);
24137 if (PyErr_Occurred()) SWIG_fail
;
24139 resultobj
= SWIG_NewPointerObj((new wxColour(static_cast< const wxColour
& >(result
))), SWIGTYPE_p_wxColour
, SWIG_POINTER_OWN
| 0 );
24146 SWIGINTERN PyObject
*_wrap_Effects_GetLightShadow(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
24147 PyObject
*resultobj
= 0;
24148 wxEffects
*arg1
= (wxEffects
*) 0 ;
24152 PyObject
*swig_obj
[1] ;
24154 if (!args
) SWIG_fail
;
24155 swig_obj
[0] = args
;
24156 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxEffects
, 0 | 0 );
24157 if (!SWIG_IsOK(res1
)) {
24158 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
24160 arg1
= reinterpret_cast< wxEffects
* >(argp1
);
24162 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
24163 result
= ((wxEffects
const *)arg1
)->GetLightShadow();
24164 wxPyEndAllowThreads(__tstate
);
24165 if (PyErr_Occurred()) SWIG_fail
;
24167 resultobj
= SWIG_NewPointerObj((new wxColour(static_cast< const wxColour
& >(result
))), SWIGTYPE_p_wxColour
, SWIG_POINTER_OWN
| 0 );
24174 SWIGINTERN PyObject
*_wrap_Effects_GetFaceColour(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
24175 PyObject
*resultobj
= 0;
24176 wxEffects
*arg1
= (wxEffects
*) 0 ;
24180 PyObject
*swig_obj
[1] ;
24182 if (!args
) SWIG_fail
;
24183 swig_obj
[0] = args
;
24184 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxEffects
, 0 | 0 );
24185 if (!SWIG_IsOK(res1
)) {
24186 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
24188 arg1
= reinterpret_cast< wxEffects
* >(argp1
);
24190 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
24191 result
= ((wxEffects
const *)arg1
)->GetFaceColour();
24192 wxPyEndAllowThreads(__tstate
);
24193 if (PyErr_Occurred()) SWIG_fail
;
24195 resultobj
= SWIG_NewPointerObj((new wxColour(static_cast< const wxColour
& >(result
))), SWIGTYPE_p_wxColour
, SWIG_POINTER_OWN
| 0 );
24202 SWIGINTERN PyObject
*_wrap_Effects_GetMediumShadow(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
24203 PyObject
*resultobj
= 0;
24204 wxEffects
*arg1
= (wxEffects
*) 0 ;
24208 PyObject
*swig_obj
[1] ;
24210 if (!args
) SWIG_fail
;
24211 swig_obj
[0] = args
;
24212 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxEffects
, 0 | 0 );
24213 if (!SWIG_IsOK(res1
)) {
24214 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
24216 arg1
= reinterpret_cast< wxEffects
* >(argp1
);
24218 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
24219 result
= ((wxEffects
const *)arg1
)->GetMediumShadow();
24220 wxPyEndAllowThreads(__tstate
);
24221 if (PyErr_Occurred()) SWIG_fail
;
24223 resultobj
= SWIG_NewPointerObj((new wxColour(static_cast< const wxColour
& >(result
))), SWIGTYPE_p_wxColour
, SWIG_POINTER_OWN
| 0 );
24230 SWIGINTERN PyObject
*_wrap_Effects_GetDarkShadow(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
24231 PyObject
*resultobj
= 0;
24232 wxEffects
*arg1
= (wxEffects
*) 0 ;
24236 PyObject
*swig_obj
[1] ;
24238 if (!args
) SWIG_fail
;
24239 swig_obj
[0] = args
;
24240 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxEffects
, 0 | 0 );
24241 if (!SWIG_IsOK(res1
)) {
24242 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
24244 arg1
= reinterpret_cast< wxEffects
* >(argp1
);
24246 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
24247 result
= ((wxEffects
const *)arg1
)->GetDarkShadow();
24248 wxPyEndAllowThreads(__tstate
);
24249 if (PyErr_Occurred()) SWIG_fail
;
24251 resultobj
= SWIG_NewPointerObj((new wxColour(static_cast< const wxColour
& >(result
))), SWIGTYPE_p_wxColour
, SWIG_POINTER_OWN
| 0 );
24258 SWIGINTERN PyObject
*_wrap_Effects_SetHighlightColour(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
24259 PyObject
*resultobj
= 0;
24260 wxEffects
*arg1
= (wxEffects
*) 0 ;
24261 wxColour
*arg2
= 0 ;
24265 PyObject
* obj0
= 0 ;
24266 PyObject
* obj1
= 0 ;
24267 char * kwnames
[] = {
24268 (char *) "self",(char *) "c", NULL
24271 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Effects_SetHighlightColour",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
24272 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxEffects
, 0 | 0 );
24273 if (!SWIG_IsOK(res1
)) {
24274 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
24276 arg1
= reinterpret_cast< wxEffects
* >(argp1
);
24279 if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
;
24282 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
24283 (arg1
)->SetHighlightColour((wxColour
const &)*arg2
);
24284 wxPyEndAllowThreads(__tstate
);
24285 if (PyErr_Occurred()) SWIG_fail
;
24287 resultobj
= SWIG_Py_Void();
24294 SWIGINTERN PyObject
*_wrap_Effects_SetLightShadow(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
24295 PyObject
*resultobj
= 0;
24296 wxEffects
*arg1
= (wxEffects
*) 0 ;
24297 wxColour
*arg2
= 0 ;
24301 PyObject
* obj0
= 0 ;
24302 PyObject
* obj1
= 0 ;
24303 char * kwnames
[] = {
24304 (char *) "self",(char *) "c", NULL
24307 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Effects_SetLightShadow",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
24308 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxEffects
, 0 | 0 );
24309 if (!SWIG_IsOK(res1
)) {
24310 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
24312 arg1
= reinterpret_cast< wxEffects
* >(argp1
);
24315 if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
;
24318 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
24319 (arg1
)->SetLightShadow((wxColour
const &)*arg2
);
24320 wxPyEndAllowThreads(__tstate
);
24321 if (PyErr_Occurred()) SWIG_fail
;
24323 resultobj
= SWIG_Py_Void();
24330 SWIGINTERN PyObject
*_wrap_Effects_SetFaceColour(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
24331 PyObject
*resultobj
= 0;
24332 wxEffects
*arg1
= (wxEffects
*) 0 ;
24333 wxColour
*arg2
= 0 ;
24337 PyObject
* obj0
= 0 ;
24338 PyObject
* obj1
= 0 ;
24339 char * kwnames
[] = {
24340 (char *) "self",(char *) "c", NULL
24343 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Effects_SetFaceColour",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
24344 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxEffects
, 0 | 0 );
24345 if (!SWIG_IsOK(res1
)) {
24346 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
24348 arg1
= reinterpret_cast< wxEffects
* >(argp1
);
24351 if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
;
24354 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
24355 (arg1
)->SetFaceColour((wxColour
const &)*arg2
);
24356 wxPyEndAllowThreads(__tstate
);
24357 if (PyErr_Occurred()) SWIG_fail
;
24359 resultobj
= SWIG_Py_Void();
24366 SWIGINTERN PyObject
*_wrap_Effects_SetMediumShadow(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
24367 PyObject
*resultobj
= 0;
24368 wxEffects
*arg1
= (wxEffects
*) 0 ;
24369 wxColour
*arg2
= 0 ;
24373 PyObject
* obj0
= 0 ;
24374 PyObject
* obj1
= 0 ;
24375 char * kwnames
[] = {
24376 (char *) "self",(char *) "c", NULL
24379 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Effects_SetMediumShadow",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
24380 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxEffects
, 0 | 0 );
24381 if (!SWIG_IsOK(res1
)) {
24382 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
24384 arg1
= reinterpret_cast< wxEffects
* >(argp1
);
24387 if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
;
24390 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
24391 (arg1
)->SetMediumShadow((wxColour
const &)*arg2
);
24392 wxPyEndAllowThreads(__tstate
);
24393 if (PyErr_Occurred()) SWIG_fail
;
24395 resultobj
= SWIG_Py_Void();
24402 SWIGINTERN PyObject
*_wrap_Effects_SetDarkShadow(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
24403 PyObject
*resultobj
= 0;
24404 wxEffects
*arg1
= (wxEffects
*) 0 ;
24405 wxColour
*arg2
= 0 ;
24409 PyObject
* obj0
= 0 ;
24410 PyObject
* obj1
= 0 ;
24411 char * kwnames
[] = {
24412 (char *) "self",(char *) "c", NULL
24415 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:Effects_SetDarkShadow",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
24416 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxEffects
, 0 | 0 );
24417 if (!SWIG_IsOK(res1
)) {
24418 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
24420 arg1
= reinterpret_cast< wxEffects
* >(argp1
);
24423 if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
;
24426 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
24427 (arg1
)->SetDarkShadow((wxColour
const &)*arg2
);
24428 wxPyEndAllowThreads(__tstate
);
24429 if (PyErr_Occurred()) SWIG_fail
;
24431 resultobj
= SWIG_Py_Void();
24438 SWIGINTERN PyObject
*_wrap_Effects_Set(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
24439 PyObject
*resultobj
= 0;
24440 wxEffects
*arg1
= (wxEffects
*) 0 ;
24441 wxColour
*arg2
= 0 ;
24442 wxColour
*arg3
= 0 ;
24443 wxColour
*arg4
= 0 ;
24444 wxColour
*arg5
= 0 ;
24445 wxColour
*arg6
= 0 ;
24453 PyObject
* obj0
= 0 ;
24454 PyObject
* obj1
= 0 ;
24455 PyObject
* obj2
= 0 ;
24456 PyObject
* obj3
= 0 ;
24457 PyObject
* obj4
= 0 ;
24458 PyObject
* obj5
= 0 ;
24459 char * kwnames
[] = {
24460 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
24463 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOOOO:Effects_Set",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
,&obj5
)) SWIG_fail
;
24464 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxEffects
, 0 | 0 );
24465 if (!SWIG_IsOK(res1
)) {
24466 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
24468 arg1
= reinterpret_cast< wxEffects
* >(argp1
);
24471 if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
;
24475 if ( ! wxColour_helper(obj2
, &arg3
)) SWIG_fail
;
24479 if ( ! wxColour_helper(obj3
, &arg4
)) SWIG_fail
;
24483 if ( ! wxColour_helper(obj4
, &arg5
)) SWIG_fail
;
24487 if ( ! wxColour_helper(obj5
, &arg6
)) SWIG_fail
;
24490 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
24491 (arg1
)->Set((wxColour
const &)*arg2
,(wxColour
const &)*arg3
,(wxColour
const &)*arg4
,(wxColour
const &)*arg5
,(wxColour
const &)*arg6
);
24492 wxPyEndAllowThreads(__tstate
);
24493 if (PyErr_Occurred()) SWIG_fail
;
24495 resultobj
= SWIG_Py_Void();
24502 SWIGINTERN PyObject
*_wrap_Effects_DrawSunkenEdge(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
24503 PyObject
*resultobj
= 0;
24504 wxEffects
*arg1
= (wxEffects
*) 0 ;
24507 int arg4
= (int) 1 ;
24515 PyObject
* obj0
= 0 ;
24516 PyObject
* obj1
= 0 ;
24517 PyObject
* obj2
= 0 ;
24518 PyObject
* obj3
= 0 ;
24519 char * kwnames
[] = {
24520 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
24523 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) SWIG_fail
;
24524 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxEffects
, 0 | 0 );
24525 if (!SWIG_IsOK(res1
)) {
24526 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
24528 arg1
= reinterpret_cast< wxEffects
* >(argp1
);
24529 res2
= SWIG_ConvertPtr(obj1
, &argp2
, SWIGTYPE_p_wxDC
, 0 );
24530 if (!SWIG_IsOK(res2
)) {
24531 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
24534 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
24536 arg2
= reinterpret_cast< wxDC
* >(argp2
);
24539 if ( ! wxRect_helper(obj2
, &arg3
)) SWIG_fail
;
24542 ecode4
= SWIG_AsVal_int(obj3
, &val4
);
24543 if (!SWIG_IsOK(ecode4
)) {
24544 SWIG_exception_fail(SWIG_ArgError(ecode4
), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
24546 arg4
= static_cast< int >(val4
);
24549 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
24550 (arg1
)->DrawSunkenEdge(*arg2
,(wxRect
const &)*arg3
,arg4
);
24551 wxPyEndAllowThreads(__tstate
);
24552 if (PyErr_Occurred()) SWIG_fail
;
24554 resultobj
= SWIG_Py_Void();
24561 SWIGINTERN PyObject
*_wrap_Effects_TileBitmap(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
24562 PyObject
*resultobj
= 0;
24563 wxEffects
*arg1
= (wxEffects
*) 0 ;
24566 wxBitmap
*arg4
= 0 ;
24575 PyObject
* obj0
= 0 ;
24576 PyObject
* obj1
= 0 ;
24577 PyObject
* obj2
= 0 ;
24578 PyObject
* obj3
= 0 ;
24579 char * kwnames
[] = {
24580 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
24583 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:Effects_TileBitmap",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) SWIG_fail
;
24584 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxEffects
, 0 | 0 );
24585 if (!SWIG_IsOK(res1
)) {
24586 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
24588 arg1
= reinterpret_cast< wxEffects
* >(argp1
);
24591 if ( ! wxRect_helper(obj1
, &arg2
)) SWIG_fail
;
24593 res3
= SWIG_ConvertPtr(obj2
, &argp3
, SWIGTYPE_p_wxDC
, 0 );
24594 if (!SWIG_IsOK(res3
)) {
24595 SWIG_exception_fail(SWIG_ArgError(res3
), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
24598 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
24600 arg3
= reinterpret_cast< wxDC
* >(argp3
);
24601 res4
= SWIG_ConvertPtr(obj3
, &argp4
, SWIGTYPE_p_wxBitmap
, 0 );
24602 if (!SWIG_IsOK(res4
)) {
24603 SWIG_exception_fail(SWIG_ArgError(res4
), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
24606 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
24608 arg4
= reinterpret_cast< wxBitmap
* >(argp4
);
24610 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
24611 result
= (bool)(arg1
)->TileBitmap((wxRect
const &)*arg2
,*arg3
,*arg4
);
24612 wxPyEndAllowThreads(__tstate
);
24613 if (PyErr_Occurred()) SWIG_fail
;
24616 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
24624 SWIGINTERN PyObject
*Effects_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
24626 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
24627 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects
, SWIG_NewClientData(obj
));
24628 return SWIG_Py_Void();
24631 SWIGINTERN PyObject
*Effects_swiginit(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
24632 return SWIG_Python_InitShadowInstance(args
);
24635 SWIGINTERN PyObject
*_wrap_new_SplitterRenderParams(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
24636 PyObject
*resultobj
= 0;
24640 wxSplitterRenderParams
*result
= 0 ;
24647 PyObject
* obj0
= 0 ;
24648 PyObject
* obj1
= 0 ;
24649 PyObject
* obj2
= 0 ;
24650 char * kwnames
[] = {
24651 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
24654 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:new_SplitterRenderParams",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
24655 ecode1
= SWIG_AsVal_int(obj0
, &val1
);
24656 if (!SWIG_IsOK(ecode1
)) {
24657 SWIG_exception_fail(SWIG_ArgError(ecode1
), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
24659 arg1
= static_cast< int >(val1
);
24660 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
24661 if (!SWIG_IsOK(ecode2
)) {
24662 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
24664 arg2
= static_cast< int >(val2
);
24665 ecode3
= SWIG_AsVal_bool(obj2
, &val3
);
24666 if (!SWIG_IsOK(ecode3
)) {
24667 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
24669 arg3
= static_cast< bool >(val3
);
24671 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
24672 result
= (wxSplitterRenderParams
*)new wxSplitterRenderParams(arg1
,arg2
,arg3
);
24673 wxPyEndAllowThreads(__tstate
);
24674 if (PyErr_Occurred()) SWIG_fail
;
24676 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxSplitterRenderParams
, SWIG_POINTER_NEW
| 0 );
24683 SWIGINTERN PyObject
*_wrap_delete_SplitterRenderParams(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
24684 PyObject
*resultobj
= 0;
24685 wxSplitterRenderParams
*arg1
= (wxSplitterRenderParams
*) 0 ;
24688 PyObject
*swig_obj
[1] ;
24690 if (!args
) SWIG_fail
;
24691 swig_obj
[0] = args
;
24692 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxSplitterRenderParams
, SWIG_POINTER_DISOWN
| 0 );
24693 if (!SWIG_IsOK(res1
)) {
24694 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24696 arg1
= reinterpret_cast< wxSplitterRenderParams
* >(argp1
);
24698 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
24701 wxPyEndAllowThreads(__tstate
);
24702 if (PyErr_Occurred()) SWIG_fail
;
24704 resultobj
= SWIG_Py_Void();
24711 SWIGINTERN PyObject
*_wrap_SplitterRenderParams_widthSash_get(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
24712 PyObject
*resultobj
= 0;
24713 wxSplitterRenderParams
*arg1
= (wxSplitterRenderParams
*) 0 ;
24717 PyObject
*swig_obj
[1] ;
24719 if (!args
) SWIG_fail
;
24720 swig_obj
[0] = args
;
24721 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxSplitterRenderParams
, 0 | 0 );
24722 if (!SWIG_IsOK(res1
)) {
24723 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24725 arg1
= reinterpret_cast< wxSplitterRenderParams
* >(argp1
);
24726 result
= (int)(int) ((arg1
)->widthSash
);
24727 resultobj
= SWIG_From_int(static_cast< int >(result
));
24734 SWIGINTERN PyObject
*_wrap_SplitterRenderParams_border_get(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
24735 PyObject
*resultobj
= 0;
24736 wxSplitterRenderParams
*arg1
= (wxSplitterRenderParams
*) 0 ;
24740 PyObject
*swig_obj
[1] ;
24742 if (!args
) SWIG_fail
;
24743 swig_obj
[0] = args
;
24744 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxSplitterRenderParams
, 0 | 0 );
24745 if (!SWIG_IsOK(res1
)) {
24746 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24748 arg1
= reinterpret_cast< wxSplitterRenderParams
* >(argp1
);
24749 result
= (int)(int) ((arg1
)->border
);
24750 resultobj
= SWIG_From_int(static_cast< int >(result
));
24757 SWIGINTERN PyObject
*_wrap_SplitterRenderParams_isHotSensitive_get(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
24758 PyObject
*resultobj
= 0;
24759 wxSplitterRenderParams
*arg1
= (wxSplitterRenderParams
*) 0 ;
24763 PyObject
*swig_obj
[1] ;
24765 if (!args
) SWIG_fail
;
24766 swig_obj
[0] = args
;
24767 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxSplitterRenderParams
, 0 | 0 );
24768 if (!SWIG_IsOK(res1
)) {
24769 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24771 arg1
= reinterpret_cast< wxSplitterRenderParams
* >(argp1
);
24772 result
= (bool)(bool) ((arg1
)->isHotSensitive
);
24773 resultobj
= SWIG_From_bool(static_cast< bool >(result
));
24780 SWIGINTERN PyObject
*SplitterRenderParams_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
24782 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
24783 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams
, SWIG_NewClientData(obj
));
24784 return SWIG_Py_Void();
24787 SWIGINTERN PyObject
*SplitterRenderParams_swiginit(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
24788 return SWIG_Python_InitShadowInstance(args
);
24791 SWIGINTERN PyObject
*_wrap_new_RendererVersion(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
24792 PyObject
*resultobj
= 0;
24795 wxRendererVersion
*result
= 0 ;
24800 PyObject
* obj0
= 0 ;
24801 PyObject
* obj1
= 0 ;
24802 char * kwnames
[] = {
24803 (char *) "version_",(char *) "age_", NULL
24806 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:new_RendererVersion",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
24807 ecode1
= SWIG_AsVal_int(obj0
, &val1
);
24808 if (!SWIG_IsOK(ecode1
)) {
24809 SWIG_exception_fail(SWIG_ArgError(ecode1
), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
24811 arg1
= static_cast< int >(val1
);
24812 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
24813 if (!SWIG_IsOK(ecode2
)) {
24814 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
24816 arg2
= static_cast< int >(val2
);
24818 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
24819 result
= (wxRendererVersion
*)new wxRendererVersion(arg1
,arg2
);
24820 wxPyEndAllowThreads(__tstate
);
24821 if (PyErr_Occurred()) SWIG_fail
;
24823 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxRendererVersion
, SWIG_POINTER_NEW
| 0 );
24830 SWIGINTERN PyObject
*_wrap_delete_RendererVersion(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
24831 PyObject
*resultobj
= 0;
24832 wxRendererVersion
*arg1
= (wxRendererVersion
*) 0 ;
24835 PyObject
*swig_obj
[1] ;
24837 if (!args
) SWIG_fail
;
24838 swig_obj
[0] = args
;
24839 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxRendererVersion
, SWIG_POINTER_DISOWN
| 0 );
24840 if (!SWIG_IsOK(res1
)) {
24841 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
24843 arg1
= reinterpret_cast< wxRendererVersion
* >(argp1
);
24845 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
24848 wxPyEndAllowThreads(__tstate
);
24849 if (PyErr_Occurred()) SWIG_fail
;
24851 resultobj
= SWIG_Py_Void();
24858 SWIGINTERN PyObject
*_wrap_RendererVersion_IsCompatible(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
24859 PyObject
*resultobj
= 0;
24860 wxRendererVersion
*arg1
= 0 ;
24864 PyObject
* obj0
= 0 ;
24865 char * kwnames
[] = {
24866 (char *) "ver", NULL
24869 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:RendererVersion_IsCompatible",kwnames
,&obj0
)) SWIG_fail
;
24870 res1
= SWIG_ConvertPtr(obj0
, &argp1
, SWIGTYPE_p_wxRendererVersion
, 0 | 0);
24871 if (!SWIG_IsOK(res1
)) {
24872 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
24875 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
24877 arg1
= reinterpret_cast< wxRendererVersion
* >(argp1
);
24879 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
24880 result
= (bool)wxRendererVersion::IsCompatible((wxRendererVersion
const &)*arg1
);
24881 wxPyEndAllowThreads(__tstate
);
24882 if (PyErr_Occurred()) SWIG_fail
;
24885 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
24893 SWIGINTERN PyObject
*_wrap_RendererVersion_version_get(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
24894 PyObject
*resultobj
= 0;
24895 wxRendererVersion
*arg1
= (wxRendererVersion
*) 0 ;
24899 PyObject
*swig_obj
[1] ;
24901 if (!args
) SWIG_fail
;
24902 swig_obj
[0] = args
;
24903 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxRendererVersion
, 0 | 0 );
24904 if (!SWIG_IsOK(res1
)) {
24905 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
24907 arg1
= reinterpret_cast< wxRendererVersion
* >(argp1
);
24908 result
= (int)(int) ((arg1
)->version
);
24909 resultobj
= SWIG_From_int(static_cast< int >(result
));
24916 SWIGINTERN PyObject
*_wrap_RendererVersion_age_get(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
24917 PyObject
*resultobj
= 0;
24918 wxRendererVersion
*arg1
= (wxRendererVersion
*) 0 ;
24922 PyObject
*swig_obj
[1] ;
24924 if (!args
) SWIG_fail
;
24925 swig_obj
[0] = args
;
24926 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxRendererVersion
, 0 | 0 );
24927 if (!SWIG_IsOK(res1
)) {
24928 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
24930 arg1
= reinterpret_cast< wxRendererVersion
* >(argp1
);
24931 result
= (int)(int) ((arg1
)->age
);
24932 resultobj
= SWIG_From_int(static_cast< int >(result
));
24939 SWIGINTERN PyObject
*RendererVersion_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
24941 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
24942 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion
, SWIG_NewClientData(obj
));
24943 return SWIG_Py_Void();
24946 SWIGINTERN PyObject
*RendererVersion_swiginit(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
24947 return SWIG_Python_InitShadowInstance(args
);
24950 SWIGINTERN PyObject
*_wrap_RendererNative_DrawHeaderButton(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
24951 PyObject
*resultobj
= 0;
24952 wxRendererNative
*arg1
= (wxRendererNative
*) 0 ;
24953 wxWindow
*arg2
= (wxWindow
*) 0 ;
24956 int arg5
= (int) 0 ;
24966 PyObject
* obj0
= 0 ;
24967 PyObject
* obj1
= 0 ;
24968 PyObject
* obj2
= 0 ;
24969 PyObject
* obj3
= 0 ;
24970 PyObject
* obj4
= 0 ;
24971 char * kwnames
[] = {
24972 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24975 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO|O:RendererNative_DrawHeaderButton",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) SWIG_fail
;
24976 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxRendererNative
, 0 | 0 );
24977 if (!SWIG_IsOK(res1
)) {
24978 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24980 arg1
= reinterpret_cast< wxRendererNative
* >(argp1
);
24981 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxWindow
, 0 | 0 );
24982 if (!SWIG_IsOK(res2
)) {
24983 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
24985 arg2
= reinterpret_cast< wxWindow
* >(argp2
);
24986 res3
= SWIG_ConvertPtr(obj2
, &argp3
, SWIGTYPE_p_wxDC
, 0 );
24987 if (!SWIG_IsOK(res3
)) {
24988 SWIG_exception_fail(SWIG_ArgError(res3
), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
24991 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
24993 arg3
= reinterpret_cast< wxDC
* >(argp3
);
24996 if ( ! wxRect_helper(obj3
, &arg4
)) SWIG_fail
;
24999 ecode5
= SWIG_AsVal_int(obj4
, &val5
);
25000 if (!SWIG_IsOK(ecode5
)) {
25001 SWIG_exception_fail(SWIG_ArgError(ecode5
), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
25003 arg5
= static_cast< int >(val5
);
25006 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
25007 (arg1
)->DrawHeaderButton(arg2
,*arg3
,(wxRect
const &)*arg4
,arg5
);
25008 wxPyEndAllowThreads(__tstate
);
25009 if (PyErr_Occurred()) SWIG_fail
;
25011 resultobj
= SWIG_Py_Void();
25018 SWIGINTERN PyObject
*_wrap_RendererNative_DrawTreeItemButton(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
25019 PyObject
*resultobj
= 0;
25020 wxRendererNative
*arg1
= (wxRendererNative
*) 0 ;
25021 wxWindow
*arg2
= (wxWindow
*) 0 ;
25024 int arg5
= (int) 0 ;
25034 PyObject
* obj0
= 0 ;
25035 PyObject
* obj1
= 0 ;
25036 PyObject
* obj2
= 0 ;
25037 PyObject
* obj3
= 0 ;
25038 PyObject
* obj4
= 0 ;
25039 char * kwnames
[] = {
25040 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25043 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) SWIG_fail
;
25044 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxRendererNative
, 0 | 0 );
25045 if (!SWIG_IsOK(res1
)) {
25046 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25048 arg1
= reinterpret_cast< wxRendererNative
* >(argp1
);
25049 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxWindow
, 0 | 0 );
25050 if (!SWIG_IsOK(res2
)) {
25051 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
25053 arg2
= reinterpret_cast< wxWindow
* >(argp2
);
25054 res3
= SWIG_ConvertPtr(obj2
, &argp3
, SWIGTYPE_p_wxDC
, 0 );
25055 if (!SWIG_IsOK(res3
)) {
25056 SWIG_exception_fail(SWIG_ArgError(res3
), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
25059 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
25061 arg3
= reinterpret_cast< wxDC
* >(argp3
);
25064 if ( ! wxRect_helper(obj3
, &arg4
)) SWIG_fail
;
25067 ecode5
= SWIG_AsVal_int(obj4
, &val5
);
25068 if (!SWIG_IsOK(ecode5
)) {
25069 SWIG_exception_fail(SWIG_ArgError(ecode5
), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
25071 arg5
= static_cast< int >(val5
);
25074 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
25075 (arg1
)->DrawTreeItemButton(arg2
,*arg3
,(wxRect
const &)*arg4
,arg5
);
25076 wxPyEndAllowThreads(__tstate
);
25077 if (PyErr_Occurred()) SWIG_fail
;
25079 resultobj
= SWIG_Py_Void();
25086 SWIGINTERN PyObject
*_wrap_RendererNative_DrawSplitterBorder(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
25087 PyObject
*resultobj
= 0;
25088 wxRendererNative
*arg1
= (wxRendererNative
*) 0 ;
25089 wxWindow
*arg2
= (wxWindow
*) 0 ;
25092 int arg5
= (int) 0 ;
25102 PyObject
* obj0
= 0 ;
25103 PyObject
* obj1
= 0 ;
25104 PyObject
* obj2
= 0 ;
25105 PyObject
* obj3
= 0 ;
25106 PyObject
* obj4
= 0 ;
25107 char * kwnames
[] = {
25108 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25111 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) SWIG_fail
;
25112 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxRendererNative
, 0 | 0 );
25113 if (!SWIG_IsOK(res1
)) {
25114 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25116 arg1
= reinterpret_cast< wxRendererNative
* >(argp1
);
25117 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxWindow
, 0 | 0 );
25118 if (!SWIG_IsOK(res2
)) {
25119 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
25121 arg2
= reinterpret_cast< wxWindow
* >(argp2
);
25122 res3
= SWIG_ConvertPtr(obj2
, &argp3
, SWIGTYPE_p_wxDC
, 0 );
25123 if (!SWIG_IsOK(res3
)) {
25124 SWIG_exception_fail(SWIG_ArgError(res3
), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
25127 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
25129 arg3
= reinterpret_cast< wxDC
* >(argp3
);
25132 if ( ! wxRect_helper(obj3
, &arg4
)) SWIG_fail
;
25135 ecode5
= SWIG_AsVal_int(obj4
, &val5
);
25136 if (!SWIG_IsOK(ecode5
)) {
25137 SWIG_exception_fail(SWIG_ArgError(ecode5
), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
25139 arg5
= static_cast< int >(val5
);
25142 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
25143 (arg1
)->DrawSplitterBorder(arg2
,*arg3
,(wxRect
const &)*arg4
,arg5
);
25144 wxPyEndAllowThreads(__tstate
);
25145 if (PyErr_Occurred()) SWIG_fail
;
25147 resultobj
= SWIG_Py_Void();
25154 SWIGINTERN PyObject
*_wrap_RendererNative_DrawSplitterSash(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
25155 PyObject
*resultobj
= 0;
25156 wxRendererNative
*arg1
= (wxRendererNative
*) 0 ;
25157 wxWindow
*arg2
= (wxWindow
*) 0 ;
25161 wxOrientation arg6
;
25162 int arg7
= (int) 0 ;
25176 PyObject
* obj0
= 0 ;
25177 PyObject
* obj1
= 0 ;
25178 PyObject
* obj2
= 0 ;
25179 PyObject
* obj3
= 0 ;
25180 PyObject
* obj4
= 0 ;
25181 PyObject
* obj5
= 0 ;
25182 PyObject
* obj6
= 0 ;
25183 char * kwnames
[] = {
25184 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
25187 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
,&obj5
,&obj6
)) SWIG_fail
;
25188 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxRendererNative
, 0 | 0 );
25189 if (!SWIG_IsOK(res1
)) {
25190 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25192 arg1
= reinterpret_cast< wxRendererNative
* >(argp1
);
25193 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxWindow
, 0 | 0 );
25194 if (!SWIG_IsOK(res2
)) {
25195 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
25197 arg2
= reinterpret_cast< wxWindow
* >(argp2
);
25198 res3
= SWIG_ConvertPtr(obj2
, &argp3
, SWIGTYPE_p_wxDC
, 0 );
25199 if (!SWIG_IsOK(res3
)) {
25200 SWIG_exception_fail(SWIG_ArgError(res3
), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
25203 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
25205 arg3
= reinterpret_cast< wxDC
* >(argp3
);
25208 if ( ! wxSize_helper(obj3
, &arg4
)) SWIG_fail
;
25210 ecode5
= SWIG_AsVal_int(obj4
, &val5
);
25211 if (!SWIG_IsOK(ecode5
)) {
25212 SWIG_exception_fail(SWIG_ArgError(ecode5
), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
25214 arg5
= static_cast< int >(val5
);
25215 ecode6
= SWIG_AsVal_int(obj5
, &val6
);
25216 if (!SWIG_IsOK(ecode6
)) {
25217 SWIG_exception_fail(SWIG_ArgError(ecode6
), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
25219 arg6
= static_cast< wxOrientation
>(val6
);
25221 ecode7
= SWIG_AsVal_int(obj6
, &val7
);
25222 if (!SWIG_IsOK(ecode7
)) {
25223 SWIG_exception_fail(SWIG_ArgError(ecode7
), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
25225 arg7
= static_cast< int >(val7
);
25228 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
25229 (arg1
)->DrawSplitterSash(arg2
,*arg3
,(wxSize
const &)*arg4
,arg5
,arg6
,arg7
);
25230 wxPyEndAllowThreads(__tstate
);
25231 if (PyErr_Occurred()) SWIG_fail
;
25233 resultobj
= SWIG_Py_Void();
25240 SWIGINTERN PyObject
*_wrap_RendererNative_DrawComboBoxDropButton(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
25241 PyObject
*resultobj
= 0;
25242 wxRendererNative
*arg1
= (wxRendererNative
*) 0 ;
25243 wxWindow
*arg2
= (wxWindow
*) 0 ;
25246 int arg5
= (int) 0 ;
25256 PyObject
* obj0
= 0 ;
25257 PyObject
* obj1
= 0 ;
25258 PyObject
* obj2
= 0 ;
25259 PyObject
* obj3
= 0 ;
25260 PyObject
* obj4
= 0 ;
25261 char * kwnames
[] = {
25262 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25265 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) SWIG_fail
;
25266 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxRendererNative
, 0 | 0 );
25267 if (!SWIG_IsOK(res1
)) {
25268 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25270 arg1
= reinterpret_cast< wxRendererNative
* >(argp1
);
25271 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxWindow
, 0 | 0 );
25272 if (!SWIG_IsOK(res2
)) {
25273 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
25275 arg2
= reinterpret_cast< wxWindow
* >(argp2
);
25276 res3
= SWIG_ConvertPtr(obj2
, &argp3
, SWIGTYPE_p_wxDC
, 0 );
25277 if (!SWIG_IsOK(res3
)) {
25278 SWIG_exception_fail(SWIG_ArgError(res3
), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
25281 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
25283 arg3
= reinterpret_cast< wxDC
* >(argp3
);
25286 if ( ! wxRect_helper(obj3
, &arg4
)) SWIG_fail
;
25289 ecode5
= SWIG_AsVal_int(obj4
, &val5
);
25290 if (!SWIG_IsOK(ecode5
)) {
25291 SWIG_exception_fail(SWIG_ArgError(ecode5
), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
25293 arg5
= static_cast< int >(val5
);
25296 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
25297 (arg1
)->DrawComboBoxDropButton(arg2
,*arg3
,(wxRect
const &)*arg4
,arg5
);
25298 wxPyEndAllowThreads(__tstate
);
25299 if (PyErr_Occurred()) SWIG_fail
;
25301 resultobj
= SWIG_Py_Void();
25308 SWIGINTERN PyObject
*_wrap_RendererNative_DrawDropArrow(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
25309 PyObject
*resultobj
= 0;
25310 wxRendererNative
*arg1
= (wxRendererNative
*) 0 ;
25311 wxWindow
*arg2
= (wxWindow
*) 0 ;
25314 int arg5
= (int) 0 ;
25324 PyObject
* obj0
= 0 ;
25325 PyObject
* obj1
= 0 ;
25326 PyObject
* obj2
= 0 ;
25327 PyObject
* obj3
= 0 ;
25328 PyObject
* obj4
= 0 ;
25329 char * kwnames
[] = {
25330 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25333 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) SWIG_fail
;
25334 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxRendererNative
, 0 | 0 );
25335 if (!SWIG_IsOK(res1
)) {
25336 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25338 arg1
= reinterpret_cast< wxRendererNative
* >(argp1
);
25339 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxWindow
, 0 | 0 );
25340 if (!SWIG_IsOK(res2
)) {
25341 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
25343 arg2
= reinterpret_cast< wxWindow
* >(argp2
);
25344 res3
= SWIG_ConvertPtr(obj2
, &argp3
, SWIGTYPE_p_wxDC
, 0 );
25345 if (!SWIG_IsOK(res3
)) {
25346 SWIG_exception_fail(SWIG_ArgError(res3
), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
25349 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
25351 arg3
= reinterpret_cast< wxDC
* >(argp3
);
25354 if ( ! wxRect_helper(obj3
, &arg4
)) SWIG_fail
;
25357 ecode5
= SWIG_AsVal_int(obj4
, &val5
);
25358 if (!SWIG_IsOK(ecode5
)) {
25359 SWIG_exception_fail(SWIG_ArgError(ecode5
), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
25361 arg5
= static_cast< int >(val5
);
25364 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
25365 (arg1
)->DrawDropArrow(arg2
,*arg3
,(wxRect
const &)*arg4
,arg5
);
25366 wxPyEndAllowThreads(__tstate
);
25367 if (PyErr_Occurred()) SWIG_fail
;
25369 resultobj
= SWIG_Py_Void();
25376 SWIGINTERN PyObject
*_wrap_RendererNative_DrawCheckButton(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
25377 PyObject
*resultobj
= 0;
25378 wxRendererNative
*arg1
= (wxRendererNative
*) 0 ;
25379 wxWindow
*arg2
= (wxWindow
*) 0 ;
25382 int arg5
= (int) 0 ;
25392 PyObject
* obj0
= 0 ;
25393 PyObject
* obj1
= 0 ;
25394 PyObject
* obj2
= 0 ;
25395 PyObject
* obj3
= 0 ;
25396 PyObject
* obj4
= 0 ;
25397 char * kwnames
[] = {
25398 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25401 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO|O:RendererNative_DrawCheckButton",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) SWIG_fail
;
25402 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxRendererNative
, 0 | 0 );
25403 if (!SWIG_IsOK(res1
)) {
25404 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "RendererNative_DrawCheckButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25406 arg1
= reinterpret_cast< wxRendererNative
* >(argp1
);
25407 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxWindow
, 0 | 0 );
25408 if (!SWIG_IsOK(res2
)) {
25409 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "RendererNative_DrawCheckButton" "', expected argument " "2"" of type '" "wxWindow *""'");
25411 arg2
= reinterpret_cast< wxWindow
* >(argp2
);
25412 res3
= SWIG_ConvertPtr(obj2
, &argp3
, SWIGTYPE_p_wxDC
, 0 );
25413 if (!SWIG_IsOK(res3
)) {
25414 SWIG_exception_fail(SWIG_ArgError(res3
), "in method '" "RendererNative_DrawCheckButton" "', expected argument " "3"" of type '" "wxDC &""'");
25417 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "RendererNative_DrawCheckButton" "', expected argument " "3"" of type '" "wxDC &""'");
25419 arg3
= reinterpret_cast< wxDC
* >(argp3
);
25422 if ( ! wxRect_helper(obj3
, &arg4
)) SWIG_fail
;
25425 ecode5
= SWIG_AsVal_int(obj4
, &val5
);
25426 if (!SWIG_IsOK(ecode5
)) {
25427 SWIG_exception_fail(SWIG_ArgError(ecode5
), "in method '" "RendererNative_DrawCheckButton" "', expected argument " "5"" of type '" "int""'");
25429 arg5
= static_cast< int >(val5
);
25432 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
25433 (arg1
)->DrawCheckButton(arg2
,*arg3
,(wxRect
const &)*arg4
,arg5
);
25434 wxPyEndAllowThreads(__tstate
);
25435 if (PyErr_Occurred()) SWIG_fail
;
25437 resultobj
= SWIG_Py_Void();
25444 SWIGINTERN PyObject
*_wrap_RendererNative_GetSplitterParams(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
25445 PyObject
*resultobj
= 0;
25446 wxRendererNative
*arg1
= (wxRendererNative
*) 0 ;
25447 wxWindow
*arg2
= (wxWindow
*) 0 ;
25448 SwigValueWrapper
<wxSplitterRenderParams
> result
;
25453 PyObject
* obj0
= 0 ;
25454 PyObject
* obj1
= 0 ;
25455 char * kwnames
[] = {
25456 (char *) "self",(char *) "win", NULL
25459 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:RendererNative_GetSplitterParams",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
25460 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxRendererNative
, 0 | 0 );
25461 if (!SWIG_IsOK(res1
)) {
25462 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25464 arg1
= reinterpret_cast< wxRendererNative
* >(argp1
);
25465 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxWindow
, 0 | 0 );
25466 if (!SWIG_IsOK(res2
)) {
25467 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
25469 arg2
= reinterpret_cast< wxWindow
* >(argp2
);
25471 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
25472 result
= (arg1
)->GetSplitterParams((wxWindow
const *)arg2
);
25473 wxPyEndAllowThreads(__tstate
);
25474 if (PyErr_Occurred()) SWIG_fail
;
25476 resultobj
= SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams
& >(result
))), SWIGTYPE_p_wxSplitterRenderParams
, SWIG_POINTER_OWN
| 0 );
25483 SWIGINTERN PyObject
*_wrap_RendererNative_Get(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
25484 PyObject
*resultobj
= 0;
25485 wxRendererNative
*result
= 0 ;
25487 if (!SWIG_Python_UnpackTuple(args
,"RendererNative_Get",0,0,0)) SWIG_fail
;
25489 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
25491 wxRendererNative
&_result_ref
= wxRendererNative::Get();
25492 result
= (wxRendererNative
*) &_result_ref
;
25494 wxPyEndAllowThreads(__tstate
);
25495 if (PyErr_Occurred()) SWIG_fail
;
25497 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxRendererNative
, 0 | 0 );
25504 SWIGINTERN PyObject
*_wrap_RendererNative_GetGeneric(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
25505 PyObject
*resultobj
= 0;
25506 wxRendererNative
*result
= 0 ;
25508 if (!SWIG_Python_UnpackTuple(args
,"RendererNative_GetGeneric",0,0,0)) SWIG_fail
;
25510 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
25512 wxRendererNative
&_result_ref
= wxRendererNative::GetGeneric();
25513 result
= (wxRendererNative
*) &_result_ref
;
25515 wxPyEndAllowThreads(__tstate
);
25516 if (PyErr_Occurred()) SWIG_fail
;
25518 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxRendererNative
, 0 | 0 );
25525 SWIGINTERN PyObject
*_wrap_RendererNative_GetDefault(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
25526 PyObject
*resultobj
= 0;
25527 wxRendererNative
*result
= 0 ;
25529 if (!SWIG_Python_UnpackTuple(args
,"RendererNative_GetDefault",0,0,0)) SWIG_fail
;
25531 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
25533 wxRendererNative
&_result_ref
= wxRendererNative::GetDefault();
25534 result
= (wxRendererNative
*) &_result_ref
;
25536 wxPyEndAllowThreads(__tstate
);
25537 if (PyErr_Occurred()) SWIG_fail
;
25539 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxRendererNative
, 0 | 0 );
25546 SWIGINTERN PyObject
*_wrap_RendererNative_Set(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
25547 PyObject
*resultobj
= 0;
25548 wxRendererNative
*arg1
= (wxRendererNative
*) 0 ;
25549 wxRendererNative
*result
= 0 ;
25552 PyObject
* obj0
= 0 ;
25553 char * kwnames
[] = {
25554 (char *) "renderer", NULL
25557 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:RendererNative_Set",kwnames
,&obj0
)) SWIG_fail
;
25558 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxRendererNative
, 0 | 0 );
25559 if (!SWIG_IsOK(res1
)) {
25560 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25562 arg1
= reinterpret_cast< wxRendererNative
* >(argp1
);
25564 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
25565 result
= (wxRendererNative
*)wxRendererNative::Set(arg1
);
25566 wxPyEndAllowThreads(__tstate
);
25567 if (PyErr_Occurred()) SWIG_fail
;
25569 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxRendererNative
, 0 | 0 );
25576 SWIGINTERN PyObject
*_wrap_RendererNative_GetVersion(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
25577 PyObject
*resultobj
= 0;
25578 wxRendererNative
*arg1
= (wxRendererNative
*) 0 ;
25579 SwigValueWrapper
<wxRendererVersion
> result
;
25582 PyObject
*swig_obj
[1] ;
25584 if (!args
) SWIG_fail
;
25585 swig_obj
[0] = args
;
25586 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxRendererNative
, 0 | 0 );
25587 if (!SWIG_IsOK(res1
)) {
25588 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
25590 arg1
= reinterpret_cast< wxRendererNative
* >(argp1
);
25592 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
25593 result
= ((wxRendererNative
const *)arg1
)->GetVersion();
25594 wxPyEndAllowThreads(__tstate
);
25595 if (PyErr_Occurred()) SWIG_fail
;
25597 resultobj
= SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion
& >(result
))), SWIGTYPE_p_wxRendererVersion
, SWIG_POINTER_OWN
| 0 );
25604 SWIGINTERN PyObject
*RendererNative_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
25606 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
25607 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative
, SWIG_NewClientData(obj
));
25608 return SWIG_Py_Void();
25611 static PyMethodDef SwigMethods
[] = {
25612 { (char *)"new_GDIObject", (PyCFunction
)_wrap_new_GDIObject
, METH_NOARGS
, NULL
},
25613 { (char *)"delete_GDIObject", (PyCFunction
)_wrap_delete_GDIObject
, METH_O
, NULL
},
25614 { (char *)"GDIObject_IsNull", (PyCFunction
)_wrap_GDIObject_IsNull
, METH_O
, NULL
},
25615 { (char *)"GDIObject_swigregister", GDIObject_swigregister
, METH_VARARGS
, NULL
},
25616 { (char *)"GDIObject_swiginit", GDIObject_swiginit
, METH_VARARGS
, NULL
},
25617 { (char *)"new_Colour", (PyCFunction
) _wrap_new_Colour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25618 { (char *)"new_NamedColour", (PyCFunction
) _wrap_new_NamedColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25619 { (char *)"new_ColourRGB", (PyCFunction
) _wrap_new_ColourRGB
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25620 { (char *)"delete_Colour", (PyCFunction
)_wrap_delete_Colour
, METH_O
, NULL
},
25621 { (char *)"Colour_Red", (PyCFunction
)_wrap_Colour_Red
, METH_O
, NULL
},
25622 { (char *)"Colour_Green", (PyCFunction
)_wrap_Colour_Green
, METH_O
, NULL
},
25623 { (char *)"Colour_Blue", (PyCFunction
)_wrap_Colour_Blue
, METH_O
, NULL
},
25624 { (char *)"Colour_Ok", (PyCFunction
)_wrap_Colour_Ok
, METH_O
, NULL
},
25625 { (char *)"Colour_Set", (PyCFunction
) _wrap_Colour_Set
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25626 { (char *)"Colour_SetRGB", (PyCFunction
) _wrap_Colour_SetRGB
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25627 { (char *)"Colour_SetFromName", (PyCFunction
) _wrap_Colour_SetFromName
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25628 { (char *)"Colour_GetPixel", (PyCFunction
)_wrap_Colour_GetPixel
, METH_O
, NULL
},
25629 { (char *)"Colour___eq__", (PyCFunction
) _wrap_Colour___eq__
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25630 { (char *)"Colour___ne__", (PyCFunction
) _wrap_Colour___ne__
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25631 { (char *)"Colour_Get", (PyCFunction
)_wrap_Colour_Get
, METH_O
, NULL
},
25632 { (char *)"Colour_GetRGB", (PyCFunction
)_wrap_Colour_GetRGB
, METH_O
, NULL
},
25633 { (char *)"Colour_swigregister", Colour_swigregister
, METH_VARARGS
, NULL
},
25634 { (char *)"Colour_swiginit", Colour_swiginit
, METH_VARARGS
, NULL
},
25635 { (char *)"new_Palette", (PyCFunction
) _wrap_new_Palette
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25636 { (char *)"delete_Palette", (PyCFunction
)_wrap_delete_Palette
, METH_O
, NULL
},
25637 { (char *)"Palette_GetPixel", (PyCFunction
) _wrap_Palette_GetPixel
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25638 { (char *)"Palette_GetRGB", (PyCFunction
) _wrap_Palette_GetRGB
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25639 { (char *)"Palette_GetColoursCount", (PyCFunction
)_wrap_Palette_GetColoursCount
, METH_O
, NULL
},
25640 { (char *)"Palette_Ok", (PyCFunction
)_wrap_Palette_Ok
, METH_O
, NULL
},
25641 { (char *)"Palette_swigregister", Palette_swigregister
, METH_VARARGS
, NULL
},
25642 { (char *)"Palette_swiginit", Palette_swiginit
, METH_VARARGS
, NULL
},
25643 { (char *)"new_Pen", (PyCFunction
) _wrap_new_Pen
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25644 { (char *)"delete_Pen", (PyCFunction
)_wrap_delete_Pen
, METH_O
, NULL
},
25645 { (char *)"Pen_GetCap", (PyCFunction
)_wrap_Pen_GetCap
, METH_O
, NULL
},
25646 { (char *)"Pen_GetColour", (PyCFunction
)_wrap_Pen_GetColour
, METH_O
, NULL
},
25647 { (char *)"Pen_GetJoin", (PyCFunction
)_wrap_Pen_GetJoin
, METH_O
, NULL
},
25648 { (char *)"Pen_GetStyle", (PyCFunction
)_wrap_Pen_GetStyle
, METH_O
, NULL
},
25649 { (char *)"Pen_GetWidth", (PyCFunction
)_wrap_Pen_GetWidth
, METH_O
, NULL
},
25650 { (char *)"Pen_Ok", (PyCFunction
)_wrap_Pen_Ok
, METH_O
, NULL
},
25651 { (char *)"Pen_SetCap", (PyCFunction
) _wrap_Pen_SetCap
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25652 { (char *)"Pen_SetColour", (PyCFunction
) _wrap_Pen_SetColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25653 { (char *)"Pen_SetJoin", (PyCFunction
) _wrap_Pen_SetJoin
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25654 { (char *)"Pen_SetStyle", (PyCFunction
) _wrap_Pen_SetStyle
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25655 { (char *)"Pen_SetWidth", (PyCFunction
) _wrap_Pen_SetWidth
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25656 { (char *)"Pen_SetDashes", (PyCFunction
) _wrap_Pen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25657 { (char *)"Pen_GetDashes", (PyCFunction
)_wrap_Pen_GetDashes
, METH_O
, NULL
},
25658 { (char *)"Pen__SetDashes", (PyCFunction
) _wrap_Pen__SetDashes
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25659 { (char *)"Pen_GetDashCount", (PyCFunction
)_wrap_Pen_GetDashCount
, METH_O
, NULL
},
25660 { (char *)"Pen_GetStipple", (PyCFunction
)_wrap_Pen_GetStipple
, METH_O
, NULL
},
25661 { (char *)"Pen_SetStipple", (PyCFunction
) _wrap_Pen_SetStipple
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25662 { (char *)"Pen___eq__", (PyCFunction
) _wrap_Pen___eq__
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25663 { (char *)"Pen___ne__", (PyCFunction
) _wrap_Pen___ne__
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25664 { (char *)"Pen_swigregister", Pen_swigregister
, METH_VARARGS
, NULL
},
25665 { (char *)"Pen_swiginit", Pen_swiginit
, METH_VARARGS
, NULL
},
25666 { (char *)"new_Brush", (PyCFunction
) _wrap_new_Brush
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25667 { (char *)"new_BrushFromBitmap", (PyCFunction
) _wrap_new_BrushFromBitmap
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25668 { (char *)"delete_Brush", (PyCFunction
)_wrap_delete_Brush
, METH_O
, NULL
},
25669 { (char *)"Brush_SetColour", (PyCFunction
) _wrap_Brush_SetColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25670 { (char *)"Brush_SetStyle", (PyCFunction
) _wrap_Brush_SetStyle
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25671 { (char *)"Brush_SetStipple", (PyCFunction
) _wrap_Brush_SetStipple
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25672 { (char *)"Brush_GetColour", (PyCFunction
)_wrap_Brush_GetColour
, METH_O
, NULL
},
25673 { (char *)"Brush_GetStyle", (PyCFunction
)_wrap_Brush_GetStyle
, METH_O
, NULL
},
25674 { (char *)"Brush_GetStipple", (PyCFunction
)_wrap_Brush_GetStipple
, METH_O
, NULL
},
25675 { (char *)"Brush_IsHatch", (PyCFunction
)_wrap_Brush_IsHatch
, METH_O
, NULL
},
25676 { (char *)"Brush_Ok", (PyCFunction
)_wrap_Brush_Ok
, METH_O
, NULL
},
25677 { (char *)"Brush_swigregister", Brush_swigregister
, METH_VARARGS
, NULL
},
25678 { (char *)"Brush_swiginit", Brush_swiginit
, METH_VARARGS
, NULL
},
25679 { (char *)"new_Bitmap", (PyCFunction
) _wrap_new_Bitmap
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25680 { (char *)"delete_Bitmap", (PyCFunction
)_wrap_delete_Bitmap
, METH_O
, NULL
},
25681 { (char *)"new_EmptyBitmap", (PyCFunction
) _wrap_new_EmptyBitmap
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25682 { (char *)"new_BitmapFromIcon", (PyCFunction
) _wrap_new_BitmapFromIcon
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25683 { (char *)"new_BitmapFromImage", (PyCFunction
) _wrap_new_BitmapFromImage
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25684 { (char *)"new_BitmapFromXPMData", (PyCFunction
) _wrap_new_BitmapFromXPMData
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25685 { (char *)"new_BitmapFromBits", (PyCFunction
) _wrap_new_BitmapFromBits
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25686 { (char *)"Bitmap_GetHandle", (PyCFunction
)_wrap_Bitmap_GetHandle
, METH_O
, NULL
},
25687 { (char *)"Bitmap_SetHandle", (PyCFunction
) _wrap_Bitmap_SetHandle
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25688 { (char *)"Bitmap_Ok", (PyCFunction
)_wrap_Bitmap_Ok
, METH_O
, NULL
},
25689 { (char *)"Bitmap_GetWidth", (PyCFunction
)_wrap_Bitmap_GetWidth
, METH_O
, NULL
},
25690 { (char *)"Bitmap_GetHeight", (PyCFunction
)_wrap_Bitmap_GetHeight
, METH_O
, NULL
},
25691 { (char *)"Bitmap_GetDepth", (PyCFunction
)_wrap_Bitmap_GetDepth
, METH_O
, NULL
},
25692 { (char *)"Bitmap_GetSize", (PyCFunction
)_wrap_Bitmap_GetSize
, METH_O
, NULL
},
25693 { (char *)"Bitmap_ConvertToImage", (PyCFunction
)_wrap_Bitmap_ConvertToImage
, METH_O
, NULL
},
25694 { (char *)"Bitmap_GetMask", (PyCFunction
)_wrap_Bitmap_GetMask
, METH_O
, NULL
},
25695 { (char *)"Bitmap_SetMask", (PyCFunction
) _wrap_Bitmap_SetMask
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25696 { (char *)"Bitmap_SetMaskColour", (PyCFunction
) _wrap_Bitmap_SetMaskColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25697 { (char *)"Bitmap_GetSubBitmap", (PyCFunction
) _wrap_Bitmap_GetSubBitmap
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25698 { (char *)"Bitmap_SaveFile", (PyCFunction
) _wrap_Bitmap_SaveFile
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25699 { (char *)"Bitmap_LoadFile", (PyCFunction
) _wrap_Bitmap_LoadFile
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25700 { (char *)"Bitmap_GetPalette", (PyCFunction
)_wrap_Bitmap_GetPalette
, METH_O
, NULL
},
25701 { (char *)"Bitmap_SetPalette", (PyCFunction
) _wrap_Bitmap_SetPalette
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25702 { (char *)"Bitmap_CopyFromIcon", (PyCFunction
) _wrap_Bitmap_CopyFromIcon
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25703 { (char *)"Bitmap_SetHeight", (PyCFunction
) _wrap_Bitmap_SetHeight
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25704 { (char *)"Bitmap_SetWidth", (PyCFunction
) _wrap_Bitmap_SetWidth
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25705 { (char *)"Bitmap_SetDepth", (PyCFunction
) _wrap_Bitmap_SetDepth
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25706 { (char *)"Bitmap_SetSize", (PyCFunction
) _wrap_Bitmap_SetSize
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25707 { (char *)"Bitmap_CopyFromCursor", (PyCFunction
) _wrap_Bitmap_CopyFromCursor
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25708 { (char *)"Bitmap___eq__", (PyCFunction
) _wrap_Bitmap___eq__
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25709 { (char *)"Bitmap___ne__", (PyCFunction
) _wrap_Bitmap___ne__
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25710 { (char *)"Bitmap_swigregister", Bitmap_swigregister
, METH_VARARGS
, NULL
},
25711 { (char *)"Bitmap_swiginit", Bitmap_swiginit
, METH_VARARGS
, NULL
},
25712 { (char *)"new_Mask", (PyCFunction
) _wrap_new_Mask
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25713 { (char *)"delete_Mask", (PyCFunction
)_wrap_delete_Mask
, METH_O
, NULL
},
25714 { (char *)"Mask_swigregister", Mask_swigregister
, METH_VARARGS
, NULL
},
25715 { (char *)"Mask_swiginit", Mask_swiginit
, METH_VARARGS
, NULL
},
25716 { (char *)"new_Icon", (PyCFunction
) _wrap_new_Icon
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25717 { (char *)"delete_Icon", (PyCFunction
)_wrap_delete_Icon
, METH_O
, NULL
},
25718 { (char *)"new_EmptyIcon", (PyCFunction
)_wrap_new_EmptyIcon
, METH_NOARGS
, NULL
},
25719 { (char *)"new_IconFromLocation", (PyCFunction
) _wrap_new_IconFromLocation
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25720 { (char *)"new_IconFromBitmap", (PyCFunction
) _wrap_new_IconFromBitmap
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25721 { (char *)"new_IconFromXPMData", (PyCFunction
) _wrap_new_IconFromXPMData
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25722 { (char *)"Icon_LoadFile", (PyCFunction
) _wrap_Icon_LoadFile
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25723 { (char *)"Icon_GetHandle", (PyCFunction
)_wrap_Icon_GetHandle
, METH_O
, NULL
},
25724 { (char *)"Icon_SetHandle", (PyCFunction
) _wrap_Icon_SetHandle
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25725 { (char *)"Icon_Ok", (PyCFunction
)_wrap_Icon_Ok
, METH_O
, NULL
},
25726 { (char *)"Icon_GetWidth", (PyCFunction
)_wrap_Icon_GetWidth
, METH_O
, NULL
},
25727 { (char *)"Icon_GetHeight", (PyCFunction
)_wrap_Icon_GetHeight
, METH_O
, NULL
},
25728 { (char *)"Icon_GetDepth", (PyCFunction
)_wrap_Icon_GetDepth
, METH_O
, NULL
},
25729 { (char *)"Icon_SetWidth", (PyCFunction
) _wrap_Icon_SetWidth
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25730 { (char *)"Icon_SetHeight", (PyCFunction
) _wrap_Icon_SetHeight
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25731 { (char *)"Icon_SetDepth", (PyCFunction
) _wrap_Icon_SetDepth
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25732 { (char *)"Icon_SetSize", (PyCFunction
) _wrap_Icon_SetSize
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25733 { (char *)"Icon_CopyFromBitmap", (PyCFunction
) _wrap_Icon_CopyFromBitmap
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25734 { (char *)"Icon_swigregister", Icon_swigregister
, METH_VARARGS
, NULL
},
25735 { (char *)"Icon_swiginit", Icon_swiginit
, METH_VARARGS
, NULL
},
25736 { (char *)"new_IconLocation", (PyCFunction
) _wrap_new_IconLocation
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25737 { (char *)"delete_IconLocation", (PyCFunction
)_wrap_delete_IconLocation
, METH_O
, NULL
},
25738 { (char *)"IconLocation_IsOk", (PyCFunction
)_wrap_IconLocation_IsOk
, METH_O
, NULL
},
25739 { (char *)"IconLocation_SetFileName", (PyCFunction
) _wrap_IconLocation_SetFileName
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25740 { (char *)"IconLocation_GetFileName", (PyCFunction
)_wrap_IconLocation_GetFileName
, METH_O
, NULL
},
25741 { (char *)"IconLocation_SetIndex", (PyCFunction
) _wrap_IconLocation_SetIndex
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25742 { (char *)"IconLocation_GetIndex", (PyCFunction
)_wrap_IconLocation_GetIndex
, METH_O
, NULL
},
25743 { (char *)"IconLocation_swigregister", IconLocation_swigregister
, METH_VARARGS
, NULL
},
25744 { (char *)"IconLocation_swiginit", IconLocation_swiginit
, METH_VARARGS
, NULL
},
25745 { (char *)"new_IconBundle", (PyCFunction
)_wrap_new_IconBundle
, METH_NOARGS
, NULL
},
25746 { (char *)"new_IconBundleFromFile", (PyCFunction
) _wrap_new_IconBundleFromFile
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25747 { (char *)"new_IconBundleFromIcon", (PyCFunction
) _wrap_new_IconBundleFromIcon
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25748 { (char *)"delete_IconBundle", (PyCFunction
)_wrap_delete_IconBundle
, METH_O
, NULL
},
25749 { (char *)"IconBundle_AddIcon", (PyCFunction
) _wrap_IconBundle_AddIcon
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25750 { (char *)"IconBundle_AddIconFromFile", (PyCFunction
) _wrap_IconBundle_AddIconFromFile
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25751 { (char *)"IconBundle_GetIcon", (PyCFunction
) _wrap_IconBundle_GetIcon
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25752 { (char *)"IconBundle_swigregister", IconBundle_swigregister
, METH_VARARGS
, NULL
},
25753 { (char *)"IconBundle_swiginit", IconBundle_swiginit
, METH_VARARGS
, NULL
},
25754 { (char *)"new_Cursor", (PyCFunction
) _wrap_new_Cursor
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25755 { (char *)"delete_Cursor", (PyCFunction
)_wrap_delete_Cursor
, METH_O
, NULL
},
25756 { (char *)"new_StockCursor", (PyCFunction
) _wrap_new_StockCursor
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25757 { (char *)"new_CursorFromImage", (PyCFunction
) _wrap_new_CursorFromImage
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25758 { (char *)"Cursor_GetHandle", (PyCFunction
)_wrap_Cursor_GetHandle
, METH_O
, NULL
},
25759 { (char *)"Cursor_SetHandle", (PyCFunction
) _wrap_Cursor_SetHandle
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25760 { (char *)"Cursor_Ok", (PyCFunction
)_wrap_Cursor_Ok
, METH_O
, NULL
},
25761 { (char *)"Cursor_GetWidth", (PyCFunction
)_wrap_Cursor_GetWidth
, METH_O
, NULL
},
25762 { (char *)"Cursor_GetHeight", (PyCFunction
)_wrap_Cursor_GetHeight
, METH_O
, NULL
},
25763 { (char *)"Cursor_GetDepth", (PyCFunction
)_wrap_Cursor_GetDepth
, METH_O
, NULL
},
25764 { (char *)"Cursor_SetWidth", (PyCFunction
) _wrap_Cursor_SetWidth
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25765 { (char *)"Cursor_SetHeight", (PyCFunction
) _wrap_Cursor_SetHeight
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25766 { (char *)"Cursor_SetDepth", (PyCFunction
) _wrap_Cursor_SetDepth
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25767 { (char *)"Cursor_SetSize", (PyCFunction
) _wrap_Cursor_SetSize
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25768 { (char *)"Cursor_swigregister", Cursor_swigregister
, METH_VARARGS
, NULL
},
25769 { (char *)"Cursor_swiginit", Cursor_swiginit
, METH_VARARGS
, NULL
},
25770 { (char *)"new_Region", (PyCFunction
) _wrap_new_Region
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25771 { (char *)"new_RegionFromBitmap", (PyCFunction
) _wrap_new_RegionFromBitmap
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25772 { (char *)"new_RegionFromBitmapColour", (PyCFunction
) _wrap_new_RegionFromBitmapColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25773 { (char *)"new_RegionFromPoints", (PyCFunction
) _wrap_new_RegionFromPoints
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25774 { (char *)"delete_Region", (PyCFunction
)_wrap_delete_Region
, METH_O
, NULL
},
25775 { (char *)"Region_Clear", (PyCFunction
)_wrap_Region_Clear
, METH_O
, NULL
},
25776 { (char *)"Region_Offset", (PyCFunction
) _wrap_Region_Offset
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25777 { (char *)"Region_Contains", (PyCFunction
) _wrap_Region_Contains
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25778 { (char *)"Region_ContainsPoint", (PyCFunction
) _wrap_Region_ContainsPoint
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25779 { (char *)"Region_ContainsRect", (PyCFunction
) _wrap_Region_ContainsRect
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25780 { (char *)"Region_ContainsRectDim", (PyCFunction
) _wrap_Region_ContainsRectDim
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25781 { (char *)"Region_GetBox", (PyCFunction
)_wrap_Region_GetBox
, METH_O
, NULL
},
25782 { (char *)"Region_Intersect", (PyCFunction
) _wrap_Region_Intersect
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25783 { (char *)"Region_IntersectRect", (PyCFunction
) _wrap_Region_IntersectRect
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25784 { (char *)"Region_IntersectRegion", (PyCFunction
) _wrap_Region_IntersectRegion
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25785 { (char *)"Region_IsEmpty", (PyCFunction
)_wrap_Region_IsEmpty
, METH_O
, NULL
},
25786 { (char *)"Region_Union", (PyCFunction
) _wrap_Region_Union
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25787 { (char *)"Region_UnionRect", (PyCFunction
) _wrap_Region_UnionRect
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25788 { (char *)"Region_UnionRegion", (PyCFunction
) _wrap_Region_UnionRegion
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25789 { (char *)"Region_Subtract", (PyCFunction
) _wrap_Region_Subtract
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25790 { (char *)"Region_SubtractRect", (PyCFunction
) _wrap_Region_SubtractRect
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25791 { (char *)"Region_SubtractRegion", (PyCFunction
) _wrap_Region_SubtractRegion
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25792 { (char *)"Region_Xor", (PyCFunction
) _wrap_Region_Xor
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25793 { (char *)"Region_XorRect", (PyCFunction
) _wrap_Region_XorRect
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25794 { (char *)"Region_XorRegion", (PyCFunction
) _wrap_Region_XorRegion
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25795 { (char *)"Region_ConvertToBitmap", (PyCFunction
)_wrap_Region_ConvertToBitmap
, METH_O
, NULL
},
25796 { (char *)"Region_UnionBitmap", (PyCFunction
) _wrap_Region_UnionBitmap
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25797 { (char *)"Region_UnionBitmapColour", (PyCFunction
) _wrap_Region_UnionBitmapColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25798 { (char *)"Region_swigregister", Region_swigregister
, METH_VARARGS
, NULL
},
25799 { (char *)"Region_swiginit", Region_swiginit
, METH_VARARGS
, NULL
},
25800 { (char *)"new_RegionIterator", (PyCFunction
) _wrap_new_RegionIterator
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25801 { (char *)"delete_RegionIterator", (PyCFunction
)_wrap_delete_RegionIterator
, METH_O
, NULL
},
25802 { (char *)"RegionIterator_GetX", (PyCFunction
)_wrap_RegionIterator_GetX
, METH_O
, NULL
},
25803 { (char *)"RegionIterator_GetY", (PyCFunction
)_wrap_RegionIterator_GetY
, METH_O
, NULL
},
25804 { (char *)"RegionIterator_GetW", (PyCFunction
)_wrap_RegionIterator_GetW
, METH_O
, NULL
},
25805 { (char *)"RegionIterator_GetWidth", (PyCFunction
)_wrap_RegionIterator_GetWidth
, METH_O
, NULL
},
25806 { (char *)"RegionIterator_GetH", (PyCFunction
)_wrap_RegionIterator_GetH
, METH_O
, NULL
},
25807 { (char *)"RegionIterator_GetHeight", (PyCFunction
)_wrap_RegionIterator_GetHeight
, METH_O
, NULL
},
25808 { (char *)"RegionIterator_GetRect", (PyCFunction
)_wrap_RegionIterator_GetRect
, METH_O
, NULL
},
25809 { (char *)"RegionIterator_HaveRects", (PyCFunction
)_wrap_RegionIterator_HaveRects
, METH_O
, NULL
},
25810 { (char *)"RegionIterator_Reset", (PyCFunction
)_wrap_RegionIterator_Reset
, METH_O
, NULL
},
25811 { (char *)"RegionIterator_Next", (PyCFunction
)_wrap_RegionIterator_Next
, METH_O
, NULL
},
25812 { (char *)"RegionIterator___nonzero__", (PyCFunction
)_wrap_RegionIterator___nonzero__
, METH_O
, NULL
},
25813 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister
, METH_VARARGS
, NULL
},
25814 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit
, METH_VARARGS
, NULL
},
25815 { (char *)"new_NativeFontInfo", (PyCFunction
)_wrap_new_NativeFontInfo
, METH_NOARGS
, NULL
},
25816 { (char *)"delete_NativeFontInfo", (PyCFunction
)_wrap_delete_NativeFontInfo
, METH_O
, NULL
},
25817 { (char *)"NativeFontInfo_Init", (PyCFunction
)_wrap_NativeFontInfo_Init
, METH_O
, NULL
},
25818 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction
) _wrap_NativeFontInfo_InitFromFont
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25819 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction
)_wrap_NativeFontInfo_GetPointSize
, METH_O
, NULL
},
25820 { (char *)"NativeFontInfo_GetPixelSize", (PyCFunction
)_wrap_NativeFontInfo_GetPixelSize
, METH_O
, NULL
},
25821 { (char *)"NativeFontInfo_GetStyle", (PyCFunction
)_wrap_NativeFontInfo_GetStyle
, METH_O
, NULL
},
25822 { (char *)"NativeFontInfo_GetWeight", (PyCFunction
)_wrap_NativeFontInfo_GetWeight
, METH_O
, NULL
},
25823 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction
)_wrap_NativeFontInfo_GetUnderlined
, METH_O
, NULL
},
25824 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction
)_wrap_NativeFontInfo_GetFaceName
, METH_O
, NULL
},
25825 { (char *)"NativeFontInfo_GetFamily", (PyCFunction
)_wrap_NativeFontInfo_GetFamily
, METH_O
, NULL
},
25826 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction
)_wrap_NativeFontInfo_GetEncoding
, METH_O
, NULL
},
25827 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction
) _wrap_NativeFontInfo_SetPointSize
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25828 { (char *)"NativeFontInfo_SetPixelSize", (PyCFunction
) _wrap_NativeFontInfo_SetPixelSize
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25829 { (char *)"NativeFontInfo_SetStyle", (PyCFunction
) _wrap_NativeFontInfo_SetStyle
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25830 { (char *)"NativeFontInfo_SetWeight", (PyCFunction
) _wrap_NativeFontInfo_SetWeight
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25831 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction
) _wrap_NativeFontInfo_SetUnderlined
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25832 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction
) _wrap_NativeFontInfo_SetFaceName
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25833 { (char *)"NativeFontInfo_SetFamily", (PyCFunction
) _wrap_NativeFontInfo_SetFamily
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25834 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction
) _wrap_NativeFontInfo_SetEncoding
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25835 { (char *)"NativeFontInfo_FromString", (PyCFunction
) _wrap_NativeFontInfo_FromString
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25836 { (char *)"NativeFontInfo_ToString", (PyCFunction
)_wrap_NativeFontInfo_ToString
, METH_O
, NULL
},
25837 { (char *)"NativeFontInfo___str__", (PyCFunction
)_wrap_NativeFontInfo___str__
, METH_O
, NULL
},
25838 { (char *)"NativeFontInfo_FromUserString", (PyCFunction
) _wrap_NativeFontInfo_FromUserString
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25839 { (char *)"NativeFontInfo_ToUserString", (PyCFunction
)_wrap_NativeFontInfo_ToUserString
, METH_O
, NULL
},
25840 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister
, METH_VARARGS
, NULL
},
25841 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit
, METH_VARARGS
, NULL
},
25842 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set
, METH_VARARGS
, NULL
},
25843 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction
)_wrap_NativeEncodingInfo_facename_get
, METH_O
, NULL
},
25844 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set
, METH_VARARGS
, NULL
},
25845 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction
)_wrap_NativeEncodingInfo_encoding_get
, METH_O
, NULL
},
25846 { (char *)"new_NativeEncodingInfo", (PyCFunction
)_wrap_new_NativeEncodingInfo
, METH_NOARGS
, NULL
},
25847 { (char *)"delete_NativeEncodingInfo", (PyCFunction
)_wrap_delete_NativeEncodingInfo
, METH_O
, NULL
},
25848 { (char *)"NativeEncodingInfo_FromString", (PyCFunction
) _wrap_NativeEncodingInfo_FromString
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25849 { (char *)"NativeEncodingInfo_ToString", (PyCFunction
)_wrap_NativeEncodingInfo_ToString
, METH_O
, NULL
},
25850 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister
, METH_VARARGS
, NULL
},
25851 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit
, METH_VARARGS
, NULL
},
25852 { (char *)"GetNativeFontEncoding", (PyCFunction
) _wrap_GetNativeFontEncoding
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25853 { (char *)"TestFontEncoding", (PyCFunction
) _wrap_TestFontEncoding
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25854 { (char *)"new_FontMapper", (PyCFunction
)_wrap_new_FontMapper
, METH_NOARGS
, NULL
},
25855 { (char *)"delete_FontMapper", (PyCFunction
)_wrap_delete_FontMapper
, METH_O
, NULL
},
25856 { (char *)"FontMapper_Get", (PyCFunction
)_wrap_FontMapper_Get
, METH_NOARGS
, NULL
},
25857 { (char *)"FontMapper_Set", (PyCFunction
) _wrap_FontMapper_Set
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25858 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction
) _wrap_FontMapper_CharsetToEncoding
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25859 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction
)_wrap_FontMapper_GetSupportedEncodingsCount
, METH_NOARGS
, NULL
},
25860 { (char *)"FontMapper_GetEncoding", (PyCFunction
) _wrap_FontMapper_GetEncoding
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25861 { (char *)"FontMapper_GetEncodingName", (PyCFunction
) _wrap_FontMapper_GetEncodingName
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25862 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction
) _wrap_FontMapper_GetEncodingDescription
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25863 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction
) _wrap_FontMapper_GetEncodingFromName
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25864 { (char *)"FontMapper_SetConfigPath", (PyCFunction
) _wrap_FontMapper_SetConfigPath
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25865 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction
)_wrap_FontMapper_GetDefaultConfigPath
, METH_NOARGS
, NULL
},
25866 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction
) _wrap_FontMapper_GetAltForEncoding
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25867 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction
) _wrap_FontMapper_IsEncodingAvailable
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25868 { (char *)"FontMapper_SetDialogParent", (PyCFunction
) _wrap_FontMapper_SetDialogParent
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25869 { (char *)"FontMapper_SetDialogTitle", (PyCFunction
) _wrap_FontMapper_SetDialogTitle
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25870 { (char *)"FontMapper_swigregister", FontMapper_swigregister
, METH_VARARGS
, NULL
},
25871 { (char *)"FontMapper_swiginit", FontMapper_swiginit
, METH_VARARGS
, NULL
},
25872 { (char *)"new_Font", (PyCFunction
) _wrap_new_Font
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25873 { (char *)"delete_Font", (PyCFunction
)_wrap_delete_Font
, METH_O
, NULL
},
25874 { (char *)"new_FontFromNativeInfo", (PyCFunction
) _wrap_new_FontFromNativeInfo
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25875 { (char *)"new_FontFromNativeInfoString", (PyCFunction
) _wrap_new_FontFromNativeInfoString
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25876 { (char *)"new_FFont", (PyCFunction
) _wrap_new_FFont
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25877 { (char *)"new_FontFromPixelSize", (PyCFunction
) _wrap_new_FontFromPixelSize
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25878 { (char *)"new_FFontFromPixelSize", (PyCFunction
) _wrap_new_FFontFromPixelSize
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25879 { (char *)"Font_Ok", (PyCFunction
)_wrap_Font_Ok
, METH_O
, NULL
},
25880 { (char *)"Font___eq__", (PyCFunction
) _wrap_Font___eq__
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25881 { (char *)"Font___ne__", (PyCFunction
) _wrap_Font___ne__
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25882 { (char *)"Font_GetPointSize", (PyCFunction
)_wrap_Font_GetPointSize
, METH_O
, NULL
},
25883 { (char *)"Font_GetPixelSize", (PyCFunction
)_wrap_Font_GetPixelSize
, METH_O
, NULL
},
25884 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction
)_wrap_Font_IsUsingSizeInPixels
, METH_O
, NULL
},
25885 { (char *)"Font_GetFamily", (PyCFunction
)_wrap_Font_GetFamily
, METH_O
, NULL
},
25886 { (char *)"Font_GetStyle", (PyCFunction
)_wrap_Font_GetStyle
, METH_O
, NULL
},
25887 { (char *)"Font_GetWeight", (PyCFunction
)_wrap_Font_GetWeight
, METH_O
, NULL
},
25888 { (char *)"Font_GetUnderlined", (PyCFunction
)_wrap_Font_GetUnderlined
, METH_O
, NULL
},
25889 { (char *)"Font_GetFaceName", (PyCFunction
)_wrap_Font_GetFaceName
, METH_O
, NULL
},
25890 { (char *)"Font_GetEncoding", (PyCFunction
)_wrap_Font_GetEncoding
, METH_O
, NULL
},
25891 { (char *)"Font_GetNativeFontInfo", (PyCFunction
)_wrap_Font_GetNativeFontInfo
, METH_O
, NULL
},
25892 { (char *)"Font_IsFixedWidth", (PyCFunction
)_wrap_Font_IsFixedWidth
, METH_O
, NULL
},
25893 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction
)_wrap_Font_GetNativeFontInfoDesc
, METH_O
, NULL
},
25894 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction
)_wrap_Font_GetNativeFontInfoUserDesc
, METH_O
, NULL
},
25895 { (char *)"Font_SetPointSize", (PyCFunction
) _wrap_Font_SetPointSize
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25896 { (char *)"Font_SetPixelSize", (PyCFunction
) _wrap_Font_SetPixelSize
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25897 { (char *)"Font_SetFamily", (PyCFunction
) _wrap_Font_SetFamily
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25898 { (char *)"Font_SetStyle", (PyCFunction
) _wrap_Font_SetStyle
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25899 { (char *)"Font_SetWeight", (PyCFunction
) _wrap_Font_SetWeight
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25900 { (char *)"Font_SetFaceName", (PyCFunction
) _wrap_Font_SetFaceName
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25901 { (char *)"Font_SetUnderlined", (PyCFunction
) _wrap_Font_SetUnderlined
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25902 { (char *)"Font_SetEncoding", (PyCFunction
) _wrap_Font_SetEncoding
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25903 { (char *)"Font_SetNativeFontInfo", (PyCFunction
) _wrap_Font_SetNativeFontInfo
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25904 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction
) _wrap_Font_SetNativeFontInfoFromString
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25905 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction
) _wrap_Font_SetNativeFontInfoUserDesc
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25906 { (char *)"Font_GetFamilyString", (PyCFunction
)_wrap_Font_GetFamilyString
, METH_O
, NULL
},
25907 { (char *)"Font_GetStyleString", (PyCFunction
)_wrap_Font_GetStyleString
, METH_O
, NULL
},
25908 { (char *)"Font_GetWeightString", (PyCFunction
)_wrap_Font_GetWeightString
, METH_O
, NULL
},
25909 { (char *)"Font_SetNoAntiAliasing", (PyCFunction
) _wrap_Font_SetNoAntiAliasing
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25910 { (char *)"Font_GetNoAntiAliasing", (PyCFunction
)_wrap_Font_GetNoAntiAliasing
, METH_O
, NULL
},
25911 { (char *)"Font_GetDefaultEncoding", (PyCFunction
)_wrap_Font_GetDefaultEncoding
, METH_NOARGS
, NULL
},
25912 { (char *)"Font_SetDefaultEncoding", (PyCFunction
) _wrap_Font_SetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25913 { (char *)"Font_swigregister", Font_swigregister
, METH_VARARGS
, NULL
},
25914 { (char *)"Font_swiginit", Font_swiginit
, METH_VARARGS
, NULL
},
25915 { (char *)"new_FontEnumerator", (PyCFunction
)_wrap_new_FontEnumerator
, METH_NOARGS
, NULL
},
25916 { (char *)"delete_FontEnumerator", (PyCFunction
)_wrap_delete_FontEnumerator
, METH_O
, NULL
},
25917 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction
) _wrap_FontEnumerator__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25918 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction
) _wrap_FontEnumerator_EnumerateFacenames
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25919 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction
) _wrap_FontEnumerator_EnumerateEncodings
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25920 { (char *)"FontEnumerator_GetEncodings", (PyCFunction
)_wrap_FontEnumerator_GetEncodings
, METH_O
, NULL
},
25921 { (char *)"FontEnumerator_GetFacenames", (PyCFunction
)_wrap_FontEnumerator_GetFacenames
, METH_O
, NULL
},
25922 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister
, METH_VARARGS
, NULL
},
25923 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit
, METH_VARARGS
, NULL
},
25924 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set
, METH_VARARGS
, NULL
},
25925 { (char *)"LanguageInfo_Language_get", (PyCFunction
)_wrap_LanguageInfo_Language_get
, METH_O
, NULL
},
25926 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set
, METH_VARARGS
, NULL
},
25927 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction
)_wrap_LanguageInfo_CanonicalName_get
, METH_O
, NULL
},
25928 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set
, METH_VARARGS
, NULL
},
25929 { (char *)"LanguageInfo_Description_get", (PyCFunction
)_wrap_LanguageInfo_Description_get
, METH_O
, NULL
},
25930 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister
, METH_VARARGS
, NULL
},
25931 { (char *)"new_Locale", (PyCFunction
) _wrap_new_Locale
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25932 { (char *)"delete_Locale", (PyCFunction
)_wrap_delete_Locale
, METH_O
, NULL
},
25933 { (char *)"Locale_Init1", (PyCFunction
) _wrap_Locale_Init1
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25934 { (char *)"Locale_Init2", (PyCFunction
) _wrap_Locale_Init2
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25935 { (char *)"Locale_GetSystemLanguage", (PyCFunction
)_wrap_Locale_GetSystemLanguage
, METH_NOARGS
, NULL
},
25936 { (char *)"Locale_GetSystemEncoding", (PyCFunction
)_wrap_Locale_GetSystemEncoding
, METH_NOARGS
, NULL
},
25937 { (char *)"Locale_GetSystemEncodingName", (PyCFunction
)_wrap_Locale_GetSystemEncodingName
, METH_NOARGS
, NULL
},
25938 { (char *)"Locale_IsOk", (PyCFunction
)_wrap_Locale_IsOk
, METH_O
, NULL
},
25939 { (char *)"Locale_GetLocale", (PyCFunction
)_wrap_Locale_GetLocale
, METH_O
, NULL
},
25940 { (char *)"Locale_GetLanguage", (PyCFunction
)_wrap_Locale_GetLanguage
, METH_O
, NULL
},
25941 { (char *)"Locale_GetSysName", (PyCFunction
)_wrap_Locale_GetSysName
, METH_O
, NULL
},
25942 { (char *)"Locale_GetCanonicalName", (PyCFunction
)_wrap_Locale_GetCanonicalName
, METH_O
, NULL
},
25943 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction
) _wrap_Locale_AddCatalogLookupPathPrefix
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25944 { (char *)"Locale_AddCatalog", (PyCFunction
) _wrap_Locale_AddCatalog
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25945 { (char *)"Locale_IsLoaded", (PyCFunction
) _wrap_Locale_IsLoaded
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25946 { (char *)"Locale_GetLanguageInfo", (PyCFunction
) _wrap_Locale_GetLanguageInfo
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25947 { (char *)"Locale_GetLanguageName", (PyCFunction
) _wrap_Locale_GetLanguageName
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25948 { (char *)"Locale_FindLanguageInfo", (PyCFunction
) _wrap_Locale_FindLanguageInfo
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25949 { (char *)"Locale_AddLanguage", (PyCFunction
) _wrap_Locale_AddLanguage
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25950 { (char *)"Locale_GetString", (PyCFunction
) _wrap_Locale_GetString
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25951 { (char *)"Locale_GetName", (PyCFunction
)_wrap_Locale_GetName
, METH_O
, NULL
},
25952 { (char *)"Locale_swigregister", Locale_swigregister
, METH_VARARGS
, NULL
},
25953 { (char *)"Locale_swiginit", Locale_swiginit
, METH_VARARGS
, NULL
},
25954 { (char *)"GetLocale", (PyCFunction
)_wrap_GetLocale
, METH_NOARGS
, NULL
},
25955 { (char *)"GetTranslation", _wrap_GetTranslation
, METH_VARARGS
, NULL
},
25956 { (char *)"new_EncodingConverter", (PyCFunction
)_wrap_new_EncodingConverter
, METH_NOARGS
, NULL
},
25957 { (char *)"delete_EncodingConverter", (PyCFunction
)_wrap_delete_EncodingConverter
, METH_O
, NULL
},
25958 { (char *)"EncodingConverter_Init", (PyCFunction
) _wrap_EncodingConverter_Init
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25959 { (char *)"EncodingConverter_Convert", (PyCFunction
) _wrap_EncodingConverter_Convert
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25960 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction
) _wrap_EncodingConverter_GetPlatformEquivalents
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25961 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction
) _wrap_EncodingConverter_GetAllEquivalents
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25962 { (char *)"EncodingConverter_CanConvert", (PyCFunction
) _wrap_EncodingConverter_CanConvert
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25963 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister
, METH_VARARGS
, NULL
},
25964 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit
, METH_VARARGS
, NULL
},
25965 { (char *)"delete_DC", (PyCFunction
)_wrap_delete_DC
, METH_O
, NULL
},
25966 { (char *)"DC_FloodFill", (PyCFunction
) _wrap_DC_FloodFill
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25967 { (char *)"DC_FloodFillPoint", (PyCFunction
) _wrap_DC_FloodFillPoint
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25968 { (char *)"DC_GradientFillConcentric", (PyCFunction
) _wrap_DC_GradientFillConcentric
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25969 { (char *)"DC_GradientFillLinear", (PyCFunction
) _wrap_DC_GradientFillLinear
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25970 { (char *)"DC_GetPixel", (PyCFunction
) _wrap_DC_GetPixel
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25971 { (char *)"DC_GetPixelPoint", (PyCFunction
) _wrap_DC_GetPixelPoint
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25972 { (char *)"DC_DrawLine", (PyCFunction
) _wrap_DC_DrawLine
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25973 { (char *)"DC_DrawLinePoint", (PyCFunction
) _wrap_DC_DrawLinePoint
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25974 { (char *)"DC_CrossHair", (PyCFunction
) _wrap_DC_CrossHair
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25975 { (char *)"DC_CrossHairPoint", (PyCFunction
) _wrap_DC_CrossHairPoint
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25976 { (char *)"DC_DrawArc", (PyCFunction
) _wrap_DC_DrawArc
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25977 { (char *)"DC_DrawArcPoint", (PyCFunction
) _wrap_DC_DrawArcPoint
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25978 { (char *)"DC_DrawCheckMark", (PyCFunction
) _wrap_DC_DrawCheckMark
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25979 { (char *)"DC_DrawCheckMarkRect", (PyCFunction
) _wrap_DC_DrawCheckMarkRect
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25980 { (char *)"DC_DrawEllipticArc", (PyCFunction
) _wrap_DC_DrawEllipticArc
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25981 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction
) _wrap_DC_DrawEllipticArcPointSize
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25982 { (char *)"DC_DrawPoint", (PyCFunction
) _wrap_DC_DrawPoint
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25983 { (char *)"DC_DrawPointPoint", (PyCFunction
) _wrap_DC_DrawPointPoint
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25984 { (char *)"DC_DrawRectangle", (PyCFunction
) _wrap_DC_DrawRectangle
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25985 { (char *)"DC_DrawRectangleRect", (PyCFunction
) _wrap_DC_DrawRectangleRect
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25986 { (char *)"DC_DrawRectanglePointSize", (PyCFunction
) _wrap_DC_DrawRectanglePointSize
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25987 { (char *)"DC_DrawRoundedRectangle", (PyCFunction
) _wrap_DC_DrawRoundedRectangle
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25988 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction
) _wrap_DC_DrawRoundedRectangleRect
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25989 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction
) _wrap_DC_DrawRoundedRectanglePointSize
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25990 { (char *)"DC_DrawCircle", (PyCFunction
) _wrap_DC_DrawCircle
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25991 { (char *)"DC_DrawCirclePoint", (PyCFunction
) _wrap_DC_DrawCirclePoint
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25992 { (char *)"DC_DrawEllipse", (PyCFunction
) _wrap_DC_DrawEllipse
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25993 { (char *)"DC_DrawEllipseRect", (PyCFunction
) _wrap_DC_DrawEllipseRect
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25994 { (char *)"DC_DrawEllipsePointSize", (PyCFunction
) _wrap_DC_DrawEllipsePointSize
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25995 { (char *)"DC_DrawIcon", (PyCFunction
) _wrap_DC_DrawIcon
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25996 { (char *)"DC_DrawIconPoint", (PyCFunction
) _wrap_DC_DrawIconPoint
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25997 { (char *)"DC_DrawBitmap", (PyCFunction
) _wrap_DC_DrawBitmap
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25998 { (char *)"DC_DrawBitmapPoint", (PyCFunction
) _wrap_DC_DrawBitmapPoint
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
25999 { (char *)"DC_DrawText", (PyCFunction
) _wrap_DC_DrawText
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26000 { (char *)"DC_DrawTextPoint", (PyCFunction
) _wrap_DC_DrawTextPoint
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26001 { (char *)"DC_DrawRotatedText", (PyCFunction
) _wrap_DC_DrawRotatedText
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26002 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction
) _wrap_DC_DrawRotatedTextPoint
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26003 { (char *)"DC_Blit", (PyCFunction
) _wrap_DC_Blit
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26004 { (char *)"DC_BlitPointSize", (PyCFunction
) _wrap_DC_BlitPointSize
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26005 { (char *)"DC_SetClippingRegion", (PyCFunction
) _wrap_DC_SetClippingRegion
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26006 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction
) _wrap_DC_SetClippingRegionPointSize
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26007 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction
) _wrap_DC_SetClippingRegionAsRegion
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26008 { (char *)"DC_SetClippingRect", (PyCFunction
) _wrap_DC_SetClippingRect
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26009 { (char *)"DC_DrawLines", (PyCFunction
) _wrap_DC_DrawLines
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26010 { (char *)"DC_DrawPolygon", (PyCFunction
) _wrap_DC_DrawPolygon
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26011 { (char *)"DC_DrawLabel", (PyCFunction
) _wrap_DC_DrawLabel
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26012 { (char *)"DC_DrawImageLabel", (PyCFunction
) _wrap_DC_DrawImageLabel
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26013 { (char *)"DC_DrawSpline", (PyCFunction
) _wrap_DC_DrawSpline
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26014 { (char *)"DC_Clear", (PyCFunction
)_wrap_DC_Clear
, METH_O
, NULL
},
26015 { (char *)"DC_StartDoc", (PyCFunction
) _wrap_DC_StartDoc
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26016 { (char *)"DC_EndDoc", (PyCFunction
)_wrap_DC_EndDoc
, METH_O
, NULL
},
26017 { (char *)"DC_StartPage", (PyCFunction
)_wrap_DC_StartPage
, METH_O
, NULL
},
26018 { (char *)"DC_EndPage", (PyCFunction
)_wrap_DC_EndPage
, METH_O
, NULL
},
26019 { (char *)"DC_SetFont", (PyCFunction
) _wrap_DC_SetFont
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26020 { (char *)"DC_SetPen", (PyCFunction
) _wrap_DC_SetPen
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26021 { (char *)"DC_SetBrush", (PyCFunction
) _wrap_DC_SetBrush
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26022 { (char *)"DC_SetBackground", (PyCFunction
) _wrap_DC_SetBackground
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26023 { (char *)"DC_SetBackgroundMode", (PyCFunction
) _wrap_DC_SetBackgroundMode
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26024 { (char *)"DC_SetPalette", (PyCFunction
) _wrap_DC_SetPalette
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26025 { (char *)"DC_DestroyClippingRegion", (PyCFunction
)_wrap_DC_DestroyClippingRegion
, METH_O
, NULL
},
26026 { (char *)"DC_GetClippingBox", (PyCFunction
)_wrap_DC_GetClippingBox
, METH_O
, NULL
},
26027 { (char *)"DC_GetClippingRect", (PyCFunction
)_wrap_DC_GetClippingRect
, METH_O
, NULL
},
26028 { (char *)"DC_GetCharHeight", (PyCFunction
)_wrap_DC_GetCharHeight
, METH_O
, NULL
},
26029 { (char *)"DC_GetCharWidth", (PyCFunction
)_wrap_DC_GetCharWidth
, METH_O
, NULL
},
26030 { (char *)"DC_GetTextExtent", (PyCFunction
) _wrap_DC_GetTextExtent
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26031 { (char *)"DC_GetFullTextExtent", (PyCFunction
) _wrap_DC_GetFullTextExtent
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26032 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction
) _wrap_DC_GetMultiLineTextExtent
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26033 { (char *)"DC_GetPartialTextExtents", (PyCFunction
) _wrap_DC_GetPartialTextExtents
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26034 { (char *)"DC_GetSize", (PyCFunction
)_wrap_DC_GetSize
, METH_O
, NULL
},
26035 { (char *)"DC_GetSizeTuple", (PyCFunction
)_wrap_DC_GetSizeTuple
, METH_O
, NULL
},
26036 { (char *)"DC_GetSizeMM", (PyCFunction
)_wrap_DC_GetSizeMM
, METH_O
, NULL
},
26037 { (char *)"DC_GetSizeMMTuple", (PyCFunction
)_wrap_DC_GetSizeMMTuple
, METH_O
, NULL
},
26038 { (char *)"DC_DeviceToLogicalX", (PyCFunction
) _wrap_DC_DeviceToLogicalX
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26039 { (char *)"DC_DeviceToLogicalY", (PyCFunction
) _wrap_DC_DeviceToLogicalY
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26040 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction
) _wrap_DC_DeviceToLogicalXRel
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26041 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction
) _wrap_DC_DeviceToLogicalYRel
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26042 { (char *)"DC_LogicalToDeviceX", (PyCFunction
) _wrap_DC_LogicalToDeviceX
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26043 { (char *)"DC_LogicalToDeviceY", (PyCFunction
) _wrap_DC_LogicalToDeviceY
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26044 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction
) _wrap_DC_LogicalToDeviceXRel
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26045 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction
) _wrap_DC_LogicalToDeviceYRel
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26046 { (char *)"DC_CanDrawBitmap", (PyCFunction
)_wrap_DC_CanDrawBitmap
, METH_O
, NULL
},
26047 { (char *)"DC_CanGetTextExtent", (PyCFunction
)_wrap_DC_CanGetTextExtent
, METH_O
, NULL
},
26048 { (char *)"DC_GetDepth", (PyCFunction
)_wrap_DC_GetDepth
, METH_O
, NULL
},
26049 { (char *)"DC_GetPPI", (PyCFunction
)_wrap_DC_GetPPI
, METH_O
, NULL
},
26050 { (char *)"DC_Ok", (PyCFunction
)_wrap_DC_Ok
, METH_O
, NULL
},
26051 { (char *)"DC_GetBackgroundMode", (PyCFunction
)_wrap_DC_GetBackgroundMode
, METH_O
, NULL
},
26052 { (char *)"DC_GetBackground", (PyCFunction
)_wrap_DC_GetBackground
, METH_O
, NULL
},
26053 { (char *)"DC_GetBrush", (PyCFunction
)_wrap_DC_GetBrush
, METH_O
, NULL
},
26054 { (char *)"DC_GetFont", (PyCFunction
)_wrap_DC_GetFont
, METH_O
, NULL
},
26055 { (char *)"DC_GetPen", (PyCFunction
)_wrap_DC_GetPen
, METH_O
, NULL
},
26056 { (char *)"DC_GetTextBackground", (PyCFunction
)_wrap_DC_GetTextBackground
, METH_O
, NULL
},
26057 { (char *)"DC_GetTextForeground", (PyCFunction
)_wrap_DC_GetTextForeground
, METH_O
, NULL
},
26058 { (char *)"DC_SetTextForeground", (PyCFunction
) _wrap_DC_SetTextForeground
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26059 { (char *)"DC_SetTextBackground", (PyCFunction
) _wrap_DC_SetTextBackground
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26060 { (char *)"DC_GetMapMode", (PyCFunction
)_wrap_DC_GetMapMode
, METH_O
, NULL
},
26061 { (char *)"DC_SetMapMode", (PyCFunction
) _wrap_DC_SetMapMode
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26062 { (char *)"DC_GetUserScale", (PyCFunction
)_wrap_DC_GetUserScale
, METH_O
, NULL
},
26063 { (char *)"DC_SetUserScale", (PyCFunction
) _wrap_DC_SetUserScale
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26064 { (char *)"DC_GetLogicalScale", (PyCFunction
)_wrap_DC_GetLogicalScale
, METH_O
, NULL
},
26065 { (char *)"DC_SetLogicalScale", (PyCFunction
) _wrap_DC_SetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26066 { (char *)"DC_GetLogicalOrigin", (PyCFunction
)_wrap_DC_GetLogicalOrigin
, METH_O
, NULL
},
26067 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction
)_wrap_DC_GetLogicalOriginTuple
, METH_O
, NULL
},
26068 { (char *)"DC_SetLogicalOrigin", (PyCFunction
) _wrap_DC_SetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26069 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction
) _wrap_DC_SetLogicalOriginPoint
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26070 { (char *)"DC_GetDeviceOrigin", (PyCFunction
)_wrap_DC_GetDeviceOrigin
, METH_O
, NULL
},
26071 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction
)_wrap_DC_GetDeviceOriginTuple
, METH_O
, NULL
},
26072 { (char *)"DC_SetDeviceOrigin", (PyCFunction
) _wrap_DC_SetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26073 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction
) _wrap_DC_SetDeviceOriginPoint
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26074 { (char *)"DC_SetAxisOrientation", (PyCFunction
) _wrap_DC_SetAxisOrientation
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26075 { (char *)"DC_GetLogicalFunction", (PyCFunction
)_wrap_DC_GetLogicalFunction
, METH_O
, NULL
},
26076 { (char *)"DC_SetLogicalFunction", (PyCFunction
) _wrap_DC_SetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26077 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction
)_wrap_DC_ComputeScaleAndOrigin
, METH_O
, NULL
},
26078 { (char *)"DC_CalcBoundingBox", (PyCFunction
) _wrap_DC_CalcBoundingBox
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26079 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction
) _wrap_DC_CalcBoundingBoxPoint
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26080 { (char *)"DC_ResetBoundingBox", (PyCFunction
)_wrap_DC_ResetBoundingBox
, METH_O
, NULL
},
26081 { (char *)"DC_MinX", (PyCFunction
)_wrap_DC_MinX
, METH_O
, NULL
},
26082 { (char *)"DC_MaxX", (PyCFunction
)_wrap_DC_MaxX
, METH_O
, NULL
},
26083 { (char *)"DC_MinY", (PyCFunction
)_wrap_DC_MinY
, METH_O
, NULL
},
26084 { (char *)"DC_MaxY", (PyCFunction
)_wrap_DC_MaxY
, METH_O
, NULL
},
26085 { (char *)"DC_GetBoundingBox", (PyCFunction
)_wrap_DC_GetBoundingBox
, METH_O
, NULL
},
26086 { (char *)"DC_GetHDC", (PyCFunction
)_wrap_DC_GetHDC
, METH_O
, NULL
},
26087 { (char *)"DC__DrawPointList", (PyCFunction
) _wrap_DC__DrawPointList
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26088 { (char *)"DC__DrawLineList", (PyCFunction
) _wrap_DC__DrawLineList
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26089 { (char *)"DC__DrawRectangleList", (PyCFunction
) _wrap_DC__DrawRectangleList
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26090 { (char *)"DC__DrawEllipseList", (PyCFunction
) _wrap_DC__DrawEllipseList
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26091 { (char *)"DC__DrawPolygonList", (PyCFunction
) _wrap_DC__DrawPolygonList
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26092 { (char *)"DC__DrawTextList", (PyCFunction
) _wrap_DC__DrawTextList
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26093 { (char *)"DC_swigregister", DC_swigregister
, METH_VARARGS
, NULL
},
26094 { (char *)"new_MemoryDC", (PyCFunction
)_wrap_new_MemoryDC
, METH_NOARGS
, NULL
},
26095 { (char *)"new_MemoryDCFromDC", (PyCFunction
) _wrap_new_MemoryDCFromDC
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26096 { (char *)"MemoryDC_SelectObject", (PyCFunction
) _wrap_MemoryDC_SelectObject
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26097 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister
, METH_VARARGS
, NULL
},
26098 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit
, METH_VARARGS
, NULL
},
26099 { (char *)"new_BufferedDC", _wrap_new_BufferedDC
, METH_VARARGS
, NULL
},
26100 { (char *)"delete_BufferedDC", (PyCFunction
)_wrap_delete_BufferedDC
, METH_O
, NULL
},
26101 { (char *)"BufferedDC_UnMask", (PyCFunction
)_wrap_BufferedDC_UnMask
, METH_O
, NULL
},
26102 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister
, METH_VARARGS
, NULL
},
26103 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit
, METH_VARARGS
, NULL
},
26104 { (char *)"new_BufferedPaintDC", (PyCFunction
) _wrap_new_BufferedPaintDC
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26105 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister
, METH_VARARGS
, NULL
},
26106 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit
, METH_VARARGS
, NULL
},
26107 { (char *)"new_ScreenDC", (PyCFunction
)_wrap_new_ScreenDC
, METH_NOARGS
, NULL
},
26108 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction
) _wrap_ScreenDC_StartDrawingOnTopWin
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26109 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction
) _wrap_ScreenDC_StartDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26110 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction
)_wrap_ScreenDC_EndDrawingOnTop
, METH_O
, NULL
},
26111 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister
, METH_VARARGS
, NULL
},
26112 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit
, METH_VARARGS
, NULL
},
26113 { (char *)"new_ClientDC", (PyCFunction
) _wrap_new_ClientDC
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26114 { (char *)"ClientDC_swigregister", ClientDC_swigregister
, METH_VARARGS
, NULL
},
26115 { (char *)"ClientDC_swiginit", ClientDC_swiginit
, METH_VARARGS
, NULL
},
26116 { (char *)"new_PaintDC", (PyCFunction
) _wrap_new_PaintDC
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26117 { (char *)"PaintDC_swigregister", PaintDC_swigregister
, METH_VARARGS
, NULL
},
26118 { (char *)"PaintDC_swiginit", PaintDC_swiginit
, METH_VARARGS
, NULL
},
26119 { (char *)"new_WindowDC", (PyCFunction
) _wrap_new_WindowDC
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26120 { (char *)"WindowDC_swigregister", WindowDC_swigregister
, METH_VARARGS
, NULL
},
26121 { (char *)"WindowDC_swiginit", WindowDC_swiginit
, METH_VARARGS
, NULL
},
26122 { (char *)"new_MirrorDC", (PyCFunction
) _wrap_new_MirrorDC
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26123 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister
, METH_VARARGS
, NULL
},
26124 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit
, METH_VARARGS
, NULL
},
26125 { (char *)"new_PostScriptDC", (PyCFunction
) _wrap_new_PostScriptDC
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26126 { (char *)"PostScriptDC_GetPrintData", (PyCFunction
)_wrap_PostScriptDC_GetPrintData
, METH_O
, NULL
},
26127 { (char *)"PostScriptDC_SetPrintData", (PyCFunction
) _wrap_PostScriptDC_SetPrintData
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26128 { (char *)"PostScriptDC_SetResolution", (PyCFunction
) _wrap_PostScriptDC_SetResolution
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26129 { (char *)"PostScriptDC_GetResolution", (PyCFunction
)_wrap_PostScriptDC_GetResolution
, METH_NOARGS
, NULL
},
26130 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister
, METH_VARARGS
, NULL
},
26131 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit
, METH_VARARGS
, NULL
},
26132 { (char *)"new_MetaFile", (PyCFunction
) _wrap_new_MetaFile
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26133 { (char *)"delete_MetaFile", (PyCFunction
)_wrap_delete_MetaFile
, METH_O
, NULL
},
26134 { (char *)"MetaFile_Ok", (PyCFunction
)_wrap_MetaFile_Ok
, METH_O
, NULL
},
26135 { (char *)"MetaFile_SetClipboard", (PyCFunction
) _wrap_MetaFile_SetClipboard
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26136 { (char *)"MetaFile_GetSize", (PyCFunction
)_wrap_MetaFile_GetSize
, METH_O
, NULL
},
26137 { (char *)"MetaFile_GetWidth", (PyCFunction
)_wrap_MetaFile_GetWidth
, METH_O
, NULL
},
26138 { (char *)"MetaFile_GetHeight", (PyCFunction
)_wrap_MetaFile_GetHeight
, METH_O
, NULL
},
26139 { (char *)"MetaFile_GetFileName", (PyCFunction
)_wrap_MetaFile_GetFileName
, METH_O
, NULL
},
26140 { (char *)"MetaFile_swigregister", MetaFile_swigregister
, METH_VARARGS
, NULL
},
26141 { (char *)"MetaFile_swiginit", MetaFile_swiginit
, METH_VARARGS
, NULL
},
26142 { (char *)"new_MetaFileDC", (PyCFunction
) _wrap_new_MetaFileDC
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26143 { (char *)"MetaFileDC_Close", (PyCFunction
)_wrap_MetaFileDC_Close
, METH_O
, NULL
},
26144 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister
, METH_VARARGS
, NULL
},
26145 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit
, METH_VARARGS
, NULL
},
26146 { (char *)"new_PrinterDC", (PyCFunction
) _wrap_new_PrinterDC
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26147 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister
, METH_VARARGS
, NULL
},
26148 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit
, METH_VARARGS
, NULL
},
26149 { (char *)"new_ImageList", (PyCFunction
) _wrap_new_ImageList
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26150 { (char *)"delete_ImageList", (PyCFunction
)_wrap_delete_ImageList
, METH_O
, NULL
},
26151 { (char *)"ImageList_Add", (PyCFunction
) _wrap_ImageList_Add
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26152 { (char *)"ImageList_AddWithColourMask", (PyCFunction
) _wrap_ImageList_AddWithColourMask
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26153 { (char *)"ImageList_AddIcon", (PyCFunction
) _wrap_ImageList_AddIcon
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26154 { (char *)"ImageList_GetBitmap", (PyCFunction
) _wrap_ImageList_GetBitmap
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26155 { (char *)"ImageList_GetIcon", (PyCFunction
) _wrap_ImageList_GetIcon
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26156 { (char *)"ImageList_Replace", (PyCFunction
) _wrap_ImageList_Replace
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26157 { (char *)"ImageList_Draw", (PyCFunction
) _wrap_ImageList_Draw
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26158 { (char *)"ImageList_GetImageCount", (PyCFunction
)_wrap_ImageList_GetImageCount
, METH_O
, NULL
},
26159 { (char *)"ImageList_Remove", (PyCFunction
) _wrap_ImageList_Remove
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26160 { (char *)"ImageList_RemoveAll", (PyCFunction
)_wrap_ImageList_RemoveAll
, METH_O
, NULL
},
26161 { (char *)"ImageList_GetSize", (PyCFunction
) _wrap_ImageList_GetSize
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26162 { (char *)"ImageList_swigregister", ImageList_swigregister
, METH_VARARGS
, NULL
},
26163 { (char *)"ImageList_swiginit", ImageList_swiginit
, METH_VARARGS
, NULL
},
26164 { (char *)"new_StockGDI", (PyCFunction
)_wrap_new_StockGDI
, METH_NOARGS
, NULL
},
26165 { (char *)"delete_StockGDI", (PyCFunction
)_wrap_delete_StockGDI
, METH_O
, NULL
},
26166 { (char *)"StockGDI_DeleteAll", (PyCFunction
)_wrap_StockGDI_DeleteAll
, METH_NOARGS
, NULL
},
26167 { (char *)"StockGDI_instance", (PyCFunction
)_wrap_StockGDI_instance
, METH_NOARGS
, NULL
},
26168 { (char *)"StockGDI_GetBrush", (PyCFunction
) _wrap_StockGDI_GetBrush
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26169 { (char *)"StockGDI_GetColour", (PyCFunction
) _wrap_StockGDI_GetColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26170 { (char *)"StockGDI_GetCursor", (PyCFunction
) _wrap_StockGDI_GetCursor
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26171 { (char *)"StockGDI_GetPen", (PyCFunction
) _wrap_StockGDI_GetPen
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26172 { (char *)"StockGDI_GetFont", (PyCFunction
) _wrap_StockGDI_GetFont
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26173 { (char *)"StockGDI_swigregister", StockGDI_swigregister
, METH_VARARGS
, NULL
},
26174 { (char *)"StockGDI_swiginit", StockGDI_swiginit
, METH_VARARGS
, NULL
},
26175 { (char *)"new_GDIObjListBase", (PyCFunction
)_wrap_new_GDIObjListBase
, METH_NOARGS
, NULL
},
26176 { (char *)"delete_GDIObjListBase", (PyCFunction
)_wrap_delete_GDIObjListBase
, METH_O
, NULL
},
26177 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister
, METH_VARARGS
, NULL
},
26178 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit
, METH_VARARGS
, NULL
},
26179 { (char *)"PenList_FindOrCreatePen", (PyCFunction
) _wrap_PenList_FindOrCreatePen
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26180 { (char *)"PenList_AddPen", (PyCFunction
) _wrap_PenList_AddPen
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26181 { (char *)"PenList_RemovePen", (PyCFunction
) _wrap_PenList_RemovePen
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26182 { (char *)"PenList_swigregister", PenList_swigregister
, METH_VARARGS
, NULL
},
26183 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction
) _wrap_BrushList_FindOrCreateBrush
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26184 { (char *)"BrushList_AddBrush", (PyCFunction
) _wrap_BrushList_AddBrush
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26185 { (char *)"BrushList_RemoveBrush", (PyCFunction
) _wrap_BrushList_RemoveBrush
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26186 { (char *)"BrushList_swigregister", BrushList_swigregister
, METH_VARARGS
, NULL
},
26187 { (char *)"FontList_FindOrCreateFont", (PyCFunction
) _wrap_FontList_FindOrCreateFont
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26188 { (char *)"FontList_AddFont", (PyCFunction
) _wrap_FontList_AddFont
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26189 { (char *)"FontList_RemoveFont", (PyCFunction
) _wrap_FontList_RemoveFont
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26190 { (char *)"FontList_swigregister", FontList_swigregister
, METH_VARARGS
, NULL
},
26191 { (char *)"new_ColourDatabase", (PyCFunction
)_wrap_new_ColourDatabase
, METH_NOARGS
, NULL
},
26192 { (char *)"delete_ColourDatabase", (PyCFunction
)_wrap_delete_ColourDatabase
, METH_O
, NULL
},
26193 { (char *)"ColourDatabase_Find", (PyCFunction
) _wrap_ColourDatabase_Find
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26194 { (char *)"ColourDatabase_FindName", (PyCFunction
) _wrap_ColourDatabase_FindName
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26195 { (char *)"ColourDatabase_AddColour", (PyCFunction
) _wrap_ColourDatabase_AddColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26196 { (char *)"ColourDatabase_Append", (PyCFunction
) _wrap_ColourDatabase_Append
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26197 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister
, METH_VARARGS
, NULL
},
26198 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit
, METH_VARARGS
, NULL
},
26199 { (char *)"_wxPyInitTheFontList", (PyCFunction
)_wrap__wxPyInitTheFontList
, METH_NOARGS
, NULL
},
26200 { (char *)"_wxPyInitThePenList", (PyCFunction
)_wrap__wxPyInitThePenList
, METH_NOARGS
, NULL
},
26201 { (char *)"_wxPyInitTheBrushList", (PyCFunction
)_wrap__wxPyInitTheBrushList
, METH_NOARGS
, NULL
},
26202 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction
)_wrap__wxPyInitTheColourDatabase
, METH_NOARGS
, NULL
},
26203 { (char *)"new_Effects", (PyCFunction
)_wrap_new_Effects
, METH_NOARGS
, NULL
},
26204 { (char *)"Effects_GetHighlightColour", (PyCFunction
)_wrap_Effects_GetHighlightColour
, METH_O
, NULL
},
26205 { (char *)"Effects_GetLightShadow", (PyCFunction
)_wrap_Effects_GetLightShadow
, METH_O
, NULL
},
26206 { (char *)"Effects_GetFaceColour", (PyCFunction
)_wrap_Effects_GetFaceColour
, METH_O
, NULL
},
26207 { (char *)"Effects_GetMediumShadow", (PyCFunction
)_wrap_Effects_GetMediumShadow
, METH_O
, NULL
},
26208 { (char *)"Effects_GetDarkShadow", (PyCFunction
)_wrap_Effects_GetDarkShadow
, METH_O
, NULL
},
26209 { (char *)"Effects_SetHighlightColour", (PyCFunction
) _wrap_Effects_SetHighlightColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26210 { (char *)"Effects_SetLightShadow", (PyCFunction
) _wrap_Effects_SetLightShadow
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26211 { (char *)"Effects_SetFaceColour", (PyCFunction
) _wrap_Effects_SetFaceColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26212 { (char *)"Effects_SetMediumShadow", (PyCFunction
) _wrap_Effects_SetMediumShadow
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26213 { (char *)"Effects_SetDarkShadow", (PyCFunction
) _wrap_Effects_SetDarkShadow
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26214 { (char *)"Effects_Set", (PyCFunction
) _wrap_Effects_Set
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26215 { (char *)"Effects_DrawSunkenEdge", (PyCFunction
) _wrap_Effects_DrawSunkenEdge
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26216 { (char *)"Effects_TileBitmap", (PyCFunction
) _wrap_Effects_TileBitmap
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26217 { (char *)"Effects_swigregister", Effects_swigregister
, METH_VARARGS
, NULL
},
26218 { (char *)"Effects_swiginit", Effects_swiginit
, METH_VARARGS
, NULL
},
26219 { (char *)"new_SplitterRenderParams", (PyCFunction
) _wrap_new_SplitterRenderParams
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26220 { (char *)"delete_SplitterRenderParams", (PyCFunction
)_wrap_delete_SplitterRenderParams
, METH_O
, NULL
},
26221 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction
)_wrap_SplitterRenderParams_widthSash_get
, METH_O
, NULL
},
26222 { (char *)"SplitterRenderParams_border_get", (PyCFunction
)_wrap_SplitterRenderParams_border_get
, METH_O
, NULL
},
26223 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction
)_wrap_SplitterRenderParams_isHotSensitive_get
, METH_O
, NULL
},
26224 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister
, METH_VARARGS
, NULL
},
26225 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit
, METH_VARARGS
, NULL
},
26226 { (char *)"new_RendererVersion", (PyCFunction
) _wrap_new_RendererVersion
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26227 { (char *)"delete_RendererVersion", (PyCFunction
)_wrap_delete_RendererVersion
, METH_O
, NULL
},
26228 { (char *)"RendererVersion_IsCompatible", (PyCFunction
) _wrap_RendererVersion_IsCompatible
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26229 { (char *)"RendererVersion_version_get", (PyCFunction
)_wrap_RendererVersion_version_get
, METH_O
, NULL
},
26230 { (char *)"RendererVersion_age_get", (PyCFunction
)_wrap_RendererVersion_age_get
, METH_O
, NULL
},
26231 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister
, METH_VARARGS
, NULL
},
26232 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit
, METH_VARARGS
, NULL
},
26233 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction
) _wrap_RendererNative_DrawHeaderButton
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26234 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction
) _wrap_RendererNative_DrawTreeItemButton
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26235 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction
) _wrap_RendererNative_DrawSplitterBorder
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26236 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction
) _wrap_RendererNative_DrawSplitterSash
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26237 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction
) _wrap_RendererNative_DrawComboBoxDropButton
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26238 { (char *)"RendererNative_DrawDropArrow", (PyCFunction
) _wrap_RendererNative_DrawDropArrow
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26239 { (char *)"RendererNative_DrawCheckButton", (PyCFunction
) _wrap_RendererNative_DrawCheckButton
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26240 { (char *)"RendererNative_GetSplitterParams", (PyCFunction
) _wrap_RendererNative_GetSplitterParams
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26241 { (char *)"RendererNative_Get", (PyCFunction
)_wrap_RendererNative_Get
, METH_NOARGS
, NULL
},
26242 { (char *)"RendererNative_GetGeneric", (PyCFunction
)_wrap_RendererNative_GetGeneric
, METH_NOARGS
, NULL
},
26243 { (char *)"RendererNative_GetDefault", (PyCFunction
)_wrap_RendererNative_GetDefault
, METH_NOARGS
, NULL
},
26244 { (char *)"RendererNative_Set", (PyCFunction
) _wrap_RendererNative_Set
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
26245 { (char *)"RendererNative_GetVersion", (PyCFunction
)_wrap_RendererNative_GetVersion
, METH_O
, NULL
},
26246 { (char *)"RendererNative_swigregister", RendererNative_swigregister
, METH_VARARGS
, NULL
},
26247 { NULL
, NULL
, 0, NULL
}
26251 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
26253 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x
) {
26254 return (void *)((wxMemoryDC
*) ((wxBufferedDC
*) x
));
26256 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x
) {
26257 return (void *)((wxMemoryDC
*) (wxBufferedDC
*) ((wxBufferedPaintDC
*) x
));
26259 static void *_p_wxIconTo_p_wxGDIObject(void *x
) {
26260 return (void *)((wxGDIObject
*) ((wxIcon
*) x
));
26262 static void *_p_wxPaletteTo_p_wxGDIObject(void *x
) {
26263 return (void *)((wxGDIObject
*) ((wxPalette
*) x
));
26265 static void *_p_wxPenTo_p_wxGDIObject(void *x
) {
26266 return (void *)((wxGDIObject
*) ((wxPen
*) x
));
26268 static void *_p_wxFontTo_p_wxGDIObject(void *x
) {
26269 return (void *)((wxGDIObject
*) ((wxFont
*) x
));
26271 static void *_p_wxCursorTo_p_wxGDIObject(void *x
) {
26272 return (void *)((wxGDIObject
*) ((wxCursor
*) x
));
26274 static void *_p_wxBitmapTo_p_wxGDIObject(void *x
) {
26275 return (void *)((wxGDIObject
*) ((wxBitmap
*) x
));
26277 static void *_p_wxRegionTo_p_wxGDIObject(void *x
) {
26278 return (void *)((wxGDIObject
*) ((wxRegion
*) x
));
26280 static void *_p_wxBrushTo_p_wxGDIObject(void *x
) {
26281 return (void *)((wxGDIObject
*) ((wxBrush
*) x
));
26283 static void *_p_wxBufferedDCTo_p_wxDC(void *x
) {
26284 return (void *)((wxDC
*) (wxMemoryDC
*) ((wxBufferedDC
*) x
));
26286 static void *_p_wxScreenDCTo_p_wxDC(void *x
) {
26287 return (void *)((wxDC
*) ((wxScreenDC
*) x
));
26289 static void *_p_wxMirrorDCTo_p_wxDC(void *x
) {
26290 return (void *)((wxDC
*) ((wxMirrorDC
*) x
));
26292 static void *_p_wxMemoryDCTo_p_wxDC(void *x
) {
26293 return (void *)((wxDC
*) ((wxMemoryDC
*) x
));
26295 static void *_p_wxWindowDCTo_p_wxDC(void *x
) {
26296 return (void *)((wxDC
*) ((wxWindowDC
*) x
));
26298 static void *_p_wxMetaFileDCTo_p_wxDC(void *x
) {
26299 return (void *)((wxDC
*) ((wxMetaFileDC
*) x
));
26301 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x
) {
26302 return (void *)((wxDC
*) (wxMemoryDC
*)(wxBufferedDC
*) ((wxBufferedPaintDC
*) x
));
26304 static void *_p_wxClientDCTo_p_wxDC(void *x
) {
26305 return (void *)((wxDC
*) ((wxClientDC
*) x
));
26307 static void *_p_wxPaintDCTo_p_wxDC(void *x
) {
26308 return (void *)((wxDC
*) ((wxPaintDC
*) x
));
26310 static void *_p_wxPostScriptDCTo_p_wxDC(void *x
) {
26311 return (void *)((wxDC
*) ((wxPostScriptDC
*) x
));
26313 static void *_p_wxPrinterDCTo_p_wxDC(void *x
) {
26314 return (void *)((wxDC
*) ((wxPrinterDC
*) x
));
26316 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x
) {
26317 return (void *)((wxGDIObjListBase
*) ((wxBrushList
*) x
));
26319 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x
) {
26320 return (void *)((wxGDIObjListBase
*) ((wxFontList
*) x
));
26322 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x
) {
26323 return (void *)((wxGDIObjListBase
*) ((wxPenList
*) x
));
26325 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x
) {
26326 return (void *)((wxBufferedDC
*) ((wxBufferedPaintDC
*) x
));
26328 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x
) {
26329 return (void *)((wxObject
*) ((wxLayoutConstraints
*) x
));
26331 static void *_p_wxPenTo_p_wxObject(void *x
) {
26332 return (void *)((wxObject
*) (wxGDIObject
*) ((wxPen
*) x
));
26334 static void *_p_wxRegionIteratorTo_p_wxObject(void *x
) {
26335 return (void *)((wxObject
*) ((wxRegionIterator
*) x
));
26337 static void *_p_wxGBSizerItemTo_p_wxObject(void *x
) {
26338 return (void *)((wxObject
*) (wxSizerItem
*) ((wxGBSizerItem
*) x
));
26340 static void *_p_wxSizerItemTo_p_wxObject(void *x
) {
26341 return (void *)((wxObject
*) ((wxSizerItem
*) x
));
26343 static void *_p_wxScrollEventTo_p_wxObject(void *x
) {
26344 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxScrollEvent
*) x
));
26346 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x
) {
26347 return (void *)((wxObject
*) ((wxIndividualLayoutConstraint
*) x
));
26349 static void *_p_wxIconTo_p_wxObject(void *x
) {
26350 return (void *)((wxObject
*) (wxGDIObject
*) ((wxIcon
*) x
));
26352 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x
) {
26353 return (void *)((wxObject
*) (wxSizer
*)(wxBoxSizer
*) ((wxStaticBoxSizer
*) x
));
26355 static void *_p_wxBoxSizerTo_p_wxObject(void *x
) {
26356 return (void *)((wxObject
*) (wxSizer
*) ((wxBoxSizer
*) x
));
26358 static void *_p_wxSizerTo_p_wxObject(void *x
) {
26359 return (void *)((wxObject
*) ((wxSizer
*) x
));
26361 static void *_p_wxGridBagSizerTo_p_wxObject(void *x
) {
26362 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*)(wxFlexGridSizer
*) ((wxGridBagSizer
*) x
));
26364 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x
) {
26365 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxUpdateUIEvent
*) x
));
26367 static void *_p_wxEventTo_p_wxObject(void *x
) {
26368 return (void *)((wxObject
*) ((wxEvent
*) x
));
26370 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x
) {
26371 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*) ((wxFlexGridSizer
*) x
));
26373 static void *_p_wxGridSizerTo_p_wxObject(void *x
) {
26374 return (void *)((wxObject
*) (wxSizer
*) ((wxGridSizer
*) x
));
26376 static void *_p_wxInitDialogEventTo_p_wxObject(void *x
) {
26377 return (void *)((wxObject
*) (wxEvent
*) ((wxInitDialogEvent
*) x
));
26379 static void *_p_wxPaintEventTo_p_wxObject(void *x
) {
26380 return (void *)((wxObject
*) (wxEvent
*) ((wxPaintEvent
*) x
));
26382 static void *_p_wxNcPaintEventTo_p_wxObject(void *x
) {
26383 return (void *)((wxObject
*) (wxEvent
*) ((wxNcPaintEvent
*) x
));
26385 static void *_p_wxDCTo_p_wxObject(void *x
) {
26386 return (void *)((wxObject
*) ((wxDC
*) x
));
26388 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x
) {
26389 return (void *)((wxObject
*) (wxEvent
*) ((wxPaletteChangedEvent
*) x
));
26391 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x
) {
26392 return (void *)((wxObject
*) (wxEvent
*) ((wxDisplayChangedEvent
*) x
));
26394 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x
) {
26395 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseCaptureChangedEvent
*) x
));
26397 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x
) {
26398 return (void *)((wxObject
*) (wxEvent
*) ((wxSysColourChangedEvent
*) x
));
26400 static void *_p_wxControlTo_p_wxObject(void *x
) {
26401 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxControl
*) x
));
26403 static void *_p_wxSetCursorEventTo_p_wxObject(void *x
) {
26404 return (void *)((wxObject
*) (wxEvent
*) ((wxSetCursorEvent
*) x
));
26406 static void *_p_wxClientDCTo_p_wxObject(void *x
) {
26407 return (void *)((wxObject
*) (wxDC
*) ((wxClientDC
*) x
));
26409 static void *_p_wxFSFileTo_p_wxObject(void *x
) {
26410 return (void *)((wxObject
*) ((wxFSFile
*) x
));
26412 static void *_p_wxMemoryDCTo_p_wxObject(void *x
) {
26413 return (void *)((wxObject
*) (wxDC
*) ((wxMemoryDC
*) x
));
26415 static void *_p_wxRegionTo_p_wxObject(void *x
) {
26416 return (void *)((wxObject
*) (wxGDIObject
*) ((wxRegion
*) x
));
26418 static void *_p_wxPySizerTo_p_wxObject(void *x
) {
26419 return (void *)((wxObject
*) (wxSizer
*) ((wxPySizer
*) x
));
26421 static void *_p_wxWindowDCTo_p_wxObject(void *x
) {
26422 return (void *)((wxObject
*) (wxDC
*) ((wxWindowDC
*) x
));
26424 static void *_p_wxGDIObjectTo_p_wxObject(void *x
) {
26425 return (void *)((wxObject
*) ((wxGDIObject
*) x
));
26427 static void *_p_wxEffectsTo_p_wxObject(void *x
) {
26428 return (void *)((wxObject
*) ((wxEffects
*) x
));
26430 static void *_p_wxPyEventTo_p_wxObject(void *x
) {
26431 return (void *)((wxObject
*) (wxEvent
*) ((wxPyEvent
*) x
));
26433 static void *_p_wxNotifyEventTo_p_wxObject(void *x
) {
26434 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxNotifyEvent
*) x
));
26436 static void *_p_wxPostScriptDCTo_p_wxObject(void *x
) {
26437 return (void *)((wxObject
*) (wxDC
*) ((wxPostScriptDC
*) x
));
26439 static void *_p_wxShowEventTo_p_wxObject(void *x
) {
26440 return (void *)((wxObject
*) (wxEvent
*) ((wxShowEvent
*) x
));
26442 static void *_p_wxMenuItemTo_p_wxObject(void *x
) {
26443 return (void *)((wxObject
*) ((wxMenuItem
*) x
));
26445 static void *_p_wxDateEventTo_p_wxObject(void *x
) {
26446 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxDateEvent
*) x
));
26448 static void *_p_wxIdleEventTo_p_wxObject(void *x
) {
26449 return (void *)((wxObject
*) (wxEvent
*) ((wxIdleEvent
*) x
));
26451 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x
) {
26452 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowCreateEvent
*) x
));
26454 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x
) {
26455 return (void *)((wxObject
*) (wxEvent
*) ((wxQueryNewPaletteEvent
*) x
));
26457 static void *_p_wxMaximizeEventTo_p_wxObject(void *x
) {
26458 return (void *)((wxObject
*) (wxEvent
*) ((wxMaximizeEvent
*) x
));
26460 static void *_p_wxIconizeEventTo_p_wxObject(void *x
) {
26461 return (void *)((wxObject
*) (wxEvent
*) ((wxIconizeEvent
*) x
));
26463 static void *_p_wxSizeEventTo_p_wxObject(void *x
) {
26464 return (void *)((wxObject
*) (wxEvent
*) ((wxSizeEvent
*) x
));
26466 static void *_p_wxMoveEventTo_p_wxObject(void *x
) {
26467 return (void *)((wxObject
*) (wxEvent
*) ((wxMoveEvent
*) x
));
26469 static void *_p_wxActivateEventTo_p_wxObject(void *x
) {
26470 return (void *)((wxObject
*) (wxEvent
*) ((wxActivateEvent
*) x
));
26472 static void *_p_wxPNMHandlerTo_p_wxObject(void *x
) {
26473 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNMHandler
*) x
));
26475 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x
) {
26476 return (void *)((wxObject
*) (wxImageHandler
*) ((wxJPEGHandler
*) x
));
26478 static void *_p_wxPCXHandlerTo_p_wxObject(void *x
) {
26479 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPCXHandler
*) x
));
26481 static void *_p_wxGIFHandlerTo_p_wxObject(void *x
) {
26482 return (void *)((wxObject
*) (wxImageHandler
*) ((wxGIFHandler
*) x
));
26484 static void *_p_wxPNGHandlerTo_p_wxObject(void *x
) {
26485 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNGHandler
*) x
));
26487 static void *_p_wxANIHandlerTo_p_wxObject(void *x
) {
26488 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*)(wxCURHandler
*) ((wxANIHandler
*) x
));
26490 static void *_p_wxCURHandlerTo_p_wxObject(void *x
) {
26491 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*) ((wxCURHandler
*) x
));
26493 static void *_p_wxICOHandlerTo_p_wxObject(void *x
) {
26494 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*) ((wxICOHandler
*) x
));
26496 static void *_p_wxBMPHandlerTo_p_wxObject(void *x
) {
26497 return (void *)((wxObject
*) (wxImageHandler
*) ((wxBMPHandler
*) x
));
26499 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x
) {
26500 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPyImageHandler
*) x
));
26502 static void *_p_wxImageHandlerTo_p_wxObject(void *x
) {
26503 return (void *)((wxObject
*) ((wxImageHandler
*) x
));
26505 static void *_p_wxXPMHandlerTo_p_wxObject(void *x
) {
26506 return (void *)((wxObject
*) (wxImageHandler
*) ((wxXPMHandler
*) x
));
26508 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x
) {
26509 return (void *)((wxObject
*) (wxImageHandler
*) ((wxTIFFHandler
*) x
));
26511 static void *_p_wxEvtHandlerTo_p_wxObject(void *x
) {
26512 return (void *)((wxObject
*) ((wxEvtHandler
*) x
));
26514 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x
) {
26515 return (void *)((wxObject
*) (wxDC
*)(wxMemoryDC
*)(wxBufferedDC
*) ((wxBufferedPaintDC
*) x
));
26517 static void *_p_wxPaintDCTo_p_wxObject(void *x
) {
26518 return (void *)((wxObject
*) (wxDC
*) ((wxPaintDC
*) x
));
26520 static void *_p_wxPrinterDCTo_p_wxObject(void *x
) {
26521 return (void *)((wxObject
*) (wxDC
*) ((wxPrinterDC
*) x
));
26523 static void *_p_wxScreenDCTo_p_wxObject(void *x
) {
26524 return (void *)((wxObject
*) (wxDC
*) ((wxScreenDC
*) x
));
26526 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x
) {
26527 return (void *)((wxObject
*) (wxSizer
*)(wxBoxSizer
*) ((wxStdDialogButtonSizer
*) x
));
26529 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x
) {
26530 return (void *)((wxObject
*) ((wxAcceleratorTable
*) x
));
26532 static void *_p_wxImageTo_p_wxObject(void *x
) {
26533 return (void *)((wxObject
*) ((wxImage
*) x
));
26535 static void *_p_wxScrollWinEventTo_p_wxObject(void *x
) {
26536 return (void *)((wxObject
*) (wxEvent
*) ((wxScrollWinEvent
*) x
));
26538 static void *_p_wxPaletteTo_p_wxObject(void *x
) {
26539 return (void *)((wxObject
*) (wxGDIObject
*) ((wxPalette
*) x
));
26541 static void *_p_wxBufferedDCTo_p_wxObject(void *x
) {
26542 return (void *)((wxObject
*) (wxDC
*)(wxMemoryDC
*) ((wxBufferedDC
*) x
));
26544 static void *_p_wxImageListTo_p_wxObject(void *x
) {
26545 return (void *)((wxObject
*) ((wxImageList
*) x
));
26547 static void *_p_wxCursorTo_p_wxObject(void *x
) {
26548 return (void *)((wxObject
*) (wxGDIObject
*) ((wxCursor
*) x
));
26550 static void *_p_wxEncodingConverterTo_p_wxObject(void *x
) {
26551 return (void *)((wxObject
*) ((wxEncodingConverter
*) x
));
26553 static void *_p_wxMirrorDCTo_p_wxObject(void *x
) {
26554 return (void *)((wxObject
*) (wxDC
*) ((wxMirrorDC
*) x
));
26556 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x
) {
26557 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowDestroyEvent
*) x
));
26559 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x
) {
26560 return (void *)((wxObject
*) (wxEvent
*) ((wxNavigationKeyEvent
*) x
));
26562 static void *_p_wxKeyEventTo_p_wxObject(void *x
) {
26563 return (void *)((wxObject
*) (wxEvent
*) ((wxKeyEvent
*) x
));
26565 static void *_p_wxWindowTo_p_wxObject(void *x
) {
26566 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxWindow
*) x
));
26568 static void *_p_wxMenuTo_p_wxObject(void *x
) {
26569 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxMenu
*) x
));
26571 static void *_p_wxMenuBarTo_p_wxObject(void *x
) {
26572 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxMenuBar
*) x
));
26574 static void *_p_wxMetaFileDCTo_p_wxObject(void *x
) {
26575 return (void *)((wxObject
*) (wxDC
*) ((wxMetaFileDC
*) x
));
26577 static void *_p_wxFileSystemTo_p_wxObject(void *x
) {
26578 return (void *)((wxObject
*) ((wxFileSystem
*) x
));
26580 static void *_p_wxBitmapTo_p_wxObject(void *x
) {
26581 return (void *)((wxObject
*) (wxGDIObject
*) ((wxBitmap
*) x
));
26583 static void *_p_wxMaskTo_p_wxObject(void *x
) {
26584 return (void *)((wxObject
*) ((wxMask
*) x
));
26586 static void *_p_wxContextMenuEventTo_p_wxObject(void *x
) {
26587 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxContextMenuEvent
*) x
));
26589 static void *_p_wxMenuEventTo_p_wxObject(void *x
) {
26590 return (void *)((wxObject
*) (wxEvent
*) ((wxMenuEvent
*) x
));
26592 static void *_p_wxPyAppTo_p_wxObject(void *x
) {
26593 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxPyApp
*) x
));
26595 static void *_p_wxCloseEventTo_p_wxObject(void *x
) {
26596 return (void *)((wxObject
*) (wxEvent
*) ((wxCloseEvent
*) x
));
26598 static void *_p_wxMouseEventTo_p_wxObject(void *x
) {
26599 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseEvent
*) x
));
26601 static void *_p_wxEraseEventTo_p_wxObject(void *x
) {
26602 return (void *)((wxObject
*) (wxEvent
*) ((wxEraseEvent
*) x
));
26604 static void *_p_wxPyCommandEventTo_p_wxObject(void *x
) {
26605 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxPyCommandEvent
*) x
));
26607 static void *_p_wxCommandEventTo_p_wxObject(void *x
) {
26608 return (void *)((wxObject
*) (wxEvent
*) ((wxCommandEvent
*) x
));
26610 static void *_p_wxDropFilesEventTo_p_wxObject(void *x
) {
26611 return (void *)((wxObject
*) (wxEvent
*) ((wxDropFilesEvent
*) x
));
26613 static void *_p_wxFocusEventTo_p_wxObject(void *x
) {
26614 return (void *)((wxObject
*) (wxEvent
*) ((wxFocusEvent
*) x
));
26616 static void *_p_wxChildFocusEventTo_p_wxObject(void *x
) {
26617 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxChildFocusEvent
*) x
));
26619 static void *_p_wxFontTo_p_wxObject(void *x
) {
26620 return (void *)((wxObject
*) (wxGDIObject
*) ((wxFont
*) x
));
26622 static void *_p_wxBrushTo_p_wxObject(void *x
) {
26623 return (void *)((wxObject
*) (wxGDIObject
*) ((wxBrush
*) x
));
26625 static void *_p_wxMetaFileTo_p_wxObject(void *x
) {
26626 return (void *)((wxObject
*) ((wxMetaFile
*) x
));
26628 static void *_p_wxControlWithItemsTo_p_wxObject(void *x
) {
26629 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*)(wxControl
*) ((wxControlWithItems
*) x
));
26631 static void *_p_wxColourTo_p_wxObject(void *x
) {
26632 return (void *)((wxObject
*) ((wxColour
*) x
));
26634 static void *_p_wxPyValidatorTo_p_wxObject(void *x
) {
26635 return (void *)((wxObject
*) (wxEvtHandler
*)(wxValidator
*) ((wxPyValidator
*) x
));
26637 static void *_p_wxValidatorTo_p_wxObject(void *x
) {
26638 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxValidator
*) x
));
26640 static void *_p_wxControlTo_p_wxWindow(void *x
) {
26641 return (void *)((wxWindow
*) ((wxControl
*) x
));
26643 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x
) {
26644 return (void *)((wxWindow
*) (wxControl
*) ((wxControlWithItems
*) x
));
26646 static void *_p_wxMenuBarTo_p_wxWindow(void *x
) {
26647 return (void *)((wxWindow
*) ((wxMenuBar
*) x
));
26649 static swig_type_info _swigt__p_char
= {"_p_char", "char *", 0, 0, (void*)0, 0};
26650 static swig_type_info _swigt__p_double
= {"_p_double", "double *", 0, 0, (void*)0, 0};
26651 static swig_type_info _swigt__p_form_ops_t
= {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
26652 static swig_type_info _swigt__p_int
= {"_p_int", "int *", 0, 0, (void*)0, 0};
26653 static swig_type_info _swigt__p_unsigned_char
= {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
26654 static swig_type_info _swigt__p_unsigned_int
= {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
26655 static swig_type_info _swigt__p_unsigned_long
= {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
26656 static swig_type_info _swigt__p_wxBitmap
= {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
26657 static swig_type_info _swigt__p_wxBrush
= {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
26658 static swig_type_info _swigt__p_wxBrushList
= {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
26659 static swig_type_info _swigt__p_wxBufferedDC
= {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
26660 static swig_type_info _swigt__p_wxBufferedPaintDC
= {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
26661 static swig_type_info _swigt__p_wxClientDC
= {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
26662 static swig_type_info _swigt__p_wxColour
= {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
26663 static swig_type_info _swigt__p_wxColourDatabase
= {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
26664 static swig_type_info _swigt__p_wxCursor
= {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
26665 static swig_type_info _swigt__p_wxDC
= {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
26666 static swig_type_info _swigt__p_wxDash
= {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
26667 static swig_type_info _swigt__p_wxDuplexMode
= {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
26668 static swig_type_info _swigt__p_wxEffects
= {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
26669 static swig_type_info _swigt__p_wxEncodingConverter
= {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
26670 static swig_type_info _swigt__p_wxFont
= {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
26671 static swig_type_info _swigt__p_wxFontList
= {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
26672 static swig_type_info _swigt__p_wxFontMapper
= {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
26673 static swig_type_info _swigt__p_wxGDIObjListBase
= {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
26674 static swig_type_info _swigt__p_wxGDIObject
= {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
26675 static swig_type_info _swigt__p_wxIcon
= {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
26676 static swig_type_info _swigt__p_wxIconBundle
= {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
26677 static swig_type_info _swigt__p_wxIconLocation
= {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
26678 static swig_type_info _swigt__p_wxImage
= {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
26679 static swig_type_info _swigt__p_wxImageList
= {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
26680 static swig_type_info _swigt__p_wxLanguageInfo
= {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
26681 static swig_type_info _swigt__p_wxLocale
= {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
26682 static swig_type_info _swigt__p_wxMask
= {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
26683 static swig_type_info _swigt__p_wxMemoryDC
= {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
26684 static swig_type_info _swigt__p_wxMetaFile
= {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
26685 static swig_type_info _swigt__p_wxMetaFileDC
= {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
26686 static swig_type_info _swigt__p_wxMirrorDC
= {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
26687 static swig_type_info _swigt__p_wxNativeEncodingInfo
= {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
26688 static swig_type_info _swigt__p_wxNativeFontInfo
= {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
26689 static swig_type_info _swigt__p_wxObject
= {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
26690 static swig_type_info _swigt__p_wxLayoutConstraints
= {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
26691 static swig_type_info _swigt__p_wxGBSizerItem
= {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
26692 static swig_type_info _swigt__p_wxSizerItem
= {"_p_wxSizerItem", 0, 0, 0, 0, 0};
26693 static swig_type_info _swigt__p_wxScrollEvent
= {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
26694 static swig_type_info _swigt__p_wxIndividualLayoutConstraint
= {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
26695 static swig_type_info _swigt__p_wxStaticBoxSizer
= {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
26696 static swig_type_info _swigt__p_wxBoxSizer
= {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
26697 static swig_type_info _swigt__p_wxSizer
= {"_p_wxSizer", 0, 0, 0, 0, 0};
26698 static swig_type_info _swigt__p_wxGridBagSizer
= {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
26699 static swig_type_info _swigt__p_wxUpdateUIEvent
= {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
26700 static swig_type_info _swigt__p_wxMenu
= {"_p_wxMenu", 0, 0, 0, 0, 0};
26701 static swig_type_info _swigt__p_wxEvent
= {"_p_wxEvent", 0, 0, 0, 0, 0};
26702 static swig_type_info _swigt__p_wxFlexGridSizer
= {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
26703 static swig_type_info _swigt__p_wxGridSizer
= {"_p_wxGridSizer", 0, 0, 0, 0, 0};
26704 static swig_type_info _swigt__p_wxInitDialogEvent
= {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
26705 static swig_type_info _swigt__p_wxPaintEvent
= {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
26706 static swig_type_info _swigt__p_wxNcPaintEvent
= {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
26707 static swig_type_info _swigt__p_wxPaletteChangedEvent
= {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
26708 static swig_type_info _swigt__p_wxDisplayChangedEvent
= {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
26709 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent
= {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
26710 static swig_type_info _swigt__p_wxSysColourChangedEvent
= {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
26711 static swig_type_info _swigt__p_wxControl
= {"_p_wxControl", 0, 0, 0, 0, 0};
26712 static swig_type_info _swigt__p_wxSetCursorEvent
= {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
26713 static swig_type_info _swigt__p_wxFSFile
= {"_p_wxFSFile", 0, 0, 0, 0, 0};
26714 static swig_type_info _swigt__p_wxPySizer
= {"_p_wxPySizer", 0, 0, 0, 0, 0};
26715 static swig_type_info _swigt__p_wxPyEvent
= {"_p_wxPyEvent", 0, 0, 0, 0, 0};
26716 static swig_type_info _swigt__p_wxNotifyEvent
= {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
26717 static swig_type_info _swigt__p_wxShowEvent
= {"_p_wxShowEvent", 0, 0, 0, 0, 0};
26718 static swig_type_info _swigt__p_wxMenuItem
= {"_p_wxMenuItem", 0, 0, 0, 0, 0};
26719 static swig_type_info _swigt__p_wxDateEvent
= {"_p_wxDateEvent", 0, 0, 0, 0, 0};
26720 static swig_type_info _swigt__p_wxIdleEvent
= {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
26721 static swig_type_info _swigt__p_wxWindowCreateEvent
= {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
26722 static swig_type_info _swigt__p_wxQueryNewPaletteEvent
= {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
26723 static swig_type_info _swigt__p_wxMaximizeEvent
= {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
26724 static swig_type_info _swigt__p_wxIconizeEvent
= {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
26725 static swig_type_info _swigt__p_wxSizeEvent
= {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
26726 static swig_type_info _swigt__p_wxMoveEvent
= {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
26727 static swig_type_info _swigt__p_wxActivateEvent
= {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
26728 static swig_type_info _swigt__p_wxGIFHandler
= {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
26729 static swig_type_info _swigt__p_wxPNGHandler
= {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
26730 static swig_type_info _swigt__p_wxANIHandler
= {"_p_wxANIHandler", 0, 0, 0, 0, 0};
26731 static swig_type_info _swigt__p_wxCURHandler
= {"_p_wxCURHandler", 0, 0, 0, 0, 0};
26732 static swig_type_info _swigt__p_wxICOHandler
= {"_p_wxICOHandler", 0, 0, 0, 0, 0};
26733 static swig_type_info _swigt__p_wxBMPHandler
= {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
26734 static swig_type_info _swigt__p_wxPyImageHandler
= {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
26735 static swig_type_info _swigt__p_wxImageHandler
= {"_p_wxImageHandler", 0, 0, 0, 0, 0};
26736 static swig_type_info _swigt__p_wxXPMHandler
= {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
26737 static swig_type_info _swigt__p_wxTIFFHandler
= {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
26738 static swig_type_info _swigt__p_wxEvtHandler
= {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
26739 static swig_type_info _swigt__p_wxPCXHandler
= {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
26740 static swig_type_info _swigt__p_wxJPEGHandler
= {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
26741 static swig_type_info _swigt__p_wxPNMHandler
= {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
26742 static swig_type_info _swigt__p_wxStdDialogButtonSizer
= {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
26743 static swig_type_info _swigt__p_wxAcceleratorTable
= {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
26744 static swig_type_info _swigt__p_wxScrollWinEvent
= {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
26745 static swig_type_info _swigt__p_wxWindowDestroyEvent
= {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
26746 static swig_type_info _swigt__p_wxNavigationKeyEvent
= {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
26747 static swig_type_info _swigt__p_wxKeyEvent
= {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
26748 static swig_type_info _swigt__p_wxMenuBar
= {"_p_wxMenuBar", 0, 0, 0, 0, 0};
26749 static swig_type_info _swigt__p_wxFileSystem
= {"_p_wxFileSystem", 0, 0, 0, 0, 0};
26750 static swig_type_info _swigt__p_wxContextMenuEvent
= {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
26751 static swig_type_info _swigt__p_wxMenuEvent
= {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
26752 static swig_type_info _swigt__p_wxPyApp
= {"_p_wxPyApp", 0, 0, 0, 0, 0};
26753 static swig_type_info _swigt__p_wxCloseEvent
= {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
26754 static swig_type_info _swigt__p_wxMouseEvent
= {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
26755 static swig_type_info _swigt__p_wxEraseEvent
= {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
26756 static swig_type_info _swigt__p_wxPyCommandEvent
= {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
26757 static swig_type_info _swigt__p_wxCommandEvent
= {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
26758 static swig_type_info _swigt__p_wxDropFilesEvent
= {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
26759 static swig_type_info _swigt__p_wxFocusEvent
= {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
26760 static swig_type_info _swigt__p_wxChildFocusEvent
= {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
26761 static swig_type_info _swigt__p_wxControlWithItems
= {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
26762 static swig_type_info _swigt__p_wxPyValidator
= {"_p_wxPyValidator", 0, 0, 0, 0, 0};
26763 static swig_type_info _swigt__p_wxValidator
= {"_p_wxValidator", 0, 0, 0, 0, 0};
26764 static swig_type_info _swigt__p_wxPaintDC
= {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
26765 static swig_type_info _swigt__p_wxPalette
= {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
26766 static swig_type_info _swigt__p_wxPaperSize
= {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
26767 static swig_type_info _swigt__p_wxPen
= {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
26768 static swig_type_info _swigt__p_wxPenList
= {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
26769 static swig_type_info _swigt__p_wxPoint
= {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
26770 static swig_type_info _swigt__p_wxPostScriptDC
= {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
26771 static swig_type_info _swigt__p_wxPrintData
= {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
26772 static swig_type_info _swigt__p_wxPrinterDC
= {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
26773 static swig_type_info _swigt__p_wxPyFontEnumerator
= {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
26774 static swig_type_info _swigt__p_wxRect
= {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
26775 static swig_type_info _swigt__p_wxRegion
= {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
26776 static swig_type_info _swigt__p_wxRegionIterator
= {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
26777 static swig_type_info _swigt__p_wxRendererNative
= {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
26778 static swig_type_info _swigt__p_wxRendererVersion
= {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
26779 static swig_type_info _swigt__p_wxScreenDC
= {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
26780 static swig_type_info _swigt__p_wxSize
= {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
26781 static swig_type_info _swigt__p_wxSplitterRenderParams
= {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
26782 static swig_type_info _swigt__p_wxStockGDI
= {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
26783 static swig_type_info _swigt__p_wxString
= {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
26784 static swig_type_info _swigt__p_wxWindow
= {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
26785 static swig_type_info _swigt__p_wxWindowDC
= {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
26787 static swig_type_info
*swig_type_initial
[] = {
26790 &_swigt__p_form_ops_t
,
26792 &_swigt__p_unsigned_char
,
26793 &_swigt__p_unsigned_int
,
26794 &_swigt__p_unsigned_long
,
26795 &_swigt__p_wxANIHandler
,
26796 &_swigt__p_wxAcceleratorTable
,
26797 &_swigt__p_wxActivateEvent
,
26798 &_swigt__p_wxBMPHandler
,
26799 &_swigt__p_wxBitmap
,
26800 &_swigt__p_wxBoxSizer
,
26801 &_swigt__p_wxBrush
,
26802 &_swigt__p_wxBrushList
,
26803 &_swigt__p_wxBufferedDC
,
26804 &_swigt__p_wxBufferedPaintDC
,
26805 &_swigt__p_wxCURHandler
,
26806 &_swigt__p_wxChildFocusEvent
,
26807 &_swigt__p_wxClientDC
,
26808 &_swigt__p_wxCloseEvent
,
26809 &_swigt__p_wxColour
,
26810 &_swigt__p_wxColourDatabase
,
26811 &_swigt__p_wxCommandEvent
,
26812 &_swigt__p_wxContextMenuEvent
,
26813 &_swigt__p_wxControl
,
26814 &_swigt__p_wxControlWithItems
,
26815 &_swigt__p_wxCursor
,
26818 &_swigt__p_wxDateEvent
,
26819 &_swigt__p_wxDisplayChangedEvent
,
26820 &_swigt__p_wxDropFilesEvent
,
26821 &_swigt__p_wxDuplexMode
,
26822 &_swigt__p_wxEffects
,
26823 &_swigt__p_wxEncodingConverter
,
26824 &_swigt__p_wxEraseEvent
,
26825 &_swigt__p_wxEvent
,
26826 &_swigt__p_wxEvtHandler
,
26827 &_swigt__p_wxFSFile
,
26828 &_swigt__p_wxFileSystem
,
26829 &_swigt__p_wxFlexGridSizer
,
26830 &_swigt__p_wxFocusEvent
,
26832 &_swigt__p_wxFontList
,
26833 &_swigt__p_wxFontMapper
,
26834 &_swigt__p_wxGBSizerItem
,
26835 &_swigt__p_wxGDIObjListBase
,
26836 &_swigt__p_wxGDIObject
,
26837 &_swigt__p_wxGIFHandler
,
26838 &_swigt__p_wxGridBagSizer
,
26839 &_swigt__p_wxGridSizer
,
26840 &_swigt__p_wxICOHandler
,
26842 &_swigt__p_wxIconBundle
,
26843 &_swigt__p_wxIconLocation
,
26844 &_swigt__p_wxIconizeEvent
,
26845 &_swigt__p_wxIdleEvent
,
26846 &_swigt__p_wxImage
,
26847 &_swigt__p_wxImageHandler
,
26848 &_swigt__p_wxImageList
,
26849 &_swigt__p_wxIndividualLayoutConstraint
,
26850 &_swigt__p_wxInitDialogEvent
,
26851 &_swigt__p_wxJPEGHandler
,
26852 &_swigt__p_wxKeyEvent
,
26853 &_swigt__p_wxLanguageInfo
,
26854 &_swigt__p_wxLayoutConstraints
,
26855 &_swigt__p_wxLocale
,
26857 &_swigt__p_wxMaximizeEvent
,
26858 &_swigt__p_wxMemoryDC
,
26860 &_swigt__p_wxMenuBar
,
26861 &_swigt__p_wxMenuEvent
,
26862 &_swigt__p_wxMenuItem
,
26863 &_swigt__p_wxMetaFile
,
26864 &_swigt__p_wxMetaFileDC
,
26865 &_swigt__p_wxMirrorDC
,
26866 &_swigt__p_wxMouseCaptureChangedEvent
,
26867 &_swigt__p_wxMouseEvent
,
26868 &_swigt__p_wxMoveEvent
,
26869 &_swigt__p_wxNativeEncodingInfo
,
26870 &_swigt__p_wxNativeFontInfo
,
26871 &_swigt__p_wxNavigationKeyEvent
,
26872 &_swigt__p_wxNcPaintEvent
,
26873 &_swigt__p_wxNotifyEvent
,
26874 &_swigt__p_wxObject
,
26875 &_swigt__p_wxPCXHandler
,
26876 &_swigt__p_wxPNGHandler
,
26877 &_swigt__p_wxPNMHandler
,
26878 &_swigt__p_wxPaintDC
,
26879 &_swigt__p_wxPaintEvent
,
26880 &_swigt__p_wxPalette
,
26881 &_swigt__p_wxPaletteChangedEvent
,
26882 &_swigt__p_wxPaperSize
,
26884 &_swigt__p_wxPenList
,
26885 &_swigt__p_wxPoint
,
26886 &_swigt__p_wxPostScriptDC
,
26887 &_swigt__p_wxPrintData
,
26888 &_swigt__p_wxPrinterDC
,
26889 &_swigt__p_wxPyApp
,
26890 &_swigt__p_wxPyCommandEvent
,
26891 &_swigt__p_wxPyEvent
,
26892 &_swigt__p_wxPyFontEnumerator
,
26893 &_swigt__p_wxPyImageHandler
,
26894 &_swigt__p_wxPySizer
,
26895 &_swigt__p_wxPyValidator
,
26896 &_swigt__p_wxQueryNewPaletteEvent
,
26898 &_swigt__p_wxRegion
,
26899 &_swigt__p_wxRegionIterator
,
26900 &_swigt__p_wxRendererNative
,
26901 &_swigt__p_wxRendererVersion
,
26902 &_swigt__p_wxScreenDC
,
26903 &_swigt__p_wxScrollEvent
,
26904 &_swigt__p_wxScrollWinEvent
,
26905 &_swigt__p_wxSetCursorEvent
,
26906 &_swigt__p_wxShowEvent
,
26908 &_swigt__p_wxSizeEvent
,
26909 &_swigt__p_wxSizer
,
26910 &_swigt__p_wxSizerItem
,
26911 &_swigt__p_wxSplitterRenderParams
,
26912 &_swigt__p_wxStaticBoxSizer
,
26913 &_swigt__p_wxStdDialogButtonSizer
,
26914 &_swigt__p_wxStockGDI
,
26915 &_swigt__p_wxString
,
26916 &_swigt__p_wxSysColourChangedEvent
,
26917 &_swigt__p_wxTIFFHandler
,
26918 &_swigt__p_wxUpdateUIEvent
,
26919 &_swigt__p_wxValidator
,
26920 &_swigt__p_wxWindow
,
26921 &_swigt__p_wxWindowCreateEvent
,
26922 &_swigt__p_wxWindowDC
,
26923 &_swigt__p_wxWindowDestroyEvent
,
26924 &_swigt__p_wxXPMHandler
,
26927 static swig_cast_info _swigc__p_char
[] = { {&_swigt__p_char
, 0, 0, 0},{0, 0, 0, 0}};
26928 static swig_cast_info _swigc__p_double
[] = { {&_swigt__p_double
, 0, 0, 0},{0, 0, 0, 0}};
26929 static swig_cast_info _swigc__p_form_ops_t
[] = { {&_swigt__p_form_ops_t
, 0, 0, 0},{0, 0, 0, 0}};
26930 static swig_cast_info _swigc__p_int
[] = { {&_swigt__p_int
, 0, 0, 0},{0, 0, 0, 0}};
26931 static swig_cast_info _swigc__p_unsigned_char
[] = { {&_swigt__p_unsigned_char
, 0, 0, 0},{0, 0, 0, 0}};
26932 static swig_cast_info _swigc__p_unsigned_int
[] = { {&_swigt__p_unsigned_int
, 0, 0, 0},{0, 0, 0, 0}};
26933 static swig_cast_info _swigc__p_unsigned_long
[] = { {&_swigt__p_unsigned_long
, 0, 0, 0},{0, 0, 0, 0}};
26934 static swig_cast_info _swigc__p_wxBitmap
[] = { {&_swigt__p_wxBitmap
, 0, 0, 0},{0, 0, 0, 0}};
26935 static swig_cast_info _swigc__p_wxBrush
[] = { {&_swigt__p_wxBrush
, 0, 0, 0},{0, 0, 0, 0}};
26936 static swig_cast_info _swigc__p_wxBrushList
[] = { {&_swigt__p_wxBrushList
, 0, 0, 0},{0, 0, 0, 0}};
26937 static swig_cast_info _swigc__p_wxBufferedDC
[] = { {&_swigt__p_wxBufferedDC
, 0, 0, 0}, {&_swigt__p_wxBufferedPaintDC
, _p_wxBufferedPaintDCTo_p_wxBufferedDC
, 0, 0},{0, 0, 0, 0}};
26938 static swig_cast_info _swigc__p_wxBufferedPaintDC
[] = { {&_swigt__p_wxBufferedPaintDC
, 0, 0, 0},{0, 0, 0, 0}};
26939 static swig_cast_info _swigc__p_wxClientDC
[] = { {&_swigt__p_wxClientDC
, 0, 0, 0},{0, 0, 0, 0}};
26940 static swig_cast_info _swigc__p_wxColour
[] = { {&_swigt__p_wxColour
, 0, 0, 0},{0, 0, 0, 0}};
26941 static swig_cast_info _swigc__p_wxColourDatabase
[] = { {&_swigt__p_wxColourDatabase
, 0, 0, 0},{0, 0, 0, 0}};
26942 static swig_cast_info _swigc__p_wxCursor
[] = { {&_swigt__p_wxCursor
, 0, 0, 0},{0, 0, 0, 0}};
26943 static swig_cast_info _swigc__p_wxDC
[] = { {&_swigt__p_wxBufferedDC
, _p_wxBufferedDCTo_p_wxDC
, 0, 0}, {&_swigt__p_wxScreenDC
, _p_wxScreenDCTo_p_wxDC
, 0, 0}, {&_swigt__p_wxMirrorDC
, _p_wxMirrorDCTo_p_wxDC
, 0, 0}, {&_swigt__p_wxMemoryDC
, _p_wxMemoryDCTo_p_wxDC
, 0, 0}, {&_swigt__p_wxWindowDC
, _p_wxWindowDCTo_p_wxDC
, 0, 0}, {&_swigt__p_wxDC
, 0, 0, 0}, {&_swigt__p_wxMetaFileDC
, _p_wxMetaFileDCTo_p_wxDC
, 0, 0}, {&_swigt__p_wxBufferedPaintDC
, _p_wxBufferedPaintDCTo_p_wxDC
, 0, 0}, {&_swigt__p_wxClientDC
, _p_wxClientDCTo_p_wxDC
, 0, 0}, {&_swigt__p_wxPaintDC
, _p_wxPaintDCTo_p_wxDC
, 0, 0}, {&_swigt__p_wxPostScriptDC
, _p_wxPostScriptDCTo_p_wxDC
, 0, 0}, {&_swigt__p_wxPrinterDC
, _p_wxPrinterDCTo_p_wxDC
, 0, 0},{0, 0, 0, 0}};
26944 static swig_cast_info _swigc__p_wxDash
[] = { {&_swigt__p_wxDash
, 0, 0, 0},{0, 0, 0, 0}};
26945 static swig_cast_info _swigc__p_wxDuplexMode
[] = { {&_swigt__p_wxDuplexMode
, 0, 0, 0},{0, 0, 0, 0}};
26946 static swig_cast_info _swigc__p_wxEffects
[] = { {&_swigt__p_wxEffects
, 0, 0, 0},{0, 0, 0, 0}};
26947 static swig_cast_info _swigc__p_wxEncodingConverter
[] = { {&_swigt__p_wxEncodingConverter
, 0, 0, 0},{0, 0, 0, 0}};
26948 static swig_cast_info _swigc__p_wxFont
[] = { {&_swigt__p_wxFont
, 0, 0, 0},{0, 0, 0, 0}};
26949 static swig_cast_info _swigc__p_wxFontList
[] = { {&_swigt__p_wxFontList
, 0, 0, 0},{0, 0, 0, 0}};
26950 static swig_cast_info _swigc__p_wxFontMapper
[] = { {&_swigt__p_wxFontMapper
, 0, 0, 0},{0, 0, 0, 0}};
26951 static swig_cast_info _swigc__p_wxGDIObjListBase
[] = { {&_swigt__p_wxGDIObjListBase
, 0, 0, 0}, {&_swigt__p_wxBrushList
, _p_wxBrushListTo_p_wxGDIObjListBase
, 0, 0}, {&_swigt__p_wxFontList
, _p_wxFontListTo_p_wxGDIObjListBase
, 0, 0}, {&_swigt__p_wxPenList
, _p_wxPenListTo_p_wxGDIObjListBase
, 0, 0},{0, 0, 0, 0}};
26952 static swig_cast_info _swigc__p_wxGDIObject
[] = { {&_swigt__p_wxIcon
, _p_wxIconTo_p_wxGDIObject
, 0, 0}, {&_swigt__p_wxPen
, _p_wxPenTo_p_wxGDIObject
, 0, 0}, {&_swigt__p_wxFont
, _p_wxFontTo_p_wxGDIObject
, 0, 0}, {&_swigt__p_wxPalette
, _p_wxPaletteTo_p_wxGDIObject
, 0, 0}, {&_swigt__p_wxGDIObject
, 0, 0, 0}, {&_swigt__p_wxCursor
, _p_wxCursorTo_p_wxGDIObject
, 0, 0}, {&_swigt__p_wxBitmap
, _p_wxBitmapTo_p_wxGDIObject
, 0, 0}, {&_swigt__p_wxRegion
, _p_wxRegionTo_p_wxGDIObject
, 0, 0}, {&_swigt__p_wxBrush
, _p_wxBrushTo_p_wxGDIObject
, 0, 0},{0, 0, 0, 0}};
26953 static swig_cast_info _swigc__p_wxIcon
[] = { {&_swigt__p_wxIcon
, 0, 0, 0},{0, 0, 0, 0}};
26954 static swig_cast_info _swigc__p_wxIconBundle
[] = { {&_swigt__p_wxIconBundle
, 0, 0, 0},{0, 0, 0, 0}};
26955 static swig_cast_info _swigc__p_wxIconLocation
[] = { {&_swigt__p_wxIconLocation
, 0, 0, 0},{0, 0, 0, 0}};
26956 static swig_cast_info _swigc__p_wxImage
[] = { {&_swigt__p_wxImage
, 0, 0, 0},{0, 0, 0, 0}};
26957 static swig_cast_info _swigc__p_wxImageList
[] = { {&_swigt__p_wxImageList
, 0, 0, 0},{0, 0, 0, 0}};
26958 static swig_cast_info _swigc__p_wxLanguageInfo
[] = { {&_swigt__p_wxLanguageInfo
, 0, 0, 0},{0, 0, 0, 0}};
26959 static swig_cast_info _swigc__p_wxLocale
[] = { {&_swigt__p_wxLocale
, 0, 0, 0},{0, 0, 0, 0}};
26960 static swig_cast_info _swigc__p_wxMask
[] = { {&_swigt__p_wxMask
, 0, 0, 0},{0, 0, 0, 0}};
26961 static swig_cast_info _swigc__p_wxMemoryDC
[] = { {&_swigt__p_wxBufferedDC
, _p_wxBufferedDCTo_p_wxMemoryDC
, 0, 0}, {&_swigt__p_wxMemoryDC
, 0, 0, 0}, {&_swigt__p_wxBufferedPaintDC
, _p_wxBufferedPaintDCTo_p_wxMemoryDC
, 0, 0},{0, 0, 0, 0}};
26962 static swig_cast_info _swigc__p_wxMetaFile
[] = { {&_swigt__p_wxMetaFile
, 0, 0, 0},{0, 0, 0, 0}};
26963 static swig_cast_info _swigc__p_wxMetaFileDC
[] = { {&_swigt__p_wxMetaFileDC
, 0, 0, 0},{0, 0, 0, 0}};
26964 static swig_cast_info _swigc__p_wxMirrorDC
[] = { {&_swigt__p_wxMirrorDC
, 0, 0, 0},{0, 0, 0, 0}};
26965 static swig_cast_info _swigc__p_wxNativeEncodingInfo
[] = { {&_swigt__p_wxNativeEncodingInfo
, 0, 0, 0},{0, 0, 0, 0}};
26966 static swig_cast_info _swigc__p_wxNativeFontInfo
[] = { {&_swigt__p_wxNativeFontInfo
, 0, 0, 0},{0, 0, 0, 0}};
26967 static swig_cast_info _swigc__p_wxLayoutConstraints
[] = {{&_swigt__p_wxLayoutConstraints
, 0, 0, 0},{0, 0, 0, 0}};
26968 static swig_cast_info _swigc__p_wxGBSizerItem
[] = {{&_swigt__p_wxGBSizerItem
, 0, 0, 0},{0, 0, 0, 0}};
26969 static swig_cast_info _swigc__p_wxSizerItem
[] = {{&_swigt__p_wxSizerItem
, 0, 0, 0},{0, 0, 0, 0}};
26970 static swig_cast_info _swigc__p_wxScrollEvent
[] = {{&_swigt__p_wxScrollEvent
, 0, 0, 0},{0, 0, 0, 0}};
26971 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint
[] = {{&_swigt__p_wxIndividualLayoutConstraint
, 0, 0, 0},{0, 0, 0, 0}};
26972 static swig_cast_info _swigc__p_wxStaticBoxSizer
[] = {{&_swigt__p_wxStaticBoxSizer
, 0, 0, 0},{0, 0, 0, 0}};
26973 static swig_cast_info _swigc__p_wxBoxSizer
[] = {{&_swigt__p_wxBoxSizer
, 0, 0, 0},{0, 0, 0, 0}};
26974 static swig_cast_info _swigc__p_wxSizer
[] = {{&_swigt__p_wxSizer
, 0, 0, 0},{0, 0, 0, 0}};
26975 static swig_cast_info _swigc__p_wxGridBagSizer
[] = {{&_swigt__p_wxGridBagSizer
, 0, 0, 0},{0, 0, 0, 0}};
26976 static swig_cast_info _swigc__p_wxUpdateUIEvent
[] = {{&_swigt__p_wxUpdateUIEvent
, 0, 0, 0},{0, 0, 0, 0}};
26977 static swig_cast_info _swigc__p_wxMenu
[] = {{&_swigt__p_wxMenu
, 0, 0, 0},{0, 0, 0, 0}};
26978 static swig_cast_info _swigc__p_wxEvent
[] = {{&_swigt__p_wxEvent
, 0, 0, 0},{0, 0, 0, 0}};
26979 static swig_cast_info _swigc__p_wxFlexGridSizer
[] = {{&_swigt__p_wxFlexGridSizer
, 0, 0, 0},{0, 0, 0, 0}};
26980 static swig_cast_info _swigc__p_wxGridSizer
[] = {{&_swigt__p_wxGridSizer
, 0, 0, 0},{0, 0, 0, 0}};
26981 static swig_cast_info _swigc__p_wxInitDialogEvent
[] = {{&_swigt__p_wxInitDialogEvent
, 0, 0, 0},{0, 0, 0, 0}};
26982 static swig_cast_info _swigc__p_wxPaintEvent
[] = {{&_swigt__p_wxPaintEvent
, 0, 0, 0},{0, 0, 0, 0}};
26983 static swig_cast_info _swigc__p_wxNcPaintEvent
[] = {{&_swigt__p_wxNcPaintEvent
, 0, 0, 0},{0, 0, 0, 0}};
26984 static swig_cast_info _swigc__p_wxPaletteChangedEvent
[] = {{&_swigt__p_wxPaletteChangedEvent
, 0, 0, 0},{0, 0, 0, 0}};
26985 static swig_cast_info _swigc__p_wxDisplayChangedEvent
[] = {{&_swigt__p_wxDisplayChangedEvent
, 0, 0, 0},{0, 0, 0, 0}};
26986 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent
[] = {{&_swigt__p_wxMouseCaptureChangedEvent
, 0, 0, 0},{0, 0, 0, 0}};
26987 static swig_cast_info _swigc__p_wxSysColourChangedEvent
[] = {{&_swigt__p_wxSysColourChangedEvent
, 0, 0, 0},{0, 0, 0, 0}};
26988 static swig_cast_info _swigc__p_wxControl
[] = {{&_swigt__p_wxControl
, 0, 0, 0},{0, 0, 0, 0}};
26989 static swig_cast_info _swigc__p_wxSetCursorEvent
[] = {{&_swigt__p_wxSetCursorEvent
, 0, 0, 0},{0, 0, 0, 0}};
26990 static swig_cast_info _swigc__p_wxFSFile
[] = {{&_swigt__p_wxFSFile
, 0, 0, 0},{0, 0, 0, 0}};
26991 static swig_cast_info _swigc__p_wxPySizer
[] = {{&_swigt__p_wxPySizer
, 0, 0, 0},{0, 0, 0, 0}};
26992 static swig_cast_info _swigc__p_wxPyEvent
[] = {{&_swigt__p_wxPyEvent
, 0, 0, 0},{0, 0, 0, 0}};
26993 static swig_cast_info _swigc__p_wxNotifyEvent
[] = {{&_swigt__p_wxNotifyEvent
, 0, 0, 0},{0, 0, 0, 0}};
26994 static swig_cast_info _swigc__p_wxShowEvent
[] = {{&_swigt__p_wxShowEvent
, 0, 0, 0},{0, 0, 0, 0}};
26995 static swig_cast_info _swigc__p_wxMenuItem
[] = {{&_swigt__p_wxMenuItem
, 0, 0, 0},{0, 0, 0, 0}};
26996 static swig_cast_info _swigc__p_wxDateEvent
[] = {{&_swigt__p_wxDateEvent
, 0, 0, 0},{0, 0, 0, 0}};
26997 static swig_cast_info _swigc__p_wxIdleEvent
[] = {{&_swigt__p_wxIdleEvent
, 0, 0, 0},{0, 0, 0, 0}};
26998 static swig_cast_info _swigc__p_wxWindowCreateEvent
[] = {{&_swigt__p_wxWindowCreateEvent
, 0, 0, 0},{0, 0, 0, 0}};
26999 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent
[] = {{&_swigt__p_wxQueryNewPaletteEvent
, 0, 0, 0},{0, 0, 0, 0}};
27000 static swig_cast_info _swigc__p_wxMaximizeEvent
[] = {{&_swigt__p_wxMaximizeEvent
, 0, 0, 0},{0, 0, 0, 0}};
27001 static swig_cast_info _swigc__p_wxIconizeEvent
[] = {{&_swigt__p_wxIconizeEvent
, 0, 0, 0},{0, 0, 0, 0}};
27002 static swig_cast_info _swigc__p_wxSizeEvent
[] = {{&_swigt__p_wxSizeEvent
, 0, 0, 0},{0, 0, 0, 0}};
27003 static swig_cast_info _swigc__p_wxMoveEvent
[] = {{&_swigt__p_wxMoveEvent
, 0, 0, 0},{0, 0, 0, 0}};
27004 static swig_cast_info _swigc__p_wxActivateEvent
[] = {{&_swigt__p_wxActivateEvent
, 0, 0, 0},{0, 0, 0, 0}};
27005 static swig_cast_info _swigc__p_wxGIFHandler
[] = {{&_swigt__p_wxGIFHandler
, 0, 0, 0},{0, 0, 0, 0}};
27006 static swig_cast_info _swigc__p_wxPNGHandler
[] = {{&_swigt__p_wxPNGHandler
, 0, 0, 0},{0, 0, 0, 0}};
27007 static swig_cast_info _swigc__p_wxANIHandler
[] = {{&_swigt__p_wxANIHandler
, 0, 0, 0},{0, 0, 0, 0}};
27008 static swig_cast_info _swigc__p_wxCURHandler
[] = {{&_swigt__p_wxCURHandler
, 0, 0, 0},{0, 0, 0, 0}};
27009 static swig_cast_info _swigc__p_wxICOHandler
[] = {{&_swigt__p_wxICOHandler
, 0, 0, 0},{0, 0, 0, 0}};
27010 static swig_cast_info _swigc__p_wxBMPHandler
[] = {{&_swigt__p_wxBMPHandler
, 0, 0, 0},{0, 0, 0, 0}};
27011 static swig_cast_info _swigc__p_wxPyImageHandler
[] = {{&_swigt__p_wxPyImageHandler
, 0, 0, 0},{0, 0, 0, 0}};
27012 static swig_cast_info _swigc__p_wxImageHandler
[] = {{&_swigt__p_wxImageHandler
, 0, 0, 0},{0, 0, 0, 0}};
27013 static swig_cast_info _swigc__p_wxXPMHandler
[] = {{&_swigt__p_wxXPMHandler
, 0, 0, 0},{0, 0, 0, 0}};
27014 static swig_cast_info _swigc__p_wxTIFFHandler
[] = {{&_swigt__p_wxTIFFHandler
, 0, 0, 0},{0, 0, 0, 0}};
27015 static swig_cast_info _swigc__p_wxEvtHandler
[] = {{&_swigt__p_wxEvtHandler
, 0, 0, 0},{0, 0, 0, 0}};
27016 static swig_cast_info _swigc__p_wxPCXHandler
[] = {{&_swigt__p_wxPCXHandler
, 0, 0, 0},{0, 0, 0, 0}};
27017 static swig_cast_info _swigc__p_wxJPEGHandler
[] = {{&_swigt__p_wxJPEGHandler
, 0, 0, 0},{0, 0, 0, 0}};
27018 static swig_cast_info _swigc__p_wxPNMHandler
[] = {{&_swigt__p_wxPNMHandler
, 0, 0, 0},{0, 0, 0, 0}};
27019 static swig_cast_info _swigc__p_wxStdDialogButtonSizer
[] = {{&_swigt__p_wxStdDialogButtonSizer
, 0, 0, 0},{0, 0, 0, 0}};
27020 static swig_cast_info _swigc__p_wxAcceleratorTable
[] = {{&_swigt__p_wxAcceleratorTable
, 0, 0, 0},{0, 0, 0, 0}};
27021 static swig_cast_info _swigc__p_wxScrollWinEvent
[] = {{&_swigt__p_wxScrollWinEvent
, 0, 0, 0},{0, 0, 0, 0}};
27022 static swig_cast_info _swigc__p_wxWindowDestroyEvent
[] = {{&_swigt__p_wxWindowDestroyEvent
, 0, 0, 0},{0, 0, 0, 0}};
27023 static swig_cast_info _swigc__p_wxNavigationKeyEvent
[] = {{&_swigt__p_wxNavigationKeyEvent
, 0, 0, 0},{0, 0, 0, 0}};
27024 static swig_cast_info _swigc__p_wxKeyEvent
[] = {{&_swigt__p_wxKeyEvent
, 0, 0, 0},{0, 0, 0, 0}};
27025 static swig_cast_info _swigc__p_wxMenuBar
[] = {{&_swigt__p_wxMenuBar
, 0, 0, 0},{0, 0, 0, 0}};
27026 static swig_cast_info _swigc__p_wxFileSystem
[] = {{&_swigt__p_wxFileSystem
, 0, 0, 0},{0, 0, 0, 0}};
27027 static swig_cast_info _swigc__p_wxContextMenuEvent
[] = {{&_swigt__p_wxContextMenuEvent
, 0, 0, 0},{0, 0, 0, 0}};
27028 static swig_cast_info _swigc__p_wxMenuEvent
[] = {{&_swigt__p_wxMenuEvent
, 0, 0, 0},{0, 0, 0, 0}};
27029 static swig_cast_info _swigc__p_wxPyApp
[] = {{&_swigt__p_wxPyApp
, 0, 0, 0},{0, 0, 0, 0}};
27030 static swig_cast_info _swigc__p_wxCloseEvent
[] = {{&_swigt__p_wxCloseEvent
, 0, 0, 0},{0, 0, 0, 0}};
27031 static swig_cast_info _swigc__p_wxMouseEvent
[] = {{&_swigt__p_wxMouseEvent
, 0, 0, 0},{0, 0, 0, 0}};
27032 static swig_cast_info _swigc__p_wxEraseEvent
[] = {{&_swigt__p_wxEraseEvent
, 0, 0, 0},{0, 0, 0, 0}};
27033 static swig_cast_info _swigc__p_wxPyCommandEvent
[] = {{&_swigt__p_wxPyCommandEvent
, 0, 0, 0},{0, 0, 0, 0}};
27034 static swig_cast_info _swigc__p_wxCommandEvent
[] = {{&_swigt__p_wxCommandEvent
, 0, 0, 0},{0, 0, 0, 0}};
27035 static swig_cast_info _swigc__p_wxDropFilesEvent
[] = {{&_swigt__p_wxDropFilesEvent
, 0, 0, 0},{0, 0, 0, 0}};
27036 static swig_cast_info _swigc__p_wxFocusEvent
[] = {{&_swigt__p_wxFocusEvent
, 0, 0, 0},{0, 0, 0, 0}};
27037 static swig_cast_info _swigc__p_wxChildFocusEvent
[] = {{&_swigt__p_wxChildFocusEvent
, 0, 0, 0},{0, 0, 0, 0}};
27038 static swig_cast_info _swigc__p_wxControlWithItems
[] = {{&_swigt__p_wxControlWithItems
, 0, 0, 0},{0, 0, 0, 0}};
27039 static swig_cast_info _swigc__p_wxPyValidator
[] = {{&_swigt__p_wxPyValidator
, 0, 0, 0},{0, 0, 0, 0}};
27040 static swig_cast_info _swigc__p_wxValidator
[] = {{&_swigt__p_wxValidator
, 0, 0, 0},{0, 0, 0, 0}};
27041 static swig_cast_info _swigc__p_wxObject
[] = { {&_swigt__p_wxLayoutConstraints
, _p_wxLayoutConstraintsTo_p_wxObject
, 0, 0}, {&_swigt__p_wxRegionIterator
, _p_wxRegionIteratorTo_p_wxObject
, 0, 0}, {&_swigt__p_wxPen
, _p_wxPenTo_p_wxObject
, 0, 0}, {&_swigt__p_wxGBSizerItem
, _p_wxGBSizerItemTo_p_wxObject
, 0, 0}, {&_swigt__p_wxSizerItem
, _p_wxSizerItemTo_p_wxObject
, 0, 0}, {&_swigt__p_wxScrollEvent
, _p_wxScrollEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint
, _p_wxIndividualLayoutConstraintTo_p_wxObject
, 0, 0}, {&_swigt__p_wxStaticBoxSizer
, _p_wxStaticBoxSizerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxBoxSizer
, _p_wxBoxSizerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxSizer
, _p_wxSizerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxGridBagSizer
, _p_wxGridBagSizerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxUpdateUIEvent
, _p_wxUpdateUIEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxMenu
, _p_wxMenuTo_p_wxObject
, 0, 0}, {&_swigt__p_wxEvent
, _p_wxEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxFlexGridSizer
, _p_wxFlexGridSizerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxGridSizer
, _p_wxGridSizerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxInitDialogEvent
, _p_wxInitDialogEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxMask
, _p_wxMaskTo_p_wxObject
, 0, 0}, {&_swigt__p_wxPaintEvent
, _p_wxPaintEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxNcPaintEvent
, _p_wxNcPaintEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxPaletteChangedEvent
, _p_wxPaletteChangedEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxDisplayChangedEvent
, _p_wxDisplayChangedEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent
, _p_wxMouseCaptureChangedEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxSysColourChangedEvent
, _p_wxSysColourChangedEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxControl
, _p_wxControlTo_p_wxObject
, 0, 0}, {&_swigt__p_wxFont
, _p_wxFontTo_p_wxObject
, 0, 0}, {&_swigt__p_wxSetCursorEvent
, _p_wxSetCursorEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxClientDC
, _p_wxClientDCTo_p_wxObject
, 0, 0}, {&_swigt__p_wxFSFile
, _p_wxFSFileTo_p_wxObject
, 0, 0}, {&_swigt__p_wxMemoryDC
, _p_wxMemoryDCTo_p_wxObject
, 0, 0}, {&_swigt__p_wxRegion
, _p_wxRegionTo_p_wxObject
, 0, 0}, {&_swigt__p_wxPySizer
, _p_wxPySizerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxDC
, _p_wxDCTo_p_wxObject
, 0, 0}, {&_swigt__p_wxIcon
, _p_wxIconTo_p_wxObject
, 0, 0}, {&_swigt__p_wxWindowDC
, _p_wxWindowDCTo_p_wxObject
, 0, 0}, {&_swigt__p_wxGDIObject
, _p_wxGDIObjectTo_p_wxObject
, 0, 0}, {&_swigt__p_wxEffects
, _p_wxEffectsTo_p_wxObject
, 0, 0}, {&_swigt__p_wxPyEvent
, _p_wxPyEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxNotifyEvent
, _p_wxNotifyEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxPostScriptDC
, _p_wxPostScriptDCTo_p_wxObject
, 0, 0}, {&_swigt__p_wxShowEvent
, _p_wxShowEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxMenuItem
, _p_wxMenuItemTo_p_wxObject
, 0, 0}, {&_swigt__p_wxDateEvent
, _p_wxDateEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxIdleEvent
, _p_wxIdleEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxWindowCreateEvent
, _p_wxWindowCreateEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent
, _p_wxQueryNewPaletteEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxMaximizeEvent
, _p_wxMaximizeEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxIconizeEvent
, _p_wxIconizeEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxSizeEvent
, _p_wxSizeEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxMoveEvent
, _p_wxMoveEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxActivateEvent
, _p_wxActivateEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxGIFHandler
, _p_wxGIFHandlerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxPNGHandler
, _p_wxPNGHandlerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxANIHandler
, _p_wxANIHandlerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxCURHandler
, _p_wxCURHandlerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxICOHandler
, _p_wxICOHandlerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxBMPHandler
, _p_wxBMPHandlerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxPyImageHandler
, _p_wxPyImageHandlerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxImageHandler
, _p_wxImageHandlerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxXPMHandler
, _p_wxXPMHandlerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxTIFFHandler
, _p_wxTIFFHandlerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxEvtHandler
, _p_wxEvtHandlerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxPCXHandler
, _p_wxPCXHandlerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxJPEGHandler
, _p_wxJPEGHandlerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxPNMHandler
, _p_wxPNMHandlerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxPaintDC
, _p_wxPaintDCTo_p_wxObject
, 0, 0}, {&_swigt__p_wxBufferedPaintDC
, _p_wxBufferedPaintDCTo_p_wxObject
, 0, 0}, {&_swigt__p_wxPrinterDC
, _p_wxPrinterDCTo_p_wxObject
, 0, 0}, {&_swigt__p_wxScreenDC
, _p_wxScreenDCTo_p_wxObject
, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer
, _p_wxStdDialogButtonSizerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxAcceleratorTable
, _p_wxAcceleratorTableTo_p_wxObject
, 0, 0}, {&_swigt__p_wxImage
, _p_wxImageTo_p_wxObject
, 0, 0}, {&_swigt__p_wxScrollWinEvent
, _p_wxScrollWinEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxBufferedDC
, _p_wxBufferedDCTo_p_wxObject
, 0, 0}, {&_swigt__p_wxPalette
, _p_wxPaletteTo_p_wxObject
, 0, 0}, {&_swigt__p_wxImageList
, _p_wxImageListTo_p_wxObject
, 0, 0}, {&_swigt__p_wxCursor
, _p_wxCursorTo_p_wxObject
, 0, 0}, {&_swigt__p_wxObject
, 0, 0, 0}, {&_swigt__p_wxMirrorDC
, _p_wxMirrorDCTo_p_wxObject
, 0, 0}, {&_swigt__p_wxEncodingConverter
, _p_wxEncodingConverterTo_p_wxObject
, 0, 0}, {&_swigt__p_wxWindowDestroyEvent
, _p_wxWindowDestroyEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxNavigationKeyEvent
, _p_wxNavigationKeyEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxKeyEvent
, _p_wxKeyEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxMetaFileDC
, _p_wxMetaFileDCTo_p_wxObject
, 0, 0}, {&_swigt__p_wxWindow
, _p_wxWindowTo_p_wxObject
, 0, 0}, {&_swigt__p_wxMenuBar
, _p_wxMenuBarTo_p_wxObject
, 0, 0}, {&_swigt__p_wxFileSystem
, _p_wxFileSystemTo_p_wxObject
, 0, 0}, {&_swigt__p_wxBitmap
, _p_wxBitmapTo_p_wxObject
, 0, 0}, {&_swigt__p_wxContextMenuEvent
, _p_wxContextMenuEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxMenuEvent
, _p_wxMenuEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxPyApp
, _p_wxPyAppTo_p_wxObject
, 0, 0}, {&_swigt__p_wxCloseEvent
, _p_wxCloseEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxMouseEvent
, _p_wxMouseEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxEraseEvent
, _p_wxEraseEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxPyCommandEvent
, _p_wxPyCommandEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxCommandEvent
, _p_wxCommandEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxDropFilesEvent
, _p_wxDropFilesEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxFocusEvent
, _p_wxFocusEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxChildFocusEvent
, _p_wxChildFocusEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxBrush
, _p_wxBrushTo_p_wxObject
, 0, 0}, {&_swigt__p_wxMetaFile
, _p_wxMetaFileTo_p_wxObject
, 0, 0}, {&_swigt__p_wxControlWithItems
, _p_wxControlWithItemsTo_p_wxObject
, 0, 0}, {&_swigt__p_wxColour
, _p_wxColourTo_p_wxObject
, 0, 0}, {&_swigt__p_wxPyValidator
, _p_wxPyValidatorTo_p_wxObject
, 0, 0}, {&_swigt__p_wxValidator
, _p_wxValidatorTo_p_wxObject
, 0, 0},{0, 0, 0, 0}};
27042 static swig_cast_info _swigc__p_wxPaintDC
[] = { {&_swigt__p_wxPaintDC
, 0, 0, 0},{0, 0, 0, 0}};
27043 static swig_cast_info _swigc__p_wxPalette
[] = { {&_swigt__p_wxPalette
, 0, 0, 0},{0, 0, 0, 0}};
27044 static swig_cast_info _swigc__p_wxPaperSize
[] = { {&_swigt__p_wxPaperSize
, 0, 0, 0},{0, 0, 0, 0}};
27045 static swig_cast_info _swigc__p_wxPen
[] = { {&_swigt__p_wxPen
, 0, 0, 0},{0, 0, 0, 0}};
27046 static swig_cast_info _swigc__p_wxPenList
[] = { {&_swigt__p_wxPenList
, 0, 0, 0},{0, 0, 0, 0}};
27047 static swig_cast_info _swigc__p_wxPoint
[] = { {&_swigt__p_wxPoint
, 0, 0, 0},{0, 0, 0, 0}};
27048 static swig_cast_info _swigc__p_wxPostScriptDC
[] = { {&_swigt__p_wxPostScriptDC
, 0, 0, 0},{0, 0, 0, 0}};
27049 static swig_cast_info _swigc__p_wxPrintData
[] = { {&_swigt__p_wxPrintData
, 0, 0, 0},{0, 0, 0, 0}};
27050 static swig_cast_info _swigc__p_wxPrinterDC
[] = { {&_swigt__p_wxPrinterDC
, 0, 0, 0},{0, 0, 0, 0}};
27051 static swig_cast_info _swigc__p_wxPyFontEnumerator
[] = { {&_swigt__p_wxPyFontEnumerator
, 0, 0, 0},{0, 0, 0, 0}};
27052 static swig_cast_info _swigc__p_wxRect
[] = { {&_swigt__p_wxRect
, 0, 0, 0},{0, 0, 0, 0}};
27053 static swig_cast_info _swigc__p_wxRegion
[] = { {&_swigt__p_wxRegion
, 0, 0, 0},{0, 0, 0, 0}};
27054 static swig_cast_info _swigc__p_wxRegionIterator
[] = { {&_swigt__p_wxRegionIterator
, 0, 0, 0},{0, 0, 0, 0}};
27055 static swig_cast_info _swigc__p_wxRendererNative
[] = { {&_swigt__p_wxRendererNative
, 0, 0, 0},{0, 0, 0, 0}};
27056 static swig_cast_info _swigc__p_wxRendererVersion
[] = { {&_swigt__p_wxRendererVersion
, 0, 0, 0},{0, 0, 0, 0}};
27057 static swig_cast_info _swigc__p_wxScreenDC
[] = { {&_swigt__p_wxScreenDC
, 0, 0, 0},{0, 0, 0, 0}};
27058 static swig_cast_info _swigc__p_wxSize
[] = { {&_swigt__p_wxSize
, 0, 0, 0},{0, 0, 0, 0}};
27059 static swig_cast_info _swigc__p_wxSplitterRenderParams
[] = { {&_swigt__p_wxSplitterRenderParams
, 0, 0, 0},{0, 0, 0, 0}};
27060 static swig_cast_info _swigc__p_wxStockGDI
[] = { {&_swigt__p_wxStockGDI
, 0, 0, 0},{0, 0, 0, 0}};
27061 static swig_cast_info _swigc__p_wxString
[] = { {&_swigt__p_wxString
, 0, 0, 0},{0, 0, 0, 0}};
27062 static swig_cast_info _swigc__p_wxWindow
[] = { {&_swigt__p_wxControl
, _p_wxControlTo_p_wxWindow
, 0, 0}, {&_swigt__p_wxWindow
, 0, 0, 0}, {&_swigt__p_wxControlWithItems
, _p_wxControlWithItemsTo_p_wxWindow
, 0, 0}, {&_swigt__p_wxMenuBar
, _p_wxMenuBarTo_p_wxWindow
, 0, 0},{0, 0, 0, 0}};
27063 static swig_cast_info _swigc__p_wxWindowDC
[] = { {&_swigt__p_wxWindowDC
, 0, 0, 0},{0, 0, 0, 0}};
27065 static swig_cast_info
*swig_cast_initial
[] = {
27068 _swigc__p_form_ops_t
,
27070 _swigc__p_unsigned_char
,
27071 _swigc__p_unsigned_int
,
27072 _swigc__p_unsigned_long
,
27073 _swigc__p_wxANIHandler
,
27074 _swigc__p_wxAcceleratorTable
,
27075 _swigc__p_wxActivateEvent
,
27076 _swigc__p_wxBMPHandler
,
27077 _swigc__p_wxBitmap
,
27078 _swigc__p_wxBoxSizer
,
27080 _swigc__p_wxBrushList
,
27081 _swigc__p_wxBufferedDC
,
27082 _swigc__p_wxBufferedPaintDC
,
27083 _swigc__p_wxCURHandler
,
27084 _swigc__p_wxChildFocusEvent
,
27085 _swigc__p_wxClientDC
,
27086 _swigc__p_wxCloseEvent
,
27087 _swigc__p_wxColour
,
27088 _swigc__p_wxColourDatabase
,
27089 _swigc__p_wxCommandEvent
,
27090 _swigc__p_wxContextMenuEvent
,
27091 _swigc__p_wxControl
,
27092 _swigc__p_wxControlWithItems
,
27093 _swigc__p_wxCursor
,
27096 _swigc__p_wxDateEvent
,
27097 _swigc__p_wxDisplayChangedEvent
,
27098 _swigc__p_wxDropFilesEvent
,
27099 _swigc__p_wxDuplexMode
,
27100 _swigc__p_wxEffects
,
27101 _swigc__p_wxEncodingConverter
,
27102 _swigc__p_wxEraseEvent
,
27104 _swigc__p_wxEvtHandler
,
27105 _swigc__p_wxFSFile
,
27106 _swigc__p_wxFileSystem
,
27107 _swigc__p_wxFlexGridSizer
,
27108 _swigc__p_wxFocusEvent
,
27110 _swigc__p_wxFontList
,
27111 _swigc__p_wxFontMapper
,
27112 _swigc__p_wxGBSizerItem
,
27113 _swigc__p_wxGDIObjListBase
,
27114 _swigc__p_wxGDIObject
,
27115 _swigc__p_wxGIFHandler
,
27116 _swigc__p_wxGridBagSizer
,
27117 _swigc__p_wxGridSizer
,
27118 _swigc__p_wxICOHandler
,
27120 _swigc__p_wxIconBundle
,
27121 _swigc__p_wxIconLocation
,
27122 _swigc__p_wxIconizeEvent
,
27123 _swigc__p_wxIdleEvent
,
27125 _swigc__p_wxImageHandler
,
27126 _swigc__p_wxImageList
,
27127 _swigc__p_wxIndividualLayoutConstraint
,
27128 _swigc__p_wxInitDialogEvent
,
27129 _swigc__p_wxJPEGHandler
,
27130 _swigc__p_wxKeyEvent
,
27131 _swigc__p_wxLanguageInfo
,
27132 _swigc__p_wxLayoutConstraints
,
27133 _swigc__p_wxLocale
,
27135 _swigc__p_wxMaximizeEvent
,
27136 _swigc__p_wxMemoryDC
,
27138 _swigc__p_wxMenuBar
,
27139 _swigc__p_wxMenuEvent
,
27140 _swigc__p_wxMenuItem
,
27141 _swigc__p_wxMetaFile
,
27142 _swigc__p_wxMetaFileDC
,
27143 _swigc__p_wxMirrorDC
,
27144 _swigc__p_wxMouseCaptureChangedEvent
,
27145 _swigc__p_wxMouseEvent
,
27146 _swigc__p_wxMoveEvent
,
27147 _swigc__p_wxNativeEncodingInfo
,
27148 _swigc__p_wxNativeFontInfo
,
27149 _swigc__p_wxNavigationKeyEvent
,
27150 _swigc__p_wxNcPaintEvent
,
27151 _swigc__p_wxNotifyEvent
,
27152 _swigc__p_wxObject
,
27153 _swigc__p_wxPCXHandler
,
27154 _swigc__p_wxPNGHandler
,
27155 _swigc__p_wxPNMHandler
,
27156 _swigc__p_wxPaintDC
,
27157 _swigc__p_wxPaintEvent
,
27158 _swigc__p_wxPalette
,
27159 _swigc__p_wxPaletteChangedEvent
,
27160 _swigc__p_wxPaperSize
,
27162 _swigc__p_wxPenList
,
27164 _swigc__p_wxPostScriptDC
,
27165 _swigc__p_wxPrintData
,
27166 _swigc__p_wxPrinterDC
,
27168 _swigc__p_wxPyCommandEvent
,
27169 _swigc__p_wxPyEvent
,
27170 _swigc__p_wxPyFontEnumerator
,
27171 _swigc__p_wxPyImageHandler
,
27172 _swigc__p_wxPySizer
,
27173 _swigc__p_wxPyValidator
,
27174 _swigc__p_wxQueryNewPaletteEvent
,
27176 _swigc__p_wxRegion
,
27177 _swigc__p_wxRegionIterator
,
27178 _swigc__p_wxRendererNative
,
27179 _swigc__p_wxRendererVersion
,
27180 _swigc__p_wxScreenDC
,
27181 _swigc__p_wxScrollEvent
,
27182 _swigc__p_wxScrollWinEvent
,
27183 _swigc__p_wxSetCursorEvent
,
27184 _swigc__p_wxShowEvent
,
27186 _swigc__p_wxSizeEvent
,
27188 _swigc__p_wxSizerItem
,
27189 _swigc__p_wxSplitterRenderParams
,
27190 _swigc__p_wxStaticBoxSizer
,
27191 _swigc__p_wxStdDialogButtonSizer
,
27192 _swigc__p_wxStockGDI
,
27193 _swigc__p_wxString
,
27194 _swigc__p_wxSysColourChangedEvent
,
27195 _swigc__p_wxTIFFHandler
,
27196 _swigc__p_wxUpdateUIEvent
,
27197 _swigc__p_wxValidator
,
27198 _swigc__p_wxWindow
,
27199 _swigc__p_wxWindowCreateEvent
,
27200 _swigc__p_wxWindowDC
,
27201 _swigc__p_wxWindowDestroyEvent
,
27202 _swigc__p_wxXPMHandler
,
27206 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
27208 static swig_const_info swig_const_table
[] = {
27209 {0, 0, 0, 0.0, 0, 0}};
27214 /* -----------------------------------------------------------------------------
27215 * Type initialization:
27216 * This problem is tough by the requirement that no dynamic
27217 * memory is used. Also, since swig_type_info structures store pointers to
27218 * swig_cast_info structures and swig_cast_info structures store pointers back
27219 * to swig_type_info structures, we need some lookup code at initialization.
27220 * The idea is that swig generates all the structures that are needed.
27221 * The runtime then collects these partially filled structures.
27222 * The SWIG_InitializeModule function takes these initial arrays out of
27223 * swig_module, and does all the lookup, filling in the swig_module.types
27224 * array with the correct data and linking the correct swig_cast_info
27225 * structures together.
27227 * The generated swig_type_info structures are assigned staticly to an initial
27228 * array. We just loop though that array, and handle each type individually.
27229 * First we lookup if this type has been already loaded, and if so, use the
27230 * loaded structure instead of the generated one. Then we have to fill in the
27231 * cast linked list. The cast data is initially stored in something like a
27232 * two-dimensional array. Each row corresponds to a type (there are the same
27233 * number of rows as there are in the swig_type_initial array). Each entry in
27234 * a column is one of the swig_cast_info structures for that type.
27235 * The cast_initial array is actually an array of arrays, because each row has
27236 * a variable number of columns. So to actually build the cast linked list,
27237 * we find the array of casts associated with the type, and loop through it
27238 * adding the casts to the list. The one last trick we need to do is making
27239 * sure the type pointer in the swig_cast_info struct is correct.
27241 * First off, we lookup the cast->type name to see if it is already loaded.
27242 * There are three cases to handle:
27243 * 1) If the cast->type has already been loaded AND the type we are adding
27244 * casting info to has not been loaded (it is in this module), THEN we
27245 * replace the cast->type pointer with the type pointer that has already
27247 * 2) If BOTH types (the one we are adding casting info to, and the
27248 * cast->type) are loaded, THEN the cast info has already been loaded by
27249 * the previous module so we just ignore it.
27250 * 3) Finally, if cast->type has not already been loaded, then we add that
27251 * swig_cast_info to the linked list (because the cast->type) pointer will
27253 * ----------------------------------------------------------------------------- */
27263 #define SWIGRUNTIME_DEBUG
27267 SWIG_InitializeModule(void *clientdata
) {
27269 swig_module_info
*module_head
;
27270 static int init_run
= 0;
27272 clientdata
= clientdata
;
27274 if (init_run
) return;
27277 /* Initialize the swig_module */
27278 swig_module
.type_initial
= swig_type_initial
;
27279 swig_module
.cast_initial
= swig_cast_initial
;
27281 /* Try and load any already created modules */
27282 module_head
= SWIG_GetModule(clientdata
);
27284 swig_module
.next
= module_head
->next
;
27285 module_head
->next
= &swig_module
;
27287 /* This is the first module loaded */
27288 swig_module
.next
= &swig_module
;
27289 SWIG_SetModule(clientdata
, &swig_module
);
27292 /* Now work on filling in swig_module.types */
27293 #ifdef SWIGRUNTIME_DEBUG
27294 printf("SWIG_InitializeModule: size %d\n", swig_module
.size
);
27296 for (i
= 0; i
< swig_module
.size
; ++i
) {
27297 swig_type_info
*type
= 0;
27298 swig_type_info
*ret
;
27299 swig_cast_info
*cast
;
27301 #ifdef SWIGRUNTIME_DEBUG
27302 printf("SWIG_InitializeModule: type %d %s\n", i
, swig_module
.type_initial
[i
]->name
);
27305 /* if there is another module already loaded */
27306 if (swig_module
.next
!= &swig_module
) {
27307 type
= SWIG_MangledTypeQueryModule(swig_module
.next
, &swig_module
, swig_module
.type_initial
[i
]->name
);
27310 /* Overwrite clientdata field */
27311 #ifdef SWIGRUNTIME_DEBUG
27312 printf("SWIG_InitializeModule: found type %s\n", type
->name
);
27314 if (swig_module
.type_initial
[i
]->clientdata
) {
27315 type
->clientdata
= swig_module
.type_initial
[i
]->clientdata
;
27316 #ifdef SWIGRUNTIME_DEBUG
27317 printf("SWIG_InitializeModule: found and overwrite type %s \n", type
->name
);
27321 type
= swig_module
.type_initial
[i
];
27324 /* Insert casting types */
27325 cast
= swig_module
.cast_initial
[i
];
27326 while (cast
->type
) {
27327 /* Don't need to add information already in the list */
27329 #ifdef SWIGRUNTIME_DEBUG
27330 printf("SWIG_InitializeModule: look cast %s\n", cast
->type
->name
);
27332 if (swig_module
.next
!= &swig_module
) {
27333 ret
= SWIG_MangledTypeQueryModule(swig_module
.next
, &swig_module
, cast
->type
->name
);
27334 #ifdef SWIGRUNTIME_DEBUG
27335 if (ret
) printf("SWIG_InitializeModule: found cast %s\n", ret
->name
);
27339 if (type
== swig_module
.type_initial
[i
]) {
27340 #ifdef SWIGRUNTIME_DEBUG
27341 printf("SWIG_InitializeModule: skip old type %s\n", ret
->name
);
27346 /* Check for casting already in the list */
27347 swig_cast_info
*ocast
= SWIG_TypeCheck(ret
->name
, type
);
27348 #ifdef SWIGRUNTIME_DEBUG
27349 if (ocast
) printf("SWIG_InitializeModule: skip old cast %s\n", ret
->name
);
27351 if (!ocast
) ret
= 0;
27356 #ifdef SWIGRUNTIME_DEBUG
27357 printf("SWIG_InitializeModule: adding cast %s\n", cast
->type
->name
);
27360 type
->cast
->prev
= cast
;
27361 cast
->next
= type
->cast
;
27367 /* Set entry in modules->types array equal to the type */
27368 swig_module
.types
[i
] = type
;
27370 swig_module
.types
[i
] = 0;
27372 #ifdef SWIGRUNTIME_DEBUG
27373 printf("**** SWIG_InitializeModule: Cast List ******\n");
27374 for (i
= 0; i
< swig_module
.size
; ++i
) {
27376 swig_cast_info
*cast
= swig_module
.cast_initial
[i
];
27377 printf("SWIG_InitializeModule: type %d %s\n", i
, swig_module
.type_initial
[i
]->name
);
27378 while (cast
->type
) {
27379 printf("SWIG_InitializeModule: cast type %s\n", cast
->type
->name
);
27383 printf("---- Total casts: %d\n",j
);
27385 printf("**** SWIG_InitializeModule: Cast List ******\n");
27389 /* This function will propagate the clientdata field of type to
27390 * any new swig_type_info structures that have been added into the list
27391 * of equivalent types. It is like calling
27392 * SWIG_TypeClientData(type, clientdata) a second time.
27395 SWIG_PropagateClientData(void) {
27397 swig_cast_info
*equiv
;
27398 static int init_run
= 0;
27400 if (init_run
) return;
27403 for (i
= 0; i
< swig_module
.size
; i
++) {
27404 if (swig_module
.types
[i
]->clientdata
) {
27405 equiv
= swig_module
.types
[i
]->cast
;
27407 if (!equiv
->converter
) {
27408 if (equiv
->type
&& !equiv
->type
->clientdata
)
27409 SWIG_TypeClientData(equiv
->type
, swig_module
.types
[i
]->clientdata
);
27411 equiv
= equiv
->next
;
27431 /* Python-specific SWIG API */
27432 #define SWIG_newvarlink() SWIG_Python_newvarlink()
27433 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
27434 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
27436 /* -----------------------------------------------------------------------------
27437 * global variable support code.
27438 * ----------------------------------------------------------------------------- */
27440 typedef struct swig_globalvar
{
27441 char *name
; /* Name of global variable */
27442 PyObject
*(*get_attr
)(void); /* Return the current value */
27443 int (*set_attr
)(PyObject
*); /* Set the value */
27444 struct swig_globalvar
*next
;
27447 typedef struct swig_varlinkobject
{
27449 swig_globalvar
*vars
;
27450 } swig_varlinkobject
;
27452 SWIGINTERN PyObject
*
27453 swig_varlink_repr(swig_varlinkobject
*SWIGUNUSEDPARM(v
)) {
27454 return PyString_FromString("<Swig global variables>");
27457 SWIGINTERN PyObject
*
27458 swig_varlink_str(swig_varlinkobject
*v
) {
27459 PyObject
*str
= PyString_FromString("(");
27460 swig_globalvar
*var
;
27461 for (var
= v
->vars
; var
; var
=var
->next
) {
27462 PyString_ConcatAndDel(&str
,PyString_FromString(var
->name
));
27463 if (var
->next
) PyString_ConcatAndDel(&str
,PyString_FromString(", "));
27465 PyString_ConcatAndDel(&str
,PyString_FromString(")"));
27470 swig_varlink_print(swig_varlinkobject
*v
, FILE *fp
, int SWIGUNUSEDPARM(flags
)) {
27471 PyObject
*str
= swig_varlink_str(v
);
27472 fprintf(fp
,"Swig global variables ");
27473 fprintf(fp
,"%s\n", PyString_AsString(str
));
27479 swig_varlink_dealloc(swig_varlinkobject
*v
) {
27480 swig_globalvar
*var
= v
->vars
;
27482 swig_globalvar
*n
= var
->next
;
27489 SWIGINTERN PyObject
*
27490 swig_varlink_getattr(swig_varlinkobject
*v
, char *n
) {
27491 PyObject
*res
= NULL
;
27492 swig_globalvar
*var
= v
->vars
;
27494 if (strcmp(var
->name
,n
) == 0) {
27495 res
= (*var
->get_attr
)();
27500 if (res
== NULL
&& !PyErr_Occurred()) {
27501 PyErr_SetString(PyExc_NameError
,"Unknown C global variable");
27507 swig_varlink_setattr(swig_varlinkobject
*v
, char *n
, PyObject
*p
) {
27509 swig_globalvar
*var
= v
->vars
;
27511 if (strcmp(var
->name
,n
) == 0) {
27512 res
= (*var
->set_attr
)(p
);
27517 if (res
== 1 && !PyErr_Occurred()) {
27518 PyErr_SetString(PyExc_NameError
,"Unknown C global variable");
27523 SWIGINTERN PyTypeObject
*
27524 swig_varlink_type(void) {
27525 static char varlink__doc__
[] = "Swig var link object";
27526 static PyTypeObject varlink_type
;
27527 static int type_init
= 0;
27529 const PyTypeObject tmp
27531 PyObject_HEAD_INIT(NULL
)
27532 0, /* Number of items in variable part (ob_size) */
27533 (char *)"swigvarlink", /* Type name (tp_name) */
27534 sizeof(swig_varlinkobject
), /* Basic size (tp_basicsize) */
27535 0, /* Itemsize (tp_itemsize) */
27536 (destructor
) swig_varlink_dealloc
, /* Deallocator (tp_dealloc) */
27537 (printfunc
) swig_varlink_print
, /* Print (tp_print) */
27538 (getattrfunc
) swig_varlink_getattr
, /* get attr (tp_getattr) */
27539 (setattrfunc
) swig_varlink_setattr
, /* Set attr (tp_setattr) */
27540 0, /* tp_compare */
27541 (reprfunc
) swig_varlink_repr
, /* tp_repr */
27542 0, /* tp_as_number */
27543 0, /* tp_as_sequence */
27544 0, /* tp_as_mapping */
27547 (reprfunc
)swig_varlink_str
, /* tp_str */
27548 0, /* tp_getattro */
27549 0, /* tp_setattro */
27550 0, /* tp_as_buffer */
27552 varlink__doc__
, /* tp_doc */
27553 0, /* tp_traverse */
27555 0, /* tp_richcompare */
27556 0, /* tp_weaklistoffset */
27557 #if PY_VERSION_HEX >= 0x02020000
27558 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
27560 #if PY_VERSION_HEX >= 0x02030000
27563 #ifdef COUNT_ALLOCS
27564 0,0,0,0 /* tp_alloc -> tp_next */
27567 varlink_type
= tmp
;
27568 varlink_type
.ob_type
= &PyType_Type
;
27571 return &varlink_type
;
27574 /* Create a variable linking object for use later */
27575 SWIGINTERN PyObject
*
27576 SWIG_Python_newvarlink(void) {
27577 swig_varlinkobject
*result
= PyObject_NEW(swig_varlinkobject
, swig_varlink_type());
27581 return ((PyObject
*) result
);
27585 SWIG_Python_addvarlink(PyObject
*p
, char *name
, PyObject
*(*get_attr
)(void), int (*set_attr
)(PyObject
*p
)) {
27586 swig_varlinkobject
*v
= (swig_varlinkobject
*) p
;
27587 swig_globalvar
*gv
= (swig_globalvar
*) malloc(sizeof(swig_globalvar
));
27589 size_t size
= strlen(name
)+1;
27590 gv
->name
= (char *)malloc(size
);
27592 strncpy(gv
->name
,name
,size
);
27593 gv
->get_attr
= get_attr
;
27594 gv
->set_attr
= set_attr
;
27595 gv
->next
= v
->vars
;
27601 SWIGINTERN PyObject
*
27603 static PyObject
*_SWIG_globals
= 0;
27604 if (!_SWIG_globals
) _SWIG_globals
= SWIG_newvarlink();
27605 return _SWIG_globals
;
27608 /* -----------------------------------------------------------------------------
27609 * constants/methods manipulation
27610 * ----------------------------------------------------------------------------- */
27612 /* Install Constants */
27614 SWIG_Python_InstallConstants(PyObject
*d
, swig_const_info constants
[]) {
27617 for (i
= 0; constants
[i
].type
; ++i
) {
27618 switch(constants
[i
].type
) {
27619 case SWIG_PY_POINTER
:
27620 obj
= SWIG_NewPointerObj(constants
[i
].pvalue
, *(constants
[i
]).ptype
,0);
27622 case SWIG_PY_BINARY
:
27623 obj
= SWIG_NewPackedObj(constants
[i
].pvalue
, constants
[i
].lvalue
, *(constants
[i
].ptype
));
27630 PyDict_SetItemString(d
, constants
[i
].name
, obj
);
27636 /* -----------------------------------------------------------------------------*/
27637 /* Fix SwigMethods to carry the callback ptrs when needed */
27638 /* -----------------------------------------------------------------------------*/
27641 SWIG_Python_FixMethods(PyMethodDef
*methods
,
27642 swig_const_info
*const_table
,
27643 swig_type_info
**types
,
27644 swig_type_info
**types_initial
) {
27646 for (i
= 0; methods
[i
].ml_name
; ++i
) {
27647 char *c
= methods
[i
].ml_doc
;
27648 if (c
&& (c
= strstr(c
, "swig_ptr: "))) {
27650 swig_const_info
*ci
= 0;
27651 char *name
= c
+ 10;
27652 for (j
= 0; const_table
[j
].type
; ++j
) {
27653 if (strncmp(const_table
[j
].name
, name
,
27654 strlen(const_table
[j
].name
)) == 0) {
27655 ci
= &(const_table
[j
]);
27660 size_t shift
= (ci
->ptype
) - types
;
27661 swig_type_info
*ty
= types_initial
[shift
];
27662 size_t ldoc
= (c
- methods
[i
].ml_doc
);
27663 size_t lptr
= strlen(ty
->name
)+2*sizeof(void*)+2;
27664 char *ndoc
= (char*)malloc(ldoc
+ lptr
+ 10);
27667 void *ptr
= (ci
->type
== SWIG_PY_POINTER
) ? ci
->pvalue
: 0;
27669 strncpy(buff
, methods
[i
].ml_doc
, ldoc
);
27671 strncpy(buff
, "swig_ptr: ", 10);
27673 SWIG_PackVoidPtr(buff
, ptr
, ty
->name
, lptr
);
27674 methods
[i
].ml_doc
= ndoc
;
27686 /* -----------------------------------------------------------------------------*
27687 * Partial Init method
27688 * -----------------------------------------------------------------------------*/
27693 SWIGEXPORT
void SWIG_init(void) {
27696 /* Fix SwigMethods to carry the callback ptrs when needed */
27697 SWIG_Python_FixMethods(SwigMethods
, swig_const_table
, swig_types
, swig_type_initial
);
27699 m
= Py_InitModule((char *) SWIG_name
, SwigMethods
);
27700 d
= PyModule_GetDict(m
);
27702 SWIG_InitializeModule(0);
27703 SWIG_InstallConstants(d
,swig_const_table
);
27706 SWIG_Python_SetConstant(d
, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion
)));
27707 SWIG_Python_SetConstant(d
, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion
)));
27708 SWIG_Python_SetConstant(d
, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion
)));
27709 SWIG_Python_SetConstant(d
, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT
)));
27710 SWIG_Python_SetConstant(d
, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE
)));
27711 SWIG_Python_SetConstant(d
, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN
)));
27712 SWIG_Python_SetConstant(d
, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT
)));
27713 SWIG_Python_SetConstant(d
, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS
)));
27714 SWIG_Python_SetConstant(d
, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN
)));
27715 SWIG_Python_SetConstant(d
, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE
)));
27716 SWIG_Python_SetConstant(d
, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX
)));
27717 SWIG_Python_SetConstant(d
, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN
)));
27718 SWIG_Python_SetConstant(d
, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL
)));
27719 SWIG_Python_SetConstant(d
, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC
)));
27720 SWIG_Python_SetConstant(d
, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT
)));
27721 SWIG_Python_SetConstant(d
, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX
)));
27722 SWIG_Python_SetConstant(d
, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL
)));
27723 SWIG_Python_SetConstant(d
, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT
)));
27724 SWIG_Python_SetConstant(d
, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD
)));
27725 SWIG_Python_SetConstant(d
, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX
)));
27726 SWIG_Python_SetConstant(d
, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT
)));
27727 SWIG_Python_SetConstant(d
, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC
)));
27728 SWIG_Python_SetConstant(d
, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT
)));
27729 SWIG_Python_SetConstant(d
, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT
)));
27730 SWIG_Python_SetConstant(d
, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD
)));
27731 SWIG_Python_SetConstant(d
, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED
)));
27732 SWIG_Python_SetConstant(d
, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED
)));
27733 SWIG_Python_SetConstant(d
, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED
)));
27734 SWIG_Python_SetConstant(d
, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH
)));
27735 SWIG_Python_SetConstant(d
, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK
)));
27736 SWIG_Python_SetConstant(d
, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM
)));
27737 SWIG_Python_SetConstant(d
, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT
)));
27738 SWIG_Python_SetConstant(d
, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1
)));
27739 SWIG_Python_SetConstant(d
, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2
)));
27740 SWIG_Python_SetConstant(d
, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3
)));
27741 SWIG_Python_SetConstant(d
, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4
)));
27742 SWIG_Python_SetConstant(d
, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5
)));
27743 SWIG_Python_SetConstant(d
, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6
)));
27744 SWIG_Python_SetConstant(d
, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7
)));
27745 SWIG_Python_SetConstant(d
, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8
)));
27746 SWIG_Python_SetConstant(d
, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9
)));
27747 SWIG_Python_SetConstant(d
, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10
)));
27748 SWIG_Python_SetConstant(d
, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11
)));
27749 SWIG_Python_SetConstant(d
, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12
)));
27750 SWIG_Python_SetConstant(d
, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13
)));
27751 SWIG_Python_SetConstant(d
, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14
)));
27752 SWIG_Python_SetConstant(d
, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15
)));
27753 SWIG_Python_SetConstant(d
, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX
)));
27754 SWIG_Python_SetConstant(d
, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8
)));
27755 SWIG_Python_SetConstant(d
, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U
)));
27756 SWIG_Python_SetConstant(d
, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE
)));
27757 SWIG_Python_SetConstant(d
, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN
)));
27758 SWIG_Python_SetConstant(d
, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437
)));
27759 SWIG_Python_SetConstant(d
, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850
)));
27760 SWIG_Python_SetConstant(d
, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852
)));
27761 SWIG_Python_SetConstant(d
, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855
)));
27762 SWIG_Python_SetConstant(d
, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866
)));
27763 SWIG_Python_SetConstant(d
, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874
)));
27764 SWIG_Python_SetConstant(d
, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932
)));
27765 SWIG_Python_SetConstant(d
, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936
)));
27766 SWIG_Python_SetConstant(d
, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949
)));
27767 SWIG_Python_SetConstant(d
, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950
)));
27768 SWIG_Python_SetConstant(d
, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250
)));
27769 SWIG_Python_SetConstant(d
, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251
)));
27770 SWIG_Python_SetConstant(d
, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252
)));
27771 SWIG_Python_SetConstant(d
, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253
)));
27772 SWIG_Python_SetConstant(d
, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254
)));
27773 SWIG_Python_SetConstant(d
, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255
)));
27774 SWIG_Python_SetConstant(d
, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256
)));
27775 SWIG_Python_SetConstant(d
, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257
)));
27776 SWIG_Python_SetConstant(d
, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX
)));
27777 SWIG_Python_SetConstant(d
, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7
)));
27778 SWIG_Python_SetConstant(d
, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8
)));
27779 SWIG_Python_SetConstant(d
, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP
)));
27780 SWIG_Python_SetConstant(d
, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE
)));
27781 SWIG_Python_SetConstant(d
, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE
)));
27782 SWIG_Python_SetConstant(d
, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE
)));
27783 SWIG_Python_SetConstant(d
, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE
)));
27784 SWIG_Python_SetConstant(d
, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN
)));
27785 SWIG_Python_SetConstant(d
, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE
)));
27786 SWIG_Python_SetConstant(d
, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD
)));
27787 SWIG_Python_SetConstant(d
, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN
)));
27788 SWIG_Python_SetConstant(d
, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC
)));
27789 SWIG_Python_SetConstant(d
, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW
)));
27790 SWIG_Python_SetConstant(d
, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK
)));
27791 SWIG_Python_SetConstant(d
, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC
)));
27792 SWIG_Python_SetConstant(d
, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI
)));
27793 SWIG_Python_SetConstant(d
, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI
)));
27794 SWIG_Python_SetConstant(d
, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI
)));
27795 SWIG_Python_SetConstant(d
, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA
)));
27796 SWIG_Python_SetConstant(d
, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI
)));
27797 SWIG_Python_SetConstant(d
, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL
)));
27798 SWIG_Python_SetConstant(d
, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU
)));
27799 SWIG_Python_SetConstant(d
, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA
)));
27800 SWIG_Python_SetConstant(d
, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM
)));
27801 SWIG_Python_SetConstant(d
, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE
)));
27802 SWIG_Python_SetConstant(d
, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE
)));
27803 SWIG_Python_SetConstant(d
, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER
)));
27804 SWIG_Python_SetConstant(d
, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI
)));
27805 SWIG_Python_SetConstant(d
, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN
)));
27806 SWIG_Python_SetConstant(d
, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN
)));
27807 SWIG_Python_SetConstant(d
, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN
)));
27808 SWIG_Python_SetConstant(d
, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP
)));
27809 SWIG_Python_SetConstant(d
, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN
)));
27810 SWIG_Python_SetConstant(d
, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN
)));
27811 SWIG_Python_SetConstant(d
, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC
)));
27812 SWIG_Python_SetConstant(d
, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR
)));
27813 SWIG_Python_SetConstant(d
, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE
)));
27814 SWIG_Python_SetConstant(d
, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT
)));
27815 SWIG_Python_SetConstant(d
, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL
)));
27816 SWIG_Python_SetConstant(d
, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS
)));
27817 SWIG_Python_SetConstant(d
, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH
)));
27818 SWIG_Python_SetConstant(d
, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN
)));
27819 SWIG_Python_SetConstant(d
, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC
)));
27820 SWIG_Python_SetConstant(d
, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN
)));
27821 SWIG_Python_SetConstant(d
, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC
)));
27822 SWIG_Python_SetConstant(d
, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC
)));
27823 SWIG_Python_SetConstant(d
, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD
)));
27824 SWIG_Python_SetConstant(d
, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN
)));
27825 SWIG_Python_SetConstant(d
, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX
)));
27826 SWIG_Python_SetConstant(d
, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX
)));
27827 SWIG_Python_SetConstant(d
, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16
)));
27828 SWIG_Python_SetConstant(d
, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32
)));
27829 SWIG_Python_SetConstant(d
, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE
)));
27830 SWIG_Python_SetConstant(d
, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312
)));
27831 SWIG_Python_SetConstant(d
, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5
)));
27832 SWIG_Python_SetConstant(d
, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS
)));
27834 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
27836 SWIG_Python_SetConstant(d
, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT
)));
27837 SWIG_Python_SetConstant(d
, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN
)));
27838 SWIG_Python_SetConstant(d
, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN
)));
27839 SWIG_Python_SetConstant(d
, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR
)));
27840 SWIG_Python_SetConstant(d
, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS
)));
27841 SWIG_Python_SetConstant(d
, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN
)));
27842 SWIG_Python_SetConstant(d
, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC
)));
27843 SWIG_Python_SetConstant(d
, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC
)));
27844 SWIG_Python_SetConstant(d
, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA
)));
27845 SWIG_Python_SetConstant(d
, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN
)));
27846 SWIG_Python_SetConstant(d
, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT
)));
27847 SWIG_Python_SetConstant(d
, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ
)));
27848 SWIG_Python_SetConstant(d
, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN
)));
27849 SWIG_Python_SetConstant(d
, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT
)));
27850 SWIG_Python_SetConstant(d
, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON
)));
27851 SWIG_Python_SetConstant(d
, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA
)));
27852 SWIG_Python_SetConstant(d
, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO
)));
27853 SWIG_Python_SetConstant(d
, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN
)));
27854 SWIG_Python_SetConstant(d
, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR
)));
27855 SWIG_Python_SetConstant(d
, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA
)));
27856 SWIG_Python_SetConstant(d
, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN
)));
27857 SWIG_Python_SetConstant(d
, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA
)));
27858 SWIG_Python_SetConstant(d
, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA
)));
27859 SWIG_Python_SetConstant(d
, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE
)));
27860 SWIG_Python_SetConstant(d
, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN
)));
27861 SWIG_Python_SetConstant(d
, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN
)));
27862 SWIG_Python_SetConstant(d
, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE
)));
27863 SWIG_Python_SetConstant(d
, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA
)));
27864 SWIG_Python_SetConstant(d
, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI
)));
27865 SWIG_Python_SetConstant(d
, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC
)));
27866 SWIG_Python_SetConstant(d
, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN
)));
27867 SWIG_Python_SetConstant(d
, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR
)));
27868 SWIG_Python_SetConstant(d
, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE
)));
27869 SWIG_Python_SetConstant(d
, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN
)));
27870 SWIG_Python_SetConstant(d
, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI
)));
27871 SWIG_Python_SetConstant(d
, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI
)));
27872 SWIG_Python_SetConstant(d
, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI
)));
27873 SWIG_Python_SetConstant(d
, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA
)));
27874 SWIG_Python_SetConstant(d
, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON
)));
27875 SWIG_Python_SetConstant(d
, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN
)));
27876 SWIG_Python_SetConstant(d
, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE
)));
27877 SWIG_Python_SetConstant(d
, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN
)));
27878 SWIG_Python_SetConstant(d
, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN
)));
27879 SWIG_Python_SetConstant(d
, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE
)));
27880 SWIG_Python_SetConstant(d
, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED
)));
27881 SWIG_Python_SetConstant(d
, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL
)));
27882 SWIG_Python_SetConstant(d
, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG
)));
27883 SWIG_Python_SetConstant(d
, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU
)));
27884 SWIG_Python_SetConstant(d
, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE
)));
27885 SWIG_Python_SetConstant(d
, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN
)));
27886 SWIG_Python_SetConstant(d
, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN
)));
27887 SWIG_Python_SetConstant(d
, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN
)));
27888 SWIG_Python_SetConstant(d
, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH
)));
27889 SWIG_Python_SetConstant(d
, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH
)));
27890 SWIG_Python_SetConstant(d
, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH
)));
27891 SWIG_Python_SetConstant(d
, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN
)));
27892 SWIG_Python_SetConstant(d
, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH
)));
27893 SWIG_Python_SetConstant(d
, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK
)));
27894 SWIG_Python_SetConstant(d
, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US
)));
27895 SWIG_Python_SetConstant(d
, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA
)));
27896 SWIG_Python_SetConstant(d
, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE
)));
27897 SWIG_Python_SetConstant(d
, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA
)));
27898 SWIG_Python_SetConstant(d
, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA
)));
27899 SWIG_Python_SetConstant(d
, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN
)));
27900 SWIG_Python_SetConstant(d
, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK
)));
27901 SWIG_Python_SetConstant(d
, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE
)));
27902 SWIG_Python_SetConstant(d
, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA
)));
27903 SWIG_Python_SetConstant(d
, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND
)));
27904 SWIG_Python_SetConstant(d
, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES
)));
27905 SWIG_Python_SetConstant(d
, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA
)));
27906 SWIG_Python_SetConstant(d
, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD
)));
27907 SWIG_Python_SetConstant(d
, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE
)));
27908 SWIG_Python_SetConstant(d
, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO
)));
27909 SWIG_Python_SetConstant(d
, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN
)));
27910 SWIG_Python_SetConstant(d
, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE
)));
27911 SWIG_Python_SetConstant(d
, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI
)));
27912 SWIG_Python_SetConstant(d
, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI
)));
27913 SWIG_Python_SetConstant(d
, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH
)));
27914 SWIG_Python_SetConstant(d
, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH
)));
27915 SWIG_Python_SetConstant(d
, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN
)));
27916 SWIG_Python_SetConstant(d
, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN
)));
27917 SWIG_Python_SetConstant(d
, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG
)));
27918 SWIG_Python_SetConstant(d
, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO
)));
27919 SWIG_Python_SetConstant(d
, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS
)));
27920 SWIG_Python_SetConstant(d
, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN
)));
27921 SWIG_Python_SetConstant(d
, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN
)));
27922 SWIG_Python_SetConstant(d
, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN
)));
27923 SWIG_Python_SetConstant(d
, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN
)));
27924 SWIG_Python_SetConstant(d
, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN
)));
27925 SWIG_Python_SetConstant(d
, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM
)));
27926 SWIG_Python_SetConstant(d
, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN
)));
27927 SWIG_Python_SetConstant(d
, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG
)));
27928 SWIG_Python_SetConstant(d
, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS
)));
27929 SWIG_Python_SetConstant(d
, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK
)));
27930 SWIG_Python_SetConstant(d
, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC
)));
27931 SWIG_Python_SetConstant(d
, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI
)));
27932 SWIG_Python_SetConstant(d
, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI
)));
27933 SWIG_Python_SetConstant(d
, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA
)));
27934 SWIG_Python_SetConstant(d
, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW
)));
27935 SWIG_Python_SetConstant(d
, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI
)));
27936 SWIG_Python_SetConstant(d
, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN
)));
27937 SWIG_Python_SetConstant(d
, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC
)));
27938 SWIG_Python_SetConstant(d
, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN
)));
27939 SWIG_Python_SetConstant(d
, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA
)));
27940 SWIG_Python_SetConstant(d
, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE
)));
27941 SWIG_Python_SetConstant(d
, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT
)));
27942 SWIG_Python_SetConstant(d
, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK
)));
27943 SWIG_Python_SetConstant(d
, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH
)));
27944 SWIG_Python_SetConstant(d
, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN
)));
27945 SWIG_Python_SetConstant(d
, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS
)));
27946 SWIG_Python_SetConstant(d
, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE
)));
27947 SWIG_Python_SetConstant(d
, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE
)));
27948 SWIG_Python_SetConstant(d
, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA
)));
27949 SWIG_Python_SetConstant(d
, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI
)));
27950 SWIG_Python_SetConstant(d
, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA
)));
27951 SWIG_Python_SetConstant(d
, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH
)));
27952 SWIG_Python_SetConstant(d
, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK
)));
27953 SWIG_Python_SetConstant(d
, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA
)));
27954 SWIG_Python_SetConstant(d
, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ
)));
27955 SWIG_Python_SetConstant(d
, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI
)));
27956 SWIG_Python_SetConstant(d
, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI
)));
27957 SWIG_Python_SetConstant(d
, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN
)));
27958 SWIG_Python_SetConstant(d
, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH
)));
27959 SWIG_Python_SetConstant(d
, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN
)));
27960 SWIG_Python_SetConstant(d
, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN
)));
27961 SWIG_Python_SetConstant(d
, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN
)));
27962 SWIG_Python_SetConstant(d
, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA
)));
27963 SWIG_Python_SetConstant(d
, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN
)));
27964 SWIG_Python_SetConstant(d
, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN
)));
27965 SWIG_Python_SetConstant(d
, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY
)));
27966 SWIG_Python_SetConstant(d
, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY
)));
27967 SWIG_Python_SetConstant(d
, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM
)));
27968 SWIG_Python_SetConstant(d
, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM
)));
27969 SWIG_Python_SetConstant(d
, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA
)));
27970 SWIG_Python_SetConstant(d
, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE
)));
27971 SWIG_Python_SetConstant(d
, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI
)));
27972 SWIG_Python_SetConstant(d
, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI
)));
27973 SWIG_Python_SetConstant(d
, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI
)));
27974 SWIG_Python_SetConstant(d
, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN
)));
27975 SWIG_Python_SetConstant(d
, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN
)));
27976 SWIG_Python_SetConstant(d
, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU
)));
27977 SWIG_Python_SetConstant(d
, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI
)));
27978 SWIG_Python_SetConstant(d
, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA
)));
27979 SWIG_Python_SetConstant(d
, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL
)));
27980 SWIG_Python_SetConstant(d
, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK
)));
27981 SWIG_Python_SetConstant(d
, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN
)));
27982 SWIG_Python_SetConstant(d
, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA
)));
27983 SWIG_Python_SetConstant(d
, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO
)));
27984 SWIG_Python_SetConstant(d
, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO
)));
27985 SWIG_Python_SetConstant(d
, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH
)));
27986 SWIG_Python_SetConstant(d
, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE
)));
27987 SWIG_Python_SetConstant(d
, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN
)));
27988 SWIG_Python_SetConstant(d
, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI
)));
27989 SWIG_Python_SetConstant(d
, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA
)));
27990 SWIG_Python_SetConstant(d
, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE
)));
27991 SWIG_Python_SetConstant(d
, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN
)));
27992 SWIG_Python_SetConstant(d
, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN
)));
27993 SWIG_Python_SetConstant(d
, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE
)));
27994 SWIG_Python_SetConstant(d
, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN
)));
27995 SWIG_Python_SetConstant(d
, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO
)));
27996 SWIG_Python_SetConstant(d
, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT
)));
27997 SWIG_Python_SetConstant(d
, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC
)));
27998 SWIG_Python_SetConstant(d
, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN
)));
27999 SWIG_Python_SetConstant(d
, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC
)));
28000 SWIG_Python_SetConstant(d
, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN
)));
28001 SWIG_Python_SetConstant(d
, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN
)));
28002 SWIG_Python_SetConstant(d
, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO
)));
28003 SWIG_Python_SetConstant(d
, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA
)));
28004 SWIG_Python_SetConstant(d
, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA
)));
28005 SWIG_Python_SetConstant(d
, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI
)));
28006 SWIG_Python_SetConstant(d
, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE
)));
28007 SWIG_Python_SetConstant(d
, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI
)));
28008 SWIG_Python_SetConstant(d
, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK
)));
28009 SWIG_Python_SetConstant(d
, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN
)));
28010 SWIG_Python_SetConstant(d
, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI
)));
28011 SWIG_Python_SetConstant(d
, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH
)));
28012 SWIG_Python_SetConstant(d
, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA
)));
28013 SWIG_Python_SetConstant(d
, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA
)));
28014 SWIG_Python_SetConstant(d
, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE
)));
28015 SWIG_Python_SetConstant(d
, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA
)));
28016 SWIG_Python_SetConstant(d
, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA
)));
28017 SWIG_Python_SetConstant(d
, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC
)));
28018 SWIG_Python_SetConstant(d
, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR
)));
28019 SWIG_Python_SetConstant(d
, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR
)));
28020 SWIG_Python_SetConstant(d
, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA
)));
28021 SWIG_Python_SetConstant(d
, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS
)));
28022 SWIG_Python_SetConstant(d
, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN
)));
28023 SWIG_Python_SetConstant(d
, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN
)));
28024 SWIG_Python_SetConstant(d
, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA
)));
28025 SWIG_Python_SetConstant(d
, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA
)));
28026 SWIG_Python_SetConstant(d
, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY
)));
28027 SWIG_Python_SetConstant(d
, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU
)));
28028 SWIG_Python_SetConstant(d
, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO
)));
28029 SWIG_Python_SetConstant(d
, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY
)));
28030 SWIG_Python_SetConstant(d
, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US
)));
28031 SWIG_Python_SetConstant(d
, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA
)));
28032 SWIG_Python_SetConstant(d
, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE
)));
28033 SWIG_Python_SetConstant(d
, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI
)));
28034 SWIG_Python_SetConstant(d
, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH
)));
28035 SWIG_Python_SetConstant(d
, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND
)));
28036 SWIG_Python_SetConstant(d
, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG
)));
28037 SWIG_Python_SetConstant(d
, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK
)));
28038 SWIG_Python_SetConstant(d
, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL
)));
28039 SWIG_Python_SetConstant(d
, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR
)));
28040 SWIG_Python_SetConstant(d
, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU
)));
28041 SWIG_Python_SetConstant(d
, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI
)));
28042 SWIG_Python_SetConstant(d
, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN
)));
28043 SWIG_Python_SetConstant(d
, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA
)));
28044 SWIG_Python_SetConstant(d
, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA
)));
28045 SWIG_Python_SetConstant(d
, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA
)));
28046 SWIG_Python_SetConstant(d
, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH
)));
28047 SWIG_Python_SetConstant(d
, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN
)));
28048 SWIG_Python_SetConstant(d
, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI
)));
28049 SWIG_Python_SetConstant(d
, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR
)));
28050 SWIG_Python_SetConstant(d
, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN
)));
28051 SWIG_Python_SetConstant(d
, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU
)));
28052 SWIG_Python_SetConstant(d
, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA
)));
28053 SWIG_Python_SetConstant(d
, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN
)));
28054 SWIG_Python_SetConstant(d
, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK
)));
28055 SWIG_Python_SetConstant(d
, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC
)));
28056 SWIG_Python_SetConstant(d
, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN
)));
28057 SWIG_Python_SetConstant(d
, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE
)));
28058 SWIG_Python_SetConstant(d
, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK
)));
28059 SWIG_Python_SetConstant(d
, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH
)));
28060 SWIG_Python_SetConstant(d
, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF
)));
28061 SWIG_Python_SetConstant(d
, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA
)));
28062 SWIG_Python_SetConstant(d
, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH
)));
28063 SWIG_Python_SetConstant(d
, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA
)));
28064 SWIG_Python_SetConstant(d
, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG
)));
28065 SWIG_Python_SetConstant(d
, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU
)));
28066 SWIG_Python_SetConstant(d
, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED
)));
28067 SWIG_Python_SetConstant(d
, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER
)));
28068 SWIG_Python_SetConstant(d
, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE
)));
28069 SWIG_Python_SetConstant(d
, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY
)));
28070 SWIG_Python_SetConstant(d
, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX
)));
28071 SWIG_Python_SetConstant(d
, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP
)));
28072 SWIG_Python_SetConstant(d
, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT
)));
28073 SWIG_Python_SetConstant(d
, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT
)));
28074 SWIG_Python_SetConstant(d
, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING
)));
28075 SWIG_Python_SetConstant(d
, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT
)));
28076 SWIG_Python_SetConstant(d
, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE
)));
28077 SWIG_Python_SetConstant(d
, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT
)));
28078 SWIG_Python_SetConstant(d
, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX
)));
28079 SWIG_Python_SetConstant(d
, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS
)));
28080 SWIG_Python_SetConstant(d
, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2
)));
28081 SWIG_Python_SetConstant(d
, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC
)));
28082 SWIG_Python_SetConstant(d
, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA
)));
28083 SWIG_Python_SetConstant(d
, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA
)));
28084 SWIG_Python_SetConstant(d
, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL
)));
28085 SWIG_Python_SetConstant(d
, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT
)));
28086 SWIG_Python_SetConstant(d
, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED
)));
28087 SWIG_Python_SetConstant(d
, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED
)));
28088 SWIG_Python_SetConstant(d
, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL
)));
28089 SWIG_Python_SetConstant(d
, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL
)));
28090 SWIG_Python_SetConstant(d
, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE
)));
28091 SWIG_Python_SetConstant(d
, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK
)));
28092 SWIG_Python_SetConstant(d
, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE
)));
28093 SWIG_Python_SetConstant(d
, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN
)));
28094 SWIG_Python_SetConstant(d
, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN
)));
28095 SWIG_Python_SetConstant(d
, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY
)));
28096 SWIG_Python_SetConstant(d
, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY
)));
28097 SWIG_Python_SetConstant(d
, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY
)));
28098 SWIG_Python_SetConstant(d
, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED
)));
28099 SWIG_Python_SetConstant(d
, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT
)));
28100 SWIG_Python_SetConstant(d
, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE
)));
28101 SWIG_Python_SetConstant(d
, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK
)));
28102 SWIG_Python_SetConstant(d
, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE
)));
28103 SWIG_Python_SetConstant(d
, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN
)));
28104 SWIG_Python_SetConstant(d
, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN
)));
28105 SWIG_Python_SetConstant(d
, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY
)));
28106 SWIG_Python_SetConstant(d
, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED
)));
28107 SWIG_Python_SetConstant(d
, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE
)));
28108 SWIG_Python_SetConstant(d
, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS
)));
28109 SWIG_Python_SetConstant(d
, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS
)));
28110 SWIG_Python_SetConstant(d
, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD
)));
28111 SWIG_Python_SetConstant(d
, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC
)));
28112 SWIG_Python_SetConstant(d
, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL
)));
28113 SWIG_Python_SetConstant(d
, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL
)));
28114 SWIG_Python_SetConstant(d
, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS
)));
28115 SWIG_Python_SetConstant(d
, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK
)));
28116 SWIG_Python_SetConstant(d
, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED
)));
28117 SWIG_Python_SetConstant(d
, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN
)));
28118 SWIG_Python_SetConstant(d
, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN
)));
28119 SWIG_Python_SetConstant(d
, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY
)));
28120 SWIG_Python_SetConstant(d
, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY
)));
28121 SWIG_Python_SetConstant(d
, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY
)));
28122 SWIG_Python_SetConstant(d
, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED
)));
28123 SWIG_Python_SetConstant(d
, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT
)));
28124 SWIG_Python_SetConstant(d
, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE
)));
28125 SWIG_Python_SetConstant(d
, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT
)));
28126 PyDict_SetItemString(d
,(char*)"cvar", SWIG_globals());
28127 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get
, NullBitmap_set
);
28128 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get
, NullIcon_set
);
28129 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get
, NullCursor_set
);
28130 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get
, NullPen_set
);
28131 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get
, NullBrush_set
);
28132 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get
, NullPalette_set
);
28133 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get
, NullFont_set
);
28134 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get
, NullColour_set
);
28135 SWIG_Python_SetConstant(d
, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED
)));
28136 SWIG_Python_SetConstant(d
, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED
)));
28137 SWIG_Python_SetConstant(d
, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED
)));
28138 SWIG_Python_SetConstant(d
, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT
)));
28139 SWIG_Python_SetConstant(d
, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU
)));
28140 SWIG_Python_SetConstant(d
, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED
)));
28141 SWIG_Python_SetConstant(d
, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT
)));
28142 SWIG_Python_SetConstant(d
, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED
)));
28143 SWIG_Python_SetConstant(d
, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED
)));
28144 SWIG_Python_SetConstant(d
, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE
)));
28145 SWIG_Python_SetConstant(d
, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED
)));
28146 SWIG_Python_SetConstant(d
, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK
)));
28147 SWIG_Python_SetConstant(d
, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY
)));
28148 SWIG_Python_SetConstant(d
, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version
)));
28149 SWIG_Python_SetConstant(d
, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age
)));
28151 // Work around a chicken/egg problem in drawlist.cpp
28152 wxPyDrawList_SetAPIPtr();