Skip to main content

primary_pointer_can_hover

Function primary_pointer_can_hover 

Source
pub fn primary_pointer_can_hover<'a, H: UiHost + 'a, Cx>(
    cx: &mut Cx,
    invalidation: Invalidation,
    default_when_unknown: bool,
) -> bool
where Cx: ElementContextAccess<'a, H>,
Expand description

Returns whether the primary pointer is expected to support hover-driven affordances.

Notes:

  • This is a policy helper; it is intentionally small and may evolve as runners provide more precise capability data.
  • When the pointer type is Unknown, default_when_unknown is returned.