clone method

GRect clone()

Returns a new GRect object with the same values for the x, y, width, and height properties as the original GRect object.

Implementation

GRect clone() {
  return GRect(x, y, width, height);
}