Enumeration (GI Enum)

Gtk-4.0GtkNaturalWrapModeSince 4.6

Options for selecting a different wrap mode for natural size requests.

See for example the Gtk.Label.natural_wrap_mode property.

4.6

Index

Enumeration Members

Enumeration Members

INHERIT: number

Inherit the minimum size request. In particular, this should be used with Pango.WrapMode.CHAR.

NONE: number

Try not to wrap the text. This mode is the closest to GTK3's behavior but can lead to a wide label leaving lots of empty space below the text.

WORD: number

Attempt to wrap at word boundaries. This is useful in particular when using Pango.WrapMode.WORD_CHAR as the wrap mode.