Struct me3_framework::overlay::epaint::text::TextWrapping
source · [−]pub struct TextWrapping {
pub max_width: f32,
pub max_rows: usize,
pub break_anywhere: bool,
pub overflow_character: Option<char>,
}
Fields
max_width: f32
Try to break text so that no row is wider than this.
Set to f32::INFINITY
to turn off wrapping.
Note that \n
always produces a new line.
max_rows: usize
Maximum amount of rows the text should have.
Set to 0
to disable this.
break_anywhere: bool
Don’t try to break text at an appropriate place.
overflow_character: Option<char>
Character to use to represent clipped text, …
for example, which is the default.
Trait Implementations
sourceimpl Clone for TextWrapping
impl Clone for TextWrapping
sourcefn clone(&self) -> TextWrapping
fn clone(&self) -> TextWrapping
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for TextWrapping
impl Debug for TextWrapping
sourceimpl Default for TextWrapping
impl Default for TextWrapping
sourcefn default() -> TextWrapping
fn default() -> TextWrapping
Returns the “default value” for a type. Read more
sourceimpl Hash for TextWrapping
impl Hash for TextWrapping
sourceimpl PartialEq<TextWrapping> for TextWrapping
impl PartialEq<TextWrapping> for TextWrapping
sourcefn eq(&self, other: &TextWrapping) -> bool
fn eq(&self, other: &TextWrapping) -> bool
impl StructuralPartialEq for TextWrapping
Auto Trait Implementations
impl RefUnwindSafe for TextWrapping
impl Send for TextWrapping
impl Sync for TextWrapping
impl Unpin for TextWrapping
impl UnwindSafe for TextWrapping
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more