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