]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk1/tooltip.h
Trying to hide evidence of my negative programming skills...
[wxWidgets.git] / include / wx / gtk1 / tooltip.h
CommitLineData
90b1b133
RR
1/////////////////////////////////////////////////////////////////////////////
2// Name: tooltip.h
ff8bfdbb 3// Purpose: wxToolTip class
90b1b133
RR
4// Author: Robert Roebling
5// Id: $Id$
6// Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
ff8bfdbb 7// Licence: wxWindows licence
90b1b133
RR
8/////////////////////////////////////////////////////////////////////////////
9
10#ifndef __GTKTOOLTIPH__
11#define __GTKTOOLTIPH__
12
13#ifdef __GNUG__
ff8bfdbb 14 #pragma interface
90b1b133
RR
15#endif
16
17#include "wx/defs.h"
ff8bfdbb 18#include "wx/string.h"
90b1b133 19#include "wx/object.h"
90b1b133
RR
20
21//-----------------------------------------------------------------------------
ff8bfdbb 22// forward declarations
90b1b133
RR
23//-----------------------------------------------------------------------------
24
25class wxToolTip;
ff8bfdbb 26class wxWindow;
90b1b133
RR
27
28//-----------------------------------------------------------------------------
29// wxToolTip
30//-----------------------------------------------------------------------------
31
ff8bfdbb 32class wxToolTip : public wxObject
90b1b133
RR
33{
34public:
ff8bfdbb 35 // globally change the tooltip parameters
301cd871
RR
36 static void Enable( bool flag );
37 static void SetDelay( long msecs );
90b1b133 38
ff8bfdbb
VZ
39 wxToolTip( const wxString &tip );
40
41 // get/set the tooltip text
42 void SetTip( const wxString &tip );
43 wxString GetTip() const { return m_text; }
44
45 wxWindow *GetWindow() const { return m_window; }
46 bool IsOk() const { return m_window != NULL; }
47
48 // implementation
49 void Apply( wxWindow *win );
50
51private:
b1170810 52 wxString m_text;
301cd871 53 wxWindow *m_window;
90b1b133
RR
54};
55
56#endif // __GTKTOOLTIPH__