Struct webrender_api::HitTestItem
[−]
[src]
pub struct HitTestItem { pub pipeline: PipelineId, pub tag: ItemTag, pub point_in_viewport: LayoutPoint, pub point_relative_to_item: LayoutPoint, }
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
impl Clone for HitTestItem
[src]
fn clone(&self) -> HitTestItem
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for HitTestItem
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for HitTestItem
[src]
fn eq(&self, __arg_0: &HitTestItem) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &HitTestItem) -> bool
[src]
This method tests for !=
.