SceneLayers Class

Summary

Holds a collection of layers for a Scene.
Namespace
Avalonia.Rendering.SceneGraph
Interfaces
Base Types
  • object
graph BT Type-->Base0["object"] Type-.->Interface0["IEnumerable<SceneLayer>"] Type-.->Interface1["IEnumerable"] Type["SceneLayers"] class Type type-node

Syntax

public class SceneLayers : IEnumerable<SceneLayer>, IEnumerable

Constructors

Name Summary
SceneLayers(IVisual) Initializes a new instance of the SceneLayers class.
SceneLayers(IVisual, int) Initializes a new instance of the SceneLayers class.

Properties

Name Value Summary
Count int
Gets the number of layers in the scene.
HasDirty bool
Gets a value indicating whether any of the layers have a dirty region.
this[int] SceneLayer
Gets a layer by index.
this[IVisual] SceneLayer
Gets a layer by its root visual.

Methods

Name Value Summary
Add(IVisual) SceneLayer
Adds a layer to the scene.
Clone() SceneLayers
Makes a deep clone of the layers.
Exists(IVisual) bool
Tests whether a layer exists with the specified root visual.
Find(IVisual) SceneLayer
Tries to find a layer with the specified root visual.
GetEnumerator() IEnumerator<SceneLayer>
GetOrAdd(IVisual) SceneLayer
Gets an existing layer or creates a new one if no existing layer is found.
Remove(IVisual) bool
Removes a layer from the scene.
Remove(SceneLayer) bool
Removes a layer from the scene.