]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/webkit_wrap.cpp
Added some accelerators to the menu to help with stress testing wxSound:
[wxWidgets.git] / wxPython / src / mac / webkit_wrap.cpp
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
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 #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
95 extern "C" {
96 #endif
97
98 typedef void *(*swig_converter_func)(void *);
99 typedef struct swig_type_info *(*swig_dycast_func)(void **);
100
101 typedef 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
112 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
113 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
114 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
115 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
116 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
117 SWIGIMPORT(const char *) SWIG_TypePrettyName(const swig_type_info *);
118 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
119 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
120 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
121 SWIGIMPORT(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
140 extern "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 */
158 typedef 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
187 typedef double (*py_objasdbl_conv)(PyObject *obj);
188
189 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
190 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
191 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
192 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
193 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
194 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
195 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
196 SWIGIMPORT(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]
221 static 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
311 class wxWebKitCtrl : public wxControl
312 {
313 public:
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
348 enum {
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,
355 };
356
357 class wxWebKitStateChangedEvent : public wxCommandEvent
358 {
359 public:
360 wxWebKitStateChangedEvent( wxWindow* win = NULL )
361 { wxPyRaiseNotImplemented(); }
362
363 int GetState() { return 0 }
364 void SetState(const int state) {}
365 wxString GetURL() { return wxEmptyString; }
366 void SetURL(const wxString& url) {}
367 };
368
369
370 #endif
371
372
373 #include <limits.h>
374
375
376 SWIGSTATICINLINE(int)
377 SWIG_CheckLongInRange(long value, long min_value, long max_value,
378 const char *errmsg)
379 {
380 if (value < min_value) {
381 if (errmsg) {
382 PyErr_Format(PyExc_OverflowError,
383 "value %ld is less than '%s' minimum %ld",
384 value, errmsg, min_value);
385 }
386 return 0;
387 } else if (value > max_value) {
388 if (errmsg) {
389 PyErr_Format(PyExc_OverflowError,
390 "value %ld is greater than '%s' maximum %ld",
391 value, errmsg, max_value);
392 }
393 return 0;
394 }
395 return 1;
396 }
397
398
399 // See my_fragments.i
400 SWIGSTATICINLINE(int)
401 SWIG_AsVal_long(PyObject* obj, long* val)
402 {
403 if (PyNumber_Check(obj)) {
404 if (val) *val = PyInt_AsLong(obj);
405 return 1;
406 }
407 else {
408 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
409 obj->ob_type->tp_name);
410 PyErr_SetObject(PyExc_TypeError, errmsg);
411 Py_DECREF(errmsg);
412 }
413 return 0;
414 }
415
416
417 #if INT_MAX != LONG_MAX
418 SWIGSTATICINLINE(int)
419 SWIG_AsVal_int(PyObject *obj, int *val)
420 {
421 const char* errmsg = val ? "int" : 0;
422 long v;
423 if (SWIG_AsVal_long(obj, &v)) {
424 if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) {
425 if (val) *val = swig_numeric_cast(v, int);
426 return 1;
427 } else {
428 return 0;
429 }
430 } else {
431 PyErr_Clear();
432 }
433 if (val) {
434 PyErr_SetString(PyExc_TypeError, "an int is expected");
435 }
436 return 0;
437 }
438 #else
439 SWIGSTATICINLINE(int)
440 SWIG_AsVal_int(PyObject *obj, int *val)
441 {
442 return SWIG_AsVal_long(obj,(long*)val);
443 }
444 #endif
445
446
447 SWIGSTATICINLINE(int)
448 SWIG_As_int(PyObject* obj)
449 {
450 int v;
451 if (!SWIG_AsVal_int(obj, &v)) {
452 /*
453 this is needed to make valgrind/purify happier. the other
454 solution is throw an exception, but since this code should work
455 with plain C ....
456 */
457 memset((void*)&v, 0, sizeof(int));
458 }
459 return v;
460 }
461
462
463 SWIGSTATICINLINE(long)
464 SWIG_As_long(PyObject* obj)
465 {
466 long v;
467 if (!SWIG_AsVal_long(obj, &v)) {
468 /*
469 this is needed to make valgrind/purify happier. the other
470 solution is throw an exception, but since this code should work
471 with plain C ....
472 */
473 memset((void*)&v, 0, sizeof(long));
474 }
475 return v;
476 }
477
478
479 SWIGSTATICINLINE(int)
480 SWIG_Check_int(PyObject* obj)
481 {
482 return SWIG_AsVal_int(obj, (int*)0);
483 }
484
485
486 SWIGSTATICINLINE(int)
487 SWIG_Check_long(PyObject* obj)
488 {
489 return SWIG_AsVal_long(obj, (long*)0);
490 }
491
492 #ifdef __cplusplus
493 extern "C" {
494 #endif
495 static int _wrap_WebKitNameStr_set(PyObject *) {
496 PyErr_SetString(PyExc_TypeError,"Variable WebKitNameStr is read-only.");
497 return 1;
498 }
499
500
501 static PyObject *_wrap_WebKitNameStr_get() {
502 PyObject *pyobj;
503
504 {
505 #if wxUSE_UNICODE
506 pyobj = PyUnicode_FromWideChar((&wxPyWebKitNameStr)->c_str(), (&wxPyWebKitNameStr)->Len());
507 #else
508 pyobj = PyString_FromStringAndSize((&wxPyWebKitNameStr)->c_str(), (&wxPyWebKitNameStr)->Len());
509 #endif
510 }
511 return pyobj;
512 }
513
514
515 static PyObject *_wrap_new_WebKitCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
516 PyObject *resultobj;
517 wxWindow *arg1 = (wxWindow *) 0 ;
518 int arg2 = (int) -1 ;
519 wxString const &arg3_defvalue = wxPyEmptyString ;
520 wxString *arg3 = (wxString *) &arg3_defvalue ;
521 wxPoint const &arg4_defvalue = wxDefaultPosition ;
522 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
523 wxSize const &arg5_defvalue = wxDefaultSize ;
524 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
525 long arg6 = (long) 0 ;
526 wxValidator const &arg7_defvalue = wxDefaultValidator ;
527 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
528 wxString const &arg8_defvalue = wxPyWebKitNameStr ;
529 wxString *arg8 = (wxString *) &arg8_defvalue ;
530 wxWebKitCtrl *result;
531 bool temp3 = false ;
532 wxPoint temp4 ;
533 wxSize temp5 ;
534 bool temp8 = false ;
535 PyObject * obj0 = 0 ;
536 PyObject * obj1 = 0 ;
537 PyObject * obj2 = 0 ;
538 PyObject * obj3 = 0 ;
539 PyObject * obj4 = 0 ;
540 PyObject * obj5 = 0 ;
541 PyObject * obj6 = 0 ;
542 PyObject * obj7 = 0 ;
543 char *kwnames[] = {
544 (char *) "parent",(char *) "winID",(char *) "strURL",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
545 };
546
547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_WebKitCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
548 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
549 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
550 if (obj1) {
551 arg2 = (int)SWIG_As_int(obj1);
552 if (PyErr_Occurred()) SWIG_fail;
553 }
554 if (obj2) {
555 {
556 arg3 = wxString_in_helper(obj2);
557 if (arg3 == NULL) SWIG_fail;
558 temp3 = true;
559 }
560 }
561 if (obj3) {
562 {
563 arg4 = &temp4;
564 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
565 }
566 }
567 if (obj4) {
568 {
569 arg5 = &temp5;
570 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
571 }
572 }
573 if (obj5) {
574 arg6 = (long)SWIG_As_long(obj5);
575 if (PyErr_Occurred()) SWIG_fail;
576 }
577 if (obj6) {
578 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
579 SWIG_POINTER_EXCEPTION | 0)) == -1)
580 SWIG_fail;
581 if (arg7 == NULL) {
582 PyErr_SetString(PyExc_TypeError,"null reference");
583 SWIG_fail;
584 }
585 }
586 if (obj7) {
587 {
588 arg8 = wxString_in_helper(obj7);
589 if (arg8 == NULL) SWIG_fail;
590 temp8 = true;
591 }
592 }
593 {
594 if (!wxPyCheckForApp()) SWIG_fail;
595 PyThreadState* __tstate = wxPyBeginAllowThreads();
596 result = (wxWebKitCtrl *)new wxWebKitCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
597
598 wxPyEndAllowThreads(__tstate);
599 if (PyErr_Occurred()) SWIG_fail;
600 }
601 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWebKitCtrl, 1);
602 {
603 if (temp3)
604 delete arg3;
605 }
606 {
607 if (temp8)
608 delete arg8;
609 }
610 return resultobj;
611 fail:
612 {
613 if (temp3)
614 delete arg3;
615 }
616 {
617 if (temp8)
618 delete arg8;
619 }
620 return NULL;
621 }
622
623
624 static PyObject *_wrap_new_PreWebKitCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
625 PyObject *resultobj;
626 wxWebKitCtrl *result;
627 char *kwnames[] = {
628 NULL
629 };
630
631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreWebKitCtrl",kwnames)) goto fail;
632 {
633 if (!wxPyCheckForApp()) SWIG_fail;
634 PyThreadState* __tstate = wxPyBeginAllowThreads();
635 result = (wxWebKitCtrl *)new wxWebKitCtrl();
636
637 wxPyEndAllowThreads(__tstate);
638 if (PyErr_Occurred()) SWIG_fail;
639 }
640 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWebKitCtrl, 1);
641 return resultobj;
642 fail:
643 return NULL;
644 }
645
646
647 static PyObject *_wrap_WebKitCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
648 PyObject *resultobj;
649 wxWebKitCtrl *arg1 = (wxWebKitCtrl *) 0 ;
650 wxWindow *arg2 = (wxWindow *) 0 ;
651 int arg3 = (int) -1 ;
652 wxString const &arg4_defvalue = wxPyEmptyString ;
653 wxString *arg4 = (wxString *) &arg4_defvalue ;
654 wxPoint const &arg5_defvalue = wxDefaultPosition ;
655 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
656 wxSize const &arg6_defvalue = wxDefaultSize ;
657 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
658 long arg7 = (long) 0 ;
659 wxValidator const &arg8_defvalue = wxDefaultValidator ;
660 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
661 wxString const &arg9_defvalue = wxPyWebKitNameStr ;
662 wxString *arg9 = (wxString *) &arg9_defvalue ;
663 bool result;
664 bool temp4 = false ;
665 wxPoint temp5 ;
666 wxSize temp6 ;
667 bool temp9 = false ;
668 PyObject * obj0 = 0 ;
669 PyObject * obj1 = 0 ;
670 PyObject * obj2 = 0 ;
671 PyObject * obj3 = 0 ;
672 PyObject * obj4 = 0 ;
673 PyObject * obj5 = 0 ;
674 PyObject * obj6 = 0 ;
675 PyObject * obj7 = 0 ;
676 PyObject * obj8 = 0 ;
677 char *kwnames[] = {
678 (char *) "self",(char *) "parent",(char *) "winID",(char *) "strURL",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
679 };
680
681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:WebKitCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWebKitCtrl,
683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
684 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
685 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
686 if (obj2) {
687 arg3 = (int)SWIG_As_int(obj2);
688 if (PyErr_Occurred()) SWIG_fail;
689 }
690 if (obj3) {
691 {
692 arg4 = wxString_in_helper(obj3);
693 if (arg4 == NULL) SWIG_fail;
694 temp4 = true;
695 }
696 }
697 if (obj4) {
698 {
699 arg5 = &temp5;
700 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
701 }
702 }
703 if (obj5) {
704 {
705 arg6 = &temp6;
706 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
707 }
708 }
709 if (obj6) {
710 arg7 = (long)SWIG_As_long(obj6);
711 if (PyErr_Occurred()) SWIG_fail;
712 }
713 if (obj7) {
714 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
715 SWIG_POINTER_EXCEPTION | 0)) == -1)
716 SWIG_fail;
717 if (arg8 == NULL) {
718 PyErr_SetString(PyExc_TypeError,"null reference");
719 SWIG_fail;
720 }
721 }
722 if (obj8) {
723 {
724 arg9 = wxString_in_helper(obj8);
725 if (arg9 == NULL) SWIG_fail;
726 temp9 = true;
727 }
728 }
729 {
730 PyThreadState* __tstate = wxPyBeginAllowThreads();
731 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
732
733 wxPyEndAllowThreads(__tstate);
734 if (PyErr_Occurred()) SWIG_fail;
735 }
736 {
737 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
738 }
739 {
740 if (temp4)
741 delete arg4;
742 }
743 {
744 if (temp9)
745 delete arg9;
746 }
747 return resultobj;
748 fail:
749 {
750 if (temp4)
751 delete arg4;
752 }
753 {
754 if (temp9)
755 delete arg9;
756 }
757 return NULL;
758 }
759
760
761 static PyObject *_wrap_WebKitCtrl_LoadURL(PyObject *, PyObject *args, PyObject *kwargs) {
762 PyObject *resultobj;
763 wxWebKitCtrl *arg1 = (wxWebKitCtrl *) 0 ;
764 wxString *arg2 = 0 ;
765 bool temp2 = false ;
766 PyObject * obj0 = 0 ;
767 PyObject * obj1 = 0 ;
768 char *kwnames[] = {
769 (char *) "self",(char *) "url", NULL
770 };
771
772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:WebKitCtrl_LoadURL",kwnames,&obj0,&obj1)) goto fail;
773 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWebKitCtrl,
774 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
775 {
776 arg2 = wxString_in_helper(obj1);
777 if (arg2 == NULL) SWIG_fail;
778 temp2 = true;
779 }
780 {
781 PyThreadState* __tstate = wxPyBeginAllowThreads();
782 (arg1)->LoadURL((wxString const &)*arg2);
783
784 wxPyEndAllowThreads(__tstate);
785 if (PyErr_Occurred()) SWIG_fail;
786 }
787 Py_INCREF(Py_None); resultobj = Py_None;
788 {
789 if (temp2)
790 delete arg2;
791 }
792 return resultobj;
793 fail:
794 {
795 if (temp2)
796 delete arg2;
797 }
798 return NULL;
799 }
800
801
802 static PyObject *_wrap_WebKitCtrl_CanGoBack(PyObject *, PyObject *args, PyObject *kwargs) {
803 PyObject *resultobj;
804 wxWebKitCtrl *arg1 = (wxWebKitCtrl *) 0 ;
805 bool result;
806 PyObject * obj0 = 0 ;
807 char *kwnames[] = {
808 (char *) "self", NULL
809 };
810
811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WebKitCtrl_CanGoBack",kwnames,&obj0)) goto fail;
812 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWebKitCtrl,
813 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
814 {
815 PyThreadState* __tstate = wxPyBeginAllowThreads();
816 result = (bool)(arg1)->CanGoBack();
817
818 wxPyEndAllowThreads(__tstate);
819 if (PyErr_Occurred()) SWIG_fail;
820 }
821 {
822 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
823 }
824 return resultobj;
825 fail:
826 return NULL;
827 }
828
829
830 static PyObject *_wrap_WebKitCtrl_CanGoForward(PyObject *, PyObject *args, PyObject *kwargs) {
831 PyObject *resultobj;
832 wxWebKitCtrl *arg1 = (wxWebKitCtrl *) 0 ;
833 bool result;
834 PyObject * obj0 = 0 ;
835 char *kwnames[] = {
836 (char *) "self", NULL
837 };
838
839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WebKitCtrl_CanGoForward",kwnames,&obj0)) goto fail;
840 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWebKitCtrl,
841 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
842 {
843 PyThreadState* __tstate = wxPyBeginAllowThreads();
844 result = (bool)(arg1)->CanGoForward();
845
846 wxPyEndAllowThreads(__tstate);
847 if (PyErr_Occurred()) SWIG_fail;
848 }
849 {
850 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
851 }
852 return resultobj;
853 fail:
854 return NULL;
855 }
856
857
858 static PyObject *_wrap_WebKitCtrl_GoBack(PyObject *, PyObject *args, PyObject *kwargs) {
859 PyObject *resultobj;
860 wxWebKitCtrl *arg1 = (wxWebKitCtrl *) 0 ;
861 bool result;
862 PyObject * obj0 = 0 ;
863 char *kwnames[] = {
864 (char *) "self", NULL
865 };
866
867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WebKitCtrl_GoBack",kwnames,&obj0)) goto fail;
868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWebKitCtrl,
869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
870 {
871 PyThreadState* __tstate = wxPyBeginAllowThreads();
872 result = (bool)(arg1)->GoBack();
873
874 wxPyEndAllowThreads(__tstate);
875 if (PyErr_Occurred()) SWIG_fail;
876 }
877 {
878 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
879 }
880 return resultobj;
881 fail:
882 return NULL;
883 }
884
885
886 static PyObject *_wrap_WebKitCtrl_GoForward(PyObject *, PyObject *args, PyObject *kwargs) {
887 PyObject *resultobj;
888 wxWebKitCtrl *arg1 = (wxWebKitCtrl *) 0 ;
889 bool result;
890 PyObject * obj0 = 0 ;
891 char *kwnames[] = {
892 (char *) "self", NULL
893 };
894
895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WebKitCtrl_GoForward",kwnames,&obj0)) goto fail;
896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWebKitCtrl,
897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
898 {
899 PyThreadState* __tstate = wxPyBeginAllowThreads();
900 result = (bool)(arg1)->GoForward();
901
902 wxPyEndAllowThreads(__tstate);
903 if (PyErr_Occurred()) SWIG_fail;
904 }
905 {
906 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
907 }
908 return resultobj;
909 fail:
910 return NULL;
911 }
912
913
914 static PyObject *_wrap_WebKitCtrl_Reload(PyObject *, PyObject *args, PyObject *kwargs) {
915 PyObject *resultobj;
916 wxWebKitCtrl *arg1 = (wxWebKitCtrl *) 0 ;
917 PyObject * obj0 = 0 ;
918 char *kwnames[] = {
919 (char *) "self", NULL
920 };
921
922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WebKitCtrl_Reload",kwnames,&obj0)) goto fail;
923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWebKitCtrl,
924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
925 {
926 PyThreadState* __tstate = wxPyBeginAllowThreads();
927 (arg1)->Reload();
928
929 wxPyEndAllowThreads(__tstate);
930 if (PyErr_Occurred()) SWIG_fail;
931 }
932 Py_INCREF(Py_None); resultobj = Py_None;
933 return resultobj;
934 fail:
935 return NULL;
936 }
937
938
939 static PyObject *_wrap_WebKitCtrl_Stop(PyObject *, PyObject *args, PyObject *kwargs) {
940 PyObject *resultobj;
941 wxWebKitCtrl *arg1 = (wxWebKitCtrl *) 0 ;
942 PyObject * obj0 = 0 ;
943 char *kwnames[] = {
944 (char *) "self", NULL
945 };
946
947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WebKitCtrl_Stop",kwnames,&obj0)) goto fail;
948 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWebKitCtrl,
949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
950 {
951 PyThreadState* __tstate = wxPyBeginAllowThreads();
952 (arg1)->Stop();
953
954 wxPyEndAllowThreads(__tstate);
955 if (PyErr_Occurred()) SWIG_fail;
956 }
957 Py_INCREF(Py_None); resultobj = Py_None;
958 return resultobj;
959 fail:
960 return NULL;
961 }
962
963
964 static PyObject *_wrap_WebKitCtrl_CanGetPageSource(PyObject *, PyObject *args, PyObject *kwargs) {
965 PyObject *resultobj;
966 wxWebKitCtrl *arg1 = (wxWebKitCtrl *) 0 ;
967 bool result;
968 PyObject * obj0 = 0 ;
969 char *kwnames[] = {
970 (char *) "self", NULL
971 };
972
973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WebKitCtrl_CanGetPageSource",kwnames,&obj0)) goto fail;
974 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWebKitCtrl,
975 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
976 {
977 PyThreadState* __tstate = wxPyBeginAllowThreads();
978 result = (bool)(arg1)->CanGetPageSource();
979
980 wxPyEndAllowThreads(__tstate);
981 if (PyErr_Occurred()) SWIG_fail;
982 }
983 {
984 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
985 }
986 return resultobj;
987 fail:
988 return NULL;
989 }
990
991
992 static PyObject *_wrap_WebKitCtrl_GetPageSource(PyObject *, PyObject *args, PyObject *kwargs) {
993 PyObject *resultobj;
994 wxWebKitCtrl *arg1 = (wxWebKitCtrl *) 0 ;
995 wxString result;
996 PyObject * obj0 = 0 ;
997 char *kwnames[] = {
998 (char *) "self", NULL
999 };
1000
1001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WebKitCtrl_GetPageSource",kwnames,&obj0)) goto fail;
1002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWebKitCtrl,
1003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1004 {
1005 PyThreadState* __tstate = wxPyBeginAllowThreads();
1006 result = (arg1)->GetPageSource();
1007
1008 wxPyEndAllowThreads(__tstate);
1009 if (PyErr_Occurred()) SWIG_fail;
1010 }
1011 {
1012 #if wxUSE_UNICODE
1013 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
1014 #else
1015 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
1016 #endif
1017 }
1018 return resultobj;
1019 fail:
1020 return NULL;
1021 }
1022
1023
1024 static PyObject *_wrap_WebKitCtrl_SetPageSource(PyObject *, PyObject *args, PyObject *kwargs) {
1025 PyObject *resultobj;
1026 wxWebKitCtrl *arg1 = (wxWebKitCtrl *) 0 ;
1027 wxString *arg2 = 0 ;
1028 wxString const &arg3_defvalue = wxPyEmptyString ;
1029 wxString *arg3 = (wxString *) &arg3_defvalue ;
1030 bool temp2 = false ;
1031 bool temp3 = false ;
1032 PyObject * obj0 = 0 ;
1033 PyObject * obj1 = 0 ;
1034 PyObject * obj2 = 0 ;
1035 char *kwnames[] = {
1036 (char *) "self",(char *) "source",(char *) "baseUrl", NULL
1037 };
1038
1039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:WebKitCtrl_SetPageSource",kwnames,&obj0,&obj1,&obj2)) goto fail;
1040 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWebKitCtrl,
1041 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1042 {
1043 arg2 = wxString_in_helper(obj1);
1044 if (arg2 == NULL) SWIG_fail;
1045 temp2 = true;
1046 }
1047 if (obj2) {
1048 {
1049 arg3 = wxString_in_helper(obj2);
1050 if (arg3 == NULL) SWIG_fail;
1051 temp3 = true;
1052 }
1053 }
1054 {
1055 PyThreadState* __tstate = wxPyBeginAllowThreads();
1056 (arg1)->SetPageSource(*arg2,(wxString const &)*arg3);
1057
1058 wxPyEndAllowThreads(__tstate);
1059 if (PyErr_Occurred()) SWIG_fail;
1060 }
1061 Py_INCREF(Py_None); resultobj = Py_None;
1062 {
1063 if (temp2)
1064 delete arg2;
1065 }
1066 {
1067 if (temp3)
1068 delete arg3;
1069 }
1070 return resultobj;
1071 fail:
1072 {
1073 if (temp2)
1074 delete arg2;
1075 }
1076 {
1077 if (temp3)
1078 delete arg3;
1079 }
1080 return NULL;
1081 }
1082
1083
1084 static PyObject * WebKitCtrl_swigregister(PyObject *, PyObject *args) {
1085 PyObject *obj;
1086 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1087 SWIG_TypeClientData(SWIGTYPE_p_wxWebKitCtrl, obj);
1088 Py_INCREF(obj);
1089 return Py_BuildValue((char *)"");
1090 }
1091 static PyObject *_wrap_new_WebKitStateChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) {
1092 PyObject *resultobj;
1093 wxWindow *arg1 = (wxWindow *) NULL ;
1094 wxWebKitStateChangedEvent *result;
1095 PyObject * obj0 = 0 ;
1096 char *kwnames[] = {
1097 (char *) "win", NULL
1098 };
1099
1100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WebKitStateChangedEvent",kwnames,&obj0)) goto fail;
1101 if (obj0) {
1102 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
1103 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1104 }
1105 {
1106 PyThreadState* __tstate = wxPyBeginAllowThreads();
1107 result = (wxWebKitStateChangedEvent *)new wxWebKitStateChangedEvent(arg1);
1108
1109 wxPyEndAllowThreads(__tstate);
1110 if (PyErr_Occurred()) SWIG_fail;
1111 }
1112 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWebKitStateChangedEvent, 1);
1113 return resultobj;
1114 fail:
1115 return NULL;
1116 }
1117
1118
1119 static PyObject *_wrap_WebKitStateChangedEvent_GetState(PyObject *, PyObject *args, PyObject *kwargs) {
1120 PyObject *resultobj;
1121 wxWebKitStateChangedEvent *arg1 = (wxWebKitStateChangedEvent *) 0 ;
1122 int result;
1123 PyObject * obj0 = 0 ;
1124 char *kwnames[] = {
1125 (char *) "self", NULL
1126 };
1127
1128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WebKitStateChangedEvent_GetState",kwnames,&obj0)) goto fail;
1129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWebKitStateChangedEvent,
1130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1131 {
1132 PyThreadState* __tstate = wxPyBeginAllowThreads();
1133 result = (int)(arg1)->GetState();
1134
1135 wxPyEndAllowThreads(__tstate);
1136 if (PyErr_Occurred()) SWIG_fail;
1137 }
1138 resultobj = SWIG_From_int((int)result);
1139 return resultobj;
1140 fail:
1141 return NULL;
1142 }
1143
1144
1145 static PyObject *_wrap_WebKitStateChangedEvent_SetState(PyObject *, PyObject *args, PyObject *kwargs) {
1146 PyObject *resultobj;
1147 wxWebKitStateChangedEvent *arg1 = (wxWebKitStateChangedEvent *) 0 ;
1148 int arg2 ;
1149 PyObject * obj0 = 0 ;
1150 PyObject * obj1 = 0 ;
1151 char *kwnames[] = {
1152 (char *) "self",(char *) "state", NULL
1153 };
1154
1155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:WebKitStateChangedEvent_SetState",kwnames,&obj0,&obj1)) goto fail;
1156 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWebKitStateChangedEvent,
1157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1158 arg2 = (int)SWIG_As_int(obj1);
1159 if (PyErr_Occurred()) SWIG_fail;
1160 {
1161 PyThreadState* __tstate = wxPyBeginAllowThreads();
1162 (arg1)->SetState(arg2);
1163
1164 wxPyEndAllowThreads(__tstate);
1165 if (PyErr_Occurred()) SWIG_fail;
1166 }
1167 Py_INCREF(Py_None); resultobj = Py_None;
1168 return resultobj;
1169 fail:
1170 return NULL;
1171 }
1172
1173
1174 static PyObject *_wrap_WebKitStateChangedEvent_GetURL(PyObject *, PyObject *args, PyObject *kwargs) {
1175 PyObject *resultobj;
1176 wxWebKitStateChangedEvent *arg1 = (wxWebKitStateChangedEvent *) 0 ;
1177 wxString result;
1178 PyObject * obj0 = 0 ;
1179 char *kwnames[] = {
1180 (char *) "self", NULL
1181 };
1182
1183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WebKitStateChangedEvent_GetURL",kwnames,&obj0)) goto fail;
1184 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWebKitStateChangedEvent,
1185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1186 {
1187 PyThreadState* __tstate = wxPyBeginAllowThreads();
1188 result = (arg1)->GetURL();
1189
1190 wxPyEndAllowThreads(__tstate);
1191 if (PyErr_Occurred()) SWIG_fail;
1192 }
1193 {
1194 #if wxUSE_UNICODE
1195 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
1196 #else
1197 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
1198 #endif
1199 }
1200 return resultobj;
1201 fail:
1202 return NULL;
1203 }
1204
1205
1206 static PyObject *_wrap_WebKitStateChangedEvent_SetURL(PyObject *, PyObject *args, PyObject *kwargs) {
1207 PyObject *resultobj;
1208 wxWebKitStateChangedEvent *arg1 = (wxWebKitStateChangedEvent *) 0 ;
1209 wxString *arg2 = 0 ;
1210 bool temp2 = false ;
1211 PyObject * obj0 = 0 ;
1212 PyObject * obj1 = 0 ;
1213 char *kwnames[] = {
1214 (char *) "self",(char *) "url", NULL
1215 };
1216
1217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:WebKitStateChangedEvent_SetURL",kwnames,&obj0,&obj1)) goto fail;
1218 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWebKitStateChangedEvent,
1219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1220 {
1221 arg2 = wxString_in_helper(obj1);
1222 if (arg2 == NULL) SWIG_fail;
1223 temp2 = true;
1224 }
1225 {
1226 PyThreadState* __tstate = wxPyBeginAllowThreads();
1227 (arg1)->SetURL((wxString const &)*arg2);
1228
1229 wxPyEndAllowThreads(__tstate);
1230 if (PyErr_Occurred()) SWIG_fail;
1231 }
1232 Py_INCREF(Py_None); resultobj = Py_None;
1233 {
1234 if (temp2)
1235 delete arg2;
1236 }
1237 return resultobj;
1238 fail:
1239 {
1240 if (temp2)
1241 delete arg2;
1242 }
1243 return NULL;
1244 }
1245
1246
1247 static PyObject * WebKitStateChangedEvent_swigregister(PyObject *, PyObject *args) {
1248 PyObject *obj;
1249 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1250 SWIG_TypeClientData(SWIGTYPE_p_wxWebKitStateChangedEvent, obj);
1251 Py_INCREF(obj);
1252 return Py_BuildValue((char *)"");
1253 }
1254 static PyMethodDef SwigMethods[] = {
1255 { (char *)"new_WebKitCtrl", (PyCFunction) _wrap_new_WebKitCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
1256 { (char *)"new_PreWebKitCtrl", (PyCFunction) _wrap_new_PreWebKitCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
1257 { (char *)"WebKitCtrl_Create", (PyCFunction) _wrap_WebKitCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
1258 { (char *)"WebKitCtrl_LoadURL", (PyCFunction) _wrap_WebKitCtrl_LoadURL, METH_VARARGS | METH_KEYWORDS, NULL },
1259 { (char *)"WebKitCtrl_CanGoBack", (PyCFunction) _wrap_WebKitCtrl_CanGoBack, METH_VARARGS | METH_KEYWORDS, NULL },
1260 { (char *)"WebKitCtrl_CanGoForward", (PyCFunction) _wrap_WebKitCtrl_CanGoForward, METH_VARARGS | METH_KEYWORDS, NULL },
1261 { (char *)"WebKitCtrl_GoBack", (PyCFunction) _wrap_WebKitCtrl_GoBack, METH_VARARGS | METH_KEYWORDS, NULL },
1262 { (char *)"WebKitCtrl_GoForward", (PyCFunction) _wrap_WebKitCtrl_GoForward, METH_VARARGS | METH_KEYWORDS, NULL },
1263 { (char *)"WebKitCtrl_Reload", (PyCFunction) _wrap_WebKitCtrl_Reload, METH_VARARGS | METH_KEYWORDS, NULL },
1264 { (char *)"WebKitCtrl_Stop", (PyCFunction) _wrap_WebKitCtrl_Stop, METH_VARARGS | METH_KEYWORDS, NULL },
1265 { (char *)"WebKitCtrl_CanGetPageSource", (PyCFunction) _wrap_WebKitCtrl_CanGetPageSource, METH_VARARGS | METH_KEYWORDS, NULL },
1266 { (char *)"WebKitCtrl_GetPageSource", (PyCFunction) _wrap_WebKitCtrl_GetPageSource, METH_VARARGS | METH_KEYWORDS, NULL },
1267 { (char *)"WebKitCtrl_SetPageSource", (PyCFunction) _wrap_WebKitCtrl_SetPageSource, METH_VARARGS | METH_KEYWORDS, NULL },
1268 { (char *)"WebKitCtrl_swigregister", WebKitCtrl_swigregister, METH_VARARGS, NULL },
1269 { (char *)"new_WebKitStateChangedEvent", (PyCFunction) _wrap_new_WebKitStateChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL },
1270 { (char *)"WebKitStateChangedEvent_GetState", (PyCFunction) _wrap_WebKitStateChangedEvent_GetState, METH_VARARGS | METH_KEYWORDS, NULL },
1271 { (char *)"WebKitStateChangedEvent_SetState", (PyCFunction) _wrap_WebKitStateChangedEvent_SetState, METH_VARARGS | METH_KEYWORDS, NULL },
1272 { (char *)"WebKitStateChangedEvent_GetURL", (PyCFunction) _wrap_WebKitStateChangedEvent_GetURL, METH_VARARGS | METH_KEYWORDS, NULL },
1273 { (char *)"WebKitStateChangedEvent_SetURL", (PyCFunction) _wrap_WebKitStateChangedEvent_SetURL, METH_VARARGS | METH_KEYWORDS, NULL },
1274 { (char *)"WebKitStateChangedEvent_swigregister", WebKitStateChangedEvent_swigregister, METH_VARARGS, NULL },
1275 { NULL, NULL, 0, NULL }
1276 };
1277
1278
1279 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
1280
1281 static void *_p_wxWebKitCtrlTo_p_wxControl(void *x) {
1282 return (void *)((wxControl *) ((wxWebKitCtrl *) x));
1283 }
1284 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
1285 return (void *)((wxControl *) ((wxControlWithItems *) x));
1286 }
1287 static void *_p_wxControlTo_p_wxWindow(void *x) {
1288 return (void *)((wxWindow *) ((wxControl *) x));
1289 }
1290 static void *_p_wxWebKitCtrlTo_p_wxWindow(void *x) {
1291 return (void *)((wxWindow *) (wxControl *) ((wxWebKitCtrl *) x));
1292 }
1293 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
1294 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
1295 }
1296 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
1297 return (void *)((wxWindow *) ((wxMenuBar *) x));
1298 }
1299 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
1300 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
1301 }
1302 static void *_p_wxWebKitCtrlTo_p_wxEvtHandler(void *x) {
1303 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxWebKitCtrl *) x));
1304 }
1305 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
1306 return (void *)((wxEvtHandler *) ((wxWindow *) x));
1307 }
1308 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
1309 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
1310 }
1311 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
1312 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
1313 }
1314 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
1315 return (void *)((wxEvtHandler *) ((wxValidator *) x));
1316 }
1317 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
1318 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
1319 }
1320 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
1321 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
1322 }
1323 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
1324 return (void *)((wxEvtHandler *) ((wxMenu *) x));
1325 }
1326 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
1327 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
1328 }
1329 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
1330 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
1331 }
1332 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
1333 return (void *)((wxObject *) ((wxSizerItem *) x));
1334 }
1335 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
1336 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
1337 }
1338 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
1339 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
1340 }
1341 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
1342 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
1343 }
1344 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
1345 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
1346 }
1347 static void *_p_wxSizerTo_p_wxObject(void *x) {
1348 return (void *)((wxObject *) ((wxSizer *) x));
1349 }
1350 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
1351 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
1352 }
1353 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
1354 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
1355 }
1356 static void *_p_wxEventTo_p_wxObject(void *x) {
1357 return (void *)((wxObject *) ((wxEvent *) x));
1358 }
1359 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
1360 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
1361 }
1362 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
1363 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
1364 }
1365 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
1366 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
1367 }
1368 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
1369 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
1370 }
1371 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
1372 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
1373 }
1374 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
1375 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
1376 }
1377 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
1378 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
1379 }
1380 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
1381 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
1382 }
1383 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
1384 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
1385 }
1386 static void *_p_wxWebKitStateChangedEventTo_p_wxObject(void *x) {
1387 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWebKitStateChangedEvent *) x));
1388 }
1389 static void *_p_wxControlTo_p_wxObject(void *x) {
1390 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
1391 }
1392 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
1393 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
1394 }
1395 static void *_p_wxFSFileTo_p_wxObject(void *x) {
1396 return (void *)((wxObject *) ((wxFSFile *) x));
1397 }
1398 static void *_p_wxPySizerTo_p_wxObject(void *x) {
1399 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
1400 }
1401 static void *_p_wxPyEventTo_p_wxObject(void *x) {
1402 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
1403 }
1404 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
1405 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
1406 }
1407 static void *_p_wxShowEventTo_p_wxObject(void *x) {
1408 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
1409 }
1410 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
1411 return (void *)((wxObject *) ((wxMenuItem *) x));
1412 }
1413 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
1414 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
1415 }
1416 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
1417 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
1418 }
1419 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
1420 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
1421 }
1422 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
1423 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
1424 }
1425 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
1426 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
1427 }
1428 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
1429 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
1430 }
1431 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
1432 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
1433 }
1434 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
1435 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
1436 }
1437 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
1438 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
1439 }
1440 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
1441 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
1442 }
1443 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
1444 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
1445 }
1446 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
1447 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
1448 }
1449 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
1450 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
1451 }
1452 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
1453 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
1454 }
1455 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
1456 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
1457 }
1458 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
1459 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
1460 }
1461 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
1462 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
1463 }
1464 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
1465 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
1466 }
1467 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
1468 return (void *)((wxObject *) ((wxImageHandler *) x));
1469 }
1470 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
1471 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
1472 }
1473 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
1474 return (void *)((wxObject *) ((wxEvtHandler *) x));
1475 }
1476 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
1477 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
1478 }
1479 static void *_p_wxImageTo_p_wxObject(void *x) {
1480 return (void *)((wxObject *) ((wxImage *) x));
1481 }
1482 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
1483 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
1484 }
1485 static void *_p_wxWebKitCtrlTo_p_wxObject(void *x) {
1486 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxWebKitCtrl *) x));
1487 }
1488 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
1489 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
1490 }
1491 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
1492 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
1493 }
1494 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
1495 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
1496 }
1497 static void *_p_wxWindowTo_p_wxObject(void *x) {
1498 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
1499 }
1500 static void *_p_wxMenuTo_p_wxObject(void *x) {
1501 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
1502 }
1503 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
1504 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
1505 }
1506 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
1507 return (void *)((wxObject *) ((wxFileSystem *) x));
1508 }
1509 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
1510 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
1511 }
1512 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
1513 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
1514 }
1515 static void *_p_wxPyAppTo_p_wxObject(void *x) {
1516 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
1517 }
1518 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
1519 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
1520 }
1521 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
1522 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
1523 }
1524 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
1525 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
1526 }
1527 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
1528 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
1529 }
1530 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
1531 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
1532 }
1533 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
1534 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
1535 }
1536 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
1537 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
1538 }
1539 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
1540 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
1541 }
1542 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
1543 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
1544 }
1545 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
1546 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
1547 }
1548 static void *_p_wxValidatorTo_p_wxObject(void *x) {
1549 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
1550 }
1551 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
1552 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
1553 }
1554 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
1555 return (void *)((wxEvent *) ((wxMenuEvent *) x));
1556 }
1557 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
1558 return (void *)((wxEvent *) ((wxCloseEvent *) x));
1559 }
1560 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
1561 return (void *)((wxEvent *) ((wxMouseEvent *) x));
1562 }
1563 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
1564 return (void *)((wxEvent *) ((wxEraseEvent *) x));
1565 }
1566 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
1567 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
1568 }
1569 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
1570 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
1571 }
1572 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
1573 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
1574 }
1575 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
1576 return (void *)((wxEvent *) ((wxPyEvent *) x));
1577 }
1578 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
1579 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
1580 }
1581 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
1582 return (void *)((wxEvent *) ((wxIdleEvent *) x));
1583 }
1584 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
1585 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
1586 }
1587 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
1588 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
1589 }
1590 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
1591 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
1592 }
1593 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
1594 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
1595 }
1596 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
1597 return (void *)((wxEvent *) ((wxActivateEvent *) x));
1598 }
1599 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
1600 return (void *)((wxEvent *) ((wxSizeEvent *) x));
1601 }
1602 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
1603 return (void *)((wxEvent *) ((wxMoveEvent *) x));
1604 }
1605 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
1606 return (void *)((wxEvent *) ((wxPaintEvent *) x));
1607 }
1608 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
1609 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
1610 }
1611 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
1612 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
1613 }
1614 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
1615 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
1616 }
1617 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
1618 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
1619 }
1620 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
1621 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
1622 }
1623 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
1624 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
1625 }
1626 static void *_p_wxWebKitStateChangedEventTo_p_wxEvent(void *x) {
1627 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWebKitStateChangedEvent *) x));
1628 }
1629 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
1630 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
1631 }
1632 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
1633 return (void *)((wxEvent *) ((wxFocusEvent *) x));
1634 }
1635 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
1636 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
1637 }
1638 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
1639 return (void *)((wxEvent *) ((wxShowEvent *) x));
1640 }
1641 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
1642 return (void *)((wxEvent *) ((wxCommandEvent *) x));
1643 }
1644 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
1645 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
1646 }
1647 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
1648 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
1649 }
1650 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
1651 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
1652 }
1653 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
1654 return (void *)((wxEvent *) ((wxKeyEvent *) x));
1655 }
1656 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
1657 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
1658 }
1659 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
1660 return (void *)((wxValidator *) ((wxPyValidator *) x));
1661 }
1662 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
1663 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
1664 }
1665 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
1666 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
1667 }
1668 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
1669 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
1670 }
1671 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
1672 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
1673 }
1674 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
1675 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
1676 }
1677 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
1678 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
1679 }
1680 static void *_p_wxWebKitStateChangedEventTo_p_wxCommandEvent(void *x) {
1681 return (void *)((wxCommandEvent *) ((wxWebKitStateChangedEvent *) x));
1682 }
1683 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
1684 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
1685 }
1686 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
1687 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
1688 }
1689 static swig_type_info _swigt__p_wxControl[] = {{"_p_wxControl", 0, "wxControl *", 0, 0, 0, 0},{"_p_wxControl", 0, 0, 0, 0, 0, 0},{"_p_wxWebKitCtrl", _p_wxWebKitCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxControl, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
1690 static swig_type_info _swigt__p_wxWebKitCtrl[] = {{"_p_wxWebKitCtrl", 0, "wxWebKitCtrl *", 0, 0, 0, 0},{"_p_wxWebKitCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
1691 static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWebKitCtrl", _p_wxWebKitCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
1692 static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxWebKitCtrl", _p_wxWebKitCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", 0, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
1693 static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWebKitStateChangedEvent", _p_wxWebKitStateChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_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}};
1694 static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEvent", 0, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWebKitStateChangedEvent", _p_wxWebKitStateChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
1695 static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0, 0, 0, 0},{"_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
1696 static swig_type_info _swigt__p_wxValidator[] = {{"_p_wxValidator", 0, "wxValidator *", 0, 0, 0, 0},{"_p_wxValidator", 0, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxValidator, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
1697 static swig_type_info _swigt__p_wxWebKitStateChangedEvent[] = {{"_p_wxWebKitStateChangedEvent", 0, "wxWebKitStateChangedEvent *", 0, 0, 0, 0},{"_p_wxWebKitStateChangedEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
1698 static swig_type_info _swigt__p_wxCommandEvent[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWebKitStateChangedEvent", _p_wxWebKitStateChangedEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", 0, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
1699
1700 static swig_type_info *swig_types_initial[] = {
1701 _swigt__p_wxControl,
1702 _swigt__p_wxWebKitCtrl,
1703 _swigt__p_wxWindow,
1704 _swigt__p_wxEvtHandler,
1705 _swigt__p_wxObject,
1706 _swigt__p_wxEvent,
1707 _swigt__p_char,
1708 _swigt__p_wxValidator,
1709 _swigt__p_wxWebKitStateChangedEvent,
1710 _swigt__p_wxCommandEvent,
1711 0
1712 };
1713
1714
1715 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
1716
1717 static swig_const_info swig_const_table[] = {
1718 {0, 0, 0, 0.0, 0, 0}};
1719
1720 #ifdef __cplusplus
1721 }
1722 #endif
1723
1724 #ifdef __cplusplus
1725 extern "C"
1726 #endif
1727 SWIGEXPORT(void) SWIG_init(void) {
1728 static PyObject *SWIG_globals = 0;
1729 static int typeinit = 0;
1730 PyObject *m, *d;
1731 int i;
1732 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
1733 m = Py_InitModule((char *) SWIG_name, SwigMethods);
1734 d = PyModule_GetDict(m);
1735
1736 if (!typeinit) {
1737 for (i = 0; swig_types_initial[i]; i++) {
1738 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
1739 }
1740 typeinit = 1;
1741 }
1742 SWIG_InstallConstants(d,swig_const_table);
1743
1744 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
1745 SWIG_addvarlink(SWIG_globals,(char*)"WebKitNameStr",_wrap_WebKitNameStr_get, _wrap_WebKitNameStr_set);
1746 PyDict_SetItemString(d,"WEBKIT_STATE_START", SWIG_From_int((int)wxWEBKIT_STATE_START));
1747 PyDict_SetItemString(d,"WEBKIT_STATE_NEGOTIATING", SWIG_From_int((int)wxWEBKIT_STATE_NEGOTIATING));
1748 PyDict_SetItemString(d,"WEBKIT_STATE_REDIRECTING", SWIG_From_int((int)wxWEBKIT_STATE_REDIRECTING));
1749 PyDict_SetItemString(d,"WEBKIT_STATE_TRANSFERRING", SWIG_From_int((int)wxWEBKIT_STATE_TRANSFERRING));
1750 PyDict_SetItemString(d,"WEBKIT_STATE_STOP", SWIG_From_int((int)wxWEBKIT_STATE_STOP));
1751 PyDict_SetItemString(d,"WEBKIT_STATE_FAILED", SWIG_From_int((int)wxWEBKIT_STATE_FAILED));
1752 PyDict_SetItemString(d, "wxEVT_WEBKIT_STATE_CHANGED", PyInt_FromLong(wxEVT_WEBKIT_STATE_CHANGED));
1753
1754
1755
1756 }
1757