pub struct PressableState {
pub hovered: bool,
pub hovered_raw: bool,
pub hovered_raw_below_barrier: bool,
pub pressed: bool,
pub focused: bool,
}Fields§
§hovered: bool§hovered_raw: bool§hovered_raw_below_barrier: boolPointer-hover signal that ignores modal/popup barrier gating.
When a modal barrier is active (e.g. a popup that blocks underlay input), the UI runtime suppresses underlay hit-testing and hover for blocked layers. This flag is populated from a best-effort underlay hit-test performed only when the pointer is not currently over any active (non-blocked) layer.
pressed: bool§focused: boolTrait Implementations§
Source§impl Clone for PressableState
impl Clone for PressableState
Source§fn clone(&self) -> PressableState
fn clone(&self) -> PressableState
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 PressableState
impl Debug for PressableState
Source§impl Default for PressableState
impl Default for PressableState
Source§fn default() -> PressableState
fn default() -> PressableState
Returns the “default value” for a type. Read more
impl Copy for PressableState
Auto Trait Implementations§
impl Freeze for PressableState
impl RefUnwindSafe for PressableState
impl Send for PressableState
impl Sync for PressableState
impl Unpin for PressableState
impl UnsafeUnpin for PressableState
impl UnwindSafe for PressableState
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