factory Rect(int x, int y, int width, int height) { final ptr = calloc<cvg.CvRect>() ..ref.x = x ..ref.y = y ..ref.width = width ..ref.height = height; return Rect._(ptr); }