Rect specifies a two-dimensional rectangle's x,y,width, and height attributes.

Class Properties (see Type)

New
(Rect) or (x,y,w,h)-> Rect Create a new Rect value. Its attributes are initialized by another Rect or up to 4 integer parameters. Otherwise, the attributes are initialized to 0.

Instance Methods and Properties

height
set or get the height attribute.
width
set or get the width attribute.
x
set or get the x attribute.
y
set or get the y attribute.