]> git.saurik.com Git - wxWidgets.git/blame - include/wx/cocoa/tooltip.h
Add lambda-friendly wxDialog::ShowWindowModalThenDo().
[wxWidgets.git] / include / wx / cocoa / tooltip.h
CommitLineData
26191790 1///////////////////////////////////////////////////////////////////////////////
80fdcdb9 2// Name: wx/cocoa/tooltip.h
26191790
RN
3// Purpose: wxToolTip class - tooltip control
4// Author: Ryan Norton
5// Modified by:
6// Created: 31.01.99
26191790
RN
7// Copyright: (c) Ryan Norton
8// Licence: wxWindows licence
9///////////////////////////////////////////////////////////////////////////////
10
20ceebaa
MW
11#ifndef _WX_COCOA_TOOLTIP_H_
12#define _WX_COCOA_TOOLTIP_H_
13
26191790
RN
14#include "wx/object.h"
15
1e151594
RN
16class wxWindow;
17
26191790
RN
18class wxToolTip : public wxObject
19{
20public:
21 // ctor & dtor
1e151594
RN
22 wxToolTip(const wxString &tip);
23 virtual ~wxToolTip();
26191790
RN
24
25 // accessors
26 // tip text
1e151594
RN
27 void SetTip(const wxString& tip);
28 const wxString& GetTip() const;
26191790
RN
29
30 // the window we're associated with
1e151594 31 wxWindow *GetWindow() const;
26191790
RN
32
33 // controlling tooltip behaviour: globally change tooltip parameters
34 // enable or disable the tooltips globally
1e151594 35 static void Enable(bool flag);
26191790 36 // set the delay after which the tooltip appears
1e151594 37 static void SetDelay(long milliseconds);
becac1ef
VZ
38 // set the delay after which the tooltip disappears or how long the tooltip remains visible
39 static void SetAutoPop(long milliseconds);
40 // set the delay between subsequent tooltips to appear
41 static void SetReshow(long milliseconds);
26191790
RN
42
43private:
1e151594
RN
44 void SetWindow(wxWindow* window);
45
26191790
RN
46 friend class wxWindow;
47
48 wxString m_text; // tooltip text
49 wxWindow *m_window; // window we're associated with
03647350 50
26191790 51 DECLARE_ABSTRACT_CLASS(wxToolTip)
20ceebaa
MW
52};
53
54#endif // _WX_COCOA_TOOLTIP_H_