pushClipRect method

EngineLayer pushClipRect (Rect rect, { Clip clipBehavior: Clip.antiAlias })

Pushes a rectangular clip operation onto the operation stack.

Rasterization outside the given rectangle is discarded.

See pop for details about the operation stack, and Clip for different clip modes. By default, the clip will be anti-aliased (clip = Clip.antiAlias).


EngineLayer pushClipRect(Rect rect, {Clip clipBehavior = Clip.antiAlias}) {
  assert(clipBehavior != null);
  assert(clipBehavior != Clip.none);
  return _pushClipRect(rect.left, rect.right, rect.top, rect.bottom, clipBehavior.index);