StatusIcon.connectQueryTooltip

Connect to QueryTooltip signal.

Emitted when the hover timeout has expired with the cursor hovering above status_icon; or emitted when status_icon got focus in keyboard mode.

Using the given coordinates, the signal handler should determine whether a tooltip should be shown for status_icon. 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.

Whether this signal is emitted is platform-dependent. For plain text tooltips, use #GtkStatusIcon:tooltip-text in preference.

class StatusIcon
gulong
connectQueryTooltip
(
T
)
(,
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.status_icon.StatusIcon)
)
)
&&
Parameters!T.length < 6
)

Parameters

callback T

signal callback delegate or function to connect

bool callback(int x, int y, bool keyboardMode, gtk.tooltip.Tooltip tooltip, gtk.status_icon.StatusIcon statusIcon)

x the x coordinate of the cursor position where the request has been emitted, relative to status_icon (optional)

y the y coordinate of the cursor position where the request has been emitted, relative to status_icon (optional)

keyboardMode true if the tooltip was trigged using the keyboard (optional)

tooltip a #GtkTooltip (optional)

statusIcon the instance the signal is connected to (optional)

Returns true if tooltip should be shown right now, false otherwise.

after Flag!"After"

Yes.After to execute callback after default handler, No.After to execute before (default)

Return Value

Type: gulong

Signal ID