get_preferred_width_for_height


Description:

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 `GtkCellArea`

context

the `GtkCellArea`Context which has already been requested for widths.

widget

the `GtkWidget` 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

natural_width

location to store the natural width