IconView.getItemAtPos

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

class IconView
bool
getItemAtPos
(
int x
,
int y
,,)

Parameters

x int

The x position to be identified

y int

The y position to be identified

path TreePath

Return location for the path, or NULL

cell 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

Meta