Method

GtkIconViewget_item_at_pos

since: 2.8

Declaration [src]

gboolean
gtk_icon_view_get_item_at_pos (
  GtkIconView* icon_view,
  gint x,
  gint y,
  GtkTreePath** path,
  GtkCellRenderer** cell
)

Description [src]

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.

Available since: 2.8

Parameters

x

Type: gint

The x position to be identified.

y

Type: gint

The y position to be identified.

path

Type: GtkTreePath

Return location for the path, or NULL.

The argument will be set by the function.
The argument can be NULL.
The caller of the method takes ownership of the returned data, and is responsible for freeing it.
cell

Type: GtkCellRenderer

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

The argument will be set by the function.
The argument can be NULL.
The returned data is owned by the instance.

Return value

Type: gboolean

TRUE if an item exists at the specified position.