[][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

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 PartialEq<HitTestItem> for HitTestItem
[src]

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

This method tests for !=.

impl Clone for HitTestItem
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for HitTestItem
[src]

Formats the value using the given formatter. Read more

impl Serialize for HitTestItem
[src]

Serialize this value into the given Serde serializer. Read more

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

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

impl Send for HitTestItem

impl Sync for HitTestItem

Blanket Implementations

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

Creates owned data from borrowed data, usually by cloning. Read more

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

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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

Performs the conversion.

impl<T> From for T
[src]

Performs the conversion.

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

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

The type returned in the event of a conversion error.

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

Performs the conversion.

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

Immutably borrows from an owned value. Read more

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

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

The type returned in the event of a conversion error.

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

Performs the conversion.

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

Mutably borrows from an owned value. Read more

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

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

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

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