Gtk.CellArea::get_preferred_width_for_height

function vfunc_get_preferred_width_for_height(context:Gtk.CellAreaContext, widget:Gtk.Widget, height:Number):void {
}

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

Since 3.0

context

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

widget

the Gtk.Widget where area will be rendering

height

the height for which to check the width of this area