set_wrap_policy


Description:

public void set_wrap_policy (WrapPolicy wrap_policy)

Sets the policy for line wrapping.

If set to [enum@Adw.WrapPolicy.natural], the box will wrap to the next line as soon as the previous line cannot fit any more children without shrinking them past their natural size.

If set to [enum@Adw.WrapPolicy.minimum], the box will try to fit as many children into each line as possible, shrinking them down to their minimum size before wrapping to the next line.

Parameters:

this

a wrap layout

wrap_policy

the new wrap policy