Rect.clip

Function/Meaning

Rectangle clipping

Type
Rectclassmethod of
Syntax
clip(r)
Arguments
r

Specifies the rectangular object to clip.

Return value

With or without clipping

Explanation

Clips the rectangle to the specified rectangle.
Clipping will only occur if the rectangle is not empty.
If it becomes empty, false is returned and clipping is not performed.

Reference
Rect.isEmpty