static Rect clipRect(Rect r, Rect clip) { if (r == null || clip == null) null; ret translateRect(intersectRects(r, clip), -clip.x, -clip.y); }