Widget.connectQueryTooltip
gulong connectQueryTooltip(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == bool)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == int)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == int)))
&& (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] == bool)))
&& (Parameters!T.length < 4 || (ParameterStorageClassTuple!T[3] == ParameterStorageClass.none && is(Parameters!T[3] : gtk.tooltip.Tooltip)))
&& (Parameters!T.length < 5 || (ParameterStorageClassTuple!T[4] == ParameterStorageClass.none && is(Parameters!T[4] : gtk.widget.Widget)))
&& Parameters!T.length < 6)Connect to QueryTooltip signal.
Emitted when #GtkWidget:has-tooltip is true and the hover timeout has expired with the cursor hovering "above" widget; or emitted when widget got focus in keyboard mode.
Using the given coordinates, the signal handler should determine whether a tooltip should be shown for widget. If this is the case true should be returned, false otherwise. Note that if keyboard_mode is true, the values of x and y are undefined and should not be used.
The signal handler is free to manipulate tooltip with the therefore destined function calls.
Parameters
callback | signal callback delegate or function to connect bool callback(int x, int y, bool keyboardMode, gtk.tooltip.Tooltip tooltip, gtk.widget.Widget widget) x the x coordinate of the cursor position where the request has been emitted, relative to widget's left side (optional) y the y coordinate of the cursor position where the request has been emitted, relative to widget's top (optional) keyboardMode true if the tooltip was triggered using the keyboard (optional) tooltip a #GtkTooltip (optional) widget the instance the signal is connected to (optional) Returns true if tooltip should be shown right now, false otherwise. |
after | Yes.After to execute callback after default handler, No.After to execute before (default) |
Returns
Signal ID