]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/cocoa/tooltip.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: cocoa/tooltip.h
3 // Purpose: wxToolTip class - tooltip control
8 // Copyright: (c) Ryan Norton
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
12 #include "wx/object.h"
14 class wxToolTip
: public wxObject
18 wxToolTip(const wxString
&tip
) : m_text(tip
), m_window(0) {}
19 virtual ~wxToolTip() {}
23 void SetTip(const wxString
& tip
) { m_text
= tip
; }
24 const wxString
& GetTip() const { return m_text
; }
26 // the window we're associated with
27 wxWindow
*GetWindow() const { return m_window
; }
29 // controlling tooltip behaviour: globally change tooltip parameters
30 // enable or disable the tooltips globally
31 static void Enable(bool flag
) {}
32 // set the delay after which the tooltip appears
33 static void SetDelay(long milliseconds
) {}
36 void SetWindow(wxWindow
* window
) {m_window
= window
;}
37 friend class wxWindow
;
39 wxString m_text
; // tooltip text
40 wxWindow
*m_window
; // window we're associated with
42 DECLARE_ABSTRACT_CLASS(wxToolTip
)