Rect.isEmpty

Function/Meaning
Whether the rectangle has an interior
Type
Method of the Rect class
Syntax
isEmpty()
Arguments
None
Return Value
Whether the area exists
Description
Checks whether the rectangle has width and height.
Returns true if either is 0 or less.