pub struct ButtonStyleConfig {
pub label: WidgetId,
pub is_pressed: Signal<bool>,
pub is_hovered: Signal<bool>,
pub is_focused: Signal<bool>,
pub is_disabled: Signal<bool>,
pub variant: ButtonVariant,
}Expand description
Inputs handed to a ButtonStyle::make_body call.
label is a pre-built subtree (the active style only arranges
chrome around it; it never builds the label itself). The four
boolean signals carry the live interaction state — the style can
.zip / .map them to derive a crate::styles::WidgetState if
it wants to pick between per-state recipes.
Fields§
§label: WidgetId§is_pressed: Signal<bool>§is_hovered: Signal<bool>§is_focused: Signal<bool>§is_disabled: Signal<bool>§variant: ButtonVariantTrait Implementations§
Source§impl Clone for ButtonStyleConfig
impl Clone for ButtonStyleConfig
Source§fn clone(&self) -> ButtonStyleConfig
fn clone(&self) -> ButtonStyleConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ButtonStyleConfig
impl !Send for ButtonStyleConfig
impl !Sync for ButtonStyleConfig
impl !UnwindSafe for ButtonStyleConfig
impl Freeze for ButtonStyleConfig
impl Unpin for ButtonStyleConfig
impl UnsafeUnpin for ButtonStyleConfig
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