carnelian::scene

Trait LayerGroup

Source
pub trait LayerGroup {
    // Required methods
    fn clear(&mut self);
    fn insert(&mut self, order: SceneOrder, layer: Layer);
    fn remove(&mut self, order: SceneOrder);
}
Expand description

Trait used by facets to mutate layers.

Required Methods§

Source

fn clear(&mut self)

Clears the group, removing all layers.

Source

fn insert(&mut self, order: SceneOrder, layer: Layer)

Insert a order-layer pair into the group.

Source

fn remove(&mut self, order: SceneOrder)

Removes a layer from the group.

Implementors§