static Int rectCenterX(Rect r) { ret r == null ? null : r.x+r.w/2; }