pub struct VisualCollection(/* private fields */);Expand description
An ordered collection of child visuals under a ContainerVisual.
Implementations§
Source§impl VisualCollection
impl VisualCollection
Sourcepub fn insert_at_top(&self, visual: &Visual)
pub fn insert_at_top(&self, visual: &Visual)
Inserts a visual at the top of the z-order (drawn last, on top).
Sourcepub fn insert_at_bottom(&self, visual: &Visual)
pub fn insert_at_bottom(&self, visual: &Visual)
Inserts a visual at the bottom of the z-order (drawn first, behind).
Sourcepub fn remove_all(&self)
pub fn remove_all(&self)
Removes every visual from the collection.
Trait Implementations§
Source§impl Clone for VisualCollection
impl Clone for VisualCollection
Source§fn clone(&self) -> VisualCollection
fn clone(&self) -> VisualCollection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for VisualCollection
impl RefUnwindSafe for VisualCollection
impl Send for VisualCollection
impl Sync for VisualCollection
impl Unpin for VisualCollection
impl UnsafeUnpin for VisualCollection
impl UnwindSafe for VisualCollection
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