Gtk.CellArea.prototype.get_preferred_height_for_width

function get_preferred_height_for_width(context:Gtk.CellAreaContext, widget:Gtk.Widget, width:Number):void {
    // Gjs wrapper for gtk_cell_area_get_preferred_height_for_width()
}

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.get_preferred_width. It's important to perform a series of Gtk.get_preferred_width requests with context first and then call Gtk.CellArea.prototype.get_preferred_height_for_width 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.get_preferred_width again and then the full width of the requested rows checked again with Gtk.get_preferred_width.

Since 3.0

context

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

widget

the Gtk.Widget where area will be rendering

width

the width for which to check the height of this area