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

The pipeline that the display item that was hit belongs to.

The tag of the hit display item.

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.

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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for HitTestItem
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for HitTestItem
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.