pub struct HitTestItem {
pub pipeline: PipelineId,
pub tag: ItemTag,
pub point_in_viewport: LayoutPoint,
pub point_relative_to_item: LayoutPoint,
}
Expand description
Describe an item that matched a hit-test query.
Fields§
§pipeline: PipelineId
The pipeline that the display item that was hit belongs to.
tag: ItemTag
The tag of the hit display item.
point_in_viewport: LayoutPoint
The 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: LayoutPoint
The coordinates of the original hit test point relative to the origin of this item. This is useful for calculating things like text offsets in the client.
Trait Implementations§
Source§impl Clone for HitTestItem
impl Clone for HitTestItem
Source§fn clone(&self) -> HitTestItem
fn clone(&self) -> HitTestItem
Returns a copy 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 HitTestItem
impl Debug for HitTestItem
Source§impl<'de> Deserialize<'de> for HitTestItem
impl<'de> Deserialize<'de> for HitTestItem
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for HitTestItem
impl PartialEq for HitTestItem
Source§impl Serialize for HitTestItem
impl Serialize for HitTestItem
impl StructuralPartialEq for HitTestItem
Auto Trait Implementations§
impl Freeze for HitTestItem
impl RefUnwindSafe for HitTestItem
impl Send for HitTestItem
impl Sync for HitTestItem
impl Unpin for HitTestItem
impl UnwindSafe for HitTestItem
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