pub struct Scene { /* private fields */ }Implementations§
Source§impl Scene
impl Scene
pub fn new() -> Scene
pub fn push(&mut self, command: SceneCommand)
pub fn append(&mut self, scene: Scene)
Sourcepub fn append_ref(&mut self, scene: &Scene)
pub fn append_ref(&mut self, scene: &Scene)
Append a retained scene without allocating an intermediate command vector.
pub fn clear(&mut self)
pub fn commands(&self) -> &[SceneCommand]
Whether two immutable snapshots share the same command storage. Any mutation detaches shared storage before changing commands.
pub fn visit_commands(&self, visitor: &mut dyn FnMut(&SceneCommand))
pub fn visit_layers(&self, visitor: &mut dyn FnMut(&SceneLayer))
pub fn visit_layers_mut(&mut self, visitor: &mut dyn FnMut(&mut SceneLayer))
pub fn content_bounds(&self) -> Option<Rect>
pub fn paint_bounds(&self) -> Option<Rect>
pub fn replace_layer( &mut self, widget_id: WidgetId, replacement: SceneLayer, ) -> bool
pub fn translate(&mut self, delta: Vector)
pub fn translate_layer(&mut self, widget_id: WidgetId, delta: Vector) -> bool
pub fn replace_layer_descriptor( &mut self, widget_id: WidgetId, descriptor: SceneLayerDescriptor, ) -> bool
pub fn layer_scene(&self, widget_id: WidgetId) -> Option<&Scene>
pub fn reorder_stack_surfaces(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Forget for Scene
impl Freeze for Scene
impl Move for Scene
impl RefUnwindSafe for Scene
impl Send for Scene
impl Sync for Scene
impl Unpin for Scene
impl UnsafeUnpin for Scene
impl UnwindSafe for Scene
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.