static Rect rectSetHeightToWidth(Rect r) { ret r == null ? null : rect(r.x, r.y, r.w, r.w); }