#[repr(u32)]pub enum TextWrap {
NoWrap = 0,
WordWrap = 1,
CharWrap = 2,
}
Expand description
This enum describes the how the text wrap if it is too wide to fit in the Text
width.
Variants§
NoWrap = 0
The text won’t wrap, but instead will overflow.
WordWrap = 1
The text will be wrapped at word boundaries if possible, or at any location for very long words.
CharWrap = 2
The text will be wrapped at any character. Currently only supported by the Qt and Software renderers.
Trait Implementations§
impl Copy for TextWrap
impl Eq for TextWrap
impl StructuralPartialEq for TextWrap
Auto Trait Implementations§
impl Freeze for TextWrap
impl RefUnwindSafe for TextWrap
impl Send for TextWrap
impl Sync for TextWrap
impl Unpin for TextWrap
impl UnwindSafe for TextWrap
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Converts the given value to a
SharedString
.