Gtk.TreeView.prototype.is_blank_at_pos
function is_blank_at_pos(x:Number, y:Number):Boolean { // Gjs wrapper for gtk_tree_view_is_blank_at_pos() }
Determine whether the point (x, y) in tree_view is blank, that is no cell content nor an expander arrow is drawn at the location. If so, the location can be considered as the background. You might wish to take special action on clicks on the background, such as clearing a current selection, having a custom context menu or starting rubber banding.
The x and y coordinate that are provided must be relative to bin_window coordinates. That is, x and y must come from an event on tree_view where <literal>event->window == gtk_tree_view_get_bin_window (<!-- -->)</literal>.
For converting widget coordinates (eg. the ones you get from GtkWidget::query-tooltip), please see Gtk.TreeView.prototype.convert_widget_to_bin_window_coords.
The path, column, cell_x and cell_y arguments will be filled in likewise as for Gtk.TreeView.prototype.get_path_at_pos. Please see Gtk.TreeView.prototype.get_path_at_pos for more information.
Since 3.0
- x
The x position to be identified (relative to bin_window)
- y
The y position to be identified (relative to bin_window)
- Returns
true if the area at the given coordinates is blank, false otherwise.