op

package
v1.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2026 License: Unlicense Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ColorOp

func ColorOp(ops Ctx, col color.NRGBA)

func GlyphOp added in v1.3.2

func GlyphOp(ops Ctx, face *bitmap.Face, r rune)

func ImageOp

func ImageOp(ops Ctx, img image.Image, mask bool)

func InputOp added in v1.3.6

func InputOp(ops Ctx, tag Tag)

func Offset

func Offset(ops Ctx, off image.Point)

func ParamImageOp added in v1.3.2

func ParamImageOp(ops Ctx, img Image, mask bool, bounds image.Rectangle, refs []any, args []uint32)

func Position

func Position(ops Ctx, c CallOp, off image.Point)

Types

type CallOp

type CallOp struct {
	// contains filtered or unexported fields
}

func (CallOp) Add

func (c CallOp) Add(ops Ctx)

type ClipOp

type ClipOp image.Rectangle

func (ClipOp) Add

func (c ClipOp) Add(ops Ctx)

type Ctx

type Ctx struct {
	// contains filtered or unexported fields
}

func (*Ctx) Begin

func (o *Ctx) Begin() Ctx

func (*Ctx) End

func (o *Ctx) End() CallOp

type Image added in v1.3.2

type Image struct {
	// contains filtered or unexported fields
}

func RegisterParameterizedImage added in v1.3.2

func RegisterParameterizedImage(gen ImageGenerator) Image

type ImageArguments added in v1.3.2

type ImageArguments struct {
	Refs   []any
	Args   []uint32
	Bounds image.Rectangle
}

type ImageGenerator added in v1.3.2

type ImageGenerator func(args ImageArguments, x, y int) color.RGBA64

type Ops

type Ops struct {
	// contains filtered or unexported fields
}

func (*Ops) Clip added in v1.2.0

func (o *Ops) Clip(dst image.Rectangle) image.Rectangle

func (*Ops) Context added in v1.3.0

func (o *Ops) Context() Ctx

func (*Ops) Draw

func (o *Ops) Draw(dst draw.Image, maskfb draw.Image)

func (*Ops) ExtractText added in v1.3.0

func (o *Ops) ExtractText(dst image.Rectangle) string

func (*Ops) Hit added in v1.3.6

func (o *Ops) Hit(p image.Point) (Tag, image.Rectangle, bool)

func (*Ops) Reset

func (o *Ops) Reset()

func (*Ops) TagBounds added in v1.3.6

func (o *Ops) TagBounds(t Tag) (image.Rectangle, bool)

type Tag added in v1.3.6

type Tag any

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL