query_tooltip
Description:
public virtual signal bool query_tooltip (double x, double y, bool keyboard_tooltip, Tooltip tooltip)
Emitted when the mouse has paused over the item for a certain amount of time, or the tooltip was requested via the keyboard.
Note that if keyboard_mode
is true, the values of x
and y
are
undefined and should not be used.
If the item wants to display a tooltip it should update tooltip
and return true.
Parameters:
x |
the x coordinate of the mouse. |
y |
the y coordinate of the mouse. |
tooltip |
a Tooltip. |
keyboard_mode |
true if the tooltip was triggered using the keyboard. |
Returns:
true if the item has set a tooltip to show. |