Method

GtkCellAreaget_cell_at_position

since: 3.0

Declaration [src]

GtkCellRenderer*
gtk_cell_area_get_cell_at_position (
  GtkCellArea* area,
  GtkCellAreaContext* context,
  GtkWidget* widget,
  const GdkRectangle* cell_area,
  gint x,
  gint y,
  GdkRectangle* alloc_area
)

Description [src]

Gets the GtkCellRenderer at x and y coordinates inside area and optionally returns the full cell allocation for it inside cell_area.

Available since: 3.0

Parameters

context

Type: GtkCellAreaContext

The GtkCellAreaContext used to hold sizes for area.

The data is owned by the caller of the method.
widget

Type: GtkWidget

The GtkWidget that area is rendering on.

The data is owned by the caller of the method.
cell_area

Type: GdkRectangle

The whole allocated area for area in widget for this row.

The data is owned by the caller of the method.
x

Type: gint

The x position.

y

Type: gint

The y position.

alloc_area

Type: GdkRectangle

Where to store the inner allocated area of the returned cell renderer, 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: GtkCellRenderer

The GtkCellRenderer at x and y.

The returned data is owned by the instance.