pub struct TextVisuals {
pub font_id: FontId,
pub color: Color32,
pub underline: Stroke,
pub strikethrough: Stroke,
}Expand description
General text style
Fields§
§font_id: FontIdFont used
color: Color32Font color
underline: StrokeText decoration
strikethrough: StrokeAuto Trait Implementations§
impl Freeze for TextVisuals
impl RefUnwindSafe for TextVisuals
impl Send for TextVisuals
impl Sync for TextVisuals
impl Unpin for TextVisuals
impl UnsafeUnpin for TextVisuals
impl UnwindSafe for TextVisuals
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more