Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Bounds

Stores the position and size of an element.

Hierarchy

  • Bounds

Index

Constructors

Accessors

Constructors

constructor

  • new Bounds(x: number, y: number, width: number, height: number): Bounds
  • Initializes a new instance of the {@link com.bayesserver.Bounds} class.

    Parameters

    • x: number

      The x-axis value of the left side of the element.

    • y: number

      The y-axis value of the top side of the element.

    • width: number

      The width of the element.

    • height: number

      The height of the element.

    Returns Bounds

Accessors

height

  • get height(): number
  • Gets the height of the element.

    Returns number

width

  • get width(): number
  • Gets the width of the element.

    Returns number

x

  • get x(): number
  • Gets the x-axis value of the left side of the element.

    Returns number

y

  • get y(): number
  • Gets the y-axis value of the top side of the element.

    Returns number