static Rect toRect(Rectangle r) { ret Rect(r); }