static Rect translateRect(int x, int y, Rect r) { ret translateRect(r, x, y); } static Rect translateRect(Rect r, int x, int y) { ret r == null ? null : new Rect(r.x+x, r.y+y, r.w, r.h); }