setRect(Geometry.Rec) function added