pub struct Button { /* private fields */ }Implementations§
Trait Implementations§
Source§impl WidgetBase for Button
impl WidgetBase for Button
Source§impl WidgetExt for Button
impl WidgetExt for Button
Source§fn add_callback<F: 'static + FnMut(&Self)>(&self, event: Event, cb: F)where
Self: Sized,
fn add_callback<F: 'static + FnMut(&Self)>(&self, event: Event, cb: F)where
Self: Sized,
Set the callback for the widget
fn set_id(&self, id: &str)
fn with_id(self, id: &str) -> Selfwhere
Self: Sized,
fn set_class(&self, class: &str)
fn with_class(self, class: &str) -> Selfwhere
Self: Sized,
fn class(&self) -> String
fn with_label(self, title: &str) -> Selfwhere
Self: Sized,
Source§fn set_label_color(&self, color: Color)
fn set_label_color(&self, color: Color)
Sets the widget’s color
Source§fn label_color(&self) -> Color
fn label_color(&self) -> Color
Returns the widget’s label color
fn set_label_size(&self, size: u8)
fn label_size(&self) -> u8
fn set_label_font(&self, font: &str)
fn label_font(&self) -> String
Source§fn do_callback(&self, event: Event)
fn do_callback(&self, event: Event)
do callback
fn set_margin(&self, size: i32)
fn margin(&self) -> i32
fn set_padding(&self, size: i32)
fn padding(&self) -> i32
fn set_frame(&self, frame: FrameType)
fn parent(&self) -> Option<Box<dyn GroupExt>>
Auto Trait Implementations§
impl Freeze for Button
impl RefUnwindSafe for Button
impl !Send for Button
impl !Sync for Button
impl Unpin for Button
impl UnwindSafe for Button
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