]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/tooltip.h
wxToolTip
[wxWidgets.git] / include / wx / gtk / tooltip.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: tooltip.h
3 // Purpose:
4 // Author: Robert Roebling
5 // Id: $Id$
6 // Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 #ifndef __GTKTOOLTIPH__
11 #define __GTKTOOLTIPH__
12
13 #ifdef __GNUG__
14 #pragma interface
15 #endif
16
17 #include "wx/defs.h"
18 #include "wx/object.h"
19 #include "wx/window.h"
20
21 //-----------------------------------------------------------------------------
22 // classes
23 //-----------------------------------------------------------------------------
24
25 class wxToolTip;
26
27 //-----------------------------------------------------------------------------
28 // wxToolTip
29 //-----------------------------------------------------------------------------
30
31 class wxToolTip: public wxObject
32 {
33 public:
34
35 wxToolTip( const wxString &tip );
36
37 void SetTip( const wxString &tip );
38 wxString GetTip() const;
39 wxWindow *GetWindow() const;
40 bool Ok() const;
41
42 static void Enable( bool flag );
43 static void SetDelay( long msecs );
44
45 // implementation
46
47 wxString m_text;
48 wxWindow *m_window;
49
50 void Apply( wxWindow *win );
51 };
52
53 #endif // __GTKTOOLTIPH__