connectQueryTooltip

fun connectQueryTooltip(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (x: Int, y: Int, keyboardMode: Boolean, tooltip: Tooltip) -> Boolean): <Error class: unknown class>

Emitted when the widgets tooltip is about to be shown.

This happens when the property@Gtk.Widget:has-tooltip property 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

Parameters

connectFlags

A combination of ConnectFlags

handler

the Callback to connect. Params: x the x coordinate of the cursor position where the request has been emitted, relative to @widget's left side; y the y coordinate of the cursor position where the request has been emitted, relative to @widget's top; keyboardMode true if the tooltip was triggered using the keyboard; tooltip a GtkTooltip. Returns true if @tooltip should be shown right now, false otherwise.