[][src]Struct azul_core::callbacks::HitTestItem

pub struct HitTestItem {
    pub pipeline: PipelineId,
    pub tag: TagId,
    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: TagId

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]

impl Copy for HitTestItem[src]

impl Debug for HitTestItem[src]

impl PartialEq<HitTestItem> for HitTestItem[src]

impl PartialOrd<HitTestItem> for HitTestItem[src]

impl StructuralPartialEq for HitTestItem[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.