setClip method

void setClip(
  1. num x,
  2. num y,
  3. num width,
  4. num height,
)

Sets the drawing clip.

  • Same as this.clip = rect.
  • See clip.

Implementation

void setClip(num x, num y, num width, num height) =>
    clip = PRectangle(x, y, width, height);