Gtk.Widget.prototype.get_preferred_width_for_height

function get_preferred_width_for_height(height:Number):void {
    // Gjs wrapper for gtk_widget_get_preferred_width_for_height()
}

Retrieves a widget's minimum and natural width if it would be given the specified height.

The returned request will be modified by the GtkWidgetClass::adjust_size_request virtual method and by any Gtk.SizeGroup<!-- -->s that have been applied. That is, the returned request is the one that should be used for layout, not necessarily the one returned by the widget itself.

Since 3.0

height

the height which is available for allocation