pushClipRRect method

EngineLayer pushClipRRect (RRect rrect, { Clip clipBehavior: Clip.antiAlias })

Pushes a rounded-rectangular clip operation onto the operation stack.

Rasterization outside the given rounded 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 pushClipRRect(RRect rrect, {Clip clipBehavior = Clip.antiAlias}) {
  assert(clipBehavior != null);
  assert(clipBehavior != Clip.none);
  return _pushClipRRect(rrect._value, clipBehavior.index);