ImmediateRenderer Class

Summary

A renderer which renders the state of the visual tree without an intermediate scene graph representation.
Namespace
Avalonia.Rendering
Interfaces
Base Types
graph TD Base0["RendererBase"]-->Type click Base0 "/api/Avalonia.Rendering/RendererBase" Base1["object"]-->Base0 Interface0["IRenderer"]-.->Type click Interface0 "/api/Avalonia.Rendering/IRenderer" Interface1["IDisposable"]-.->Type Interface2["IVisualBrushRenderer"]-.->Type click Interface2 "/api/Avalonia.Rendering/IVisualBrushRenderer" Type["ImmediateRenderer"] class Type type-node

Syntax

public class ImmediateRenderer : RendererBase, IRenderer, IDisposable, IVisualBrushRenderer

Remarks

The immediate renderer supports only clip-bound-based hit testing; a control's geometry is not taken into account.

Constructors

Name Summary
ImmediateRenderer(IVisual) Initializes a new instance of the ImmediateRenderer class.

Properties

Name Value Summary
DrawDirtyRects bool
Gets or sets a value indicating whether the renderer should a visual representation of its dirty rectangles.
DrawFps bool
Gets or sets a value indicating whether the renderer should draw an FPS counter.

Methods

Name Value Summary
AddDirty(IVisual) void
Mark a visual as dirty and needing re-rendering.
Dispose() void
Ends the operation of the renderer.
HitTest(Point, IVisual, Func<IVisual, bool>) IEnumerable<T>
Hit tests a location to find the visuals at the specified point.
Paint(Rect) void
Called when a paint notification is received by the control being rendered.
Render(IVisual, DrawingContext) void
Renders a visual to a drawing context.
static
Render(IVisual, IRenderTarget) void
Renders a visual to a render target.
static
RenderFps(IDrawingContextImpl, Rect, int?) void
Inherited from RendererBase
Resized(Size) void
Called when a resize notification is received by the control being rendered.
Start() void
Starts the renderer.
Stop() void
Stops the renderer.