pub struct PointerResolution {
pub outcome: PointerOutcomeFlags,
pub changed: bool,
pub relayout: bool,
pub clicked: Option<NodeId>,
pub capture: Option<NodeId>,
pub painted: Option<NodeId>,
}Expand description
What one raw sample resolved to.
Fields§
§outcome: PointerOutcomeFlagsNV_POINTER_OUTCOME_* bits for the host.
changed: boolA pseudo-state (:hover, :active) changed: republish / repaint.
relayout: boolThe change re-ran layout (state rules patching the box).
clicked: Option<NodeId>Primary release over the press chain: the Press target.
capture: Option<NodeId>The sample’s pointer is captured after it (the capture target).
painted: Option<NodeId>Primary button-0 Down: the deepest painted node (hosts reuse it for press focus).
Trait Implementations§
Source§impl Clone for PointerResolution
impl Clone for PointerResolution
impl Copy for PointerResolution
Source§impl Debug for PointerResolution
impl Debug for PointerResolution
Source§impl Default for PointerResolution
impl Default for PointerResolution
impl Eq for PointerResolution
Source§impl PartialEq for PointerResolution
impl PartialEq for PointerResolution
impl StructuralPartialEq for PointerResolution
Auto Trait Implementations§
impl Forget for PointerResolution
impl Freeze for PointerResolution
impl Move for PointerResolution
impl RefUnwindSafe for PointerResolution
impl Send for PointerResolution
impl Sync for PointerResolution
impl Unpin for PointerResolution
impl UnsafeUnpin for PointerResolution
impl UnwindSafe for PointerResolution
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