IntRect constructor

IntRect([
  1. int left = 0,
  2. int top = 0,
  3. int width = 0,
  4. int height = 0,
])

Creates a new IntRect with the specified position and dimensions.

left The x-coordinate of the left edge. top The y-coordinate of the top edge. width The width of the rectangle. height The height of the rectangle.

Implementation

IntRect([this.left = 0, this.top = 0, this.width = 0, this.height = 0]);