Method

GtkCellRendererget_preferred_height_for_width

Declaration [src]

void
gtk_cell_renderer_get_preferred_height_for_width (
  GtkCellRenderer* cell,
  GtkWidget* widget,
  gint width,
  gint* minimum_height,
  gint* natural_height
)

Description [src]

Retreives a cell renderers’s minimum and natural height if it were rendered to widget with the specified width.

Available since:3.0

Parameters

widget GtkWidget
 

The GtkWidget this cell will be rendering to.

 The data is owned by the caller of the function.
width gint
 

The size which is available for allocation.

minimum_height gint*
 

Location for storing the minimum size, or NULL.

 The argument will be set by the function.
 The argument can be NULL.
 The instance takes ownership of the data, and is responsible for freeing it.
natural_height gint*
 

Location for storing the preferred size, or NULL.

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