CellArea.getPreferredWidthForHeight

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

area stores some geometrical information in context along the way while calling CellArea.getPreferredHeight. It’s important to perform a series of CellArea.getPreferredHeight requests with context first and then call CellArea.getPreferredWidthForHeight 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 CellArea.getPreferredHeight again and then the full height of the requested rows checked again with CellArea.contextGetPreferredHeight.

class CellArea
void
getPreferredWidthForHeight

Parameters

context CellAreaContext

the gtk.CellAreaContext which has already been requested for widths.

widget Widget

the gtk.Widget where area will be rendering

height int

the height for which to check the width of this area

minimumWidth int

location to store the minimum width, or NULL

naturalWidth int

location to store the natural width, or NULL

Meta