]> git.saurik.com Git - wxWidgets.git/blame - include/wx/cocoa/tooltip.h
add IsOk() to all classes having Ok() method (patch 1570985)
[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
20ceebaa
MW
12#ifndef _WX_COCOA_TOOLTIP_H_
13#define _WX_COCOA_TOOLTIP_H_
14
26191790
RN
15#include "wx/object.h"
16
1e151594
RN
17class wxWindow;
18
26191790
RN
19class wxToolTip : public wxObject
20{
21public:
22 // ctor & dtor
1e151594
RN
23 wxToolTip(const wxString &tip);
24 virtual ~wxToolTip();
26191790
RN
25
26 // accessors
27 // tip text
1e151594
RN
28 void SetTip(const wxString& tip);
29 const wxString& GetTip() const;
26191790
RN
30
31 // the window we're associated with
1e151594 32 wxWindow *GetWindow() const;
26191790
RN
33
34 // controlling tooltip behaviour: globally change tooltip parameters
35 // enable or disable the tooltips globally
1e151594 36 static void Enable(bool flag);
26191790 37 // set the delay after which the tooltip appears
1e151594 38 static void SetDelay(long milliseconds);
26191790
RN
39
40private:
1e151594
RN
41 void SetWindow(wxWindow* window);
42
26191790
RN
43 friend class wxWindow;
44
45 wxString m_text; // tooltip text
46 wxWindow *m_window; // window we're associated with
47
48 DECLARE_ABSTRACT_CLASS(wxToolTip)
20ceebaa
MW
49};
50
51#endif // _WX_COCOA_TOOLTIP_H_