Method

GtkCellRendererget_preferred_width_for_height

since: 3.0

Declaration [src]

void
gtk_cell_renderer_get_preferred_width_for_height (
  GtkCellRenderer* cell,
  GtkWidget* widget,
  gint height,
  gint* minimum_width,
  gint* natural_width
)

Description [src]

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

Available since: 3.0

Parameters

widget

Type: GtkWidget

The GtkWidget this cell will be rendering to.

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

Type: gint

The size which is available for allocation.

minimum_width

Type: gint*

Location for storing the minimum size, or NULL.

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

Type: gint*

Location for storing the preferred size, or NULL.

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