get_preferred_height_for_width


Description:

[ Version ( since = "3.0" ) ]
public virtual void get_preferred_height_for_width (CellAreaContext context, Widget widget, int width, out int minimum_height, out int natural_height)

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

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

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

Parameters:

this

a CellArea

context

the CellAreaContext which has already been requested for widths.

widget

the Widget where this will be rendering

width

the width for which to check the height of this area

minimum_height

location to store the minimum height, or null

natural_height

location to store the natural height, or null