2 * FILE : src/msw/help.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
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.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
49 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
50 extern PyObject
*SWIG_newvarlink(void);
54 #define SWIG_init inithelpc
56 #define SWIG_name "helpc"
59 #include <wx/cshelp.h>
62 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
68 } else if (target
== Py_None
) {
72 if (!PyTuple_Check(target
)) {
74 target
= PyTuple_New(1);
75 PyTuple_SetItem(target
, 0, o2
);
78 PyTuple_SetItem(o3
, 0, o
);
81 target
= PySequence_Concat(o2
, o3
);
90 static void *SwigwxHelpEventTowxCommandEvent(void *ptr
) {
93 src
= (wxHelpEvent
*) ptr
;
94 dest
= (wxCommandEvent
*) src
;
98 static void *SwigwxHelpEventTowxEvent(void *ptr
) {
101 src
= (wxHelpEvent
*) ptr
;
102 dest
= (wxEvent
*) src
;
103 return (void *) dest
;
106 static void *SwigwxHelpEventTowxObject(void *ptr
) {
109 src
= (wxHelpEvent
*) ptr
;
110 dest
= (wxObject
*) src
;
111 return (void *) dest
;
114 #define new_wxHelpEvent(_swigarg0,_swigarg1,_swigarg2) (new wxHelpEvent(_swigarg0,_swigarg1,_swigarg2))
115 static PyObject
*_wrap_new_wxHelpEvent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
116 PyObject
* _resultobj
;
117 wxHelpEvent
* _result
;
118 wxEventType _arg0
= (wxEventType
) wxEVT_NULL
;
119 wxWindowID _arg1
= (wxWindowID
) 0;
120 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
122 PyObject
* _obj2
= 0;
123 char *_kwnames
[] = { "type","id","pt", NULL
};
127 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|iiO:new_wxHelpEvent",_kwnames
,&_arg0
,&_arg1
,&_obj2
))
132 if (! wxPoint_helper(_obj2
, &_arg2
))
136 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
137 _result
= (wxHelpEvent
*)new_wxHelpEvent(_arg0
,_arg1
,*_arg2
);
139 wxPyEndAllowThreads(__tstate
);
140 if (PyErr_Occurred()) return NULL
;
142 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxHelpEvent_p");
143 _resultobj
= Py_BuildValue("s",_ptemp
);
146 _resultobj
= Py_None
;
151 #define wxHelpEvent_GetPosition(_swigobj) (_swigobj->GetPosition())
152 static PyObject
*_wrap_wxHelpEvent_GetPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
153 PyObject
* _resultobj
;
156 PyObject
* _argo0
= 0;
157 char *_kwnames
[] = { "self", NULL
};
161 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxHelpEvent_GetPosition",_kwnames
,&_argo0
))
164 if (_argo0
== Py_None
) { _arg0
= NULL
; }
165 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxHelpEvent_p")) {
166 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxHelpEvent_GetPosition. Expected _wxHelpEvent_p.");
171 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
172 const wxPoint
& _result_ref
= wxHelpEvent_GetPosition(_arg0
);
173 _result
= (wxPoint
*) &_result_ref
;
175 wxPyEndAllowThreads(__tstate
);
176 if (PyErr_Occurred()) return NULL
;
178 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPoint_p");
179 _resultobj
= Py_BuildValue("s",_ptemp
);
182 _resultobj
= Py_None
;
187 #define wxHelpEvent_SetPosition(_swigobj,_swigarg0) (_swigobj->SetPosition(_swigarg0))
188 static PyObject
*_wrap_wxHelpEvent_SetPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
189 PyObject
* _resultobj
;
192 PyObject
* _argo0
= 0;
194 PyObject
* _obj1
= 0;
195 char *_kwnames
[] = { "self","pos", NULL
};
198 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxHelpEvent_SetPosition",_kwnames
,&_argo0
,&_obj1
))
201 if (_argo0
== Py_None
) { _arg0
= NULL
; }
202 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxHelpEvent_p")) {
203 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxHelpEvent_SetPosition. Expected _wxHelpEvent_p.");
209 if (! wxPoint_helper(_obj1
, &_arg1
))
213 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
214 wxHelpEvent_SetPosition(_arg0
,*_arg1
);
216 wxPyEndAllowThreads(__tstate
);
217 if (PyErr_Occurred()) return NULL
;
218 } Py_INCREF(Py_None
);
219 _resultobj
= Py_None
;
223 #define wxHelpEvent_GetLink(_swigobj) (_swigobj->GetLink())
224 static PyObject
*_wrap_wxHelpEvent_GetLink(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
225 PyObject
* _resultobj
;
228 PyObject
* _argo0
= 0;
229 char *_kwnames
[] = { "self", NULL
};
232 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxHelpEvent_GetLink",_kwnames
,&_argo0
))
235 if (_argo0
== Py_None
) { _arg0
= NULL
; }
236 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxHelpEvent_p")) {
237 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxHelpEvent_GetLink. Expected _wxHelpEvent_p.");
242 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
243 const wxString
& _result_ref
= wxHelpEvent_GetLink(_arg0
);
244 _result
= (wxString
*) &_result_ref
;
246 wxPyEndAllowThreads(__tstate
);
247 if (PyErr_Occurred()) return NULL
;
250 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
252 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
258 #define wxHelpEvent_SetLink(_swigobj,_swigarg0) (_swigobj->SetLink(_swigarg0))
259 static PyObject
*_wrap_wxHelpEvent_SetLink(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
260 PyObject
* _resultobj
;
263 PyObject
* _argo0
= 0;
264 PyObject
* _obj1
= 0;
265 char *_kwnames
[] = { "self","link", NULL
};
268 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxHelpEvent_SetLink",_kwnames
,&_argo0
,&_obj1
))
271 if (_argo0
== Py_None
) { _arg0
= NULL
; }
272 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxHelpEvent_p")) {
273 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxHelpEvent_SetLink. Expected _wxHelpEvent_p.");
278 _arg1
= wxString_in_helper(_obj1
);
283 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
284 wxHelpEvent_SetLink(_arg0
,*_arg1
);
286 wxPyEndAllowThreads(__tstate
);
287 if (PyErr_Occurred()) return NULL
;
288 } Py_INCREF(Py_None
);
289 _resultobj
= Py_None
;
297 #define wxHelpEvent_GetTarget(_swigobj) (_swigobj->GetTarget())
298 static PyObject
*_wrap_wxHelpEvent_GetTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
299 PyObject
* _resultobj
;
302 PyObject
* _argo0
= 0;
303 char *_kwnames
[] = { "self", NULL
};
306 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxHelpEvent_GetTarget",_kwnames
,&_argo0
))
309 if (_argo0
== Py_None
) { _arg0
= NULL
; }
310 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxHelpEvent_p")) {
311 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxHelpEvent_GetTarget. Expected _wxHelpEvent_p.");
316 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
317 const wxString
& _result_ref
= wxHelpEvent_GetTarget(_arg0
);
318 _result
= (wxString
*) &_result_ref
;
320 wxPyEndAllowThreads(__tstate
);
321 if (PyErr_Occurred()) return NULL
;
324 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
326 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
332 #define wxHelpEvent_SetTarget(_swigobj,_swigarg0) (_swigobj->SetTarget(_swigarg0))
333 static PyObject
*_wrap_wxHelpEvent_SetTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
334 PyObject
* _resultobj
;
337 PyObject
* _argo0
= 0;
338 PyObject
* _obj1
= 0;
339 char *_kwnames
[] = { "self","target", NULL
};
342 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxHelpEvent_SetTarget",_kwnames
,&_argo0
,&_obj1
))
345 if (_argo0
== Py_None
) { _arg0
= NULL
; }
346 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxHelpEvent_p")) {
347 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxHelpEvent_SetTarget. Expected _wxHelpEvent_p.");
352 _arg1
= wxString_in_helper(_obj1
);
357 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
358 wxHelpEvent_SetTarget(_arg0
,*_arg1
);
360 wxPyEndAllowThreads(__tstate
);
361 if (PyErr_Occurred()) return NULL
;
362 } Py_INCREF(Py_None
);
363 _resultobj
= Py_None
;
371 static void *SwigwxContextHelpTowxObject(void *ptr
) {
374 src
= (wxContextHelp
*) ptr
;
375 dest
= (wxObject
*) src
;
376 return (void *) dest
;
379 #define new_wxContextHelp(_swigarg0,_swigarg1) (new wxContextHelp(_swigarg0,_swigarg1))
380 static PyObject
*_wrap_new_wxContextHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
381 PyObject
* _resultobj
;
382 wxContextHelp
* _result
;
383 wxWindow
* _arg0
= (wxWindow
*) NULL
;
384 bool _arg1
= (bool ) TRUE
;
385 PyObject
* _argo0
= 0;
386 int tempbool1
= (int) TRUE
;
387 char *_kwnames
[] = { "window","doNow", NULL
};
391 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|Oi:new_wxContextHelp",_kwnames
,&_argo0
,&tempbool1
))
394 if (_argo0
== Py_None
) { _arg0
= NULL
; }
395 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
396 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxContextHelp. Expected _wxWindow_p.");
400 _arg1
= (bool ) tempbool1
;
402 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
403 _result
= (wxContextHelp
*)new_wxContextHelp(_arg0
,_arg1
);
405 wxPyEndAllowThreads(__tstate
);
406 if (PyErr_Occurred()) return NULL
;
408 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxContextHelp_p");
409 _resultobj
= Py_BuildValue("s",_ptemp
);
412 _resultobj
= Py_None
;
417 #define delete_wxContextHelp(_swigobj) (delete _swigobj)
418 static PyObject
*_wrap_delete_wxContextHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
419 PyObject
* _resultobj
;
420 wxContextHelp
* _arg0
;
421 PyObject
* _argo0
= 0;
422 char *_kwnames
[] = { "self", NULL
};
425 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxContextHelp",_kwnames
,&_argo0
))
428 if (_argo0
== Py_None
) { _arg0
= NULL
; }
429 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxContextHelp_p")) {
430 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxContextHelp. Expected _wxContextHelp_p.");
435 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
436 delete_wxContextHelp(_arg0
);
438 wxPyEndAllowThreads(__tstate
);
439 if (PyErr_Occurred()) return NULL
;
440 } Py_INCREF(Py_None
);
441 _resultobj
= Py_None
;
445 #define wxContextHelp_BeginContextHelp(_swigobj,_swigarg0) (_swigobj->BeginContextHelp(_swigarg0))
446 static PyObject
*_wrap_wxContextHelp_BeginContextHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
447 PyObject
* _resultobj
;
449 wxContextHelp
* _arg0
;
450 wxWindow
* _arg1
= (wxWindow
*) NULL
;
451 PyObject
* _argo0
= 0;
452 PyObject
* _argo1
= 0;
453 char *_kwnames
[] = { "self","window", NULL
};
456 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxContextHelp_BeginContextHelp",_kwnames
,&_argo0
,&_argo1
))
459 if (_argo0
== Py_None
) { _arg0
= NULL
; }
460 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxContextHelp_p")) {
461 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxContextHelp_BeginContextHelp. Expected _wxContextHelp_p.");
466 if (_argo1
== Py_None
) { _arg1
= NULL
; }
467 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
468 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxContextHelp_BeginContextHelp. Expected _wxWindow_p.");
473 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
474 _result
= (bool )wxContextHelp_BeginContextHelp(_arg0
,_arg1
);
476 wxPyEndAllowThreads(__tstate
);
477 if (PyErr_Occurred()) return NULL
;
478 } _resultobj
= Py_BuildValue("i",_result
);
482 #define wxContextHelp_EndContextHelp(_swigobj) (_swigobj->EndContextHelp())
483 static PyObject
*_wrap_wxContextHelp_EndContextHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
484 PyObject
* _resultobj
;
486 wxContextHelp
* _arg0
;
487 PyObject
* _argo0
= 0;
488 char *_kwnames
[] = { "self", NULL
};
491 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxContextHelp_EndContextHelp",_kwnames
,&_argo0
))
494 if (_argo0
== Py_None
) { _arg0
= NULL
; }
495 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxContextHelp_p")) {
496 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxContextHelp_EndContextHelp. Expected _wxContextHelp_p.");
501 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
502 _result
= (bool )wxContextHelp_EndContextHelp(_arg0
);
504 wxPyEndAllowThreads(__tstate
);
505 if (PyErr_Occurred()) return NULL
;
506 } _resultobj
= Py_BuildValue("i",_result
);
510 static void *SwigwxContextHelpButtonTowxBitmapButton(void *ptr
) {
511 wxContextHelpButton
*src
;
512 wxBitmapButton
*dest
;
513 src
= (wxContextHelpButton
*) ptr
;
514 dest
= (wxBitmapButton
*) src
;
515 return (void *) dest
;
518 static void *SwigwxContextHelpButtonTowxButton(void *ptr
) {
519 wxContextHelpButton
*src
;
521 src
= (wxContextHelpButton
*) ptr
;
522 dest
= (wxButton
*) src
;
523 return (void *) dest
;
526 static void *SwigwxContextHelpButtonTowxControl(void *ptr
) {
527 wxContextHelpButton
*src
;
529 src
= (wxContextHelpButton
*) ptr
;
530 dest
= (wxControl
*) src
;
531 return (void *) dest
;
534 static void *SwigwxContextHelpButtonTowxWindow(void *ptr
) {
535 wxContextHelpButton
*src
;
537 src
= (wxContextHelpButton
*) ptr
;
538 dest
= (wxWindow
*) src
;
539 return (void *) dest
;
542 static void *SwigwxContextHelpButtonTowxEvtHandler(void *ptr
) {
543 wxContextHelpButton
*src
;
545 src
= (wxContextHelpButton
*) ptr
;
546 dest
= (wxEvtHandler
*) src
;
547 return (void *) dest
;
550 static void *SwigwxContextHelpButtonTowxObject(void *ptr
) {
551 wxContextHelpButton
*src
;
553 src
= (wxContextHelpButton
*) ptr
;
554 dest
= (wxObject
*) src
;
555 return (void *) dest
;
558 #define new_wxContextHelpButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxContextHelpButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
559 static PyObject
*_wrap_new_wxContextHelpButton(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
560 PyObject
* _resultobj
;
561 wxContextHelpButton
* _result
;
563 wxWindowID _arg1
= (wxWindowID
) (wxID_CONTEXT_HELP
);
564 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
565 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
566 long _arg4
= (long ) wxBU_AUTODRAW
;
567 PyObject
* _argo0
= 0;
569 PyObject
* _obj2
= 0;
571 PyObject
* _obj3
= 0;
572 char *_kwnames
[] = { "parent","id","pos","size","style", NULL
};
576 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iOOl:new_wxContextHelpButton",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
))
579 if (_argo0
== Py_None
) { _arg0
= NULL
; }
580 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
581 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxContextHelpButton. Expected _wxWindow_p.");
588 if (! wxPoint_helper(_obj2
, &_arg2
))
594 if (! wxSize_helper(_obj3
, &_arg3
))
598 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
599 _result
= (wxContextHelpButton
*)new_wxContextHelpButton(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
);
601 wxPyEndAllowThreads(__tstate
);
602 if (PyErr_Occurred()) return NULL
;
604 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxContextHelpButton_p");
605 _resultobj
= Py_BuildValue("s",_ptemp
);
608 _resultobj
= Py_None
;
613 static PyObject
*_wrap_wxHelpProvider_Set(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
614 PyObject
* _resultobj
;
615 wxHelpProvider
* _result
;
616 wxHelpProvider
* _arg0
;
617 PyObject
* _argo0
= 0;
618 char *_kwnames
[] = { "helpProvider", NULL
};
622 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxHelpProvider_Set",_kwnames
,&_argo0
))
625 if (_argo0
== Py_None
) { _arg0
= NULL
; }
626 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxHelpProvider_p")) {
627 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxHelpProvider_Set. Expected _wxHelpProvider_p.");
632 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
633 _result
= (wxHelpProvider
*)wxHelpProvider::Set(_arg0
);
635 wxPyEndAllowThreads(__tstate
);
636 if (PyErr_Occurred()) return NULL
;
638 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxHelpProvider_p");
639 _resultobj
= Py_BuildValue("s",_ptemp
);
642 _resultobj
= Py_None
;
647 static PyObject
*_wrap_wxHelpProvider_Get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
648 PyObject
* _resultobj
;
649 wxHelpProvider
* _result
;
650 char *_kwnames
[] = { NULL
};
654 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxHelpProvider_Get",_kwnames
))
657 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
658 _result
= (wxHelpProvider
*)wxHelpProvider::Get();
660 wxPyEndAllowThreads(__tstate
);
661 if (PyErr_Occurred()) return NULL
;
663 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxHelpProvider_p");
664 _resultobj
= Py_BuildValue("s",_ptemp
);
667 _resultobj
= Py_None
;
672 #define wxHelpProvider_GetHelp(_swigobj,_swigarg0) (_swigobj->GetHelp(_swigarg0))
673 static PyObject
*_wrap_wxHelpProvider_GetHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
674 PyObject
* _resultobj
;
676 wxHelpProvider
* _arg0
;
678 PyObject
* _argo0
= 0;
679 PyObject
* _argo1
= 0;
680 char *_kwnames
[] = { "self","window", NULL
};
683 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxHelpProvider_GetHelp",_kwnames
,&_argo0
,&_argo1
))
686 if (_argo0
== Py_None
) { _arg0
= NULL
; }
687 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxHelpProvider_p")) {
688 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxHelpProvider_GetHelp. Expected _wxHelpProvider_p.");
693 if (_argo1
== Py_None
) { _arg1
= NULL
; }
694 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
695 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxHelpProvider_GetHelp. Expected _wxWindow_p.");
700 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
701 _result
= new wxString (wxHelpProvider_GetHelp(_arg0
,_arg1
));
703 wxPyEndAllowThreads(__tstate
);
704 if (PyErr_Occurred()) return NULL
;
707 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
709 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
718 #define wxHelpProvider_ShowHelp(_swigobj,_swigarg0) (_swigobj->ShowHelp(_swigarg0))
719 static PyObject
*_wrap_wxHelpProvider_ShowHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
720 PyObject
* _resultobj
;
722 wxHelpProvider
* _arg0
;
723 wxWindowBase
* _arg1
;
724 PyObject
* _argo0
= 0;
725 PyObject
* _argo1
= 0;
726 char *_kwnames
[] = { "self","window", NULL
};
729 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxHelpProvider_ShowHelp",_kwnames
,&_argo0
,&_argo1
))
732 if (_argo0
== Py_None
) { _arg0
= NULL
; }
733 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxHelpProvider_p")) {
734 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxHelpProvider_ShowHelp. Expected _wxHelpProvider_p.");
739 if (_argo1
== Py_None
) { _arg1
= NULL
; }
740 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindowBase_p")) {
741 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxHelpProvider_ShowHelp. Expected _wxWindowBase_p.");
746 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
747 _result
= (bool )wxHelpProvider_ShowHelp(_arg0
,_arg1
);
749 wxPyEndAllowThreads(__tstate
);
750 if (PyErr_Occurred()) return NULL
;
751 } _resultobj
= Py_BuildValue("i",_result
);
755 #define wxHelpProvider_AddHelp(_swigobj,_swigarg0,_swigarg1) (_swigobj->AddHelp(_swigarg0,_swigarg1))
756 static PyObject
*_wrap_wxHelpProvider_AddHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
757 PyObject
* _resultobj
;
758 wxHelpProvider
* _arg0
;
759 wxWindowBase
* _arg1
;
761 PyObject
* _argo0
= 0;
762 PyObject
* _argo1
= 0;
763 PyObject
* _obj2
= 0;
764 char *_kwnames
[] = { "self","window","text", NULL
};
767 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxHelpProvider_AddHelp",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
770 if (_argo0
== Py_None
) { _arg0
= NULL
; }
771 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxHelpProvider_p")) {
772 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxHelpProvider_AddHelp. Expected _wxHelpProvider_p.");
777 if (_argo1
== Py_None
) { _arg1
= NULL
; }
778 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindowBase_p")) {
779 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxHelpProvider_AddHelp. Expected _wxWindowBase_p.");
784 _arg2
= wxString_in_helper(_obj2
);
789 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
790 wxHelpProvider_AddHelp(_arg0
,_arg1
,*_arg2
);
792 wxPyEndAllowThreads(__tstate
);
793 if (PyErr_Occurred()) return NULL
;
794 } Py_INCREF(Py_None
);
795 _resultobj
= Py_None
;
803 #define wxHelpProvider_AddHelpById(_swigobj,_swigarg0,_swigarg1) (_swigobj->AddHelp(_swigarg0,_swigarg1))
804 static PyObject
*_wrap_wxHelpProvider_AddHelpById(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
805 PyObject
* _resultobj
;
806 wxHelpProvider
* _arg0
;
809 PyObject
* _argo0
= 0;
810 PyObject
* _obj2
= 0;
811 char *_kwnames
[] = { "self","id","text", NULL
};
814 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxHelpProvider_AddHelpById",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
817 if (_argo0
== Py_None
) { _arg0
= NULL
; }
818 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxHelpProvider_p")) {
819 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxHelpProvider_AddHelpById. Expected _wxHelpProvider_p.");
824 _arg2
= wxString_in_helper(_obj2
);
829 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
830 wxHelpProvider_AddHelpById(_arg0
,_arg1
,*_arg2
);
832 wxPyEndAllowThreads(__tstate
);
833 if (PyErr_Occurred()) return NULL
;
834 } Py_INCREF(Py_None
);
835 _resultobj
= Py_None
;
843 static void wxHelpProvider_Destroy(wxHelpProvider
*self
) { delete self
; }
844 static PyObject
*_wrap_wxHelpProvider_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
845 PyObject
* _resultobj
;
846 wxHelpProvider
* _arg0
;
847 PyObject
* _argo0
= 0;
848 char *_kwnames
[] = { "self", NULL
};
851 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxHelpProvider_Destroy",_kwnames
,&_argo0
))
854 if (_argo0
== Py_None
) { _arg0
= NULL
; }
855 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxHelpProvider_p")) {
856 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxHelpProvider_Destroy. Expected _wxHelpProvider_p.");
861 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
862 wxHelpProvider_Destroy(_arg0
);
864 wxPyEndAllowThreads(__tstate
);
865 if (PyErr_Occurred()) return NULL
;
866 } Py_INCREF(Py_None
);
867 _resultobj
= Py_None
;
871 static void *SwigwxSimpleHelpProviderTowxHelpProvider(void *ptr
) {
872 wxSimpleHelpProvider
*src
;
873 wxHelpProvider
*dest
;
874 src
= (wxSimpleHelpProvider
*) ptr
;
875 dest
= (wxHelpProvider
*) src
;
876 return (void *) dest
;
879 #define new_wxSimpleHelpProvider() (new wxSimpleHelpProvider())
880 static PyObject
*_wrap_new_wxSimpleHelpProvider(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
881 PyObject
* _resultobj
;
882 wxSimpleHelpProvider
* _result
;
883 char *_kwnames
[] = { NULL
};
887 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxSimpleHelpProvider",_kwnames
))
890 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
891 _result
= (wxSimpleHelpProvider
*)new_wxSimpleHelpProvider();
893 wxPyEndAllowThreads(__tstate
);
894 if (PyErr_Occurred()) return NULL
;
896 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxSimpleHelpProvider_p");
897 _resultobj
= Py_BuildValue("s",_ptemp
);
900 _resultobj
= Py_None
;
905 static PyMethodDef helpcMethods
[] = {
906 { "new_wxSimpleHelpProvider", (PyCFunction
) _wrap_new_wxSimpleHelpProvider
, METH_VARARGS
| METH_KEYWORDS
},
907 { "wxHelpProvider_Destroy", (PyCFunction
) _wrap_wxHelpProvider_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
908 { "wxHelpProvider_AddHelpById", (PyCFunction
) _wrap_wxHelpProvider_AddHelpById
, METH_VARARGS
| METH_KEYWORDS
},
909 { "wxHelpProvider_AddHelp", (PyCFunction
) _wrap_wxHelpProvider_AddHelp
, METH_VARARGS
| METH_KEYWORDS
},
910 { "wxHelpProvider_ShowHelp", (PyCFunction
) _wrap_wxHelpProvider_ShowHelp
, METH_VARARGS
| METH_KEYWORDS
},
911 { "wxHelpProvider_GetHelp", (PyCFunction
) _wrap_wxHelpProvider_GetHelp
, METH_VARARGS
| METH_KEYWORDS
},
912 { "wxHelpProvider_Get", (PyCFunction
) _wrap_wxHelpProvider_Get
, METH_VARARGS
| METH_KEYWORDS
},
913 { "wxHelpProvider_Set", (PyCFunction
) _wrap_wxHelpProvider_Set
, METH_VARARGS
| METH_KEYWORDS
},
914 { "new_wxContextHelpButton", (PyCFunction
) _wrap_new_wxContextHelpButton
, METH_VARARGS
| METH_KEYWORDS
},
915 { "wxContextHelp_EndContextHelp", (PyCFunction
) _wrap_wxContextHelp_EndContextHelp
, METH_VARARGS
| METH_KEYWORDS
},
916 { "wxContextHelp_BeginContextHelp", (PyCFunction
) _wrap_wxContextHelp_BeginContextHelp
, METH_VARARGS
| METH_KEYWORDS
},
917 { "delete_wxContextHelp", (PyCFunction
) _wrap_delete_wxContextHelp
, METH_VARARGS
| METH_KEYWORDS
},
918 { "new_wxContextHelp", (PyCFunction
) _wrap_new_wxContextHelp
, METH_VARARGS
| METH_KEYWORDS
},
919 { "wxHelpEvent_SetTarget", (PyCFunction
) _wrap_wxHelpEvent_SetTarget
, METH_VARARGS
| METH_KEYWORDS
},
920 { "wxHelpEvent_GetTarget", (PyCFunction
) _wrap_wxHelpEvent_GetTarget
, METH_VARARGS
| METH_KEYWORDS
},
921 { "wxHelpEvent_SetLink", (PyCFunction
) _wrap_wxHelpEvent_SetLink
, METH_VARARGS
| METH_KEYWORDS
},
922 { "wxHelpEvent_GetLink", (PyCFunction
) _wrap_wxHelpEvent_GetLink
, METH_VARARGS
| METH_KEYWORDS
},
923 { "wxHelpEvent_SetPosition", (PyCFunction
) _wrap_wxHelpEvent_SetPosition
, METH_VARARGS
| METH_KEYWORDS
},
924 { "wxHelpEvent_GetPosition", (PyCFunction
) _wrap_wxHelpEvent_GetPosition
, METH_VARARGS
| METH_KEYWORDS
},
925 { "new_wxHelpEvent", (PyCFunction
) _wrap_new_wxHelpEvent
, METH_VARARGS
| METH_KEYWORDS
},
932 * This table is used by the pointer type-checker
934 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
935 { "_wxEvent","_wxHelpEvent",SwigwxHelpEventTowxEvent
},
936 { "_signed_long","_long",0},
937 { "_wxPrintQuality","_wxCoord",0},
938 { "_wxPrintQuality","_int",0},
939 { "_wxPrintQuality","_signed_int",0},
940 { "_wxPrintQuality","_unsigned_int",0},
941 { "_wxPrintQuality","_wxWindowID",0},
942 { "_wxPrintQuality","_uint",0},
943 { "_wxPrintQuality","_EBool",0},
944 { "_wxPrintQuality","_size_t",0},
945 { "_wxPrintQuality","_time_t",0},
946 { "_byte","_unsigned_char",0},
947 { "_long","_unsigned_long",0},
948 { "_long","_signed_long",0},
949 { "_wxBitmapButton","_wxContextHelpButton",SwigwxContextHelpButtonTowxBitmapButton
},
950 { "_size_t","_wxCoord",0},
951 { "_size_t","_wxPrintQuality",0},
952 { "_size_t","_time_t",0},
953 { "_size_t","_unsigned_int",0},
954 { "_size_t","_int",0},
955 { "_size_t","_wxWindowID",0},
956 { "_size_t","_uint",0},
957 { "_uint","_wxCoord",0},
958 { "_uint","_wxPrintQuality",0},
959 { "_uint","_time_t",0},
960 { "_uint","_size_t",0},
961 { "_uint","_unsigned_int",0},
963 { "_uint","_wxWindowID",0},
964 { "_wxChar","_char",0},
965 { "_wxCommandEvent","_wxHelpEvent",SwigwxHelpEventTowxCommandEvent
},
966 { "_char","_wxChar",0},
967 { "_wxHelpProvider","_wxSimpleHelpProvider",SwigwxSimpleHelpProviderTowxHelpProvider
},
968 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
969 { "_EBool","_wxCoord",0},
970 { "_EBool","_wxPrintQuality",0},
971 { "_EBool","_signed_int",0},
972 { "_EBool","_int",0},
973 { "_EBool","_wxWindowID",0},
974 { "_unsigned_long","_long",0},
975 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
976 { "_signed_int","_wxCoord",0},
977 { "_signed_int","_wxPrintQuality",0},
978 { "_signed_int","_EBool",0},
979 { "_signed_int","_wxWindowID",0},
980 { "_signed_int","_int",0},
981 { "_WXTYPE","_short",0},
982 { "_WXTYPE","_signed_short",0},
983 { "_WXTYPE","_unsigned_short",0},
984 { "_unsigned_short","_WXTYPE",0},
985 { "_unsigned_short","_short",0},
986 { "_wxObject","_wxContextHelpButton",SwigwxContextHelpButtonTowxObject
},
987 { "_wxObject","_wxContextHelp",SwigwxContextHelpTowxObject
},
988 { "_wxObject","_wxHelpEvent",SwigwxHelpEventTowxObject
},
989 { "_signed_short","_WXTYPE",0},
990 { "_signed_short","_short",0},
991 { "_unsigned_char","_byte",0},
992 { "_wxControl","_wxContextHelpButton",SwigwxContextHelpButtonTowxControl
},
993 { "_unsigned_int","_wxCoord",0},
994 { "_unsigned_int","_wxPrintQuality",0},
995 { "_unsigned_int","_time_t",0},
996 { "_unsigned_int","_size_t",0},
997 { "_unsigned_int","_uint",0},
998 { "_unsigned_int","_wxWindowID",0},
999 { "_unsigned_int","_int",0},
1000 { "_short","_WXTYPE",0},
1001 { "_short","_unsigned_short",0},
1002 { "_short","_signed_short",0},
1003 { "_wxWindowID","_wxCoord",0},
1004 { "_wxWindowID","_wxPrintQuality",0},
1005 { "_wxWindowID","_time_t",0},
1006 { "_wxWindowID","_size_t",0},
1007 { "_wxWindowID","_EBool",0},
1008 { "_wxWindowID","_uint",0},
1009 { "_wxWindowID","_int",0},
1010 { "_wxWindowID","_signed_int",0},
1011 { "_wxWindowID","_unsigned_int",0},
1012 { "_int","_wxCoord",0},
1013 { "_int","_wxPrintQuality",0},
1014 { "_int","_time_t",0},
1015 { "_int","_size_t",0},
1016 { "_int","_EBool",0},
1017 { "_int","_uint",0},
1018 { "_int","_wxWindowID",0},
1019 { "_int","_unsigned_int",0},
1020 { "_int","_signed_int",0},
1021 { "_time_t","_wxCoord",0},
1022 { "_time_t","_wxPrintQuality",0},
1023 { "_time_t","_unsigned_int",0},
1024 { "_time_t","_int",0},
1025 { "_time_t","_wxWindowID",0},
1026 { "_time_t","_uint",0},
1027 { "_time_t","_size_t",0},
1028 { "_wxButton","_wxContextHelpButton",SwigwxContextHelpButtonTowxButton
},
1029 { "_wxCoord","_int",0},
1030 { "_wxCoord","_signed_int",0},
1031 { "_wxCoord","_unsigned_int",0},
1032 { "_wxCoord","_wxWindowID",0},
1033 { "_wxCoord","_uint",0},
1034 { "_wxCoord","_EBool",0},
1035 { "_wxCoord","_size_t",0},
1036 { "_wxCoord","_time_t",0},
1037 { "_wxCoord","_wxPrintQuality",0},
1038 { "_wxEvtHandler","_wxContextHelpButton",SwigwxContextHelpButtonTowxEvtHandler
},
1039 { "_wxWindow","_wxContextHelpButton",SwigwxContextHelpButtonTowxWindow
},
1042 static PyObject
*SWIG_globals
;
1046 SWIGEXPORT(void) inithelpc() {
1048 SWIG_globals
= SWIG_newvarlink();
1049 m
= Py_InitModule("helpc", helpcMethods
);
1050 d
= PyModule_GetDict(m
);
1051 PyDict_SetItemString(d
,"wxFRAME_EX_CONTEXTHELP", PyInt_FromLong((long) wxFRAME_EX_CONTEXTHELP
));
1052 PyDict_SetItemString(d
,"wxDIALOG_EX_CONTEXTHELP", PyInt_FromLong((long) wxDIALOG_EX_CONTEXTHELP
));
1053 PyDict_SetItemString(d
,"wxID_CONTEXT_HELP", PyInt_FromLong((long) wxID_CONTEXT_HELP
));
1054 PyDict_SetItemString(d
,"wxEVT_HELP", PyInt_FromLong((long) wxEVT_HELP
));
1055 PyDict_SetItemString(d
,"wxEVT_DETAILED_HELP", PyInt_FromLong((long) wxEVT_DETAILED_HELP
));
1058 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
1059 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);