pub struct ButtonResponse {
pub clicked: bool,
pub hovered: bool,
}Expand description
Response from a button widget.
Fields§
§clicked: boolWhether the button was clicked in this frame.
hovered: boolWhether the cursor is hovering over the button.
Trait Implementations§
Source§impl Clone for ButtonResponse
impl Clone for ButtonResponse
Source§fn clone(&self) -> ButtonResponse
fn clone(&self) -> ButtonResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ButtonResponse
impl Debug for ButtonResponse
Source§impl Default for ButtonResponse
impl Default for ButtonResponse
Source§fn default() -> ButtonResponse
fn default() -> ButtonResponse
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ButtonResponse
impl RefUnwindSafe for ButtonResponse
impl Send for ButtonResponse
impl Sync for ButtonResponse
impl Unpin for ButtonResponse
impl UnsafeUnpin for ButtonResponse
impl UnwindSafe for ButtonResponse
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