pub struct ButtonStatus {
pub event_available: bool,
pub clicked: bool,
pub pressed: bool,
}
Expand description
The button has several status fields which change during operation.
Fields§
§event_available: bool
An event (clicked or pressed) is available on the button.
clicked: bool
The button has been clicked (pressed and released).
pressed: bool
The button is pressed presently.
Trait Implementations§
Source§impl Debug for ButtonStatus
impl Debug for ButtonStatus
Source§impl From<ButtonStatus> for u8
impl From<ButtonStatus> for u8
Source§fn from(val: ButtonStatus) -> u8
fn from(val: ButtonStatus) -> u8
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ButtonStatus
impl RefUnwindSafe for ButtonStatus
impl Send for ButtonStatus
impl Sync for ButtonStatus
impl Unpin for ButtonStatus
impl UnwindSafe for ButtonStatus
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