set_justify


Description:

public void set_justify (JustifyMode justify)

Determines whether and how each complete line should be stretched to fill the entire widget.

If set to [enum@Adw.JustifyMode.fill], each widget in the line will be stretched, keeping consistent spacing, so that the line fills the entire widget.

If set to [enum@Adw.JustifyMode.spread], the spacing between widgets will be increased, keeping widget sizes intact. The first and last widget will be aligned with the beginning and end of the line. If the line only contains a single widget, it will be stretched regardless.

If set to [enum@Adw.JustifyMode.none], the line will not be stretched and the children will be placed together within the line, according to [property@WrapBox:align].

By default this doesn't affect the last line, as it will be incomplete. Use [property@WrapBox:justify-last-line] to justify it as well.

Parameters:

this

a wrap box

justify

the justify mode