pub struct KitPart {
pub component: String,
pub shape: String,
pub state: String,
pub fill: String,
pub border: String,
pub radius: f32,
pub text: String,
pub around: bool,
/* private fields */
}Expand description
A part painted through a kit component’s handler.
Fields§
§component: StringThe component (button, list-row).
shape: StringThe handler that drew it (box, underline).
state: StringThe states its box was taken in (hover+focus, rest).
fill: StringThe box: fill, border, radius, text.
border: String§radius: f32§text: String§around: boolThe part lies around the widget (a row around a cell) rather than being the widget’s own box.
Trait Implementations§
impl StructuralPartialEq for KitPart
Auto Trait Implementations§
impl Freeze for KitPart
impl RefUnwindSafe for KitPart
impl Send for KitPart
impl Sync for KitPart
impl Unpin for KitPart
impl UnsafeUnpin for KitPart
impl UnwindSafe for KitPart
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