]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/generic/private/richtooltip.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/generic/private/richtooltip.h
3 // Purpose: wxRichToolTipGenericImpl declaration.
4 // Author: Vadim Zeitlin
7 // Copyright: (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_GENERIC_PRIVATE_RICHTOOLTIP_H_
12 #define _WX_GENERIC_PRIVATE_RICHTOOLTIP_H_
15 #include "wx/colour.h"
17 // ----------------------------------------------------------------------------
18 // wxRichToolTipGenericImpl: defines generic wxRichToolTip implementation.
19 // ----------------------------------------------------------------------------
21 class wxRichToolTipGenericImpl
: public wxRichToolTipImpl
24 wxRichToolTipGenericImpl(const wxString
& title
, const wxString
& message
) :
28 m_tipKind
= wxTipKind_Auto
;
30 // This is pretty arbitrary, we could follow MSW and use some multiple
31 // of double-click time here.
36 virtual void SetBackgroundColour(const wxColour
& col
,
37 const wxColour
& colEnd
);
38 virtual void SetCustomIcon(const wxIcon
& icon
);
39 virtual void SetStandardIcon(int icon
);
40 virtual void SetTimeout(unsigned milliseconds
,
41 unsigned millisecondsDelay
= 0);
42 virtual void SetTipKind(wxTipKind tipKind
);
43 virtual void SetTitleFont(const wxFont
& font
);
45 virtual void ShowFor(wxWindow
* win
);
65 #endif // _WX_GENERIC_PRIVATE_RICHTOOLTIP_H_