offset method

UiRect offset(
  1. double x,
  2. double y
)

Creates a new UiRect that is offset by the given x and y values.

Implementation

UiRect offset(double x, double y) {
  return UiRect(getLeft() + x, getTop() + y, getRight() + x, getBottom() + y);
}