Gtk.CellRenderer.prototype.get_preferred_size

function get_preferred_size(widget:Gtk.Widget):void {
    // Gjs wrapper for gtk_cell_renderer_get_preferred_size()
}

Retrieves the minimum and natural size of a cell taking into account the widget's preference for height-for-width management.

Since 3.0

widget

the Gtk.Widget this cell will be rendering to