[][src]Struct webrender_api::HitTestItem

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_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq<HitTestItem> for HitTestItem[src]

impl Debug for HitTestItem[src]

impl Serialize for HitTestItem[src]

impl<'de> Deserialize<'de> for HitTestItem[src]

Auto Trait Implementations

impl Send for HitTestItem

impl Sync for HitTestItem

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]