pub struct LayerComposition {
pub affine: Affine2D,
pub opacity: f32,
pub clips: Vec<ClipShape>,
}Fields§
§affine: Affine2Dlayer 局部坐标 → surface 逻辑坐标
opacity: f32§clips: Vec<ClipShape>祖先(含自己)的裁剪,最多保留最内两层
Implementations§
Source§impl LayerComposition
impl LayerComposition
pub fn single(layer: &LayerPaint, size: Size) -> Self
Trait Implementations§
Source§impl Clone for LayerComposition
impl Clone for LayerComposition
Auto Trait Implementations§
impl Forget for LayerComposition
impl Freeze for LayerComposition
impl Move for LayerComposition
impl RefUnwindSafe for LayerComposition
impl Send for LayerCompositionwhere
RawVecInner: Send,
impl Sync for LayerCompositionwhere
RawVecInner: Sync,
impl Unpin for LayerComposition
impl UnsafeUnpin for LayerComposition
impl UnwindSafe for LayerCompositionwhere
RawVecInner: UnwindSafe,
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