Class Alignment | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class Alignment

    Inheritance
    System.Object
    Alignment
    FractionalOffset
    Namespace: Unity.UIWidgets.painting
    Syntax
    public class Alignment : IEquatable<Alignment>

    Constructors

    Alignment(Single, Single)

    Declaration
    public Alignment(float x, float y)
    Parameters
    Type Name Description
    System.Single x
    System.Single y

    Fields

    bottomCenter

    Declaration
    public static readonly Alignment bottomCenter
    Field Value
    Type Description
    Alignment

    bottomLeft

    Declaration
    public static readonly Alignment bottomLeft
    Field Value
    Type Description
    Alignment

    bottomRight

    Declaration
    public static readonly Alignment bottomRight
    Field Value
    Type Description
    Alignment

    center

    Declaration
    public static readonly Alignment center
    Field Value
    Type Description
    Alignment

    centerLeft

    Declaration
    public static readonly Alignment centerLeft
    Field Value
    Type Description
    Alignment

    centerRight

    Declaration
    public static readonly Alignment centerRight
    Field Value
    Type Description
    Alignment

    topCenter

    Declaration
    public static readonly Alignment topCenter
    Field Value
    Type Description
    Alignment

    topLeft

    Declaration
    public static readonly Alignment topLeft
    Field Value
    Type Description
    Alignment

    topRight

    Declaration
    public static readonly Alignment topRight
    Field Value
    Type Description
    Alignment

    x

    Declaration
    public readonly float x
    Field Value
    Type Description
    System.Single

    y

    Declaration
    public readonly float y
    Field Value
    Type Description
    System.Single

    Methods

    alongOffset(Offset)

    Declaration
    public Offset alongOffset(Offset other)
    Parameters
    Type Name Description
    Offset other
    Returns
    Type Description
    Offset

    alongSize(Size)

    Declaration
    public Offset alongSize(Size other)
    Parameters
    Type Name Description
    Size other
    Returns
    Type Description
    Offset

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean
    Overrides
    System.Object.Equals(System.Object)

    Equals(Alignment)

    Declaration
    public bool Equals(Alignment other)
    Parameters
    Type Name Description
    Alignment other
    Returns
    Type Description
    System.Boolean

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.Object.GetHashCode()

    inscribe(Size, Rect)

    Declaration
    public Rect inscribe(Size size, Rect rect)
    Parameters
    Type Name Description
    Size size
    Rect rect
    Returns
    Type Description
    Rect

    lerp(Alignment, Alignment, Single)

    Declaration
    public static Alignment lerp(Alignment a, Alignment b, float t)
    Parameters
    Type Name Description
    Alignment a
    Alignment b
    System.Single t
    Returns
    Type Description
    Alignment

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.Object.ToString()

    withinRect(Rect)

    Declaration
    public Offset withinRect(Rect rect)
    Parameters
    Type Name Description
    Rect rect
    Returns
    Type Description
    Offset

    Operators

    Addition(Alignment, Alignment)

    Declaration
    public static Alignment operator +(Alignment a, Alignment b)
    Parameters
    Type Name Description
    Alignment a
    Alignment b
    Returns
    Type Description
    Alignment

    Division(Alignment, Single)

    Declaration
    public static Alignment operator /(Alignment a, float b)
    Parameters
    Type Name Description
    Alignment a
    System.Single b
    Returns
    Type Description
    Alignment

    Equality(Alignment, Alignment)

    Declaration
    public static bool operator ==(Alignment a, Alignment b)
    Parameters
    Type Name Description
    Alignment a
    Alignment b
    Returns
    Type Description
    System.Boolean

    Inequality(Alignment, Alignment)

    Declaration
    public static bool operator !=(Alignment a, Alignment b)
    Parameters
    Type Name Description
    Alignment a
    Alignment b
    Returns
    Type Description
    System.Boolean

    Modulus(Alignment, Single)

    Declaration
    public static Alignment operator %(Alignment a, float b)
    Parameters
    Type Name Description
    Alignment a
    System.Single b
    Returns
    Type Description
    Alignment

    Multiply(Alignment, Single)

    Declaration
    public static Alignment operator *(Alignment a, float b)
    Parameters
    Type Name Description
    Alignment a
    System.Single b
    Returns
    Type Description
    Alignment

    Subtraction(Alignment, Alignment)

    Declaration
    public static Alignment operator -(Alignment a, Alignment b)
    Parameters
    Type Name Description
    Alignment a
    Alignment b
    Returns
    Type Description
    Alignment

    UnaryNegation(Alignment)

    Declaration
    public static Alignment operator -(Alignment a)
    Parameters
    Type Name Description
    Alignment a
    Returns
    Type Description
    Alignment
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023