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 * ----------------------------------------------------------------------------- */
14 template<class T
> class SwigValueWrapper
{
17 SwigValueWrapper() : tt(0) { }
18 SwigValueWrapper(const SwigValueWrapper
<T
>& rhs
) : tt(new T(*rhs
.tt
)) { }
19 SwigValueWrapper(const T
& t
) : tt(new T(t
)) { }
20 ~SwigValueWrapper() { delete tt
; }
21 SwigValueWrapper
& operator=(const T
& t
) { delete tt
; tt
= new T(t
); return *this; }
22 operator T
&() const { return *tt
; }
23 T
*operator&() { return tt
; }
25 SwigValueWrapper
& operator=(const SwigValueWrapper
<T
>& rhs
);
30 #ifndef SWIG_TEMPLATE_DISAMBIGUATOR
31 # if defined(__SUNPRO_CC)
32 # define SWIG_TEMPLATE_DISAMBIGUATOR template
34 # define SWIG_TEMPLATE_DISAMBIGUATOR
41 /***********************************************************************
44 * This file contains generic CAPI SWIG runtime support for pointer
47 ************************************************************************/
49 /* This should only be incremented when either the layout of swig_type_info changes,
50 or for whatever reason, the runtime changes incompatibly */
51 #define SWIG_RUNTIME_VERSION "1"
53 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
54 #ifdef SWIG_TYPE_TABLE
55 #define SWIG_QUOTE_STRING(x) #x
56 #define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
57 #define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
59 #define SWIG_TYPE_TABLE_NAME
65 #if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
66 # define SWIGINLINE inline
73 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
74 creating a static or dynamic library from the swig runtime code.
75 In 99.9% of the cases, swig just needs to declare them as 'static'.
77 But only do this if is strictly necessary, ie, if you have problems
78 with your compiler or so.
81 #define SWIGRUNTIME static
83 #ifndef SWIGRUNTIMEINLINE
84 #define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
91 typedef void *(*swig_converter_func
)(void *);
92 typedef struct swig_type_info
*(*swig_dycast_func
)(void **);
94 typedef struct swig_type_info
{
96 swig_converter_func converter
;
99 swig_dycast_func dcast
;
100 struct swig_type_info
*next
;
101 struct swig_type_info
*prev
;
105 Compare two type names skipping the space characters, therefore
106 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
108 Return 0 when the two name types are equivalent, as in
109 strncmp, but skipping ' '.
112 SWIG_TypeNameComp(const char *f1
, const char *l1
,
113 const char *f2
, const char *l2
) {
114 for (;(f1
!= l1
) && (f2
!= l2
); ++f1
, ++f2
) {
115 while ((*f1
== ' ') && (f1
!= l1
)) ++f1
;
116 while ((*f2
== ' ') && (f2
!= l2
)) ++f2
;
117 if (*f1
!= *f2
) return *f1
- *f2
;
119 return (l1
- f1
) - (l2
- f2
);
123 Check type equivalence in a name list like <name1>|<name2>|...
126 SWIG_TypeEquiv(const char *nb
, const char *tb
) {
128 const char* te
= tb
+ strlen(tb
);
130 while (!equiv
&& *ne
) {
131 for (nb
= ne
; *ne
; ++ne
) {
132 if (*ne
== '|') break;
134 equiv
= SWIG_TypeNameComp(nb
, ne
, tb
, te
) == 0;
141 Register a type mapping with the type-checking
143 SWIGRUNTIME swig_type_info
*
144 SWIG_TypeRegisterTL(swig_type_info
**tl
, swig_type_info
*ti
) {
145 swig_type_info
*tc
, *head
, *ret
, *next
;
146 /* Check to see if this type has already been registered */
149 /* check simple type equivalence */
150 int typeequiv
= (strcmp(tc
->name
, ti
->name
) == 0);
151 /* check full type equivalence, resolving typedefs */
153 /* only if tc is not a typedef (no '|' on it) */
154 if (tc
->str
&& ti
->str
&& !strstr(tc
->str
,"|")) {
155 typeequiv
= SWIG_TypeEquiv(ti
->str
,tc
->str
);
159 /* Already exists in the table. Just add additional types to the list */
160 if (ti
->clientdata
) tc
->clientdata
= ti
->clientdata
;
174 /* Build linked lists */
178 /* Patch up the rest of the links */
185 if (next
) next
->prev
= head
;
194 SWIGRUNTIME swig_type_info
*
195 SWIG_TypeCheck(const char *c
, swig_type_info
*ty
) {
197 if (!ty
) return 0; /* Void pointer */
198 s
= ty
->next
; /* First element always just a name */
200 if (strcmp(s
->name
,c
) == 0) {
201 if (s
== ty
->next
) return s
;
202 /* Move s to the top of the linked list */
203 s
->prev
->next
= s
->next
;
205 s
->next
->prev
= s
->prev
;
207 /* Insert s as second element in the list */
209 if (ty
->next
) ty
->next
->prev
= s
;
215 } while (s
&& (s
!= ty
->next
));
220 Cast a pointer up an inheritance hierarchy
222 SWIGRUNTIMEINLINE
void *
223 SWIG_TypeCast(swig_type_info
*ty
, void *ptr
) {
224 return ((!ty
) || (!ty
->converter
)) ? ptr
: (*ty
->converter
)(ptr
);
228 Dynamic pointer casting. Down an inheritance hierarchy
230 SWIGRUNTIME swig_type_info
*
231 SWIG_TypeDynamicCast(swig_type_info
*ty
, void **ptr
) {
232 swig_type_info
*lastty
= ty
;
233 if (!ty
|| !ty
->dcast
) return ty
;
234 while (ty
&& (ty
->dcast
)) {
235 ty
= (*ty
->dcast
)(ptr
);
242 Return the name associated with this type
244 SWIGRUNTIMEINLINE
const char *
245 SWIG_TypeName(const swig_type_info
*ty
) {
250 Return the pretty name associated with this type,
251 that is an unmangled type name in a form presentable to the user.
253 SWIGRUNTIME
const char *
254 SWIG_TypePrettyName(const swig_type_info
*type
) {
255 /* The "str" field contains the equivalent pretty names of the
256 type, separated by vertical-bar characters. We choose
257 to print the last name, as it is often (?) the most
259 if (type
->str
!= NULL
) {
260 const char *last_name
= type
->str
;
262 for (s
= type
->str
; *s
; s
++)
263 if (*s
== '|') last_name
= s
+1;
271 Search for a swig_type_info structure
273 SWIGRUNTIME swig_type_info
*
274 SWIG_TypeQueryTL(swig_type_info
*tl
, const char *name
) {
275 swig_type_info
*ty
= tl
;
277 if (ty
->str
&& (SWIG_TypeEquiv(ty
->str
,name
))) return ty
;
278 if (ty
->name
&& (strcmp(name
,ty
->name
) == 0)) return ty
;
285 Set the clientdata field for a type
288 SWIG_TypeClientDataTL(swig_type_info
*tl
, swig_type_info
*ti
, void *clientdata
) {
289 swig_type_info
*tc
, *equiv
;
290 if (ti
->clientdata
) return;
291 /* if (ti->clientdata == clientdata) return; */
292 ti
->clientdata
= clientdata
;
295 if (!equiv
->converter
) {
298 if ((strcmp(tc
->name
, equiv
->name
) == 0))
299 SWIG_TypeClientDataTL(tl
,tc
,clientdata
);
308 Pack binary data into a string
311 SWIG_PackData(char *c
, void *ptr
, size_t sz
) {
312 static char hex
[17] = "0123456789abcdef";
313 unsigned char *u
= (unsigned char *) ptr
;
314 const unsigned char *eu
= u
+ sz
;
315 register unsigned char uu
;
316 for (; u
!= eu
; ++u
) {
318 *(c
++) = hex
[(uu
& 0xf0) >> 4];
319 *(c
++) = hex
[uu
& 0xf];
325 Unpack binary data from a string
327 SWIGRUNTIME
const char *
328 SWIG_UnpackData(const char *c
, void *ptr
, size_t sz
) {
329 register unsigned char *u
= (unsigned char *) ptr
;
330 register const unsigned char *eu
= u
+ sz
;
331 for (; u
!= eu
; ++u
) {
332 register int d
= *(c
++);
333 register unsigned char uu
= 0;
334 if ((d
>= '0') && (d
<= '9'))
335 uu
= ((d
- '0') << 4);
336 else if ((d
>= 'a') && (d
<= 'f'))
337 uu
= ((d
- ('a'-10)) << 4);
341 if ((d
>= '0') && (d
<= '9'))
343 else if ((d
>= 'a') && (d
<= 'f'))
344 uu
|= (d
- ('a'-10));
353 This function will propagate the clientdata field of type to any new
354 swig_type_info structures that have been added into the list of
355 equivalent types. It is like calling SWIG_TypeClientData(type,
356 clientdata) a second time.
359 SWIG_PropagateClientDataTL(swig_type_info
*tl
, swig_type_info
*type
) {
360 swig_type_info
*equiv
= type
->next
;
362 if (!type
->clientdata
) return;
364 if (!equiv
->converter
) {
367 if ((strcmp(tc
->name
, equiv
->name
) == 0) && !tc
->clientdata
)
368 SWIG_TypeClientDataTL(tl
,tc
, type
->clientdata
);
377 Pack 'void *' into a string buffer.
380 SWIG_PackVoidPtr(char *buff
, void *ptr
, const char *name
, size_t bsz
) {
382 if ((2*sizeof(void *) + 2) > bsz
) return 0;
384 r
= SWIG_PackData(r
,&ptr
,sizeof(void *));
385 if (strlen(name
) + 1 > (bsz
- (r
- buff
))) return 0;
390 SWIGRUNTIME
const char *
391 SWIG_UnpackVoidPtr(const char *c
, void **ptr
, const char *name
) {
393 if (strcmp(c
,"NULL") == 0) {
400 return SWIG_UnpackData(++c
,ptr
,sizeof(void *));
404 SWIG_PackDataName(char *buff
, void *ptr
, size_t sz
, const char *name
, size_t bsz
) {
406 size_t lname
= (name
? strlen(name
) : 0);
407 if ((2*sz
+ 2 + lname
) > bsz
) return 0;
409 r
= SWIG_PackData(r
,ptr
,sz
);
411 strncpy(r
,name
,lname
+1);
418 SWIGRUNTIME
const char *
419 SWIG_UnpackDataName(const char *c
, void *ptr
, size_t sz
, const char *name
) {
421 if (strcmp(c
,"NULL") == 0) {
428 return SWIG_UnpackData(++c
,ptr
,sz
);
435 /***********************************************************************
438 * This file contains generic SWIG runtime support for pointer
439 * type checking as well as a few commonly used macros to control
442 * Author : David Beazley (beazley@cs.uchicago.edu)
444 * Copyright (c) 1999-2000, The University of Chicago
446 * This file may be freely redistributed without license or fee provided
447 * this copyright message remains intact.
448 ************************************************************************/
451 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
452 # if !defined(STATIC_LINKED)
453 # define SWIGEXPORT(a) __declspec(dllexport) a
455 # define SWIGEXPORT(a) a
458 # define SWIGEXPORT(a) a
466 /*************************************************************************/
469 /* The static type info list */
471 static swig_type_info
*swig_type_list
= 0;
472 static swig_type_info
**swig_type_list_handle
= &swig_type_list
;
475 /* Register a type mapping with the type-checking */
476 static swig_type_info
*
477 SWIG_TypeRegister(swig_type_info
*ti
) {
478 return SWIG_TypeRegisterTL(swig_type_list_handle
, ti
);
481 /* Search for a swig_type_info structure */
482 static swig_type_info
*
483 SWIG_TypeQuery(const char *name
) {
484 return SWIG_TypeQueryTL(*swig_type_list_handle
, name
);
487 /* Set the clientdata field for a type */
489 SWIG_TypeClientData(swig_type_info
*ti
, void *clientdata
) {
490 SWIG_TypeClientDataTL(*swig_type_list_handle
, ti
, clientdata
);
493 /* This function will propagate the clientdata field of type to
494 * any new swig_type_info structures that have been added into the list
495 * of equivalent types. It is like calling
496 * SWIG_TypeClientData(type, clientdata) a second time.
499 SWIG_PropagateClientData(swig_type_info
*type
) {
500 SWIG_PropagateClientDataTL(*swig_type_list_handle
, type
);
507 /* -----------------------------------------------------------------------------
508 * SWIG API. Portion that goes into the runtime
509 * ----------------------------------------------------------------------------- */
515 /* -----------------------------------------------------------------------------
516 * for internal method declarations
517 * ----------------------------------------------------------------------------- */
520 #define SWIGINTERN static
523 #ifndef SWIGINTERNSHORT
525 #define SWIGINTERNSHORT static inline
527 #define SWIGINTERNSHORT static
528 #endif /* __cplusplus */
533 Exception handling in wrappers
535 #define SWIG_fail goto fail
536 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
537 #define SWIG_append_errmsg(msg) SWIG_Python_AddErrMesg(msg,0)
538 #define SWIG_preppend_errmsg(msg) SWIG_Python_AddErrMesg(msg,1)
539 #define SWIG_type_error(type,obj) SWIG_Python_TypeError(type,obj)
540 #define SWIG_null_ref(type) SWIG_Python_NullRef(type)
545 #define SWIG_contract_assert(expr, msg) \
546 if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
548 /* -----------------------------------------------------------------------------
549 * Constant declarations
550 * ----------------------------------------------------------------------------- */
553 #define SWIG_PY_INT 1
554 #define SWIG_PY_FLOAT 2
555 #define SWIG_PY_STRING 3
556 #define SWIG_PY_POINTER 4
557 #define SWIG_PY_BINARY 5
559 /* Constant information structure */
560 typedef struct swig_const_info
{
566 swig_type_info
**ptype
;
570 /* -----------------------------------------------------------------------------
571 * Alloc. memory flags
572 * ----------------------------------------------------------------------------- */
573 #define SWIG_OLDOBJ 1
574 #define SWIG_NEWOBJ SWIG_OLDOBJ + 1
575 #define SWIG_PYSTR SWIG_NEWOBJ + 1
582 /***********************************************************************
585 * This file contains the runtime support for Python modules
586 * and includes code for managing global variables and pointer
589 * Author : David Beazley (beazley@cs.uchicago.edu)
590 ************************************************************************/
592 /* Common SWIG API */
593 #define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Python_ConvertPtr(obj, pp, type, flags)
594 #define SWIG_NewPointerObj(p, type, flags) SWIG_Python_NewPointerObj(p, type, flags)
595 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
598 /* Python-specific SWIG API */
599 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
600 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
603 /* -----------------------------------------------------------------------------
604 * Pointer declarations
605 * ----------------------------------------------------------------------------- */
607 Use SWIG_NO_COBJECT_TYPES to force the use of strings to represent
608 C/C++ pointers in the python side. Very useful for debugging, but
611 #if !defined(SWIG_NO_COBJECT_TYPES) && !defined(SWIG_COBJECT_TYPES)
612 # define SWIG_COBJECT_TYPES
615 /* Flags for pointer conversion */
616 #define SWIG_POINTER_EXCEPTION 0x1
617 #define SWIG_POINTER_DISOWN 0x2
624 /* -----------------------------------------------------------------------------
625 * Create a new pointer string
626 * ----------------------------------------------------------------------------- */
628 #ifndef SWIG_BUFFER_SIZE
629 #define SWIG_BUFFER_SIZE 1024
632 #if defined(SWIG_COBJECT_TYPES)
633 #if !defined(SWIG_COBJECT_PYTHON)
634 /* -----------------------------------------------------------------------------
635 * Implements a simple Swig Object type, and use it instead of PyCObject
636 * ----------------------------------------------------------------------------- */
644 /* Declarations for objects of type PySwigObject */
647 PySwigObject_print(PySwigObject
*v
, FILE *fp
, int flags
)
649 char result
[SWIG_BUFFER_SIZE
];
650 if (SWIG_PackVoidPtr(result
, v
->ptr
, v
->desc
, sizeof(result
))) {
651 fputs("<Swig Object at ", fp
); fputs(result
, fp
); fputs(">", fp
);
658 SWIGRUNTIME PyObject
*
659 PySwigObject_repr(PySwigObject
*v
)
661 char result
[SWIG_BUFFER_SIZE
];
662 return SWIG_PackVoidPtr(result
, v
->ptr
, v
->desc
, sizeof(result
)) ?
663 PyString_FromFormat("<Swig Object at %s>", result
) : 0;
666 SWIGRUNTIME PyObject
*
667 PySwigObject_str(PySwigObject
*v
)
669 char result
[SWIG_BUFFER_SIZE
];
670 return SWIG_PackVoidPtr(result
, v
->ptr
, v
->desc
, sizeof(result
)) ?
671 PyString_FromString(result
) : 0;
674 SWIGRUNTIME PyObject
*
675 PySwigObject_long(PySwigObject
*v
)
677 return PyLong_FromUnsignedLong((unsigned long) v
->ptr
);
680 SWIGRUNTIME PyObject
*
681 PySwigObject_oct(PySwigObject
*v
)
684 unsigned long x
= (unsigned long)v
->ptr
;
688 PyOS_snprintf(buf
, sizeof(buf
), "0%lo", x
);
689 return PyString_FromString(buf
);
692 SWIGRUNTIME PyObject
*
693 PySwigObject_hex(PySwigObject
*v
)
696 PyOS_snprintf(buf
, sizeof(buf
), "0x%lx", (unsigned long)v
->ptr
);
697 return PyString_FromString(buf
);
701 PySwigObject_compare(PySwigObject
*v
, PySwigObject
*w
)
703 int c
= strcmp(v
->desc
, w
->desc
);
709 return (i
< j
) ? -1 : (i
> j
) ? 1 : 0;
714 PySwigObject_dealloc(PySwigObject
*self
)
719 SWIGRUNTIME PyTypeObject
*
720 PySwigObject_GetType() {
721 static char PySwigObject_Type__doc__
[] =
722 "Swig object carries a C/C++ instance pointer";
724 static PyNumberMethods PySwigObject_as_number
= {
725 (binaryfunc
)0, /*nb_add*/
726 (binaryfunc
)0, /*nb_subtract*/
727 (binaryfunc
)0, /*nb_multiply*/
728 (binaryfunc
)0, /*nb_divide*/
729 (binaryfunc
)0, /*nb_remainder*/
730 (binaryfunc
)0, /*nb_divmod*/
731 (ternaryfunc
)0,/*nb_power*/
732 (unaryfunc
)0, /*nb_negative*/
733 (unaryfunc
)0, /*nb_positive*/
734 (unaryfunc
)0, /*nb_absolute*/
735 (inquiry
)0, /*nb_nonzero*/
742 (coercion
)0, /*nb_coerce*/
743 (unaryfunc
)PySwigObject_long
, /*nb_int*/
744 (unaryfunc
)PySwigObject_long
, /*nb_long*/
745 (unaryfunc
)0, /*nb_float*/
746 (unaryfunc
)PySwigObject_oct
, /*nb_oct*/
747 (unaryfunc
)PySwigObject_hex
, /*nb_hex*/
748 #if PY_VERSION_HEX >= 0x02000000
749 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
753 static int type_init
= 0;
754 static PyTypeObject PySwigObject_Type
;
758 PyObject_HEAD_INIT(&PyType_Type
)
760 "PySwigObject", /*tp_name*/
761 sizeof(PySwigObject
), /*tp_basicsize*/
764 (destructor
)PySwigObject_dealloc
, /*tp_dealloc*/
765 (printfunc
)PySwigObject_print
, /*tp_print*/
766 (getattrfunc
)0, /*tp_getattr*/
767 (setattrfunc
)0, /*tp_setattr*/
768 (cmpfunc
)PySwigObject_compare
, /*tp_compare*/
769 (reprfunc
)PySwigObject_repr
, /*tp_repr*/
770 &PySwigObject_as_number
, /*tp_as_number*/
771 0, /*tp_as_sequence*/
773 (hashfunc
)0, /*tp_hash*/
774 (ternaryfunc
)0, /*tp_call*/
775 (reprfunc
)PySwigObject_str
, /*tp_str*/
776 /* Space for future expansion */
778 PySwigObject_Type__doc__
, /* Documentation string */
779 #if PY_VERSION_HEX >= 0x02000000
783 #if PY_VERSION_HEX >= 0x02010000
784 0, /* tp_richcompare */
785 0, /* tp_weaklistoffset */
787 #if PY_VERSION_HEX >= 0x02020000
788 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
790 #if PY_VERSION_HEX >= 0x02030000
794 0,0,0,0 /* tp_alloc -> tp_next */
798 PySwigObject_Type
= tmp
;
802 return &PySwigObject_Type
;
805 SWIGRUNTIME PyObject
*
806 PySwigObject_FromVoidPtrAndDesc(void *ptr
, const char *desc
)
808 PySwigObject
*self
= PyObject_NEW(PySwigObject
, PySwigObject_GetType());
809 if (self
== NULL
) return NULL
;
812 return (PyObject
*)self
;
815 SWIGRUNTIMEINLINE
void *
816 PySwigObject_AsVoidPtr(PyObject
*self
)
818 return ((PySwigObject
*)self
)->ptr
;
821 SWIGRUNTIMEINLINE
const char *
822 PySwigObject_GetDesc(PyObject
*self
)
824 return ((PySwigObject
*)self
)->desc
;
827 SWIGRUNTIMEINLINE
int
828 PySwigObject_Check(PyObject
*op
) {
829 return ((op
)->ob_type
== PySwigObject_GetType())
830 || (strcmp((op
)->ob_type
->tp_name
,"PySwigObject") == 0);
833 /* -----------------------------------------------------------------------------
834 * Implements a simple Swig Packed type, and use it instead of string
835 * ----------------------------------------------------------------------------- */
845 PySwigPacked_print(PySwigPacked
*v
, FILE *fp
, int flags
)
847 char result
[SWIG_BUFFER_SIZE
];
848 fputs("<Swig Packed ", fp
);
849 if (SWIG_PackDataName(result
, v
->pack
, v
->size
, 0, sizeof(result
))) {
858 SWIGRUNTIME PyObject
*
859 PySwigPacked_repr(PySwigPacked
*v
)
861 char result
[SWIG_BUFFER_SIZE
];
862 if (SWIG_PackDataName(result
, v
->pack
, v
->size
, 0, sizeof(result
))) {
863 return PyString_FromFormat("<Swig Packed at %s%s>", result
, v
->desc
);
865 return PyString_FromFormat("<Swig Packed %s>", v
->desc
);
869 SWIGRUNTIME PyObject
*
870 PySwigPacked_str(PySwigPacked
*v
)
872 char result
[SWIG_BUFFER_SIZE
];
873 if (SWIG_PackDataName(result
, v
->pack
, v
->size
, 0, sizeof(result
))){
874 return PyString_FromFormat("%s%s", result
, v
->desc
);
876 return PyString_FromFormat("%s", v
->desc
);
881 PySwigPacked_compare(PySwigPacked
*v
, PySwigPacked
*w
)
883 int c
= strcmp(v
->desc
, w
->desc
);
889 int s
= (i
< j
) ? -1 : (i
> j
) ? 1 : 0;
890 return s
? s
: strncmp((char *)v
->pack
, (char *)w
->pack
, 2*v
->size
);
895 PySwigPacked_dealloc(PySwigPacked
*self
)
901 SWIGRUNTIME PyTypeObject
*
902 PySwigPacked_GetType() {
903 static char PySwigPacked_Type__doc__
[] =
904 "Swig object carries a C/C++ instance pointer";
905 static int type_init
= 0;
907 static PyTypeObject PySwigPacked_Type
;
910 PyObject_HEAD_INIT(&PyType_Type
)
912 "PySwigPacked", /*tp_name*/
913 sizeof(PySwigPacked
), /*tp_basicsize*/
916 (destructor
)PySwigPacked_dealloc
, /*tp_dealloc*/
917 (printfunc
)PySwigPacked_print
, /*tp_print*/
918 (getattrfunc
)0, /*tp_getattr*/
919 (setattrfunc
)0, /*tp_setattr*/
920 (cmpfunc
)PySwigPacked_compare
, /*tp_compare*/
921 (reprfunc
)PySwigPacked_repr
, /*tp_repr*/
923 0, /*tp_as_sequence*/
925 (hashfunc
)0, /*tp_hash*/
926 (ternaryfunc
)0, /*tp_call*/
927 (reprfunc
)PySwigPacked_str
, /*tp_str*/
928 /* Space for future expansion */
930 PySwigPacked_Type__doc__
, /* Documentation string */
931 #if PY_VERSION_HEX >= 0x02000000
935 #if PY_VERSION_HEX >= 0x02010000
936 0, /* tp_richcompare */
937 0, /* tp_weaklistoffset */
939 #if PY_VERSION_HEX >= 0x02020000
940 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
942 #if PY_VERSION_HEX >= 0x02030000
946 0,0,0,0 /* tp_alloc -> tp_next */
950 PySwigPacked_Type
= tmp
;
956 return &PySwigPacked_Type
;
959 SWIGRUNTIME PyObject
*
960 PySwigPacked_FromDataAndDesc(void *ptr
, size_t size
, const char *desc
)
962 PySwigPacked
*self
= PyObject_NEW(PySwigPacked
, PySwigPacked_GetType());
966 void *pack
= malloc(size
);
967 memcpy(pack
, ptr
, size
);
971 return (PyObject
*) self
;
975 SWIGRUNTIMEINLINE
const char *
976 PySwigPacked_UnpackData(PyObject
*obj
, void *ptr
, size_t size
)
978 PySwigPacked
*self
= (PySwigPacked
*)obj
;
979 if (self
->size
!= size
) return 0;
980 memcpy(ptr
, self
->pack
, size
);
984 SWIGRUNTIMEINLINE
const char *
985 PySwigPacked_GetDesc(PyObject
*self
)
987 return ((PySwigPacked
*)self
)->desc
;
990 SWIGRUNTIMEINLINE
int
991 PySwigPacked_Check(PyObject
*op
) {
992 return ((op
)->ob_type
== PySwigPacked_GetType())
993 || (strcmp((op
)->ob_type
->tp_name
,"PySwigPacked") == 0);
997 /* -----------------------------------------------------------------------------
998 * Use the old Python PyCObject instead of PySwigObject
999 * ----------------------------------------------------------------------------- */
1001 #define PySwigObject_GetDesc(obj) PyCObject_GetDesc(obj)
1002 #define PySwigObject_Check(obj) PyCObject_Check(obj)
1003 #define PySwigObject_AsVoidPtr(obj) PyCObject_AsVoidPtr(obj)
1004 #define PySwigObject_FromVoidPtrAndDesc(p, d) PyCObject_FromVoidPtrAndDesc(p, d, NULL)
1010 /* -----------------------------------------------------------------------------
1011 * errors manipulation
1012 * ----------------------------------------------------------------------------- */
1015 SWIG_Python_TypeError(const char *type
, PyObject
*obj
)
1018 #if defined(SWIG_COBJECT_TYPES)
1019 if (PySwigObject_Check(obj
)) {
1020 const char *otype
= (const char *) PySwigObject_GetDesc(obj
);
1022 PyErr_Format(PyExc_TypeError
, "a '%s' is expected, 'PySwigObject(%s)' is received",
1029 const char *otype
= (obj
? obj
->ob_type
->tp_name
: 0);
1031 PyObject
*str
= PyObject_Str(obj
);
1032 const char *cstr
= str
? PyString_AsString(str
) : 0;
1034 PyErr_Format(PyExc_TypeError
, "a '%s' is expected, '%s(%s)' is received",
1037 PyErr_Format(PyExc_TypeError
, "a '%s' is expected, '%s' is received",
1044 PyErr_Format(PyExc_TypeError
, "a '%s' is expected", type
);
1046 PyErr_Format(PyExc_TypeError
, "unexpected type is received");
1050 SWIGRUNTIMEINLINE
void
1051 SWIG_Python_NullRef(const char *type
)
1054 PyErr_Format(PyExc_TypeError
, "null reference of type '%s' was received",type
);
1056 PyErr_Format(PyExc_TypeError
, "null reference was received");
1061 SWIG_Python_AddErrMesg(const char* mesg
, int infront
)
1063 if (PyErr_Occurred()) {
1065 PyObject
*value
= 0;
1066 PyObject
*traceback
= 0;
1067 PyErr_Fetch(&type
, &value
, &traceback
);
1069 PyObject
*old_str
= PyObject_Str(value
);
1073 PyErr_Format(type
, "%s %s", mesg
, PyString_AsString(old_str
));
1075 PyErr_Format(type
, "%s %s", PyString_AsString(old_str
), mesg
);
1086 SWIG_Python_ArgFail(int argnum
)
1088 if (PyErr_Occurred()) {
1089 /* add information about failing argument */
1091 sprintf(mesg
, "argument number %d:", argnum
);
1092 return SWIG_Python_AddErrMesg(mesg
, 1);
1099 /* -----------------------------------------------------------------------------
1100 * pointers/data manipulation
1101 * ----------------------------------------------------------------------------- */
1103 /* Convert a pointer value */
1105 SWIG_Python_ConvertPtr(PyObject
*obj
, void **ptr
, swig_type_info
*ty
, int flags
) {
1108 static PyObject
*SWIG_this
= 0;
1110 PyObject
*pyobj
= 0;
1114 if (obj
== Py_None
) {
1119 #ifdef SWIG_COBJECT_TYPES
1120 if (!(PySwigObject_Check(obj
))) {
1122 SWIG_this
= PyString_FromString("this");
1124 obj
= PyObject_GetAttr(obj
,SWIG_this
);
1126 if (!obj
) goto type_error
;
1127 if (!PySwigObject_Check(obj
)) {
1132 vptr
= PySwigObject_AsVoidPtr(obj
);
1133 c
= (const char *) PySwigObject_GetDesc(obj
);
1134 if (newref
) { Py_DECREF(obj
); }
1137 if (!(PyString_Check(obj
))) {
1139 SWIG_this
= PyString_FromString("this");
1141 obj
= PyObject_GetAttr(obj
,SWIG_this
);
1143 if (!obj
) goto type_error
;
1144 if (!PyString_Check(obj
)) {
1149 c
= PyString_AS_STRING(obj
);
1150 /* Pointer values must start with leading underscore */
1151 c
= SWIG_UnpackVoidPtr(c
, &vptr
, ty
->name
);
1152 if (newref
) { Py_DECREF(obj
); }
1153 if (!c
) goto type_error
;
1159 tc
= SWIG_TypeCheck(c
,ty
);
1160 if (!tc
) goto type_error
;
1161 *ptr
= SWIG_TypeCast(tc
,vptr
);
1166 if ((pyobj
) && (flags
& SWIG_POINTER_DISOWN
)) {
1167 PyObject_SetAttrString(pyobj
,(char*)"thisown",Py_False
);
1173 if (pyobj
&& !obj
) {
1175 if (PyCFunction_Check(obj
)) {
1176 /* here we get the method pointer for callbacks */
1177 char *doc
= (((PyCFunctionObject
*)obj
) -> m_ml
-> ml_doc
);
1178 c
= doc
? strstr(doc
, "swig_ptr: ") : 0;
1180 c
= SWIG_UnpackVoidPtr(c
+ 10, &vptr
, ty
->name
);
1181 if (!c
) goto type_error
;
1186 if (flags
& SWIG_POINTER_EXCEPTION
) {
1188 SWIG_Python_TypeError(SWIG_TypePrettyName(ty
), obj
);
1190 SWIG_Python_TypeError("C/C++ pointer", obj
);
1196 /* Convert a pointer value, signal an exception on a type mismatch */
1198 SWIG_Python_MustGetPtr(PyObject
*obj
, swig_type_info
*ty
, int argnum
, int flags
) {
1200 if (SWIG_Python_ConvertPtr(obj
, &result
, ty
, flags
) == -1) {
1202 if (flags
& SWIG_POINTER_EXCEPTION
) {
1203 SWIG_Python_TypeError(SWIG_TypePrettyName(ty
), obj
);
1204 SWIG_Python_ArgFail(argnum
);
1210 /* Convert a packed value value */
1212 SWIG_Python_ConvertPacked(PyObject
*obj
, void *ptr
, size_t sz
, swig_type_info
*ty
, int flags
) {
1216 #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1217 c
= PySwigPacked_UnpackData(obj
, ptr
, sz
);
1219 if ((!obj
) || (!PyString_Check(obj
))) goto type_error
;
1220 c
= PyString_AS_STRING(obj
);
1221 /* Pointer values must start with leading underscore */
1222 c
= SWIG_UnpackDataName(c
, ptr
, sz
, ty
->name
);
1224 if (!c
) goto type_error
;
1226 tc
= SWIG_TypeCheck(c
,ty
);
1227 if (!tc
) goto type_error
;
1233 if (flags
& SWIG_POINTER_EXCEPTION
) {
1235 SWIG_Python_TypeError(SWIG_TypePrettyName(ty
), obj
);
1237 SWIG_Python_TypeError("C/C++ packed data", obj
);
1243 /* Create a new array object */
1244 SWIGRUNTIME PyObject
*
1245 SWIG_Python_NewPointerObj(void *ptr
, swig_type_info
*type
, int own
) {
1251 #ifdef SWIG_COBJECT_TYPES
1252 robj
= PySwigObject_FromVoidPtrAndDesc((void *) ptr
, (char *)type
->name
);
1255 char result
[SWIG_BUFFER_SIZE
];
1256 robj
= SWIG_PackVoidPtr(result
, ptr
, type
->name
, sizeof(result
)) ?
1257 PyString_FromString(result
) : 0;
1260 if (!robj
|| (robj
== Py_None
)) return robj
;
1261 if (type
->clientdata
) {
1263 PyObject
*args
= Py_BuildValue((char*)"(O)", robj
);
1265 inst
= PyObject_CallObject((PyObject
*) type
->clientdata
, args
);
1269 PyObject_SetAttrString(inst
,(char*)"thisown",Py_True
);
1277 SWIGRUNTIME PyObject
*
1278 SWIG_Python_NewPackedObj(void *ptr
, size_t sz
, swig_type_info
*type
) {
1284 #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1285 robj
= PySwigPacked_FromDataAndDesc((void *) ptr
, sz
, (char *)type
->name
);
1288 char result
[SWIG_BUFFER_SIZE
];
1289 robj
= SWIG_PackDataName(result
, ptr
, sz
, type
->name
, sizeof(result
)) ?
1290 PyString_FromString(result
) : 0;
1296 /* -----------------------------------------------------------------------------*
1298 * -----------------------------------------------------------------------------*/
1300 #ifdef SWIG_LINK_RUNTIME
1301 void *SWIG_ReturnGlobalTypeList(void *);
1304 SWIGRUNTIME swig_type_info
**
1305 SWIG_Python_GetTypeListHandle() {
1306 static void *type_pointer
= (void *)0;
1307 /* first check if module already created */
1308 if (!type_pointer
) {
1309 #ifdef SWIG_LINK_RUNTIME
1310 type_pointer
= SWIG_ReturnGlobalTypeList((void *)0);
1312 type_pointer
= PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION
,
1313 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME
);
1314 if (PyErr_Occurred()) {
1316 type_pointer
= (void *)0;
1320 return (swig_type_info
**) type_pointer
;
1324 Search for a swig_type_info structure
1326 SWIGRUNTIMEINLINE swig_type_info
*
1327 SWIG_Python_GetTypeList() {
1328 swig_type_info
**tlh
= SWIG_Python_GetTypeListHandle();
1329 return tlh
? *tlh
: (swig_type_info
*)0;
1332 #define SWIG_Runtime_GetTypeList SWIG_Python_GetTypeList
1339 /* -------- TYPES TABLE (BEGIN) -------- */
1341 #define SWIGTYPE_p_wxObject swig_types[0]
1342 #define SWIGTYPE_p_unsigned_char swig_types[1]
1343 #define SWIGTYPE_p_wxWindow swig_types[2]
1344 #define SWIGTYPE_p_wxValidator swig_types[3]
1345 #define SWIGTYPE_p_wxCommandEvent swig_types[4]
1346 #define SWIGTYPE_p_unsigned_long swig_types[5]
1347 #define SWIGTYPE_p_unsigned_int swig_types[6]
1348 #define SWIGTYPE_unsigned_int swig_types[7]
1349 #define SWIGTYPE_p_form_ops_t swig_types[8]
1350 #define SWIGTYPE_p_wxDuplexMode swig_types[9]
1351 #define SWIGTYPE_p_char swig_types[10]
1352 #define SWIGTYPE_p_wxWebKitStateChangedEvent swig_types[11]
1353 #define SWIGTYPE_p_wxEvtHandler swig_types[12]
1354 #define SWIGTYPE_std__ptrdiff_t swig_types[13]
1355 #define SWIGTYPE_ptrdiff_t swig_types[14]
1356 #define SWIGTYPE_p_wxControl swig_types[15]
1357 #define SWIGTYPE_p_wxEvent swig_types[16]
1358 #define SWIGTYPE_p_wxPaperSize swig_types[17]
1359 #define SWIGTYPE_p_int swig_types[18]
1360 #define SWIGTYPE_p_wxWebKitCtrl swig_types[19]
1361 static swig_type_info
*swig_types
[21];
1363 /* -------- TYPES TABLE (END) -------- */
1366 /*-----------------------------------------------
1367 @(target):= _webkit.so
1368 ------------------------------------------------*/
1369 #define SWIG_init init_webkit
1371 #define SWIG_name "_webkit"
1374 #include "wx/wxPython/wxPython.h"
1375 #include "wx/wxPython/pyclasses.h"
1376 #include "wx/wxPython/pyistream.h"
1378 #ifdef __WXMAC__ // avoid a bug in Carbon headers
1379 #define scalb scalbn
1383 #include "wx/html/webkit.h"
1386 static const wxString
wxPyEmptyString(wxEmptyString
);
1387 static const wxString
wxPyWebKitNameStr(wxT("webkitctrl"));
1390 // a dummy class for ports that don't have wxWebKitCtrl
1391 class wxWebKitCtrl
: public wxControl
1394 wxWebKitCtrl(wxWindow
*parent
,
1396 const wxString
& strURL
,
1397 const wxPoint
& pos
= wxDefaultPosition
,
1398 const wxSize
& size
= wxDefaultSize
, long style
= 0,
1399 const wxValidator
& validator
= wxDefaultValidator
,
1400 const wxString
& name
= wxPyWebKitNameStr
)
1401 { wxPyRaiseNotImplemented(); }
1403 wxWebKitCtrl() { wxPyRaiseNotImplemented(); }
1405 bool Create(wxWindow
*parent
,
1407 const wxString
& strURL
,
1408 const wxPoint
& pos
= wxDefaultPosition
,
1409 const wxSize
& size
= wxDefaultSize
, long style
= 0,
1410 const wxValidator
& validator
= wxDefaultValidator
,
1411 const wxString
& name
= wxPyWebKitNameStr
)
1414 void LoadURL(const wxString
&url
) {}
1416 bool CanGoBack() { return false; }
1417 bool CanGoForward() { return false; }
1418 bool GoBack() { return false; }
1419 bool GoForward() { return false; }
1422 bool CanGetPageSource() { return false; }
1423 wxString
GetPageSource() { return wxEmptyString
; }
1424 void SetPageSource(wxString
& source
, const wxString
& baseUrl
= wxEmptyString
) {}
1429 wxWEBKIT_STATE_START
= 0,
1430 wxWEBKIT_STATE_NEGOTIATING
= 0,
1431 wxWEBKIT_STATE_REDIRECTING
= 0,
1432 wxWEBKIT_STATE_TRANSFERRING
= 0,
1433 wxWEBKIT_STATE_STOP
= 0,
1434 wxWEBKIT_STATE_FAILED
= 0,
1436 wxEVT_WEBKIT_STATE_CHANGED
= 0
1439 class wxWebKitStateChangedEvent
: public wxCommandEvent
1442 wxWebKitStateChangedEvent( wxWindow
* win
= NULL
)
1443 { wxPyRaiseNotImplemented(); }
1445 int GetState() { return 0; }
1446 void SetState(const int state
) {}
1447 wxString
GetURL() { return wxEmptyString
; }
1448 void SetURL(const wxString
& url
) {}
1459 SWIG_CheckLongInRange(long value
, long min_value
, long max_value
,
1462 if (value
< min_value
) {
1464 PyErr_Format(PyExc_OverflowError
,
1465 "value %ld is less than '%s' minimum %ld",
1466 value
, errmsg
, min_value
);
1469 } else if (value
> max_value
) {
1471 PyErr_Format(PyExc_OverflowError
,
1472 "value %ld is greater than '%s' maximum %ld",
1473 value
, errmsg
, max_value
);
1482 SWIG_AsVal_long(PyObject
* obj
, long* val
)
1484 if (PyNumber_Check(obj
)) {
1485 if (val
) *val
= PyInt_AsLong(obj
);
1489 SWIG_type_error("number", obj
);
1495 #if INT_MAX != LONG_MAX
1497 SWIG_AsVal_int(PyObject
*obj
, int *val
)
1499 const char* errmsg
= val
? "int" : (char*)0;
1501 if (SWIG_AsVal_long(obj
, &v
)) {
1502 if (SWIG_CheckLongInRange(v
, INT_MIN
,INT_MAX
, errmsg
)) {
1503 if (val
) *val
= (int)(v
);
1512 SWIG_type_error(errmsg
, obj
);
1518 SWIG_AsVal_int(PyObject
*obj
, int *val
)
1520 return SWIG_AsVal_long(obj
,(long*)val
);
1526 SWIG_As_int(PyObject
* obj
)
1529 if (!SWIG_AsVal_int(obj
, &v
)) {
1531 this is needed to make valgrind/purify happier.
1533 memset((void*)&v
, 0, sizeof(int));
1539 SWIGINTERNSHORT
long
1540 SWIG_As_long(PyObject
* obj
)
1543 if (!SWIG_AsVal_long(obj
, &v
)) {
1545 this is needed to make valgrind/purify happier.
1547 memset((void*)&v
, 0, sizeof(long));
1554 SWIG_Check_int(PyObject
* obj
)
1556 return SWIG_AsVal_int(obj
, (int*)0);
1561 SWIG_Check_long(PyObject
* obj
)
1563 return SWIG_AsVal_long(obj
, (long*)0);
1567 /*@/opt/swig/share/swig/1.3.24/python/pymacros.swg,66,SWIG_define@*/
1568 #define SWIG_From_int PyInt_FromLong
1574 static int _wrap_WebKitNameStr_set(PyObject
*) {
1575 PyErr_SetString(PyExc_TypeError
,"Variable WebKitNameStr is read-only.");
1580 static PyObject
*_wrap_WebKitNameStr_get(void) {
1585 pyobj
= PyUnicode_FromWideChar((&wxPyWebKitNameStr
)->c_str(), (&wxPyWebKitNameStr
)->Len());
1587 pyobj
= PyString_FromStringAndSize((&wxPyWebKitNameStr
)->c_str(), (&wxPyWebKitNameStr
)->Len());
1594 static PyObject
*_wrap_new_WebKitCtrl(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1595 PyObject
*resultobj
;
1596 wxWindow
*arg1
= (wxWindow
*) 0 ;
1597 int arg2
= (int) -1 ;
1598 wxString
const &arg3_defvalue
= wxPyEmptyString
;
1599 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
1600 wxPoint
const &arg4_defvalue
= wxDefaultPosition
;
1601 wxPoint
*arg4
= (wxPoint
*) &arg4_defvalue
;
1602 wxSize
const &arg5_defvalue
= wxDefaultSize
;
1603 wxSize
*arg5
= (wxSize
*) &arg5_defvalue
;
1604 long arg6
= (long) 0 ;
1605 wxValidator
const &arg7_defvalue
= wxDefaultValidator
;
1606 wxValidator
*arg7
= (wxValidator
*) &arg7_defvalue
;
1607 wxString
const &arg8_defvalue
= wxPyWebKitNameStr
;
1608 wxString
*arg8
= (wxString
*) &arg8_defvalue
;
1609 wxWebKitCtrl
*result
;
1610 bool temp3
= false ;
1613 bool temp8
= false ;
1614 PyObject
* obj0
= 0 ;
1615 PyObject
* obj1
= 0 ;
1616 PyObject
* obj2
= 0 ;
1617 PyObject
* obj3
= 0 ;
1618 PyObject
* obj4
= 0 ;
1619 PyObject
* obj5
= 0 ;
1620 PyObject
* obj6
= 0 ;
1621 PyObject
* obj7
= 0 ;
1623 (char *) "parent",(char *) "winID",(char *) "strURL",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1626 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OOOOOOO:new_WebKitCtrl",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
,&obj5
,&obj6
,&obj7
)) goto fail
;
1627 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION
| 0);
1628 if (SWIG_arg_fail(1)) SWIG_fail
;
1631 arg2
= (int)(SWIG_As_int(obj1
));
1632 if (SWIG_arg_fail(2)) SWIG_fail
;
1637 arg3
= wxString_in_helper(obj2
);
1638 if (arg3
== NULL
) SWIG_fail
;
1645 if ( ! wxPoint_helper(obj3
, &arg4
)) SWIG_fail
;
1651 if ( ! wxSize_helper(obj4
, &arg5
)) SWIG_fail
;
1656 arg6
= (long)(SWIG_As_long(obj5
));
1657 if (SWIG_arg_fail(6)) SWIG_fail
;
1662 SWIG_Python_ConvertPtr(obj6
, (void **)&arg7
, SWIGTYPE_p_wxValidator
, SWIG_POINTER_EXCEPTION
| 0);
1663 if (SWIG_arg_fail(7)) SWIG_fail
;
1665 SWIG_null_ref("wxValidator");
1667 if (SWIG_arg_fail(7)) SWIG_fail
;
1672 arg8
= wxString_in_helper(obj7
);
1673 if (arg8
== NULL
) SWIG_fail
;
1678 if (!wxPyCheckForApp()) SWIG_fail
;
1679 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1680 result
= (wxWebKitCtrl
*)new wxWebKitCtrl(arg1
,arg2
,(wxString
const &)*arg3
,(wxPoint
const &)*arg4
,(wxSize
const &)*arg5
,arg6
,(wxValidator
const &)*arg7
,(wxString
const &)*arg8
);
1682 wxPyEndAllowThreads(__tstate
);
1683 if (PyErr_Occurred()) SWIG_fail
;
1685 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxWebKitCtrl
, 1);
1708 static PyObject
*_wrap_new_PreWebKitCtrl(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1709 PyObject
*resultobj
;
1710 wxWebKitCtrl
*result
;
1715 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_PreWebKitCtrl",kwnames
)) goto fail
;
1717 if (!wxPyCheckForApp()) SWIG_fail
;
1718 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1719 result
= (wxWebKitCtrl
*)new wxWebKitCtrl();
1721 wxPyEndAllowThreads(__tstate
);
1722 if (PyErr_Occurred()) SWIG_fail
;
1724 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxWebKitCtrl
, 1);
1731 static PyObject
*_wrap_WebKitCtrl_Create(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1732 PyObject
*resultobj
;
1733 wxWebKitCtrl
*arg1
= (wxWebKitCtrl
*) 0 ;
1734 wxWindow
*arg2
= (wxWindow
*) 0 ;
1735 int arg3
= (int) -1 ;
1736 wxString
const &arg4_defvalue
= wxPyEmptyString
;
1737 wxString
*arg4
= (wxString
*) &arg4_defvalue
;
1738 wxPoint
const &arg5_defvalue
= wxDefaultPosition
;
1739 wxPoint
*arg5
= (wxPoint
*) &arg5_defvalue
;
1740 wxSize
const &arg6_defvalue
= wxDefaultSize
;
1741 wxSize
*arg6
= (wxSize
*) &arg6_defvalue
;
1742 long arg7
= (long) 0 ;
1743 wxValidator
const &arg8_defvalue
= wxDefaultValidator
;
1744 wxValidator
*arg8
= (wxValidator
*) &arg8_defvalue
;
1745 wxString
const &arg9_defvalue
= wxPyWebKitNameStr
;
1746 wxString
*arg9
= (wxString
*) &arg9_defvalue
;
1748 bool temp4
= false ;
1751 bool temp9
= false ;
1752 PyObject
* obj0
= 0 ;
1753 PyObject
* obj1
= 0 ;
1754 PyObject
* obj2
= 0 ;
1755 PyObject
* obj3
= 0 ;
1756 PyObject
* obj4
= 0 ;
1757 PyObject
* obj5
= 0 ;
1758 PyObject
* obj6
= 0 ;
1759 PyObject
* obj7
= 0 ;
1760 PyObject
* obj8
= 0 ;
1762 (char *) "self",(char *) "parent",(char *) "winID",(char *) "strURL",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1765 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|OOOOOOO:WebKitCtrl_Create",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
,&obj5
,&obj6
,&obj7
,&obj8
)) goto fail
;
1766 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxWebKitCtrl
, SWIG_POINTER_EXCEPTION
| 0);
1767 if (SWIG_arg_fail(1)) SWIG_fail
;
1768 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION
| 0);
1769 if (SWIG_arg_fail(2)) SWIG_fail
;
1772 arg3
= (int)(SWIG_As_int(obj2
));
1773 if (SWIG_arg_fail(3)) SWIG_fail
;
1778 arg4
= wxString_in_helper(obj3
);
1779 if (arg4
== NULL
) SWIG_fail
;
1786 if ( ! wxPoint_helper(obj4
, &arg5
)) SWIG_fail
;
1792 if ( ! wxSize_helper(obj5
, &arg6
)) SWIG_fail
;
1797 arg7
= (long)(SWIG_As_long(obj6
));
1798 if (SWIG_arg_fail(7)) SWIG_fail
;
1803 SWIG_Python_ConvertPtr(obj7
, (void **)&arg8
, SWIGTYPE_p_wxValidator
, SWIG_POINTER_EXCEPTION
| 0);
1804 if (SWIG_arg_fail(8)) SWIG_fail
;
1806 SWIG_null_ref("wxValidator");
1808 if (SWIG_arg_fail(8)) SWIG_fail
;
1813 arg9
= wxString_in_helper(obj8
);
1814 if (arg9
== NULL
) SWIG_fail
;
1819 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1820 result
= (bool)(arg1
)->Create(arg2
,arg3
,(wxString
const &)*arg4
,(wxPoint
const &)*arg5
,(wxSize
const &)*arg6
,arg7
,(wxValidator
const &)*arg8
,(wxString
const &)*arg9
);
1822 wxPyEndAllowThreads(__tstate
);
1823 if (PyErr_Occurred()) SWIG_fail
;
1826 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
1850 static PyObject
*_wrap_WebKitCtrl_LoadURL(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1851 PyObject
*resultobj
;
1852 wxWebKitCtrl
*arg1
= (wxWebKitCtrl
*) 0 ;
1853 wxString
*arg2
= 0 ;
1854 bool temp2
= false ;
1855 PyObject
* obj0
= 0 ;
1856 PyObject
* obj1
= 0 ;
1858 (char *) "self",(char *) "url", NULL
1861 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:WebKitCtrl_LoadURL",kwnames
,&obj0
,&obj1
)) goto fail
;
1862 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxWebKitCtrl
, SWIG_POINTER_EXCEPTION
| 0);
1863 if (SWIG_arg_fail(1)) SWIG_fail
;
1865 arg2
= wxString_in_helper(obj1
);
1866 if (arg2
== NULL
) SWIG_fail
;
1870 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1871 (arg1
)->LoadURL((wxString
const &)*arg2
);
1873 wxPyEndAllowThreads(__tstate
);
1874 if (PyErr_Occurred()) SWIG_fail
;
1876 Py_INCREF(Py_None
); resultobj
= Py_None
;
1891 static PyObject
*_wrap_WebKitCtrl_CanGoBack(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1892 PyObject
*resultobj
;
1893 wxWebKitCtrl
*arg1
= (wxWebKitCtrl
*) 0 ;
1895 PyObject
* obj0
= 0 ;
1897 (char *) "self", NULL
1900 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:WebKitCtrl_CanGoBack",kwnames
,&obj0
)) goto fail
;
1901 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxWebKitCtrl
, SWIG_POINTER_EXCEPTION
| 0);
1902 if (SWIG_arg_fail(1)) SWIG_fail
;
1904 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1905 result
= (bool)(arg1
)->CanGoBack();
1907 wxPyEndAllowThreads(__tstate
);
1908 if (PyErr_Occurred()) SWIG_fail
;
1911 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
1919 static PyObject
*_wrap_WebKitCtrl_CanGoForward(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1920 PyObject
*resultobj
;
1921 wxWebKitCtrl
*arg1
= (wxWebKitCtrl
*) 0 ;
1923 PyObject
* obj0
= 0 ;
1925 (char *) "self", NULL
1928 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:WebKitCtrl_CanGoForward",kwnames
,&obj0
)) goto fail
;
1929 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxWebKitCtrl
, SWIG_POINTER_EXCEPTION
| 0);
1930 if (SWIG_arg_fail(1)) SWIG_fail
;
1932 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1933 result
= (bool)(arg1
)->CanGoForward();
1935 wxPyEndAllowThreads(__tstate
);
1936 if (PyErr_Occurred()) SWIG_fail
;
1939 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
1947 static PyObject
*_wrap_WebKitCtrl_GoBack(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1948 PyObject
*resultobj
;
1949 wxWebKitCtrl
*arg1
= (wxWebKitCtrl
*) 0 ;
1951 PyObject
* obj0
= 0 ;
1953 (char *) "self", NULL
1956 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:WebKitCtrl_GoBack",kwnames
,&obj0
)) goto fail
;
1957 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxWebKitCtrl
, SWIG_POINTER_EXCEPTION
| 0);
1958 if (SWIG_arg_fail(1)) SWIG_fail
;
1960 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1961 result
= (bool)(arg1
)->GoBack();
1963 wxPyEndAllowThreads(__tstate
);
1964 if (PyErr_Occurred()) SWIG_fail
;
1967 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
1975 static PyObject
*_wrap_WebKitCtrl_GoForward(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1976 PyObject
*resultobj
;
1977 wxWebKitCtrl
*arg1
= (wxWebKitCtrl
*) 0 ;
1979 PyObject
* obj0
= 0 ;
1981 (char *) "self", NULL
1984 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:WebKitCtrl_GoForward",kwnames
,&obj0
)) goto fail
;
1985 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxWebKitCtrl
, SWIG_POINTER_EXCEPTION
| 0);
1986 if (SWIG_arg_fail(1)) SWIG_fail
;
1988 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1989 result
= (bool)(arg1
)->GoForward();
1991 wxPyEndAllowThreads(__tstate
);
1992 if (PyErr_Occurred()) SWIG_fail
;
1995 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2003 static PyObject
*_wrap_WebKitCtrl_Reload(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2004 PyObject
*resultobj
;
2005 wxWebKitCtrl
*arg1
= (wxWebKitCtrl
*) 0 ;
2006 PyObject
* obj0
= 0 ;
2008 (char *) "self", NULL
2011 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:WebKitCtrl_Reload",kwnames
,&obj0
)) goto fail
;
2012 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxWebKitCtrl
, SWIG_POINTER_EXCEPTION
| 0);
2013 if (SWIG_arg_fail(1)) SWIG_fail
;
2015 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2018 wxPyEndAllowThreads(__tstate
);
2019 if (PyErr_Occurred()) SWIG_fail
;
2021 Py_INCREF(Py_None
); resultobj
= Py_None
;
2028 static PyObject
*_wrap_WebKitCtrl_Stop(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2029 PyObject
*resultobj
;
2030 wxWebKitCtrl
*arg1
= (wxWebKitCtrl
*) 0 ;
2031 PyObject
* obj0
= 0 ;
2033 (char *) "self", NULL
2036 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:WebKitCtrl_Stop",kwnames
,&obj0
)) goto fail
;
2037 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxWebKitCtrl
, SWIG_POINTER_EXCEPTION
| 0);
2038 if (SWIG_arg_fail(1)) SWIG_fail
;
2040 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2043 wxPyEndAllowThreads(__tstate
);
2044 if (PyErr_Occurred()) SWIG_fail
;
2046 Py_INCREF(Py_None
); resultobj
= Py_None
;
2053 static PyObject
*_wrap_WebKitCtrl_CanGetPageSource(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2054 PyObject
*resultobj
;
2055 wxWebKitCtrl
*arg1
= (wxWebKitCtrl
*) 0 ;
2057 PyObject
* obj0
= 0 ;
2059 (char *) "self", NULL
2062 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:WebKitCtrl_CanGetPageSource",kwnames
,&obj0
)) goto fail
;
2063 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxWebKitCtrl
, SWIG_POINTER_EXCEPTION
| 0);
2064 if (SWIG_arg_fail(1)) SWIG_fail
;
2066 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2067 result
= (bool)(arg1
)->CanGetPageSource();
2069 wxPyEndAllowThreads(__tstate
);
2070 if (PyErr_Occurred()) SWIG_fail
;
2073 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2081 static PyObject
*_wrap_WebKitCtrl_GetPageSource(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2082 PyObject
*resultobj
;
2083 wxWebKitCtrl
*arg1
= (wxWebKitCtrl
*) 0 ;
2085 PyObject
* obj0
= 0 ;
2087 (char *) "self", NULL
2090 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:WebKitCtrl_GetPageSource",kwnames
,&obj0
)) goto fail
;
2091 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxWebKitCtrl
, SWIG_POINTER_EXCEPTION
| 0);
2092 if (SWIG_arg_fail(1)) SWIG_fail
;
2094 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2095 result
= (arg1
)->GetPageSource();
2097 wxPyEndAllowThreads(__tstate
);
2098 if (PyErr_Occurred()) SWIG_fail
;
2102 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2104 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2113 static PyObject
*_wrap_WebKitCtrl_SetPageSource(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2114 PyObject
*resultobj
;
2115 wxWebKitCtrl
*arg1
= (wxWebKitCtrl
*) 0 ;
2116 wxString
*arg2
= 0 ;
2117 wxString
const &arg3_defvalue
= wxPyEmptyString
;
2118 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
2119 bool temp2
= false ;
2120 bool temp3
= false ;
2121 PyObject
* obj0
= 0 ;
2122 PyObject
* obj1
= 0 ;
2123 PyObject
* obj2
= 0 ;
2125 (char *) "self",(char *) "source",(char *) "baseUrl", NULL
2128 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:WebKitCtrl_SetPageSource",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2129 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxWebKitCtrl
, SWIG_POINTER_EXCEPTION
| 0);
2130 if (SWIG_arg_fail(1)) SWIG_fail
;
2132 arg2
= wxString_in_helper(obj1
);
2133 if (arg2
== NULL
) SWIG_fail
;
2138 arg3
= wxString_in_helper(obj2
);
2139 if (arg3
== NULL
) SWIG_fail
;
2144 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2145 (arg1
)->SetPageSource(*arg2
,(wxString
const &)*arg3
);
2147 wxPyEndAllowThreads(__tstate
);
2148 if (PyErr_Occurred()) SWIG_fail
;
2150 Py_INCREF(Py_None
); resultobj
= Py_None
;
2173 static PyObject
* WebKitCtrl_swigregister(PyObject
*, PyObject
*args
) {
2175 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
2176 SWIG_TypeClientData(SWIGTYPE_p_wxWebKitCtrl
, obj
);
2178 return Py_BuildValue((char *)"");
2180 static PyObject
*_wrap_new_WebKitStateChangedEvent(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2181 PyObject
*resultobj
;
2182 wxWindow
*arg1
= (wxWindow
*) NULL
;
2183 wxWebKitStateChangedEvent
*result
;
2184 PyObject
* obj0
= 0 ;
2186 (char *) "win", NULL
2189 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|O:new_WebKitStateChangedEvent",kwnames
,&obj0
)) goto fail
;
2191 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION
| 0);
2192 if (SWIG_arg_fail(1)) SWIG_fail
;
2195 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2196 result
= (wxWebKitStateChangedEvent
*)new wxWebKitStateChangedEvent(arg1
);
2198 wxPyEndAllowThreads(__tstate
);
2199 if (PyErr_Occurred()) SWIG_fail
;
2201 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxWebKitStateChangedEvent
, 1);
2208 static PyObject
*_wrap_WebKitStateChangedEvent_GetState(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2209 PyObject
*resultobj
;
2210 wxWebKitStateChangedEvent
*arg1
= (wxWebKitStateChangedEvent
*) 0 ;
2212 PyObject
* obj0
= 0 ;
2214 (char *) "self", NULL
2217 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:WebKitStateChangedEvent_GetState",kwnames
,&obj0
)) goto fail
;
2218 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxWebKitStateChangedEvent
, SWIG_POINTER_EXCEPTION
| 0);
2219 if (SWIG_arg_fail(1)) SWIG_fail
;
2221 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2222 result
= (int)(arg1
)->GetState();
2224 wxPyEndAllowThreads(__tstate
);
2225 if (PyErr_Occurred()) SWIG_fail
;
2228 resultobj
= SWIG_From_int((int)(result
));
2236 static PyObject
*_wrap_WebKitStateChangedEvent_SetState(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2237 PyObject
*resultobj
;
2238 wxWebKitStateChangedEvent
*arg1
= (wxWebKitStateChangedEvent
*) 0 ;
2240 PyObject
* obj0
= 0 ;
2241 PyObject
* obj1
= 0 ;
2243 (char *) "self",(char *) "state", NULL
2246 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:WebKitStateChangedEvent_SetState",kwnames
,&obj0
,&obj1
)) goto fail
;
2247 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxWebKitStateChangedEvent
, SWIG_POINTER_EXCEPTION
| 0);
2248 if (SWIG_arg_fail(1)) SWIG_fail
;
2250 arg2
= (int const)(SWIG_As_int(obj1
));
2251 if (SWIG_arg_fail(2)) SWIG_fail
;
2254 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2255 (arg1
)->SetState(arg2
);
2257 wxPyEndAllowThreads(__tstate
);
2258 if (PyErr_Occurred()) SWIG_fail
;
2260 Py_INCREF(Py_None
); resultobj
= Py_None
;
2267 static PyObject
*_wrap_WebKitStateChangedEvent_GetURL(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2268 PyObject
*resultobj
;
2269 wxWebKitStateChangedEvent
*arg1
= (wxWebKitStateChangedEvent
*) 0 ;
2271 PyObject
* obj0
= 0 ;
2273 (char *) "self", NULL
2276 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:WebKitStateChangedEvent_GetURL",kwnames
,&obj0
)) goto fail
;
2277 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxWebKitStateChangedEvent
, SWIG_POINTER_EXCEPTION
| 0);
2278 if (SWIG_arg_fail(1)) SWIG_fail
;
2280 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2281 result
= (arg1
)->GetURL();
2283 wxPyEndAllowThreads(__tstate
);
2284 if (PyErr_Occurred()) SWIG_fail
;
2288 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2290 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2299 static PyObject
*_wrap_WebKitStateChangedEvent_SetURL(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2300 PyObject
*resultobj
;
2301 wxWebKitStateChangedEvent
*arg1
= (wxWebKitStateChangedEvent
*) 0 ;
2302 wxString
*arg2
= 0 ;
2303 bool temp2
= false ;
2304 PyObject
* obj0
= 0 ;
2305 PyObject
* obj1
= 0 ;
2307 (char *) "self",(char *) "url", NULL
2310 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:WebKitStateChangedEvent_SetURL",kwnames
,&obj0
,&obj1
)) goto fail
;
2311 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxWebKitStateChangedEvent
, SWIG_POINTER_EXCEPTION
| 0);
2312 if (SWIG_arg_fail(1)) SWIG_fail
;
2314 arg2
= wxString_in_helper(obj1
);
2315 if (arg2
== NULL
) SWIG_fail
;
2319 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2320 (arg1
)->SetURL((wxString
const &)*arg2
);
2322 wxPyEndAllowThreads(__tstate
);
2323 if (PyErr_Occurred()) SWIG_fail
;
2325 Py_INCREF(Py_None
); resultobj
= Py_None
;
2340 static PyObject
* WebKitStateChangedEvent_swigregister(PyObject
*, PyObject
*args
) {
2342 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
2343 SWIG_TypeClientData(SWIGTYPE_p_wxWebKitStateChangedEvent
, obj
);
2345 return Py_BuildValue((char *)"");
2347 static PyMethodDef SwigMethods
[] = {
2348 { (char *)"new_WebKitCtrl", (PyCFunction
) _wrap_new_WebKitCtrl
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
2349 { (char *)"new_PreWebKitCtrl", (PyCFunction
) _wrap_new_PreWebKitCtrl
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
2350 { (char *)"WebKitCtrl_Create", (PyCFunction
) _wrap_WebKitCtrl_Create
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
2351 { (char *)"WebKitCtrl_LoadURL", (PyCFunction
) _wrap_WebKitCtrl_LoadURL
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
2352 { (char *)"WebKitCtrl_CanGoBack", (PyCFunction
) _wrap_WebKitCtrl_CanGoBack
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
2353 { (char *)"WebKitCtrl_CanGoForward", (PyCFunction
) _wrap_WebKitCtrl_CanGoForward
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
2354 { (char *)"WebKitCtrl_GoBack", (PyCFunction
) _wrap_WebKitCtrl_GoBack
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
2355 { (char *)"WebKitCtrl_GoForward", (PyCFunction
) _wrap_WebKitCtrl_GoForward
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
2356 { (char *)"WebKitCtrl_Reload", (PyCFunction
) _wrap_WebKitCtrl_Reload
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
2357 { (char *)"WebKitCtrl_Stop", (PyCFunction
) _wrap_WebKitCtrl_Stop
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
2358 { (char *)"WebKitCtrl_CanGetPageSource", (PyCFunction
) _wrap_WebKitCtrl_CanGetPageSource
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
2359 { (char *)"WebKitCtrl_GetPageSource", (PyCFunction
) _wrap_WebKitCtrl_GetPageSource
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
2360 { (char *)"WebKitCtrl_SetPageSource", (PyCFunction
) _wrap_WebKitCtrl_SetPageSource
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
2361 { (char *)"WebKitCtrl_swigregister", WebKitCtrl_swigregister
, METH_VARARGS
, NULL
},
2362 { (char *)"new_WebKitStateChangedEvent", (PyCFunction
) _wrap_new_WebKitStateChangedEvent
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
2363 { (char *)"WebKitStateChangedEvent_GetState", (PyCFunction
) _wrap_WebKitStateChangedEvent_GetState
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
2364 { (char *)"WebKitStateChangedEvent_SetState", (PyCFunction
) _wrap_WebKitStateChangedEvent_SetState
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
2365 { (char *)"WebKitStateChangedEvent_GetURL", (PyCFunction
) _wrap_WebKitStateChangedEvent_GetURL
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
2366 { (char *)"WebKitStateChangedEvent_SetURL", (PyCFunction
) _wrap_WebKitStateChangedEvent_SetURL
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
2367 { (char *)"WebKitStateChangedEvent_swigregister", WebKitStateChangedEvent_swigregister
, METH_VARARGS
, NULL
},
2368 { NULL
, NULL
, 0, NULL
}
2372 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
2374 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x
) {
2375 return (void *)((wxObject
*) ((wxLayoutConstraints
*) x
));
2377 static void *_p_wxGBSizerItemTo_p_wxObject(void *x
) {
2378 return (void *)((wxObject
*) (wxSizerItem
*) ((wxGBSizerItem
*) x
));
2380 static void *_p_wxSizerItemTo_p_wxObject(void *x
) {
2381 return (void *)((wxObject
*) ((wxSizerItem
*) x
));
2383 static void *_p_wxScrollEventTo_p_wxObject(void *x
) {
2384 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxScrollEvent
*) x
));
2386 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x
) {
2387 return (void *)((wxObject
*) ((wxIndividualLayoutConstraint
*) x
));
2389 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x
) {
2390 return (void *)((wxObject
*) (wxSizer
*)(wxBoxSizer
*) ((wxStaticBoxSizer
*) x
));
2392 static void *_p_wxBoxSizerTo_p_wxObject(void *x
) {
2393 return (void *)((wxObject
*) (wxSizer
*) ((wxBoxSizer
*) x
));
2395 static void *_p_wxSizerTo_p_wxObject(void *x
) {
2396 return (void *)((wxObject
*) ((wxSizer
*) x
));
2398 static void *_p_wxGridBagSizerTo_p_wxObject(void *x
) {
2399 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*)(wxFlexGridSizer
*) ((wxGridBagSizer
*) x
));
2401 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x
) {
2402 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxUpdateUIEvent
*) x
));
2404 static void *_p_wxEventTo_p_wxObject(void *x
) {
2405 return (void *)((wxObject
*) ((wxEvent
*) x
));
2407 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x
) {
2408 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*) ((wxFlexGridSizer
*) x
));
2410 static void *_p_wxGridSizerTo_p_wxObject(void *x
) {
2411 return (void *)((wxObject
*) (wxSizer
*) ((wxGridSizer
*) x
));
2413 static void *_p_wxInitDialogEventTo_p_wxObject(void *x
) {
2414 return (void *)((wxObject
*) (wxEvent
*) ((wxInitDialogEvent
*) x
));
2416 static void *_p_wxPaintEventTo_p_wxObject(void *x
) {
2417 return (void *)((wxObject
*) (wxEvent
*) ((wxPaintEvent
*) x
));
2419 static void *_p_wxNcPaintEventTo_p_wxObject(void *x
) {
2420 return (void *)((wxObject
*) (wxEvent
*) ((wxNcPaintEvent
*) x
));
2422 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x
) {
2423 return (void *)((wxObject
*) (wxEvent
*) ((wxPaletteChangedEvent
*) x
));
2425 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x
) {
2426 return (void *)((wxObject
*) (wxEvent
*) ((wxDisplayChangedEvent
*) x
));
2428 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x
) {
2429 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseCaptureChangedEvent
*) x
));
2431 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x
) {
2432 return (void *)((wxObject
*) (wxEvent
*) ((wxSysColourChangedEvent
*) x
));
2434 static void *_p_wxWebKitStateChangedEventTo_p_wxObject(void *x
) {
2435 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWebKitStateChangedEvent
*) x
));
2437 static void *_p_wxControlTo_p_wxObject(void *x
) {
2438 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxControl
*) x
));
2440 static void *_p_wxSetCursorEventTo_p_wxObject(void *x
) {
2441 return (void *)((wxObject
*) (wxEvent
*) ((wxSetCursorEvent
*) x
));
2443 static void *_p_wxFSFileTo_p_wxObject(void *x
) {
2444 return (void *)((wxObject
*) ((wxFSFile
*) x
));
2446 static void *_p_wxPySizerTo_p_wxObject(void *x
) {
2447 return (void *)((wxObject
*) (wxSizer
*) ((wxPySizer
*) x
));
2449 static void *_p_wxPyEventTo_p_wxObject(void *x
) {
2450 return (void *)((wxObject
*) (wxEvent
*) ((wxPyEvent
*) x
));
2452 static void *_p_wxNotifyEventTo_p_wxObject(void *x
) {
2453 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxNotifyEvent
*) x
));
2455 static void *_p_wxShowEventTo_p_wxObject(void *x
) {
2456 return (void *)((wxObject
*) (wxEvent
*) ((wxShowEvent
*) x
));
2458 static void *_p_wxMenuItemTo_p_wxObject(void *x
) {
2459 return (void *)((wxObject
*) ((wxMenuItem
*) x
));
2461 static void *_p_wxIdleEventTo_p_wxObject(void *x
) {
2462 return (void *)((wxObject
*) (wxEvent
*) ((wxIdleEvent
*) x
));
2464 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x
) {
2465 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowCreateEvent
*) x
));
2467 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x
) {
2468 return (void *)((wxObject
*) (wxEvent
*) ((wxQueryNewPaletteEvent
*) x
));
2470 static void *_p_wxMaximizeEventTo_p_wxObject(void *x
) {
2471 return (void *)((wxObject
*) (wxEvent
*) ((wxMaximizeEvent
*) x
));
2473 static void *_p_wxIconizeEventTo_p_wxObject(void *x
) {
2474 return (void *)((wxObject
*) (wxEvent
*) ((wxIconizeEvent
*) x
));
2476 static void *_p_wxSizeEventTo_p_wxObject(void *x
) {
2477 return (void *)((wxObject
*) (wxEvent
*) ((wxSizeEvent
*) x
));
2479 static void *_p_wxMoveEventTo_p_wxObject(void *x
) {
2480 return (void *)((wxObject
*) (wxEvent
*) ((wxMoveEvent
*) x
));
2482 static void *_p_wxActivateEventTo_p_wxObject(void *x
) {
2483 return (void *)((wxObject
*) (wxEvent
*) ((wxActivateEvent
*) x
));
2485 static void *_p_wxXPMHandlerTo_p_wxObject(void *x
) {
2486 return (void *)((wxObject
*) (wxImageHandler
*) ((wxXPMHandler
*) x
));
2488 static void *_p_wxPNMHandlerTo_p_wxObject(void *x
) {
2489 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNMHandler
*) x
));
2491 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x
) {
2492 return (void *)((wxObject
*) (wxImageHandler
*) ((wxJPEGHandler
*) x
));
2494 static void *_p_wxPCXHandlerTo_p_wxObject(void *x
) {
2495 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPCXHandler
*) x
));
2497 static void *_p_wxGIFHandlerTo_p_wxObject(void *x
) {
2498 return (void *)((wxObject
*) (wxImageHandler
*) ((wxGIFHandler
*) x
));
2500 static void *_p_wxPNGHandlerTo_p_wxObject(void *x
) {
2501 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNGHandler
*) x
));
2503 static void *_p_wxANIHandlerTo_p_wxObject(void *x
) {
2504 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*)(wxCURHandler
*) ((wxANIHandler
*) x
));
2506 static void *_p_wxCURHandlerTo_p_wxObject(void *x
) {
2507 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*) ((wxCURHandler
*) x
));
2509 static void *_p_wxICOHandlerTo_p_wxObject(void *x
) {
2510 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*) ((wxICOHandler
*) x
));
2512 static void *_p_wxBMPHandlerTo_p_wxObject(void *x
) {
2513 return (void *)((wxObject
*) (wxImageHandler
*) ((wxBMPHandler
*) x
));
2515 static void *_p_wxImageHandlerTo_p_wxObject(void *x
) {
2516 return (void *)((wxObject
*) ((wxImageHandler
*) x
));
2518 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x
) {
2519 return (void *)((wxObject
*) (wxImageHandler
*) ((wxTIFFHandler
*) x
));
2521 static void *_p_wxEvtHandlerTo_p_wxObject(void *x
) {
2522 return (void *)((wxObject
*) ((wxEvtHandler
*) x
));
2524 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x
) {
2525 return (void *)((wxObject
*) (wxSizer
*)(wxBoxSizer
*) ((wxStdDialogButtonSizer
*) x
));
2527 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x
) {
2528 return (void *)((wxObject
*) ((wxAcceleratorTable
*) x
));
2530 static void *_p_wxImageTo_p_wxObject(void *x
) {
2531 return (void *)((wxObject
*) ((wxImage
*) x
));
2533 static void *_p_wxScrollWinEventTo_p_wxObject(void *x
) {
2534 return (void *)((wxObject
*) (wxEvent
*) ((wxScrollWinEvent
*) x
));
2536 static void *_p_wxWebKitCtrlTo_p_wxObject(void *x
) {
2537 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*)(wxControl
*) ((wxWebKitCtrl
*) x
));
2539 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x
) {
2540 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowDestroyEvent
*) x
));
2542 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x
) {
2543 return (void *)((wxObject
*) (wxEvent
*) ((wxNavigationKeyEvent
*) x
));
2545 static void *_p_wxKeyEventTo_p_wxObject(void *x
) {
2546 return (void *)((wxObject
*) (wxEvent
*) ((wxKeyEvent
*) x
));
2548 static void *_p_wxWindowTo_p_wxObject(void *x
) {
2549 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxWindow
*) x
));
2551 static void *_p_wxMenuTo_p_wxObject(void *x
) {
2552 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxMenu
*) x
));
2554 static void *_p_wxMenuBarTo_p_wxObject(void *x
) {
2555 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxMenuBar
*) x
));
2557 static void *_p_wxFileSystemTo_p_wxObject(void *x
) {
2558 return (void *)((wxObject
*) ((wxFileSystem
*) x
));
2560 static void *_p_wxContextMenuEventTo_p_wxObject(void *x
) {
2561 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxContextMenuEvent
*) x
));
2563 static void *_p_wxMenuEventTo_p_wxObject(void *x
) {
2564 return (void *)((wxObject
*) (wxEvent
*) ((wxMenuEvent
*) x
));
2566 static void *_p_wxPyAppTo_p_wxObject(void *x
) {
2567 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxPyApp
*) x
));
2569 static void *_p_wxCloseEventTo_p_wxObject(void *x
) {
2570 return (void *)((wxObject
*) (wxEvent
*) ((wxCloseEvent
*) x
));
2572 static void *_p_wxMouseEventTo_p_wxObject(void *x
) {
2573 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseEvent
*) x
));
2575 static void *_p_wxEraseEventTo_p_wxObject(void *x
) {
2576 return (void *)((wxObject
*) (wxEvent
*) ((wxEraseEvent
*) x
));
2578 static void *_p_wxPyCommandEventTo_p_wxObject(void *x
) {
2579 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxPyCommandEvent
*) x
));
2581 static void *_p_wxCommandEventTo_p_wxObject(void *x
) {
2582 return (void *)((wxObject
*) (wxEvent
*) ((wxCommandEvent
*) x
));
2584 static void *_p_wxDropFilesEventTo_p_wxObject(void *x
) {
2585 return (void *)((wxObject
*) (wxEvent
*) ((wxDropFilesEvent
*) x
));
2587 static void *_p_wxFocusEventTo_p_wxObject(void *x
) {
2588 return (void *)((wxObject
*) (wxEvent
*) ((wxFocusEvent
*) x
));
2590 static void *_p_wxChildFocusEventTo_p_wxObject(void *x
) {
2591 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxChildFocusEvent
*) x
));
2593 static void *_p_wxControlWithItemsTo_p_wxObject(void *x
) {
2594 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*)(wxControl
*) ((wxControlWithItems
*) x
));
2596 static void *_p_wxPyValidatorTo_p_wxObject(void *x
) {
2597 return (void *)((wxObject
*) (wxEvtHandler
*)(wxValidator
*) ((wxPyValidator
*) x
));
2599 static void *_p_wxValidatorTo_p_wxObject(void *x
) {
2600 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxValidator
*) x
));
2602 static void *_p_wxControlTo_p_wxWindow(void *x
) {
2603 return (void *)((wxWindow
*) ((wxControl
*) x
));
2605 static void *_p_wxWebKitCtrlTo_p_wxWindow(void *x
) {
2606 return (void *)((wxWindow
*) (wxControl
*) ((wxWebKitCtrl
*) x
));
2608 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x
) {
2609 return (void *)((wxWindow
*) (wxControl
*) ((wxControlWithItems
*) x
));
2611 static void *_p_wxMenuBarTo_p_wxWindow(void *x
) {
2612 return (void *)((wxWindow
*) ((wxMenuBar
*) x
));
2614 static void *_p_wxPyValidatorTo_p_wxValidator(void *x
) {
2615 return (void *)((wxValidator
*) ((wxPyValidator
*) x
));
2617 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x
) {
2618 return (void *)((wxCommandEvent
*) ((wxChildFocusEvent
*) x
));
2620 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x
) {
2621 return (void *)((wxCommandEvent
*) ((wxScrollEvent
*) x
));
2623 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x
) {
2624 return (void *)((wxCommandEvent
*) ((wxWindowCreateEvent
*) x
));
2626 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x
) {
2627 return (void *)((wxCommandEvent
*) ((wxUpdateUIEvent
*) x
));
2629 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x
) {
2630 return (void *)((wxCommandEvent
*) ((wxWindowDestroyEvent
*) x
));
2632 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x
) {
2633 return (void *)((wxCommandEvent
*) ((wxContextMenuEvent
*) x
));
2635 static void *_p_wxWebKitStateChangedEventTo_p_wxCommandEvent(void *x
) {
2636 return (void *)((wxCommandEvent
*) ((wxWebKitStateChangedEvent
*) x
));
2638 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x
) {
2639 return (void *)((wxCommandEvent
*) ((wxNotifyEvent
*) x
));
2641 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x
) {
2642 return (void *)((wxCommandEvent
*) ((wxPyCommandEvent
*) x
));
2644 static void *_p_wxControlTo_p_wxEvtHandler(void *x
) {
2645 return (void *)((wxEvtHandler
*) (wxWindow
*) ((wxControl
*) x
));
2647 static void *_p_wxWebKitCtrlTo_p_wxEvtHandler(void *x
) {
2648 return (void *)((wxEvtHandler
*) (wxWindow
*)(wxControl
*) ((wxWebKitCtrl
*) x
));
2650 static void *_p_wxWindowTo_p_wxEvtHandler(void *x
) {
2651 return (void *)((wxEvtHandler
*) ((wxWindow
*) x
));
2653 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x
) {
2654 return (void *)((wxEvtHandler
*) (wxWindow
*)(wxControl
*) ((wxControlWithItems
*) x
));
2656 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x
) {
2657 return (void *)((wxEvtHandler
*) ((wxPyApp
*) x
));
2659 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x
) {
2660 return (void *)((wxEvtHandler
*) ((wxValidator
*) x
));
2662 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x
) {
2663 return (void *)((wxEvtHandler
*) (wxValidator
*) ((wxPyValidator
*) x
));
2665 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x
) {
2666 return (void *)((wxEvtHandler
*) (wxWindow
*) ((wxMenuBar
*) x
));
2668 static void *_p_wxMenuTo_p_wxEvtHandler(void *x
) {
2669 return (void *)((wxEvtHandler
*) ((wxMenu
*) x
));
2671 static void *_p_wxWebKitCtrlTo_p_wxControl(void *x
) {
2672 return (void *)((wxControl
*) ((wxWebKitCtrl
*) x
));
2674 static void *_p_wxControlWithItemsTo_p_wxControl(void *x
) {
2675 return (void *)((wxControl
*) ((wxControlWithItems
*) x
));
2677 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x
) {
2678 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxContextMenuEvent
*) x
));
2680 static void *_p_wxMenuEventTo_p_wxEvent(void *x
) {
2681 return (void *)((wxEvent
*) ((wxMenuEvent
*) x
));
2683 static void *_p_wxCloseEventTo_p_wxEvent(void *x
) {
2684 return (void *)((wxEvent
*) ((wxCloseEvent
*) x
));
2686 static void *_p_wxMouseEventTo_p_wxEvent(void *x
) {
2687 return (void *)((wxEvent
*) ((wxMouseEvent
*) x
));
2689 static void *_p_wxEraseEventTo_p_wxEvent(void *x
) {
2690 return (void *)((wxEvent
*) ((wxEraseEvent
*) x
));
2692 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x
) {
2693 return (void *)((wxEvent
*) ((wxSetCursorEvent
*) x
));
2695 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x
) {
2696 return (void *)((wxEvent
*) ((wxInitDialogEvent
*) x
));
2698 static void *_p_wxScrollEventTo_p_wxEvent(void *x
) {
2699 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxScrollEvent
*) x
));
2701 static void *_p_wxPyEventTo_p_wxEvent(void *x
) {
2702 return (void *)((wxEvent
*) ((wxPyEvent
*) x
));
2704 static void *_p_wxNotifyEventTo_p_wxEvent(void *x
) {
2705 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxNotifyEvent
*) x
));
2707 static void *_p_wxIdleEventTo_p_wxEvent(void *x
) {
2708 return (void *)((wxEvent
*) ((wxIdleEvent
*) x
));
2710 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x
) {
2711 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxWindowCreateEvent
*) x
));
2713 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x
) {
2714 return (void *)((wxEvent
*) ((wxQueryNewPaletteEvent
*) x
));
2716 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x
) {
2717 return (void *)((wxEvent
*) ((wxMaximizeEvent
*) x
));
2719 static void *_p_wxIconizeEventTo_p_wxEvent(void *x
) {
2720 return (void *)((wxEvent
*) ((wxIconizeEvent
*) x
));
2722 static void *_p_wxActivateEventTo_p_wxEvent(void *x
) {
2723 return (void *)((wxEvent
*) ((wxActivateEvent
*) x
));
2725 static void *_p_wxSizeEventTo_p_wxEvent(void *x
) {
2726 return (void *)((wxEvent
*) ((wxSizeEvent
*) x
));
2728 static void *_p_wxMoveEventTo_p_wxEvent(void *x
) {
2729 return (void *)((wxEvent
*) ((wxMoveEvent
*) x
));
2731 static void *_p_wxPaintEventTo_p_wxEvent(void *x
) {
2732 return (void *)((wxEvent
*) ((wxPaintEvent
*) x
));
2734 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x
) {
2735 return (void *)((wxEvent
*) ((wxNcPaintEvent
*) x
));
2737 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x
) {
2738 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxUpdateUIEvent
*) x
));
2740 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x
) {
2741 return (void *)((wxEvent
*) ((wxPaletteChangedEvent
*) x
));
2743 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x
) {
2744 return (void *)((wxEvent
*) ((wxDisplayChangedEvent
*) x
));
2746 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x
) {
2747 return (void *)((wxEvent
*) ((wxMouseCaptureChangedEvent
*) x
));
2749 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x
) {
2750 return (void *)((wxEvent
*) ((wxSysColourChangedEvent
*) x
));
2752 static void *_p_wxWebKitStateChangedEventTo_p_wxEvent(void *x
) {
2753 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxWebKitStateChangedEvent
*) x
));
2755 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x
) {
2756 return (void *)((wxEvent
*) ((wxDropFilesEvent
*) x
));
2758 static void *_p_wxFocusEventTo_p_wxEvent(void *x
) {
2759 return (void *)((wxEvent
*) ((wxFocusEvent
*) x
));
2761 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x
) {
2762 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxChildFocusEvent
*) x
));
2764 static void *_p_wxShowEventTo_p_wxEvent(void *x
) {
2765 return (void *)((wxEvent
*) ((wxShowEvent
*) x
));
2767 static void *_p_wxCommandEventTo_p_wxEvent(void *x
) {
2768 return (void *)((wxEvent
*) ((wxCommandEvent
*) x
));
2770 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x
) {
2771 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxPyCommandEvent
*) x
));
2773 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x
) {
2774 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxWindowDestroyEvent
*) x
));
2776 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x
) {
2777 return (void *)((wxEvent
*) ((wxNavigationKeyEvent
*) x
));
2779 static void *_p_wxKeyEventTo_p_wxEvent(void *x
) {
2780 return (void *)((wxEvent
*) ((wxKeyEvent
*) x
));
2782 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x
) {
2783 return (void *)((wxEvent
*) ((wxScrollWinEvent
*) x
));
2785 static swig_type_info _swigt__p_wxObject
[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxWebKitStateChangedEvent", _p_wxWebKitStateChangedEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxStdDialogButtonSizer", _p_wxStdDialogButtonSizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxWebKitCtrl", _p_wxWebKitCtrlTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject
, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
2786 static swig_type_info _swigt__p_unsigned_char
[] = {{"_p_unsigned_char", 0, "unsigned char *|byte *", 0, 0, 0, 0},{"_p_unsigned_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
2787 static swig_type_info _swigt__p_wxWindow
[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow
, 0, 0, 0, 0, 0},{"_p_wxWebKitCtrl", _p_wxWebKitCtrlTo_p_wxWindow
, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow
, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow
, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
2788 static swig_type_info _swigt__p_wxValidator
[] = {{"_p_wxValidator", 0, "wxValidator *", 0, 0, 0, 0},{"_p_wxValidator", 0, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxValidator
, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
2789 static swig_type_info _swigt__p_wxCommandEvent
[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent
, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent
, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent
, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent
, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent
, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent
, 0, 0, 0, 0, 0},{"_p_wxWebKitStateChangedEvent", _p_wxWebKitStateChangedEventTo_p_wxCommandEvent
, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", 0, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent
, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent
, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
2790 static swig_type_info _swigt__p_unsigned_long
[] = {{"_p_unsigned_long", 0, "unsigned long *|wxUIntPtr *", 0, 0, 0, 0},{"_p_unsigned_long", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
2791 static swig_type_info _swigt__p_unsigned_int
[] = {{"_p_unsigned_int", 0, "unsigned int *|time_t *", 0, 0, 0, 0},{"_p_unsigned_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
2792 static swig_type_info _swigt__unsigned_int
[] = {{"_unsigned_int", 0, "unsigned int|std::size_t", 0, 0, 0, 0},{"_unsigned_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
2793 static swig_type_info _swigt__p_form_ops_t
[] = {{"_p_form_ops_t", 0, "enum form_ops_t *|form_ops_t *", 0, 0, 0, 0},{"_p_form_ops_t", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
2794 static swig_type_info _swigt__p_wxDuplexMode
[] = {{"_p_wxDuplexMode", 0, "enum wxDuplexMode *|wxDuplexMode *", 0, 0, 0, 0},{"_p_wxDuplexMode", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
2795 static swig_type_info _swigt__p_char
[] = {{"_p_char", 0, "char *", 0, 0, 0, 0},{"_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
2796 static swig_type_info _swigt__p_wxWebKitStateChangedEvent
[] = {{"_p_wxWebKitStateChangedEvent", 0, "wxWebKitStateChangedEvent *", 0, 0, 0, 0},{"_p_wxWebKitStateChangedEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
2797 static swig_type_info _swigt__p_wxEvtHandler
[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler
, 0, 0, 0, 0, 0},{"_p_wxWebKitCtrl", _p_wxWebKitCtrlTo_p_wxEvtHandler
, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler
, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler
, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", 0, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler
, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler
, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler
, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler
, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler
, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
2798 static swig_type_info _swigt__std__ptrdiff_t
[] = {{"_std__ptrdiff_t", 0, "std::ptrdiff_t", 0, 0, 0, 0},{"_std__ptrdiff_t", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
2799 static swig_type_info _swigt__ptrdiff_t
[] = {{"_ptrdiff_t", 0, "ptrdiff_t", 0, 0, 0, 0},{"_ptrdiff_t", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
2800 static swig_type_info _swigt__p_wxControl
[] = {{"_p_wxControl", 0, "wxControl *", 0, 0, 0, 0},{"_p_wxControl", 0, 0, 0, 0, 0, 0},{"_p_wxWebKitCtrl", _p_wxWebKitCtrlTo_p_wxControl
, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxControl
, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
2801 static swig_type_info _swigt__p_wxEvent
[] = {{"_p_wxEvent", 0, "wxEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxEvent", 0, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxWebKitStateChangedEvent", _p_wxWebKitStateChangedEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
2802 static swig_type_info _swigt__p_wxPaperSize
[] = {{"_p_wxPaperSize", 0, "enum wxPaperSize *|wxPaperSize *", 0, 0, 0, 0},{"_p_wxPaperSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
2803 static swig_type_info _swigt__p_int
[] = {{"_p_int", 0, "int *|wxEventType *", 0, 0, 0, 0},{"_p_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
2804 static swig_type_info _swigt__p_wxWebKitCtrl
[] = {{"_p_wxWebKitCtrl", 0, "wxWebKitCtrl *", 0, 0, 0, 0},{"_p_wxWebKitCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
2806 static swig_type_info
*swig_types_initial
[] = {
2808 _swigt__p_unsigned_char
,
2810 _swigt__p_wxValidator
,
2811 _swigt__p_wxCommandEvent
,
2812 _swigt__p_unsigned_long
,
2813 _swigt__p_unsigned_int
,
2814 _swigt__unsigned_int
,
2815 _swigt__p_form_ops_t
,
2816 _swigt__p_wxDuplexMode
,
2818 _swigt__p_wxWebKitStateChangedEvent
,
2819 _swigt__p_wxEvtHandler
,
2820 _swigt__std__ptrdiff_t
,
2822 _swigt__p_wxControl
,
2824 _swigt__p_wxPaperSize
,
2826 _swigt__p_wxWebKitCtrl
,
2831 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
2833 static swig_const_info swig_const_table
[] = {
2834 {0, 0, 0, 0.0, 0, 0}};
2845 /* Python-specific SWIG API */
2846 #define SWIG_newvarlink() SWIG_Python_newvarlink()
2847 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
2848 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
2850 /* -----------------------------------------------------------------------------
2851 * global variable support code.
2852 * ----------------------------------------------------------------------------- */
2854 typedef struct swig_globalvar
{
2855 char *name
; /* Name of global variable */
2856 PyObject
*(*get_attr
)(); /* Return the current value */
2857 int (*set_attr
)(PyObject
*); /* Set the value */
2858 struct swig_globalvar
*next
;
2861 typedef struct swig_varlinkobject
{
2863 swig_globalvar
*vars
;
2864 } swig_varlinkobject
;
2867 swig_varlink_repr(swig_varlinkobject
*v
) {
2869 return PyString_FromString("<Swig global variables>");
2873 swig_varlink_print(swig_varlinkobject
*v
, FILE *fp
, int flags
) {
2874 swig_globalvar
*var
;
2876 fprintf(fp
,"Swig global variables { ");
2877 for (var
= v
->vars
; var
; var
=var
->next
) {
2878 fprintf(fp
,"%s", var
->name
);
2879 if (var
->next
) fprintf(fp
,", ");
2886 swig_varlink_getattr(swig_varlinkobject
*v
, char *n
) {
2887 swig_globalvar
*var
= v
->vars
;
2889 if (strcmp(var
->name
,n
) == 0) {
2890 return (*var
->get_attr
)();
2894 PyErr_SetString(PyExc_NameError
,"Unknown C global variable");
2899 swig_varlink_setattr(swig_varlinkobject
*v
, char *n
, PyObject
*p
) {
2900 swig_globalvar
*var
= v
->vars
;
2902 if (strcmp(var
->name
,n
) == 0) {
2903 return (*var
->set_attr
)(p
);
2907 PyErr_SetString(PyExc_NameError
,"Unknown C global variable");
2911 static PyTypeObject varlinktype
= {
2912 PyObject_HEAD_INIT(0)
2913 0, /* Number of items in variable part (ob_size) */
2914 (char *)"swigvarlink", /* Type name (tp_name) */
2915 sizeof(swig_varlinkobject
), /* Basic size (tp_basicsize) */
2916 0, /* Itemsize (tp_itemsize) */
2917 0, /* Deallocator (tp_dealloc) */
2918 (printfunc
) swig_varlink_print
, /* Print (tp_print) */
2919 (getattrfunc
) swig_varlink_getattr
, /* get attr (tp_getattr) */
2920 (setattrfunc
) swig_varlink_setattr
, /* Set attr (tp_setattr) */
2922 (reprfunc
) swig_varlink_repr
, /* tp_repr */
2923 0, /* tp_as_number */
2924 0, /* tp_as_sequence */
2925 0, /* tp_as_mapping */
2929 0, /* tp_getattro */
2930 0, /* tp_setattro */
2931 0, /* tp_as_buffer */
2934 #if PY_VERSION_HEX >= 0x02000000
2935 0, /* tp_traverse */
2938 #if PY_VERSION_HEX >= 0x02010000
2939 0, /* tp_richcompare */
2940 0, /* tp_weaklistoffset */
2942 #if PY_VERSION_HEX >= 0x02020000
2943 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
2945 #if PY_VERSION_HEX >= 0x02030000
2949 0,0,0,0 /* tp_alloc -> tp_next */
2953 /* Create a variable linking object for use later */
2955 SWIG_Python_newvarlink(void) {
2956 swig_varlinkobject
*result
= 0;
2957 result
= PyMem_NEW(swig_varlinkobject
,1);
2958 varlinktype
.ob_type
= &PyType_Type
; /* Patch varlinktype into a PyType */
2959 result
->ob_type
= &varlinktype
;
2961 result
->ob_refcnt
= 0;
2962 Py_XINCREF((PyObject
*) result
);
2963 return ((PyObject
*) result
);
2967 SWIG_Python_addvarlink(PyObject
*p
, char *name
, PyObject
*(*get_attr
)(void), int (*set_attr
)(PyObject
*p
)) {
2968 swig_varlinkobject
*v
;
2970 v
= (swig_varlinkobject
*) p
;
2971 gv
= (swig_globalvar
*) malloc(sizeof(swig_globalvar
));
2972 gv
->name
= (char *) malloc(strlen(name
)+1);
2973 strcpy(gv
->name
,name
);
2974 gv
->get_attr
= get_attr
;
2975 gv
->set_attr
= set_attr
;
2980 /* -----------------------------------------------------------------------------
2981 * constants/methods manipulation
2982 * ----------------------------------------------------------------------------- */
2984 /* Install Constants */
2986 SWIG_Python_InstallConstants(PyObject
*d
, swig_const_info constants
[]) {
2989 for (i
= 0; constants
[i
].type
; i
++) {
2990 switch(constants
[i
].type
) {
2992 obj
= PyInt_FromLong(constants
[i
].lvalue
);
2995 obj
= PyFloat_FromDouble(constants
[i
].dvalue
);
2997 case SWIG_PY_STRING
:
2998 if (constants
[i
].pvalue
) {
2999 obj
= PyString_FromString((char *) constants
[i
].pvalue
);
3005 case SWIG_PY_POINTER
:
3006 obj
= SWIG_NewPointerObj(constants
[i
].pvalue
, *(constants
[i
]).ptype
,0);
3008 case SWIG_PY_BINARY
:
3009 obj
= SWIG_NewPackedObj(constants
[i
].pvalue
, constants
[i
].lvalue
, *(constants
[i
].ptype
));
3016 PyDict_SetItemString(d
,constants
[i
].name
,obj
);
3022 /* -----------------------------------------------------------------------------*/
3023 /* Fix SwigMethods to carry the callback ptrs when needed */
3024 /* -----------------------------------------------------------------------------*/
3027 SWIG_Python_FixMethods(PyMethodDef
*methods
,
3028 swig_const_info
*const_table
,
3029 swig_type_info
**types
,
3030 swig_type_info
**types_initial
) {
3032 for (i
= 0; methods
[i
].ml_name
; ++i
) {
3033 char *c
= methods
[i
].ml_doc
;
3034 if (c
&& (c
= strstr(c
, "swig_ptr: "))) {
3036 swig_const_info
*ci
= 0;
3037 char *name
= c
+ 10;
3038 for (j
= 0; const_table
[j
].type
; j
++) {
3039 if (strncmp(const_table
[j
].name
, name
,
3040 strlen(const_table
[j
].name
)) == 0) {
3041 ci
= &(const_table
[j
]);
3046 size_t shift
= (ci
->ptype
) - types
;
3047 swig_type_info
*ty
= types_initial
[shift
];
3048 size_t ldoc
= (c
- methods
[i
].ml_doc
);
3049 size_t lptr
= strlen(ty
->name
)+2*sizeof(void*)+2;
3050 char *ndoc
= (char*)malloc(ldoc
+ lptr
+ 10);
3052 void *ptr
= (ci
->type
== SWIG_PY_POINTER
) ? ci
->pvalue
: (void *)(ci
->lvalue
);
3053 strncpy(buff
, methods
[i
].ml_doc
, ldoc
);
3055 strncpy(buff
, "swig_ptr: ", 10);
3057 SWIG_PackVoidPtr(buff
, ptr
, ty
->name
, lptr
);
3058 methods
[i
].ml_doc
= ndoc
;
3064 /* -----------------------------------------------------------------------------*
3065 * Initialize type list
3066 * -----------------------------------------------------------------------------*/
3068 #if PY_MAJOR_VERSION < 2
3069 /* PyModule_AddObject function was introduced in Python 2.0. The following function
3070 is copied out of Python/modsupport.c in python version 2.3.4 */
3072 PyModule_AddObject(PyObject
*m
, char *name
, PyObject
*o
)
3075 if (!PyModule_Check(m
)) {
3076 PyErr_SetString(PyExc_TypeError
,
3077 "PyModule_AddObject() needs module as first arg");
3081 PyErr_SetString(PyExc_TypeError
,
3082 "PyModule_AddObject() needs non-NULL value");
3086 dict
= PyModule_GetDict(m
);
3088 /* Internal error -- modules must have a dict! */
3089 PyErr_Format(PyExc_SystemError
, "module '%s' has no __dict__",
3090 PyModule_GetName(m
));
3093 if (PyDict_SetItemString(dict
, name
, o
))
3100 static swig_type_info
**
3101 SWIG_Python_SetTypeListHandle(swig_type_info
**type_list_handle
) {
3102 static PyMethodDef swig_empty_runtime_method_table
[] = {
3108 PyObject
*module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION
,
3109 swig_empty_runtime_method_table
);
3110 PyObject
*pointer
= PyCObject_FromVoidPtr((void *) type_list_handle
, NULL
);
3111 if (pointer
&& module) {
3112 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME
, pointer
);
3114 return type_list_handle
;
3117 static swig_type_info
**
3118 SWIG_Python_LookupTypePointer(swig_type_info
**type_list_handle
) {
3119 swig_type_info
**type_pointer
;
3121 /* first check if module already created */
3122 type_pointer
= SWIG_Python_GetTypeListHandle();
3124 return type_pointer
;
3126 /* create a new module and variable */
3127 return SWIG_Python_SetTypeListHandle(type_list_handle
);
3135 /* -----------------------------------------------------------------------------*
3136 * Partial Init method
3137 * -----------------------------------------------------------------------------*/
3139 #ifdef SWIG_LINK_RUNTIME
3143 SWIGEXPORT(void *) SWIG_ReturnGlobalTypeList(void *);
3149 SWIGEXPORT(void) SWIG_init(void) {
3150 static PyObject
*SWIG_globals
= 0;
3151 static int typeinit
= 0;
3154 if (!SWIG_globals
) SWIG_globals
= SWIG_newvarlink();
3156 /* Fix SwigMethods to carry the callback ptrs when needed */
3157 SWIG_Python_FixMethods(SwigMethods
, swig_const_table
, swig_types
, swig_types_initial
);
3159 m
= Py_InitModule((char *) SWIG_name
, SwigMethods
);
3160 d
= PyModule_GetDict(m
);
3163 #ifdef SWIG_LINK_RUNTIME
3164 swig_type_list_handle
= (swig_type_info
**) SWIG_ReturnGlobalTypeList(swig_type_list_handle
);
3166 # ifndef SWIG_STATIC_RUNTIME
3167 swig_type_list_handle
= SWIG_Python_LookupTypePointer(swig_type_list_handle
);
3170 for (i
= 0; swig_types_initial
[i
]; i
++) {
3171 swig_types
[i
] = SWIG_TypeRegister(swig_types_initial
[i
]);
3175 SWIG_InstallConstants(d
,swig_const_table
);
3177 PyDict_SetItemString(d
,(char*)"cvar", SWIG_globals
);
3178 SWIG_addvarlink(SWIG_globals
,(char*)"WebKitNameStr",_wrap_WebKitNameStr_get
, _wrap_WebKitNameStr_set
);
3180 PyDict_SetItemString(d
,"WEBKIT_STATE_START", SWIG_From_int((int)(wxWEBKIT_STATE_START
)));
3183 PyDict_SetItemString(d
,"WEBKIT_STATE_NEGOTIATING", SWIG_From_int((int)(wxWEBKIT_STATE_NEGOTIATING
)));
3186 PyDict_SetItemString(d
,"WEBKIT_STATE_REDIRECTING", SWIG_From_int((int)(wxWEBKIT_STATE_REDIRECTING
)));
3189 PyDict_SetItemString(d
,"WEBKIT_STATE_TRANSFERRING", SWIG_From_int((int)(wxWEBKIT_STATE_TRANSFERRING
)));
3192 PyDict_SetItemString(d
,"WEBKIT_STATE_STOP", SWIG_From_int((int)(wxWEBKIT_STATE_STOP
)));
3195 PyDict_SetItemString(d
,"WEBKIT_STATE_FAILED", SWIG_From_int((int)(wxWEBKIT_STATE_FAILED
)));
3197 PyDict_SetItemString(d
, "wxEVT_WEBKIT_STATE_CHANGED", PyInt_FromLong(wxEVT_WEBKIT_STATE_CHANGED
));