get_tooltip_context


Description:

public bool get_tooltip_context (int x, int y, bool keyboard_tip, out unowned TreeModel model, out TreePath path, out TreeIter iter)

This function is supposed to be used in a `GtkWidget:GtkIconView:query-tooltip` signal handler for `GtkIconView`.

The x, y and keyboard_tip values which are received in the signal handler, should be passed to this function without modification.

The return value indicates whether there is an icon view item at the given coordinates (true) or not ( false) for mouse tooltips. For keyboard tooltips the item returned will be the cursor item. When true, then any of model, path and iter which have been provided will be set to point to that row and the corresponding model.

Parameters:

this

an `GtkIconView`

x

the x coordinate (relative to widget coordinates)

y

the y coordinate (relative to widget coordinates)

keyboard_tip

whether this is a keyboard tooltip or not

model

a pointer to receive a `GtkTreeModel`

path

a pointer to receive a `GtkTreePath`

iter

a pointer to receive a `GtkTreeIter`

Returns:

whether or not the given tooltip context points to an item