static Rect rectAndStateToRect(RectAndState r) { ret r == null ? null : r.r; }