IconView.getItemAtPos

Finds the path at the point (x, y), relative to bin_window coordinates. In contrast to gtk_icon_view_get_path_at_pos(), this function also obtains the cell at the specified position. The returned path should be freed with gtk_tree_path_free(). See gtk_icon_view_convert_widget_to_bin_window_coords() for converting widget coordinates to bin_window coordinates. Since 2.8

class IconView
int
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. [allow-none]

cell CellRenderer

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

Return Value

Type: int

TRUE if an item exists at the specified position

Meta