pub struct TextStyle {
pub font: Property<Font>,
pub font_size: Property<SizePixels>,
pub fill: Property<Color>,
pub underline: Property<bool>,
pub align_multiline: Property<TextAlignHorizontal>,
pub align_vertical: Property<TextAlignVertical>,
pub align_horizontal: Property<TextAlignHorizontal>,
}Fields§
§font: Property<Font>§font_size: Property<SizePixels>§fill: Property<Color>§underline: Property<bool>§align_multiline: Property<TextAlignHorizontal>§align_vertical: Property<TextAlignVertical>§align_horizontal: Property<TextAlignHorizontal>Trait Implementations§
source§impl Interpolatable for TextStyle
impl Interpolatable for TextStyle
fn interpolate(&self, _other: &Self, _t: f64) -> Self
source§impl<'a> Into<TextStyleMessage> for &'a TextStyle
impl<'a> Into<TextStyleMessage> for &'a TextStyle
source§fn into(self) -> TextStyleMessage
fn into(self) -> TextStyleMessage
Converts this type into the (usually inferred) input type.
source§impl PartialEq<TextStyleMessage> for TextStyle
impl PartialEq<TextStyleMessage> for TextStyle
source§fn eq(&self, other: &TextStyleMessage) -> bool
fn eq(&self, other: &TextStyleMessage) -> bool
This method tests for
self and other values to be equal, and is used
by ==.Auto Trait Implementations§
impl !RefUnwindSafe for TextStyle
impl !Send for TextStyle
impl !Sync for TextStyle
impl Unpin 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
source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.