static Pt rectTopLeftCorner(Rect r) { ret r == null ? null : pt(r.x, r.y); }