X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..4f7222ca3632e40ad8f77947dba6bced63733655:/include/wx/gtk/tooltip.h diff --git a/include/wx/gtk/tooltip.h b/include/wx/gtk/tooltip.h index f79618899a..6a01dd6468 100644 --- a/include/wx/gtk/tooltip.h +++ b/include/wx/gtk/tooltip.h @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: tooltip.h +// Name: wx/gtk/tooltip.h // Purpose: wxToolTip class // Author: Robert Roebling // Id: $Id$ @@ -7,10 +7,9 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifndef __GTKTOOLTIPH__ -#define __GTKTOOLTIPH__ +#ifndef _WX_GTKTOOLTIP_H_ +#define _WX_GTKTOOLTIP_H_ -#include "wx/defs.h" #include "wx/string.h" #include "wx/object.h" @@ -18,8 +17,7 @@ // forward declarations //----------------------------------------------------------------------------- -class WXDLLIMPEXP_CORE wxToolTip; -class WXDLLIMPEXP_CORE wxWindow; +class WXDLLIMPEXP_FWD_CORE wxWindow; //----------------------------------------------------------------------------- // wxToolTip @@ -28,21 +26,25 @@ class WXDLLIMPEXP_CORE wxWindow; class WXDLLIMPEXP_CORE wxToolTip : public wxObject { public: + wxToolTip( const wxString &tip ); + // globally change the tooltip parameters static void Enable( bool flag ); static void SetDelay( long msecs ); - - wxToolTip( const wxString &tip ); + // set the delay after which the tooltip disappears or how long the tooltip remains visible + static void SetAutoPop(long msecs); + // set the delay between subsequent tooltips to appear + static void SetReshow(long msecs); // get/set the tooltip text void SetTip( const wxString &tip ); wxString GetTip() const { return m_text; } wxWindow *GetWindow() const { return m_window; } - bool IsOk() const { return m_window != NULL; } - // implementation - void Apply( wxWindow *win ); + // Implementation + void GTKSetWindow(wxWindow* win); + static void GTKApply(GtkWidget* widget, const char* tip); private: wxString m_text; @@ -51,4 +53,4 @@ private: DECLARE_ABSTRACT_CLASS(wxToolTip) }; -#endif // __GTKTOOLTIPH__ +#endif // _WX_GTKTOOLTIP_H_