pub struct TextStyle {
pub font: FontSpec,
pub color: Color,
pub h_align: TextAlign,
pub v_align: TextAlign,
pub wrap: bool,
pub trimming: Trimming,
}Fields§
§font: FontSpec§color: Color§h_align: TextAlign§v_align: TextAlign§wrap: boolQuebra automática de linha (nas palavras; palavra maior que a largura, no caractere).
trimming: TrimmingReticências quando não couber (por caractere, por palavra ou nenhuma).
Trait Implementations§
impl StructuralPartialEq for TextStyle
Auto Trait Implementations§
impl Forget for TextStyle
impl Freeze for TextStyle
impl Move for TextStyle
impl RefUnwindSafe for TextStyle
impl Send for TextStyle
impl Sync for TextStyle
impl Unpin for TextStyle
impl UnsafeUnpin for TextStyle
impl UnwindSafe for TextStyle
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