aboutsummaryrefslogtreecommitdiff
path: root/vendor/gioui.org/op/clip/doc.go
blob: 894cffdb37b518a7b7129dbdd85d9222bec7cc8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// SPDX-License-Identifier: Unlicense OR MIT

/*
Package clip provides operations for defining areas that applies to operations
such as paints and pointer handlers.

The current clip is initially the infinite set. Pushing an Op sets the clip
to the intersection of the current clip and pushed clip area. Popping the
area restores the clip to its state before pushing.

General clipping areas are constructed with Path. Common cases such as
rectangular clip areas also exist as convenient constructors.
*/
package clip