Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Rectangle

The relative location of the region to the screen or window.

Hierarchy

  • Rectangle

Index

Constructors

Properties

Constructors

constructor

  • new Rectangle(x?: number, y?: number, width?: number, height?: number): Rectangle
  • Parameters

    • Default value x: number = 0
    • Default value y: number = 0
    • Default value width: number = 0
    • Default value height: number = 0

    Returns Rectangle

Properties

height

height: number

The height of the region.

width

width: number

The width of the region.

x

x: number

The horizontal offset from the top-left corner.

y

y: number

The vertical offset from the top-left corner.

Generated using TypeDoc