IconView.getItemAtPos

Finds the path at the point (x, y), relative to bin_window coordinates. In contrast to gtk.icon_view.IconView.getPathAtPos, this function also obtains the cell at the specified position. The returned path should be freed with gtk.tree_path.TreePath.free. See gtk.icon_view.IconView.convertWidgetToBinWindowCoords for converting widget coordinates to bin_window coordinates.

class IconView
bool
getItemAtPos

Parameters

x int

The x position to be identified

y int

The y position to be identified

path gtk.tree_path.TreePath

Return location for the path, or null

cell gtk.cell_renderer.CellRenderer

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

Return Value

Type: bool

true if an item exists at the specified position