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