get_preferred_width_for_height


Description:

[ Version ( since = "3.0" ) ]
public virtual void get_preferred_width_for_height (int height, out int minimum_width, out int natural_width)

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:GtkWidget:adjust_size_request virtual method and by any SizeGroups 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.

Parameters:

this

a Widget instance

height

the height which is available for allocation

minimum_width

location for storing the minimum width, or null

natural_width

location for storing the natural width, or null




2022 vala-language.org