pub struct States(/* private fields */);Expand description
A component’s boxes for every combination of states, merged when the
kit is compiled, and per tone when its tokens give tones
(Tone, kit/tone.rs).
Implementations§
Source§impl States
impl States
Sourcepub fn get(&self, state: State) -> &BoxStyle
pub fn get(&self, state: State) -> &BoxStyle
The box of a state, in the tone it carries (State::toned).
Sourcepub fn widest_border(&self) -> f32
pub fn widest_border(&self) -> f32
The widest border among every state and tone, in points: the room a part keeps for its border whatever its state, so that a state restyles the border (its colour, its width up to this one) without moving the content. A part with no border at rest still keeps it, the border then present but invisible.
Trait Implementations§
impl StructuralPartialEq for States
Auto Trait Implementations§
impl Freeze for States
impl RefUnwindSafe for States
impl Send for States
impl Sync for States
impl Unpin for States
impl UnsafeUnpin for States
impl UnwindSafe for States
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§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