]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/webkit_wrap.cpp
wxBookCtrl --> wxBookCtrlBase
[wxWidgets.git] / wxPython / src / mac / webkit_wrap.cpp
CommitLineData
b2033f1f
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11#define SWIGPYTHON
12#define SWIG_NOINCLUDE
13
14#ifdef __cplusplus
15template<class T> class SwigValueWrapper {
16 T *tt;
17public:
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; }
25private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27};
28#endif
29
30
31#include "Python.h"
32
33/*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41#define SWIG_TypeRegister SWIG_Python_TypeRegister
42#define SWIG_TypeCheck SWIG_Python_TypeCheck
43#define SWIG_TypeCast SWIG_Python_TypeCast
44#define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45#define SWIG_TypeName SWIG_Python_TypeName
46#define SWIG_TypePrettyName SWIG_Python_TypePrettyName
47#define SWIG_TypeQuery SWIG_Python_TypeQuery
48#define SWIG_TypeClientData SWIG_Python_TypeClientData
49#define SWIG_PackData SWIG_Python_PackData
50#define SWIG_UnpackData SWIG_Python_UnpackData
51
52
53/***********************************************************************
54 * common.swg for wxPython
55 *
56 * Include only the function prototypes and such from SWIG's common.swg,
57 * but not the runtime functions themselves. This helps keep the
58 * wrapper files clean of unnecessary stuff that is in the libpy.c file
59 * anyway.
60 *
61 ************************************************************************/
62
63#include <string.h>
64
65#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
66# if defined(_MSC_VER) || defined(__GNUC__)
67# if defined(STATIC_LINKED)
68# define SWIGEXPORT(a) a
69# define SWIGIMPORT(a) extern a
70# else
71# define SWIGEXPORT(a) __declspec(dllexport) a
72# define SWIGIMPORT(a) extern a
73# endif
74# else
75# if defined(__BORLANDC__)
76# define SWIGEXPORT(a) a _export
77# define SWIGIMPORT(a) a _export
78# else
79# define SWIGEXPORT(a) a
80# define SWIGIMPORT(a) a
81# endif
82# endif
83#else
84# define SWIGEXPORT(a) a
85# define SWIGIMPORT(a) a
86#endif
87
88#ifdef SWIG_GLOBAL
89# define SWIGRUNTIME(a) SWIGEXPORT(a)
90#else
91# define SWIGRUNTIME(a) static a
92#endif
93
94#ifdef __cplusplus
95extern "C" {
96#endif
97
98typedef void *(*swig_converter_func)(void *);
99typedef struct swig_type_info *(*swig_dycast_func)(void **);
100
101typedef struct swig_type_info {
102 const char *name;
103 swig_converter_func converter;
104 const char *str;
105 void *clientdata;
106 swig_dycast_func dcast;
107 struct swig_type_info *next;
108 struct swig_type_info *prev;
109} swig_type_info;
110
111
112SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
113SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
114SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
115SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
116SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
117SWIGIMPORT(const char *) SWIG_TypePrettyName(const swig_type_info *);
118SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
119SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
120SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
121SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
122
123
124#ifdef __cplusplus
125}
126#endif
127
128
129/***********************************************************************
130 * pyrun.swg for wxPython
131 *
132 * Include only the function prototypes and such from SWIG's pyrun.swg,
133 * but not the runtime functions themselves. This helps keep the
134 * wrapper files clean of unnecessary stuff that is in the libpy.c file
135 * anyway.
136 *
137 ************************************************************************/
138
139#ifdef __cplusplus
140extern "C" {
141#endif
142
143#define SWIG_PY_INT 1
144#define SWIG_PY_FLOAT 2
145#define SWIG_PY_STRING 3
146#define SWIG_PY_POINTER 4
147#define SWIG_PY_BINARY 5
148
149/* Flags for pointer conversion */
150
151#define SWIG_POINTER_EXCEPTION 0x1
152#define SWIG_POINTER_DISOWN 0x2
153
154/* Exception handling in wrappers */
155#define SWIG_fail goto fail
156
157/* Constant information structure */
158typedef struct swig_const_info {
159 int type;
160 char *name;
161 long lvalue;
162 double dvalue;
163 void *pvalue;
164 swig_type_info **ptype;
165} swig_const_info;
166
167/* Common SWIG API */
168#define SWIG_ConvertPtr(obj, pp, type, flags) \
169 SWIG_Python_ConvertPtr(obj, pp, type, flags)
170#define SWIG_NewPointerObj(p, type, flags) \
171 SWIG_Python_NewPointerObj(p, type, flags)
172#define SWIG_MustGetPtr(p, type, argnum, flags) \
173 SWIG_Python_MustGetPtr(p, type, argnum, flags)
174
175/* Python-specific SWIG API */
176#define SWIG_newvarlink() \
177 SWIG_Python_newvarlink()
178#define SWIG_addvarlink(p, name, get_attr, set_attr) \
179 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
180#define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
181 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
182#define SWIG_NewPackedObj(ptr, sz, type) \
183 SWIG_Python_NewPackedObj(ptr, sz, type)
184#define SWIG_InstallConstants(d, constants) \
185 SWIG_Python_InstallConstants(d, constants)
186
187typedef double (*py_objasdbl_conv)(PyObject *obj);
188
189SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
190SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
191SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
192SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
193SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
194SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
195SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
196SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
197
198
199/* Contract support */
200
201#define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
202
203#ifdef __cplusplus
204}
205#endif
206
207
208
209/* -------- TYPES TABLE (BEGIN) -------- */
210
211#define SWIGTYPE_p_wxControl swig_types[0]
212#define SWIGTYPE_p_wxWebKitCtrl swig_types[1]
213#define SWIGTYPE_p_wxWindow swig_types[2]
214#define SWIGTYPE_p_wxEvtHandler swig_types[3]
215#define SWIGTYPE_p_wxObject swig_types[4]
216#define SWIGTYPE_p_wxEvent swig_types[5]
217#define SWIGTYPE_p_char swig_types[6]
218#define SWIGTYPE_p_wxValidator swig_types[7]
219#define SWIGTYPE_p_wxWebKitStateChangedEvent swig_types[8]
220#define SWIGTYPE_p_wxCommandEvent swig_types[9]
221static swig_type_info *swig_types[11];
222
223/* -------- TYPES TABLE (END) -------- */
224
225
226/*-----------------------------------------------
227 @(target):= _webkit.so
228 ------------------------------------------------*/
229#define SWIG_init init_webkit
230
231#define SWIG_name "_webkit"
232
233/* Auxiliar swig macros that appear in the header */
234
235#define SWIG_OLDOBJ 1
236#define SWIG_NEWOBJ SWIG_OLDOBJ + 1
237#define SWIG_PYSTR SWIG_NEWOBJ + 1
238
239#ifdef __cplusplus
240#define SWIGSTATICINLINE(a) static inline a
241#define SWIGSTATIC(a) static a
242#define swig_new_array(size,Type) (new Type[(size)])
243#define swig_delete(cptr) delete cptr
244#define swig_delete_array(cptr) delete[] cptr
245#define swig_const_cast(a,Type) const_cast<Type >(a)
246#define swig_static_cast(a,Type) static_cast<Type >(a)
247#define swig_reinterpret_cast(a,Type) reinterpret_cast<Type >(a)
248#define swig_new_copy(ptr,Type) (new Type(*ptr))
249#define swig_numeric_cast(a,Type) static_cast<Type >(a)
250
251#else /* C case */
252
253#define SWIGSTATICINLINE(a) static a
254#define SWIGSTATIC(a) static a
255#define swig_new_array(size,Type) ((Type*) malloc((size)*sizeof(Type)))
256#define swig_delete(cptr) free((char*)cptr)
257#define swig_delete_array(cptr) free((char*)cptr)
258#define swig_const_cast(a,Type) (Type)(a)
259#define swig_static_cast(a,Type) (Type)(a)
260#define swig_reinterpret_cast(a,Type) (Type)(a)
261#define swig_numeric_cast(a,Type) (Type)(a)
262#define swig_new_copy(ptr,Type) ((Type*)memcpy(malloc(sizeof(Type)),ptr,sizeof(Type)))
263
264#endif /* __cplusplus */
265
266
267/*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
268#define SWIG_From_signed_SS_char PyInt_FromLong
269/*@@*/
270/*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
271#define SWIG_From_unsigned_SS_char PyInt_FromLong
272/*@@*/
273/*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
274#define SWIG_From_short PyInt_FromLong
275/*@@*/
276/*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
277#define SWIG_From_unsigned_SS_short PyInt_FromLong
278/*@@*/
279/*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
280#define SWIG_From_int PyInt_FromLong
281/*@@*/
282/*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
283#define SWIG_From_long PyInt_FromLong
284/*@@*/
285/*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
286#define SWIG_From_float PyFloat_FromDouble
287/*@@*/
288/*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
289#define SWIG_From_double PyFloat_FromDouble
290/*@@*/
291
292
293
294#include "wx/wxPython/wxPython.h"
295#include "wx/wxPython/pyclasses.h"
296#include "wx/wxPython/pyistream.h"
297
298#ifdef __WXMAC__ // avoid a bug in Carbon headers
299#define scalb scalbn
300#endif
301
302#if wxUSE_WEBKIT
303#include "wx/html/webkit.h"
304#endif
305
306 static const wxString wxPyEmptyString(wxEmptyString);
307 static const wxString wxPyWebKitNameStr(wxT("webkitctrl"));
308
309#if !wxUSE_WEBKIT
310// a dummy class for ports that don't have wxWebKitCtrl
311class wxWebKitCtrl : public wxControl
312{
313public:
314 wxWebKitCtrl(wxWindow *parent,
315 wxWindowID winID,
316 const wxString& strURL,
317 const wxPoint& pos = wxDefaultPosition,
318 const wxSize& size = wxDefaultSize, long style = 0,
319 const wxValidator& validator = wxDefaultValidator,
320 const wxString& name = wxPyWebKitNameStr)
321 { wxPyRaiseNotImplemented(); }
322
323 wxWebKitCtrl() { wxPyRaiseNotImplemented(); }
324
325 bool Create(wxWindow *parent,
326 wxWindowID winID,
327 const wxString& strURL,
328 const wxPoint& pos = wxDefaultPosition,
329 const wxSize& size = wxDefaultSize, long style = 0,
330 const wxValidator& validator = wxDefaultValidator,
331 const wxString& name = wxPyWebKitNameStr)
332 { return false; }
333
334 void LoadURL(const wxString &url) {}
335
336 bool CanGoBack() { return false; }
337 bool CanGoForward() { return false; }
338 bool GoBack() { return false; }
339 bool GoForward() { return false; }
340 void Reload() {}
341 void Stop() {}
342 bool CanGetPageSource() { return false; }
343 wxString GetPageSource() { return wxEmptyString; }
344 void SetPageSource(wxString& source, const wxString& baseUrl = wxEmptyString) {}
345};
346
347
348enum {
349 wxWEBKIT_STATE_START = 0,
350 wxWEBKIT_STATE_NEGOTIATING = 0,
351 wxWEBKIT_STATE_REDIRECTING = 0,
352 wxWEBKIT_STATE_TRANSFERRING = 0,
353 wxWEBKIT_STATE_STOP = 0,
354 wxWEBKIT_STATE_FAILED = 0,
4171e9dc
RD
355
356 wxEVT_WEBKIT_STATE_CHANGED = 0
b2033f1f
RD
357};
358
359class wxWebKitStateChangedEvent : public wxCommandEvent
360{
361public:
362 wxWebKitStateChangedEvent( wxWindow* win = NULL )
363 { wxPyRaiseNotImplemented(); }
364
4171e9dc 365 int GetState() { return 0; }
b2033f1f
RD
366 void SetState(const int state) {}
367 wxString GetURL() { return wxEmptyString; }
368 void SetURL(const wxString& url) {}
369};
370
371
372#endif
373
374
375#include <limits.h>
376
377
378SWIGSTATICINLINE(int)
379 SWIG_CheckLongInRange(long value, long min_value, long max_value,
380 const char *errmsg)
381{
382 if (value < min_value) {
383 if (errmsg) {
384 PyErr_Format(PyExc_OverflowError,
385 "value %ld is less than '%s' minimum %ld",
386 value, errmsg, min_value);
387 }
388 return 0;
389 } else if (value > max_value) {
390 if (errmsg) {
391 PyErr_Format(PyExc_OverflowError,
392 "value %ld is greater than '%s' maximum %ld",
393 value, errmsg, max_value);
394 }
395 return 0;
396 }
397 return 1;
398}
399
400
401// See my_fragments.i
402SWIGSTATICINLINE(int)
403SWIG_AsVal_long(PyObject* obj, long* val)
404{
405 if (PyNumber_Check(obj)) {
406 if (val) *val = PyInt_AsLong(obj);
407 return 1;
408 }
409 else {
410 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
411 obj->ob_type->tp_name);
412 PyErr_SetObject(PyExc_TypeError, errmsg);
413 Py_DECREF(errmsg);
414 }
415 return 0;
416}
417
418
419#if INT_MAX != LONG_MAX
420SWIGSTATICINLINE(int)
421 SWIG_AsVal_int(PyObject *obj, int *val)
422{
423 const char* errmsg = val ? "int" : 0;
424 long v;
425 if (SWIG_AsVal_long(obj, &v)) {
426 if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) {
427 if (val) *val = swig_numeric_cast(v, int);
428 return 1;
429 } else {
430 return 0;
431 }
432 } else {
433 PyErr_Clear();
434 }
435 if (val) {
436 PyErr_SetString(PyExc_TypeError, "an int is expected");
437 }
438 return 0;
439}
440#else
441SWIGSTATICINLINE(int)
442 SWIG_AsVal_int(PyObject *obj, int *val)
443{
444 return SWIG_AsVal_long(obj,(long*)val);
445}
446#endif
447
448
449SWIGSTATICINLINE(int)
450SWIG_As_int(PyObject* obj)
451{
452 int v;
453 if (!SWIG_AsVal_int(obj, &v)) {
454 /*
455 this is needed to make valgrind/purify happier. the other
456 solution is throw an exception, but since this code should work
457 with plain C ....
458 */
459 memset((void*)&v, 0, sizeof(int));
460 }
461 return v;
462}
463
464
465SWIGSTATICINLINE(long)
466SWIG_As_long(PyObject* obj)
467{
468 long v;
469 if (!SWIG_AsVal_long(obj, &v)) {
470 /*
471 this is needed to make valgrind/purify happier. the other
472 solution is throw an exception, but since this code should work
473 with plain C ....
474 */
475 memset((void*)&v, 0, sizeof(long));
476 }
477 return v;
478}
479
480
481SWIGSTATICINLINE(int)
482SWIG_Check_int(PyObject* obj)
483{
484 return SWIG_AsVal_int(obj, (int*)0);
485}
486
487
488SWIGSTATICINLINE(int)
489SWIG_Check_long(PyObject* obj)
490{
491 return SWIG_AsVal_long(obj, (long*)0);
492}
493
494#ifdef __cplusplus
495extern "C" {
496#endif
497static int _wrap_WebKitNameStr_set(PyObject *) {
498 PyErr_SetString(PyExc_TypeError,"Variable WebKitNameStr is read-only.");
499 return 1;
500}
501
502
503static PyObject *_wrap_WebKitNameStr_get() {
504 PyObject *pyobj;
505
506 {
507#if wxUSE_UNICODE
508 pyobj = PyUnicode_FromWideChar((&wxPyWebKitNameStr)->c_str(), (&wxPyWebKitNameStr)->Len());
509#else
510 pyobj = PyString_FromStringAndSize((&wxPyWebKitNameStr)->c_str(), (&wxPyWebKitNameStr)->Len());
511#endif
512 }
513 return pyobj;
514}
515
516
517static PyObject *_wrap_new_WebKitCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
518 PyObject *resultobj;
519 wxWindow *arg1 = (wxWindow *) 0 ;
520 int arg2 = (int) -1 ;
521 wxString const &arg3_defvalue = wxPyEmptyString ;
522 wxString *arg3 = (wxString *) &arg3_defvalue ;
523 wxPoint const &arg4_defvalue = wxDefaultPosition ;
524 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
525 wxSize const &arg5_defvalue = wxDefaultSize ;
526 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
527 long arg6 = (long) 0 ;
528 wxValidator const &arg7_defvalue = wxDefaultValidator ;
529 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
530 wxString const &arg8_defvalue = wxPyWebKitNameStr ;
531 wxString *arg8 = (wxString *) &arg8_defvalue ;
532 wxWebKitCtrl *result;
533 bool temp3 = false ;
534 wxPoint temp4 ;
535 wxSize temp5 ;
536 bool temp8 = false ;
537 PyObject * obj0 = 0 ;
538 PyObject * obj1 = 0 ;
539 PyObject * obj2 = 0 ;
540 PyObject * obj3 = 0 ;
541 PyObject * obj4 = 0 ;
542 PyObject * obj5 = 0 ;
543 PyObject * obj6 = 0 ;
544 PyObject * obj7 = 0 ;
545 char *kwnames[] = {
546 (char *) "parent",(char *) "winID",(char *) "strURL",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
547 };
548
549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_WebKitCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
550 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
551 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
552 if (obj1) {
553 arg2 = (int)SWIG_As_int(obj1);
554 if (PyErr_Occurred()) SWIG_fail;
555 }
556 if (obj2) {
557 {
558 arg3 = wxString_in_helper(obj2);
559 if (arg3 == NULL) SWIG_fail;
560 temp3 = true;
561 }
562 }
563 if (obj3) {
564 {
565 arg4 = &temp4;
566 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
567 }
568 }
569 if (obj4) {
570 {
571 arg5 = &temp5;
572 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
573 }
574 }
575 if (obj5) {
576 arg6 = (long)SWIG_As_long(obj5);
577 if (PyErr_Occurred()) SWIG_fail;
578 }
579 if (obj6) {
580 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
581 SWIG_POINTER_EXCEPTION | 0)) == -1)
582 SWIG_fail;
583 if (arg7 == NULL) {
584 PyErr_SetString(PyExc_TypeError,"null reference");
585 SWIG_fail;
586 }
587 }
588 if (obj7) {
589 {
590 arg8 = wxString_in_helper(obj7);
591 if (arg8 == NULL) SWIG_fail;
592 temp8 = true;
593 }
594 }
595 {
596 if (!wxPyCheckForApp()) SWIG_fail;
597 PyThreadState* __tstate = wxPyBeginAllowThreads();
598 result = (wxWebKitCtrl *)new wxWebKitCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
599
600 wxPyEndAllowThreads(__tstate);
601 if (PyErr_Occurred()) SWIG_fail;
602 }
603 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWebKitCtrl, 1);
604 {
605 if (temp3)
606 delete arg3;
607 }
608 {
609 if (temp8)
610 delete arg8;
611 }
612 return resultobj;
613 fail:
614 {
615 if (temp3)
616 delete arg3;
617 }
618 {
619 if (temp8)
620 delete arg8;
621 }
622 return NULL;
623}
624
625
626static PyObject *_wrap_new_PreWebKitCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
627 PyObject *resultobj;
628 wxWebKitCtrl *result;
629 char *kwnames[] = {
630 NULL
631 };
632
633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreWebKitCtrl",kwnames)) goto fail;
634 {
635 if (!wxPyCheckForApp()) SWIG_fail;
636 PyThreadState* __tstate = wxPyBeginAllowThreads();
637 result = (wxWebKitCtrl *)new wxWebKitCtrl();
638
639 wxPyEndAllowThreads(__tstate);
640 if (PyErr_Occurred()) SWIG_fail;
641 }
642 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWebKitCtrl, 1);
643 return resultobj;
644 fail:
645 return NULL;
646}
647
648
649static PyObject *_wrap_WebKitCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
650 PyObject *resultobj;
651 wxWebKitCtrl *arg1 = (wxWebKitCtrl *) 0 ;
652 wxWindow *arg2 = (wxWindow *) 0 ;
653 int arg3 = (int) -1 ;
654 wxString const &arg4_defvalue = wxPyEmptyString ;
655 wxString *arg4 = (wxString *) &arg4_defvalue ;
656 wxPoint const &arg5_defvalue = wxDefaultPosition ;
657 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
658 wxSize const &arg6_defvalue = wxDefaultSize ;
659 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
660 long arg7 = (long) 0 ;
661 wxValidator const &arg8_defvalue = wxDefaultValidator ;
662 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
663 wxString const &arg9_defvalue = wxPyWebKitNameStr ;
664 wxString *arg9 = (wxString *) &arg9_defvalue ;
665 bool result;
666 bool temp4 = false ;
667 wxPoint temp5 ;
668 wxSize temp6 ;
669 bool temp9 = false ;
670 PyObject * obj0 = 0 ;
671 PyObject * obj1 = 0 ;
672 PyObject * obj2 = 0 ;
673 PyObject * obj3 = 0 ;
674 PyObject * obj4 = 0 ;
675 PyObject * obj5 = 0 ;
676 PyObject * obj6 = 0 ;
677 PyObject * obj7 = 0 ;
678 PyObject * obj8 = 0 ;
679 char *kwnames[] = {
680 (char *) "self",(char *) "parent",(char *) "winID",(char *) "strURL",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
681 };
682
683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:WebKitCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
684 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWebKitCtrl,
685 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
686 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
687 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
688 if (obj2) {
689 arg3 = (int)SWIG_As_int(obj2);
690 if (PyErr_Occurred()) SWIG_fail;
691 }
692 if (obj3) {
693 {
694 arg4 = wxString_in_helper(obj3);
695 if (arg4 == NULL) SWIG_fail;
696 temp4 = true;
697 }
698 }
699 if (obj4) {
700 {
701 arg5 = &temp5;
702 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
703 }
704 }
705 if (obj5) {
706 {
707 arg6 = &temp6;
708 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
709 }
710 }
711 if (obj6) {
712 arg7 = (long)SWIG_As_long(obj6);
713 if (PyErr_Occurred()) SWIG_fail;
714 }
715 if (obj7) {
716 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
717 SWIG_POINTER_EXCEPTION | 0)) == -1)
718 SWIG_fail;
719 if (arg8 == NULL) {
720 PyErr_SetString(PyExc_TypeError,"null reference");
721 SWIG_fail;
722 }
723 }
724 if (obj8) {
725 {
726 arg9 = wxString_in_helper(obj8);
727 if (arg9 == NULL) SWIG_fail;
728 temp9 = true;
729 }
730 }
731 {
732 PyThreadState* __tstate = wxPyBeginAllowThreads();
733 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
734
735 wxPyEndAllowThreads(__tstate);
736 if (PyErr_Occurred()) SWIG_fail;
737 }
738 {
739 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
740 }
741 {
742 if (temp4)
743 delete arg4;
744 }
745 {
746 if (temp9)
747 delete arg9;
748 }
749 return resultobj;
750 fail:
751 {
752 if (temp4)
753 delete arg4;
754 }
755 {
756 if (temp9)
757 delete arg9;
758 }
759 return NULL;
760}
761
762
763static PyObject *_wrap_WebKitCtrl_LoadURL(PyObject *, PyObject *args, PyObject *kwargs) {
764 PyObject *resultobj;
765 wxWebKitCtrl *arg1 = (wxWebKitCtrl *) 0 ;
766 wxString *arg2 = 0 ;
767 bool temp2 = false ;
768 PyObject * obj0 = 0 ;
769 PyObject * obj1 = 0 ;
770 char *kwnames[] = {
771 (char *) "self",(char *) "url", NULL
772 };
773
774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:WebKitCtrl_LoadURL",kwnames,&obj0,&obj1)) goto fail;
775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWebKitCtrl,
776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
777 {
778 arg2 = wxString_in_helper(obj1);
779 if (arg2 == NULL) SWIG_fail;
780 temp2 = true;
781 }
782 {
783 PyThreadState* __tstate = wxPyBeginAllowThreads();
784 (arg1)->LoadURL((wxString const &)*arg2);
785
786 wxPyEndAllowThreads(__tstate);
787 if (PyErr_Occurred()) SWIG_fail;
788 }
789 Py_INCREF(Py_None); resultobj = Py_None;
790 {
791 if (temp2)
792 delete arg2;
793 }
794 return resultobj;
795 fail:
796 {
797 if (temp2)
798 delete arg2;
799 }
800 return NULL;
801}
802
803
804static PyObject *_wrap_WebKitCtrl_CanGoBack(PyObject *, PyObject *args, PyObject *kwargs) {
805 PyObject *resultobj;
806 wxWebKitCtrl *arg1 = (wxWebKitCtrl *) 0 ;
807 bool result;
808 PyObject * obj0 = 0 ;
809 char *kwnames[] = {
810 (char *) "self", NULL
811 };
812
813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WebKitCtrl_CanGoBack",kwnames,&obj0)) goto fail;
814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWebKitCtrl,
815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
816 {
817 PyThreadState* __tstate = wxPyBeginAllowThreads();
818 result = (bool)(arg1)->CanGoBack();
819
820 wxPyEndAllowThreads(__tstate);
821 if (PyErr_Occurred()) SWIG_fail;
822 }
823 {
824 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
825 }
826 return resultobj;
827 fail:
828 return NULL;
829}
830
831
832static PyObject *_wrap_WebKitCtrl_CanGoForward(PyObject *, PyObject *args, PyObject *kwargs) {
833 PyObject *resultobj;
834 wxWebKitCtrl *arg1 = (wxWebKitCtrl *) 0 ;
835 bool result;
836 PyObject * obj0 = 0 ;
837 char *kwnames[] = {
838 (char *) "self", NULL
839 };
840
841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WebKitCtrl_CanGoForward",kwnames,&obj0)) goto fail;
842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWebKitCtrl,
843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
844 {
845 PyThreadState* __tstate = wxPyBeginAllowThreads();
846 result = (bool)(arg1)->CanGoForward();
847
848 wxPyEndAllowThreads(__tstate);
849 if (PyErr_Occurred()) SWIG_fail;
850 }
851 {
852 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
853 }
854 return resultobj;
855 fail:
856 return NULL;
857}
858
859
860static PyObject *_wrap_WebKitCtrl_GoBack(PyObject *, PyObject *args, PyObject *kwargs) {
861 PyObject *resultobj;
862 wxWebKitCtrl *arg1 = (wxWebKitCtrl *) 0 ;
863 bool result;
864 PyObject * obj0 = 0 ;
865 char *kwnames[] = {
866 (char *) "self", NULL
867 };
868
869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WebKitCtrl_GoBack",kwnames,&obj0)) goto fail;
870 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWebKitCtrl,
871 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
872 {
873 PyThreadState* __tstate = wxPyBeginAllowThreads();
874 result = (bool)(arg1)->GoBack();
875
876 wxPyEndAllowThreads(__tstate);
877 if (PyErr_Occurred()) SWIG_fail;
878 }
879 {
880 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
881 }
882 return resultobj;
883 fail:
884 return NULL;
885}
886
887
888static PyObject *_wrap_WebKitCtrl_GoForward(PyObject *, PyObject *args, PyObject *kwargs) {
889 PyObject *resultobj;
890 wxWebKitCtrl *arg1 = (wxWebKitCtrl *) 0 ;
891 bool result;
892 PyObject * obj0 = 0 ;
893 char *kwnames[] = {
894 (char *) "self", NULL
895 };
896
897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WebKitCtrl_GoForward",kwnames,&obj0)) goto fail;
898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWebKitCtrl,
899 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
900 {
901 PyThreadState* __tstate = wxPyBeginAllowThreads();
902 result = (bool)(arg1)->GoForward();
903
904 wxPyEndAllowThreads(__tstate);
905 if (PyErr_Occurred()) SWIG_fail;
906 }
907 {
908 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
909 }
910 return resultobj;
911 fail:
912 return NULL;
913}
914
915
916static PyObject *_wrap_WebKitCtrl_Reload(PyObject *, PyObject *args, PyObject *kwargs) {
917 PyObject *resultobj;
918 wxWebKitCtrl *arg1 = (wxWebKitCtrl *) 0 ;
919 PyObject * obj0 = 0 ;
920 char *kwnames[] = {
921 (char *) "self", NULL
922 };
923
924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WebKitCtrl_Reload",kwnames,&obj0)) goto fail;
925 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWebKitCtrl,
926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
927 {
928 PyThreadState* __tstate = wxPyBeginAllowThreads();
929 (arg1)->Reload();
930
931 wxPyEndAllowThreads(__tstate);
932 if (PyErr_Occurred()) SWIG_fail;
933 }
934 Py_INCREF(Py_None); resultobj = Py_None;
935 return resultobj;
936 fail:
937 return NULL;
938}
939
940
941static PyObject *_wrap_WebKitCtrl_Stop(PyObject *, PyObject *args, PyObject *kwargs) {
942 PyObject *resultobj;
943 wxWebKitCtrl *arg1 = (wxWebKitCtrl *) 0 ;
944 PyObject * obj0 = 0 ;
945 char *kwnames[] = {
946 (char *) "self", NULL
947 };
948
949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WebKitCtrl_Stop",kwnames,&obj0)) goto fail;
950 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWebKitCtrl,
951 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
952 {
953 PyThreadState* __tstate = wxPyBeginAllowThreads();
954 (arg1)->Stop();
955
956 wxPyEndAllowThreads(__tstate);
957 if (PyErr_Occurred()) SWIG_fail;
958 }
959 Py_INCREF(Py_None); resultobj = Py_None;
960 return resultobj;
961 fail:
962 return NULL;
963}
964
965
966static PyObject *_wrap_WebKitCtrl_CanGetPageSource(PyObject *, PyObject *args, PyObject *kwargs) {
967 PyObject *resultobj;
968 wxWebKitCtrl *arg1 = (wxWebKitCtrl *) 0 ;
969 bool result;
970 PyObject * obj0 = 0 ;
971 char *kwnames[] = {
972 (char *) "self", NULL
973 };
974
975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WebKitCtrl_CanGetPageSource",kwnames,&obj0)) goto fail;
976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWebKitCtrl,
977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
978 {
979 PyThreadState* __tstate = wxPyBeginAllowThreads();
980 result = (bool)(arg1)->CanGetPageSource();
981
982 wxPyEndAllowThreads(__tstate);
983 if (PyErr_Occurred()) SWIG_fail;
984 }
985 {
986 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
987 }
988 return resultobj;
989 fail:
990 return NULL;
991}
992
993
994static PyObject *_wrap_WebKitCtrl_GetPageSource(PyObject *, PyObject *args, PyObject *kwargs) {
995 PyObject *resultobj;
996 wxWebKitCtrl *arg1 = (wxWebKitCtrl *) 0 ;
997 wxString result;
998 PyObject * obj0 = 0 ;
999 char *kwnames[] = {
1000 (char *) "self", NULL
1001 };
1002
1003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WebKitCtrl_GetPageSource",kwnames,&obj0)) goto fail;
1004 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWebKitCtrl,
1005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1006 {
1007 PyThreadState* __tstate = wxPyBeginAllowThreads();
1008 result = (arg1)->GetPageSource();
1009
1010 wxPyEndAllowThreads(__tstate);
1011 if (PyErr_Occurred()) SWIG_fail;
1012 }
1013 {
1014#if wxUSE_UNICODE
1015 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
1016#else
1017 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
1018#endif
1019 }
1020 return resultobj;
1021 fail:
1022 return NULL;
1023}
1024
1025
1026static PyObject *_wrap_WebKitCtrl_SetPageSource(PyObject *, PyObject *args, PyObject *kwargs) {
1027 PyObject *resultobj;
1028 wxWebKitCtrl *arg1 = (wxWebKitCtrl *) 0 ;
1029 wxString *arg2 = 0 ;
1030 wxString const &arg3_defvalue = wxPyEmptyString ;
1031 wxString *arg3 = (wxString *) &arg3_defvalue ;
1032 bool temp2 = false ;
1033 bool temp3 = false ;
1034 PyObject * obj0 = 0 ;
1035 PyObject * obj1 = 0 ;
1036 PyObject * obj2 = 0 ;
1037 char *kwnames[] = {
1038 (char *) "self",(char *) "source",(char *) "baseUrl", NULL
1039 };
1040
1041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:WebKitCtrl_SetPageSource",kwnames,&obj0,&obj1,&obj2)) goto fail;
1042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWebKitCtrl,
1043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1044 {
1045 arg2 = wxString_in_helper(obj1);
1046 if (arg2 == NULL) SWIG_fail;
1047 temp2 = true;
1048 }
1049 if (obj2) {
1050 {
1051 arg3 = wxString_in_helper(obj2);
1052 if (arg3 == NULL) SWIG_fail;
1053 temp3 = true;
1054 }
1055 }
1056 {
1057 PyThreadState* __tstate = wxPyBeginAllowThreads();
1058 (arg1)->SetPageSource(*arg2,(wxString const &)*arg3);
1059
1060 wxPyEndAllowThreads(__tstate);
1061 if (PyErr_Occurred()) SWIG_fail;
1062 }
1063 Py_INCREF(Py_None); resultobj = Py_None;
1064 {
1065 if (temp2)
1066 delete arg2;
1067 }
1068 {
1069 if (temp3)
1070 delete arg3;
1071 }
1072 return resultobj;
1073 fail:
1074 {
1075 if (temp2)
1076 delete arg2;
1077 }
1078 {
1079 if (temp3)
1080 delete arg3;
1081 }
1082 return NULL;
1083}
1084
1085
1086static PyObject * WebKitCtrl_swigregister(PyObject *, PyObject *args) {
1087 PyObject *obj;
1088 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1089 SWIG_TypeClientData(SWIGTYPE_p_wxWebKitCtrl, obj);
1090 Py_INCREF(obj);
1091 return Py_BuildValue((char *)"");
1092}
1093static PyObject *_wrap_new_WebKitStateChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) {
1094 PyObject *resultobj;
1095 wxWindow *arg1 = (wxWindow *) NULL ;
1096 wxWebKitStateChangedEvent *result;
1097 PyObject * obj0 = 0 ;
1098 char *kwnames[] = {
1099 (char *) "win", NULL
1100 };
1101
1102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WebKitStateChangedEvent",kwnames,&obj0)) goto fail;
1103 if (obj0) {
1104 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
1105 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1106 }
1107 {
1108 PyThreadState* __tstate = wxPyBeginAllowThreads();
1109 result = (wxWebKitStateChangedEvent *)new wxWebKitStateChangedEvent(arg1);
1110
1111 wxPyEndAllowThreads(__tstate);
1112 if (PyErr_Occurred()) SWIG_fail;
1113 }
1114 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWebKitStateChangedEvent, 1);
1115 return resultobj;
1116 fail:
1117 return NULL;
1118}
1119
1120
1121static PyObject *_wrap_WebKitStateChangedEvent_GetState(PyObject *, PyObject *args, PyObject *kwargs) {
1122 PyObject *resultobj;
1123 wxWebKitStateChangedEvent *arg1 = (wxWebKitStateChangedEvent *) 0 ;
1124 int result;
1125 PyObject * obj0 = 0 ;
1126 char *kwnames[] = {
1127 (char *) "self", NULL
1128 };
1129
1130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WebKitStateChangedEvent_GetState",kwnames,&obj0)) goto fail;
1131 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWebKitStateChangedEvent,
1132 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1133 {
1134 PyThreadState* __tstate = wxPyBeginAllowThreads();
1135 result = (int)(arg1)->GetState();
1136
1137 wxPyEndAllowThreads(__tstate);
1138 if (PyErr_Occurred()) SWIG_fail;
1139 }
1140 resultobj = SWIG_From_int((int)result);
1141 return resultobj;
1142 fail:
1143 return NULL;
1144}
1145
1146
1147static PyObject *_wrap_WebKitStateChangedEvent_SetState(PyObject *, PyObject *args, PyObject *kwargs) {
1148 PyObject *resultobj;
1149 wxWebKitStateChangedEvent *arg1 = (wxWebKitStateChangedEvent *) 0 ;
1150 int arg2 ;
1151 PyObject * obj0 = 0 ;
1152 PyObject * obj1 = 0 ;
1153 char *kwnames[] = {
1154 (char *) "self",(char *) "state", NULL
1155 };
1156
1157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:WebKitStateChangedEvent_SetState",kwnames,&obj0,&obj1)) goto fail;
1158 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWebKitStateChangedEvent,
1159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1160 arg2 = (int)SWIG_As_int(obj1);
1161 if (PyErr_Occurred()) SWIG_fail;
1162 {
1163 PyThreadState* __tstate = wxPyBeginAllowThreads();
1164 (arg1)->SetState(arg2);
1165
1166 wxPyEndAllowThreads(__tstate);
1167 if (PyErr_Occurred()) SWIG_fail;
1168 }
1169 Py_INCREF(Py_None); resultobj = Py_None;
1170 return resultobj;
1171 fail:
1172 return NULL;
1173}
1174
1175
1176static PyObject *_wrap_WebKitStateChangedEvent_GetURL(PyObject *, PyObject *args, PyObject *kwargs) {
1177 PyObject *resultobj;
1178 wxWebKitStateChangedEvent *arg1 = (wxWebKitStateChangedEvent *) 0 ;
1179 wxString result;
1180 PyObject * obj0 = 0 ;
1181 char *kwnames[] = {
1182 (char *) "self", NULL
1183 };
1184
1185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WebKitStateChangedEvent_GetURL",kwnames,&obj0)) goto fail;
1186 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWebKitStateChangedEvent,
1187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1188 {
1189 PyThreadState* __tstate = wxPyBeginAllowThreads();
1190 result = (arg1)->GetURL();
1191
1192 wxPyEndAllowThreads(__tstate);
1193 if (PyErr_Occurred()) SWIG_fail;
1194 }
1195 {
1196#if wxUSE_UNICODE
1197 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
1198#else
1199 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
1200#endif
1201 }
1202 return resultobj;
1203 fail:
1204 return NULL;
1205}
1206
1207
1208static PyObject *_wrap_WebKitStateChangedEvent_SetURL(PyObject *, PyObject *args, PyObject *kwargs) {
1209 PyObject *resultobj;
1210 wxWebKitStateChangedEvent *arg1 = (wxWebKitStateChangedEvent *) 0 ;
1211 wxString *arg2 = 0 ;
1212 bool temp2 = false ;
1213 PyObject * obj0 = 0 ;
1214 PyObject * obj1 = 0 ;
1215 char *kwnames[] = {
1216 (char *) "self",(char *) "url", NULL
1217 };
1218
1219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:WebKitStateChangedEvent_SetURL",kwnames,&obj0,&obj1)) goto fail;
1220 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWebKitStateChangedEvent,
1221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1222 {
1223 arg2 = wxString_in_helper(obj1);
1224 if (arg2 == NULL) SWIG_fail;
1225 temp2 = true;
1226 }
1227 {
1228 PyThreadState* __tstate = wxPyBeginAllowThreads();
1229 (arg1)->SetURL((wxString const &)*arg2);
1230
1231 wxPyEndAllowThreads(__tstate);
1232 if (PyErr_Occurred()) SWIG_fail;
1233 }
1234 Py_INCREF(Py_None); resultobj = Py_None;
1235 {
1236 if (temp2)
1237 delete arg2;
1238 }
1239 return resultobj;
1240 fail:
1241 {
1242 if (temp2)
1243 delete arg2;
1244 }
1245 return NULL;
1246}
1247
1248
1249static PyObject * WebKitStateChangedEvent_swigregister(PyObject *, PyObject *args) {
1250 PyObject *obj;
1251 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1252 SWIG_TypeClientData(SWIGTYPE_p_wxWebKitStateChangedEvent, obj);
1253 Py_INCREF(obj);
1254 return Py_BuildValue((char *)"");
1255}
1256static PyMethodDef SwigMethods[] = {
1257 { (char *)"new_WebKitCtrl", (PyCFunction) _wrap_new_WebKitCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
1258 { (char *)"new_PreWebKitCtrl", (PyCFunction) _wrap_new_PreWebKitCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
1259 { (char *)"WebKitCtrl_Create", (PyCFunction) _wrap_WebKitCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
1260 { (char *)"WebKitCtrl_LoadURL", (PyCFunction) _wrap_WebKitCtrl_LoadURL, METH_VARARGS | METH_KEYWORDS, NULL },
1261 { (char *)"WebKitCtrl_CanGoBack", (PyCFunction) _wrap_WebKitCtrl_CanGoBack, METH_VARARGS | METH_KEYWORDS, NULL },
1262 { (char *)"WebKitCtrl_CanGoForward", (PyCFunction) _wrap_WebKitCtrl_CanGoForward, METH_VARARGS | METH_KEYWORDS, NULL },
1263 { (char *)"WebKitCtrl_GoBack", (PyCFunction) _wrap_WebKitCtrl_GoBack, METH_VARARGS | METH_KEYWORDS, NULL },
1264 { (char *)"WebKitCtrl_GoForward", (PyCFunction) _wrap_WebKitCtrl_GoForward, METH_VARARGS | METH_KEYWORDS, NULL },
1265 { (char *)"WebKitCtrl_Reload", (PyCFunction) _wrap_WebKitCtrl_Reload, METH_VARARGS | METH_KEYWORDS, NULL },
1266 { (char *)"WebKitCtrl_Stop", (PyCFunction) _wrap_WebKitCtrl_Stop, METH_VARARGS | METH_KEYWORDS, NULL },
1267 { (char *)"WebKitCtrl_CanGetPageSource", (PyCFunction) _wrap_WebKitCtrl_CanGetPageSource, METH_VARARGS | METH_KEYWORDS, NULL },
1268 { (char *)"WebKitCtrl_GetPageSource", (PyCFunction) _wrap_WebKitCtrl_GetPageSource, METH_VARARGS | METH_KEYWORDS, NULL },
1269 { (char *)"WebKitCtrl_SetPageSource", (PyCFunction) _wrap_WebKitCtrl_SetPageSource, METH_VARARGS | METH_KEYWORDS, NULL },
1270 { (char *)"WebKitCtrl_swigregister", WebKitCtrl_swigregister, METH_VARARGS, NULL },
1271 { (char *)"new_WebKitStateChangedEvent", (PyCFunction) _wrap_new_WebKitStateChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL },
1272 { (char *)"WebKitStateChangedEvent_GetState", (PyCFunction) _wrap_WebKitStateChangedEvent_GetState, METH_VARARGS | METH_KEYWORDS, NULL },
1273 { (char *)"WebKitStateChangedEvent_SetState", (PyCFunction) _wrap_WebKitStateChangedEvent_SetState, METH_VARARGS | METH_KEYWORDS, NULL },
1274 { (char *)"WebKitStateChangedEvent_GetURL", (PyCFunction) _wrap_WebKitStateChangedEvent_GetURL, METH_VARARGS | METH_KEYWORDS, NULL },
1275 { (char *)"WebKitStateChangedEvent_SetURL", (PyCFunction) _wrap_WebKitStateChangedEvent_SetURL, METH_VARARGS | METH_KEYWORDS, NULL },
1276 { (char *)"WebKitStateChangedEvent_swigregister", WebKitStateChangedEvent_swigregister, METH_VARARGS, NULL },
1277 { NULL, NULL, 0, NULL }
1278};
1279
1280
1281/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
1282
1283static void *_p_wxWebKitCtrlTo_p_wxControl(void *x) {
1284 return (void *)((wxControl *) ((wxWebKitCtrl *) x));
1285}
1286static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
1287 return (void *)((wxControl *) ((wxControlWithItems *) x));
1288}
1289static void *_p_wxControlTo_p_wxWindow(void *x) {
1290 return (void *)((wxWindow *) ((wxControl *) x));
1291}
1292static void *_p_wxWebKitCtrlTo_p_wxWindow(void *x) {
1293 return (void *)((wxWindow *) (wxControl *) ((wxWebKitCtrl *) x));
1294}
1295static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
1296 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
1297}
1298static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
1299 return (void *)((wxWindow *) ((wxMenuBar *) x));
1300}
1301static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
1302 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
1303}
1304static void *_p_wxWebKitCtrlTo_p_wxEvtHandler(void *x) {
1305 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxWebKitCtrl *) x));
1306}
1307static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
1308 return (void *)((wxEvtHandler *) ((wxWindow *) x));
1309}
1310static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
1311 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
1312}
1313static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
1314 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
1315}
1316static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
1317 return (void *)((wxEvtHandler *) ((wxValidator *) x));
1318}
1319static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
1320 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
1321}
1322static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
1323 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
1324}
1325static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
1326 return (void *)((wxEvtHandler *) ((wxMenu *) x));
1327}
1328static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
1329 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
1330}
1331static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
1332 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
1333}
1334static void *_p_wxSizerItemTo_p_wxObject(void *x) {
1335 return (void *)((wxObject *) ((wxSizerItem *) x));
1336}
1337static void *_p_wxScrollEventTo_p_wxObject(void *x) {
1338 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
1339}
1340static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
1341 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
1342}
1343static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
1344 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
1345}
1346static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
1347 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
1348}
1349static void *_p_wxSizerTo_p_wxObject(void *x) {
1350 return (void *)((wxObject *) ((wxSizer *) x));
1351}
1352static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
1353 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
1354}
1355static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
1356 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
1357}
1358static void *_p_wxEventTo_p_wxObject(void *x) {
1359 return (void *)((wxObject *) ((wxEvent *) x));
1360}
1361static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
1362 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
1363}
1364static void *_p_wxGridSizerTo_p_wxObject(void *x) {
1365 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
1366}
1367static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
1368 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
1369}
1370static void *_p_wxPaintEventTo_p_wxObject(void *x) {
1371 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
1372}
1373static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
1374 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
1375}
1376static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
1377 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
1378}
1379static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
1380 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
1381}
1382static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
1383 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
1384}
1385static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
1386 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
1387}
1388static void *_p_wxWebKitStateChangedEventTo_p_wxObject(void *x) {
1389 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWebKitStateChangedEvent *) x));
1390}
1391static void *_p_wxControlTo_p_wxObject(void *x) {
1392 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
1393}
1394static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
1395 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
1396}
1397static void *_p_wxFSFileTo_p_wxObject(void *x) {
1398 return (void *)((wxObject *) ((wxFSFile *) x));
1399}
1400static void *_p_wxPySizerTo_p_wxObject(void *x) {
1401 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
1402}
1403static void *_p_wxPyEventTo_p_wxObject(void *x) {
1404 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
1405}
1406static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
1407 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
1408}
1409static void *_p_wxShowEventTo_p_wxObject(void *x) {
1410 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
1411}
1412static void *_p_wxMenuItemTo_p_wxObject(void *x) {
1413 return (void *)((wxObject *) ((wxMenuItem *) x));
1414}
1415static void *_p_wxIdleEventTo_p_wxObject(void *x) {
1416 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
1417}
1418static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
1419 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
1420}
1421static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
1422 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
1423}
1424static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
1425 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
1426}
1427static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
1428 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
1429}
1430static void *_p_wxSizeEventTo_p_wxObject(void *x) {
1431 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
1432}
1433static void *_p_wxMoveEventTo_p_wxObject(void *x) {
1434 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
1435}
1436static void *_p_wxActivateEventTo_p_wxObject(void *x) {
1437 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
1438}
1439static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
1440 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
1441}
1442static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
1443 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
1444}
1445static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
1446 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
1447}
1448static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
1449 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
1450}
1451static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
1452 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
1453}
1454static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
1455 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
1456}
1457static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
1458 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
1459}
1460static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
1461 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
1462}
1463static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
1464 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
1465}
1466static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
1467 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
1468}
1469static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
1470 return (void *)((wxObject *) ((wxImageHandler *) x));
1471}
1472static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
1473 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
1474}
1475static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
1476 return (void *)((wxObject *) ((wxEvtHandler *) x));
1477}
1478static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
1479 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
1480}
1481static void *_p_wxImageTo_p_wxObject(void *x) {
1482 return (void *)((wxObject *) ((wxImage *) x));
1483}
1484static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
1485 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
1486}
1487static void *_p_wxWebKitCtrlTo_p_wxObject(void *x) {
1488 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxWebKitCtrl *) x));
1489}
1490static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
1491 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
1492}
1493static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
1494 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
1495}
1496static void *_p_wxKeyEventTo_p_wxObject(void *x) {
1497 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
1498}
1499static void *_p_wxWindowTo_p_wxObject(void *x) {
1500 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
1501}
1502static void *_p_wxMenuTo_p_wxObject(void *x) {
1503 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
1504}
1505static void *_p_wxMenuBarTo_p_wxObject(void *x) {
1506 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
1507}
1508static void *_p_wxFileSystemTo_p_wxObject(void *x) {
1509 return (void *)((wxObject *) ((wxFileSystem *) x));
1510}
1511static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
1512 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
1513}
1514static void *_p_wxMenuEventTo_p_wxObject(void *x) {
1515 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
1516}
1517static void *_p_wxPyAppTo_p_wxObject(void *x) {
1518 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
1519}
1520static void *_p_wxCloseEventTo_p_wxObject(void *x) {
1521 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
1522}
1523static void *_p_wxMouseEventTo_p_wxObject(void *x) {
1524 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
1525}
1526static void *_p_wxEraseEventTo_p_wxObject(void *x) {
1527 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
1528}
1529static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
1530 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
1531}
1532static void *_p_wxCommandEventTo_p_wxObject(void *x) {
1533 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
1534}
1535static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
1536 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
1537}
1538static void *_p_wxFocusEventTo_p_wxObject(void *x) {
1539 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
1540}
1541static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
1542 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
1543}
1544static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
1545 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
1546}
1547static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
1548 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
1549}
1550static void *_p_wxValidatorTo_p_wxObject(void *x) {
1551 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
1552}
1553static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
1554 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
1555}
1556static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
1557 return (void *)((wxEvent *) ((wxMenuEvent *) x));
1558}
1559static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
1560 return (void *)((wxEvent *) ((wxCloseEvent *) x));
1561}
1562static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
1563 return (void *)((wxEvent *) ((wxMouseEvent *) x));
1564}
1565static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
1566 return (void *)((wxEvent *) ((wxEraseEvent *) x));
1567}
1568static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
1569 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
1570}
1571static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
1572 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
1573}
1574static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
1575 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
1576}
1577static void *_p_wxPyEventTo_p_wxEvent(void *x) {
1578 return (void *)((wxEvent *) ((wxPyEvent *) x));
1579}
1580static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
1581 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
1582}
1583static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
1584 return (void *)((wxEvent *) ((wxIdleEvent *) x));
1585}
1586static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
1587 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
1588}
1589static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
1590 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
1591}
1592static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
1593 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
1594}
1595static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
1596 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
1597}
1598static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
1599 return (void *)((wxEvent *) ((wxActivateEvent *) x));
1600}
1601static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
1602 return (void *)((wxEvent *) ((wxSizeEvent *) x));
1603}
1604static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
1605 return (void *)((wxEvent *) ((wxMoveEvent *) x));
1606}
1607static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
1608 return (void *)((wxEvent *) ((wxPaintEvent *) x));
1609}
1610static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
1611 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
1612}
1613static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
1614 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
1615}
1616static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
1617 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
1618}
1619static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
1620 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
1621}
1622static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
1623 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
1624}
1625static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
1626 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
1627}
1628static void *_p_wxWebKitStateChangedEventTo_p_wxEvent(void *x) {
1629 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWebKitStateChangedEvent *) x));
1630}
1631static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
1632 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
1633}
1634static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
1635 return (void *)((wxEvent *) ((wxFocusEvent *) x));
1636}
1637static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
1638 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
1639}
1640static void *_p_wxShowEventTo_p_wxEvent(void *x) {
1641 return (void *)((wxEvent *) ((wxShowEvent *) x));
1642}
1643static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
1644 return (void *)((wxEvent *) ((wxCommandEvent *) x));
1645}
1646static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
1647 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
1648}
1649static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
1650 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
1651}
1652static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
1653 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
1654}
1655static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
1656 return (void *)((wxEvent *) ((wxKeyEvent *) x));
1657}
1658static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
1659 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
1660}
1661static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
1662 return (void *)((wxValidator *) ((wxPyValidator *) x));
1663}
1664static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
1665 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
1666}
1667static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
1668 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
1669}
1670static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
1671 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
1672}
1673static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
1674 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
1675}
1676static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
1677 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
1678}
1679static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
1680 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
1681}
1682static void *_p_wxWebKitStateChangedEventTo_p_wxCommandEvent(void *x) {
1683 return (void *)((wxCommandEvent *) ((wxWebKitStateChangedEvent *) x));
1684}
1685static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
1686 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
1687}
1688static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
1689 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
1690}
1691static swig_type_info _swigt__p_wxControl[] = {{"_p_wxControl", 0, "wxControl *", 0, 0, 0, 0},{"_p_wxControl", 0, 0, 0, 0, 0, 0},{"_p_wxWebKitCtrl", _p_wxWebKitCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxControl, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
1692static swig_type_info _swigt__p_wxWebKitCtrl[] = {{"_p_wxWebKitCtrl", 0, "wxWebKitCtrl *", 0, 0, 0, 0},{"_p_wxWebKitCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
1693static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWebKitCtrl", _p_wxWebKitCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
1694static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxWebKitCtrl", _p_wxWebKitCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", 0, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
1695static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWebKitStateChangedEvent", _p_wxWebKitStateChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWebKitCtrl", _p_wxWebKitCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
1696static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEvent", 0, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWebKitStateChangedEvent", _p_wxWebKitStateChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
1697static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0, 0, 0, 0},{"_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
1698static swig_type_info _swigt__p_wxValidator[] = {{"_p_wxValidator", 0, "wxValidator *", 0, 0, 0, 0},{"_p_wxValidator", 0, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxValidator, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
1699static swig_type_info _swigt__p_wxWebKitStateChangedEvent[] = {{"_p_wxWebKitStateChangedEvent", 0, "wxWebKitStateChangedEvent *", 0, 0, 0, 0},{"_p_wxWebKitStateChangedEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
1700static swig_type_info _swigt__p_wxCommandEvent[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWebKitStateChangedEvent", _p_wxWebKitStateChangedEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", 0, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
1701
1702static swig_type_info *swig_types_initial[] = {
1703_swigt__p_wxControl,
1704_swigt__p_wxWebKitCtrl,
1705_swigt__p_wxWindow,
1706_swigt__p_wxEvtHandler,
1707_swigt__p_wxObject,
1708_swigt__p_wxEvent,
1709_swigt__p_char,
1710_swigt__p_wxValidator,
1711_swigt__p_wxWebKitStateChangedEvent,
1712_swigt__p_wxCommandEvent,
17130
1714};
1715
1716
1717/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
1718
1719static swig_const_info swig_const_table[] = {
1720{0, 0, 0, 0.0, 0, 0}};
1721
1722#ifdef __cplusplus
1723}
1724#endif
1725
1726#ifdef __cplusplus
1727extern "C"
1728#endif
1729SWIGEXPORT(void) SWIG_init(void) {
1730 static PyObject *SWIG_globals = 0;
1731 static int typeinit = 0;
1732 PyObject *m, *d;
1733 int i;
1734 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
1735 m = Py_InitModule((char *) SWIG_name, SwigMethods);
1736 d = PyModule_GetDict(m);
1737
1738 if (!typeinit) {
1739 for (i = 0; swig_types_initial[i]; i++) {
1740 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
1741 }
1742 typeinit = 1;
1743 }
1744 SWIG_InstallConstants(d,swig_const_table);
1745
1746 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
1747 SWIG_addvarlink(SWIG_globals,(char*)"WebKitNameStr",_wrap_WebKitNameStr_get, _wrap_WebKitNameStr_set);
1748 PyDict_SetItemString(d,"WEBKIT_STATE_START", SWIG_From_int((int)wxWEBKIT_STATE_START));
1749 PyDict_SetItemString(d,"WEBKIT_STATE_NEGOTIATING", SWIG_From_int((int)wxWEBKIT_STATE_NEGOTIATING));
1750 PyDict_SetItemString(d,"WEBKIT_STATE_REDIRECTING", SWIG_From_int((int)wxWEBKIT_STATE_REDIRECTING));
1751 PyDict_SetItemString(d,"WEBKIT_STATE_TRANSFERRING", SWIG_From_int((int)wxWEBKIT_STATE_TRANSFERRING));
1752 PyDict_SetItemString(d,"WEBKIT_STATE_STOP", SWIG_From_int((int)wxWEBKIT_STATE_STOP));
1753 PyDict_SetItemString(d,"WEBKIT_STATE_FAILED", SWIG_From_int((int)wxWEBKIT_STATE_FAILED));
1754 PyDict_SetItemString(d, "wxEVT_WEBKIT_STATE_CHANGED", PyInt_FromLong(wxEVT_WEBKIT_STATE_CHANGED));
1755
1756
1757
1758}
1759