]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/webkit_wrap.cpp
Respect the REUSEADDR flag to allow rebinding; bind to local port prior to connecting...
[wxWidgets.git] / wxPython / src / gtk / webkit_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.27
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_VERSION 0x010327
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /***********************************************************************
31 *
32 * This section contains generic SWIG labels for method/variable
33 * declarations/attributes, and other compiler dependent labels.
34 *
35 ************************************************************************/
36
37 /* template workaround for compilers that cannot correctly implement the C++ standard */
38 #ifndef SWIGTEMPLATEDISAMBIGUATOR
39 # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
40 # define SWIGTEMPLATEDISAMBIGUATOR template
41 # else
42 # define SWIGTEMPLATEDISAMBIGUATOR
43 # endif
44 #endif
45
46 /* inline attribute */
47 #ifndef SWIGINLINE
48 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
49 # define SWIGINLINE inline
50 # else
51 # define SWIGINLINE
52 # endif
53 #endif
54
55 /* attribute recognised by some compilers to avoid 'unused' warnings */
56 #ifndef SWIGUNUSED
57 # if defined(__GNUC__) || defined(__ICC)
58 # define SWIGUNUSED __attribute__ ((unused))
59 # else
60 # define SWIGUNUSED
61 # endif
62 #endif
63
64 /* internal SWIG method */
65 #ifndef SWIGINTERN
66 # define SWIGINTERN static SWIGUNUSED
67 #endif
68
69 /* internal inline SWIG method */
70 #ifndef SWIGINTERNINLINE
71 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
72 #endif
73
74 /* exporting methods for Windows DLLs */
75 #ifndef SWIGEXPORT
76 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
77 # if defined(STATIC_LINKED)
78 # define SWIGEXPORT
79 # else
80 # define SWIGEXPORT __declspec(dllexport)
81 # endif
82 # else
83 # define SWIGEXPORT
84 # endif
85 #endif
86
87 /* calling conventions for Windows */
88 #ifndef SWIGSTDCALL
89 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
90 # define SWIGSTDCALL __stdcall
91 # else
92 # define SWIGSTDCALL
93 # endif
94 #endif
95
96
97
98 #include <Python.h>
99
100 /***********************************************************************
101 * swigrun.swg
102 *
103 * This file contains generic CAPI SWIG runtime support for pointer
104 * type checking.
105 *
106 ************************************************************************/
107
108 /* This should only be incremented when either the layout of swig_type_info changes,
109 or for whatever reason, the runtime changes incompatibly */
110 #define SWIG_RUNTIME_VERSION "2"
111
112 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
113 #ifdef SWIG_TYPE_TABLE
114 # define SWIG_QUOTE_STRING(x) #x
115 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
116 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
117 #else
118 # define SWIG_TYPE_TABLE_NAME
119 #endif
120
121 /*
122 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
123 creating a static or dynamic library from the swig runtime code.
124 In 99.9% of the cases, swig just needs to declare them as 'static'.
125
126 But only do this if is strictly necessary, ie, if you have problems
127 with your compiler or so.
128 */
129
130 #ifndef SWIGRUNTIME
131 # define SWIGRUNTIME SWIGINTERN
132 #endif
133
134 #ifndef SWIGRUNTIMEINLINE
135 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
136 #endif
137
138 #include <string.h>
139
140 #ifdef __cplusplus
141 extern "C" {
142 #endif
143
144 typedef void *(*swig_converter_func)(void *);
145 typedef struct swig_type_info *(*swig_dycast_func)(void **);
146
147 /* Structure to store inforomation on one type */
148 typedef struct swig_type_info {
149 const char *name; /* mangled name of this type */
150 const char *str; /* human readable name of this type */
151 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
152 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
153 void *clientdata; /* language specific type data */
154 } swig_type_info;
155
156 /* Structure to store a type and conversion function used for casting */
157 typedef struct swig_cast_info {
158 swig_type_info *type; /* pointer to type that is equivalent to this type */
159 swig_converter_func converter; /* function to cast the void pointers */
160 struct swig_cast_info *next; /* pointer to next cast in linked list */
161 struct swig_cast_info *prev; /* pointer to the previous cast */
162 } swig_cast_info;
163
164 /* Structure used to store module information
165 * Each module generates one structure like this, and the runtime collects
166 * all of these structures and stores them in a circularly linked list.*/
167 typedef struct swig_module_info {
168 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
169 size_t size; /* Number of types in this module */
170 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
171 swig_type_info **type_initial; /* Array of initially generated type structures */
172 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
173 void *clientdata; /* Language specific module data */
174 } swig_module_info;
175
176
177 /*
178 Compare two type names skipping the space characters, therefore
179 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
180
181 Return 0 when the two name types are equivalent, as in
182 strncmp, but skipping ' '.
183 */
184 SWIGRUNTIME int
185 SWIG_TypeNameComp(const char *f1, const char *l1,
186 const char *f2, const char *l2) {
187 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
188 while ((*f1 == ' ') && (f1 != l1)) ++f1;
189 while ((*f2 == ' ') && (f2 != l2)) ++f2;
190 if (*f1 != *f2) return (int)(*f1 - *f2);
191 }
192 return (l1 - f1) - (l2 - f2);
193 }
194
195 /*
196 Check type equivalence in a name list like <name1>|<name2>|...
197 Return 0 if not equal, 1 if equal
198 */
199 SWIGRUNTIME int
200 SWIG_TypeEquiv(const char *nb, const char *tb) {
201 int equiv = 0;
202 const char* te = tb + strlen(tb);
203 const char* ne = nb;
204 while (!equiv && *ne) {
205 for (nb = ne; *ne; ++ne) {
206 if (*ne == '|') break;
207 }
208 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
209 if (*ne) ++ne;
210 }
211 return equiv;
212 }
213
214 /*
215 Check type equivalence in a name list like <name1>|<name2>|...
216 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
217 */
218 SWIGRUNTIME int
219 SWIG_TypeCompare(const char *nb, const char *tb) {
220 int equiv = 0;
221 const char* te = tb + strlen(tb);
222 const char* ne = nb;
223 while (!equiv && *ne) {
224 for (nb = ne; *ne; ++ne) {
225 if (*ne == '|') break;
226 }
227 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
228 if (*ne) ++ne;
229 }
230 return equiv;
231 }
232
233
234 /* think of this as a c++ template<> or a scheme macro */
235 #define SWIG_TypeCheck_Template(comparison, ty) \
236 if (ty) { \
237 swig_cast_info *iter = ty->cast; \
238 while (iter) { \
239 if (comparison) { \
240 if (iter == ty->cast) return iter; \
241 /* Move iter to the top of the linked list */ \
242 iter->prev->next = iter->next; \
243 if (iter->next) \
244 iter->next->prev = iter->prev; \
245 iter->next = ty->cast; \
246 iter->prev = 0; \
247 if (ty->cast) ty->cast->prev = iter; \
248 ty->cast = iter; \
249 return iter; \
250 } \
251 iter = iter->next; \
252 } \
253 } \
254 return 0
255
256 /*
257 Check the typename
258 */
259 SWIGRUNTIME swig_cast_info *
260 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
261 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
262 }
263
264 /* Same as previous function, except strcmp is replaced with a pointer comparison */
265 SWIGRUNTIME swig_cast_info *
266 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
267 SWIG_TypeCheck_Template(iter->type == from, into);
268 }
269
270 /*
271 Cast a pointer up an inheritance hierarchy
272 */
273 SWIGRUNTIMEINLINE void *
274 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
275 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
276 }
277
278 /*
279 Dynamic pointer casting. Down an inheritance hierarchy
280 */
281 SWIGRUNTIME swig_type_info *
282 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
283 swig_type_info *lastty = ty;
284 if (!ty || !ty->dcast) return ty;
285 while (ty && (ty->dcast)) {
286 ty = (*ty->dcast)(ptr);
287 if (ty) lastty = ty;
288 }
289 return lastty;
290 }
291
292 /*
293 Return the name associated with this type
294 */
295 SWIGRUNTIMEINLINE const char *
296 SWIG_TypeName(const swig_type_info *ty) {
297 return ty->name;
298 }
299
300 /*
301 Return the pretty name associated with this type,
302 that is an unmangled type name in a form presentable to the user.
303 */
304 SWIGRUNTIME const char *
305 SWIG_TypePrettyName(const swig_type_info *type) {
306 /* The "str" field contains the equivalent pretty names of the
307 type, separated by vertical-bar characters. We choose
308 to print the last name, as it is often (?) the most
309 specific. */
310 if (type->str != NULL) {
311 const char *last_name = type->str;
312 const char *s;
313 for (s = type->str; *s; s++)
314 if (*s == '|') last_name = s+1;
315 return last_name;
316 }
317 else
318 return type->name;
319 }
320
321 /*
322 Set the clientdata field for a type
323 */
324 SWIGRUNTIME void
325 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
326 swig_cast_info *cast = ti->cast;
327 /* if (ti->clientdata == clientdata) return; */
328 ti->clientdata = clientdata;
329
330 while (cast) {
331 if (!cast->converter) {
332 swig_type_info *tc = cast->type;
333 if (!tc->clientdata) {
334 SWIG_TypeClientData(tc, clientdata);
335 }
336 }
337 cast = cast->next;
338 }
339 }
340
341 /*
342 Search for a swig_type_info structure only by mangled name
343 Search is a O(log #types)
344
345 We start searching at module start, and finish searching when start == end.
346 Note: if start == end at the beginning of the function, we go all the way around
347 the circular list.
348 */
349 SWIGRUNTIME swig_type_info *
350 SWIG_MangledTypeQueryModule(swig_module_info *start,
351 swig_module_info *end,
352 const char *name) {
353 swig_module_info *iter = start;
354 do {
355 if (iter->size) {
356 register size_t l = 0;
357 register size_t r = iter->size - 1;
358 do {
359 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
360 register size_t i = (l + r) >> 1;
361 const char *iname = iter->types[i]->name;
362 if (iname) {
363 register int compare = strcmp(name, iname);
364 if (compare == 0) {
365 return iter->types[i];
366 } else if (compare < 0) {
367 if (i) {
368 r = i - 1;
369 } else {
370 break;
371 }
372 } else if (compare > 0) {
373 l = i + 1;
374 }
375 } else {
376 break; /* should never happen */
377 }
378 } while (l <= r);
379 }
380 iter = iter->next;
381 } while (iter != end);
382 return 0;
383 }
384
385 /*
386 Search for a swig_type_info structure for either a mangled name or a human readable name.
387 It first searches the mangled names of the types, which is a O(log #types)
388 If a type is not found it then searches the human readable names, which is O(#types).
389
390 We start searching at module start, and finish searching when start == end.
391 Note: if start == end at the beginning of the function, we go all the way around
392 the circular list.
393 */
394 SWIGRUNTIME swig_type_info *
395 SWIG_TypeQueryModule(swig_module_info *start,
396 swig_module_info *end,
397 const char *name) {
398 /* STEP 1: Search the name field using binary search */
399 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
400 if (ret) {
401 return ret;
402 } else {
403 /* STEP 2: If the type hasn't been found, do a complete search
404 of the str field (the human readable name) */
405 swig_module_info *iter = start;
406 do {
407 register size_t i = 0;
408 for (; i < iter->size; ++i) {
409 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
410 return iter->types[i];
411 }
412 iter = iter->next;
413 } while (iter != end);
414 }
415
416 /* neither found a match */
417 return 0;
418 }
419
420
421 /*
422 Pack binary data into a string
423 */
424 SWIGRUNTIME char *
425 SWIG_PackData(char *c, void *ptr, size_t sz) {
426 static const char hex[17] = "0123456789abcdef";
427 register const unsigned char *u = (unsigned char *) ptr;
428 register const unsigned char *eu = u + sz;
429 for (; u != eu; ++u) {
430 register unsigned char uu = *u;
431 *(c++) = hex[(uu & 0xf0) >> 4];
432 *(c++) = hex[uu & 0xf];
433 }
434 return c;
435 }
436
437 /*
438 Unpack binary data from a string
439 */
440 SWIGRUNTIME const char *
441 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
442 register unsigned char *u = (unsigned char *) ptr;
443 register const unsigned char *eu = u + sz;
444 for (; u != eu; ++u) {
445 register char d = *(c++);
446 register unsigned char uu = 0;
447 if ((d >= '0') && (d <= '9'))
448 uu = ((d - '0') << 4);
449 else if ((d >= 'a') && (d <= 'f'))
450 uu = ((d - ('a'-10)) << 4);
451 else
452 return (char *) 0;
453 d = *(c++);
454 if ((d >= '0') && (d <= '9'))
455 uu |= (d - '0');
456 else if ((d >= 'a') && (d <= 'f'))
457 uu |= (d - ('a'-10));
458 else
459 return (char *) 0;
460 *u = uu;
461 }
462 return c;
463 }
464
465 /*
466 Pack 'void *' into a string buffer.
467 */
468 SWIGRUNTIME char *
469 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
470 char *r = buff;
471 if ((2*sizeof(void *) + 2) > bsz) return 0;
472 *(r++) = '_';
473 r = SWIG_PackData(r,&ptr,sizeof(void *));
474 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
475 strcpy(r,name);
476 return buff;
477 }
478
479 SWIGRUNTIME const char *
480 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
481 if (*c != '_') {
482 if (strcmp(c,"NULL") == 0) {
483 *ptr = (void *) 0;
484 return name;
485 } else {
486 return 0;
487 }
488 }
489 return SWIG_UnpackData(++c,ptr,sizeof(void *));
490 }
491
492 SWIGRUNTIME char *
493 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
494 char *r = buff;
495 size_t lname = (name ? strlen(name) : 0);
496 if ((2*sz + 2 + lname) > bsz) return 0;
497 *(r++) = '_';
498 r = SWIG_PackData(r,ptr,sz);
499 if (lname) {
500 strncpy(r,name,lname+1);
501 } else {
502 *r = 0;
503 }
504 return buff;
505 }
506
507 SWIGRUNTIME const char *
508 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
509 if (*c != '_') {
510 if (strcmp(c,"NULL") == 0) {
511 memset(ptr,0,sz);
512 return name;
513 } else {
514 return 0;
515 }
516 }
517 return SWIG_UnpackData(++c,ptr,sz);
518 }
519
520 #ifdef __cplusplus
521 }
522 #endif
523
524 /* -----------------------------------------------------------------------------
525 * SWIG API. Portion that goes into the runtime
526 * ----------------------------------------------------------------------------- */
527
528 #ifdef __cplusplus
529 extern "C" {
530 #endif
531
532 /* -----------------------------------------------------------------------------
533 * for internal method declarations
534 * ----------------------------------------------------------------------------- */
535
536 #ifndef SWIGINTERN
537 # define SWIGINTERN static SWIGUNUSED
538 #endif
539
540 #ifndef SWIGINTERNINLINE
541 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
542 #endif
543
544 /*
545 Exception handling in wrappers
546 */
547 #define SWIG_fail goto fail
548 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
549 #define SWIG_append_errmsg(msg) SWIG_Python_AddErrMesg(msg,0)
550 #define SWIG_preppend_errmsg(msg) SWIG_Python_AddErrMesg(msg,1)
551 #define SWIG_type_error(type,obj) SWIG_Python_TypeError(type,obj)
552 #define SWIG_null_ref(type) SWIG_Python_NullRef(type)
553
554 /*
555 Contract support
556 */
557 #define SWIG_contract_assert(expr, msg) \
558 if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
559
560 /* -----------------------------------------------------------------------------
561 * Constant declarations
562 * ----------------------------------------------------------------------------- */
563
564 /* Constant Types */
565 #define SWIG_PY_INT 1
566 #define SWIG_PY_FLOAT 2
567 #define SWIG_PY_STRING 3
568 #define SWIG_PY_POINTER 4
569 #define SWIG_PY_BINARY 5
570
571 /* Constant information structure */
572 typedef struct swig_const_info {
573 int type;
574 char *name;
575 long lvalue;
576 double dvalue;
577 void *pvalue;
578 swig_type_info **ptype;
579 } swig_const_info;
580
581
582 /* -----------------------------------------------------------------------------
583 * Alloc. memory flags
584 * ----------------------------------------------------------------------------- */
585 #define SWIG_OLDOBJ 1
586 #define SWIG_NEWOBJ SWIG_OLDOBJ + 1
587 #define SWIG_PYSTR SWIG_NEWOBJ + 1
588
589 #ifdef __cplusplus
590 }
591 #endif
592
593
594 /***********************************************************************
595 * pyrun.swg
596 *
597 * This file contains the runtime support for Python modules
598 * and includes code for managing global variables and pointer
599 * type checking.
600 *
601 * Author : David Beazley (beazley@cs.uchicago.edu)
602 ************************************************************************/
603
604 /* Common SWIG API */
605 #define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Python_ConvertPtr(obj, pp, type, flags)
606 #define SWIG_NewPointerObj(p, type, flags) SWIG_Python_NewPointerObj(p, type, flags)
607 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
608
609
610 /* Python-specific SWIG API */
611 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
612 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
613
614 /* Runtime API */
615 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
616 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
617
618 /* -----------------------------------------------------------------------------
619 * Pointer declarations
620 * ----------------------------------------------------------------------------- */
621 /*
622 Use SWIG_NO_COBJECT_TYPES to force the use of strings to represent
623 C/C++ pointers in the python side. Very useful for debugging, but
624 not always safe.
625 */
626 #if !defined(SWIG_NO_COBJECT_TYPES) && !defined(SWIG_COBJECT_TYPES)
627 # define SWIG_COBJECT_TYPES
628 #endif
629
630 /* Flags for pointer conversion */
631 #define SWIG_POINTER_EXCEPTION 0x1
632 #define SWIG_POINTER_DISOWN 0x2
633
634
635 /* Add PyOS_snprintf for old Pythons */
636 #if PY_VERSION_HEX < 0x02020000
637 #define PyOS_snprintf snprintf
638 #endif
639
640 #ifdef __cplusplus
641 extern "C" {
642 #endif
643
644 /* -----------------------------------------------------------------------------
645 * Create a new pointer string
646 * ----------------------------------------------------------------------------- */
647 #ifndef SWIG_BUFFER_SIZE
648 #define SWIG_BUFFER_SIZE 1024
649 #endif
650
651 /* A crude PyString_FromFormat implementation for old Pythons */
652 #if PY_VERSION_HEX < 0x02020000
653 static PyObject *
654 PyString_FromFormat(const char *fmt, ...) {
655 va_list ap;
656 char buf[SWIG_BUFFER_SIZE * 2];
657 int res;
658 va_start(ap, fmt);
659 res = vsnprintf(buf, sizeof(buf), fmt, ap);
660 va_end(ap);
661 return (res < 0 || res >= sizeof(buf)) ? 0 : PyString_FromString(buf);
662 }
663 #endif
664
665 #if PY_VERSION_HEX < 0x01060000
666 #define PyObject_Del(op) PyMem_DEL((op))
667 #endif
668
669 #if defined(SWIG_COBJECT_TYPES)
670 #if !defined(SWIG_COBJECT_PYTHON)
671 /* -----------------------------------------------------------------------------
672 * Implements a simple Swig Object type, and use it instead of PyCObject
673 * ----------------------------------------------------------------------------- */
674
675 typedef struct {
676 PyObject_HEAD
677 void *ptr;
678 const char *desc;
679 } PySwigObject;
680
681 /* Declarations for objects of type PySwigObject */
682
683 SWIGRUNTIME int
684 PySwigObject_print(PySwigObject *v, FILE *fp, int flags)
685 {
686 char result[SWIG_BUFFER_SIZE];
687 flags = flags;
688 if (SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result))) {
689 fputs("<Swig Object at ", fp); fputs(result, fp); fputs(">", fp);
690 return 0;
691 } else {
692 return 1;
693 }
694 }
695
696 SWIGRUNTIME PyObject *
697 PySwigObject_repr(PySwigObject *v)
698 {
699 char result[SWIG_BUFFER_SIZE];
700 return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ?
701 PyString_FromFormat("<Swig Object at %s>", result) : 0;
702 }
703
704 SWIGRUNTIME PyObject *
705 PySwigObject_str(PySwigObject *v)
706 {
707 char result[SWIG_BUFFER_SIZE];
708 return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ?
709 PyString_FromString(result) : 0;
710 }
711
712 SWIGRUNTIME PyObject *
713 PySwigObject_long(PySwigObject *v)
714 {
715 return PyLong_FromVoidPtr(v->ptr);
716 }
717
718 SWIGRUNTIME PyObject *
719 PySwigObject_format(const char* fmt, PySwigObject *v)
720 {
721 PyObject *res = NULL;
722 PyObject *args = PyTuple_New(1);
723 if (args && (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0)) {
724 PyObject *ofmt = PyString_FromString(fmt);
725 if (ofmt) {
726 res = PyString_Format(ofmt,args);
727 Py_DECREF(ofmt);
728 }
729 Py_DECREF(args);
730 }
731 return res;
732 }
733
734 SWIGRUNTIME PyObject *
735 PySwigObject_oct(PySwigObject *v)
736 {
737 return PySwigObject_format("%o",v);
738 }
739
740 SWIGRUNTIME PyObject *
741 PySwigObject_hex(PySwigObject *v)
742 {
743 return PySwigObject_format("%x",v);
744 }
745
746 SWIGRUNTIME int
747 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
748 {
749 int c = strcmp(v->desc, w->desc);
750 if (c) {
751 return (c > 0) ? 1 : -1;
752 } else {
753 void *i = v->ptr;
754 void *j = w->ptr;
755 return (i < j) ? -1 : ((i > j) ? 1 : 0);
756 }
757 }
758
759 SWIGRUNTIME void
760 PySwigObject_dealloc(PySwigObject *self)
761 {
762 PyObject_Del(self);
763 }
764
765 SWIGRUNTIME PyTypeObject*
766 PySwigObject_type(void) {
767 static char pyswigobject_type__doc__[] =
768 "Swig object carries a C/C++ instance pointer";
769
770 static PyNumberMethods PySwigObject_as_number = {
771 (binaryfunc)0, /*nb_add*/
772 (binaryfunc)0, /*nb_subtract*/
773 (binaryfunc)0, /*nb_multiply*/
774 (binaryfunc)0, /*nb_divide*/
775 (binaryfunc)0, /*nb_remainder*/
776 (binaryfunc)0, /*nb_divmod*/
777 (ternaryfunc)0,/*nb_power*/
778 (unaryfunc)0, /*nb_negative*/
779 (unaryfunc)0, /*nb_positive*/
780 (unaryfunc)0, /*nb_absolute*/
781 (inquiry)0, /*nb_nonzero*/
782 0, /*nb_invert*/
783 0, /*nb_lshift*/
784 0, /*nb_rshift*/
785 0, /*nb_and*/
786 0, /*nb_xor*/
787 0, /*nb_or*/
788 (coercion)0, /*nb_coerce*/
789 (unaryfunc)PySwigObject_long, /*nb_int*/
790 (unaryfunc)PySwigObject_long, /*nb_long*/
791 (unaryfunc)0, /*nb_float*/
792 (unaryfunc)PySwigObject_oct, /*nb_oct*/
793 (unaryfunc)PySwigObject_hex, /*nb_hex*/
794 #if PY_VERSION_HEX >= 0x02020000
795 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
796 #elif PY_VERSION_HEX >= 0x02000000
797 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
798 #endif
799 };
800
801 static PyTypeObject pyswigobject_type
802 #if !defined(__cplusplus)
803 ;
804 static int type_init = 0;
805 if (!type_init) {
806 PyTypeObject tmp
807 #endif
808 = {
809 PyObject_HEAD_INIT(&PyType_Type)
810 0, /*ob_size*/
811 (char *)"PySwigObject", /*tp_name*/
812 sizeof(PySwigObject), /*tp_basicsize*/
813 0, /*tp_itemsize*/
814 /* methods */
815 (destructor)PySwigObject_dealloc, /*tp_dealloc*/
816 (printfunc)PySwigObject_print, /*tp_print*/
817 (getattrfunc)0, /*tp_getattr*/
818 (setattrfunc)0, /*tp_setattr*/
819 (cmpfunc)PySwigObject_compare, /*tp_compare*/
820 (reprfunc)PySwigObject_repr, /*tp_repr*/
821 &PySwigObject_as_number, /*tp_as_number*/
822 0, /*tp_as_sequence*/
823 0, /*tp_as_mapping*/
824 (hashfunc)0, /*tp_hash*/
825 (ternaryfunc)0, /*tp_call*/
826 (reprfunc)PySwigObject_str, /*tp_str*/
827 /* Space for future expansion */
828 0,0,0,0,
829 pyswigobject_type__doc__, /* Documentation string */
830 #if PY_VERSION_HEX >= 0x02000000
831 0, /* tp_traverse */
832 0, /* tp_clear */
833 #endif
834 #if PY_VERSION_HEX >= 0x02010000
835 0, /* tp_richcompare */
836 0, /* tp_weaklistoffset */
837 #endif
838 #if PY_VERSION_HEX >= 0x02020000
839 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
840 #endif
841 #if PY_VERSION_HEX >= 0x02030000
842 0, /* tp_del */
843 #endif
844 #ifdef COUNT_ALLOCS
845 0,0,0,0 /* tp_alloc -> tp_next */
846 #endif
847 };
848 #if !defined(__cplusplus)
849 pyswigobject_type = tmp;
850 type_init = 1;
851 }
852 #endif
853 return &pyswigobject_type;
854 }
855
856 SWIGRUNTIME PyObject *
857 PySwigObject_FromVoidPtrAndDesc(void *ptr, const char *desc)
858 {
859 PySwigObject *self = PyObject_NEW(PySwigObject, PySwigObject_type());
860 if (self) {
861 self->ptr = ptr;
862 self->desc = desc;
863 }
864 return (PyObject *)self;
865 }
866
867 SWIGRUNTIMEINLINE void *
868 PySwigObject_AsVoidPtr(PyObject *self)
869 {
870 return ((PySwigObject *)self)->ptr;
871 }
872
873 SWIGRUNTIMEINLINE const char *
874 PySwigObject_GetDesc(PyObject *self)
875 {
876 return ((PySwigObject *)self)->desc;
877 }
878
879 SWIGRUNTIMEINLINE int
880 PySwigObject_Check(PyObject *op) {
881 return ((op)->ob_type == PySwigObject_type())
882 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
883 }
884
885 /* -----------------------------------------------------------------------------
886 * Implements a simple Swig Packed type, and use it instead of string
887 * ----------------------------------------------------------------------------- */
888
889 typedef struct {
890 PyObject_HEAD
891 void *pack;
892 const char *desc;
893 size_t size;
894 } PySwigPacked;
895
896 SWIGRUNTIME int
897 PySwigPacked_print(PySwigPacked *v, FILE *fp, int flags)
898 {
899 char result[SWIG_BUFFER_SIZE];
900 flags = flags;
901 fputs("<Swig Packed ", fp);
902 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
903 fputs("at ", fp);
904 fputs(result, fp);
905 }
906 fputs(v->desc,fp);
907 fputs(">", fp);
908 return 0;
909 }
910
911 SWIGRUNTIME PyObject *
912 PySwigPacked_repr(PySwigPacked *v)
913 {
914 char result[SWIG_BUFFER_SIZE];
915 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
916 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->desc);
917 } else {
918 return PyString_FromFormat("<Swig Packed %s>", v->desc);
919 }
920 }
921
922 SWIGRUNTIME PyObject *
923 PySwigPacked_str(PySwigPacked *v)
924 {
925 char result[SWIG_BUFFER_SIZE];
926 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
927 return PyString_FromFormat("%s%s", result, v->desc);
928 } else {
929 return PyString_FromString(v->desc);
930 }
931 }
932
933 SWIGRUNTIME int
934 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
935 {
936 int c = strcmp(v->desc, w->desc);
937 if (c) {
938 return (c > 0) ? 1 : -1;
939 } else {
940 size_t i = v->size;
941 size_t j = w->size;
942 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
943 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
944 }
945 }
946
947 SWIGRUNTIME void
948 PySwigPacked_dealloc(PySwigPacked *self)
949 {
950 free(self->pack);
951 PyObject_Del(self);
952 }
953
954 SWIGRUNTIME PyTypeObject*
955 PySwigPacked_type(void) {
956 static char pyswigpacked_type__doc__[] =
957 "Swig object carries a C/C++ instance pointer";
958 static PyTypeObject pyswigpacked_type
959 #if !defined(__cplusplus)
960 ;
961 static int type_init = 0;
962 if (!type_init) {
963 PyTypeObject tmp
964 #endif
965 = {
966 PyObject_HEAD_INIT(&PyType_Type)
967 0, /*ob_size*/
968 (char *)"PySwigPacked", /*tp_name*/
969 sizeof(PySwigPacked), /*tp_basicsize*/
970 0, /*tp_itemsize*/
971 /* methods */
972 (destructor)PySwigPacked_dealloc, /*tp_dealloc*/
973 (printfunc)PySwigPacked_print, /*tp_print*/
974 (getattrfunc)0, /*tp_getattr*/
975 (setattrfunc)0, /*tp_setattr*/
976 (cmpfunc)PySwigPacked_compare, /*tp_compare*/
977 (reprfunc)PySwigPacked_repr, /*tp_repr*/
978 0, /*tp_as_number*/
979 0, /*tp_as_sequence*/
980 0, /*tp_as_mapping*/
981 (hashfunc)0, /*tp_hash*/
982 (ternaryfunc)0, /*tp_call*/
983 (reprfunc)PySwigPacked_str, /*tp_str*/
984 /* Space for future expansion */
985 0,0,0,0,
986 pyswigpacked_type__doc__, /* Documentation string */
987 #if PY_VERSION_HEX >= 0x02000000
988 0, /* tp_traverse */
989 0, /* tp_clear */
990 #endif
991 #if PY_VERSION_HEX >= 0x02010000
992 0, /* tp_richcompare */
993 0, /* tp_weaklistoffset */
994 #endif
995 #if PY_VERSION_HEX >= 0x02020000
996 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
997 #endif
998 #if PY_VERSION_HEX >= 0x02030000
999 0, /* tp_del */
1000 #endif
1001 #ifdef COUNT_ALLOCS
1002 0,0,0,0 /* tp_alloc -> tp_next */
1003 #endif
1004 };
1005 #if !defined(__cplusplus)
1006 pyswigpacked_type = tmp;
1007 type_init = 1;
1008 }
1009 #endif
1010 return &pyswigpacked_type;
1011 }
1012
1013 SWIGRUNTIME PyObject *
1014 PySwigPacked_FromDataAndDesc(void *ptr, size_t size, const char *desc)
1015 {
1016 PySwigPacked *self = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1017 if (self == NULL) {
1018 return NULL;
1019 } else {
1020 void *pack = malloc(size);
1021 if (pack) {
1022 memcpy(pack, ptr, size);
1023 self->pack = pack;
1024 self->desc = desc;
1025 self->size = size;
1026 return (PyObject *) self;
1027 }
1028 return NULL;
1029 }
1030 }
1031
1032 SWIGRUNTIMEINLINE const char *
1033 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1034 {
1035 PySwigPacked *self = (PySwigPacked *)obj;
1036 if (self->size != size) return 0;
1037 memcpy(ptr, self->pack, size);
1038 return self->desc;
1039 }
1040
1041 SWIGRUNTIMEINLINE const char *
1042 PySwigPacked_GetDesc(PyObject *self)
1043 {
1044 return ((PySwigPacked *)self)->desc;
1045 }
1046
1047 SWIGRUNTIMEINLINE int
1048 PySwigPacked_Check(PyObject *op) {
1049 return ((op)->ob_type == PySwigPacked_type())
1050 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1051 }
1052
1053 #else
1054 /* -----------------------------------------------------------------------------
1055 * Use the old Python PyCObject instead of PySwigObject
1056 * ----------------------------------------------------------------------------- */
1057
1058 #define PySwigObject_GetDesc(obj) PyCObject_GetDesc(obj)
1059 #define PySwigObject_Check(obj) PyCObject_Check(obj)
1060 #define PySwigObject_AsVoidPtr(obj) PyCObject_AsVoidPtr(obj)
1061 #define PySwigObject_FromVoidPtrAndDesc(p, d) PyCObject_FromVoidPtrAndDesc(p, d, NULL)
1062
1063 #endif
1064
1065 #endif
1066
1067 /* -----------------------------------------------------------------------------
1068 * errors manipulation
1069 * ----------------------------------------------------------------------------- */
1070
1071 SWIGRUNTIME void
1072 SWIG_Python_TypeError(const char *type, PyObject *obj)
1073 {
1074 if (type) {
1075 #if defined(SWIG_COBJECT_TYPES)
1076 if (obj && PySwigObject_Check(obj)) {
1077 const char *otype = (const char *) PySwigObject_GetDesc(obj);
1078 if (otype) {
1079 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
1080 type, otype);
1081 return;
1082 }
1083 } else
1084 #endif
1085 {
1086 const char *otype = (obj ? obj->ob_type->tp_name : 0);
1087 if (otype) {
1088 PyObject *str = PyObject_Str(obj);
1089 const char *cstr = str ? PyString_AsString(str) : 0;
1090 if (cstr) {
1091 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
1092 type, otype, cstr);
1093 } else {
1094 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
1095 type, otype);
1096 }
1097 Py_XDECREF(str);
1098 return;
1099 }
1100 }
1101 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
1102 } else {
1103 PyErr_Format(PyExc_TypeError, "unexpected type is received");
1104 }
1105 }
1106
1107 SWIGRUNTIMEINLINE void
1108 SWIG_Python_NullRef(const char *type)
1109 {
1110 if (type) {
1111 PyErr_Format(PyExc_TypeError, "null reference of type '%s' was received",type);
1112 } else {
1113 PyErr_Format(PyExc_TypeError, "null reference was received");
1114 }
1115 }
1116
1117 SWIGRUNTIME int
1118 SWIG_Python_AddErrMesg(const char* mesg, int infront)
1119 {
1120 if (PyErr_Occurred()) {
1121 PyObject *type = 0;
1122 PyObject *value = 0;
1123 PyObject *traceback = 0;
1124 PyErr_Fetch(&type, &value, &traceback);
1125 if (value) {
1126 PyObject *old_str = PyObject_Str(value);
1127 Py_XINCREF(type);
1128 PyErr_Clear();
1129 if (infront) {
1130 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
1131 } else {
1132 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
1133 }
1134 Py_DECREF(old_str);
1135 }
1136 return 1;
1137 } else {
1138 return 0;
1139 }
1140 }
1141
1142 SWIGRUNTIME int
1143 SWIG_Python_ArgFail(int argnum)
1144 {
1145 if (PyErr_Occurred()) {
1146 /* add information about failing argument */
1147 char mesg[256];
1148 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
1149 return SWIG_Python_AddErrMesg(mesg, 1);
1150 } else {
1151 return 0;
1152 }
1153 }
1154
1155
1156 /* -----------------------------------------------------------------------------
1157 * pointers/data manipulation
1158 * ----------------------------------------------------------------------------- */
1159
1160 /* Convert a pointer value */
1161 SWIGRUNTIME int
1162 SWIG_Python_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) {
1163 swig_cast_info *tc;
1164 const char *c = 0;
1165 static PyObject *SWIG_this = 0;
1166 int newref = 0;
1167 PyObject *pyobj = 0;
1168 void *vptr;
1169
1170 if (!obj) return 0;
1171 if (obj == Py_None) {
1172 *ptr = 0;
1173 return 0;
1174 }
1175
1176 #ifdef SWIG_COBJECT_TYPES
1177 if (!(PySwigObject_Check(obj))) {
1178 if (!SWIG_this)
1179 SWIG_this = PyString_FromString("this");
1180 pyobj = obj;
1181 obj = PyObject_GetAttr(obj,SWIG_this);
1182 newref = 1;
1183 if (!obj) goto type_error;
1184 if (!PySwigObject_Check(obj)) {
1185 Py_DECREF(obj);
1186 goto type_error;
1187 }
1188 }
1189 vptr = PySwigObject_AsVoidPtr(obj);
1190 c = (const char *) PySwigObject_GetDesc(obj);
1191 if (newref) { Py_DECREF(obj); }
1192 goto type_check;
1193 #else
1194 if (!(PyString_Check(obj))) {
1195 if (!SWIG_this)
1196 SWIG_this = PyString_FromString("this");
1197 pyobj = obj;
1198 obj = PyObject_GetAttr(obj,SWIG_this);
1199 newref = 1;
1200 if (!obj) goto type_error;
1201 if (!PyString_Check(obj)) {
1202 Py_DECREF(obj);
1203 goto type_error;
1204 }
1205 }
1206 c = PyString_AsString(obj);
1207 /* Pointer values must start with leading underscore */
1208 c = SWIG_UnpackVoidPtr(c, &vptr, ty->name);
1209 if (newref) { Py_DECREF(obj); }
1210 if (!c) goto type_error;
1211 #endif
1212
1213 type_check:
1214 if (ty) {
1215 tc = SWIG_TypeCheck(c,ty);
1216 if (!tc) goto type_error;
1217 *ptr = SWIG_TypeCast(tc,vptr);
1218 } else {
1219 *ptr = vptr;
1220 }
1221 if ((pyobj) && (flags & SWIG_POINTER_DISOWN)) {
1222 PyObject_SetAttrString(pyobj,(char*)"thisown",Py_False);
1223 }
1224 return 0;
1225
1226 type_error:
1227 PyErr_Clear();
1228 if (pyobj && !obj) {
1229 obj = pyobj;
1230 if (PyCFunction_Check(obj)) {
1231 /* here we get the method pointer for callbacks */
1232 char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
1233 c = doc ? strstr(doc, "swig_ptr: ") : 0;
1234 if (c) {
1235 c = ty ? SWIG_UnpackVoidPtr(c + 10, &vptr, ty->name) : 0;
1236 if (!c) goto type_error;
1237 goto type_check;
1238 }
1239 }
1240 }
1241 if (flags & SWIG_POINTER_EXCEPTION) {
1242 if (ty) {
1243 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1244 } else {
1245 SWIG_Python_TypeError("C/C++ pointer", obj);
1246 }
1247 }
1248 return -1;
1249 }
1250
1251 /* Convert a pointer value, signal an exception on a type mismatch */
1252 SWIGRUNTIME void *
1253 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
1254 void *result;
1255 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
1256 PyErr_Clear();
1257 if (flags & SWIG_POINTER_EXCEPTION) {
1258 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1259 SWIG_Python_ArgFail(argnum);
1260 }
1261 }
1262 return result;
1263 }
1264
1265 /* Convert a packed value value */
1266 SWIGRUNTIME int
1267 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty, int flags) {
1268 swig_cast_info *tc;
1269 const char *c = 0;
1270
1271 #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1272 c = PySwigPacked_UnpackData(obj, ptr, sz);
1273 #else
1274 if ((!obj) || (!PyString_Check(obj))) goto type_error;
1275 c = PyString_AsString(obj);
1276 /* Pointer values must start with leading underscore */
1277 c = SWIG_UnpackDataName(c, ptr, sz, ty->name);
1278 #endif
1279 if (!c) goto type_error;
1280 if (ty) {
1281 tc = SWIG_TypeCheck(c,ty);
1282 if (!tc) goto type_error;
1283 }
1284 return 0;
1285
1286 type_error:
1287 PyErr_Clear();
1288 if (flags & SWIG_POINTER_EXCEPTION) {
1289 if (ty) {
1290 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1291 } else {
1292 SWIG_Python_TypeError("C/C++ packed data", obj);
1293 }
1294 }
1295 return -1;
1296 }
1297
1298 /* Create a new array object */
1299 SWIGRUNTIME PyObject *
1300 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int own) {
1301 PyObject *robj = 0;
1302 if (!type) {
1303 if (!PyErr_Occurred()) {
1304 PyErr_Format(PyExc_TypeError, "Swig: null type passed to NewPointerObj");
1305 }
1306 return robj;
1307 }
1308 if (!ptr) {
1309 Py_INCREF(Py_None);
1310 return Py_None;
1311 }
1312 #ifdef SWIG_COBJECT_TYPES
1313 robj = PySwigObject_FromVoidPtrAndDesc((void *) ptr, (char *)type->name);
1314 #else
1315 {
1316 char result[SWIG_BUFFER_SIZE];
1317 robj = SWIG_PackVoidPtr(result, ptr, type->name, sizeof(result)) ?
1318 PyString_FromString(result) : 0;
1319 }
1320 #endif
1321 if (!robj || (robj == Py_None)) return robj;
1322 if (type->clientdata) {
1323 PyObject *inst;
1324 PyObject *args = Py_BuildValue((char*)"(O)", robj);
1325 Py_DECREF(robj);
1326 inst = PyObject_CallObject((PyObject *) type->clientdata, args);
1327 Py_DECREF(args);
1328 if (inst) {
1329 if (own) {
1330 PyObject_SetAttrString(inst,(char*)"thisown",Py_True);
1331 }
1332 robj = inst;
1333 }
1334 }
1335 return robj;
1336 }
1337
1338 SWIGRUNTIME PyObject *
1339 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
1340 PyObject *robj = 0;
1341 if (!ptr) {
1342 Py_INCREF(Py_None);
1343 return Py_None;
1344 }
1345 #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1346 robj = PySwigPacked_FromDataAndDesc((void *) ptr, sz, (char *)type->name);
1347 #else
1348 {
1349 char result[SWIG_BUFFER_SIZE];
1350 robj = SWIG_PackDataName(result, ptr, sz, type->name, sizeof(result)) ?
1351 PyString_FromString(result) : 0;
1352 }
1353 #endif
1354 return robj;
1355 }
1356
1357 /* -----------------------------------------------------------------------------*
1358 * Get type list
1359 * -----------------------------------------------------------------------------*/
1360
1361 #ifdef SWIG_LINK_RUNTIME
1362 void *SWIG_ReturnGlobalTypeList(void *);
1363 #endif
1364
1365 SWIGRUNTIME swig_module_info *
1366 SWIG_Python_GetModule(void) {
1367 static void *type_pointer = (void *)0;
1368 /* first check if module already created */
1369 if (!type_pointer) {
1370 #ifdef SWIG_LINK_RUNTIME
1371 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
1372 #else
1373 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
1374 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
1375 if (PyErr_Occurred()) {
1376 PyErr_Clear();
1377 type_pointer = (void *)0;
1378 }
1379 #endif
1380 }
1381 return (swig_module_info *) type_pointer;
1382 }
1383
1384 #if PY_MAJOR_VERSION < 2
1385 /* PyModule_AddObject function was introduced in Python 2.0. The following function
1386 is copied out of Python/modsupport.c in python version 2.3.4 */
1387 SWIGINTERN int
1388 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
1389 {
1390 PyObject *dict;
1391 if (!PyModule_Check(m)) {
1392 PyErr_SetString(PyExc_TypeError,
1393 "PyModule_AddObject() needs module as first arg");
1394 return -1;
1395 }
1396 if (!o) {
1397 PyErr_SetString(PyExc_TypeError,
1398 "PyModule_AddObject() needs non-NULL value");
1399 return -1;
1400 }
1401
1402 dict = PyModule_GetDict(m);
1403 if (dict == NULL) {
1404 /* Internal error -- modules must have a dict! */
1405 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
1406 PyModule_GetName(m));
1407 return -1;
1408 }
1409 if (PyDict_SetItemString(dict, name, o))
1410 return -1;
1411 Py_DECREF(o);
1412 return 0;
1413 }
1414 #endif
1415
1416 SWIGRUNTIME void
1417 SWIG_Python_SetModule(swig_module_info *swig_module) {
1418 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
1419
1420 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
1421 swig_empty_runtime_method_table);
1422 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, NULL);
1423 if (pointer && module) {
1424 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
1425 }
1426 }
1427
1428 #ifdef __cplusplus
1429 }
1430 #endif
1431
1432
1433 /* -------- TYPES TABLE (BEGIN) -------- */
1434
1435 #define SWIGTYPE_p_char swig_types[0]
1436 #define SWIGTYPE_p_form_ops_t swig_types[1]
1437 #define SWIGTYPE_p_int swig_types[2]
1438 #define SWIGTYPE_p_unsigned_char swig_types[3]
1439 #define SWIGTYPE_p_unsigned_int swig_types[4]
1440 #define SWIGTYPE_p_unsigned_long swig_types[5]
1441 #define SWIGTYPE_p_wxANIHandler swig_types[6]
1442 #define SWIGTYPE_p_wxAcceleratorTable swig_types[7]
1443 #define SWIGTYPE_p_wxActivateEvent swig_types[8]
1444 #define SWIGTYPE_p_wxBMPHandler swig_types[9]
1445 #define SWIGTYPE_p_wxBoxSizer swig_types[10]
1446 #define SWIGTYPE_p_wxCURHandler swig_types[11]
1447 #define SWIGTYPE_p_wxChildFocusEvent swig_types[12]
1448 #define SWIGTYPE_p_wxCloseEvent swig_types[13]
1449 #define SWIGTYPE_p_wxCommandEvent swig_types[14]
1450 #define SWIGTYPE_p_wxContextMenuEvent swig_types[15]
1451 #define SWIGTYPE_p_wxControl swig_types[16]
1452 #define SWIGTYPE_p_wxControlWithItems swig_types[17]
1453 #define SWIGTYPE_p_wxDateEvent swig_types[18]
1454 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[19]
1455 #define SWIGTYPE_p_wxDropFilesEvent swig_types[20]
1456 #define SWIGTYPE_p_wxDuplexMode swig_types[21]
1457 #define SWIGTYPE_p_wxEraseEvent swig_types[22]
1458 #define SWIGTYPE_p_wxEvent swig_types[23]
1459 #define SWIGTYPE_p_wxEvtHandler swig_types[24]
1460 #define SWIGTYPE_p_wxFSFile swig_types[25]
1461 #define SWIGTYPE_p_wxFileSystem swig_types[26]
1462 #define SWIGTYPE_p_wxFlexGridSizer swig_types[27]
1463 #define SWIGTYPE_p_wxFocusEvent swig_types[28]
1464 #define SWIGTYPE_p_wxGBSizerItem swig_types[29]
1465 #define SWIGTYPE_p_wxGIFHandler swig_types[30]
1466 #define SWIGTYPE_p_wxGridBagSizer swig_types[31]
1467 #define SWIGTYPE_p_wxGridSizer swig_types[32]
1468 #define SWIGTYPE_p_wxICOHandler swig_types[33]
1469 #define SWIGTYPE_p_wxIconizeEvent swig_types[34]
1470 #define SWIGTYPE_p_wxIdleEvent swig_types[35]
1471 #define SWIGTYPE_p_wxImage swig_types[36]
1472 #define SWIGTYPE_p_wxImageHandler swig_types[37]
1473 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[38]
1474 #define SWIGTYPE_p_wxInitDialogEvent swig_types[39]
1475 #define SWIGTYPE_p_wxJPEGHandler swig_types[40]
1476 #define SWIGTYPE_p_wxKeyEvent swig_types[41]
1477 #define SWIGTYPE_p_wxLayoutConstraints swig_types[42]
1478 #define SWIGTYPE_p_wxMaximizeEvent swig_types[43]
1479 #define SWIGTYPE_p_wxMenu swig_types[44]
1480 #define SWIGTYPE_p_wxMenuBar swig_types[45]
1481 #define SWIGTYPE_p_wxMenuEvent swig_types[46]
1482 #define SWIGTYPE_p_wxMenuItem swig_types[47]
1483 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[48]
1484 #define SWIGTYPE_p_wxMouseEvent swig_types[49]
1485 #define SWIGTYPE_p_wxMoveEvent swig_types[50]
1486 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[51]
1487 #define SWIGTYPE_p_wxNcPaintEvent swig_types[52]
1488 #define SWIGTYPE_p_wxNotifyEvent swig_types[53]
1489 #define SWIGTYPE_p_wxObject swig_types[54]
1490 #define SWIGTYPE_p_wxPCXHandler swig_types[55]
1491 #define SWIGTYPE_p_wxPNGHandler swig_types[56]
1492 #define SWIGTYPE_p_wxPNMHandler swig_types[57]
1493 #define SWIGTYPE_p_wxPaintEvent swig_types[58]
1494 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[59]
1495 #define SWIGTYPE_p_wxPaperSize swig_types[60]
1496 #define SWIGTYPE_p_wxPyApp swig_types[61]
1497 #define SWIGTYPE_p_wxPyCommandEvent swig_types[62]
1498 #define SWIGTYPE_p_wxPyEvent swig_types[63]
1499 #define SWIGTYPE_p_wxPyImageHandler swig_types[64]
1500 #define SWIGTYPE_p_wxPySizer swig_types[65]
1501 #define SWIGTYPE_p_wxPyValidator swig_types[66]
1502 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[67]
1503 #define SWIGTYPE_p_wxScrollEvent swig_types[68]
1504 #define SWIGTYPE_p_wxScrollWinEvent swig_types[69]
1505 #define SWIGTYPE_p_wxSetCursorEvent swig_types[70]
1506 #define SWIGTYPE_p_wxShowEvent swig_types[71]
1507 #define SWIGTYPE_p_wxSizeEvent swig_types[72]
1508 #define SWIGTYPE_p_wxSizer swig_types[73]
1509 #define SWIGTYPE_p_wxSizerItem swig_types[74]
1510 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[75]
1511 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[76]
1512 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[77]
1513 #define SWIGTYPE_p_wxTIFFHandler swig_types[78]
1514 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[79]
1515 #define SWIGTYPE_p_wxValidator swig_types[80]
1516 #define SWIGTYPE_p_wxWebKitCtrl swig_types[81]
1517 #define SWIGTYPE_p_wxWebKitStateChangedEvent swig_types[82]
1518 #define SWIGTYPE_p_wxWindow swig_types[83]
1519 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[84]
1520 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[85]
1521 #define SWIGTYPE_p_wxXPMHandler swig_types[86]
1522 #define SWIGTYPE_ptrdiff_t swig_types[87]
1523 #define SWIGTYPE_std__ptrdiff_t swig_types[88]
1524 #define SWIGTYPE_unsigned_int swig_types[89]
1525 static swig_type_info *swig_types[91];
1526 static swig_module_info swig_module = {swig_types, 90, 0, 0, 0, 0};
1527 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
1528 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
1529
1530 /* -------- TYPES TABLE (END) -------- */
1531
1532
1533 /*-----------------------------------------------
1534 @(target):= _webkit.so
1535 ------------------------------------------------*/
1536 #define SWIG_init init_webkit
1537
1538 #define SWIG_name "_webkit"
1539
1540
1541 #include "wx/wxPython/wxPython.h"
1542 #include "wx/wxPython/pyclasses.h"
1543 #include "wx/wxPython/pyistream.h"
1544
1545 #ifdef __WXMAC__ // avoid a bug in Carbon headers
1546 #define scalb scalbn
1547 #endif
1548
1549 #if wxUSE_WEBKIT
1550 #include "wx/html/webkit.h"
1551 #endif
1552
1553 static const wxString wxPyEmptyString(wxEmptyString);
1554 static const wxString wxPyWebKitNameStr(wxT("webkitctrl"));
1555
1556 #if !wxUSE_WEBKIT
1557 // a dummy class for ports that don't have wxWebKitCtrl
1558 class wxWebKitCtrl : public wxControl
1559 {
1560 public:
1561 wxWebKitCtrl(wxWindow *parent,
1562 wxWindowID winID,
1563 const wxString& strURL,
1564 const wxPoint& pos = wxDefaultPosition,
1565 const wxSize& size = wxDefaultSize, long style = 0,
1566 const wxValidator& validator = wxDefaultValidator,
1567 const wxString& name = wxPyWebKitNameStr)
1568 { wxPyRaiseNotImplemented(); }
1569
1570 wxWebKitCtrl() { wxPyRaiseNotImplemented(); }
1571
1572 bool Create(wxWindow *parent,
1573 wxWindowID winID,
1574 const wxString& strURL,
1575 const wxPoint& pos = wxDefaultPosition,
1576 const wxSize& size = wxDefaultSize, long style = 0,
1577 const wxValidator& validator = wxDefaultValidator,
1578 const wxString& name = wxPyWebKitNameStr)
1579 { return false; }
1580
1581 void LoadURL(const wxString &url) {}
1582
1583 bool CanGoBack() { return false; }
1584 bool CanGoForward() { return false; }
1585 bool GoBack() { return false; }
1586 bool GoForward() { return false; }
1587 void Reload() {}
1588 void Stop() {}
1589 bool CanGetPageSource() { return false; }
1590 wxString GetPageSource() { return wxEmptyString; }
1591 void SetPageSource(wxString& source, const wxString& baseUrl = wxEmptyString) {}
1592 wxString GetPageURL() { return wxEmptyString; }
1593 wxString GetPageTitle() { return wxEmptyString; }
1594 };
1595
1596
1597 enum {
1598 wxWEBKIT_STATE_START = 0,
1599 wxWEBKIT_STATE_NEGOTIATING = 0,
1600 wxWEBKIT_STATE_REDIRECTING = 0,
1601 wxWEBKIT_STATE_TRANSFERRING = 0,
1602 wxWEBKIT_STATE_STOP = 0,
1603 wxWEBKIT_STATE_FAILED = 0,
1604
1605 wxEVT_WEBKIT_STATE_CHANGED = 0
1606 };
1607
1608 class wxWebKitStateChangedEvent : public wxCommandEvent
1609 {
1610 public:
1611 wxWebKitStateChangedEvent( wxWindow* win = NULL )
1612 { wxPyRaiseNotImplemented(); }
1613
1614 int GetState() { return 0; }
1615 void SetState(const int state) {}
1616 wxString GetURL() { return wxEmptyString; }
1617 void SetURL(const wxString& url) {}
1618 };
1619
1620
1621 #endif
1622
1623
1624 #include <limits.h>
1625
1626
1627 SWIGINTERN int
1628 SWIG_CheckLongInRange(long value, long min_value, long max_value,
1629 const char *errmsg)
1630 {
1631 if (value < min_value) {
1632 if (errmsg) {
1633 PyErr_Format(PyExc_OverflowError,
1634 "value %ld is less than '%s' minimum %ld",
1635 value, errmsg, min_value);
1636 }
1637 return 0;
1638 } else if (value > max_value) {
1639 if (errmsg) {
1640 PyErr_Format(PyExc_OverflowError,
1641 "value %ld is greater than '%s' maximum %ld",
1642 value, errmsg, max_value);
1643 }
1644 return 0;
1645 }
1646 return 1;
1647 }
1648
1649
1650 SWIGINTERN int
1651 SWIG_AsVal_long(PyObject* obj, long* val)
1652 {
1653 if (PyNumber_Check(obj)) {
1654 if (val) *val = PyInt_AsLong(obj);
1655 return 1;
1656 }
1657 else {
1658 SWIG_Python_TypeError("number", obj);
1659 }
1660 return 0;
1661 }
1662
1663
1664 #if INT_MAX != LONG_MAX
1665 SWIGINTERN int
1666 SWIG_AsVal_int(PyObject *obj, int *val)
1667 {
1668 const char* errmsg = val ? "int" : (char*)0;
1669 long v;
1670 if (SWIG_AsVal_long(obj, &v)) {
1671 if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) {
1672 if (val) *val = static_cast<int >(v);
1673 return 1;
1674 } else {
1675 return 0;
1676 }
1677 } else {
1678 PyErr_Clear();
1679 }
1680 if (val) {
1681 SWIG_type_error(errmsg, obj);
1682 }
1683 return 0;
1684 }
1685 #else
1686 SWIGINTERNINLINE int
1687 SWIG_AsVal_int(PyObject *obj, int *val)
1688 {
1689 return SWIG_AsVal_long(obj,(long*)val);
1690 }
1691 #endif
1692
1693
1694 SWIGINTERNINLINE int
1695 SWIG_As_int(PyObject* obj)
1696 {
1697 int v;
1698 if (!SWIG_AsVal_int(obj, &v)) {
1699 /*
1700 this is needed to make valgrind/purify happier.
1701 */
1702 memset((void*)&v, 0, sizeof(int));
1703 }
1704 return v;
1705 }
1706
1707
1708 SWIGINTERNINLINE long
1709 SWIG_As_long(PyObject* obj)
1710 {
1711 long v;
1712 if (!SWIG_AsVal_long(obj, &v)) {
1713 /*
1714 this is needed to make valgrind/purify happier.
1715 */
1716 memset((void*)&v, 0, sizeof(long));
1717 }
1718 return v;
1719 }
1720
1721
1722 SWIGINTERNINLINE int
1723 SWIG_Check_int(PyObject* obj)
1724 {
1725 return SWIG_AsVal_int(obj, (int*)0);
1726 }
1727
1728
1729 SWIGINTERNINLINE int
1730 SWIG_Check_long(PyObject* obj)
1731 {
1732 return SWIG_AsVal_long(obj, (long*)0);
1733 }
1734
1735
1736 /*@/opt/swig/share/swig/1.3.27/python/pymacros.swg,72,SWIG_define@*/
1737 #define SWIG_From_int PyInt_FromLong
1738 /*@@*/
1739
1740 #ifdef __cplusplus
1741 extern "C" {
1742 #endif
1743 static int _wrap_WebKitNameStr_set(PyObject *) {
1744 PyErr_SetString(PyExc_TypeError,"Variable WebKitNameStr is read-only.");
1745 return 1;
1746 }
1747
1748
1749 static PyObject *_wrap_WebKitNameStr_get(void) {
1750 PyObject *pyobj = NULL;
1751
1752 {
1753 #if wxUSE_UNICODE
1754 pyobj = PyUnicode_FromWideChar((&wxPyWebKitNameStr)->c_str(), (&wxPyWebKitNameStr)->Len());
1755 #else
1756 pyobj = PyString_FromStringAndSize((&wxPyWebKitNameStr)->c_str(), (&wxPyWebKitNameStr)->Len());
1757 #endif
1758 }
1759 return pyobj;
1760 }
1761
1762
1763 static PyObject *_wrap_new_WebKitCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
1764 PyObject *resultobj = NULL;
1765 wxWindow *arg1 = (wxWindow *) 0 ;
1766 int arg2 = (int) -1 ;
1767 wxString const &arg3_defvalue = wxPyEmptyString ;
1768 wxString *arg3 = (wxString *) &arg3_defvalue ;
1769 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1770 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1771 wxSize const &arg5_defvalue = wxDefaultSize ;
1772 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1773 long arg6 = (long) 0 ;
1774 wxValidator const &arg7_defvalue = wxDefaultValidator ;
1775 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
1776 wxString const &arg8_defvalue = wxPyWebKitNameStr ;
1777 wxString *arg8 = (wxString *) &arg8_defvalue ;
1778 wxWebKitCtrl *result;
1779 bool temp3 = false ;
1780 wxPoint temp4 ;
1781 wxSize temp5 ;
1782 bool temp8 = false ;
1783 PyObject * obj0 = 0 ;
1784 PyObject * obj1 = 0 ;
1785 PyObject * obj2 = 0 ;
1786 PyObject * obj3 = 0 ;
1787 PyObject * obj4 = 0 ;
1788 PyObject * obj5 = 0 ;
1789 PyObject * obj6 = 0 ;
1790 PyObject * obj7 = 0 ;
1791 char *kwnames[] = {
1792 (char *) "parent",(char *) "winID",(char *) "strURL",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1793 };
1794
1795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_WebKitCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
1796 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
1797 if (SWIG_arg_fail(1)) SWIG_fail;
1798 if (obj1) {
1799 {
1800 arg2 = static_cast<int >(SWIG_As_int(obj1));
1801 if (SWIG_arg_fail(2)) SWIG_fail;
1802 }
1803 }
1804 if (obj2) {
1805 {
1806 arg3 = wxString_in_helper(obj2);
1807 if (arg3 == NULL) SWIG_fail;
1808 temp3 = true;
1809 }
1810 }
1811 if (obj3) {
1812 {
1813 arg4 = &temp4;
1814 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
1815 }
1816 }
1817 if (obj4) {
1818 {
1819 arg5 = &temp5;
1820 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
1821 }
1822 }
1823 if (obj5) {
1824 {
1825 arg6 = static_cast<long >(SWIG_As_long(obj5));
1826 if (SWIG_arg_fail(6)) SWIG_fail;
1827 }
1828 }
1829 if (obj6) {
1830 {
1831 SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0);
1832 if (SWIG_arg_fail(7)) SWIG_fail;
1833 if (arg7 == NULL) {
1834 SWIG_null_ref("wxValidator");
1835 }
1836 if (SWIG_arg_fail(7)) SWIG_fail;
1837 }
1838 }
1839 if (obj7) {
1840 {
1841 arg8 = wxString_in_helper(obj7);
1842 if (arg8 == NULL) SWIG_fail;
1843 temp8 = true;
1844 }
1845 }
1846 {
1847 if (!wxPyCheckForApp()) SWIG_fail;
1848 PyThreadState* __tstate = wxPyBeginAllowThreads();
1849 result = (wxWebKitCtrl *)new wxWebKitCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
1850
1851 wxPyEndAllowThreads(__tstate);
1852 if (PyErr_Occurred()) SWIG_fail;
1853 }
1854 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWebKitCtrl, 1);
1855 {
1856 if (temp3)
1857 delete arg3;
1858 }
1859 {
1860 if (temp8)
1861 delete arg8;
1862 }
1863 return resultobj;
1864 fail:
1865 {
1866 if (temp3)
1867 delete arg3;
1868 }
1869 {
1870 if (temp8)
1871 delete arg8;
1872 }
1873 return NULL;
1874 }
1875
1876
1877 static PyObject *_wrap_new_PreWebKitCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
1878 PyObject *resultobj = NULL;
1879 wxWebKitCtrl *result;
1880 char *kwnames[] = {
1881 NULL
1882 };
1883
1884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreWebKitCtrl",kwnames)) goto fail;
1885 {
1886 if (!wxPyCheckForApp()) SWIG_fail;
1887 PyThreadState* __tstate = wxPyBeginAllowThreads();
1888 result = (wxWebKitCtrl *)new wxWebKitCtrl();
1889
1890 wxPyEndAllowThreads(__tstate);
1891 if (PyErr_Occurred()) SWIG_fail;
1892 }
1893 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWebKitCtrl, 1);
1894 return resultobj;
1895 fail:
1896 return NULL;
1897 }
1898
1899
1900 static PyObject *_wrap_WebKitCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
1901 PyObject *resultobj = NULL;
1902 wxWebKitCtrl *arg1 = (wxWebKitCtrl *) 0 ;
1903 wxWindow *arg2 = (wxWindow *) 0 ;
1904 int arg3 = (int) -1 ;
1905 wxString const &arg4_defvalue = wxPyEmptyString ;
1906 wxString *arg4 = (wxString *) &arg4_defvalue ;
1907 wxPoint const &arg5_defvalue = wxDefaultPosition ;
1908 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
1909 wxSize const &arg6_defvalue = wxDefaultSize ;
1910 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
1911 long arg7 = (long) 0 ;
1912 wxValidator const &arg8_defvalue = wxDefaultValidator ;
1913 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
1914 wxString const &arg9_defvalue = wxPyWebKitNameStr ;
1915 wxString *arg9 = (wxString *) &arg9_defvalue ;
1916 bool result;
1917 bool temp4 = false ;
1918 wxPoint temp5 ;
1919 wxSize temp6 ;
1920 bool temp9 = false ;
1921 PyObject * obj0 = 0 ;
1922 PyObject * obj1 = 0 ;
1923 PyObject * obj2 = 0 ;
1924 PyObject * obj3 = 0 ;
1925 PyObject * obj4 = 0 ;
1926 PyObject * obj5 = 0 ;
1927 PyObject * obj6 = 0 ;
1928 PyObject * obj7 = 0 ;
1929 PyObject * obj8 = 0 ;
1930 char *kwnames[] = {
1931 (char *) "self",(char *) "parent",(char *) "winID",(char *) "strURL",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1932 };
1933
1934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:WebKitCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
1935 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWebKitCtrl, SWIG_POINTER_EXCEPTION | 0);
1936 if (SWIG_arg_fail(1)) SWIG_fail;
1937 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
1938 if (SWIG_arg_fail(2)) SWIG_fail;
1939 if (obj2) {
1940 {
1941 arg3 = static_cast<int >(SWIG_As_int(obj2));
1942 if (SWIG_arg_fail(3)) SWIG_fail;
1943 }
1944 }
1945 if (obj3) {
1946 {
1947 arg4 = wxString_in_helper(obj3);
1948 if (arg4 == NULL) SWIG_fail;
1949 temp4 = true;
1950 }
1951 }
1952 if (obj4) {
1953 {
1954 arg5 = &temp5;
1955 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
1956 }
1957 }
1958 if (obj5) {
1959 {
1960 arg6 = &temp6;
1961 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
1962 }
1963 }
1964 if (obj6) {
1965 {
1966 arg7 = static_cast<long >(SWIG_As_long(obj6));
1967 if (SWIG_arg_fail(7)) SWIG_fail;
1968 }
1969 }
1970 if (obj7) {
1971 {
1972 SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0);
1973 if (SWIG_arg_fail(8)) SWIG_fail;
1974 if (arg8 == NULL) {
1975 SWIG_null_ref("wxValidator");
1976 }
1977 if (SWIG_arg_fail(8)) SWIG_fail;
1978 }
1979 }
1980 if (obj8) {
1981 {
1982 arg9 = wxString_in_helper(obj8);
1983 if (arg9 == NULL) SWIG_fail;
1984 temp9 = true;
1985 }
1986 }
1987 {
1988 PyThreadState* __tstate = wxPyBeginAllowThreads();
1989 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
1990
1991 wxPyEndAllowThreads(__tstate);
1992 if (PyErr_Occurred()) SWIG_fail;
1993 }
1994 {
1995 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1996 }
1997 {
1998 if (temp4)
1999 delete arg4;
2000 }
2001 {
2002 if (temp9)
2003 delete arg9;
2004 }
2005 return resultobj;
2006 fail:
2007 {
2008 if (temp4)
2009 delete arg4;
2010 }
2011 {
2012 if (temp9)
2013 delete arg9;
2014 }
2015 return NULL;
2016 }
2017
2018
2019 static PyObject *_wrap_WebKitCtrl_LoadURL(PyObject *, PyObject *args, PyObject *kwargs) {
2020 PyObject *resultobj = NULL;
2021 wxWebKitCtrl *arg1 = (wxWebKitCtrl *) 0 ;
2022 wxString *arg2 = 0 ;
2023 bool temp2 = false ;
2024 PyObject * obj0 = 0 ;
2025 PyObject * obj1 = 0 ;
2026 char *kwnames[] = {
2027 (char *) "self",(char *) "url", NULL
2028 };
2029
2030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:WebKitCtrl_LoadURL",kwnames,&obj0,&obj1)) goto fail;
2031 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWebKitCtrl, SWIG_POINTER_EXCEPTION | 0);
2032 if (SWIG_arg_fail(1)) SWIG_fail;
2033 {
2034 arg2 = wxString_in_helper(obj1);
2035 if (arg2 == NULL) SWIG_fail;
2036 temp2 = true;
2037 }
2038 {
2039 PyThreadState* __tstate = wxPyBeginAllowThreads();
2040 (arg1)->LoadURL((wxString const &)*arg2);
2041
2042 wxPyEndAllowThreads(__tstate);
2043 if (PyErr_Occurred()) SWIG_fail;
2044 }
2045 Py_INCREF(Py_None); resultobj = Py_None;
2046 {
2047 if (temp2)
2048 delete arg2;
2049 }
2050 return resultobj;
2051 fail:
2052 {
2053 if (temp2)
2054 delete arg2;
2055 }
2056 return NULL;
2057 }
2058
2059
2060 static PyObject *_wrap_WebKitCtrl_CanGoBack(PyObject *, PyObject *args, PyObject *kwargs) {
2061 PyObject *resultobj = NULL;
2062 wxWebKitCtrl *arg1 = (wxWebKitCtrl *) 0 ;
2063 bool result;
2064 PyObject * obj0 = 0 ;
2065 char *kwnames[] = {
2066 (char *) "self", NULL
2067 };
2068
2069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WebKitCtrl_CanGoBack",kwnames,&obj0)) goto fail;
2070 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWebKitCtrl, SWIG_POINTER_EXCEPTION | 0);
2071 if (SWIG_arg_fail(1)) SWIG_fail;
2072 {
2073 PyThreadState* __tstate = wxPyBeginAllowThreads();
2074 result = (bool)(arg1)->CanGoBack();
2075
2076 wxPyEndAllowThreads(__tstate);
2077 if (PyErr_Occurred()) SWIG_fail;
2078 }
2079 {
2080 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2081 }
2082 return resultobj;
2083 fail:
2084 return NULL;
2085 }
2086
2087
2088 static PyObject *_wrap_WebKitCtrl_CanGoForward(PyObject *, PyObject *args, PyObject *kwargs) {
2089 PyObject *resultobj = NULL;
2090 wxWebKitCtrl *arg1 = (wxWebKitCtrl *) 0 ;
2091 bool result;
2092 PyObject * obj0 = 0 ;
2093 char *kwnames[] = {
2094 (char *) "self", NULL
2095 };
2096
2097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WebKitCtrl_CanGoForward",kwnames,&obj0)) goto fail;
2098 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWebKitCtrl, SWIG_POINTER_EXCEPTION | 0);
2099 if (SWIG_arg_fail(1)) SWIG_fail;
2100 {
2101 PyThreadState* __tstate = wxPyBeginAllowThreads();
2102 result = (bool)(arg1)->CanGoForward();
2103
2104 wxPyEndAllowThreads(__tstate);
2105 if (PyErr_Occurred()) SWIG_fail;
2106 }
2107 {
2108 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2109 }
2110 return resultobj;
2111 fail:
2112 return NULL;
2113 }
2114
2115
2116 static PyObject *_wrap_WebKitCtrl_GoBack(PyObject *, PyObject *args, PyObject *kwargs) {
2117 PyObject *resultobj = NULL;
2118 wxWebKitCtrl *arg1 = (wxWebKitCtrl *) 0 ;
2119 bool result;
2120 PyObject * obj0 = 0 ;
2121 char *kwnames[] = {
2122 (char *) "self", NULL
2123 };
2124
2125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WebKitCtrl_GoBack",kwnames,&obj0)) goto fail;
2126 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWebKitCtrl, SWIG_POINTER_EXCEPTION | 0);
2127 if (SWIG_arg_fail(1)) SWIG_fail;
2128 {
2129 PyThreadState* __tstate = wxPyBeginAllowThreads();
2130 result = (bool)(arg1)->GoBack();
2131
2132 wxPyEndAllowThreads(__tstate);
2133 if (PyErr_Occurred()) SWIG_fail;
2134 }
2135 {
2136 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2137 }
2138 return resultobj;
2139 fail:
2140 return NULL;
2141 }
2142
2143
2144 static PyObject *_wrap_WebKitCtrl_GoForward(PyObject *, PyObject *args, PyObject *kwargs) {
2145 PyObject *resultobj = NULL;
2146 wxWebKitCtrl *arg1 = (wxWebKitCtrl *) 0 ;
2147 bool result;
2148 PyObject * obj0 = 0 ;
2149 char *kwnames[] = {
2150 (char *) "self", NULL
2151 };
2152
2153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WebKitCtrl_GoForward",kwnames,&obj0)) goto fail;
2154 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWebKitCtrl, SWIG_POINTER_EXCEPTION | 0);
2155 if (SWIG_arg_fail(1)) SWIG_fail;
2156 {
2157 PyThreadState* __tstate = wxPyBeginAllowThreads();
2158 result = (bool)(arg1)->GoForward();
2159
2160 wxPyEndAllowThreads(__tstate);
2161 if (PyErr_Occurred()) SWIG_fail;
2162 }
2163 {
2164 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2165 }
2166 return resultobj;
2167 fail:
2168 return NULL;
2169 }
2170
2171
2172 static PyObject *_wrap_WebKitCtrl_Reload(PyObject *, PyObject *args, PyObject *kwargs) {
2173 PyObject *resultobj = NULL;
2174 wxWebKitCtrl *arg1 = (wxWebKitCtrl *) 0 ;
2175 PyObject * obj0 = 0 ;
2176 char *kwnames[] = {
2177 (char *) "self", NULL
2178 };
2179
2180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WebKitCtrl_Reload",kwnames,&obj0)) goto fail;
2181 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWebKitCtrl, SWIG_POINTER_EXCEPTION | 0);
2182 if (SWIG_arg_fail(1)) SWIG_fail;
2183 {
2184 PyThreadState* __tstate = wxPyBeginAllowThreads();
2185 (arg1)->Reload();
2186
2187 wxPyEndAllowThreads(__tstate);
2188 if (PyErr_Occurred()) SWIG_fail;
2189 }
2190 Py_INCREF(Py_None); resultobj = Py_None;
2191 return resultobj;
2192 fail:
2193 return NULL;
2194 }
2195
2196
2197 static PyObject *_wrap_WebKitCtrl_Stop(PyObject *, PyObject *args, PyObject *kwargs) {
2198 PyObject *resultobj = NULL;
2199 wxWebKitCtrl *arg1 = (wxWebKitCtrl *) 0 ;
2200 PyObject * obj0 = 0 ;
2201 char *kwnames[] = {
2202 (char *) "self", NULL
2203 };
2204
2205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WebKitCtrl_Stop",kwnames,&obj0)) goto fail;
2206 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWebKitCtrl, SWIG_POINTER_EXCEPTION | 0);
2207 if (SWIG_arg_fail(1)) SWIG_fail;
2208 {
2209 PyThreadState* __tstate = wxPyBeginAllowThreads();
2210 (arg1)->Stop();
2211
2212 wxPyEndAllowThreads(__tstate);
2213 if (PyErr_Occurred()) SWIG_fail;
2214 }
2215 Py_INCREF(Py_None); resultobj = Py_None;
2216 return resultobj;
2217 fail:
2218 return NULL;
2219 }
2220
2221
2222 static PyObject *_wrap_WebKitCtrl_CanGetPageSource(PyObject *, PyObject *args, PyObject *kwargs) {
2223 PyObject *resultobj = NULL;
2224 wxWebKitCtrl *arg1 = (wxWebKitCtrl *) 0 ;
2225 bool result;
2226 PyObject * obj0 = 0 ;
2227 char *kwnames[] = {
2228 (char *) "self", NULL
2229 };
2230
2231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WebKitCtrl_CanGetPageSource",kwnames,&obj0)) goto fail;
2232 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWebKitCtrl, SWIG_POINTER_EXCEPTION | 0);
2233 if (SWIG_arg_fail(1)) SWIG_fail;
2234 {
2235 PyThreadState* __tstate = wxPyBeginAllowThreads();
2236 result = (bool)(arg1)->CanGetPageSource();
2237
2238 wxPyEndAllowThreads(__tstate);
2239 if (PyErr_Occurred()) SWIG_fail;
2240 }
2241 {
2242 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2243 }
2244 return resultobj;
2245 fail:
2246 return NULL;
2247 }
2248
2249
2250 static PyObject *_wrap_WebKitCtrl_GetPageSource(PyObject *, PyObject *args, PyObject *kwargs) {
2251 PyObject *resultobj = NULL;
2252 wxWebKitCtrl *arg1 = (wxWebKitCtrl *) 0 ;
2253 wxString result;
2254 PyObject * obj0 = 0 ;
2255 char *kwnames[] = {
2256 (char *) "self", NULL
2257 };
2258
2259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WebKitCtrl_GetPageSource",kwnames,&obj0)) goto fail;
2260 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWebKitCtrl, SWIG_POINTER_EXCEPTION | 0);
2261 if (SWIG_arg_fail(1)) SWIG_fail;
2262 {
2263 PyThreadState* __tstate = wxPyBeginAllowThreads();
2264 result = (arg1)->GetPageSource();
2265
2266 wxPyEndAllowThreads(__tstate);
2267 if (PyErr_Occurred()) SWIG_fail;
2268 }
2269 {
2270 #if wxUSE_UNICODE
2271 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2272 #else
2273 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2274 #endif
2275 }
2276 return resultobj;
2277 fail:
2278 return NULL;
2279 }
2280
2281
2282 static PyObject *_wrap_WebKitCtrl_SetPageSource(PyObject *, PyObject *args, PyObject *kwargs) {
2283 PyObject *resultobj = NULL;
2284 wxWebKitCtrl *arg1 = (wxWebKitCtrl *) 0 ;
2285 wxString *arg2 = 0 ;
2286 wxString const &arg3_defvalue = wxPyEmptyString ;
2287 wxString *arg3 = (wxString *) &arg3_defvalue ;
2288 bool temp2 = false ;
2289 bool temp3 = false ;
2290 PyObject * obj0 = 0 ;
2291 PyObject * obj1 = 0 ;
2292 PyObject * obj2 = 0 ;
2293 char *kwnames[] = {
2294 (char *) "self",(char *) "source",(char *) "baseUrl", NULL
2295 };
2296
2297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:WebKitCtrl_SetPageSource",kwnames,&obj0,&obj1,&obj2)) goto fail;
2298 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWebKitCtrl, SWIG_POINTER_EXCEPTION | 0);
2299 if (SWIG_arg_fail(1)) SWIG_fail;
2300 {
2301 arg2 = wxString_in_helper(obj1);
2302 if (arg2 == NULL) SWIG_fail;
2303 temp2 = true;
2304 }
2305 if (obj2) {
2306 {
2307 arg3 = wxString_in_helper(obj2);
2308 if (arg3 == NULL) SWIG_fail;
2309 temp3 = true;
2310 }
2311 }
2312 {
2313 PyThreadState* __tstate = wxPyBeginAllowThreads();
2314 (arg1)->SetPageSource(*arg2,(wxString const &)*arg3);
2315
2316 wxPyEndAllowThreads(__tstate);
2317 if (PyErr_Occurred()) SWIG_fail;
2318 }
2319 Py_INCREF(Py_None); resultobj = Py_None;
2320 {
2321 if (temp2)
2322 delete arg2;
2323 }
2324 {
2325 if (temp3)
2326 delete arg3;
2327 }
2328 return resultobj;
2329 fail:
2330 {
2331 if (temp2)
2332 delete arg2;
2333 }
2334 {
2335 if (temp3)
2336 delete arg3;
2337 }
2338 return NULL;
2339 }
2340
2341
2342 static PyObject *_wrap_WebKitCtrl_GetPageURL(PyObject *, PyObject *args, PyObject *kwargs) {
2343 PyObject *resultobj = NULL;
2344 wxWebKitCtrl *arg1 = (wxWebKitCtrl *) 0 ;
2345 wxString result;
2346 PyObject * obj0 = 0 ;
2347 char *kwnames[] = {
2348 (char *) "self", NULL
2349 };
2350
2351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WebKitCtrl_GetPageURL",kwnames,&obj0)) goto fail;
2352 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWebKitCtrl, SWIG_POINTER_EXCEPTION | 0);
2353 if (SWIG_arg_fail(1)) SWIG_fail;
2354 {
2355 PyThreadState* __tstate = wxPyBeginAllowThreads();
2356 result = (arg1)->GetPageURL();
2357
2358 wxPyEndAllowThreads(__tstate);
2359 if (PyErr_Occurred()) SWIG_fail;
2360 }
2361 {
2362 #if wxUSE_UNICODE
2363 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2364 #else
2365 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2366 #endif
2367 }
2368 return resultobj;
2369 fail:
2370 return NULL;
2371 }
2372
2373
2374 static PyObject *_wrap_WebKitCtrl_GetPageTitle(PyObject *, PyObject *args, PyObject *kwargs) {
2375 PyObject *resultobj = NULL;
2376 wxWebKitCtrl *arg1 = (wxWebKitCtrl *) 0 ;
2377 wxString result;
2378 PyObject * obj0 = 0 ;
2379 char *kwnames[] = {
2380 (char *) "self", NULL
2381 };
2382
2383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WebKitCtrl_GetPageTitle",kwnames,&obj0)) goto fail;
2384 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWebKitCtrl, SWIG_POINTER_EXCEPTION | 0);
2385 if (SWIG_arg_fail(1)) SWIG_fail;
2386 {
2387 PyThreadState* __tstate = wxPyBeginAllowThreads();
2388 result = (arg1)->GetPageTitle();
2389
2390 wxPyEndAllowThreads(__tstate);
2391 if (PyErr_Occurred()) SWIG_fail;
2392 }
2393 {
2394 #if wxUSE_UNICODE
2395 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2396 #else
2397 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2398 #endif
2399 }
2400 return resultobj;
2401 fail:
2402 return NULL;
2403 }
2404
2405
2406 static PyObject * WebKitCtrl_swigregister(PyObject *, PyObject *args) {
2407 PyObject *obj;
2408 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2409 SWIG_TypeClientData(SWIGTYPE_p_wxWebKitCtrl, obj);
2410 Py_INCREF(obj);
2411 return Py_BuildValue((char *)"");
2412 }
2413 static PyObject *_wrap_new_WebKitStateChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) {
2414 PyObject *resultobj = NULL;
2415 wxWindow *arg1 = (wxWindow *) NULL ;
2416 wxWebKitStateChangedEvent *result;
2417 PyObject * obj0 = 0 ;
2418 char *kwnames[] = {
2419 (char *) "win", NULL
2420 };
2421
2422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WebKitStateChangedEvent",kwnames,&obj0)) goto fail;
2423 if (obj0) {
2424 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
2425 if (SWIG_arg_fail(1)) SWIG_fail;
2426 }
2427 {
2428 PyThreadState* __tstate = wxPyBeginAllowThreads();
2429 result = (wxWebKitStateChangedEvent *)new wxWebKitStateChangedEvent(arg1);
2430
2431 wxPyEndAllowThreads(__tstate);
2432 if (PyErr_Occurred()) SWIG_fail;
2433 }
2434 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWebKitStateChangedEvent, 1);
2435 return resultobj;
2436 fail:
2437 return NULL;
2438 }
2439
2440
2441 static PyObject *_wrap_WebKitStateChangedEvent_GetState(PyObject *, PyObject *args, PyObject *kwargs) {
2442 PyObject *resultobj = NULL;
2443 wxWebKitStateChangedEvent *arg1 = (wxWebKitStateChangedEvent *) 0 ;
2444 int result;
2445 PyObject * obj0 = 0 ;
2446 char *kwnames[] = {
2447 (char *) "self", NULL
2448 };
2449
2450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WebKitStateChangedEvent_GetState",kwnames,&obj0)) goto fail;
2451 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWebKitStateChangedEvent, SWIG_POINTER_EXCEPTION | 0);
2452 if (SWIG_arg_fail(1)) SWIG_fail;
2453 {
2454 PyThreadState* __tstate = wxPyBeginAllowThreads();
2455 result = (int)(arg1)->GetState();
2456
2457 wxPyEndAllowThreads(__tstate);
2458 if (PyErr_Occurred()) SWIG_fail;
2459 }
2460 {
2461 resultobj = SWIG_From_int(static_cast<int >(result));
2462 }
2463 return resultobj;
2464 fail:
2465 return NULL;
2466 }
2467
2468
2469 static PyObject *_wrap_WebKitStateChangedEvent_SetState(PyObject *, PyObject *args, PyObject *kwargs) {
2470 PyObject *resultobj = NULL;
2471 wxWebKitStateChangedEvent *arg1 = (wxWebKitStateChangedEvent *) 0 ;
2472 int arg2 ;
2473 PyObject * obj0 = 0 ;
2474 PyObject * obj1 = 0 ;
2475 char *kwnames[] = {
2476 (char *) "self",(char *) "state", NULL
2477 };
2478
2479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:WebKitStateChangedEvent_SetState",kwnames,&obj0,&obj1)) goto fail;
2480 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWebKitStateChangedEvent, SWIG_POINTER_EXCEPTION | 0);
2481 if (SWIG_arg_fail(1)) SWIG_fail;
2482 {
2483 arg2 = static_cast<int const >(SWIG_As_int(obj1));
2484 if (SWIG_arg_fail(2)) SWIG_fail;
2485 }
2486 {
2487 PyThreadState* __tstate = wxPyBeginAllowThreads();
2488 (arg1)->SetState(arg2);
2489
2490 wxPyEndAllowThreads(__tstate);
2491 if (PyErr_Occurred()) SWIG_fail;
2492 }
2493 Py_INCREF(Py_None); resultobj = Py_None;
2494 return resultobj;
2495 fail:
2496 return NULL;
2497 }
2498
2499
2500 static PyObject *_wrap_WebKitStateChangedEvent_GetURL(PyObject *, PyObject *args, PyObject *kwargs) {
2501 PyObject *resultobj = NULL;
2502 wxWebKitStateChangedEvent *arg1 = (wxWebKitStateChangedEvent *) 0 ;
2503 wxString result;
2504 PyObject * obj0 = 0 ;
2505 char *kwnames[] = {
2506 (char *) "self", NULL
2507 };
2508
2509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WebKitStateChangedEvent_GetURL",kwnames,&obj0)) goto fail;
2510 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWebKitStateChangedEvent, SWIG_POINTER_EXCEPTION | 0);
2511 if (SWIG_arg_fail(1)) SWIG_fail;
2512 {
2513 PyThreadState* __tstate = wxPyBeginAllowThreads();
2514 result = (arg1)->GetURL();
2515
2516 wxPyEndAllowThreads(__tstate);
2517 if (PyErr_Occurred()) SWIG_fail;
2518 }
2519 {
2520 #if wxUSE_UNICODE
2521 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2522 #else
2523 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2524 #endif
2525 }
2526 return resultobj;
2527 fail:
2528 return NULL;
2529 }
2530
2531
2532 static PyObject *_wrap_WebKitStateChangedEvent_SetURL(PyObject *, PyObject *args, PyObject *kwargs) {
2533 PyObject *resultobj = NULL;
2534 wxWebKitStateChangedEvent *arg1 = (wxWebKitStateChangedEvent *) 0 ;
2535 wxString *arg2 = 0 ;
2536 bool temp2 = false ;
2537 PyObject * obj0 = 0 ;
2538 PyObject * obj1 = 0 ;
2539 char *kwnames[] = {
2540 (char *) "self",(char *) "url", NULL
2541 };
2542
2543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:WebKitStateChangedEvent_SetURL",kwnames,&obj0,&obj1)) goto fail;
2544 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWebKitStateChangedEvent, SWIG_POINTER_EXCEPTION | 0);
2545 if (SWIG_arg_fail(1)) SWIG_fail;
2546 {
2547 arg2 = wxString_in_helper(obj1);
2548 if (arg2 == NULL) SWIG_fail;
2549 temp2 = true;
2550 }
2551 {
2552 PyThreadState* __tstate = wxPyBeginAllowThreads();
2553 (arg1)->SetURL((wxString const &)*arg2);
2554
2555 wxPyEndAllowThreads(__tstate);
2556 if (PyErr_Occurred()) SWIG_fail;
2557 }
2558 Py_INCREF(Py_None); resultobj = Py_None;
2559 {
2560 if (temp2)
2561 delete arg2;
2562 }
2563 return resultobj;
2564 fail:
2565 {
2566 if (temp2)
2567 delete arg2;
2568 }
2569 return NULL;
2570 }
2571
2572
2573 static PyObject * WebKitStateChangedEvent_swigregister(PyObject *, PyObject *args) {
2574 PyObject *obj;
2575 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2576 SWIG_TypeClientData(SWIGTYPE_p_wxWebKitStateChangedEvent, obj);
2577 Py_INCREF(obj);
2578 return Py_BuildValue((char *)"");
2579 }
2580 static PyMethodDef SwigMethods[] = {
2581 { (char *)"new_WebKitCtrl", (PyCFunction) _wrap_new_WebKitCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
2582 { (char *)"new_PreWebKitCtrl", (PyCFunction) _wrap_new_PreWebKitCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
2583 { (char *)"WebKitCtrl_Create", (PyCFunction) _wrap_WebKitCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
2584 { (char *)"WebKitCtrl_LoadURL", (PyCFunction) _wrap_WebKitCtrl_LoadURL, METH_VARARGS | METH_KEYWORDS, NULL},
2585 { (char *)"WebKitCtrl_CanGoBack", (PyCFunction) _wrap_WebKitCtrl_CanGoBack, METH_VARARGS | METH_KEYWORDS, NULL},
2586 { (char *)"WebKitCtrl_CanGoForward", (PyCFunction) _wrap_WebKitCtrl_CanGoForward, METH_VARARGS | METH_KEYWORDS, NULL},
2587 { (char *)"WebKitCtrl_GoBack", (PyCFunction) _wrap_WebKitCtrl_GoBack, METH_VARARGS | METH_KEYWORDS, NULL},
2588 { (char *)"WebKitCtrl_GoForward", (PyCFunction) _wrap_WebKitCtrl_GoForward, METH_VARARGS | METH_KEYWORDS, NULL},
2589 { (char *)"WebKitCtrl_Reload", (PyCFunction) _wrap_WebKitCtrl_Reload, METH_VARARGS | METH_KEYWORDS, NULL},
2590 { (char *)"WebKitCtrl_Stop", (PyCFunction) _wrap_WebKitCtrl_Stop, METH_VARARGS | METH_KEYWORDS, NULL},
2591 { (char *)"WebKitCtrl_CanGetPageSource", (PyCFunction) _wrap_WebKitCtrl_CanGetPageSource, METH_VARARGS | METH_KEYWORDS, NULL},
2592 { (char *)"WebKitCtrl_GetPageSource", (PyCFunction) _wrap_WebKitCtrl_GetPageSource, METH_VARARGS | METH_KEYWORDS, NULL},
2593 { (char *)"WebKitCtrl_SetPageSource", (PyCFunction) _wrap_WebKitCtrl_SetPageSource, METH_VARARGS | METH_KEYWORDS, NULL},
2594 { (char *)"WebKitCtrl_GetPageURL", (PyCFunction) _wrap_WebKitCtrl_GetPageURL, METH_VARARGS | METH_KEYWORDS, NULL},
2595 { (char *)"WebKitCtrl_GetPageTitle", (PyCFunction) _wrap_WebKitCtrl_GetPageTitle, METH_VARARGS | METH_KEYWORDS, NULL},
2596 { (char *)"WebKitCtrl_swigregister", WebKitCtrl_swigregister, METH_VARARGS, NULL},
2597 { (char *)"new_WebKitStateChangedEvent", (PyCFunction) _wrap_new_WebKitStateChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL},
2598 { (char *)"WebKitStateChangedEvent_GetState", (PyCFunction) _wrap_WebKitStateChangedEvent_GetState, METH_VARARGS | METH_KEYWORDS, NULL},
2599 { (char *)"WebKitStateChangedEvent_SetState", (PyCFunction) _wrap_WebKitStateChangedEvent_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
2600 { (char *)"WebKitStateChangedEvent_GetURL", (PyCFunction) _wrap_WebKitStateChangedEvent_GetURL, METH_VARARGS | METH_KEYWORDS, NULL},
2601 { (char *)"WebKitStateChangedEvent_SetURL", (PyCFunction) _wrap_WebKitStateChangedEvent_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
2602 { (char *)"WebKitStateChangedEvent_swigregister", WebKitStateChangedEvent_swigregister, METH_VARARGS, NULL},
2603 { NULL, NULL, 0, NULL }
2604 };
2605
2606
2607 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
2608
2609 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
2610 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
2611 }
2612 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
2613 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
2614 }
2615 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
2616 return (void *)((wxObject *) ((wxSizerItem *) x));
2617 }
2618 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
2619 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
2620 }
2621 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
2622 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
2623 }
2624 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
2625 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
2626 }
2627 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
2628 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
2629 }
2630 static void *_p_wxSizerTo_p_wxObject(void *x) {
2631 return (void *)((wxObject *) ((wxSizer *) x));
2632 }
2633 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
2634 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
2635 }
2636 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
2637 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
2638 }
2639 static void *_p_wxEventTo_p_wxObject(void *x) {
2640 return (void *)((wxObject *) ((wxEvent *) x));
2641 }
2642 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
2643 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
2644 }
2645 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
2646 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
2647 }
2648 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
2649 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
2650 }
2651 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
2652 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
2653 }
2654 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
2655 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
2656 }
2657 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
2658 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
2659 }
2660 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
2661 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
2662 }
2663 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
2664 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
2665 }
2666 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
2667 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
2668 }
2669 static void *_p_wxWebKitStateChangedEventTo_p_wxObject(void *x) {
2670 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWebKitStateChangedEvent *) x));
2671 }
2672 static void *_p_wxControlTo_p_wxObject(void *x) {
2673 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
2674 }
2675 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
2676 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
2677 }
2678 static void *_p_wxFSFileTo_p_wxObject(void *x) {
2679 return (void *)((wxObject *) ((wxFSFile *) x));
2680 }
2681 static void *_p_wxPySizerTo_p_wxObject(void *x) {
2682 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
2683 }
2684 static void *_p_wxPyEventTo_p_wxObject(void *x) {
2685 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
2686 }
2687 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
2688 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
2689 }
2690 static void *_p_wxShowEventTo_p_wxObject(void *x) {
2691 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
2692 }
2693 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
2694 return (void *)((wxObject *) ((wxMenuItem *) x));
2695 }
2696 static void *_p_wxDateEventTo_p_wxObject(void *x) {
2697 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
2698 }
2699 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
2700 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
2701 }
2702 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
2703 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
2704 }
2705 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
2706 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
2707 }
2708 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
2709 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
2710 }
2711 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
2712 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
2713 }
2714 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
2715 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
2716 }
2717 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
2718 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
2719 }
2720 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
2721 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
2722 }
2723 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
2724 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
2725 }
2726 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
2727 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
2728 }
2729 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
2730 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
2731 }
2732 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
2733 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
2734 }
2735 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
2736 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
2737 }
2738 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
2739 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
2740 }
2741 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
2742 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
2743 }
2744 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
2745 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
2746 }
2747 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
2748 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
2749 }
2750 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
2751 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
2752 }
2753 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
2754 return (void *)((wxObject *) ((wxImageHandler *) x));
2755 }
2756 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
2757 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
2758 }
2759 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
2760 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
2761 }
2762 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
2763 return (void *)((wxObject *) ((wxEvtHandler *) x));
2764 }
2765 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
2766 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
2767 }
2768 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
2769 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
2770 }
2771 static void *_p_wxImageTo_p_wxObject(void *x) {
2772 return (void *)((wxObject *) ((wxImage *) x));
2773 }
2774 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
2775 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
2776 }
2777 static void *_p_wxWebKitCtrlTo_p_wxObject(void *x) {
2778 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxWebKitCtrl *) x));
2779 }
2780 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
2781 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
2782 }
2783 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
2784 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
2785 }
2786 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
2787 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
2788 }
2789 static void *_p_wxWindowTo_p_wxObject(void *x) {
2790 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
2791 }
2792 static void *_p_wxMenuTo_p_wxObject(void *x) {
2793 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
2794 }
2795 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
2796 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
2797 }
2798 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
2799 return (void *)((wxObject *) ((wxFileSystem *) x));
2800 }
2801 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
2802 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
2803 }
2804 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
2805 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
2806 }
2807 static void *_p_wxPyAppTo_p_wxObject(void *x) {
2808 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
2809 }
2810 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
2811 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
2812 }
2813 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
2814 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
2815 }
2816 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
2817 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
2818 }
2819 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
2820 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
2821 }
2822 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
2823 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
2824 }
2825 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
2826 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
2827 }
2828 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
2829 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
2830 }
2831 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
2832 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
2833 }
2834 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
2835 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
2836 }
2837 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
2838 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
2839 }
2840 static void *_p_wxValidatorTo_p_wxObject(void *x) {
2841 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
2842 }
2843 static void *_p_wxControlTo_p_wxWindow(void *x) {
2844 return (void *)((wxWindow *) ((wxControl *) x));
2845 }
2846 static void *_p_wxWebKitCtrlTo_p_wxWindow(void *x) {
2847 return (void *)((wxWindow *) (wxControl *) ((wxWebKitCtrl *) x));
2848 }
2849 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
2850 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
2851 }
2852 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
2853 return (void *)((wxWindow *) ((wxMenuBar *) x));
2854 }
2855 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
2856 return (void *)((wxValidator *) ((wxPyValidator *) x));
2857 }
2858 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
2859 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
2860 }
2861 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
2862 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
2863 }
2864 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
2865 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
2866 }
2867 static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
2868 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
2869 }
2870 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
2871 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
2872 }
2873 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
2874 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
2875 }
2876 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
2877 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
2878 }
2879 static void *_p_wxWebKitStateChangedEventTo_p_wxCommandEvent(void *x) {
2880 return (void *)((wxCommandEvent *) ((wxWebKitStateChangedEvent *) x));
2881 }
2882 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
2883 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
2884 }
2885 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
2886 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
2887 }
2888 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
2889 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
2890 }
2891 static void *_p_wxWebKitCtrlTo_p_wxEvtHandler(void *x) {
2892 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxWebKitCtrl *) x));
2893 }
2894 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
2895 return (void *)((wxEvtHandler *) ((wxWindow *) x));
2896 }
2897 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
2898 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
2899 }
2900 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
2901 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
2902 }
2903 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
2904 return (void *)((wxEvtHandler *) ((wxValidator *) x));
2905 }
2906 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
2907 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
2908 }
2909 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
2910 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
2911 }
2912 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
2913 return (void *)((wxEvtHandler *) ((wxMenu *) x));
2914 }
2915 static void *_p_wxWebKitCtrlTo_p_wxControl(void *x) {
2916 return (void *)((wxControl *) ((wxWebKitCtrl *) x));
2917 }
2918 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
2919 return (void *)((wxControl *) ((wxControlWithItems *) x));
2920 }
2921 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
2922 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
2923 }
2924 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
2925 return (void *)((wxEvent *) ((wxMenuEvent *) x));
2926 }
2927 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
2928 return (void *)((wxEvent *) ((wxCloseEvent *) x));
2929 }
2930 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
2931 return (void *)((wxEvent *) ((wxMouseEvent *) x));
2932 }
2933 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
2934 return (void *)((wxEvent *) ((wxEraseEvent *) x));
2935 }
2936 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
2937 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
2938 }
2939 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
2940 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
2941 }
2942 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
2943 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
2944 }
2945 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
2946 return (void *)((wxEvent *) ((wxPyEvent *) x));
2947 }
2948 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
2949 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
2950 }
2951 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
2952 return (void *)((wxEvent *) ((wxIdleEvent *) x));
2953 }
2954 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
2955 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
2956 }
2957 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
2958 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
2959 }
2960 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
2961 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
2962 }
2963 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
2964 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
2965 }
2966 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
2967 return (void *)((wxEvent *) ((wxActivateEvent *) x));
2968 }
2969 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
2970 return (void *)((wxEvent *) ((wxSizeEvent *) x));
2971 }
2972 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
2973 return (void *)((wxEvent *) ((wxMoveEvent *) x));
2974 }
2975 static void *_p_wxDateEventTo_p_wxEvent(void *x) {
2976 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
2977 }
2978 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
2979 return (void *)((wxEvent *) ((wxPaintEvent *) x));
2980 }
2981 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
2982 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
2983 }
2984 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
2985 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
2986 }
2987 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
2988 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
2989 }
2990 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
2991 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
2992 }
2993 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
2994 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
2995 }
2996 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
2997 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
2998 }
2999 static void *_p_wxWebKitStateChangedEventTo_p_wxEvent(void *x) {
3000 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWebKitStateChangedEvent *) x));
3001 }
3002 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
3003 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
3004 }
3005 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
3006 return (void *)((wxEvent *) ((wxFocusEvent *) x));
3007 }
3008 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
3009 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
3010 }
3011 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
3012 return (void *)((wxEvent *) ((wxShowEvent *) x));
3013 }
3014 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
3015 return (void *)((wxEvent *) ((wxCommandEvent *) x));
3016 }
3017 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
3018 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
3019 }
3020 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
3021 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
3022 }
3023 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
3024 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
3025 }
3026 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
3027 return (void *)((wxEvent *) ((wxKeyEvent *) x));
3028 }
3029 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
3030 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
3031 }
3032 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, 0};
3033 static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, 0};
3034 static swig_type_info _swigt__p_int = {"_p_int", "int *|wxEventType *", 0, 0, 0};
3035 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, 0};
3036 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, 0};
3037 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, 0};
3038 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, 0};
3039 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0};
3040 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0};
3041 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0};
3042 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0};
3043 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0};
3044 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0};
3045 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0};
3046 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0};
3047 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0};
3048 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, 0};
3049 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0};
3050 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, 0};
3051 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, 0};
3052 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0};
3053 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0};
3054 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0};
3055 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0};
3056 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0};
3057 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0};
3058 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0};
3059 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0};
3060 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0};
3061 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0};
3062 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0};
3063 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0};
3064 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0};
3065 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0};
3066 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0};
3067 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0};
3068 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0};
3069 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0};
3070 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0};
3071 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0};
3072 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0};
3073 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0};
3074 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0};
3075 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0};
3076 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0};
3077 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0};
3078 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, 0};
3079 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0};
3080 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0};
3081 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0};
3082 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0};
3083 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, 0};
3084 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0};
3085 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0};
3086 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0};
3087 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0};
3088 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0};
3089 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0};
3090 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0};
3091 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0};
3092 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0};
3093 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0};
3094 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0};
3095 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0};
3096 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0};
3097 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0};
3098 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0};
3099 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0};
3100 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0};
3101 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0};
3102 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0};
3103 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0};
3104 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0};
3105 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0};
3106 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0};
3107 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0};
3108 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0};
3109 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0};
3110 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0};
3111 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0};
3112 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0};
3113 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0};
3114 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, 0};
3115 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, 0};
3116 static swig_type_info _swigt__p_wxWebKitCtrl = {"_p_wxWebKitCtrl", "wxWebKitCtrl *", 0, 0, 0};
3117 static swig_type_info _swigt__p_wxWebKitStateChangedEvent = {"_p_wxWebKitStateChangedEvent", "wxWebKitStateChangedEvent *", 0, 0, 0};
3118 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, 0};
3119 static swig_type_info _swigt__ptrdiff_t = {"_ptrdiff_t", "ptrdiff_t", 0, 0, 0};
3120 static swig_type_info _swigt__std__ptrdiff_t = {"_std__ptrdiff_t", "std::ptrdiff_t", 0, 0, 0};
3121 static swig_type_info _swigt__unsigned_int = {"_unsigned_int", "unsigned int|std::size_t", 0, 0, 0};
3122
3123 static swig_type_info *swig_type_initial[] = {
3124 &_swigt__p_char,
3125 &_swigt__p_form_ops_t,
3126 &_swigt__p_int,
3127 &_swigt__p_unsigned_char,
3128 &_swigt__p_unsigned_int,
3129 &_swigt__p_unsigned_long,
3130 &_swigt__p_wxANIHandler,
3131 &_swigt__p_wxAcceleratorTable,
3132 &_swigt__p_wxActivateEvent,
3133 &_swigt__p_wxBMPHandler,
3134 &_swigt__p_wxBoxSizer,
3135 &_swigt__p_wxCURHandler,
3136 &_swigt__p_wxChildFocusEvent,
3137 &_swigt__p_wxCloseEvent,
3138 &_swigt__p_wxCommandEvent,
3139 &_swigt__p_wxContextMenuEvent,
3140 &_swigt__p_wxControl,
3141 &_swigt__p_wxControlWithItems,
3142 &_swigt__p_wxDateEvent,
3143 &_swigt__p_wxDisplayChangedEvent,
3144 &_swigt__p_wxDropFilesEvent,
3145 &_swigt__p_wxDuplexMode,
3146 &_swigt__p_wxEraseEvent,
3147 &_swigt__p_wxEvent,
3148 &_swigt__p_wxEvtHandler,
3149 &_swigt__p_wxFSFile,
3150 &_swigt__p_wxFileSystem,
3151 &_swigt__p_wxFlexGridSizer,
3152 &_swigt__p_wxFocusEvent,
3153 &_swigt__p_wxGBSizerItem,
3154 &_swigt__p_wxGIFHandler,
3155 &_swigt__p_wxGridBagSizer,
3156 &_swigt__p_wxGridSizer,
3157 &_swigt__p_wxICOHandler,
3158 &_swigt__p_wxIconizeEvent,
3159 &_swigt__p_wxIdleEvent,
3160 &_swigt__p_wxImage,
3161 &_swigt__p_wxImageHandler,
3162 &_swigt__p_wxIndividualLayoutConstraint,
3163 &_swigt__p_wxInitDialogEvent,
3164 &_swigt__p_wxJPEGHandler,
3165 &_swigt__p_wxKeyEvent,
3166 &_swigt__p_wxLayoutConstraints,
3167 &_swigt__p_wxMaximizeEvent,
3168 &_swigt__p_wxMenu,
3169 &_swigt__p_wxMenuBar,
3170 &_swigt__p_wxMenuEvent,
3171 &_swigt__p_wxMenuItem,
3172 &_swigt__p_wxMouseCaptureChangedEvent,
3173 &_swigt__p_wxMouseEvent,
3174 &_swigt__p_wxMoveEvent,
3175 &_swigt__p_wxNavigationKeyEvent,
3176 &_swigt__p_wxNcPaintEvent,
3177 &_swigt__p_wxNotifyEvent,
3178 &_swigt__p_wxObject,
3179 &_swigt__p_wxPCXHandler,
3180 &_swigt__p_wxPNGHandler,
3181 &_swigt__p_wxPNMHandler,
3182 &_swigt__p_wxPaintEvent,
3183 &_swigt__p_wxPaletteChangedEvent,
3184 &_swigt__p_wxPaperSize,
3185 &_swigt__p_wxPyApp,
3186 &_swigt__p_wxPyCommandEvent,
3187 &_swigt__p_wxPyEvent,
3188 &_swigt__p_wxPyImageHandler,
3189 &_swigt__p_wxPySizer,
3190 &_swigt__p_wxPyValidator,
3191 &_swigt__p_wxQueryNewPaletteEvent,
3192 &_swigt__p_wxScrollEvent,
3193 &_swigt__p_wxScrollWinEvent,
3194 &_swigt__p_wxSetCursorEvent,
3195 &_swigt__p_wxShowEvent,
3196 &_swigt__p_wxSizeEvent,
3197 &_swigt__p_wxSizer,
3198 &_swigt__p_wxSizerItem,
3199 &_swigt__p_wxStaticBoxSizer,
3200 &_swigt__p_wxStdDialogButtonSizer,
3201 &_swigt__p_wxSysColourChangedEvent,
3202 &_swigt__p_wxTIFFHandler,
3203 &_swigt__p_wxUpdateUIEvent,
3204 &_swigt__p_wxValidator,
3205 &_swigt__p_wxWebKitCtrl,
3206 &_swigt__p_wxWebKitStateChangedEvent,
3207 &_swigt__p_wxWindow,
3208 &_swigt__p_wxWindowCreateEvent,
3209 &_swigt__p_wxWindowDestroyEvent,
3210 &_swigt__p_wxXPMHandler,
3211 &_swigt__ptrdiff_t,
3212 &_swigt__std__ptrdiff_t,
3213 &_swigt__unsigned_int,
3214 };
3215
3216 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
3217 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
3218 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
3219 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
3220 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
3221 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
3222 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
3223 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
3224 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
3225 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
3226 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
3227 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
3228 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
3229 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
3230 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
3231 static swig_cast_info _swigc__p_wxCommandEvent[] = { {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWebKitStateChangedEvent, _p_wxWebKitStateChangedEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxCommandEvent, 0, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0},{0, 0, 0, 0}};
3232 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
3233 static swig_cast_info _swigc__p_wxControl[] = { {&_swigt__p_wxControl, 0, 0, 0}, {&_swigt__p_wxWebKitCtrl, _p_wxWebKitCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxControl, 0, 0},{0, 0, 0, 0}};
3234 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
3235 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
3236 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
3237 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
3238 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
3239 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
3240 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
3241 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
3242 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
3243 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
3244 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
3245 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
3246 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
3247 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
3248 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
3249 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
3250 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
3251 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
3252 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
3253 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
3254 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
3255 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
3256 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
3257 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
3258 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
3259 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
3260 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
3261 static swig_cast_info _swigc__p_wxEvent[] = { {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEvent, 0, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWebKitStateChangedEvent, _p_wxWebKitStateChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxEvent, 0, 0},{0, 0, 0, 0}};
3262 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
3263 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
3264 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
3265 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
3266 static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxControl, _p_wxControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxWebKitCtrl, _p_wxWebKitCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEvtHandler, 0, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxEvtHandler, 0, 0},{0, 0, 0, 0}};
3267 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
3268 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
3269 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
3270 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
3271 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
3272 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
3273 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
3274 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
3275 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
3276 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
3277 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
3278 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
3279 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
3280 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
3281 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
3282 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
3283 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
3284 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
3285 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
3286 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
3287 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
3288 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
3289 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
3290 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
3291 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
3292 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
3293 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
3294 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
3295 static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
3296 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
3297 static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWebKitStateChangedEvent, _p_wxWebKitStateChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWebKitCtrl, _p_wxWebKitCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
3298 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
3299 static swig_cast_info _swigc__p_wxValidator[] = { {&_swigt__p_wxValidator, 0, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxValidator, 0, 0},{0, 0, 0, 0}};
3300 static swig_cast_info _swigc__p_wxWebKitCtrl[] = { {&_swigt__p_wxWebKitCtrl, 0, 0, 0},{0, 0, 0, 0}};
3301 static swig_cast_info _swigc__p_wxWebKitStateChangedEvent[] = { {&_swigt__p_wxWebKitStateChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
3302 static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWebKitCtrl, _p_wxWebKitCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0},{0, 0, 0, 0}};
3303 static swig_cast_info _swigc__ptrdiff_t[] = { {&_swigt__ptrdiff_t, 0, 0, 0},{0, 0, 0, 0}};
3304 static swig_cast_info _swigc__std__ptrdiff_t[] = { {&_swigt__std__ptrdiff_t, 0, 0, 0},{0, 0, 0, 0}};
3305 static swig_cast_info _swigc__unsigned_int[] = { {&_swigt__unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
3306
3307 static swig_cast_info *swig_cast_initial[] = {
3308 _swigc__p_char,
3309 _swigc__p_form_ops_t,
3310 _swigc__p_int,
3311 _swigc__p_unsigned_char,
3312 _swigc__p_unsigned_int,
3313 _swigc__p_unsigned_long,
3314 _swigc__p_wxANIHandler,
3315 _swigc__p_wxAcceleratorTable,
3316 _swigc__p_wxActivateEvent,
3317 _swigc__p_wxBMPHandler,
3318 _swigc__p_wxBoxSizer,
3319 _swigc__p_wxCURHandler,
3320 _swigc__p_wxChildFocusEvent,
3321 _swigc__p_wxCloseEvent,
3322 _swigc__p_wxCommandEvent,
3323 _swigc__p_wxContextMenuEvent,
3324 _swigc__p_wxControl,
3325 _swigc__p_wxControlWithItems,
3326 _swigc__p_wxDateEvent,
3327 _swigc__p_wxDisplayChangedEvent,
3328 _swigc__p_wxDropFilesEvent,
3329 _swigc__p_wxDuplexMode,
3330 _swigc__p_wxEraseEvent,
3331 _swigc__p_wxEvent,
3332 _swigc__p_wxEvtHandler,
3333 _swigc__p_wxFSFile,
3334 _swigc__p_wxFileSystem,
3335 _swigc__p_wxFlexGridSizer,
3336 _swigc__p_wxFocusEvent,
3337 _swigc__p_wxGBSizerItem,
3338 _swigc__p_wxGIFHandler,
3339 _swigc__p_wxGridBagSizer,
3340 _swigc__p_wxGridSizer,
3341 _swigc__p_wxICOHandler,
3342 _swigc__p_wxIconizeEvent,
3343 _swigc__p_wxIdleEvent,
3344 _swigc__p_wxImage,
3345 _swigc__p_wxImageHandler,
3346 _swigc__p_wxIndividualLayoutConstraint,
3347 _swigc__p_wxInitDialogEvent,
3348 _swigc__p_wxJPEGHandler,
3349 _swigc__p_wxKeyEvent,
3350 _swigc__p_wxLayoutConstraints,
3351 _swigc__p_wxMaximizeEvent,
3352 _swigc__p_wxMenu,
3353 _swigc__p_wxMenuBar,
3354 _swigc__p_wxMenuEvent,
3355 _swigc__p_wxMenuItem,
3356 _swigc__p_wxMouseCaptureChangedEvent,
3357 _swigc__p_wxMouseEvent,
3358 _swigc__p_wxMoveEvent,
3359 _swigc__p_wxNavigationKeyEvent,
3360 _swigc__p_wxNcPaintEvent,
3361 _swigc__p_wxNotifyEvent,
3362 _swigc__p_wxObject,
3363 _swigc__p_wxPCXHandler,
3364 _swigc__p_wxPNGHandler,
3365 _swigc__p_wxPNMHandler,
3366 _swigc__p_wxPaintEvent,
3367 _swigc__p_wxPaletteChangedEvent,
3368 _swigc__p_wxPaperSize,
3369 _swigc__p_wxPyApp,
3370 _swigc__p_wxPyCommandEvent,
3371 _swigc__p_wxPyEvent,
3372 _swigc__p_wxPyImageHandler,
3373 _swigc__p_wxPySizer,
3374 _swigc__p_wxPyValidator,
3375 _swigc__p_wxQueryNewPaletteEvent,
3376 _swigc__p_wxScrollEvent,
3377 _swigc__p_wxScrollWinEvent,
3378 _swigc__p_wxSetCursorEvent,
3379 _swigc__p_wxShowEvent,
3380 _swigc__p_wxSizeEvent,
3381 _swigc__p_wxSizer,
3382 _swigc__p_wxSizerItem,
3383 _swigc__p_wxStaticBoxSizer,
3384 _swigc__p_wxStdDialogButtonSizer,
3385 _swigc__p_wxSysColourChangedEvent,
3386 _swigc__p_wxTIFFHandler,
3387 _swigc__p_wxUpdateUIEvent,
3388 _swigc__p_wxValidator,
3389 _swigc__p_wxWebKitCtrl,
3390 _swigc__p_wxWebKitStateChangedEvent,
3391 _swigc__p_wxWindow,
3392 _swigc__p_wxWindowCreateEvent,
3393 _swigc__p_wxWindowDestroyEvent,
3394 _swigc__p_wxXPMHandler,
3395 _swigc__ptrdiff_t,
3396 _swigc__std__ptrdiff_t,
3397 _swigc__unsigned_int,
3398 };
3399
3400
3401 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
3402
3403 static swig_const_info swig_const_table[] = {
3404 {0, 0, 0, 0.0, 0, 0}};
3405
3406 #ifdef __cplusplus
3407 }
3408 #endif
3409 /*************************************************************************
3410 * Type initialization:
3411 * This problem is tough by the requirement that no dynamic
3412 * memory is used. Also, since swig_type_info structures store pointers to
3413 * swig_cast_info structures and swig_cast_info structures store pointers back
3414 * to swig_type_info structures, we need some lookup code at initialization.
3415 * The idea is that swig generates all the structures that are needed.
3416 * The runtime then collects these partially filled structures.
3417 * The SWIG_InitializeModule function takes these initial arrays out of
3418 * swig_module, and does all the lookup, filling in the swig_module.types
3419 * array with the correct data and linking the correct swig_cast_info
3420 * structures together.
3421
3422 * The generated swig_type_info structures are assigned staticly to an initial
3423 * array. We just loop though that array, and handle each type individually.
3424 * First we lookup if this type has been already loaded, and if so, use the
3425 * loaded structure instead of the generated one. Then we have to fill in the
3426 * cast linked list. The cast data is initially stored in something like a
3427 * two-dimensional array. Each row corresponds to a type (there are the same
3428 * number of rows as there are in the swig_type_initial array). Each entry in
3429 * a column is one of the swig_cast_info structures for that type.
3430 * The cast_initial array is actually an array of arrays, because each row has
3431 * a variable number of columns. So to actually build the cast linked list,
3432 * we find the array of casts associated with the type, and loop through it
3433 * adding the casts to the list. The one last trick we need to do is making
3434 * sure the type pointer in the swig_cast_info struct is correct.
3435
3436 * First off, we lookup the cast->type name to see if it is already loaded.
3437 * There are three cases to handle:
3438 * 1) If the cast->type has already been loaded AND the type we are adding
3439 * casting info to has not been loaded (it is in this module), THEN we
3440 * replace the cast->type pointer with the type pointer that has already
3441 * been loaded.
3442 * 2) If BOTH types (the one we are adding casting info to, and the
3443 * cast->type) are loaded, THEN the cast info has already been loaded by
3444 * the previous module so we just ignore it.
3445 * 3) Finally, if cast->type has not already been loaded, then we add that
3446 * swig_cast_info to the linked list (because the cast->type) pointer will
3447 * be correct.
3448 **/
3449
3450 #ifdef __cplusplus
3451 extern "C" {
3452 #if 0
3453 } /* c-mode */
3454 #endif
3455 #endif
3456
3457 #if 0
3458 #define SWIGRUNTIME_DEBUG
3459 #endif
3460
3461 SWIGRUNTIME void
3462 SWIG_InitializeModule(void *clientdata) {
3463 size_t i;
3464 swig_module_info *module_head;
3465 static int init_run = 0;
3466
3467 clientdata = clientdata;
3468
3469 if (init_run) return;
3470 init_run = 1;
3471
3472 /* Initialize the swig_module */
3473 swig_module.type_initial = swig_type_initial;
3474 swig_module.cast_initial = swig_cast_initial;
3475
3476 /* Try and load any already created modules */
3477 module_head = SWIG_GetModule(clientdata);
3478 if (module_head) {
3479 swig_module.next = module_head->next;
3480 module_head->next = &swig_module;
3481 } else {
3482 /* This is the first module loaded */
3483 swig_module.next = &swig_module;
3484 SWIG_SetModule(clientdata, &swig_module);
3485 }
3486
3487 /* Now work on filling in swig_module.types */
3488 #ifdef SWIGRUNTIME_DEBUG
3489 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
3490 #endif
3491 for (i = 0; i < swig_module.size; ++i) {
3492 swig_type_info *type = 0;
3493 swig_type_info *ret;
3494 swig_cast_info *cast;
3495
3496 #ifdef SWIGRUNTIME_DEBUG
3497 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
3498 #endif
3499
3500 /* if there is another module already loaded */
3501 if (swig_module.next != &swig_module) {
3502 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
3503 }
3504 if (type) {
3505 /* Overwrite clientdata field */
3506 #ifdef SWIGRUNTIME_DEBUG
3507 printf("SWIG_InitializeModule: found type %s\n", type->name);
3508 #endif
3509 if (swig_module.type_initial[i]->clientdata) {
3510 type->clientdata = swig_module.type_initial[i]->clientdata;
3511 #ifdef SWIGRUNTIME_DEBUG
3512 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
3513 #endif
3514 }
3515 } else {
3516 type = swig_module.type_initial[i];
3517 }
3518
3519 /* Insert casting types */
3520 cast = swig_module.cast_initial[i];
3521 while (cast->type) {
3522 /* Don't need to add information already in the list */
3523 ret = 0;
3524 #ifdef SWIGRUNTIME_DEBUG
3525 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
3526 #endif
3527 if (swig_module.next != &swig_module) {
3528 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
3529 #ifdef SWIGRUNTIME_DEBUG
3530 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
3531 #endif
3532 }
3533 if (ret) {
3534 if (type == swig_module.type_initial[i]) {
3535 #ifdef SWIGRUNTIME_DEBUG
3536 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
3537 #endif
3538 cast->type = ret;
3539 ret = 0;
3540 } else {
3541 /* Check for casting already in the list */
3542 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
3543 #ifdef SWIGRUNTIME_DEBUG
3544 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
3545 #endif
3546 if (!ocast) ret = 0;
3547 }
3548 }
3549
3550 if (!ret) {
3551 #ifdef SWIGRUNTIME_DEBUG
3552 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
3553 #endif
3554 if (type->cast) {
3555 type->cast->prev = cast;
3556 cast->next = type->cast;
3557 }
3558 type->cast = cast;
3559 }
3560 cast++;
3561 }
3562 /* Set entry in modules->types array equal to the type */
3563 swig_module.types[i] = type;
3564 }
3565 swig_module.types[i] = 0;
3566
3567 #ifdef SWIGRUNTIME_DEBUG
3568 printf("**** SWIG_InitializeModule: Cast List ******\n");
3569 for (i = 0; i < swig_module.size; ++i) {
3570 int j = 0;
3571 swig_cast_info *cast = swig_module.cast_initial[i];
3572 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
3573 while (cast->type) {
3574 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
3575 cast++;
3576 ++j;
3577 }
3578 printf("---- Total casts: %d\n",j);
3579 }
3580 printf("**** SWIG_InitializeModule: Cast List ******\n");
3581 #endif
3582 }
3583
3584 /* This function will propagate the clientdata field of type to
3585 * any new swig_type_info structures that have been added into the list
3586 * of equivalent types. It is like calling
3587 * SWIG_TypeClientData(type, clientdata) a second time.
3588 */
3589 SWIGRUNTIME void
3590 SWIG_PropagateClientData(void) {
3591 size_t i;
3592 swig_cast_info *equiv;
3593 static int init_run = 0;
3594
3595 if (init_run) return;
3596 init_run = 1;
3597
3598 for (i = 0; i < swig_module.size; i++) {
3599 if (swig_module.types[i]->clientdata) {
3600 equiv = swig_module.types[i]->cast;
3601 while (equiv) {
3602 if (!equiv->converter) {
3603 if (equiv->type && !equiv->type->clientdata)
3604 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
3605 }
3606 equiv = equiv->next;
3607 }
3608 }
3609 }
3610 }
3611
3612 #ifdef __cplusplus
3613 #if 0
3614 {
3615 /* c-mode */
3616 #endif
3617 }
3618 #endif
3619
3620
3621
3622 #ifdef __cplusplus
3623 extern "C" {
3624 #endif
3625
3626 /* Python-specific SWIG API */
3627 #define SWIG_newvarlink() SWIG_Python_newvarlink()
3628 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
3629 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
3630
3631 /* -----------------------------------------------------------------------------
3632 * global variable support code.
3633 * ----------------------------------------------------------------------------- */
3634
3635 typedef struct swig_globalvar {
3636 char *name; /* Name of global variable */
3637 PyObject *(*get_attr)(void); /* Return the current value */
3638 int (*set_attr)(PyObject *); /* Set the value */
3639 struct swig_globalvar *next;
3640 } swig_globalvar;
3641
3642 typedef struct swig_varlinkobject {
3643 PyObject_HEAD
3644 swig_globalvar *vars;
3645 } swig_varlinkobject;
3646
3647 SWIGINTERN PyObject *
3648 swig_varlink_repr(swig_varlinkobject *v) {
3649 v = v;
3650 return PyString_FromString("<Swig global variables>");
3651 }
3652
3653 SWIGINTERN int
3654 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) {
3655 swig_globalvar *var;
3656 flags = flags;
3657 fprintf(fp,"Swig global variables { ");
3658 for (var = v->vars; var; var=var->next) {
3659 fprintf(fp,"%s", var->name);
3660 if (var->next) fprintf(fp,", ");
3661 }
3662 fprintf(fp," }\n");
3663 return 0;
3664 }
3665
3666 SWIGINTERN PyObject *
3667 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
3668 swig_globalvar *var = v->vars;
3669 while (var) {
3670 if (strcmp(var->name,n) == 0) {
3671 return (*var->get_attr)();
3672 }
3673 var = var->next;
3674 }
3675 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
3676 return NULL;
3677 }
3678
3679 SWIGINTERN int
3680 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
3681 swig_globalvar *var = v->vars;
3682 while (var) {
3683 if (strcmp(var->name,n) == 0) {
3684 return (*var->set_attr)(p);
3685 }
3686 var = var->next;
3687 }
3688 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
3689 return 1;
3690 }
3691
3692 SWIGINTERN PyTypeObject*
3693 swig_varlink_type(void) {
3694 static char varlink__doc__[] = "Swig var link object";
3695 static PyTypeObject varlink_type
3696 #if !defined(__cplusplus)
3697 ;
3698 static int type_init = 0;
3699 if (!type_init) {
3700 PyTypeObject tmp
3701 #endif
3702 = {
3703 PyObject_HEAD_INIT(&PyType_Type)
3704 0, /* Number of items in variable part (ob_size) */
3705 (char *)"swigvarlink", /* Type name (tp_name) */
3706 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
3707 0, /* Itemsize (tp_itemsize) */
3708 0, /* Deallocator (tp_dealloc) */
3709 (printfunc) swig_varlink_print, /* Print (tp_print) */
3710 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
3711 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
3712 0, /* tp_compare */
3713 (reprfunc) swig_varlink_repr, /* tp_repr */
3714 0, /* tp_as_number */
3715 0, /* tp_as_sequence */
3716 0, /* tp_as_mapping */
3717 0, /* tp_hash */
3718 0, /* tp_call */
3719 0, /* tp_str */
3720 0, /* tp_getattro */
3721 0, /* tp_setattro */
3722 0, /* tp_as_buffer */
3723 0, /* tp_flags */
3724 varlink__doc__, /* tp_doc */
3725 #if PY_VERSION_HEX >= 0x02000000
3726 0, /* tp_traverse */
3727 0, /* tp_clear */
3728 #endif
3729 #if PY_VERSION_HEX >= 0x02010000
3730 0, /* tp_richcompare */
3731 0, /* tp_weaklistoffset */
3732 #endif
3733 #if PY_VERSION_HEX >= 0x02020000
3734 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
3735 #endif
3736 #if PY_VERSION_HEX >= 0x02030000
3737 0, /* tp_del */
3738 #endif
3739 #ifdef COUNT_ALLOCS
3740 0,0,0,0 /* tp_alloc -> tp_next */
3741 #endif
3742 };
3743 #if !defined(__cplusplus)
3744 varlink_type = tmp;
3745 type_init = 1;
3746 }
3747 #endif
3748 return &varlink_type;
3749 }
3750
3751 /* Create a variable linking object for use later */
3752 SWIGINTERN PyObject *
3753 SWIG_Python_newvarlink(void) {
3754 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
3755 if (result) {
3756 result->vars = 0;
3757 }
3758 return ((PyObject*) result);
3759 }
3760
3761 SWIGINTERN void
3762 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
3763 swig_varlinkobject *v = (swig_varlinkobject *) p;
3764 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
3765 if (gv) {
3766 size_t size = strlen(name)+1;
3767 gv->name = (char *)malloc(size);
3768 if (gv->name) {
3769 strncpy(gv->name,name,size);
3770 gv->get_attr = get_attr;
3771 gv->set_attr = set_attr;
3772 gv->next = v->vars;
3773 }
3774 }
3775 v->vars = gv;
3776 }
3777
3778 /* -----------------------------------------------------------------------------
3779 * constants/methods manipulation
3780 * ----------------------------------------------------------------------------- */
3781
3782 /* Install Constants */
3783 SWIGINTERN void
3784 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
3785 PyObject *obj = 0;
3786 size_t i;
3787 for (i = 0; constants[i].type; ++i) {
3788 switch(constants[i].type) {
3789 case SWIG_PY_INT:
3790 obj = PyInt_FromLong(constants[i].lvalue);
3791 break;
3792 case SWIG_PY_FLOAT:
3793 obj = PyFloat_FromDouble(constants[i].dvalue);
3794 break;
3795 case SWIG_PY_STRING:
3796 if (constants[i].pvalue) {
3797 obj = PyString_FromString((char *) constants[i].pvalue);
3798 } else {
3799 Py_INCREF(Py_None);
3800 obj = Py_None;
3801 }
3802 break;
3803 case SWIG_PY_POINTER:
3804 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
3805 break;
3806 case SWIG_PY_BINARY:
3807 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
3808 break;
3809 default:
3810 obj = 0;
3811 break;
3812 }
3813 if (obj) {
3814 PyDict_SetItemString(d,constants[i].name,obj);
3815 Py_DECREF(obj);
3816 }
3817 }
3818 }
3819
3820 /* -----------------------------------------------------------------------------*/
3821 /* Fix SwigMethods to carry the callback ptrs when needed */
3822 /* -----------------------------------------------------------------------------*/
3823
3824 SWIGINTERN void
3825 SWIG_Python_FixMethods(PyMethodDef *methods,
3826 swig_const_info *const_table,
3827 swig_type_info **types,
3828 swig_type_info **types_initial) {
3829 size_t i;
3830 for (i = 0; methods[i].ml_name; ++i) {
3831 char *c = methods[i].ml_doc;
3832 if (c && (c = strstr(c, "swig_ptr: "))) {
3833 int j;
3834 swig_const_info *ci = 0;
3835 char *name = c + 10;
3836 for (j = 0; const_table[j].type; ++j) {
3837 if (strncmp(const_table[j].name, name,
3838 strlen(const_table[j].name)) == 0) {
3839 ci = &(const_table[j]);
3840 break;
3841 }
3842 }
3843 if (ci) {
3844 size_t shift = (ci->ptype) - types;
3845 swig_type_info *ty = types_initial[shift];
3846 size_t ldoc = (c - methods[i].ml_doc);
3847 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
3848 char *ndoc = (char*)malloc(ldoc + lptr + 10);
3849 if (ndoc) {
3850 char *buff = ndoc;
3851 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
3852 if (ptr) {
3853 strncpy(buff, methods[i].ml_doc, ldoc);
3854 buff += ldoc;
3855 strncpy(buff, "swig_ptr: ", 10);
3856 buff += 10;
3857 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
3858 methods[i].ml_doc = ndoc;
3859 }
3860 }
3861 }
3862 }
3863 }
3864 }
3865
3866 /* -----------------------------------------------------------------------------*
3867 * Initialize type list
3868 * -----------------------------------------------------------------------------*/
3869
3870 #ifdef __cplusplus
3871 }
3872 #endif
3873
3874 /* -----------------------------------------------------------------------------*
3875 * Partial Init method
3876 * -----------------------------------------------------------------------------*/
3877
3878 #ifdef __cplusplus
3879 extern "C"
3880 #endif
3881 SWIGEXPORT void SWIG_init(void) {
3882 static PyObject *SWIG_globals = 0;
3883 PyObject *m, *d;
3884 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
3885
3886 /* Fix SwigMethods to carry the callback ptrs when needed */
3887 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
3888
3889 m = Py_InitModule((char *) SWIG_name, SwigMethods);
3890 d = PyModule_GetDict(m);
3891
3892 SWIG_InitializeModule(0);
3893 SWIG_InstallConstants(d,swig_const_table);
3894
3895 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
3896 SWIG_addvarlink(SWIG_globals,(char*)"WebKitNameStr",_wrap_WebKitNameStr_get, _wrap_WebKitNameStr_set);
3897 {
3898 PyDict_SetItemString(d,"WEBKIT_STATE_START", SWIG_From_int(static_cast<int >(wxWEBKIT_STATE_START)));
3899 }
3900 {
3901 PyDict_SetItemString(d,"WEBKIT_STATE_NEGOTIATING", SWIG_From_int(static_cast<int >(wxWEBKIT_STATE_NEGOTIATING)));
3902 }
3903 {
3904 PyDict_SetItemString(d,"WEBKIT_STATE_REDIRECTING", SWIG_From_int(static_cast<int >(wxWEBKIT_STATE_REDIRECTING)));
3905 }
3906 {
3907 PyDict_SetItemString(d,"WEBKIT_STATE_TRANSFERRING", SWIG_From_int(static_cast<int >(wxWEBKIT_STATE_TRANSFERRING)));
3908 }
3909 {
3910 PyDict_SetItemString(d,"WEBKIT_STATE_STOP", SWIG_From_int(static_cast<int >(wxWEBKIT_STATE_STOP)));
3911 }
3912 {
3913 PyDict_SetItemString(d,"WEBKIT_STATE_FAILED", SWIG_From_int(static_cast<int >(wxWEBKIT_STATE_FAILED)));
3914 }
3915 PyDict_SetItemString(d, "wxEVT_WEBKIT_STATE_CHANGED", PyInt_FromLong(wxEVT_WEBKIT_STATE_CHANGED));
3916
3917
3918
3919 }
3920