Gtk.Widget.prototype.size_allocate

function size_allocate(allocation:Gtk.Allocation):void {
    // Gjs wrapper for gtk_widget_size_allocate()
}

This function is only used by Gtk.Container subclasses, to assign a size and position to their child widgets.

In this function, the allocation may be adjusted. It will be forced to a 1x1 minimum size, and the adjust_size_allocation virtual method on the child will be used to adjust the allocation. Standard adjustments include removing the widget's margins, and applying the widget's Gtk.halign and Gtk.valign properties.

allocation

position and size to be allocated to widget