clip abstract method

void clip(
  1. Canvas canvas
)

Apply clip mask to the canvas.

The mask must be in the viewport's local coordinate system, where the top left corner of the viewport has coordinates (0, 0). The overall size of the clip mask's shape must match the size of the viewport.

This API must be implemented by all viewports.

Implementation

void clip(Canvas canvas);