]>
git.saurik.com Git - wxWidgets.git/blob - src/common/richtooltipcmn.cpp
c4671f63f171fd14b28dfe554320dda7d8d06c15
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: src/common/richtooltipcmn.cpp
3 // Purpose: wxRichToolTip implementation common to all platforms.
4 // Author: Vadim Zeitlin
7 // Copyright: (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
11 // ============================================================================
13 // ============================================================================
15 // ----------------------------------------------------------------------------
17 // ----------------------------------------------------------------------------
19 // for compilers that support precompilation, includes "wx.h".
20 #include "wx/wxprec.h"
32 #include "wx/private/richtooltip.h"
34 // ============================================================================
36 // ============================================================================
38 wxRichToolTip::wxRichToolTip(const wxString
& title
,
39 const wxString
& message
) :
40 m_impl(wxRichToolTipImpl::Create(title
, message
))
45 wxRichToolTip::SetBackgroundColour(const wxColour
& col
, const wxColour
& colEnd
)
47 m_impl
->SetBackgroundColour(col
, colEnd
);
50 void wxRichToolTip::SetIcon(int icon
)
52 m_impl
->SetStandardIcon(icon
);
55 void wxRichToolTip::SetIcon(const wxIcon
& icon
)
57 m_impl
->SetCustomIcon(icon
);
60 void wxRichToolTip::SetTimeout(unsigned milliseconds
,
61 unsigned millisecondsDelay
)
63 m_impl
->SetTimeout(milliseconds
, millisecondsDelay
);
66 void wxRichToolTip::SetTipKind(wxTipKind tipKind
)
68 m_impl
->SetTipKind(tipKind
);
71 void wxRichToolTip::SetTitleFont(const wxFont
& font
)
73 m_impl
->SetTitleFont(font
);
76 void wxRichToolTip::ShowFor(wxWindow
* win
, wxRect
* rect
= NULL
);
78 wxCHECK_RET( win
, wxS("Must have a valid window") );
80 m_impl
->ShowFor(win
, rect
);
83 wxRichToolTip::~wxRichToolTip()
88 #endif // wxUSE_RICHTOOLTIP