static int rectArea(Rect r) { ret r == null ? 0 : r.w*r.h; }