Struct webrender_api::HitTestDisplayItem
source · pub struct HitTestDisplayItem {
pub rect: LayoutRect,
pub clip_chain_id: ClipChainId,
pub spatial_id: SpatialId,
pub flags: PrimitiveFlags,
pub tag: ItemTag,
}
Expand description
A minimal hit-testable item for the parent browser’s convenience, and is slimmer than a RectangleDisplayItem (no color). The existence of this as a distinct item also makes it easier to inspect/debug display items.
Fields§
§rect: LayoutRect
§clip_chain_id: ClipChainId
§spatial_id: SpatialId
§flags: PrimitiveFlags
§tag: ItemTag
Trait Implementations§
source§impl Clone for HitTestDisplayItem
impl Clone for HitTestDisplayItem
source§fn clone(&self) -> HitTestDisplayItem
fn clone(&self) -> HitTestDisplayItem
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 HitTestDisplayItem
impl Debug for HitTestDisplayItem
source§impl Default for HitTestDisplayItem
impl Default for HitTestDisplayItem
source§fn default() -> HitTestDisplayItem
fn default() -> HitTestDisplayItem
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for HitTestDisplayItem
impl<'de> Deserialize<'de> for HitTestDisplayItem
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 HitTestDisplayItem
impl PartialEq for HitTestDisplayItem
source§fn eq(&self, other: &HitTestDisplayItem) -> bool
fn eq(&self, other: &HitTestDisplayItem) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Peek for HitTestDisplayItem
impl Peek for HitTestDisplayItem
source§impl Poke for HitTestDisplayItem
impl Poke for HitTestDisplayItem
source§impl Serialize for HitTestDisplayItem
impl Serialize for HitTestDisplayItem
impl Copy for HitTestDisplayItem
impl StructuralPartialEq for HitTestDisplayItem
Auto Trait Implementations§
impl Freeze for HitTestDisplayItem
impl RefUnwindSafe for HitTestDisplayItem
impl Send for HitTestDisplayItem
impl Sync for HitTestDisplayItem
impl Unpin for HitTestDisplayItem
impl UnwindSafe for HitTestDisplayItem
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