Struct webrender_api::HitTestResultItem
source · pub struct HitTestResultItem {
pub pipeline: PipelineId,
pub tag: ItemTag,
pub animation_id: u64,
pub point_in_viewport: LayoutPoint,
pub point_relative_to_item: LayoutPoint,
}
Expand description
Describe an item that matched a hit-test query.
Fields§
§pipeline: PipelineId
The pipeline that the display item that was hit belongs to.
tag: ItemTag
The tag of the hit display item.
animation_id: u64
The animation id from the stacking context.
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§
source§impl Clone for HitTestResultItem
impl Clone for HitTestResultItem
source§fn clone(&self) -> HitTestResultItem
fn clone(&self) -> HitTestResultItem
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for HitTestResultItem
impl Debug for HitTestResultItem
source§impl<'de> Deserialize<'de> for HitTestResultItem
impl<'de> Deserialize<'de> for HitTestResultItem
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for HitTestResultItem
impl PartialEq for HitTestResultItem
source§fn eq(&self, other: &HitTestResultItem) -> bool
fn eq(&self, other: &HitTestResultItem) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for HitTestResultItem
impl Serialize for HitTestResultItem
impl StructuralPartialEq for HitTestResultItem
Auto Trait Implementations§
impl Freeze for HitTestResultItem
impl RefUnwindSafe for HitTestResultItem
impl Send for HitTestResultItem
impl Sync for HitTestResultItem
impl Unpin for HitTestResultItem
impl UnwindSafe for HitTestResultItem
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more