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