Virtual Method

GtkCellAreaContextget_preferred_height_for_width

since: 3.0

Declaration [src]

void
get_preferred_height_for_width (
  GtkCellAreaContext* context,
  gint width,
  gint* minimum_height,
  gint* natural_height
)

Description [src]

Gets the accumulative preferred height for width for all rows which have been requested for the same said width with this context.

After gtk_cell_area_context_reset() is called and/or before ever requesting the size of a GtkCellArea, the returned values are -1.

Available since: 3.0

Parameters

width

Type: gint

A proposed width for allocation.

minimum_height

Type: gint*

Location to store the minimum height, or NULL.

The argument will be set by the function.
The argument can be NULL.
natural_height

Type: gint*

Location to store the natural height, or NULL.

The argument will be set by the function.
The argument can be NULL.