1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk1/tooltip.h
3 // Purpose: wxToolTip class
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef __GTKTOOLTIPH__
11 #define __GTKTOOLTIPH__
14 #include "wx/string.h"
15 #include "wx/object.h"
17 //-----------------------------------------------------------------------------
18 // forward declarations
19 //-----------------------------------------------------------------------------
21 class WXDLLIMPEXP_FWD_CORE wxToolTip
;
22 class WXDLLIMPEXP_FWD_CORE wxWindow
;
24 //-----------------------------------------------------------------------------
26 //-----------------------------------------------------------------------------
28 class WXDLLIMPEXP_CORE wxToolTip
: public wxObject
31 // globally change the tooltip parameters
32 static void Enable( bool flag
);
33 static void SetDelay( long msecs
);
34 // set the delay after which the tooltip disappears or how long the tooltip remains visible
35 static void SetAutoPop(long msecs
);
36 // set the delay between subsequent tooltips to appear
37 static void SetReshow(long msecs
);
39 wxToolTip( const wxString
&tip
);
41 // get/set the tooltip text
42 void SetTip( const wxString
&tip
);
43 wxString
GetTip() const { return m_text
; }
45 wxWindow
*GetWindow() const { return m_window
; }
46 bool IsOk() const { return m_window
!= NULL
; }
49 void Apply( wxWindow
*win
);
55 DECLARE_ABSTRACT_CLASS(wxToolTip
)
58 #endif // __GTKTOOLTIPH__