1
/////////////////////////////////////////////////////////////////////////////
3
// Purpose: wxToolTip class
4
// Author: Robert Roebling
5
// Id: $Id: tooltip.h,v 1.11 2005/08/02 22:57:59 MW Exp $
6
// Copyright: (c) 1998 Robert Roebling
7
// Licence: wxWindows licence
8
/////////////////////////////////////////////////////////////////////////////
10
#ifndef __GTKTOOLTIPH__
11
#define __GTKTOOLTIPH__
13
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
18
#include "wx/string.h"
19
#include "wx/object.h"
21
//-----------------------------------------------------------------------------
22
// forward declarations
23
//-----------------------------------------------------------------------------
25
class WXDLLIMPEXP_CORE wxToolTip;
26
class WXDLLIMPEXP_CORE wxWindow;
28
//-----------------------------------------------------------------------------
30
//-----------------------------------------------------------------------------
32
class WXDLLIMPEXP_CORE wxToolTip : public wxObject
35
// globally change the tooltip parameters
36
static void Enable( bool flag );
37
static void SetDelay( long msecs );
39
wxToolTip( const wxString &tip );
41
// get/set the tooltip text
42
void SetTip( const wxString &tip );
43
wxString GetTip() const { return m_text; }
45
wxWindow *GetWindow() const { return m_window; }
46
bool IsOk() const { return m_window != NULL; }
49
void Apply( wxWindow *win );
55
DECLARE_ABSTRACT_CLASS(wxToolTip)
58
#endif // __GTKTOOLTIPH__