pub struct TextInk {
pub text: f32,
pub muted: f32,
pub faint: f32,
}Expand description
The alpha of each text role over the appearance’s ink — white in dark, black in light.
Fields§
§text: f32§muted: f32§faint: f32Implementations§
Source§impl TextInk
impl TextInk
Sourcepub fn color(appearance: Appearance, alpha: f32) -> Hsla
pub fn color(appearance: Appearance, alpha: f32) -> Hsla
The role at alpha over appearance’s ink.
Sourcepub fn paint(&self, theme: &mut Theme)
pub fn paint(&self, theme: &mut Theme)
Writes Theme::text, Theme::text_muted and Theme::text_faint
for the theme’s appearance.
Trait Implementations§
impl Copy for TextInk
impl StructuralPartialEq for TextInk
Auto Trait Implementations§
impl Freeze for TextInk
impl RefUnwindSafe for TextInk
impl Send for TextInk
impl Sync for TextInk
impl Unpin for TextInk
impl UnsafeUnpin for TextInk
impl UnwindSafe for TextInk
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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