]>
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
6 // Copyright: (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
7 // Licence: wxWindows licence
8 ///////////////////////////////////////////////////////////////////////////////
10 #ifndef _WX_GENERIC_PRIVATE_RICHTOOLTIP_H_
11 #define _WX_GENERIC_PRIVATE_RICHTOOLTIP_H_
14 #include "wx/colour.h"
16 // ----------------------------------------------------------------------------
17 // wxRichToolTipGenericImpl: defines generic wxRichToolTip implementation.
18 // ----------------------------------------------------------------------------
20 class wxRichToolTipGenericImpl
: public wxRichToolTipImpl
23 wxRichToolTipGenericImpl(const wxString
& title
, const wxString
& message
) :
27 m_tipKind
= wxTipKind_Auto
;
29 // This is pretty arbitrary, we could follow MSW and use some multiple
30 // of double-click time here.
35 virtual void SetBackgroundColour(const wxColour
& col
,
36 const wxColour
& colEnd
);
37 virtual void SetCustomIcon(const wxIcon
& icon
);
38 virtual void SetStandardIcon(int icon
);
39 virtual void SetTimeout(unsigned milliseconds
,
40 unsigned millisecondsDelay
= 0);
41 virtual void SetTipKind(wxTipKind tipKind
);
42 virtual void SetTitleFont(const wxFont
& font
);
44 virtual void ShowFor(wxWindow
* win
, const wxRect
* rect
= NULL
);
64 #endif // _WX_GENERIC_PRIVATE_RICHTOOLTIP_H_