pub struct BoxStyle {
pub fill: Color32,
pub border_color: Color32,
pub border_width: f32,
pub radius: f32,
pub text: Color32,
pub indicator_color: Color32,
pub indicator_size: f32,
pub ring_color: Color32,
pub ring_width: f32,
pub ring_offset: f32,
}Expand description
What a part looks like in one state.
Fields§
§fill: Color32§border_color: Color32§border_width: f32Points; snapped to whole physical pixels when painted.
radius: f32§text: Color32§indicator_color: Color32The bar on one side of the box (ComponentKit::indicator_side);
none when its size is zero or its colour transparent.
indicator_size: f32§ring_color: Color32The focus ring (usually given by the focus state only): an
outline ring_offset points outside the box (inside when
negative), none when its width is zero.
ring_width: f32§ring_offset: f32Trait Implementations§
impl Copy for BoxStyle
impl StructuralPartialEq for BoxStyle
Auto Trait Implementations§
impl Freeze for BoxStyle
impl RefUnwindSafe for BoxStyle
impl Send for BoxStyle
impl Sync for BoxStyle
impl Unpin for BoxStyle
impl UnsafeUnpin for BoxStyle
impl UnwindSafe for BoxStyle
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