Widget.getAllocatedSize

Retrieves the widget’s allocated size.

This function returns the last values passed to gtk_widget_size_allocate_with_baseline(). The value differs from the size returned in gtk_widget_get_allocation() in that functions like gtk_widget_set_halign() 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