pub struct UiInteraction {
pub clicked: bool,
pub pressed: bool,
pub released: bool,
pub hovered: bool,
pub focused: bool,
}Expand description
Result of a UI interaction.
Fields§
§clicked: boolThe widget was clicked this frame.
pressed: boolThe widget is being held down.
released: boolThe widget was released this frame.
hovered: boolThe mouse is hovering over the widget.
focused: boolThe widget just gained focus.
Trait Implementations§
Source§impl Clone for UiInteraction
impl Clone for UiInteraction
Source§fn clone(&self) -> UiInteraction
fn clone(&self) -> UiInteraction
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 moreimpl Copy for UiInteraction
Source§impl Debug for UiInteraction
impl Debug for UiInteraction
Source§impl PartialEq for UiInteraction
impl PartialEq for UiInteraction
impl StructuralPartialEq for UiInteraction
Auto Trait Implementations§
impl Freeze for UiInteraction
impl RefUnwindSafe for UiInteraction
impl Send for UiInteraction
impl Sync for UiInteraction
impl Unpin for UiInteraction
impl UnsafeUnpin for UiInteraction
impl UnwindSafe for UiInteraction
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