CellArea.getPreferredHeightForWidth

void getPreferredHeightForWidth(gtk.cell_area_context.CellAreaContext context, gtk.widget.Widget widget, int width, out int minimumHeight, out int naturalHeight)

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 [gtk.cell_area.CellArea.getPreferredWidth]. It’s important to perform a series of [gtk.cell_area.CellArea.getPreferredWidth] requests with context first and then call [gtk.cell_area.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 [gtk.cell_area.CellArea.getPreferredWidth] again and then the full width of the requested rows checked again with [gtk.cell_area_context.CellAreaContext.getPreferredWidth].

Parameters

contextthe [gtk.cell_area.CellArea]Context which has already been requested for widths.
widgetthe [gtk.widget.Widget] where area will be rendering
widththe width for which to check the height of this area
minimumHeightlocation to store the minimum height
naturalHeightlocation to store the natural height