Gtk.CellArea.prototype.get_preferred_width

function get_preferred_width(context:Gtk.CellAreaContext, widget:Gtk.Widget):void {
    // Gjs wrapper for gtk_cell_area_get_preferred_width()
}

Retrieves a cell area's initial minimum and natural width.

area will store some geometrical information in context along the way; when requesting sizes over an arbitrary number of rows, it's not important to check the minimum_width and natural_width of this call but rather to consult Gtk.get_preferred_width after a series of requests.

Since 3.0

context

the Gtk.CellAreaContext to perform this request with

widget

the Gtk.Widget where area will be rendering