]> git.saurik.com Git - wxWidgets.git/blame - include/wx/cocoa/tooltip.h
DEBUGREPORT
[wxWidgets.git] / include / wx / cocoa / tooltip.h
CommitLineData
26191790
RN
1///////////////////////////////////////////////////////////////////////////////
2// Name: cocoa/tooltip.h
3// Purpose: wxToolTip class - tooltip control
4// Author: Ryan Norton
5// Modified by:
6// Created: 31.01.99
7// RCS-ID: $Id$
8// Copyright: (c) Ryan Norton
9// Licence: wxWindows licence
10///////////////////////////////////////////////////////////////////////////////
11
12#include "wx/object.h"
13
1e151594
RN
14class wxWindow;
15
26191790
RN
16class wxToolTip : public wxObject
17{
18public:
19 // ctor & dtor
1e151594
RN
20 wxToolTip(const wxString &tip);
21 virtual ~wxToolTip();
26191790
RN
22
23 // accessors
24 // tip text
1e151594
RN
25 void SetTip(const wxString& tip);
26 const wxString& GetTip() const;
26191790
RN
27
28 // the window we're associated with
1e151594 29 wxWindow *GetWindow() const;
26191790
RN
30
31 // controlling tooltip behaviour: globally change tooltip parameters
32 // enable or disable the tooltips globally
1e151594 33 static void Enable(bool flag);
26191790 34 // set the delay after which the tooltip appears
1e151594 35 static void SetDelay(long milliseconds);
26191790
RN
36
37private:
1e151594
RN
38 void SetWindow(wxWindow* window);
39
26191790
RN
40 friend class wxWindow;
41
42 wxString m_text; // tooltip text
43 wxWindow *m_window; // window we're associated with
44
45 DECLARE_ABSTRACT_CLASS(wxToolTip)
46};