Virtual Method

GtkWidgetget_preferred_width_for_height

since: 3.0

Declaration [src]

void
get_preferred_width_for_height (
  GtkWidget* widget,
  gint height,
  gint* minimum_width,
  gint* natural_width
)

Description [src]

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

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

height

Type: gint

The height which is available for allocation.

minimum_width

Type: gint*

Location for storing the minimum width, or NULL.

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

Type: gint*

Location for storing the natural width, or NULL.

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