static Rect shrinkRect(Rect r, int pixels) { ret new Rect(r.x+pixels, r.y+pixels, r.w-pixels*2, r.h-pixels*2); }