Rect constructor

Rect(
  1. int x,
  2. int y,
  3. int width,
  4. int height,
)

Implementation

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);
}