Class StatusLayerRenderer
Example layer renderer that displays status information
public sealed class StatusLayerRenderer : BaseLayerRenderer, ILayerRenderer
- Inheritance
-
StatusLayerRenderer
- Implements
- Inherited Members
Constructors
StatusLayerRenderer(Color?, Color?)
Initializes a new status layer renderer
public StatusLayerRenderer(Color? textColor = null, Color? backgroundColor = null)
Parameters
textColorColor?Color for status text
backgroundColorColor?Optional background color for status text
Properties
Name
Gets the name of this layer renderer for debugging and identification purposes.
public override string Name { get; }
Property Value
Priority
Gets the priority of this layer renderer. Lower values render first.
public override int Priority { get; }
Property Value
Methods
RenderLayerAsync(RenderLayerContext, CancellationToken)
Override this method to implement the specific rendering logic for this layer.
protected override ValueTask RenderLayerAsync(RenderLayerContext context, CancellationToken ct = default)
Parameters
contextRenderLayerContextThe rendering context containing renderer, input, and frame information
ctCancellationTokenCancellation token to cancel the rendering operation