1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk1/tooltip.h
3 // Purpose: wxToolTip class
4 // Author: Robert Roebling
5 // Copyright: (c) 1998 Robert Roebling
6 // Licence: wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
9 #ifndef __GTKTOOLTIPH__
10 #define __GTKTOOLTIPH__
13 #include "wx/string.h"
14 #include "wx/object.h"
16 //-----------------------------------------------------------------------------
17 // forward declarations
18 //-----------------------------------------------------------------------------
20 class WXDLLIMPEXP_FWD_CORE wxToolTip
;
21 class WXDLLIMPEXP_FWD_CORE wxWindow
;
23 //-----------------------------------------------------------------------------
25 //-----------------------------------------------------------------------------
27 class WXDLLIMPEXP_CORE wxToolTip
: public wxObject
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 wxToolTip( const wxString
&tip
);
40 // get/set the tooltip text
41 void SetTip( const wxString
&tip
);
42 wxString
GetTip() const { return m_text
; }
44 wxWindow
*GetWindow() const { return m_window
; }
45 bool IsOk() const { return m_window
!= NULL
; }
48 void Apply( wxWindow
*win
);
54 DECLARE_ABSTRACT_CLASS(wxToolTip
)
57 #endif // __GTKTOOLTIPH__