Method

GtkWidgetget_preferred_height_for_width

since: 3.0

Declaration [src]

void
gtk_widget_get_preferred_height_for_width (
  GtkWidget* widget,
  gint width,
  gint* minimum_height,
  gint* natural_height
)

Description [src]

Retrieves a widget’s minimum and natural height if it would be given the specified width.

The returned request will be modified by the GtkWidgetClass::adjust_size_request virtual method and by any GtkSizeGroups that have been applied. That is, the returned request is the one that should be used for layout, not necessarily the one returned by the widget itself.

Available since: 3.0

Parameters

width

Type: gint

The width which is available for allocation.

minimum_height

Type: gint*

Location for storing the minimum height, or NULL.

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

Type: gint*

Location for storing the natural height, or NULL.

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