-
-
Notifications
You must be signed in to change notification settings - Fork 8
Tipped
João Cardoso edited this page Dec 5, 2019
·
4 revisions
Tipped is an abstract class which exposes methods for providing mouse-over widget tooltips. Inherits from the Callable class.
| Name | Description |
|---|---|
| SetTip (h1, p) | Sets the header and body of the tooltip. Both arguments are optional and, if simultaneously set to false or nil, no tooltip will be shown. |
| GetTip | Returns the tooltip's header and body. |
| GetTipAnchor | Returns an appropriate tooltip anchor given the frame position on the screen. |
| Name | Description |
|---|---|
| OnEnter | Fired on mouseover. |
| OnLeave | Fired when the frame loses mouse focus. |
someFrame:SetTip("Hello World!", "This is an hello world.")
// On mouse-over, displays a tooltip with both header and body text
someFrame:SetTip("Hello World!")
// On mouse-over, displays a tooltip only with a header
someFrame:SetTip(nil, "This is an hello world.")
// On mouse-over, displays a tooltip only with body text
someFrame:SetTip(nil)
// No tooltip is shownThis is the Sushi-3.1 wiki. Wiki Home