pub struct TextStyle {
pub font: Property<Font>,
pub font_size: Property<Size>,
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<Size>§fill: Property<Color>§underline: Property<bool>§align_multiline: Property<TextAlignHorizontal>§align_vertical: Property<TextAlignVertical>§align_horizontal: Property<TextAlignHorizontal>Trait Implementations§
source§impl CoercionRules for TextStyle
impl CoercionRules for TextStyle
source§impl<'de> Deserialize<'de> for TextStyle
impl<'de> Deserialize<'de> for TextStyle
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl HelperFunctions for TextStyle
impl HelperFunctions for TextStyle
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§impl ToPaxValue for TextStyle
impl ToPaxValue for TextStyle
fn to_pax_value(self) -> PaxValue
impl ImplToFromPaxAny for TextStyle
Auto Trait Implementations§
impl Freeze for TextStyle
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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.