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 */
26 /* Definitions for Windows/Unix exporting */
27 #if defined(__WIN32__)
28 # if defined(_MSC_VER)
29 # define SWIGEXPORT(a) __declspec(dllexport) a
31 # if defined(__BORLANDC__)
32 # define SWIGEXPORT(a) a _export
34 # define SWIGEXPORT(a) a
38 # define SWIGEXPORT(a) a
44 extern void SWIG_MakePtr(char *, void *, char *);
45 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
46 extern char *SWIG_GetPtr(char *, void **, char *);
47 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
48 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
49 extern PyObject
*SWIG_newvarlink(void);
53 #define SWIG_init inithelpc
55 #define SWIG_name "helpc"
58 #include <wx/cshelp.h>
61 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
67 } else if (target
== Py_None
) {
71 if (!PyTuple_Check(target
)) {
73 target
= PyTuple_New(1);
74 PyTuple_SetItem(target
, 0, o2
);
77 PyTuple_SetItem(o3
, 0, o
);
80 target
= PySequence_Concat(o2
, o3
);
89 static void *SwigwxHelpEventTowxCommandEvent(void *ptr
) {
92 src
= (wxHelpEvent
*) ptr
;
93 dest
= (wxCommandEvent
*) src
;
97 static void *SwigwxHelpEventTowxEvent(void *ptr
) {
100 src
= (wxHelpEvent
*) ptr
;
101 dest
= (wxEvent
*) src
;
102 return (void *) dest
;
105 static void *SwigwxHelpEventTowxObject(void *ptr
) {
108 src
= (wxHelpEvent
*) ptr
;
109 dest
= (wxObject
*) src
;
110 return (void *) dest
;
113 #define new_wxHelpEvent(_swigarg0,_swigarg1,_swigarg2) (new wxHelpEvent(_swigarg0,_swigarg1,_swigarg2))
114 static PyObject
*_wrap_new_wxHelpEvent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
115 PyObject
* _resultobj
;
116 wxHelpEvent
* _result
;
117 wxEventType _arg0
= (wxEventType
) wxEVT_NULL
;
118 wxWindowID _arg1
= (wxWindowID
) 0;
119 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
121 PyObject
* _obj2
= 0;
122 char *_kwnames
[] = { "type","id","pt", NULL
};
126 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|iiO:new_wxHelpEvent",_kwnames
,&_arg0
,&_arg1
,&_obj2
))
131 if (! wxPoint_helper(_obj2
, &_arg2
))
135 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
136 _result
= (wxHelpEvent
*)new_wxHelpEvent(_arg0
,_arg1
,*_arg2
);
138 wxPyEndAllowThreads(__tstate
);
139 if (PyErr_Occurred()) return NULL
;
141 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxHelpEvent_p");
142 _resultobj
= Py_BuildValue("s",_ptemp
);
145 _resultobj
= Py_None
;
150 #define wxHelpEvent_GetPosition(_swigobj) (_swigobj->GetPosition())
151 static PyObject
*_wrap_wxHelpEvent_GetPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
152 PyObject
* _resultobj
;
155 PyObject
* _argo0
= 0;
156 char *_kwnames
[] = { "self", NULL
};
160 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxHelpEvent_GetPosition",_kwnames
,&_argo0
))
163 if (_argo0
== Py_None
) { _arg0
= NULL
; }
164 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxHelpEvent_p")) {
165 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxHelpEvent_GetPosition. Expected _wxHelpEvent_p.");
170 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
171 const wxPoint
& _result_ref
= wxHelpEvent_GetPosition(_arg0
);
172 _result
= (wxPoint
*) &_result_ref
;
174 wxPyEndAllowThreads(__tstate
);
175 if (PyErr_Occurred()) return NULL
;
177 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPoint_p");
178 _resultobj
= Py_BuildValue("s",_ptemp
);
181 _resultobj
= Py_None
;
186 #define wxHelpEvent_SetPosition(_swigobj,_swigarg0) (_swigobj->SetPosition(_swigarg0))
187 static PyObject
*_wrap_wxHelpEvent_SetPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
188 PyObject
* _resultobj
;
191 PyObject
* _argo0
= 0;
193 PyObject
* _obj1
= 0;
194 char *_kwnames
[] = { "self","pos", NULL
};
197 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxHelpEvent_SetPosition",_kwnames
,&_argo0
,&_obj1
))
200 if (_argo0
== Py_None
) { _arg0
= NULL
; }
201 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxHelpEvent_p")) {
202 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxHelpEvent_SetPosition. Expected _wxHelpEvent_p.");
208 if (! wxPoint_helper(_obj1
, &_arg1
))
212 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
213 wxHelpEvent_SetPosition(_arg0
,*_arg1
);
215 wxPyEndAllowThreads(__tstate
);
216 if (PyErr_Occurred()) return NULL
;
217 } Py_INCREF(Py_None
);
218 _resultobj
= Py_None
;
222 #define wxHelpEvent_GetLink(_swigobj) (_swigobj->GetLink())
223 static PyObject
*_wrap_wxHelpEvent_GetLink(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
224 PyObject
* _resultobj
;
227 PyObject
* _argo0
= 0;
228 char *_kwnames
[] = { "self", NULL
};
231 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxHelpEvent_GetLink",_kwnames
,&_argo0
))
234 if (_argo0
== Py_None
) { _arg0
= NULL
; }
235 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxHelpEvent_p")) {
236 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxHelpEvent_GetLink. Expected _wxHelpEvent_p.");
241 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
242 const wxString
& _result_ref
= wxHelpEvent_GetLink(_arg0
);
243 _result
= (wxString
*) &_result_ref
;
245 wxPyEndAllowThreads(__tstate
);
246 if (PyErr_Occurred()) return NULL
;
249 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
251 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
257 #define wxHelpEvent_SetLink(_swigobj,_swigarg0) (_swigobj->SetLink(_swigarg0))
258 static PyObject
*_wrap_wxHelpEvent_SetLink(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
259 PyObject
* _resultobj
;
262 PyObject
* _argo0
= 0;
263 PyObject
* _obj1
= 0;
264 char *_kwnames
[] = { "self","link", NULL
};
267 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxHelpEvent_SetLink",_kwnames
,&_argo0
,&_obj1
))
270 if (_argo0
== Py_None
) { _arg0
= NULL
; }
271 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxHelpEvent_p")) {
272 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxHelpEvent_SetLink. Expected _wxHelpEvent_p.");
277 _arg1
= wxString_in_helper(_obj1
);
282 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
283 wxHelpEvent_SetLink(_arg0
,*_arg1
);
285 wxPyEndAllowThreads(__tstate
);
286 if (PyErr_Occurred()) return NULL
;
287 } Py_INCREF(Py_None
);
288 _resultobj
= Py_None
;
296 #define wxHelpEvent_GetTarget(_swigobj) (_swigobj->GetTarget())
297 static PyObject
*_wrap_wxHelpEvent_GetTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
298 PyObject
* _resultobj
;
301 PyObject
* _argo0
= 0;
302 char *_kwnames
[] = { "self", NULL
};
305 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxHelpEvent_GetTarget",_kwnames
,&_argo0
))
308 if (_argo0
== Py_None
) { _arg0
= NULL
; }
309 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxHelpEvent_p")) {
310 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxHelpEvent_GetTarget. Expected _wxHelpEvent_p.");
315 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
316 const wxString
& _result_ref
= wxHelpEvent_GetTarget(_arg0
);
317 _result
= (wxString
*) &_result_ref
;
319 wxPyEndAllowThreads(__tstate
);
320 if (PyErr_Occurred()) return NULL
;
323 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
325 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
331 #define wxHelpEvent_SetTarget(_swigobj,_swigarg0) (_swigobj->SetTarget(_swigarg0))
332 static PyObject
*_wrap_wxHelpEvent_SetTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
333 PyObject
* _resultobj
;
336 PyObject
* _argo0
= 0;
337 PyObject
* _obj1
= 0;
338 char *_kwnames
[] = { "self","target", NULL
};
341 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxHelpEvent_SetTarget",_kwnames
,&_argo0
,&_obj1
))
344 if (_argo0
== Py_None
) { _arg0
= NULL
; }
345 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxHelpEvent_p")) {
346 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxHelpEvent_SetTarget. Expected _wxHelpEvent_p.");
351 _arg1
= wxString_in_helper(_obj1
);
356 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
357 wxHelpEvent_SetTarget(_arg0
,*_arg1
);
359 wxPyEndAllowThreads(__tstate
);
360 if (PyErr_Occurred()) return NULL
;
361 } Py_INCREF(Py_None
);
362 _resultobj
= Py_None
;
370 static void *SwigwxContextHelpTowxObject(void *ptr
) {
373 src
= (wxContextHelp
*) ptr
;
374 dest
= (wxObject
*) src
;
375 return (void *) dest
;
378 #define new_wxContextHelp(_swigarg0,_swigarg1) (new wxContextHelp(_swigarg0,_swigarg1))
379 static PyObject
*_wrap_new_wxContextHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
380 PyObject
* _resultobj
;
381 wxContextHelp
* _result
;
382 wxWindow
* _arg0
= (wxWindow
*) NULL
;
383 bool _arg1
= (bool ) TRUE
;
384 PyObject
* _argo0
= 0;
385 int tempbool1
= (int) TRUE
;
386 char *_kwnames
[] = { "window","doNow", NULL
};
390 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|Oi:new_wxContextHelp",_kwnames
,&_argo0
,&tempbool1
))
393 if (_argo0
== Py_None
) { _arg0
= NULL
; }
394 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
395 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxContextHelp. Expected _wxWindow_p.");
399 _arg1
= (bool ) tempbool1
;
401 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
402 _result
= (wxContextHelp
*)new_wxContextHelp(_arg0
,_arg1
);
404 wxPyEndAllowThreads(__tstate
);
405 if (PyErr_Occurred()) return NULL
;
407 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxContextHelp_p");
408 _resultobj
= Py_BuildValue("s",_ptemp
);
411 _resultobj
= Py_None
;
416 #define delete_wxContextHelp(_swigobj) (delete _swigobj)
417 static PyObject
*_wrap_delete_wxContextHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
418 PyObject
* _resultobj
;
419 wxContextHelp
* _arg0
;
420 PyObject
* _argo0
= 0;
421 char *_kwnames
[] = { "self", NULL
};
424 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxContextHelp",_kwnames
,&_argo0
))
427 if (_argo0
== Py_None
) { _arg0
= NULL
; }
428 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxContextHelp_p")) {
429 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxContextHelp. Expected _wxContextHelp_p.");
434 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
435 delete_wxContextHelp(_arg0
);
437 wxPyEndAllowThreads(__tstate
);
438 if (PyErr_Occurred()) return NULL
;
439 } Py_INCREF(Py_None
);
440 _resultobj
= Py_None
;
444 #define wxContextHelp_BeginContextHelp(_swigobj,_swigarg0) (_swigobj->BeginContextHelp(_swigarg0))
445 static PyObject
*_wrap_wxContextHelp_BeginContextHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
446 PyObject
* _resultobj
;
448 wxContextHelp
* _arg0
;
449 wxWindow
* _arg1
= (wxWindow
*) NULL
;
450 PyObject
* _argo0
= 0;
451 PyObject
* _argo1
= 0;
452 char *_kwnames
[] = { "self","window", NULL
};
455 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxContextHelp_BeginContextHelp",_kwnames
,&_argo0
,&_argo1
))
458 if (_argo0
== Py_None
) { _arg0
= NULL
; }
459 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxContextHelp_p")) {
460 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxContextHelp_BeginContextHelp. Expected _wxContextHelp_p.");
465 if (_argo1
== Py_None
) { _arg1
= NULL
; }
466 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
467 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxContextHelp_BeginContextHelp. Expected _wxWindow_p.");
472 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
473 _result
= (bool )wxContextHelp_BeginContextHelp(_arg0
,_arg1
);
475 wxPyEndAllowThreads(__tstate
);
476 if (PyErr_Occurred()) return NULL
;
477 } _resultobj
= Py_BuildValue("i",_result
);
481 #define wxContextHelp_EndContextHelp(_swigobj) (_swigobj->EndContextHelp())
482 static PyObject
*_wrap_wxContextHelp_EndContextHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
483 PyObject
* _resultobj
;
485 wxContextHelp
* _arg0
;
486 PyObject
* _argo0
= 0;
487 char *_kwnames
[] = { "self", NULL
};
490 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxContextHelp_EndContextHelp",_kwnames
,&_argo0
))
493 if (_argo0
== Py_None
) { _arg0
= NULL
; }
494 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxContextHelp_p")) {
495 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxContextHelp_EndContextHelp. Expected _wxContextHelp_p.");
500 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
501 _result
= (bool )wxContextHelp_EndContextHelp(_arg0
);
503 wxPyEndAllowThreads(__tstate
);
504 if (PyErr_Occurred()) return NULL
;
505 } _resultobj
= Py_BuildValue("i",_result
);
509 static void *SwigwxContextHelpButtonTowxBitmapButton(void *ptr
) {
510 wxContextHelpButton
*src
;
511 wxBitmapButton
*dest
;
512 src
= (wxContextHelpButton
*) ptr
;
513 dest
= (wxBitmapButton
*) src
;
514 return (void *) dest
;
517 static void *SwigwxContextHelpButtonTowxButton(void *ptr
) {
518 wxContextHelpButton
*src
;
520 src
= (wxContextHelpButton
*) ptr
;
521 dest
= (wxButton
*) src
;
522 return (void *) dest
;
525 static void *SwigwxContextHelpButtonTowxControl(void *ptr
) {
526 wxContextHelpButton
*src
;
528 src
= (wxContextHelpButton
*) ptr
;
529 dest
= (wxControl
*) src
;
530 return (void *) dest
;
533 static void *SwigwxContextHelpButtonTowxWindow(void *ptr
) {
534 wxContextHelpButton
*src
;
536 src
= (wxContextHelpButton
*) ptr
;
537 dest
= (wxWindow
*) src
;
538 return (void *) dest
;
541 static void *SwigwxContextHelpButtonTowxEvtHandler(void *ptr
) {
542 wxContextHelpButton
*src
;
544 src
= (wxContextHelpButton
*) ptr
;
545 dest
= (wxEvtHandler
*) src
;
546 return (void *) dest
;
549 static void *SwigwxContextHelpButtonTowxObject(void *ptr
) {
550 wxContextHelpButton
*src
;
552 src
= (wxContextHelpButton
*) ptr
;
553 dest
= (wxObject
*) src
;
554 return (void *) dest
;
557 #define new_wxContextHelpButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxContextHelpButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
558 static PyObject
*_wrap_new_wxContextHelpButton(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
559 PyObject
* _resultobj
;
560 wxContextHelpButton
* _result
;
562 wxWindowID _arg1
= (wxWindowID
) (wxID_CONTEXT_HELP
);
563 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
564 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
565 long _arg4
= (long ) wxBU_AUTODRAW
;
566 PyObject
* _argo0
= 0;
568 PyObject
* _obj2
= 0;
570 PyObject
* _obj3
= 0;
571 char *_kwnames
[] = { "parent","id","pos","size","style", NULL
};
575 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iOOl:new_wxContextHelpButton",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
))
578 if (_argo0
== Py_None
) { _arg0
= NULL
; }
579 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
580 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxContextHelpButton. Expected _wxWindow_p.");
587 if (! wxPoint_helper(_obj2
, &_arg2
))
593 if (! wxSize_helper(_obj3
, &_arg3
))
597 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
598 _result
= (wxContextHelpButton
*)new_wxContextHelpButton(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
);
600 wxPyEndAllowThreads(__tstate
);
601 if (PyErr_Occurred()) return NULL
;
603 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxContextHelpButton_p");
604 _resultobj
= Py_BuildValue("s",_ptemp
);
607 _resultobj
= Py_None
;
612 static PyObject
*_wrap_wxHelpProvider_Set(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
613 PyObject
* _resultobj
;
614 wxHelpProvider
* _result
;
615 wxHelpProvider
* _arg0
;
616 PyObject
* _argo0
= 0;
617 char *_kwnames
[] = { "helpProvider", NULL
};
621 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxHelpProvider_Set",_kwnames
,&_argo0
))
624 if (_argo0
== Py_None
) { _arg0
= NULL
; }
625 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxHelpProvider_p")) {
626 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxHelpProvider_Set. Expected _wxHelpProvider_p.");
631 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
632 _result
= (wxHelpProvider
*)wxHelpProvider::Set(_arg0
);
634 wxPyEndAllowThreads(__tstate
);
635 if (PyErr_Occurred()) return NULL
;
637 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxHelpProvider_p");
638 _resultobj
= Py_BuildValue("s",_ptemp
);
641 _resultobj
= Py_None
;
646 static PyObject
*_wrap_wxHelpProvider_Get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
647 PyObject
* _resultobj
;
648 wxHelpProvider
* _result
;
649 char *_kwnames
[] = { NULL
};
653 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxHelpProvider_Get",_kwnames
))
656 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
657 _result
= (wxHelpProvider
*)wxHelpProvider::Get();
659 wxPyEndAllowThreads(__tstate
);
660 if (PyErr_Occurred()) return NULL
;
662 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxHelpProvider_p");
663 _resultobj
= Py_BuildValue("s",_ptemp
);
666 _resultobj
= Py_None
;
671 #define wxHelpProvider_GetHelp(_swigobj,_swigarg0) (_swigobj->GetHelp(_swigarg0))
672 static PyObject
*_wrap_wxHelpProvider_GetHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
673 PyObject
* _resultobj
;
675 wxHelpProvider
* _arg0
;
677 PyObject
* _argo0
= 0;
678 PyObject
* _argo1
= 0;
679 char *_kwnames
[] = { "self","window", NULL
};
682 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxHelpProvider_GetHelp",_kwnames
,&_argo0
,&_argo1
))
685 if (_argo0
== Py_None
) { _arg0
= NULL
; }
686 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxHelpProvider_p")) {
687 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxHelpProvider_GetHelp. Expected _wxHelpProvider_p.");
692 if (_argo1
== Py_None
) { _arg1
= NULL
; }
693 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
694 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxHelpProvider_GetHelp. Expected _wxWindow_p.");
699 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
700 _result
= new wxString (wxHelpProvider_GetHelp(_arg0
,_arg1
));
702 wxPyEndAllowThreads(__tstate
);
703 if (PyErr_Occurred()) return NULL
;
706 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
708 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
717 #define wxHelpProvider_ShowHelp(_swigobj,_swigarg0) (_swigobj->ShowHelp(_swigarg0))
718 static PyObject
*_wrap_wxHelpProvider_ShowHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
719 PyObject
* _resultobj
;
721 wxHelpProvider
* _arg0
;
722 wxWindowBase
* _arg1
;
723 PyObject
* _argo0
= 0;
724 PyObject
* _argo1
= 0;
725 char *_kwnames
[] = { "self","window", NULL
};
728 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxHelpProvider_ShowHelp",_kwnames
,&_argo0
,&_argo1
))
731 if (_argo0
== Py_None
) { _arg0
= NULL
; }
732 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxHelpProvider_p")) {
733 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxHelpProvider_ShowHelp. Expected _wxHelpProvider_p.");
738 if (_argo1
== Py_None
) { _arg1
= NULL
; }
739 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindowBase_p")) {
740 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxHelpProvider_ShowHelp. Expected _wxWindowBase_p.");
745 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
746 _result
= (bool )wxHelpProvider_ShowHelp(_arg0
,_arg1
);
748 wxPyEndAllowThreads(__tstate
);
749 if (PyErr_Occurred()) return NULL
;
750 } _resultobj
= Py_BuildValue("i",_result
);
754 #define wxHelpProvider_AddHelp(_swigobj,_swigarg0,_swigarg1) (_swigobj->AddHelp(_swigarg0,_swigarg1))
755 static PyObject
*_wrap_wxHelpProvider_AddHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
756 PyObject
* _resultobj
;
757 wxHelpProvider
* _arg0
;
758 wxWindowBase
* _arg1
;
760 PyObject
* _argo0
= 0;
761 PyObject
* _argo1
= 0;
762 PyObject
* _obj2
= 0;
763 char *_kwnames
[] = { "self","window","text", NULL
};
766 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxHelpProvider_AddHelp",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
769 if (_argo0
== Py_None
) { _arg0
= NULL
; }
770 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxHelpProvider_p")) {
771 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxHelpProvider_AddHelp. Expected _wxHelpProvider_p.");
776 if (_argo1
== Py_None
) { _arg1
= NULL
; }
777 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindowBase_p")) {
778 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxHelpProvider_AddHelp. Expected _wxWindowBase_p.");
783 _arg2
= wxString_in_helper(_obj2
);
788 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
789 wxHelpProvider_AddHelp(_arg0
,_arg1
,*_arg2
);
791 wxPyEndAllowThreads(__tstate
);
792 if (PyErr_Occurred()) return NULL
;
793 } Py_INCREF(Py_None
);
794 _resultobj
= Py_None
;
802 #define wxHelpProvider_AddHelpById(_swigobj,_swigarg0,_swigarg1) (_swigobj->AddHelp(_swigarg0,_swigarg1))
803 static PyObject
*_wrap_wxHelpProvider_AddHelpById(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
804 PyObject
* _resultobj
;
805 wxHelpProvider
* _arg0
;
808 PyObject
* _argo0
= 0;
809 PyObject
* _obj2
= 0;
810 char *_kwnames
[] = { "self","id","text", NULL
};
813 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxHelpProvider_AddHelpById",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
816 if (_argo0
== Py_None
) { _arg0
= NULL
; }
817 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxHelpProvider_p")) {
818 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxHelpProvider_AddHelpById. Expected _wxHelpProvider_p.");
823 _arg2
= wxString_in_helper(_obj2
);
828 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
829 wxHelpProvider_AddHelpById(_arg0
,_arg1
,*_arg2
);
831 wxPyEndAllowThreads(__tstate
);
832 if (PyErr_Occurred()) return NULL
;
833 } Py_INCREF(Py_None
);
834 _resultobj
= Py_None
;
842 static void wxHelpProvider_Destroy(wxHelpProvider
*self
) { delete self
; }
843 static PyObject
*_wrap_wxHelpProvider_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
844 PyObject
* _resultobj
;
845 wxHelpProvider
* _arg0
;
846 PyObject
* _argo0
= 0;
847 char *_kwnames
[] = { "self", NULL
};
850 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxHelpProvider_Destroy",_kwnames
,&_argo0
))
853 if (_argo0
== Py_None
) { _arg0
= NULL
; }
854 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxHelpProvider_p")) {
855 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxHelpProvider_Destroy. Expected _wxHelpProvider_p.");
860 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
861 wxHelpProvider_Destroy(_arg0
);
863 wxPyEndAllowThreads(__tstate
);
864 if (PyErr_Occurred()) return NULL
;
865 } Py_INCREF(Py_None
);
866 _resultobj
= Py_None
;
870 static void *SwigwxSimpleHelpProviderTowxHelpProvider(void *ptr
) {
871 wxSimpleHelpProvider
*src
;
872 wxHelpProvider
*dest
;
873 src
= (wxSimpleHelpProvider
*) ptr
;
874 dest
= (wxHelpProvider
*) src
;
875 return (void *) dest
;
878 #define new_wxSimpleHelpProvider() (new wxSimpleHelpProvider())
879 static PyObject
*_wrap_new_wxSimpleHelpProvider(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
880 PyObject
* _resultobj
;
881 wxSimpleHelpProvider
* _result
;
882 char *_kwnames
[] = { NULL
};
886 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxSimpleHelpProvider",_kwnames
))
889 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
890 _result
= (wxSimpleHelpProvider
*)new_wxSimpleHelpProvider();
892 wxPyEndAllowThreads(__tstate
);
893 if (PyErr_Occurred()) return NULL
;
895 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxSimpleHelpProvider_p");
896 _resultobj
= Py_BuildValue("s",_ptemp
);
899 _resultobj
= Py_None
;
904 static PyMethodDef helpcMethods
[] = {
905 { "new_wxSimpleHelpProvider", (PyCFunction
) _wrap_new_wxSimpleHelpProvider
, METH_VARARGS
| METH_KEYWORDS
},
906 { "wxHelpProvider_Destroy", (PyCFunction
) _wrap_wxHelpProvider_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
907 { "wxHelpProvider_AddHelpById", (PyCFunction
) _wrap_wxHelpProvider_AddHelpById
, METH_VARARGS
| METH_KEYWORDS
},
908 { "wxHelpProvider_AddHelp", (PyCFunction
) _wrap_wxHelpProvider_AddHelp
, METH_VARARGS
| METH_KEYWORDS
},
909 { "wxHelpProvider_ShowHelp", (PyCFunction
) _wrap_wxHelpProvider_ShowHelp
, METH_VARARGS
| METH_KEYWORDS
},
910 { "wxHelpProvider_GetHelp", (PyCFunction
) _wrap_wxHelpProvider_GetHelp
, METH_VARARGS
| METH_KEYWORDS
},
911 { "wxHelpProvider_Get", (PyCFunction
) _wrap_wxHelpProvider_Get
, METH_VARARGS
| METH_KEYWORDS
},
912 { "wxHelpProvider_Set", (PyCFunction
) _wrap_wxHelpProvider_Set
, METH_VARARGS
| METH_KEYWORDS
},
913 { "new_wxContextHelpButton", (PyCFunction
) _wrap_new_wxContextHelpButton
, METH_VARARGS
| METH_KEYWORDS
},
914 { "wxContextHelp_EndContextHelp", (PyCFunction
) _wrap_wxContextHelp_EndContextHelp
, METH_VARARGS
| METH_KEYWORDS
},
915 { "wxContextHelp_BeginContextHelp", (PyCFunction
) _wrap_wxContextHelp_BeginContextHelp
, METH_VARARGS
| METH_KEYWORDS
},
916 { "delete_wxContextHelp", (PyCFunction
) _wrap_delete_wxContextHelp
, METH_VARARGS
| METH_KEYWORDS
},
917 { "new_wxContextHelp", (PyCFunction
) _wrap_new_wxContextHelp
, METH_VARARGS
| METH_KEYWORDS
},
918 { "wxHelpEvent_SetTarget", (PyCFunction
) _wrap_wxHelpEvent_SetTarget
, METH_VARARGS
| METH_KEYWORDS
},
919 { "wxHelpEvent_GetTarget", (PyCFunction
) _wrap_wxHelpEvent_GetTarget
, METH_VARARGS
| METH_KEYWORDS
},
920 { "wxHelpEvent_SetLink", (PyCFunction
) _wrap_wxHelpEvent_SetLink
, METH_VARARGS
| METH_KEYWORDS
},
921 { "wxHelpEvent_GetLink", (PyCFunction
) _wrap_wxHelpEvent_GetLink
, METH_VARARGS
| METH_KEYWORDS
},
922 { "wxHelpEvent_SetPosition", (PyCFunction
) _wrap_wxHelpEvent_SetPosition
, METH_VARARGS
| METH_KEYWORDS
},
923 { "wxHelpEvent_GetPosition", (PyCFunction
) _wrap_wxHelpEvent_GetPosition
, METH_VARARGS
| METH_KEYWORDS
},
924 { "new_wxHelpEvent", (PyCFunction
) _wrap_new_wxHelpEvent
, METH_VARARGS
| METH_KEYWORDS
},
931 * This table is used by the pointer type-checker
933 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
934 { "_wxEvent","_wxHelpEvent",SwigwxHelpEventTowxEvent
},
935 { "_signed_long","_long",0},
936 { "_wxPrintQuality","_wxCoord",0},
937 { "_wxPrintQuality","_int",0},
938 { "_wxPrintQuality","_signed_int",0},
939 { "_wxPrintQuality","_unsigned_int",0},
940 { "_wxPrintQuality","_wxWindowID",0},
941 { "_wxPrintQuality","_uint",0},
942 { "_wxPrintQuality","_EBool",0},
943 { "_wxPrintQuality","_size_t",0},
944 { "_wxPrintQuality","_time_t",0},
945 { "_byte","_unsigned_char",0},
946 { "_long","_unsigned_long",0},
947 { "_long","_signed_long",0},
948 { "_wxBitmapButton","_wxContextHelpButton",SwigwxContextHelpButtonTowxBitmapButton
},
949 { "_size_t","_wxCoord",0},
950 { "_size_t","_wxPrintQuality",0},
951 { "_size_t","_time_t",0},
952 { "_size_t","_unsigned_int",0},
953 { "_size_t","_int",0},
954 { "_size_t","_wxWindowID",0},
955 { "_size_t","_uint",0},
956 { "_uint","_wxCoord",0},
957 { "_uint","_wxPrintQuality",0},
958 { "_uint","_time_t",0},
959 { "_uint","_size_t",0},
960 { "_uint","_unsigned_int",0},
962 { "_uint","_wxWindowID",0},
963 { "_wxChar","_char",0},
964 { "_wxCommandEvent","_wxHelpEvent",SwigwxHelpEventTowxCommandEvent
},
965 { "_char","_wxChar",0},
966 { "_wxHelpProvider","_wxSimpleHelpProvider",SwigwxSimpleHelpProviderTowxHelpProvider
},
967 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
968 { "_EBool","_wxCoord",0},
969 { "_EBool","_wxPrintQuality",0},
970 { "_EBool","_signed_int",0},
971 { "_EBool","_int",0},
972 { "_EBool","_wxWindowID",0},
973 { "_unsigned_long","_long",0},
974 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
975 { "_signed_int","_wxCoord",0},
976 { "_signed_int","_wxPrintQuality",0},
977 { "_signed_int","_EBool",0},
978 { "_signed_int","_wxWindowID",0},
979 { "_signed_int","_int",0},
980 { "_WXTYPE","_short",0},
981 { "_WXTYPE","_signed_short",0},
982 { "_WXTYPE","_unsigned_short",0},
983 { "_unsigned_short","_WXTYPE",0},
984 { "_unsigned_short","_short",0},
985 { "_wxObject","_wxContextHelpButton",SwigwxContextHelpButtonTowxObject
},
986 { "_wxObject","_wxContextHelp",SwigwxContextHelpTowxObject
},
987 { "_wxObject","_wxHelpEvent",SwigwxHelpEventTowxObject
},
988 { "_signed_short","_WXTYPE",0},
989 { "_signed_short","_short",0},
990 { "_unsigned_char","_byte",0},
991 { "_wxControl","_wxContextHelpButton",SwigwxContextHelpButtonTowxControl
},
992 { "_unsigned_int","_wxCoord",0},
993 { "_unsigned_int","_wxPrintQuality",0},
994 { "_unsigned_int","_time_t",0},
995 { "_unsigned_int","_size_t",0},
996 { "_unsigned_int","_uint",0},
997 { "_unsigned_int","_wxWindowID",0},
998 { "_unsigned_int","_int",0},
999 { "_short","_WXTYPE",0},
1000 { "_short","_unsigned_short",0},
1001 { "_short","_signed_short",0},
1002 { "_wxWindowID","_wxCoord",0},
1003 { "_wxWindowID","_wxPrintQuality",0},
1004 { "_wxWindowID","_time_t",0},
1005 { "_wxWindowID","_size_t",0},
1006 { "_wxWindowID","_EBool",0},
1007 { "_wxWindowID","_uint",0},
1008 { "_wxWindowID","_int",0},
1009 { "_wxWindowID","_signed_int",0},
1010 { "_wxWindowID","_unsigned_int",0},
1011 { "_int","_wxCoord",0},
1012 { "_int","_wxPrintQuality",0},
1013 { "_int","_time_t",0},
1014 { "_int","_size_t",0},
1015 { "_int","_EBool",0},
1016 { "_int","_uint",0},
1017 { "_int","_wxWindowID",0},
1018 { "_int","_unsigned_int",0},
1019 { "_int","_signed_int",0},
1020 { "_time_t","_wxCoord",0},
1021 { "_time_t","_wxPrintQuality",0},
1022 { "_time_t","_unsigned_int",0},
1023 { "_time_t","_int",0},
1024 { "_time_t","_wxWindowID",0},
1025 { "_time_t","_uint",0},
1026 { "_time_t","_size_t",0},
1027 { "_wxButton","_wxContextHelpButton",SwigwxContextHelpButtonTowxButton
},
1028 { "_wxCoord","_int",0},
1029 { "_wxCoord","_signed_int",0},
1030 { "_wxCoord","_unsigned_int",0},
1031 { "_wxCoord","_wxWindowID",0},
1032 { "_wxCoord","_uint",0},
1033 { "_wxCoord","_EBool",0},
1034 { "_wxCoord","_size_t",0},
1035 { "_wxCoord","_time_t",0},
1036 { "_wxCoord","_wxPrintQuality",0},
1037 { "_wxEvtHandler","_wxContextHelpButton",SwigwxContextHelpButtonTowxEvtHandler
},
1038 { "_wxWindow","_wxContextHelpButton",SwigwxContextHelpButtonTowxWindow
},
1041 static PyObject
*SWIG_globals
;
1045 SWIGEXPORT(void) inithelpc() {
1047 SWIG_globals
= SWIG_newvarlink();
1048 m
= Py_InitModule("helpc", helpcMethods
);
1049 d
= PyModule_GetDict(m
);
1050 PyDict_SetItemString(d
,"wxFRAME_EX_CONTEXTHELP", PyInt_FromLong((long) wxFRAME_EX_CONTEXTHELP
));
1051 PyDict_SetItemString(d
,"wxDIALOG_EX_CONTEXTHELP", PyInt_FromLong((long) wxDIALOG_EX_CONTEXTHELP
));
1052 PyDict_SetItemString(d
,"wxID_CONTEXT_HELP", PyInt_FromLong((long) wxID_CONTEXT_HELP
));
1053 PyDict_SetItemString(d
,"wxEVT_HELP", PyInt_FromLong((long) wxEVT_HELP
));
1054 PyDict_SetItemString(d
,"wxEVT_DETAILED_HELP", PyInt_FromLong((long) wxEVT_DETAILED_HELP
));
1057 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
1058 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);