Table of Contents

Interface ISkiaControl

Namespace
DrawnUi.Draw
Assembly
DrawnUi.Maui.dll
public interface ISkiaControl : IDrawnBase, IDisposable, ICanBeUpdatedWithContext, ICanBeUpdated
Inherited Members
Extension Methods

Properties

CanDraw

bool CanDraw { get; }

Property Value

bool

Clipping

Action<SKPath, SKRect> Clipping { get; }

Property Value

Action<SKPath, SKRect>

HorizontalOptions

LayoutOptions HorizontalOptions { get; set; }

Property Value

LayoutOptions

IsGhost

Takes place in layout, acts like is visible, but just not rendering

bool IsGhost { get; }

Property Value

bool

Margin

Thickness Margin { get; }

Property Value

Thickness

Padding

Thickness Padding { get; }

Property Value

Thickness

Parent

IDrawnBase Parent { get; set; }

Property Value

IDrawnBase

RenderedAtDestination

SKRect RenderedAtDestination { get; set; }

Property Value

SKRect

VerticalOptions

LayoutOptions VerticalOptions { get; set; }

Property Value

LayoutOptions

VisualLayer

VisualLayer? VisualLayer { get; set; }

Property Value

VisualLayer

ZIndex

int ZIndex { get; }

Property Value

int

Methods

Arrange(SKRect, float, float, float)

void Arrange(SKRect destination, float widthRequest, float heightRequest, float scale)

Parameters

destination SKRect
widthRequest float
heightRequest float
scale float

Measure(float, float, float)

Expecting PIXELS as input sets NeedMeasure to false

ScaledSize Measure(float widthConstraint, float heightConstraint, float scale)

Parameters

widthConstraint float
heightConstraint float
scale float

Returns

ScaledSize

OnBeforeMeasure()

void OnBeforeMeasure()

OptionalOnBeforeDrawing()

void OptionalOnBeforeDrawing()

Render(DrawingContext)

void Render(DrawingContext context)

Parameters

context DrawingContext

SetChildren(IEnumerable<SkiaControl>)

void SetChildren(IEnumerable<SkiaControl> views)

Parameters

views IEnumerable<SkiaControl>

SetParent(IDrawnBase)

void SetParent(IDrawnBase parent)

Parameters

parent IDrawnBase