Gtk.TreeView.prototype.get_tooltip_context
function get_tooltip_context(x:Number, y:Number, keyboard_tip:Boolean):Boolean { // Gjs wrapper for gtk_tree_view_get_tooltip_context() }
This function is supposed to be used in a Gtk.query-tooltip signal handler for Gtk.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.
Since 2.12
- 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
- Returns
whether or not the given tooltip context points to a row.