Widget.getAllocatedSize

Retrieves the widget’s allocated size.

This function returns the last values passed to gtk.widget.Widget.sizeAllocateWithBaseline. The value differs from the size returned in gtk.widget.Widget.getAllocation in that functions like gtk.widget.Widget.setHalign can adjust the allocation, but not the value returned by this function.

If a widget is not visible, its allocated size is 0.

class Widget
void
getAllocatedSize

Parameters

allocation gtk.types.Allocation

a pointer to a #GtkAllocation to copy to

baseline int

a pointer to an integer to copy to