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

    Class EdgeInsets

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

    Fields

    bottom

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

    left

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

    right

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

    top

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

    zero

    Declaration
    public static readonly EdgeInsets zero
    Field Value
    Type Description
    EdgeInsets

    Properties

    bottomLeft

    Declaration
    public Offset bottomLeft { get; }
    Property Value
    Type Description
    Offset

    bottomRight

    Declaration
    public Offset bottomRight { get; }
    Property Value
    Type Description
    Offset

    collapsedSize

    Declaration
    public Size collapsedSize { get; }
    Property Value
    Type Description
    Size

    flipped

    Declaration
    public EdgeInsets flipped { get; }
    Property Value
    Type Description
    EdgeInsets

    horizontal

    Declaration
    public float horizontal { get; }
    Property Value
    Type Description
    System.Single

    isNonNegative

    Declaration
    public bool isNonNegative { get; }
    Property Value
    Type Description
    System.Boolean

    topLeft

    Declaration
    public Offset topLeft { get; }
    Property Value
    Type Description
    Offset

    topRight

    Declaration
    public Offset topRight { get; }
    Property Value
    Type Description
    Offset

    vertical

    Declaration
    public float vertical { get; }
    Property Value
    Type Description
    System.Single

    Methods

    add(EdgeInsets)

    Declaration
    public EdgeInsets add(EdgeInsets other)
    Parameters
    Type Name Description
    EdgeInsets other
    Returns
    Type Description
    EdgeInsets

    all(Single)

    Declaration
    public static EdgeInsets all(float value)
    Parameters
    Type Name Description
    System.Single value
    Returns
    Type Description
    EdgeInsets

    along(Axis)

    Declaration
    public float along(Axis axis)
    Parameters
    Type Name Description
    Axis axis
    Returns
    Type Description
    System.Single

    copyWith(Nullable<Single>, Nullable<Single>, Nullable<Single>, Nullable<Single>)

    Declaration
    public EdgeInsets copyWith(float? left = default(float? ), float? top = default(float? ), float? right = default(float? ), float? bottom = default(float? ))
    Parameters
    Type Name Description
    System.Nullable<System.Single> left
    System.Nullable<System.Single> top
    System.Nullable<System.Single> right
    System.Nullable<System.Single> bottom
    Returns
    Type Description
    EdgeInsets

    deflateRect(Rect)

    Declaration
    public Rect deflateRect(Rect rect)
    Parameters
    Type Name Description
    Rect rect
    Returns
    Type Description
    Rect

    deflateSize(Size)

    Declaration
    public Size deflateSize(Size size)
    Parameters
    Type Name Description
    Size size
    Returns
    Type Description
    Size

    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(EdgeInsets)

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

    fromLTRB(Single, Single, Single, Single)

    Declaration
    public static EdgeInsets fromLTRB(float left, float top, float right, float bottom)
    Parameters
    Type Name Description
    System.Single left
    System.Single top
    System.Single right
    System.Single bottom
    Returns
    Type Description
    EdgeInsets

    fromWindowPadding(WindowPadding, Single)

    Declaration
    public static EdgeInsets fromWindowPadding(WindowPadding padding, float devicePixelRatio)
    Parameters
    Type Name Description
    WindowPadding padding
    System.Single devicePixelRatio
    Returns
    Type Description
    EdgeInsets

    GetHashCode()

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

    inflateRect(Rect)

    Declaration
    public Rect inflateRect(Rect rect)
    Parameters
    Type Name Description
    Rect rect
    Returns
    Type Description
    Rect

    inflateSize(Size)

    Declaration
    public Size inflateSize(Size size)
    Parameters
    Type Name Description
    Size size
    Returns
    Type Description
    Size

    lerp(EdgeInsets, EdgeInsets, Single)

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

    only(Single, Single, Single, Single)

    Declaration
    public static EdgeInsets only(float left = 0F, float top = 0F, float right = 0F, float bottom = 0F)
    Parameters
    Type Name Description
    System.Single left
    System.Single top
    System.Single right
    System.Single bottom
    Returns
    Type Description
    EdgeInsets

    subtract(EdgeInsets)

    Declaration
    public EdgeInsets subtract(EdgeInsets other)
    Parameters
    Type Name Description
    EdgeInsets other
    Returns
    Type Description
    EdgeInsets

    symmetric(Single, Single)

    Declaration
    public static EdgeInsets symmetric(float vertical = 0F, float horizontal = 0F)
    Parameters
    Type Name Description
    System.Single vertical
    System.Single horizontal
    Returns
    Type Description
    EdgeInsets

    ToString()

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

    Operators

    Addition(EdgeInsets, EdgeInsets)

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

    Division(EdgeInsets, Single)

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

    Equality(EdgeInsets, EdgeInsets)

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

    Inequality(EdgeInsets, EdgeInsets)

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

    Modulus(EdgeInsets, Single)

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

    Multiply(EdgeInsets, Single)

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

    Subtraction(EdgeInsets, EdgeInsets)

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

    UnaryNegation(EdgeInsets)

    Declaration
    public static EdgeInsets operator -(EdgeInsets a)
    Parameters
    Type Name Description
    EdgeInsets a
    Returns
    Type Description
    EdgeInsets
    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