get_item_at_pos


Description:

[ Version ( since = "2.8" ) ]
public bool get_item_at_pos (int x, int y, out TreePath path, out unowned CellRenderer cell)

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

In contrast to get_path_at_pos, this function also obtains the cell at the specified position. The returned path should be freed with free. See convert_widget_to_bin_window_coords for converting widget coordinates to bin_window coordinates.

Parameters:

this

A IconView.

x

The x position to be identified

y

The y position to be identified

path

Return location for the path, or null

cell

Return location for the renderer responsible for the cell at (x, y), or null

Returns:

true if an item exists at the specified position




2022 vala-language.org