pub struct Scene {
pub root: ContainerLayer,
}Expand description
Flutter Scene: what SceneBuilder::build produces and crate::View::present takes, the
root of one frame’s layer tree, flow’s LayerTree. The view knows its own size.
Two scenes are equal when they show the same: what a host asks to tell a scene equal to the one it shows from one worth drawing. The comparison takes the time of the containers the frame built afresh, since a retained container compares by pointer and a picture by valo’s identity first.
Fields§
§root: ContainerLayerThe root container, whose effect is Effect::None.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Scene
impl !UnwindSafe for Scene
impl Forget for Scene
impl Freeze for Scenewhere
*const ArcInner<Path> is !null: Freeze,
PhantomData<ArcInner<Path>>: Freeze,
*const ArcInner<ImageFilter> is !null: Freeze,
PhantomData<ArcInner<ImageFilter>>: Freeze,
*const ArcInner<RuntimeEffect> is !null: Freeze,
PhantomData<ArcInner<RuntimeEffect>>: Freeze,
*const ArcInner<[u8]> is !null: Freeze,
PhantomData<ArcInner<[u8]>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<EffectImage>: Freeze,
PhantomData<(String, f64)>: Freeze,
PhantomData<Layer>: Freeze,
impl Move for Scene
impl Send for Scenewhere
Arc<Path>: Send,
Arc<ImageFilter>: Send,
Arc<RuntimeEffect>: Send,
Arc<[u8]>: Send,
RawVecInner: Send,
Arc<ImageInner>: Send,
Arc<ContainerLayer>: Send,
Arc<DisplayList>: Send,
Arc<dyn CompositionLayer>: Send,
Arc<dyn VideoFrameReader>: Send,
impl Sync for Scenewhere
Arc<Path>: Sync,
Arc<ImageFilter>: Sync,
Arc<RuntimeEffect>: Sync,
Arc<[u8]>: Sync,
RawVecInner: Sync,
Arc<ImageInner>: Sync,
Arc<ContainerLayer>: Sync,
Arc<DisplayList>: Sync,
Arc<dyn CompositionLayer>: Sync,
Arc<dyn VideoFrameReader>: Sync,
impl Unpin for Scenewhere
Arc<Path>: Unpin,
Arc<ImageFilter>: Unpin,
Arc<RuntimeEffect>: Unpin,
Arc<[u8]>: Unpin,
*const u8 is !null: Unpin,
Arc<ImageInner>: Unpin,
Arc<ContainerLayer>: Unpin,
Arc<DisplayList>: Unpin,
Arc<dyn CompositionLayer>: Unpin,
Arc<dyn VideoFrameReader>: Unpin,
impl UnsafeUnpin for Scenewhere
*const ArcInner<Path> is !null: UnsafeUnpin,
PhantomData<ArcInner<Path>>: UnsafeUnpin,
*const ArcInner<ImageFilter> is !null: UnsafeUnpin,
PhantomData<ArcInner<ImageFilter>>: UnsafeUnpin,
*const ArcInner<RuntimeEffect> is !null: UnsafeUnpin,
PhantomData<ArcInner<RuntimeEffect>>: UnsafeUnpin,
*const ArcInner<[u8]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[u8]>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<EffectImage>: UnsafeUnpin,
PhantomData<(String, f64)>: UnsafeUnpin,
PhantomData<Layer>: UnsafeUnpin,
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