add accessors to Rect attributes