Inherits from JavaScript Object
Location aphid.core.Rect

Overview of Tasks

Attributes

  • Type
  • float
  • Point
  • Size
  • float
  • float
  • float
  • Writability
  • readwrite
  • readwrite
  • readwrite
  • readwrite
  • readwrite
  • readwrite

Functions

  • Return Type
  • Rect
  • bool
  • void
  • string

Class Attributes

  • Type
  • Rect
  • Writability
  • readonly

Constructors

Rect(x, y, width, height)

new Rect(float x, float y, float width, float height)

Parameters

float x
float y
float width
float height

Rect(origin, size)

new Rect(Point origin, Size size)

Parameters

Non-null Point origin
Non-null Size size

Rect(rect)

new Rect(Rect rect)

Parameters

Non-null Rect rect

Rect()

new Rect()

Attributes

height

readwrite float height

origin

Non-null readwrite Point origin

size

Non-null readwrite Size size

width

readwrite float width

x

readwrite float x

y

readwrite float y

Functions

copy()

Rect copy()

Return Value: Rect

equals(r)

bool equals(Rect r)

Parameters

Non-null Rect r

Return Value: bool

setXYWH(x, y, w, h)

void setXYWH(float x, float y, float w, float h)

Parameters

float x
float y
float w
float h

toString()

string toString()

Return Value: string

Class Attributes

Rect.zero

Non-null readonly Rect zero