]>
Commit | Line | Data |
---|---|---|
90b1b133 RR |
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 | ||
b1170810 RR |
35 | wxToolTip( const wxString &tip ); |
36 | ~wxToolTip(); | |
90b1b133 | 37 | |
b1170810 RR |
38 | wxString GetTip(); |
39 | ||
40 | void Enable( bool flag ); | |
41 | void SetDelay( long msecs ); | |
42 | bool Ok(); | |
90b1b133 | 43 | |
b1170810 RR |
44 | // implementation |
45 | ||
46 | wxString m_text; | |
47 | ||
48 | GtkTooltips *m_tooltips; | |
49 | GdkColor *m_bg; | |
50 | GdkColor *m_fg; | |
90b1b133 | 51 | |
b1170810 | 52 | void Create( GtkWidget *tool ); |
90b1b133 RR |
53 | }; |
54 | ||
55 | #endif // __GTKTOOLTIPH__ |