Table of Contents

Class InternalExtensions

Namespace
DrawnUi.Extensions
Assembly
DrawnUi.Maui.dll
public static class InternalExtensions
Inheritance
InternalExtensions
Inherited Members

Methods

Clamp(double, double, double)

public static double Clamp(this double self, double min, double max)

Parameters

self double
min double
max double

Returns

double

Clamp(int, int, int)

public static int Clamp(this int self, int min, int max)

Parameters

self int
min int
max int

Returns

int

Clamp(float, float, float)

public static float Clamp(this float self, float min, float max)

Parameters

self float
min float
max float

Returns

float

Clone(SKRect)

public static SKRect Clone(this SKRect rect)

Parameters

rect SKRect

Returns

SKRect

ContainsInclusive(SKRect, SKPoint)

The default Skia method is returning false if point is on the bounds, We correct this by custom function.

public static bool ContainsInclusive(this SKRect rect, SKPoint point)

Parameters

rect SKRect
point SKPoint

Returns

bool

ContainsInclusive(SKRect, float, float)

The default Skia method is returning false if point is on the bounds, We correct this by custom function.

public static bool ContainsInclusive(this SKRect rect, float x, float y)

Parameters

rect SKRect
x float
y float

Returns

bool

DisposeControlAndChildren(IView)

public static void DisposeControlAndChildren(this IView view)

Parameters

view IView

FindMauiContext(Element, bool)

public static IMauiContext? FindMauiContext(this Element element, bool fallbackToAppMauiContext = false)

Parameters

element Element
fallbackToAppMauiContext bool

Returns

IMauiContext

FromPlatform(Geometry, SKPath, SKRect, float)

public static void FromPlatform(this Geometry geometry, SKPath path, SKRect destination, float scale)

Parameters

geometry Geometry
path SKPath
destination SKRect
scale float

FromPlatform(Geometry, SKPath, float)

public static SKPath FromPlatform(this Geometry geometry, SKPath path, float scale)

Parameters

geometry Geometry
path SKPath
scale float

Returns

SKPath

FromPlatform(object)

public static SkiaShadow FromPlatform(this object platform)

Parameters

platform object

Returns

SkiaShadow

GetItemAtIndex<T>(LinkedList<T>, int)

public static T GetItemAtIndex<T>(this LinkedList<T> linkedStack, int index)

Parameters

linkedStack LinkedList<T>
index int

Returns

T

Type Parameters

T

GetParentsPath(Element)

public static IEnumerable<Element> GetParentsPath(this Element self)

Parameters

self Element

Returns

IEnumerable<Element>

IntersectsWith(SKRect, SKRect, SKPoint)

public static bool IntersectsWith(this SKRect rect, SKRect with, SKPoint offset)

Parameters

rect SKRect
with SKRect
offset SKPoint

Returns

bool

IsEven(int)

public static bool IsEven(this int value)

Parameters

value int

Returns

bool

ToDegrees(float)

Radians to degrees

public static float ToDegrees(this float radians)

Parameters

radians float

Returns

float

ToSKRect(Rect, float)

public static SKRect ToSKRect(this Rect rect, float scale)

Parameters

rect Rect
scale float

Returns

SKRect

WithCancellation(Task, CancellationToken)

public static Task WithCancellation(this Task task, CancellationToken cancellationToken)

Parameters

task Task
cancellationToken CancellationToken

Returns

Task

WithCancellation<T>(Task<T>, CancellationToken)

public static Task<T> WithCancellation<T>(this Task<T> task, CancellationToken cancellationToken)

Parameters

task Task<T>
cancellationToken CancellationToken

Returns

Task<T>

Type Parameters

T