Table of Contents

Class BackgroundRenderContext

Namespace
FlowGraph.Avalonia.Rendering.BackgroundRenderers
Assembly
FlowGraph.Avalonia.dll

Context information passed to background renderers.

public class BackgroundRenderContext
Inheritance
BackgroundRenderContext
Inherited Members

Properties

CanvasToScreen

Function to convert canvas coordinates to screen coordinates.

public required Func<double, double, Point> CanvasToScreen { get; init; }

Property Value

Func<double, double, Point>

Graph

The graph being rendered.

public required Graph? Graph { get; init; }

Property Value

Graph

Offset

Current viewport offset (pan position).

public required Point Offset { get; init; }

Property Value

Point

Scale

Current zoom scale factor.

public required double Scale { get; init; }

Property Value

double

ScreenToCanvas

Function to convert screen coordinates to canvas coordinates.

public required Func<double, double, Point> ScreenToCanvas { get; init; }

Property Value

Func<double, double, Point>

Settings

Canvas settings.

public required FlowCanvasSettings Settings { get; init; }

Property Value

FlowCanvasSettings

Theme

Theme resources for colors and brushes.

public required ThemeResources Theme { get; init; }

Property Value

ThemeResources

VisibleBounds

Canvas visible bounds in screen coordinates.

public required Rect VisibleBounds { get; init; }

Property Value

Rect