ferroui_base/media/text_wrapping.rs
1/// Controls the wrapping mode of text.
2#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Hash)]
3pub enum TextWrapping {
4 /// Text should not wrap.
5 #[default]
6 NoWrap,
7 /// Text can wrap.
8 Wrap,
9 /// Line-breaking occurs if the line overflows the available block width.
10 /// However, a line may overflow the block width if the line breaking
11 /// algorithm cannot determine a break opportunity, as in the case of a very
12 /// long word.
13 WrapWithOverflow,
14}