1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/tooltip.h
3 // Purpose: wxToolTip class
4 // Author: Robert Roebling
5 // Copyright: (c) 1998 Robert Roebling
6 // Licence: wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
9 #ifndef _WX_GTKTOOLTIP_H_
10 #define _WX_GTKTOOLTIP_H_
12 #include "wx/string.h"
13 #include "wx/object.h"
15 //-----------------------------------------------------------------------------
16 // forward declarations
17 //-----------------------------------------------------------------------------
19 class WXDLLIMPEXP_FWD_CORE wxWindow
;
21 //-----------------------------------------------------------------------------
23 //-----------------------------------------------------------------------------
25 class WXDLLIMPEXP_CORE wxToolTip
: public wxObject
28 wxToolTip( const wxString
&tip
);
30 // globally change the tooltip parameters
31 static void Enable( bool flag
);
32 static void SetDelay( long msecs
);
33 // set the delay after which the tooltip disappears or how long the tooltip remains visible
34 static void SetAutoPop(long msecs
);
35 // set the delay between subsequent tooltips to appear
36 static void SetReshow(long msecs
);
38 // get/set the tooltip text
39 void SetTip( const wxString
&tip
);
40 wxString
GetTip() const { return m_text
; }
42 wxWindow
*GetWindow() const { return m_window
; }
45 void GTKSetWindow(wxWindow
* win
);
46 static void GTKApply(GtkWidget
* widget
, const char* tip
);
52 DECLARE_ABSTRACT_CLASS(wxToolTip
)
55 #endif // _WX_GTKTOOLTIP_H_