Widget.sizeAllocate

This function is only used by #GtkContainer subclasses, to assign a size and position to their child widgets.

In this function, the allocation may be adjusted. It will be forced to a 1x1 minimum size, and the adjust_size_allocation virtual method on the child will be used to adjust the allocation. Standard adjustments include removing the widget’s margins, and applying the widget’s #GtkWidget:halign and #GtkWidget:valign properties.

For baseline support in containers you need to use gtk_widget_size_allocate_with_baseline() instead.

class Widget
void
sizeAllocate

Parameters

allocation GtkAllocation*

position and size to be allocated to @widget

Meta