pub struct ButtonBuilder { /* private fields */ }
Expand description
Builder struct to create buttons which can do restyles and/or relayouts
Implementations§
Source§impl ButtonBuilder
impl ButtonBuilder
Source§impl ButtonBuilder
impl ButtonBuilder
pub fn new() -> Self
pub fn push_restyle(self, restyle: impl Restyle) -> Self
pub fn push_relayout(self, relayout: impl Relayout + Serialize) -> Self
Sourcepub fn animation(self, animation: Animation) -> Self
pub fn animation(self, animation: Animation) -> Self
Sets the animation configuration for the button
pub fn build(self) -> Result<Button, ControlBuilderError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ButtonBuilder
impl RefUnwindSafe for ButtonBuilder
impl Send for ButtonBuilder
impl Sync for ButtonBuilder
impl Unpin for ButtonBuilder
impl UnwindSafe for ButtonBuilder
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