adjust_size_allocation


Description:

[ NoWrapper ]
public virtual void adjust_size_allocation (Orientation orientation, ref int minimum_size, ref int natural_size, ref int allocated_pos, ref int allocated_size)

Convert an initial size allocation assigned by a Container using size_allocate, into an actual size allocation to be used by the widget.

adjust_size_allocation adjusts to a child widget’s actual allocation from what a parent container computed for the child. The adjusted allocation must be entirely within the original allocation. In any custom implementation, chain up to the default Widget implementation of this method, which applies the margin and alignment properties of Widget. Chain up before performing your own adjustments so your own adjustments remove more allocation after the Widget base class has already removed margin and alignment. The natural size passed in should be adjusted in the same way as the allocated size, which allows adjustments to perform alignments or other changes based on natural size.