Rect.isEmpty

Function/Meaning

Whether there is a rectangle inside

Type
Rectclassmethod of
Syntax
isEmpty()
Arguments
Return value

Presence or absence of area

Explanation

Check if the rectangle has width and height.
If either one is less than or equal to 0, true is returned.