CellArea.getPreferredHeightForWidth

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

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

class CellArea
void
getPreferredHeightForWidth

Parameters

context CellAreaContext

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

widget Widget

the gtk.Widget where area will be rendering

width int

the width for which to check the height of this area

minimumHeight int

location to store the minimum height, or NULL

naturalHeight int

location to store the natural height, or NULL

Meta