Summary
Holds a collection of layers for a
Scene
.
- Namespace
- Avalonia
.Rendering .SceneGraph - Interfaces
-
- IEnumerable
<SceneLayer> - IEnumerable
- IEnumerable
- 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 |
Initializes a new instance of the SceneLayers class.
|
SceneLayers |
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 |
SceneLayer |
Adds a layer to the scene.
|
Clone |
SceneLayers |
Makes a deep clone of the layers.
|
Exists |
bool |
Tests whether a layer exists with the specified root visual.
|
Find |
SceneLayer |
Tries to find a layer with the specified root visual.
|
GetEnumerator |
IEnumerator |
|
GetOrAdd |
SceneLayer |
Gets an existing layer or creates a new one if no existing layer is found.
|
Remove |
bool |
Removes a layer from the scene.
|
Remove |
bool |
Removes a layer from the scene.
|