get_path_at_pos


Description:

public bool get_path_at_pos (int x, int y, out TreePath? path, out unowned TreeViewColumn? column, out int cell_x, out int cell_y)

Finds the path at the point (x, y), relative to bin_window coordinates.

Note:

Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead

That is, x and y are relative to an events coordinates. Widget-relative coordinates must be converted using convert_widget_to_bin_window_coords. It is primarily for things like popup menus. If path is non-null, then it will be filled with the `GtkTreePath` at that point. This path should be freed with free. If column is non- null, then it will be filled with the column at that point. cell_x and cell_y return the coordinates relative to the cell background (i.e. the background_area passed to gtk_cell_renderer_render). This function is only meaningful if this is realized. Therefore this function will always return false if this is not realized or does not have a model.

For converting widget coordinates (eg. the ones you get from GtkWidget:GtkTreeView:query-tooltip), please see convert_widget_to_bin_window_coords.

Parameters:

this

A `GtkTreeView`.

x

The x position to be identified (relative to bin_window).

y

The y position to be identified (relative to bin_window).

path

A pointer to a `GtkTreePath` pointer to be filled in

column

A pointer to a `GtkTreeViewColumn` pointer to be filled in

cell_x

A pointer where the X coordinate relative to the cell can be placed

cell_y

A pointer where the Y coordinate relative to the cell can be placed

Returns:

true if a row exists at that coordinate.