get_preferred_width_for_height


Description:

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

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

this stores some geometrical information in context along the way while calling get_preferred_height. It’s important to perform a series of get_preferred_height requests with context first and then call get_preferred_width_for_height on each cell area individually to get the height for width of each fully requested row.

If at some point, the height of a single row changes, it should be requested with get_preferred_height again and then the full height of the requested rows checked again with get_preferred_height.

Parameters:

this

a CellArea

context

the CellAreaContext which has already been requested for widths.

widget

the Widget where this will be rendering

height

the height for which to check the width of this area

minimum_width

location to store the minimum width, or null

natural_width

location to store the natural width, or null




2022 vala-language.org