Widget.setAllocation

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 Widget.sizeAllocate instead of Widget.setAllocation. The GtkWidgetClass::adjust_size_allocation virtual method adjusts the allocation inside Widget.sizeAllocate to create an adjusted allocation.

class Widget
void
setAllocation

Parameters

allocation GtkAllocation*

a pointer to a GtkAllocation to copy from

Meta

Since

2.18