pub struct ClickPoint {
pub x: f64,
pub y: f64,
pub in_viewport: bool,
pub hits_target: bool,
pub raw: Value,
}Expand description
The click point of an element and whether it can be reached right now.
Fields§
§x: f64Viewport x coordinate of the element’s centre.
y: f64Viewport y coordinate of the element’s centre.
in_viewport: boolWhether the centre lies inside the viewport.
hits_target: boolWhether a hit test at the centre lands on the target.
raw: ValueThe raw measurement, kept as evidence.
Trait Implementations§
Source§impl Clone for ClickPoint
impl Clone for ClickPoint
Source§impl Debug for ClickPoint
impl Debug for ClickPoint
Source§impl Default for ClickPoint
impl Default for ClickPoint
Source§impl PartialEq for ClickPoint
impl PartialEq for ClickPoint
impl StructuralPartialEq for ClickPoint
Auto Trait Implementations§
impl Freeze for ClickPoint
impl RefUnwindSafe for ClickPoint
impl Send for ClickPoint
impl Sync for ClickPoint
impl Unpin for ClickPoint
impl UnsafeUnpin for ClickPoint
impl UnwindSafe for ClickPoint
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