CellArea.getPreferredWidthForHeight
void getPreferredWidthForHeight(gtk.cell_area_context.CellAreaContext context, gtk.widget.Widget widget, int height, out int minimumWidth, out int naturalWidth)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 [gtk.cell_area.CellArea.getPreferredHeight]. It’s important to perform a series of [gtk.cell_area.CellArea.getPreferredHeight] requests with context first and then call [gtk.cell_area.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 [gtk.cell_area.CellArea.getPreferredHeight] again and then the full height of the requested rows checked again with [gtk.cell_area_context.CellAreaContext.getPreferredHeight].
Parameters
context | the #GtkCellAreaContext which has already been requested for widths. |
widget | the #GtkWidget where area will be rendering |
height | the height for which to check the width of this area |
minimumWidth | location to store the minimum width, or null |
naturalWidth | location to store the natural width, or null |