pub struct ButtonConfiguration<'a> { /* private fields */ }Expand description
What a button style is told about the button it is drawing.
Implementations§
Source§impl ButtonConfiguration<'_>
impl ButtonConfiguration<'_>
Sourcepub fn label(&self) -> ViewHandle
pub fn label(&self) -> ViewHandle
The button’s own label, to place inside whatever the style draws.
Sourcepub fn is_pressed(&self) -> bool
pub fn is_pressed(&self) -> bool
Whether the button is being pressed right now.
The reason a style is a callback rather than a static description: SwiftUI re-runs it as this changes.
Auto Trait Implementations§
impl<'a> !Send for ButtonConfiguration<'a>
impl<'a> !Sync for ButtonConfiguration<'a>
impl<'a> Freeze for ButtonConfiguration<'a>
impl<'a> RefUnwindSafe for ButtonConfiguration<'a>
impl<'a> Unpin for ButtonConfiguration<'a>
impl<'a> UnsafeUnpin for ButtonConfiguration<'a>
impl<'a> UnwindSafe for ButtonConfiguration<'a>
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