pub enum ClipId {
Clip(usize, PipelineId),
ClipChain(ClipChainId),
}
Expand description
A reference to a clipping node defining how an item is clipped.
Variants§
Clip(usize, PipelineId)
ClipChain(ClipChainId)
Implementations§
Source§impl ClipId
impl ClipId
Sourcepub fn root(pipeline_id: PipelineId) -> Self
pub fn root(pipeline_id: PipelineId) -> Self
Return the root clip ID - effectively doing no clipping.
Sourcepub fn invalid() -> Self
pub fn invalid() -> Self
Return an invalid clip ID - needed in places where we carry one but need to not attempt to use it.
pub fn pipeline_id(&self) -> PipelineId
pub fn is_root(&self) -> bool
pub fn is_valid(&self) -> bool
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ClipId
impl<'de> Deserialize<'de> for ClipId
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
impl Copy for ClipId
impl Eq for ClipId
impl StructuralPartialEq for ClipId
Auto Trait Implementations§
impl Freeze for ClipId
impl RefUnwindSafe for ClipId
impl Send for ClipId
impl Sync for ClipId
impl Unpin for ClipId
impl UnwindSafe for ClipId
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