pub struct LayerInfo {
pub id: LayerId,
pub parent: Option<LayerId>,
pub root_element: ElementId,
pub root_type: &'static str,
pub z_order: u32,
pub dirty: bool,
pub paint_count: u32,
pub cmds: usize,
pub offset: Point,
pub size: Option<Size>,
pub effect: LayerEffect,
}Expand description
Layer 快照(依赖上一次 paint 后的状态)
Fields§
§id: LayerId§parent: Option<LayerId>§root_element: ElementId§root_type: &'static str§z_order: u32§dirty: bool§paint_count: u32累计 paint 次数
cmds: usize缓存 PaintList 的命令数(上次绘制结果)
offset: Point§size: Option<Size>§effect: LayerEffectTrait Implementations§
Auto Trait Implementations§
impl Forget for LayerInfo
impl Freeze for LayerInfo
impl Move for LayerInfo
impl RefUnwindSafe for LayerInfo
impl Send for LayerInfo
impl Sync for LayerInfo
impl Unpin for LayerInfo
impl UnsafeUnpin for LayerInfo
impl UnwindSafe for LayerInfo
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