Widget.getAllocatedSize

Retrieves the widget’s allocated size.

This function returns the last values passed to Widget.sizeAllocateWithBaseline. The value differs from the size returned in Widget.getAllocation in that functions like 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 GtkAllocation

a pointer to a GtkAllocation to copy to

baseline int

a pointer to an integer to copy to

Meta

Since

3.20