Rect

Rect class

A class to represent the rectangle

Methods

constructor

NameDescription
constructor()

Result:


constructor_overload

NameDescription
constructor_overload(x, y, width, height)Constructor of class Rect

Parameters:

NameTypeDescription
Numbernull
Numbernull
widtNumbernull
heighNumbernull

Result:


getWidth

NameDescription
getWidth()Gets or sets the width of the size

Result:


setWidth

NameDescription
setWidth(value)Gets or sets the width of the size

Result:


getHeight

NameDescription
getHeight()Gets or sets the height of the size

Result:


setHeight

NameDescription
setHeight(value)Gets or sets the height of the size

Result:


getX

NameDescription
getX()Gets or sets the x of the size

Result:


setX

NameDescription
setX(value)Gets or sets the x of the size

Result:


getY

NameDescription
getY()Gets or sets the y of the size

Result:


setY

NameDescription
setY(value)Gets or sets the y of the size

Result:


getLeft

NameDescription
getLeft()Gets the left of the rectangle

Result:


getRight

NameDescription
getRight()Gets the right of the rectangle

Result:


getTop

NameDescription
getTop()Gets the top of the rectangle

Result:


getBottom

NameDescription
getBottom()Gets the bottom of the rectangle

Result:


contains

NameDescription
contains(x, y)Return true if the given point is inside the rectangle.

Parameters:

NameTypeDescription
Numbernull
Numbernull

Result: boolean