pub struct ScrollHitTestItem {
pub point_in_viewport: LogicalPosition,
pub point_relative_to_item: BorderBoxLocal,
pub scroll_node: OverflowingScrollNode,
}Expand description
A hit-test result for a scrollable DOM node.
Fields§
§point_in_viewport: LogicalPositionThe hit point in the coordinate space of the “viewport” of the display item. The viewport is the scroll node formed by the root reference frame of the display item’s pipeline.
point_relative_to_item: BorderBoxLocalThe hit point relative to the container’s static BORDER-box origin, with its own scroll NOT applied — i.e. where in its scrollPORT the pointer is.
Deliberately a different space from HitTestItem::point_relative_to_item:
this one is about the scroll box’s chrome (which edge is the pointer
near, is it over the scrollbar gutter), not about its text content, and
scroll geometry is measured against the border box everywhere else.
scroll_node: OverflowingScrollNodeIf this hit is a VirtualView node, stores the VirtualViews DomId + the origin of the VirtualView
Trait Implementations§
Source§impl Clone for ScrollHitTestItem
impl Clone for ScrollHitTestItem
Source§fn clone(&self) -> ScrollHitTestItem
fn clone(&self) -> ScrollHitTestItem
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 moreimpl Copy for ScrollHitTestItem
Source§impl Debug for ScrollHitTestItem
impl Debug for ScrollHitTestItem
impl Eq for ScrollHitTestItem
Source§impl PartialEq for ScrollHitTestItem
impl PartialEq for ScrollHitTestItem
Source§impl PartialOrd for ScrollHitTestItem
impl PartialOrd for ScrollHitTestItem
impl StructuralPartialEq for ScrollHitTestItem
Auto Trait Implementations§
impl Freeze for ScrollHitTestItem
impl RefUnwindSafe for ScrollHitTestItem
impl Send for ScrollHitTestItem
impl Sync for ScrollHitTestItem
impl Unpin for ScrollHitTestItem
impl UnsafeUnpin for ScrollHitTestItem
impl UnwindSafe for ScrollHitTestItem
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