Complete API surface of the Beep.Skia.Avalonia.Controls assembly: 3 public types with their documented members. Follow the family guide for usage patterns.

Types in this assembly

SkiaHostControl (class)

Avalonia host control for Beep.Skia diagrams. Uses SkiaSurface for cross-platform rendering and forwards pointer input to the DrawingManager.

MemberKindDescription
DrawingManager DrawingManagerPropertyGets or sets the drawing manager.
SkiaComponentDescriptorCollection DesignTimeComponentsPropertyGets or sets the design time components.
SkiaHostControl()MethodInitializes a new instance of the SkiaHostControl class.
void LoadDesignTimeComponents()MethodInstantiates design-time descriptors into real components.
SkiaComponent CreateAndAddComponent(Type type, float x, float y, float w, float h, string name = null)MethodGets or sets the create and add component.

SkiaSurface (class)

Avalonia control that renders Beep.Skia diagrams. SkiaSharp ships no Avalonia view package, so this control renders into an offscreen SKSurface backed by the memory of an Avalonia WriteableBitmap (BGRA8888, premultiplied) and blits it. It therefore depends only on Avalonia + SkiaSharp and works with the same SkiaSharp version as the rest of the solution.

MemberKindDescription
event EventHandler<SkiaSurfacePaintEventArgs> PaintSurfaceEventRaised when the surface needs to be redrawn.
override void Render(global::Avalonia.Media.DrawingContext context)MethodGets or sets the render.

SkiaSurfacePaintEventArgs (class)

Event data for an Avalonia Skia surface paint.

MemberKindDescription
SkiaSurfacePaintEventArgs(SKCanvas canvas, int width, int height)MethodInitializes a new instance of the SkiaSurfacePaintEventArgs class.
SKCanvas CanvasPropertyCanvas to draw on (already cleared to white).
int WidthPropertyPixel width of the surface.
int HeightPropertyPixel height of the surface.