Table of Contents

Class SkiaViewAccelerated

Namespace
DrawnUi.Views
Assembly
DrawnUi.Maui.dll
public class SkiaViewAccelerated : SKGLView, INotifyPropertyChanged, IVisualTreeElement, IEffectControlProvider, IToolTipElement, IContextFlyoutElement, IAnimatable, IViewController, IVisualElementController, IElementController, IGestureController, IGestureRecognizers, IPropertyMapperView, IHotReloadableView, IReplaceableView, ISKGLView, IView, IElement, ITransform, ISkiaDrawable, ISkiaSharpView, IDisposable
Inheritance
SkiaViewAccelerated
Implements
Inherited Members
Extension Methods

Constructors

SkiaViewAccelerated(DrawnView)

public SkiaViewAccelerated(DrawnView superview)

Parameters

superview DrawnView

Properties

FPS

public double FPS { get; }

Property Value

double

FrameTime

public long FrameTime { get; protected set; }

Property Value

long

HasDrawn

public bool HasDrawn { get; protected set; }

Property Value

bool

IsDrawing

public bool IsDrawing { get; set; }

Property Value

bool

IsHardwareAccelerated

public bool IsHardwareAccelerated { get; }

Property Value

bool

OnDraw

Return true if need force invalidation on next frame

public Func<SKSurface, SKRect, bool> OnDraw { get; set; }

Property Value

Func<SKSurface, SKRect, bool>

Superview

public DrawnView Superview { get; protected set; }

Property Value

DrawnView

Surface

public SKSurface Surface { get; }

Property Value

SKSurface

Uid

public Guid Uid { get; }

Property Value

Guid

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

OnHandlerChanged()

When overridden in a derived class, should raise the HandlerChanged event.

protected override void OnHandlerChanged()

Remarks

It is the implementor's responsibility to raise the HandlerChanged event.

OnHandlerChanging(HandlerChangingEventArgs)

When overridden in a derived class, should raise the HandlerChanging event.

protected override void OnHandlerChanging(HandlerChangingEventArgs args)

Parameters

args HandlerChangingEventArgs

Provides data for the HandlerChanging event.

Remarks

It is the implementor's responsibility to raise the HandlerChanging event.

SignalFrame(long)

public void SignalFrame(long nanoseconds)

Parameters

nanoseconds long

Update(long)

Safe InvalidateSurface() call. If nanos not specified will generate ittself

public bool Update(long nanos)

Parameters

nanos long

Returns

bool