Widget.setAllocation
void setAllocation(gtk.types.Allocation 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 #GtkContainer, you want to use [gtk.widget.Widget.sizeAllocate] instead of [gtk.widget.Widget.setAllocation]. The GtkWidgetClass::adjust_size_allocation virtual method adjusts the allocation inside [gtk.widget.Widget.sizeAllocate] to create an adjusted allocation.
Parameters
allocation | a pointer to a #GtkAllocation to copy from |