pub struct IconButtonResponse {
pub clicked: bool,
pub hovered: bool,
pub state: WidgetState,
}Expand description
Response from icon button interaction
Fields§
§clicked: boolWhether the button was clicked this frame
hovered: boolWhether the button is hovered
state: WidgetStateCurrent interaction state (Normal, Hovered, Pressed)
Trait Implementations§
Source§impl Clone for IconButtonResponse
impl Clone for IconButtonResponse
Source§fn clone(&self) -> IconButtonResponse
fn clone(&self) -> IconButtonResponse
Returns a duplicate of the value. Read more
1.0.0 · 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 IconButtonResponse
impl Debug for IconButtonResponse
impl Copy for IconButtonResponse
Auto Trait Implementations§
impl Freeze for IconButtonResponse
impl RefUnwindSafe for IconButtonResponse
impl Send for IconButtonResponse
impl Sync for IconButtonResponse
impl Unpin for IconButtonResponse
impl UnsafeUnpin for IconButtonResponse
impl UnwindSafe for IconButtonResponse
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