pub struct Button<'a> { /* private fields */ }Implementations§
Source§impl<'a> Button<'a>
impl<'a> Button<'a>
pub fn new(label: impl Into<WidgetText>) -> Self
pub fn variant(self, variant: ButtonVariant) -> Self
pub fn size(self, size: ButtonSize) -> Self
pub fn scale(self, scale: ButtonScale) -> Self
pub fn radius(self, radius: ButtonRadius) -> Self
pub fn enabled(self, enabled: bool) -> Self
pub fn loading(self, loading: bool) -> Self
pub fn high_contrast(self, high_contrast: bool) -> Self
pub fn accent_color(self, color: Color32) -> Self
pub fn color(self, color: Color32) -> Self
pub fn style(self, style: ButtonStyle) -> Self
pub fn icon(self, icon: &'a dyn Fn(&Painter, Pos2, f32, Color32)) -> Self
pub fn trailing_icon( self, icon: &'a dyn Fn(&Painter, Pos2, f32, Color32), ) -> Self
pub fn justify(self, justify: ButtonJustify) -> Self
pub fn min_width(self, width: f32) -> Self
pub fn show(self, ui: &mut Ui, theme: &Theme) -> Response
Trait Implementations§
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> UnsafeUnpin 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