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
Graph
The graph being rendered.
public required Graph? Graph { get; init; }
Property Value
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
ScreenToCanvas
Function to convert screen coordinates to canvas coordinates.
public required Func<double, double, Point> ScreenToCanvas { get; init; }
Property Value
Settings
Canvas settings.
public required FlowCanvasSettings Settings { get; init; }
Property Value
Theme
Theme resources for colors and brushes.
public required ThemeResources Theme { get; init; }
Property Value
VisibleBounds
Canvas visible bounds in screen coordinates.
public required Rect VisibleBounds { get; init; }
Property Value
- Rect