pub struct Layer<'a> { /* private fields */ }Expand description
Information about a compositing layer.
Implementations§
Source§impl<'a> Layer<'a>
impl<'a> Layer<'a>
pub fn builder( layerId: LayerId<'a>, offsetX: f64, offsetY: f64, width: f64, height: f64, paintCount: u64, drawsContent: bool, ) -> LayerBuilder<'a>
pub fn layerId(&self) -> &LayerId<'a>
pub fn parentLayerId(&self) -> Option<&LayerId<'a>>
pub fn backendNodeId(&self) -> Option<&BackendNodeId>
pub fn offsetX(&self) -> f64
pub fn offsetY(&self) -> f64
pub fn width(&self) -> f64
pub fn height(&self) -> f64
pub fn transform(&self) -> Option<&[f64]>
pub fn anchorX(&self) -> Option<f64>
pub fn anchorY(&self) -> Option<f64>
pub fn anchorZ(&self) -> Option<f64>
pub fn paintCount(&self) -> u64
pub fn drawsContent(&self) -> bool
pub fn invisible(&self) -> Option<bool>
pub fn scrollRects(&self) -> Option<&[ScrollRect<'a>]>
pub fn stickyPositionConstraint(&self) -> Option<&StickyPositionConstraint<'a>>
Trait Implementations§
Source§impl<'de, 'a> Deserialize<'de> for Layer<'a>
impl<'de, 'a> Deserialize<'de> for Layer<'a>
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
Auto Trait Implementations§
impl<'a> Freeze for Layer<'a>
impl<'a> RefUnwindSafe for Layer<'a>
impl<'a> Send for Layer<'a>
impl<'a> Sync for Layer<'a>
impl<'a> Unpin for Layer<'a>
impl<'a> UnsafeUnpin for Layer<'a>
impl<'a> UnwindSafe for Layer<'a>
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