pub struct Button<'a> { /* private fields */ }Expand description
Button widget.
Implementations§
source§impl<'a> Button<'a>
impl<'a> Button<'a>
pub fn styles(self, styles: ButtonStyle) -> Self
pub fn style(self, style: impl Into<Style>) -> Self
sourcepub fn focus_style(self, style: impl Into<Style>) -> Self
pub fn focus_style(self, style: impl Into<Style>) -> Self
Style when focused.
pub fn armed_style(self, style: impl Into<Style>) -> Self
pub fn text(self, text: impl Into<Text<'a>>) -> Self
pub fn block(self, block: Block<'a>) -> Self
Trait Implementations§
source§impl<'a> StatefulWidget for Button<'a>
impl<'a> StatefulWidget for Button<'a>
source§impl<'a> StatefulWidgetRef for Button<'a>
impl<'a> StatefulWidgetRef for Button<'a>
§type State = ButtonState
type State = ButtonState
State associated with the stateful widget. Read more
Auto Trait Implementations§
impl<'a> Freeze for Button<'a>
impl<'a> RefUnwindSafe for Button<'a>
impl<'a> Send for Button<'a>
impl<'a> Sync for Button<'a>
impl<'a> Unpin for Button<'a>
impl<'a> UnwindSafe for Button<'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
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