Enum egui::TextWrapMode
source · pub enum TextWrapMode {
Extend,
Wrap,
Truncate,
}
Expand description
How to wrap and elide text.
This enum is used in high-level APIs where providing a TextWrapping
is too verbose.
Variants§
Extend
The text should expand the Ui
size when reaching its boundary.
Wrap
The text should wrap to the next line when reaching the Ui
boundary.
Truncate
The text should be elided using “…” when reaching the Ui
boundary.
Note that using TextWrapping
and LayoutJob
offers more control over the elision.
Trait Implementations§
source§impl Clone for TextWrapMode
impl Clone for TextWrapMode
source§fn clone(&self) -> TextWrapMode
fn clone(&self) -> TextWrapMode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TextWrapMode
impl Debug for TextWrapMode
source§impl PartialEq for TextWrapMode
impl PartialEq for TextWrapMode
source§fn eq(&self, other: &TextWrapMode) -> bool
fn eq(&self, other: &TextWrapMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TextWrapMode
impl Eq for TextWrapMode
impl StructuralPartialEq for TextWrapMode
Auto Trait Implementations§
impl Freeze for TextWrapMode
impl RefUnwindSafe for TextWrapMode
impl Send for TextWrapMode
impl Sync for TextWrapMode
impl Unpin for TextWrapMode
impl UnwindSafe for TextWrapMode
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