static Rectangle toRectangle(Rect r) { ret r == null ? null : r.getRectangle(); }