]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxPython/src/mac/help.cpp
applied doc patch for wxPostEvent().
[wxWidgets.git] / wxPython / src / mac / help.cpp
... / ...
CommitLineData
1/*
2 * FILE : src/mac/help.cpp
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
7 *
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
12 *
13 * Do not make changes to this file--changes will be lost!
14 *
15 */
16
17
18#define SWIGCODE
19/* Implementation : PYTHON */
20
21#define SWIGPYTHON
22#include <string.h>
23#include <stdlib.h>
24/* Definitions for Windows/Unix exporting */
25#if defined(__WIN32__)
26# if defined(_MSC_VER)
27# define SWIGEXPORT(a) __declspec(dllexport) a
28# else
29# if defined(__BORLANDC__)
30# define SWIGEXPORT(a) a _export
31# else
32# define SWIGEXPORT(a) a
33# endif
34# endif
35#else
36# define SWIGEXPORT(a) a
37#endif
38
39#include "Python.h"
40
41#ifdef __cplusplus
42extern "C" {
43#endif
44
45extern void SWIG_MakePtr(char *, void *, char *);
46extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47extern char *SWIG_GetPtr(char *, void **, char *);
48extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
49extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
50extern PyObject *SWIG_newvarlink(void);
51#ifdef __cplusplus
52}
53#endif
54#define SWIG_init inithelpc
55
56#define SWIG_name "helpc"
57
58#include "export.h"
59#include <wx/cshelp.h>
60
61
62static PyObject* t_output_helper(PyObject* target, PyObject* o) {
63 PyObject* o2;
64 PyObject* o3;
65
66 if (!target) {
67 target = o;
68 } else if (target == Py_None) {
69 Py_DECREF(Py_None);
70 target = o;
71 } else {
72 if (!PyTuple_Check(target)) {
73 o2 = target;
74 target = PyTuple_New(1);
75 PyTuple_SetItem(target, 0, o2);
76 }
77 o3 = PyTuple_New(1);
78 PyTuple_SetItem(o3, 0, o);
79
80 o2 = target;
81 target = PySequence_Concat(o2, o3);
82 Py_DECREF(o2);
83 Py_DECREF(o3);
84 }
85 return target;
86}
87
88#if PYTHON_API_VERSION >= 1009
89 static char* wxStringErrorMsg = "String or Unicode type required";
90#else
91 static char* wxStringErrorMsg = "String type required";
92#endif
93#ifdef __cplusplus
94extern "C" {
95#endif
96static void *SwigwxHelpEventTowxCommandEvent(void *ptr) {
97 wxHelpEvent *src;
98 wxCommandEvent *dest;
99 src = (wxHelpEvent *) ptr;
100 dest = (wxCommandEvent *) src;
101 return (void *) dest;
102}
103
104static void *SwigwxHelpEventTowxEvent(void *ptr) {
105 wxHelpEvent *src;
106 wxEvent *dest;
107 src = (wxHelpEvent *) ptr;
108 dest = (wxEvent *) src;
109 return (void *) dest;
110}
111
112static void *SwigwxHelpEventTowxObject(void *ptr) {
113 wxHelpEvent *src;
114 wxObject *dest;
115 src = (wxHelpEvent *) ptr;
116 dest = (wxObject *) src;
117 return (void *) dest;
118}
119
120#define new_wxHelpEvent(_swigarg0,_swigarg1,_swigarg2) (new wxHelpEvent(_swigarg0,_swigarg1,_swigarg2))
121static PyObject *_wrap_new_wxHelpEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
122 PyObject * _resultobj;
123 wxHelpEvent * _result;
124 wxEventType _arg0 = (wxEventType ) wxEVT_NULL;
125 wxWindowID _arg1 = (wxWindowID ) 0;
126 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
127 wxPoint temp;
128 PyObject * _obj2 = 0;
129 char *_kwnames[] = { "type","id","pt", NULL };
130 char _ptemp[128];
131
132 self = self;
133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|iiO:new_wxHelpEvent",_kwnames,&_arg0,&_arg1,&_obj2))
134 return NULL;
135 if (_obj2)
136{
137 _arg2 = &temp;
138 if (! wxPoint_helper(_obj2, &_arg2))
139 return NULL;
140}
141{
142 PyThreadState* __tstate = wxPyBeginAllowThreads();
143 _result = (wxHelpEvent *)new_wxHelpEvent(_arg0,_arg1,*_arg2);
144
145 wxPyEndAllowThreads(__tstate);
146 if (PyErr_Occurred()) return NULL;
147} if (_result) {
148 SWIG_MakePtr(_ptemp, (char *) _result,"_wxHelpEvent_p");
149 _resultobj = Py_BuildValue("s",_ptemp);
150 } else {
151 Py_INCREF(Py_None);
152 _resultobj = Py_None;
153 }
154 return _resultobj;
155}
156
157#define wxHelpEvent_GetPosition(_swigobj) (_swigobj->GetPosition())
158static PyObject *_wrap_wxHelpEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
159 PyObject * _resultobj;
160 wxPoint * _result;
161 wxHelpEvent * _arg0;
162 PyObject * _argo0 = 0;
163 char *_kwnames[] = { "self", NULL };
164 char _ptemp[128];
165
166 self = self;
167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHelpEvent_GetPosition",_kwnames,&_argo0))
168 return NULL;
169 if (_argo0) {
170 if (_argo0 == Py_None) { _arg0 = NULL; }
171 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHelpEvent_p")) {
172 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHelpEvent_GetPosition. Expected _wxHelpEvent_p.");
173 return NULL;
174 }
175 }
176{
177 PyThreadState* __tstate = wxPyBeginAllowThreads();
178 const wxPoint & _result_ref = wxHelpEvent_GetPosition(_arg0);
179 _result = (wxPoint *) &_result_ref;
180
181 wxPyEndAllowThreads(__tstate);
182 if (PyErr_Occurred()) return NULL;
183} if (_result) {
184 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p");
185 _resultobj = Py_BuildValue("s",_ptemp);
186 } else {
187 Py_INCREF(Py_None);
188 _resultobj = Py_None;
189 }
190 return _resultobj;
191}
192
193#define wxHelpEvent_SetPosition(_swigobj,_swigarg0) (_swigobj->SetPosition(_swigarg0))
194static PyObject *_wrap_wxHelpEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
195 PyObject * _resultobj;
196 wxHelpEvent * _arg0;
197 wxPoint * _arg1;
198 PyObject * _argo0 = 0;
199 wxPoint temp;
200 PyObject * _obj1 = 0;
201 char *_kwnames[] = { "self","pos", NULL };
202
203 self = self;
204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHelpEvent_SetPosition",_kwnames,&_argo0,&_obj1))
205 return NULL;
206 if (_argo0) {
207 if (_argo0 == Py_None) { _arg0 = NULL; }
208 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHelpEvent_p")) {
209 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHelpEvent_SetPosition. Expected _wxHelpEvent_p.");
210 return NULL;
211 }
212 }
213{
214 _arg1 = &temp;
215 if (! wxPoint_helper(_obj1, &_arg1))
216 return NULL;
217}
218{
219 PyThreadState* __tstate = wxPyBeginAllowThreads();
220 wxHelpEvent_SetPosition(_arg0,*_arg1);
221
222 wxPyEndAllowThreads(__tstate);
223 if (PyErr_Occurred()) return NULL;
224} Py_INCREF(Py_None);
225 _resultobj = Py_None;
226 return _resultobj;
227}
228
229#define wxHelpEvent_GetLink(_swigobj) (_swigobj->GetLink())
230static PyObject *_wrap_wxHelpEvent_GetLink(PyObject *self, PyObject *args, PyObject *kwargs) {
231 PyObject * _resultobj;
232 wxString * _result;
233 wxHelpEvent * _arg0;
234 PyObject * _argo0 = 0;
235 char *_kwnames[] = { "self", NULL };
236
237 self = self;
238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHelpEvent_GetLink",_kwnames,&_argo0))
239 return NULL;
240 if (_argo0) {
241 if (_argo0 == Py_None) { _arg0 = NULL; }
242 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHelpEvent_p")) {
243 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHelpEvent_GetLink. Expected _wxHelpEvent_p.");
244 return NULL;
245 }
246 }
247{
248 PyThreadState* __tstate = wxPyBeginAllowThreads();
249 const wxString & _result_ref = wxHelpEvent_GetLink(_arg0);
250 _result = (wxString *) &_result_ref;
251
252 wxPyEndAllowThreads(__tstate);
253 if (PyErr_Occurred()) return NULL;
254}{
255 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
256}
257 return _resultobj;
258}
259
260#define wxHelpEvent_SetLink(_swigobj,_swigarg0) (_swigobj->SetLink(_swigarg0))
261static PyObject *_wrap_wxHelpEvent_SetLink(PyObject *self, PyObject *args, PyObject *kwargs) {
262 PyObject * _resultobj;
263 wxHelpEvent * _arg0;
264 wxString * _arg1;
265 PyObject * _argo0 = 0;
266 PyObject * _obj1 = 0;
267 char *_kwnames[] = { "self","link", NULL };
268
269 self = self;
270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHelpEvent_SetLink",_kwnames,&_argo0,&_obj1))
271 return NULL;
272 if (_argo0) {
273 if (_argo0 == Py_None) { _arg0 = NULL; }
274 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHelpEvent_p")) {
275 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHelpEvent_SetLink. Expected _wxHelpEvent_p.");
276 return NULL;
277 }
278 }
279{
280#if PYTHON_API_VERSION >= 1009
281 char* tmpPtr; int tmpSize;
282 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
283 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
284 return NULL;
285 }
286 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
287 return NULL;
288 _arg1 = new wxString(tmpPtr, tmpSize);
289#else
290 if (!PyString_Check(_obj1)) {
291 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
292 return NULL;
293 }
294 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
295#endif
296}
297{
298 PyThreadState* __tstate = wxPyBeginAllowThreads();
299 wxHelpEvent_SetLink(_arg0,*_arg1);
300
301 wxPyEndAllowThreads(__tstate);
302 if (PyErr_Occurred()) return NULL;
303} Py_INCREF(Py_None);
304 _resultobj = Py_None;
305{
306 if (_obj1)
307 delete _arg1;
308}
309 return _resultobj;
310}
311
312#define wxHelpEvent_GetTarget(_swigobj) (_swigobj->GetTarget())
313static PyObject *_wrap_wxHelpEvent_GetTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
314 PyObject * _resultobj;
315 wxString * _result;
316 wxHelpEvent * _arg0;
317 PyObject * _argo0 = 0;
318 char *_kwnames[] = { "self", NULL };
319
320 self = self;
321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHelpEvent_GetTarget",_kwnames,&_argo0))
322 return NULL;
323 if (_argo0) {
324 if (_argo0 == Py_None) { _arg0 = NULL; }
325 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHelpEvent_p")) {
326 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHelpEvent_GetTarget. Expected _wxHelpEvent_p.");
327 return NULL;
328 }
329 }
330{
331 PyThreadState* __tstate = wxPyBeginAllowThreads();
332 const wxString & _result_ref = wxHelpEvent_GetTarget(_arg0);
333 _result = (wxString *) &_result_ref;
334
335 wxPyEndAllowThreads(__tstate);
336 if (PyErr_Occurred()) return NULL;
337}{
338 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
339}
340 return _resultobj;
341}
342
343#define wxHelpEvent_SetTarget(_swigobj,_swigarg0) (_swigobj->SetTarget(_swigarg0))
344static PyObject *_wrap_wxHelpEvent_SetTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
345 PyObject * _resultobj;
346 wxHelpEvent * _arg0;
347 wxString * _arg1;
348 PyObject * _argo0 = 0;
349 PyObject * _obj1 = 0;
350 char *_kwnames[] = { "self","target", NULL };
351
352 self = self;
353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHelpEvent_SetTarget",_kwnames,&_argo0,&_obj1))
354 return NULL;
355 if (_argo0) {
356 if (_argo0 == Py_None) { _arg0 = NULL; }
357 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHelpEvent_p")) {
358 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHelpEvent_SetTarget. Expected _wxHelpEvent_p.");
359 return NULL;
360 }
361 }
362{
363#if PYTHON_API_VERSION >= 1009
364 char* tmpPtr; int tmpSize;
365 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
366 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
367 return NULL;
368 }
369 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
370 return NULL;
371 _arg1 = new wxString(tmpPtr, tmpSize);
372#else
373 if (!PyString_Check(_obj1)) {
374 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
375 return NULL;
376 }
377 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
378#endif
379}
380{
381 PyThreadState* __tstate = wxPyBeginAllowThreads();
382 wxHelpEvent_SetTarget(_arg0,*_arg1);
383
384 wxPyEndAllowThreads(__tstate);
385 if (PyErr_Occurred()) return NULL;
386} Py_INCREF(Py_None);
387 _resultobj = Py_None;
388{
389 if (_obj1)
390 delete _arg1;
391}
392 return _resultobj;
393}
394
395static void *SwigwxContextMenuEventTowxCommandEvent(void *ptr) {
396 wxContextMenuEvent *src;
397 wxCommandEvent *dest;
398 src = (wxContextMenuEvent *) ptr;
399 dest = (wxCommandEvent *) src;
400 return (void *) dest;
401}
402
403static void *SwigwxContextMenuEventTowxEvent(void *ptr) {
404 wxContextMenuEvent *src;
405 wxEvent *dest;
406 src = (wxContextMenuEvent *) ptr;
407 dest = (wxEvent *) src;
408 return (void *) dest;
409}
410
411static void *SwigwxContextMenuEventTowxObject(void *ptr) {
412 wxContextMenuEvent *src;
413 wxObject *dest;
414 src = (wxContextMenuEvent *) ptr;
415 dest = (wxObject *) src;
416 return (void *) dest;
417}
418
419#define new_wxContextMenuEvent(_swigarg0,_swigarg1,_swigarg2) (new wxContextMenuEvent(_swigarg0,_swigarg1,_swigarg2))
420static PyObject *_wrap_new_wxContextMenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
421 PyObject * _resultobj;
422 wxContextMenuEvent * _result;
423 wxEventType _arg0 = (wxEventType ) wxEVT_NULL;
424 wxWindowID _arg1 = (wxWindowID ) 0;
425 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
426 wxPoint temp;
427 PyObject * _obj2 = 0;
428 char *_kwnames[] = { "type","id","pt", NULL };
429 char _ptemp[128];
430
431 self = self;
432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|iiO:new_wxContextMenuEvent",_kwnames,&_arg0,&_arg1,&_obj2))
433 return NULL;
434 if (_obj2)
435{
436 _arg2 = &temp;
437 if (! wxPoint_helper(_obj2, &_arg2))
438 return NULL;
439}
440{
441 PyThreadState* __tstate = wxPyBeginAllowThreads();
442 _result = (wxContextMenuEvent *)new_wxContextMenuEvent(_arg0,_arg1,*_arg2);
443
444 wxPyEndAllowThreads(__tstate);
445 if (PyErr_Occurred()) return NULL;
446} if (_result) {
447 SWIG_MakePtr(_ptemp, (char *) _result,"_wxContextMenuEvent_p");
448 _resultobj = Py_BuildValue("s",_ptemp);
449 } else {
450 Py_INCREF(Py_None);
451 _resultobj = Py_None;
452 }
453 return _resultobj;
454}
455
456#define wxContextMenuEvent_GetPosition(_swigobj) (_swigobj->GetPosition())
457static PyObject *_wrap_wxContextMenuEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
458 PyObject * _resultobj;
459 wxPoint * _result;
460 wxContextMenuEvent * _arg0;
461 PyObject * _argo0 = 0;
462 char *_kwnames[] = { "self", NULL };
463 char _ptemp[128];
464
465 self = self;
466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxContextMenuEvent_GetPosition",_kwnames,&_argo0))
467 return NULL;
468 if (_argo0) {
469 if (_argo0 == Py_None) { _arg0 = NULL; }
470 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxContextMenuEvent_p")) {
471 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxContextMenuEvent_GetPosition. Expected _wxContextMenuEvent_p.");
472 return NULL;
473 }
474 }
475{
476 PyThreadState* __tstate = wxPyBeginAllowThreads();
477 const wxPoint & _result_ref = wxContextMenuEvent_GetPosition(_arg0);
478 _result = (wxPoint *) &_result_ref;
479
480 wxPyEndAllowThreads(__tstate);
481 if (PyErr_Occurred()) return NULL;
482} if (_result) {
483 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p");
484 _resultobj = Py_BuildValue("s",_ptemp);
485 } else {
486 Py_INCREF(Py_None);
487 _resultobj = Py_None;
488 }
489 return _resultobj;
490}
491
492#define wxContextMenuEvent_SetPosition(_swigobj,_swigarg0) (_swigobj->SetPosition(_swigarg0))
493static PyObject *_wrap_wxContextMenuEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
494 PyObject * _resultobj;
495 wxContextMenuEvent * _arg0;
496 wxPoint * _arg1;
497 PyObject * _argo0 = 0;
498 wxPoint temp;
499 PyObject * _obj1 = 0;
500 char *_kwnames[] = { "self","pos", NULL };
501
502 self = self;
503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxContextMenuEvent_SetPosition",_kwnames,&_argo0,&_obj1))
504 return NULL;
505 if (_argo0) {
506 if (_argo0 == Py_None) { _arg0 = NULL; }
507 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxContextMenuEvent_p")) {
508 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxContextMenuEvent_SetPosition. Expected _wxContextMenuEvent_p.");
509 return NULL;
510 }
511 }
512{
513 _arg1 = &temp;
514 if (! wxPoint_helper(_obj1, &_arg1))
515 return NULL;
516}
517{
518 PyThreadState* __tstate = wxPyBeginAllowThreads();
519 wxContextMenuEvent_SetPosition(_arg0,*_arg1);
520
521 wxPyEndAllowThreads(__tstate);
522 if (PyErr_Occurred()) return NULL;
523} Py_INCREF(Py_None);
524 _resultobj = Py_None;
525 return _resultobj;
526}
527
528static void *SwigwxContextHelpTowxObject(void *ptr) {
529 wxContextHelp *src;
530 wxObject *dest;
531 src = (wxContextHelp *) ptr;
532 dest = (wxObject *) src;
533 return (void *) dest;
534}
535
536#define new_wxContextHelp(_swigarg0,_swigarg1) (new wxContextHelp(_swigarg0,_swigarg1))
537static PyObject *_wrap_new_wxContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
538 PyObject * _resultobj;
539 wxContextHelp * _result;
540 wxWindow * _arg0 = (wxWindow *) NULL;
541 bool _arg1 = (bool ) TRUE;
542 PyObject * _argo0 = 0;
543 int tempbool1 = (int) TRUE;
544 char *_kwnames[] = { "window","doNow", NULL };
545 char _ptemp[128];
546
547 self = self;
548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Oi:new_wxContextHelp",_kwnames,&_argo0,&tempbool1))
549 return NULL;
550 if (_argo0) {
551 if (_argo0 == Py_None) { _arg0 = NULL; }
552 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
553 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxContextHelp. Expected _wxWindow_p.");
554 return NULL;
555 }
556 }
557 _arg1 = (bool ) tempbool1;
558{
559 PyThreadState* __tstate = wxPyBeginAllowThreads();
560 _result = (wxContextHelp *)new_wxContextHelp(_arg0,_arg1);
561
562 wxPyEndAllowThreads(__tstate);
563 if (PyErr_Occurred()) return NULL;
564} if (_result) {
565 SWIG_MakePtr(_ptemp, (char *) _result,"_wxContextHelp_p");
566 _resultobj = Py_BuildValue("s",_ptemp);
567 } else {
568 Py_INCREF(Py_None);
569 _resultobj = Py_None;
570 }
571 return _resultobj;
572}
573
574#define delete_wxContextHelp(_swigobj) (delete _swigobj)
575static PyObject *_wrap_delete_wxContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
576 PyObject * _resultobj;
577 wxContextHelp * _arg0;
578 PyObject * _argo0 = 0;
579 char *_kwnames[] = { "self", NULL };
580
581 self = self;
582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxContextHelp",_kwnames,&_argo0))
583 return NULL;
584 if (_argo0) {
585 if (_argo0 == Py_None) { _arg0 = NULL; }
586 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxContextHelp_p")) {
587 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxContextHelp. Expected _wxContextHelp_p.");
588 return NULL;
589 }
590 }
591{
592 PyThreadState* __tstate = wxPyBeginAllowThreads();
593 delete_wxContextHelp(_arg0);
594
595 wxPyEndAllowThreads(__tstate);
596 if (PyErr_Occurred()) return NULL;
597} Py_INCREF(Py_None);
598 _resultobj = Py_None;
599 return _resultobj;
600}
601
602#define wxContextHelp_BeginContextHelp(_swigobj,_swigarg0) (_swigobj->BeginContextHelp(_swigarg0))
603static PyObject *_wrap_wxContextHelp_BeginContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
604 PyObject * _resultobj;
605 bool _result;
606 wxContextHelp * _arg0;
607 wxWindow * _arg1 = (wxWindow *) NULL;
608 PyObject * _argo0 = 0;
609 PyObject * _argo1 = 0;
610 char *_kwnames[] = { "self","window", NULL };
611
612 self = self;
613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxContextHelp_BeginContextHelp",_kwnames,&_argo0,&_argo1))
614 return NULL;
615 if (_argo0) {
616 if (_argo0 == Py_None) { _arg0 = NULL; }
617 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxContextHelp_p")) {
618 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxContextHelp_BeginContextHelp. Expected _wxContextHelp_p.");
619 return NULL;
620 }
621 }
622 if (_argo1) {
623 if (_argo1 == Py_None) { _arg1 = NULL; }
624 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
625 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxContextHelp_BeginContextHelp. Expected _wxWindow_p.");
626 return NULL;
627 }
628 }
629{
630 PyThreadState* __tstate = wxPyBeginAllowThreads();
631 _result = (bool )wxContextHelp_BeginContextHelp(_arg0,_arg1);
632
633 wxPyEndAllowThreads(__tstate);
634 if (PyErr_Occurred()) return NULL;
635} _resultobj = Py_BuildValue("i",_result);
636 return _resultobj;
637}
638
639#define wxContextHelp_EndContextHelp(_swigobj) (_swigobj->EndContextHelp())
640static PyObject *_wrap_wxContextHelp_EndContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
641 PyObject * _resultobj;
642 bool _result;
643 wxContextHelp * _arg0;
644 PyObject * _argo0 = 0;
645 char *_kwnames[] = { "self", NULL };
646
647 self = self;
648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxContextHelp_EndContextHelp",_kwnames,&_argo0))
649 return NULL;
650 if (_argo0) {
651 if (_argo0 == Py_None) { _arg0 = NULL; }
652 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxContextHelp_p")) {
653 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxContextHelp_EndContextHelp. Expected _wxContextHelp_p.");
654 return NULL;
655 }
656 }
657{
658 PyThreadState* __tstate = wxPyBeginAllowThreads();
659 _result = (bool )wxContextHelp_EndContextHelp(_arg0);
660
661 wxPyEndAllowThreads(__tstate);
662 if (PyErr_Occurred()) return NULL;
663} _resultobj = Py_BuildValue("i",_result);
664 return _resultobj;
665}
666
667static void *SwigwxContextHelpButtonTowxBitmapButton(void *ptr) {
668 wxContextHelpButton *src;
669 wxBitmapButton *dest;
670 src = (wxContextHelpButton *) ptr;
671 dest = (wxBitmapButton *) src;
672 return (void *) dest;
673}
674
675static void *SwigwxContextHelpButtonTowxButton(void *ptr) {
676 wxContextHelpButton *src;
677 wxButton *dest;
678 src = (wxContextHelpButton *) ptr;
679 dest = (wxButton *) src;
680 return (void *) dest;
681}
682
683static void *SwigwxContextHelpButtonTowxControl(void *ptr) {
684 wxContextHelpButton *src;
685 wxControl *dest;
686 src = (wxContextHelpButton *) ptr;
687 dest = (wxControl *) src;
688 return (void *) dest;
689}
690
691static void *SwigwxContextHelpButtonTowxWindow(void *ptr) {
692 wxContextHelpButton *src;
693 wxWindow *dest;
694 src = (wxContextHelpButton *) ptr;
695 dest = (wxWindow *) src;
696 return (void *) dest;
697}
698
699static void *SwigwxContextHelpButtonTowxEvtHandler(void *ptr) {
700 wxContextHelpButton *src;
701 wxEvtHandler *dest;
702 src = (wxContextHelpButton *) ptr;
703 dest = (wxEvtHandler *) src;
704 return (void *) dest;
705}
706
707static void *SwigwxContextHelpButtonTowxObject(void *ptr) {
708 wxContextHelpButton *src;
709 wxObject *dest;
710 src = (wxContextHelpButton *) ptr;
711 dest = (wxObject *) src;
712 return (void *) dest;
713}
714
715#define new_wxContextHelpButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxContextHelpButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
716static PyObject *_wrap_new_wxContextHelpButton(PyObject *self, PyObject *args, PyObject *kwargs) {
717 PyObject * _resultobj;
718 wxContextHelpButton * _result;
719 wxWindow * _arg0;
720 wxWindowID _arg1 = (wxWindowID ) (wxID_CONTEXT_HELP);
721 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
722 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
723 long _arg4 = (long ) wxBU_AUTODRAW;
724 PyObject * _argo0 = 0;
725 wxPoint temp;
726 PyObject * _obj2 = 0;
727 wxSize temp0;
728 PyObject * _obj3 = 0;
729 char *_kwnames[] = { "parent","id","pos","size","style", NULL };
730 char _ptemp[128];
731
732 self = self;
733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOl:new_wxContextHelpButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4))
734 return NULL;
735 if (_argo0) {
736 if (_argo0 == Py_None) { _arg0 = NULL; }
737 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
738 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxContextHelpButton. Expected _wxWindow_p.");
739 return NULL;
740 }
741 }
742 if (_obj2)
743{
744 _arg2 = &temp;
745 if (! wxPoint_helper(_obj2, &_arg2))
746 return NULL;
747}
748 if (_obj3)
749{
750 _arg3 = &temp0;
751 if (! wxSize_helper(_obj3, &_arg3))
752 return NULL;
753}
754{
755 PyThreadState* __tstate = wxPyBeginAllowThreads();
756 _result = (wxContextHelpButton *)new_wxContextHelpButton(_arg0,_arg1,*_arg2,*_arg3,_arg4);
757
758 wxPyEndAllowThreads(__tstate);
759 if (PyErr_Occurred()) return NULL;
760} if (_result) {
761 SWIG_MakePtr(_ptemp, (char *) _result,"_wxContextHelpButton_p");
762 _resultobj = Py_BuildValue("s",_ptemp);
763 } else {
764 Py_INCREF(Py_None);
765 _resultobj = Py_None;
766 }
767 return _resultobj;
768}
769
770static PyObject *_wrap_wxHelpProvider_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
771 PyObject * _resultobj;
772 wxHelpProvider * _result;
773 wxHelpProvider * _arg0;
774 PyObject * _argo0 = 0;
775 char *_kwnames[] = { "helpProvider", NULL };
776 char _ptemp[128];
777
778 self = self;
779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHelpProvider_Set",_kwnames,&_argo0))
780 return NULL;
781 if (_argo0) {
782 if (_argo0 == Py_None) { _arg0 = NULL; }
783 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHelpProvider_p")) {
784 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHelpProvider_Set. Expected _wxHelpProvider_p.");
785 return NULL;
786 }
787 }
788{
789 PyThreadState* __tstate = wxPyBeginAllowThreads();
790 _result = (wxHelpProvider *)wxHelpProvider::Set(_arg0);
791
792 wxPyEndAllowThreads(__tstate);
793 if (PyErr_Occurred()) return NULL;
794} if (_result) {
795 SWIG_MakePtr(_ptemp, (char *) _result,"_wxHelpProvider_p");
796 _resultobj = Py_BuildValue("s",_ptemp);
797 } else {
798 Py_INCREF(Py_None);
799 _resultobj = Py_None;
800 }
801 return _resultobj;
802}
803
804static PyObject *_wrap_wxHelpProvider_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
805 PyObject * _resultobj;
806 wxHelpProvider * _result;
807 char *_kwnames[] = { NULL };
808 char _ptemp[128];
809
810 self = self;
811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxHelpProvider_Get",_kwnames))
812 return NULL;
813{
814 PyThreadState* __tstate = wxPyBeginAllowThreads();
815 _result = (wxHelpProvider *)wxHelpProvider::Get();
816
817 wxPyEndAllowThreads(__tstate);
818 if (PyErr_Occurred()) return NULL;
819} if (_result) {
820 SWIG_MakePtr(_ptemp, (char *) _result,"_wxHelpProvider_p");
821 _resultobj = Py_BuildValue("s",_ptemp);
822 } else {
823 Py_INCREF(Py_None);
824 _resultobj = Py_None;
825 }
826 return _resultobj;
827}
828
829#define wxHelpProvider_GetHelp(_swigobj,_swigarg0) (_swigobj->GetHelp(_swigarg0))
830static PyObject *_wrap_wxHelpProvider_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
831 PyObject * _resultobj;
832 wxString * _result;
833 wxHelpProvider * _arg0;
834 wxWindow * _arg1;
835 PyObject * _argo0 = 0;
836 PyObject * _argo1 = 0;
837 char *_kwnames[] = { "self","window", NULL };
838
839 self = self;
840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHelpProvider_GetHelp",_kwnames,&_argo0,&_argo1))
841 return NULL;
842 if (_argo0) {
843 if (_argo0 == Py_None) { _arg0 = NULL; }
844 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHelpProvider_p")) {
845 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHelpProvider_GetHelp. Expected _wxHelpProvider_p.");
846 return NULL;
847 }
848 }
849 if (_argo1) {
850 if (_argo1 == Py_None) { _arg1 = NULL; }
851 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
852 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxHelpProvider_GetHelp. Expected _wxWindow_p.");
853 return NULL;
854 }
855 }
856{
857 PyThreadState* __tstate = wxPyBeginAllowThreads();
858 _result = new wxString (wxHelpProvider_GetHelp(_arg0,_arg1));
859
860 wxPyEndAllowThreads(__tstate);
861 if (PyErr_Occurred()) return NULL;
862}{
863 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
864}
865{
866 delete _result;
867}
868 return _resultobj;
869}
870
871#define wxHelpProvider_ShowHelp(_swigobj,_swigarg0) (_swigobj->ShowHelp(_swigarg0))
872static PyObject *_wrap_wxHelpProvider_ShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
873 PyObject * _resultobj;
874 bool _result;
875 wxHelpProvider * _arg0;
876 wxWindowBase * _arg1;
877 PyObject * _argo0 = 0;
878 PyObject * _argo1 = 0;
879 char *_kwnames[] = { "self","window", NULL };
880
881 self = self;
882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHelpProvider_ShowHelp",_kwnames,&_argo0,&_argo1))
883 return NULL;
884 if (_argo0) {
885 if (_argo0 == Py_None) { _arg0 = NULL; }
886 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHelpProvider_p")) {
887 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHelpProvider_ShowHelp. Expected _wxHelpProvider_p.");
888 return NULL;
889 }
890 }
891 if (_argo1) {
892 if (_argo1 == Py_None) { _arg1 = NULL; }
893 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindowBase_p")) {
894 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxHelpProvider_ShowHelp. Expected _wxWindowBase_p.");
895 return NULL;
896 }
897 }
898{
899 PyThreadState* __tstate = wxPyBeginAllowThreads();
900 _result = (bool )wxHelpProvider_ShowHelp(_arg0,_arg1);
901
902 wxPyEndAllowThreads(__tstate);
903 if (PyErr_Occurred()) return NULL;
904} _resultobj = Py_BuildValue("i",_result);
905 return _resultobj;
906}
907
908#define wxHelpProvider_AddHelp(_swigobj,_swigarg0,_swigarg1) (_swigobj->AddHelp(_swigarg0,_swigarg1))
909static PyObject *_wrap_wxHelpProvider_AddHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
910 PyObject * _resultobj;
911 wxHelpProvider * _arg0;
912 wxWindowBase * _arg1;
913 wxString * _arg2;
914 PyObject * _argo0 = 0;
915 PyObject * _argo1 = 0;
916 PyObject * _obj2 = 0;
917 char *_kwnames[] = { "self","window","text", NULL };
918
919 self = self;
920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxHelpProvider_AddHelp",_kwnames,&_argo0,&_argo1,&_obj2))
921 return NULL;
922 if (_argo0) {
923 if (_argo0 == Py_None) { _arg0 = NULL; }
924 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHelpProvider_p")) {
925 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHelpProvider_AddHelp. Expected _wxHelpProvider_p.");
926 return NULL;
927 }
928 }
929 if (_argo1) {
930 if (_argo1 == Py_None) { _arg1 = NULL; }
931 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindowBase_p")) {
932 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxHelpProvider_AddHelp. Expected _wxWindowBase_p.");
933 return NULL;
934 }
935 }
936{
937#if PYTHON_API_VERSION >= 1009
938 char* tmpPtr; int tmpSize;
939 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
940 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
941 return NULL;
942 }
943 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
944 return NULL;
945 _arg2 = new wxString(tmpPtr, tmpSize);
946#else
947 if (!PyString_Check(_obj2)) {
948 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
949 return NULL;
950 }
951 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
952#endif
953}
954{
955 PyThreadState* __tstate = wxPyBeginAllowThreads();
956 wxHelpProvider_AddHelp(_arg0,_arg1,*_arg2);
957
958 wxPyEndAllowThreads(__tstate);
959 if (PyErr_Occurred()) return NULL;
960} Py_INCREF(Py_None);
961 _resultobj = Py_None;
962{
963 if (_obj2)
964 delete _arg2;
965}
966 return _resultobj;
967}
968
969#define wxHelpProvider_AddHelpById(_swigobj,_swigarg0,_swigarg1) (_swigobj->AddHelp(_swigarg0,_swigarg1))
970static PyObject *_wrap_wxHelpProvider_AddHelpById(PyObject *self, PyObject *args, PyObject *kwargs) {
971 PyObject * _resultobj;
972 wxHelpProvider * _arg0;
973 wxWindowID _arg1;
974 wxString * _arg2;
975 PyObject * _argo0 = 0;
976 PyObject * _obj2 = 0;
977 char *_kwnames[] = { "self","id","text", NULL };
978
979 self = self;
980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxHelpProvider_AddHelpById",_kwnames,&_argo0,&_arg1,&_obj2))
981 return NULL;
982 if (_argo0) {
983 if (_argo0 == Py_None) { _arg0 = NULL; }
984 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHelpProvider_p")) {
985 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHelpProvider_AddHelpById. Expected _wxHelpProvider_p.");
986 return NULL;
987 }
988 }
989{
990#if PYTHON_API_VERSION >= 1009
991 char* tmpPtr; int tmpSize;
992 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
993 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
994 return NULL;
995 }
996 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
997 return NULL;
998 _arg2 = new wxString(tmpPtr, tmpSize);
999#else
1000 if (!PyString_Check(_obj2)) {
1001 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1002 return NULL;
1003 }
1004 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
1005#endif
1006}
1007{
1008 PyThreadState* __tstate = wxPyBeginAllowThreads();
1009 wxHelpProvider_AddHelpById(_arg0,_arg1,*_arg2);
1010
1011 wxPyEndAllowThreads(__tstate);
1012 if (PyErr_Occurred()) return NULL;
1013} Py_INCREF(Py_None);
1014 _resultobj = Py_None;
1015{
1016 if (_obj2)
1017 delete _arg2;
1018}
1019 return _resultobj;
1020}
1021
1022static void wxHelpProvider_Destroy(wxHelpProvider *self) { delete self; }
1023static PyObject *_wrap_wxHelpProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
1024 PyObject * _resultobj;
1025 wxHelpProvider * _arg0;
1026 PyObject * _argo0 = 0;
1027 char *_kwnames[] = { "self", NULL };
1028
1029 self = self;
1030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHelpProvider_Destroy",_kwnames,&_argo0))
1031 return NULL;
1032 if (_argo0) {
1033 if (_argo0 == Py_None) { _arg0 = NULL; }
1034 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHelpProvider_p")) {
1035 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHelpProvider_Destroy. Expected _wxHelpProvider_p.");
1036 return NULL;
1037 }
1038 }
1039{
1040 PyThreadState* __tstate = wxPyBeginAllowThreads();
1041 wxHelpProvider_Destroy(_arg0);
1042
1043 wxPyEndAllowThreads(__tstate);
1044 if (PyErr_Occurred()) return NULL;
1045} Py_INCREF(Py_None);
1046 _resultobj = Py_None;
1047 return _resultobj;
1048}
1049
1050static void *SwigwxSimpleHelpProviderTowxHelpProvider(void *ptr) {
1051 wxSimpleHelpProvider *src;
1052 wxHelpProvider *dest;
1053 src = (wxSimpleHelpProvider *) ptr;
1054 dest = (wxHelpProvider *) src;
1055 return (void *) dest;
1056}
1057
1058#define new_wxSimpleHelpProvider() (new wxSimpleHelpProvider())
1059static PyObject *_wrap_new_wxSimpleHelpProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
1060 PyObject * _resultobj;
1061 wxSimpleHelpProvider * _result;
1062 char *_kwnames[] = { NULL };
1063 char _ptemp[128];
1064
1065 self = self;
1066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxSimpleHelpProvider",_kwnames))
1067 return NULL;
1068{
1069 PyThreadState* __tstate = wxPyBeginAllowThreads();
1070 _result = (wxSimpleHelpProvider *)new_wxSimpleHelpProvider();
1071
1072 wxPyEndAllowThreads(__tstate);
1073 if (PyErr_Occurred()) return NULL;
1074} if (_result) {
1075 SWIG_MakePtr(_ptemp, (char *) _result,"_wxSimpleHelpProvider_p");
1076 _resultobj = Py_BuildValue("s",_ptemp);
1077 } else {
1078 Py_INCREF(Py_None);
1079 _resultobj = Py_None;
1080 }
1081 return _resultobj;
1082}
1083
1084static PyMethodDef helpcMethods[] = {
1085 { "new_wxSimpleHelpProvider", (PyCFunction) _wrap_new_wxSimpleHelpProvider, METH_VARARGS | METH_KEYWORDS },
1086 { "wxHelpProvider_Destroy", (PyCFunction) _wrap_wxHelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS },
1087 { "wxHelpProvider_AddHelpById", (PyCFunction) _wrap_wxHelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS },
1088 { "wxHelpProvider_AddHelp", (PyCFunction) _wrap_wxHelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS },
1089 { "wxHelpProvider_ShowHelp", (PyCFunction) _wrap_wxHelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS },
1090 { "wxHelpProvider_GetHelp", (PyCFunction) _wrap_wxHelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS },
1091 { "wxHelpProvider_Get", (PyCFunction) _wrap_wxHelpProvider_Get, METH_VARARGS | METH_KEYWORDS },
1092 { "wxHelpProvider_Set", (PyCFunction) _wrap_wxHelpProvider_Set, METH_VARARGS | METH_KEYWORDS },
1093 { "new_wxContextHelpButton", (PyCFunction) _wrap_new_wxContextHelpButton, METH_VARARGS | METH_KEYWORDS },
1094 { "wxContextHelp_EndContextHelp", (PyCFunction) _wrap_wxContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS },
1095 { "wxContextHelp_BeginContextHelp", (PyCFunction) _wrap_wxContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS },
1096 { "delete_wxContextHelp", (PyCFunction) _wrap_delete_wxContextHelp, METH_VARARGS | METH_KEYWORDS },
1097 { "new_wxContextHelp", (PyCFunction) _wrap_new_wxContextHelp, METH_VARARGS | METH_KEYWORDS },
1098 { "wxContextMenuEvent_SetPosition", (PyCFunction) _wrap_wxContextMenuEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
1099 { "wxContextMenuEvent_GetPosition", (PyCFunction) _wrap_wxContextMenuEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
1100 { "new_wxContextMenuEvent", (PyCFunction) _wrap_new_wxContextMenuEvent, METH_VARARGS | METH_KEYWORDS },
1101 { "wxHelpEvent_SetTarget", (PyCFunction) _wrap_wxHelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS },
1102 { "wxHelpEvent_GetTarget", (PyCFunction) _wrap_wxHelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS },
1103 { "wxHelpEvent_SetLink", (PyCFunction) _wrap_wxHelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS },
1104 { "wxHelpEvent_GetLink", (PyCFunction) _wrap_wxHelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS },
1105 { "wxHelpEvent_SetPosition", (PyCFunction) _wrap_wxHelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
1106 { "wxHelpEvent_GetPosition", (PyCFunction) _wrap_wxHelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
1107 { "new_wxHelpEvent", (PyCFunction) _wrap_new_wxHelpEvent, METH_VARARGS | METH_KEYWORDS },
1108 { NULL, NULL }
1109};
1110#ifdef __cplusplus
1111}
1112#endif
1113/*
1114 * This table is used by the pointer type-checker
1115 */
1116static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
1117 { "_wxEvent","_wxContextMenuEvent",SwigwxContextMenuEventTowxEvent},
1118 { "_wxEvent","_wxHelpEvent",SwigwxHelpEventTowxEvent},
1119 { "_signed_long","_long",0},
1120 { "_wxPrintQuality","_wxCoord",0},
1121 { "_wxPrintQuality","_int",0},
1122 { "_wxPrintQuality","_signed_int",0},
1123 { "_wxPrintQuality","_unsigned_int",0},
1124 { "_wxPrintQuality","_wxWindowID",0},
1125 { "_wxPrintQuality","_uint",0},
1126 { "_wxPrintQuality","_EBool",0},
1127 { "_wxPrintQuality","_size_t",0},
1128 { "_wxPrintQuality","_time_t",0},
1129 { "_byte","_unsigned_char",0},
1130 { "_long","_unsigned_long",0},
1131 { "_long","_signed_long",0},
1132 { "_wxBitmapButton","_wxContextHelpButton",SwigwxContextHelpButtonTowxBitmapButton},
1133 { "_size_t","_wxCoord",0},
1134 { "_size_t","_wxPrintQuality",0},
1135 { "_size_t","_time_t",0},
1136 { "_size_t","_unsigned_int",0},
1137 { "_size_t","_int",0},
1138 { "_size_t","_wxWindowID",0},
1139 { "_size_t","_uint",0},
1140 { "_uint","_wxCoord",0},
1141 { "_uint","_wxPrintQuality",0},
1142 { "_uint","_time_t",0},
1143 { "_uint","_size_t",0},
1144 { "_uint","_unsigned_int",0},
1145 { "_uint","_int",0},
1146 { "_uint","_wxWindowID",0},
1147 { "_wxChar","_char",0},
1148 { "_wxCommandEvent","_wxContextMenuEvent",SwigwxContextMenuEventTowxCommandEvent},
1149 { "_wxCommandEvent","_wxHelpEvent",SwigwxHelpEventTowxCommandEvent},
1150 { "_char","_wxChar",0},
1151 { "_wxHelpProvider","_wxSimpleHelpProvider",SwigwxSimpleHelpProviderTowxHelpProvider},
1152 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
1153 { "_EBool","_wxCoord",0},
1154 { "_EBool","_wxPrintQuality",0},
1155 { "_EBool","_signed_int",0},
1156 { "_EBool","_int",0},
1157 { "_EBool","_wxWindowID",0},
1158 { "_unsigned_long","_long",0},
1159 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
1160 { "_signed_int","_wxCoord",0},
1161 { "_signed_int","_wxPrintQuality",0},
1162 { "_signed_int","_EBool",0},
1163 { "_signed_int","_wxWindowID",0},
1164 { "_signed_int","_int",0},
1165 { "_WXTYPE","_short",0},
1166 { "_WXTYPE","_signed_short",0},
1167 { "_WXTYPE","_unsigned_short",0},
1168 { "_unsigned_short","_WXTYPE",0},
1169 { "_unsigned_short","_short",0},
1170 { "_wxObject","_wxContextHelpButton",SwigwxContextHelpButtonTowxObject},
1171 { "_wxObject","_wxContextHelp",SwigwxContextHelpTowxObject},
1172 { "_wxObject","_wxContextMenuEvent",SwigwxContextMenuEventTowxObject},
1173 { "_wxObject","_wxHelpEvent",SwigwxHelpEventTowxObject},
1174 { "_signed_short","_WXTYPE",0},
1175 { "_signed_short","_short",0},
1176 { "_unsigned_char","_byte",0},
1177 { "_wxControl","_wxContextHelpButton",SwigwxContextHelpButtonTowxControl},
1178 { "_unsigned_int","_wxCoord",0},
1179 { "_unsigned_int","_wxPrintQuality",0},
1180 { "_unsigned_int","_time_t",0},
1181 { "_unsigned_int","_size_t",0},
1182 { "_unsigned_int","_uint",0},
1183 { "_unsigned_int","_wxWindowID",0},
1184 { "_unsigned_int","_int",0},
1185 { "_short","_WXTYPE",0},
1186 { "_short","_unsigned_short",0},
1187 { "_short","_signed_short",0},
1188 { "_wxWindowID","_wxCoord",0},
1189 { "_wxWindowID","_wxPrintQuality",0},
1190 { "_wxWindowID","_time_t",0},
1191 { "_wxWindowID","_size_t",0},
1192 { "_wxWindowID","_EBool",0},
1193 { "_wxWindowID","_uint",0},
1194 { "_wxWindowID","_int",0},
1195 { "_wxWindowID","_signed_int",0},
1196 { "_wxWindowID","_unsigned_int",0},
1197 { "_int","_wxCoord",0},
1198 { "_int","_wxPrintQuality",0},
1199 { "_int","_time_t",0},
1200 { "_int","_size_t",0},
1201 { "_int","_EBool",0},
1202 { "_int","_uint",0},
1203 { "_int","_wxWindowID",0},
1204 { "_int","_unsigned_int",0},
1205 { "_int","_signed_int",0},
1206 { "_time_t","_wxCoord",0},
1207 { "_time_t","_wxPrintQuality",0},
1208 { "_time_t","_unsigned_int",0},
1209 { "_time_t","_int",0},
1210 { "_time_t","_wxWindowID",0},
1211 { "_time_t","_uint",0},
1212 { "_time_t","_size_t",0},
1213 { "_wxButton","_wxContextHelpButton",SwigwxContextHelpButtonTowxButton},
1214 { "_wxCoord","_int",0},
1215 { "_wxCoord","_signed_int",0},
1216 { "_wxCoord","_unsigned_int",0},
1217 { "_wxCoord","_wxWindowID",0},
1218 { "_wxCoord","_uint",0},
1219 { "_wxCoord","_EBool",0},
1220 { "_wxCoord","_size_t",0},
1221 { "_wxCoord","_time_t",0},
1222 { "_wxCoord","_wxPrintQuality",0},
1223 { "_wxEvtHandler","_wxContextHelpButton",SwigwxContextHelpButtonTowxEvtHandler},
1224 { "_wxWindow","_wxContextHelpButton",SwigwxContextHelpButtonTowxWindow},
1225{0,0,0}};
1226
1227static PyObject *SWIG_globals;
1228#ifdef __cplusplus
1229extern "C"
1230#endif
1231SWIGEXPORT(void) inithelpc() {
1232 PyObject *m, *d;
1233 SWIG_globals = SWIG_newvarlink();
1234 m = Py_InitModule("helpc", helpcMethods);
1235 d = PyModule_GetDict(m);
1236 PyDict_SetItemString(d,"wxFRAME_EX_CONTEXTHELP", PyInt_FromLong((long) wxFRAME_EX_CONTEXTHELP));
1237 PyDict_SetItemString(d,"wxDIALOG_EX_CONTEXTHELP", PyInt_FromLong((long) wxDIALOG_EX_CONTEXTHELP));
1238 PyDict_SetItemString(d,"wxID_CONTEXT_HELP", PyInt_FromLong((long) wxID_CONTEXT_HELP));
1239 PyDict_SetItemString(d,"wxEVT_HELP", PyInt_FromLong((long) wxEVT_HELP));
1240 PyDict_SetItemString(d,"wxEVT_DETAILED_HELP", PyInt_FromLong((long) wxEVT_DETAILED_HELP));
1241 PyDict_SetItemString(d,"wxEVT_CONTEXT_MENU", PyInt_FromLong((long) wxEVT_CONTEXT_MENU));
1242{
1243 int i;
1244 for (i = 0; _swig_mapping[i].n1; i++)
1245 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
1246}
1247}