1 /////////////////////////////////////////////////////////////////////////////
2 // Name: cpp/tipprovider.h
3 // Purpose: C++ wrapper for wxTipProvider
4 // Author: Mattia Barbon
7 // RCS-ID: $Id: tipprovider.h 2239 2007-10-07 19:16:59Z mbarbon $
8 // Copyright: (c) 2001-2002, 2007 Mattia Barbon
9 // Licence: This program is free software; you can redistribute it and/or
10 // modify it under the same terms as Perl itself
11 /////////////////////////////////////////////////////////////////////////////
13 #include <wx/tipdlg.h>
15 class wxPliTipProvider:public wxTipProvider
17 WXPLI_DECLARE_V_CBACK();
19 wxPliTipProvider( const char* package, size_t currentTip )
20 :wxTipProvider( currentTip ),
21 m_callback( "Wx::TipProvider" )
24 m_callback.SetSelf( wxPli_non_object_2_sv( aTHX_ sv_newmortal(), this,
28 void SetCurrentTip( size_t currentTip ) { m_currentTip = currentTip; }
30 DEC_V_CBACK_WXSTRING__VOID( GetTip );
31 DEC_V_CBACK_WXSTRING__WXSTRING( PreprocessTip );
34 DEF_V_CBACK_WXSTRING__VOID_pure( wxPliTipProvider, wxTipProvider, GetTip );
35 DEF_V_CBACK_WXSTRING__WXSTRING( wxPliTipProvider, wxTipProvider, PreprocessTip );
37 // Local variables: //