virtual void SetTipKind(wxTipKind tipKind);
virtual void SetTitleFont(const wxFont& font);
- virtual void ShowFor(wxWindow* win, wxRect* rect = NULL);
+ virtual void ShowFor(wxWindow* win, const wxRect* rect = NULL);
protected:
wxString m_title,
virtual void SetTipKind(wxTipKind tipKind) = 0;
virtual void SetTitleFont(const wxFont& font) = 0;
- virtual void ShowFor(wxWindow* win, wxRect* rect = NULL) = 0;
+ virtual void ShowFor(wxWindow* win, const wxRect* rect = NULL) = 0;
virtual ~wxRichToolTipImpl() { }
void SetTitleFont(const wxFont& font);
// Show the tooltip for the given window and optionally a specified area.
- void ShowFor(wxWindow* win, wxRect* rect = NULL);
+ void ShowFor(wxWindow* win, const wxRect* rect = NULL);
// Non-virtual dtor as this class is not supposed to be derived from.
~wxRichToolTip();
Parameter @a rect is new since wxWidgets 2.9.5.
*/
- void ShowFor(wxWindow* win, wxRect* rect = NULL);
+ void ShowFor(wxWindow* win, const wxRect* rect = NULL);
/**
Destructor.
m_impl->SetTitleFont(font);
}
-void wxRichToolTip::ShowFor(wxWindow* win, wxRect* rect)
+void wxRichToolTip::ShowFor(wxWindow* win, const wxRect* rect)
{
wxCHECK_RET( win, wxS("Must have a valid window") );
}
}
- void SetPosition(wxRect* rect)
+ void SetPosition(const wxRect* rect)
{
wxPoint pos;
m_titleFont = font;
}
-void wxRichToolTipGenericImpl::ShowFor(wxWindow* win, wxRect* rect)
+void wxRichToolTipGenericImpl::ShowFor(wxWindow* win, const wxRect* rect)
{
// Set the focus to the window the tooltip refers to to make it look active.
win->SetFocus();
wxRichToolTipGenericImpl::SetTitleFont(font);
}
- virtual void ShowFor(wxWindow* win, wxRect* rect)
+ virtual void ShowFor(wxWindow* win, const wxRect* rect)
{
// TODO: We could use native tooltip control to show native balloon
// tooltips for any window but right now we use the simple