pub struct UiInteractionState {
pub hovered: Option<UiId>,
pub pressed: Option<UiId>,
pub focused: Option<UiId>,
}Fields§
§hovered: Option<UiId>§pressed: Option<UiId>§focused: Option<UiId>Implementations§
Source§impl UiInteractionState
impl UiInteractionState
pub fn flags_for(&self, id: &UiId) -> InteractionFlags
Trait Implementations§
Source§impl Clone for UiInteractionState
impl Clone for UiInteractionState
Source§fn clone(&self) -> UiInteractionState
fn clone(&self) -> UiInteractionState
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 UiInteractionState
impl Debug for UiInteractionState
Source§impl Default for UiInteractionState
impl Default for UiInteractionState
Source§fn default() -> UiInteractionState
fn default() -> UiInteractionState
Returns the “default value” for a type. Read more
impl Eq for UiInteractionState
Source§impl PartialEq for UiInteractionState
impl PartialEq for UiInteractionState
impl StructuralPartialEq for UiInteractionState
Auto Trait Implementations§
impl Freeze for UiInteractionState
impl RefUnwindSafe for UiInteractionState
impl Send for UiInteractionState
impl Sync for UiInteractionState
impl Unpin for UiInteractionState
impl UnsafeUnpin for UiInteractionState
impl UnwindSafe for UiInteractionState
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