Virtual Method

GtkWidgetget_preferred_width

since: 3.0

Declaration [src]

void
get_preferred_width (
  GtkWidget* widget,
  gint* minimum_width,
  gint* natural_width
)

Description [src]

Retrieves a widget’s initial minimum and natural width.

This call is specific to height-for-width requests.

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

minimum_width

Type: gint*

Location to store the minimum width, or NULL.

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

Type: gint*

Location to store the natural width, or NULL.

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