pub struct SpaceAndClipInfo {
pub spatial_id: SpatialId,
pub clip_id: ClipId,
}
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_id: ClipId
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§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