pub struct Button<'a> { /* private fields */ }
Implementations§
source§impl<'a> Button<'a>
impl<'a> Button<'a>
pub fn new(cx: &'a Controller, text: &str) -> Self
pub fn was_clicked(&self) -> bool
Trait Implementations§
source§impl Widget for Button<'_>
impl Widget for Button<'_>
fn sense(&mut self) -> Option<&mut Sense>
fn calc_constraints(&mut self, cx: &ConstraintsContext<'_>) -> Constraints
fn walk_children_mut(&mut self, f: &mut dyn FnMut(&mut dyn Widget))
fn layout_children(&mut self, cx: &mut LayoutContext<'_>)
fn handle_event(&mut self, event: &Event)
fn update(&mut self, delta_time: f64)
fn draw(&mut self, cx: &mut DrawContext<'_, '_>)
Auto Trait Implementations§
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