distributeNaturalAllocation

Distributes extra_space to child sizes by bringing smaller children up to natural size first.

The remaining space will be added to the minimum_size member of the gtk.types.RequestedSize struct. If all sizes reach their natural size then the remaining space is returned.

int
distributeNaturalAllocation

Parameters

extraSpace int

Extra space to redistribute among children after subtracting minimum sizes and any child padding from the overall allocation

sizes gtk.types.RequestedSize[]

An array of structs with a client pointer and a minimum/natural size in the orientation of the allocation.

Return Value

Type: int

The remainder of extra_space after redistributing space to sizes.