Show / Hide Table of Contents

    Struct Rectangle

    Represents a rectangle in 2D space.

    Inherited Members
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: AGS.API
    Assembly: AGS.API.dll
    Syntax
    public struct Rectangle

    Constructors

    | Improve this Doc View Source

    Rectangle(Int32, Int32, Int32, Int32)

    Initializes a new instance of the Rectangle struct.

    Declaration
    public Rectangle(int x, int y, int width, int height)
    Parameters
    Type Name Description
    System.Int32 x

    The x coordinate.

    System.Int32 y

    The y coordinate.

    System.Int32 width

    Width.

    System.Int32 height

    Height.

    Properties

    | Improve this Doc View Source

    Height

    Gets the height.

    Declaration
    public int Height { get; }
    Property Value
    Type Description
    System.Int32

    The height.

    | Improve this Doc View Source

    Width

    Gets the width.

    Declaration
    public int Width { get; }
    Property Value
    Type Description
    System.Int32

    The width.

    | Improve this Doc View Source

    X

    Gets the x coordinate.

    Declaration
    public int X { get; }
    Property Value
    Type Description
    System.Int32

    The x.

    | Improve this Doc View Source

    Y

    Gets the y coordinate.

    Declaration
    public int Y { get; }
    Property Value
    Type Description
    System.Int32

    The y.

    Methods

    | Improve this Doc View Source

    Deconstruct(out Int32, out Int32, out Int32, out Int32)

    Declaration
    public void Deconstruct(out int x, out int y, out int width, out int height)
    Parameters
    Type Name Description
    System.Int32 x
    System.Int32 y
    System.Int32 width
    System.Int32 height
    | Improve this Doc View Source

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean
    Overrides
    System.ValueType.Equals(System.Object)
    | Improve this Doc View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.ValueType.GetHashCode()
    | Improve this Doc View Source

    ToInspectorString()

    Declaration
    [CustomStringValue(CustomStringApplyWhen.CanWrite)]
    public string ToInspectorString()
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    ToString()

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

    Operators

    | Improve this Doc View Source

    Implicit((Int32 x, Int32 y, Int32 width, Int32 height) to Rectangle)

    Declaration
    public static implicit operator Rectangle((int x, int y, int width, int height) rect)
    Parameters
    Type Name Description
    System.ValueTuple<System.Int32, System.Int32, System.Int32, System.Int32> rect
    Returns
    Type Description
    Rectangle
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX