Artemis Artemis
Artemis Artemis

Search Results for

    Class LayerExtensions

    Provides utilities when working with layers in UI elements.

    Inheritance
    object
    LayerExtensions
    Namespace: Artemis.UI.Shared.Extensions
    Assembly: Artemis.UI.Shared.dll
    Syntax
    public static class LayerExtensions

    Methods

    GetDragOffset(Layer, SKPoint)

    Returns the offset from the given point to the closest sides of the layer's shape bounds

    Declaration
    public static SKPoint GetDragOffset(this Layer layer, SKPoint dragStart)
    Parameters
    Type Name Description
    Layer layer
    SKPoint dragStart
    Returns
    Type Description
    SKPoint

    GetLayerAnchorPosition(Layer, SKPoint?)

    Returns the layer's anchor in real coordinates.

    Declaration
    public static SKPoint GetLayerAnchorPosition(this Layer layer, SKPoint? positionOverride = null)
    Parameters
    Type Name Description
    Layer layer
    SKPoint? positionOverride
    Returns
    Type Description
    SKPoint

    GetLayerBounds(Layer)

    Returns the layer's bounds in real coordinates.

    Declaration
    public static SKRect GetLayerBounds(this Layer layer)
    Parameters
    Type Name Description
    Layer layer
    Returns
    Type Description
    SKRect

    GetLayerPath(Layer, bool, bool, bool)

    Returns an absolute and scaled rectangular path for the given layer in real coordinates.

    Declaration
    public static SKPath GetLayerPath(this Layer layer, bool includeTranslation, bool includeScale, bool includeRotation)
    Parameters
    Type Name Description
    Layer layer
    bool includeTranslation
    bool includeScale
    bool includeRotation
    Returns
    Type Description
    SKPath

    GetNormalizedPoint(Layer, SKPoint, bool)

    Returns a new point normalized to 0.0-1.0

    Declaration
    public static SKPoint GetNormalizedPoint(this Layer layer, SKPoint point, bool absolute)
    Parameters
    Type Name Description
    Layer layer
    SKPoint point
    bool absolute
    Returns
    Type Description
    SKPoint
    Content is available under the PolyForm Noncommercial License, by Artemis RGB.