Gtk.Widget.prototype.set_allocation
function set_allocation(allocation:Gtk.Allocation):void { // Gjs wrapper for gtk_widget_set_allocation() }
Sets the widget's allocation. This should not be used directly, but from within a widget's size_allocate method.
The allocation set should be the "adjusted" or actual allocation. If you're implementing a Gtk.Container, you want to use Gtk.size_allocate instead of Gtk.Widget.prototype.set_allocation. The GtkWidgetClass::adjust_size_allocation virtual method adjusts the allocation inside Gtk.size_allocate to create an adjusted allocation.
Since 2.18
- allocation
a pointer to a Gtk.Allocation to copy from