Intersect the current clipping path with `rect'.
Note that this function resets the context's path to the empty path.
实现了 GiCanvas.