]>
Commit | Line | Data |
---|---|---|
90b1b133 | 1 | ///////////////////////////////////////////////////////////////////////////// |
8ef94bfc | 2 | // Name: wx/gtk1/tooltip.h |
ff8bfdbb | 3 | // Purpose: wxToolTip class |
90b1b133 RR |
4 | // Author: Robert Roebling |
5 | // Id: $Id$ | |
371a5b4e | 6 | // Copyright: (c) 1998 Robert Roebling |
65571936 | 7 | // Licence: wxWindows licence |
90b1b133 RR |
8 | ///////////////////////////////////////////////////////////////////////////// |
9 | ||
10 | #ifndef __GTKTOOLTIPH__ | |
11 | #define __GTKTOOLTIPH__ | |
12 | ||
90b1b133 | 13 | #include "wx/defs.h" |
ff8bfdbb | 14 | #include "wx/string.h" |
90b1b133 | 15 | #include "wx/object.h" |
90b1b133 RR |
16 | |
17 | //----------------------------------------------------------------------------- | |
ff8bfdbb | 18 | // forward declarations |
90b1b133 RR |
19 | //----------------------------------------------------------------------------- |
20 | ||
20123d49 MW |
21 | class WXDLLIMPEXP_CORE wxToolTip; |
22 | class WXDLLIMPEXP_CORE wxWindow; | |
90b1b133 RR |
23 | |
24 | //----------------------------------------------------------------------------- | |
25 | // wxToolTip | |
26 | //----------------------------------------------------------------------------- | |
27 | ||
20123d49 | 28 | class WXDLLIMPEXP_CORE wxToolTip : public wxObject |
90b1b133 RR |
29 | { |
30 | public: | |
ff8bfdbb | 31 | // globally change the tooltip parameters |
301cd871 RR |
32 | static void Enable( bool flag ); |
33 | static void SetDelay( long msecs ); | |
90b1b133 | 34 | |
ff8bfdbb VZ |
35 | wxToolTip( const wxString &tip ); |
36 | ||
37 | // get/set the tooltip text | |
38 | void SetTip( const wxString &tip ); | |
39 | wxString GetTip() const { return m_text; } | |
40 | ||
41 | wxWindow *GetWindow() const { return m_window; } | |
42 | bool IsOk() const { return m_window != NULL; } | |
43 | ||
44 | // implementation | |
45 | void Apply( wxWindow *win ); | |
46 | ||
47 | private: | |
b1170810 | 48 | wxString m_text; |
301cd871 | 49 | wxWindow *m_window; |
b342f8f0 RD |
50 | |
51 | DECLARE_ABSTRACT_CLASS(wxToolTip) | |
90b1b133 RR |
52 | }; |
53 | ||
54 | #endif // __GTKTOOLTIPH__ |