]>
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"
16 class wxToolTip
: public wxObject
20 wxToolTip(const wxString
&tip
);
25 void SetTip(const wxString
& tip
);
26 const wxString
& GetTip() const;
28 // the window we're associated with
29 wxWindow
*GetWindow() const;
31 // controlling tooltip behaviour: globally change tooltip parameters
32 // enable or disable the tooltips globally
33 static void Enable(bool flag
);
34 // set the delay after which the tooltip appears
35 static void SetDelay(long milliseconds
);
38 void SetWindow(wxWindow
* window
);
40 friend class wxWindow
;
42 wxString m_text
; // tooltip text
43 wxWindow
*m_window
; // window we're associated with
45 DECLARE_ABSTRACT_CLASS(wxToolTip
)