Size Fitter#

class SizeFitter#

Sizes a panel to fit what it contains, rather than the other way round. See Panel::size_fitter().

ContentSizeFit horizontal_fit()#
void set_horizontal_fit(ContentSizeFit value)#

How the width of the panel is chosen.

ContentSizeFit vertical_fit()#
void set_vertical_fit(ContentSizeFit value)#

How the height of the panel is chosen.

enum struct ContentSizeFit#

How a size fitter sizes a panel along one direction.

enumerator unconstrained#

Leave the size alone.

enumerator min_size#

Use the smallest size the contents will fit in.

enumerator preferred_size#

Use the size the contents ask for.