Method

GtkCellAreaget_cell_allocation

since: 3.0

Declaration [src]

void
gtk_cell_area_get_cell_allocation (
  GtkCellArea* area,
  GtkCellAreaContext* context,
  GtkWidget* widget,
  GtkCellRenderer* renderer,
  const GdkRectangle* cell_area,
  GdkRectangle* allocation
)

Description [src]

Derives the allocation of renderer inside area if area were to be renderered in 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.
renderer

Type: GtkCellRenderer

The GtkCellRenderer to get the allocation for.

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.
allocation

Type: GdkRectangle

Where to store the allocation for renderer.

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