Struct comfy_wgpu::egui::epaint::text::TextWrapping
pub struct TextWrapping {
pub max_width: f32,
pub max_rows: usize,
pub break_anywhere: bool,
pub overflow_character: Option<char>,
}Fields§
§max_width: f32Try 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: usizeMaximum amount of rows the text should have.
Set to 0 to disable this.
break_anywhere: boolDon’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§
§impl Clone for TextWrapping
impl Clone for TextWrapping
§fn clone(&self) -> TextWrapping
fn clone(&self) -> TextWrapping
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 more§impl Debug for TextWrapping
impl Debug for TextWrapping
§impl Default for TextWrapping
impl Default for TextWrapping
§fn default() -> TextWrapping
fn default() -> TextWrapping
Returns the “default value” for a type. Read more
§impl Hash for TextWrapping
impl Hash for TextWrapping
§impl PartialEq<TextWrapping> for TextWrapping
impl PartialEq<TextWrapping> for TextWrapping
§fn eq(&self, other: &TextWrapping) -> bool
fn eq(&self, other: &TextWrapping) -> bool
This method tests for
self and other values to be equal, and is used
by ==.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§
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