Gtk.CellAreaContext.prototype.get_preferred_height_for_width

function get_preferred_height_for_width(width:Number):void {
    // Gjs wrapper for gtk_cell_area_context_get_preferred_height_for_width()
}

Gets the accumulative preferred height for width for all rows which have been requested for the same said width with this context.

After Gtk.reset is called and/or before ever requesting the size of a Gtk.CellArea, the returned values are -1.

Since 3.0

width

a proposed width for allocation