X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/26d863e2b2f30612d0512a786fc01fe63c6b7bdf..f6268c151c84762a9d664b6e9a7e938ef2619415:/include/wx/generic/private/richtooltip.h?ds=sidebyside diff --git a/include/wx/generic/private/richtooltip.h b/include/wx/generic/private/richtooltip.h index 3730638592..74db335303 100644 --- a/include/wx/generic/private/richtooltip.h +++ b/include/wx/generic/private/richtooltip.h @@ -3,13 +3,13 @@ // Purpose: wxRichToolTipGenericImpl declaration. // Author: Vadim Zeitlin // Created: 2011-10-18 -// RCS-ID: $Id: wxhead.h,v 1.12 2010-04-22 12:44:51 zeitlin Exp $ +// RCS-ID: $Id$ // Copyright: (c) 2011 Vadim Zeitlin // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// #ifndef _WX_GENERIC_PRIVATE_RICHTOOLTIP_H_ -#define _GENERIC_PRIVATE_RICHTOOLTIP_H_ +#define _WX_GENERIC_PRIVATE_RICHTOOLTIP_H_ #include "wx/icon.h" #include "wx/colour.h" @@ -30,17 +30,19 @@ public: // This is pretty arbitrary, we could follow MSW and use some multiple // of double-click time here. m_timeout = 5000; + m_delay = 0; } virtual void SetBackgroundColour(const wxColour& col, const wxColour& colEnd); virtual void SetCustomIcon(const wxIcon& icon); virtual void SetStandardIcon(int icon); - virtual void SetTimeout(unsigned milliseconds); + virtual void SetTimeout(unsigned milliseconds, + unsigned millisecondsDelay = 0); virtual void SetTipKind(wxTipKind tipKind); virtual void SetTitleFont(const wxFont& font); - virtual void ShowFor(wxWindow* win); + virtual void ShowFor(wxWindow* win, const wxRect* rect = NULL); protected: wxString m_title, @@ -52,7 +54,8 @@ private: wxColour m_colStart, m_colEnd; - unsigned m_timeout; + unsigned m_timeout, + m_delay; wxTipKind m_tipKind;