Method

GtkWidgetget_preferred_height_and_baseline_for_width

Declaration [src]

void
gtk_widget_get_preferred_height_and_baseline_for_width (
  GtkWidget* widget,
  gint width,
  gint* minimum_height,
  gint* natural_height,
  gint* minimum_baseline,
  gint* natural_baseline
)

Description [src]

Retrieves a widget’s minimum and natural height and the corresponding baselines if it would be given the specified width, or the default height if width is -1. The baselines may be -1 which means that no baseline is requested for this widget.

The returned request will be modified by the GtkWidgetClass::adjust_size_request and GtkWidgetClass::adjust_baseline_request virtual methods 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.10

Parameters

width gint
 

The width which is available for allocation, or -1 if none.

minimum_height gint*
 

Location for storing the minimum height, or NULL.

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

Location for storing the natural height, or NULL.

 The argument will be set by the function.
 The argument can be NULL.
minimum_baseline gint*
 

Location for storing the baseline for the minimum height, or NULL.

 The argument will be set by the function.
 The argument can be NULL.
natural_baseline gint*
 

Location for storing the baseline for the natural height, or NULL.

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