]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/tooltip.h
adding SetLabel -> SetTitle redirects, solves missing title updates using wxDocument...
[wxWidgets.git] / include / wx / gtk / tooltip.h
CommitLineData
90b1b133 1/////////////////////////////////////////////////////////////////////////////
80fdcdb9 2// Name: wx/gtk/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
558a94bd
PC
10#ifndef _WX_GTKTOOLTIP_H_
11#define _WX_GTKTOOLTIP_H_
90b1b133 12
ff8bfdbb 13#include "wx/string.h"
90b1b133 14#include "wx/object.h"
90b1b133
RR
15
16//-----------------------------------------------------------------------------
ff8bfdbb 17// forward declarations
90b1b133
RR
18//-----------------------------------------------------------------------------
19
b5dbe15d 20class WXDLLIMPEXP_FWD_CORE wxWindow;
90b1b133
RR
21
22//-----------------------------------------------------------------------------
23// wxToolTip
24//-----------------------------------------------------------------------------
25
20123d49 26class WXDLLIMPEXP_CORE wxToolTip : public wxObject
90b1b133
RR
27{
28public:
f7ce0e4a
VZ
29 wxToolTip( const wxString &tip );
30
ff8bfdbb 31 // globally change the tooltip parameters
301cd871
RR
32 static void Enable( bool flag );
33 static void SetDelay( long msecs );
becac1ef
VZ
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);
90b1b133 38
ff8bfdbb
VZ
39 // get/set the tooltip text
40 void SetTip( const wxString &tip );
41 wxString GetTip() const { return m_text; }
42
43 wxWindow *GetWindow() const { return m_window; }
ff8bfdbb 44
558a94bd
PC
45 // Implementation
46 void GTKSetWindow(wxWindow* win);
47 static void GTKApply(GtkWidget* widget, const char* tip);
f7ce0e4a 48
ff8bfdbb 49private:
b1170810 50 wxString m_text;
301cd871 51 wxWindow *m_window;
b342f8f0
RD
52
53 DECLARE_ABSTRACT_CLASS(wxToolTip)
90b1b133
RR
54};
55
558a94bd 56#endif // _WX_GTKTOOLTIP_H_