]>
Commit | Line | Data |
---|---|---|
90b1b133 | 1 | ///////////////////////////////////////////////////////////////////////////// |
80fdcdb9 | 2 | // Name: wx/gtk/tooltip.h |
ff8bfdbb | 3 | // Purpose: wxToolTip class |
90b1b133 | 4 | // Author: Robert Roebling |
371a5b4e | 5 | // Copyright: (c) 1998 Robert Roebling |
65571936 | 6 | // Licence: wxWindows licence |
90b1b133 RR |
7 | ///////////////////////////////////////////////////////////////////////////// |
8 | ||
558a94bd PC |
9 | #ifndef _WX_GTKTOOLTIP_H_ |
10 | #define _WX_GTKTOOLTIP_H_ | |
90b1b133 | 11 | |
ff8bfdbb | 12 | #include "wx/string.h" |
90b1b133 | 13 | #include "wx/object.h" |
90b1b133 RR |
14 | |
15 | //----------------------------------------------------------------------------- | |
ff8bfdbb | 16 | // forward declarations |
90b1b133 RR |
17 | //----------------------------------------------------------------------------- |
18 | ||
b5dbe15d | 19 | class WXDLLIMPEXP_FWD_CORE wxWindow; |
90b1b133 RR |
20 | |
21 | //----------------------------------------------------------------------------- | |
22 | // wxToolTip | |
23 | //----------------------------------------------------------------------------- | |
24 | ||
20123d49 | 25 | class WXDLLIMPEXP_CORE wxToolTip : public wxObject |
90b1b133 RR |
26 | { |
27 | public: | |
f7ce0e4a VZ |
28 | wxToolTip( const wxString &tip ); |
29 | ||
ff8bfdbb | 30 | // globally change the tooltip parameters |
301cd871 RR |
31 | static void Enable( bool flag ); |
32 | static void SetDelay( long msecs ); | |
becac1ef VZ |
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); | |
90b1b133 | 37 | |
ff8bfdbb VZ |
38 | // get/set the tooltip text |
39 | void SetTip( const wxString &tip ); | |
40 | wxString GetTip() const { return m_text; } | |
41 | ||
42 | wxWindow *GetWindow() const { return m_window; } | |
ff8bfdbb | 43 | |
558a94bd PC |
44 | // Implementation |
45 | void GTKSetWindow(wxWindow* win); | |
46 | static void GTKApply(GtkWidget* widget, const char* tip); | |
f7ce0e4a | 47 | |
ff8bfdbb | 48 | private: |
b1170810 | 49 | wxString m_text; |
301cd871 | 50 | wxWindow *m_window; |
b342f8f0 RD |
51 | |
52 | DECLARE_ABSTRACT_CLASS(wxToolTip) | |
90b1b133 RR |
53 | }; |
54 | ||
558a94bd | 55 | #endif // _WX_GTKTOOLTIP_H_ |