scoop:scoop.graphics:0.1.0
scoop.graphics
API
-
enum
BlendMode
Premultiplied layer composition; Plus is saturating SDR addition.
-
class
Canvas
A canvas borrowed by a render callback. Every operation checks the active scope and owner.
-
struct
Color
Straight sRGB components in 0..1; surfaces use premultiplied alpha internally.
-
struct
CornerRadii
Four physical elliptical radii, in clockwise order from top left.
-
class
Drawing
Immutable native drawing commands; replay is not a pixel cache.
-
enum
FillRule
The winding rule used consistently by drawing, clipping and contains.
-
class
Gradient
An immutable copied set of color stops.
- struct GradientStop
-
class
GraphicsException
A native graphics operation failed. Invalid values and closed resources use standard exceptions.
-
class
Image
Immutable pixels with a color space; GPU images retain their compatible context.
-
class
ImageFilter
Immutable image processing on the creating thread. Compositions retain their inputs.
- enum ImageSampling
-
class
OffscreenSurface
Independent pixels compatible with the canvas that created this surface.
-
class
Paint
Drawing values; gradients copy their inputs and do not own a closeable native handle.
- enum PaintingStyle
-
class
Path
An immutable native path. Builder changes and builder closure do not change it.
-
class
PathBuilder
Incremental native path construction. build returns a snapshot and preserves the builder.
-
class
PathMeasure
A measurement snapshot that remains valid after closing the original path.
-
struct
PathSample
Position and unit tangent at a distance along the path's contours.
-
struct
Point
A point in logical coordinates, with positive y directed downward.
-
class
RasterSurface
A CPU surface usable without an Application or GPU.
-
struct
Rect
A logical rectangle. Parent relationships do not imply clipping to this rectangle.
-
struct
RoundedOutline
Shared physical geometry for fill, border, clip, shadow and focus outlines.
-
class
Shader
Immutable shader retaining its bound inputs.
-
class
ShaderBindings
A synchronous configuration scope. Numeric uniforms start at zero.
-
class
ShaderProgram
A reusable, owner-thread SkSL shader program.
-
struct
Size
A nonnegative logical size, checked at operation boundaries.
- enum StrokeCap
- enum StrokeJoin
-
struct
Transform
Maps (x,y) to (ax+cy+tx,bx+dy+ty).
-
function
path
Builds an owned, immutable path and closes the temporary builder on every exit. The configuration runs once, synchronously. An empty configuration creates an empty path.
-
function
rasterizeRegion
Converts filled coverage to owned rectangles on the requested logical grid.