Struct webrender_api::display_item::SpaceAndClipInfo
source · pub struct SpaceAndClipInfo {
pub spatial_id: SpatialId,
pub clip_chain_id: ClipChainId,
}
Expand description
Per-primitive information about the nodes in the clip tree and the spatial tree that the primitive belongs to.
Note: this is a separate struct from PrimitiveInfo
because
it needs indirectional mapping during the DL flattening phase,
turning into ScrollNodeAndClipChain
.
Fields§
§spatial_id: SpatialId
§clip_chain_id: ClipChainId
Implementations§
source§impl SpaceAndClipInfo
impl SpaceAndClipInfo
sourcepub fn root_scroll(pipeline_id: PipelineId) -> Self
pub fn root_scroll(pipeline_id: PipelineId) -> Self
Create a new space/clip info associated with the root scroll frame.
Trait Implementations§
source§impl Clone for SpaceAndClipInfo
impl Clone for SpaceAndClipInfo
source§fn clone(&self) -> SpaceAndClipInfo
fn clone(&self) -> SpaceAndClipInfo
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 SpaceAndClipInfo
impl Debug for SpaceAndClipInfo
source§impl Default for SpaceAndClipInfo
impl Default for SpaceAndClipInfo
source§fn default() -> SpaceAndClipInfo
fn default() -> SpaceAndClipInfo
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SpaceAndClipInfo
impl<'de> Deserialize<'de> for SpaceAndClipInfo
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 SpaceAndClipInfo
impl PartialEq for SpaceAndClipInfo
source§fn eq(&self, other: &SpaceAndClipInfo) -> bool
fn eq(&self, other: &SpaceAndClipInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Peek for SpaceAndClipInfo
impl Peek for SpaceAndClipInfo
source§impl Poke for SpaceAndClipInfo
impl Poke for SpaceAndClipInfo
source§impl Serialize for SpaceAndClipInfo
impl Serialize for SpaceAndClipInfo
impl Copy for SpaceAndClipInfo
impl StructuralPartialEq for SpaceAndClipInfo
Auto Trait Implementations§
impl Freeze for SpaceAndClipInfo
impl RefUnwindSafe for SpaceAndClipInfo
impl Send for SpaceAndClipInfo
impl Sync for SpaceAndClipInfo
impl Unpin for SpaceAndClipInfo
impl UnwindSafe for SpaceAndClipInfo
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