pub struct ComponentKit {
pub states: States,
pub padding_x: f32,
pub padding_y: f32,
pub height: f32,
pub width: f32,
pub font_size: f32,
pub offset: f32,
pub indicator_side: Side,
pub align: Align,
pub opacity: f32,
pub shadow: Shadow,
}Expand description
The data of a component: its boxes per state, and what does not change with the state.
Fields§
§states: States§padding_x: f32Points between the label and the part’s side edges.
padding_y: f32Points between the content and the part’s top and bottom edges
(a frame around content, Component::show).
height: f32Points; zero when the component has no fixed height.
width: f32Points; zero when the component has no fixed width.
font_size: f32Points: the size of its text (font-size); zero when not given,
the widget’s own size then.
offset: f32Points: how far the part sits from the edge it is drawn on, towards the outside (a side area’s grip, off its area’s edge).
indicator_side: Side§align: Align§opacity: f32How opaque the whole part is, 0 to 1 (1 when not given): a backdrop’s strength.
shadow: ShadowThe shadow it casts (shadow-offset-x, shadow-offset-y,
shadow-blur, shadow-spread, shadow-color); none when not
given.
Trait Implementations§
Source§impl Clone for ComponentKit
impl Clone for ComponentKit
Source§fn clone(&self) -> ComponentKit
fn clone(&self) -> ComponentKit
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ComponentKit
impl Debug for ComponentKit
Source§impl PartialEq for ComponentKit
impl PartialEq for ComponentKit
impl StructuralPartialEq for ComponentKit
Auto Trait Implementations§
impl Freeze for ComponentKit
impl RefUnwindSafe for ComponentKit
impl Send for ComponentKit
impl Sync for ComponentKit
impl Unpin for ComponentKit
impl UnsafeUnpin for ComponentKit
impl UnwindSafe for ComponentKit
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
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>
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>
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