Table of Contents

Method DrawOnCairo

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

DrawOnCairo(nint, Action<SKSurface>?)

Paints the SkiaSharp buffer onto the given Cairo drawing context.

public static bool DrawOnCairo(nint cr, Action<SKSurface>? drawAction)

Parameters

cr nint

A pointer to the native Cairo context (cairo_t*) provided by the GTK3 paint event. This parameter represents the drawing context for the target GTK3 surface.

drawAction Action<SKSurface>

The action to perform on the SkiaSharp surface.

Returns

bool