TreeView.getTooltipContext

bool getTooltipContext(int x, int y, bool keyboardTip, out gtk.tree_model.TreeModel model, out gtk.tree_path.TreePath path, out gtk.tree_iter.TreeIter iter)

This function is supposed to be used in a ::query-tooltip signal handler for [gtk.tree_view.TreeView]. 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 a tree view row at the given coordinates (true) or not (false) for mouse tooltips. For keyboard tooltips the row returned will be the cursor row. 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. x and y will always be converted to be relative to tree_view’s bin_window if keyboard_tooltip is false.

Parameters

xthe x coordinate (relative to widget coordinates)
ythe y coordinate (relative to widget coordinates)
keyboardTipwhether this is a keyboard tooltip or not
modela pointer to receive a [gtk.tree_model.TreeModel]
patha pointer to receive a [gtk.tree_path.TreePath]
itera pointer to receive a [gtk.tree_iter.TreeIter]

Returns

whether or not the given tooltip context points to a row

Deprecated

Use [gtk.list_view.ListView] or [gtk.column_view.ColumnView] instead