logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Struct HudDeformGesture

    What a deform gesture is allowed to change, and along which screen-space axes.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Serenity.GameUi.Application.Placement
    Assembly: Serenity.GameUi.Application.dll
    Syntax
    public readonly struct HudDeformGesture
    Remarks

    The axes are the element's own local +X and +Y, expressed in frame-space screen pixels — the same convention HudTransformGesture's vectors use — and need not be normalized: only their direction and relative length matter to AxisRatio(float, float, float, float, float, float)'s projection.

    Constructors

    HudDeformGesture(float, float, float, float, bool, bool, float, float)

    Creates a deform gesture.

    Declaration
    public HudDeformGesture(float axisXScreenX, float axisXScreenY, float axisYScreenX, float axisYScreenY, bool deformsX, bool deformsY, float minStretch, float maxStretch)
    Parameters
    Type Name Description
    float axisXScreenX

    Horizontal screen-space component of the element's local +X axis.

    float axisXScreenY

    Vertical screen-space component of the element's local +X axis.

    float axisYScreenX

    Horizontal screen-space component of the element's local +Y axis.

    float axisYScreenY

    Vertical screen-space component of the element's local +Y axis.

    bool deformsX

    Whether this gesture changes the stretch along the local X axis.

    bool deformsY

    Whether this gesture changes the stretch along the local Y axis.

    float minStretch

    The lowest stretch either axis may reach.

    float maxStretch

    The highest stretch either axis may reach.

    Fields

    AxisXScreenX

    Horizontal screen-space component of the element's local +X axis.

    Declaration
    public readonly float AxisXScreenX
    Field Value
    Type Description
    float

    AxisXScreenY

    Vertical screen-space component of the element's local +X axis.

    Declaration
    public readonly float AxisXScreenY
    Field Value
    Type Description
    float

    AxisYScreenX

    Horizontal screen-space component of the element's local +Y axis.

    Declaration
    public readonly float AxisYScreenX
    Field Value
    Type Description
    float

    AxisYScreenY

    Vertical screen-space component of the element's local +Y axis.

    Declaration
    public readonly float AxisYScreenY
    Field Value
    Type Description
    float

    DeformsX

    Whether this gesture changes the stretch along the local X axis.

    Declaration
    public readonly bool DeformsX
    Field Value
    Type Description
    bool

    DeformsY

    Whether this gesture changes the stretch along the local Y axis.

    Declaration
    public readonly bool DeformsY
    Field Value
    Type Description
    bool

    MaxStretch

    The highest stretch either axis may reach.

    Declaration
    public readonly float MaxStretch
    Field Value
    Type Description
    float

    MinStretch

    The lowest stretch either axis may reach.

    Declaration
    public readonly float MinStretch
    Field Value
    Type Description
    float
    In this article
    © 2026 Serenity. All Rights Reserved