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

    Class RelativeRect

    Inheritance
    System.Object
    RelativeRect
    Namespace: Unity.UIWidgets.rendering
    Syntax
    public class RelativeRect : IEquatable<RelativeRect>

    Fields

    bottom

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

    fill

    Declaration
    public static readonly RelativeRect fill
    Field Value
    Type Description
    RelativeRect

    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

    Properties

    hasInsets

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

    Methods

    deflate(Single)

    Declaration
    public RelativeRect deflate(float delta)
    Parameters
    Type Name Description
    System.Single delta
    Returns
    Type Description
    RelativeRect

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

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

    fromLTRB(Single, Single, Single, Single)

    Declaration
    public static RelativeRect 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
    RelativeRect

    fromRect(Rect, Rect)

    Declaration
    public static RelativeRect fromRect(Rect rect, Rect container)
    Parameters
    Type Name Description
    Rect rect
    Rect container
    Returns
    Type Description
    RelativeRect

    fromSize(Rect, Size)

    Declaration
    public static RelativeRect fromSize(Rect rect, Size container)
    Parameters
    Type Name Description
    Rect rect
    Size container
    Returns
    Type Description
    RelativeRect

    GetHashCode()

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

    inflate(Single)

    Declaration
    public RelativeRect inflate(float delta)
    Parameters
    Type Name Description
    System.Single delta
    Returns
    Type Description
    RelativeRect

    intersect(RelativeRect)

    Declaration
    public RelativeRect intersect(RelativeRect other)
    Parameters
    Type Name Description
    RelativeRect other
    Returns
    Type Description
    RelativeRect

    lerp(RelativeRect, RelativeRect, Single)

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

    shift(Offset)

    Declaration
    public RelativeRect shift(Offset offset)
    Parameters
    Type Name Description
    Offset offset
    Returns
    Type Description
    RelativeRect

    toRect(Rect)

    Declaration
    public Rect toRect(Rect container)
    Parameters
    Type Name Description
    Rect container
    Returns
    Type Description
    Rect

    toSize(Size)

    Declaration
    public Rect toSize(Size container)
    Parameters
    Type Name Description
    Size container
    Returns
    Type Description
    Rect

    Operators

    Equality(RelativeRect, RelativeRect)

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

    Inequality(RelativeRect, RelativeRect)

    Declaration
    public static bool operator !=(RelativeRect a, RelativeRect b)
    Parameters
    Type Name Description
    RelativeRect a
    RelativeRect b
    Returns
    Type Description
    System.Boolean
    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