mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
29cea1db49
Pointer hit areas and paint clip areas are separate concepts, but similar enough to warrant merging. This change replaces pointer hit areas with clip areas, so Gio is left with just one area concept (in package op/clip). The reason for separating the concepts in the original Gio release was because of my being unsure general path/stroke hit areas would ever be implemented, let alone efficient. This change represents a change of mind, in the sense that it's better to have an incomplete API than two separate area concepts. Leave the deprecated pointer.Rect, pointer.Ellipse for temporary backwards compatibility. This is an API change. Most existing programs should continue to build with this change, but may have to adjust to having all clip.Ops participate in InputOp hit areas. Signed-off-by: Elias Naur <mail@eliasnaur.com>
16 lines
474 B
Go
16 lines
474 B
Go
// SPDX-License-Identifier: Unlicense OR MIT
|
|
|
|
/*
|
|
Package paint provides drawing operations for 2D graphics.
|
|
|
|
The PaintOp operation fills the current clip with the current brush, taking the
|
|
current transformation into account. Drawing outside the current clip area is
|
|
ignored.
|
|
|
|
The current brush is set by either a ColorOp for a constant color, or
|
|
ImageOp for an image, or LinearGradientOp for gradients.
|
|
|
|
All color.NRGBA values are in the sRGB color space.
|
|
*/
|
|
package paint
|