Creates a new UiRect that is offset by the given x and y values.
UiRect
UiRect offset(double x, double y) { return UiRect(getLeft() + x, getTop() + y, getRight() + x, getBottom() + y); }