]> git.saurik.com Git - wxWidgets.git/blob - include/wx/generic/private/richtooltip.h
Fix link errors with VC 11 in DLL STL build.
[wxWidgets.git] / include / wx / generic / private / richtooltip.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/generic/private/richtooltip.h
3 // Purpose: wxRichToolTipGenericImpl declaration.
4 // Author: Vadim Zeitlin
5 // Created: 2011-10-18
6 // RCS-ID: $Id: wxhead.h,v 1.12 2010-04-22 12:44:51 zeitlin Exp $
7 // Copyright: (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_GENERIC_PRIVATE_RICHTOOLTIP_H_
12 #define _GENERIC_PRIVATE_RICHTOOLTIP_H_
13
14 #include "wx/icon.h"
15 #include "wx/colour.h"
16
17 // ----------------------------------------------------------------------------
18 // wxRichToolTipGenericImpl: defines generic wxRichToolTip implementation.
19 // ----------------------------------------------------------------------------
20
21 class wxRichToolTipGenericImpl : public wxRichToolTipImpl
22 {
23 public:
24 wxRichToolTipGenericImpl(const wxString& title, const wxString& message) :
25 m_title(title),
26 m_message(message)
27 {
28 m_tipKind = wxTipKind_Auto;
29
30 // This is pretty arbitrary, we could follow MSW and use some multiple
31 // of double-click time here.
32 m_timeout = 5000;
33 }
34
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 virtual void SetTipKind(wxTipKind tipKind);
41 virtual void SetTitleFont(const wxFont& font);
42
43 virtual void ShowFor(wxWindow* win);
44
45 protected:
46 wxString m_title,
47 m_message;
48
49 private:
50 wxIcon m_icon;
51
52 wxColour m_colStart,
53 m_colEnd;
54
55 unsigned m_timeout;
56
57 wxTipKind m_tipKind;
58
59 wxFont m_titleFont;
60 };
61
62 #endif // _WX_GENERIC_PRIVATE_RICHTOOLTIP_H_