copyFrom method

GRect copyFrom(
  1. GRect sourceRect
)

Sets the properties of this GRect to be equal to those of the sourceRect.

Returns this GRect after the copy operation.

Implementation

GRect copyFrom(GRect sourceRect) {
  x = sourceRect.x;
  y = sourceRect.y;
  width = sourceRect.width;
  height = sourceRect.height;
  return this;
}