op

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: MIT, Unlicense Imports: 6 Imported by: 2 modules, 7 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Defer

func Defer(o *Ops, c CallOp)

Types

type CallOp

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

func (CallOp) Add

func (c CallOp) Add(o *Ops)

type InvalidateCmd

type InvalidateCmd struct {
	At time.Time
}

func (InvalidateCmd) ImplementsCommand

func (InvalidateCmd) ImplementsCommand()

type MacroOp

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

func Record

func Record(o *Ops) MacroOp

func (MacroOp) Stop

func (m MacroOp) Stop() CallOp

type Ops

type Ops struct {
	Internal ops.Ops
}

func (*Ops) Reset

func (o *Ops) Reset()

func (*Ops) Size added in v1.1.0

func (o *Ops) Size() int

Size returns the byte length of the op buffer's encoded operations. Intended for monitoring growth of long-lived buffers (e.g. a shaper's persistent path buffer) without exposing internal state.

type TransformOp

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

func Affine

func Affine(a f32.Affine2D) TransformOp

func Offset

func Offset(off image.Point) TransformOp

func (TransformOp) Add

func (t TransformOp) Add(o *Ops)

func (TransformOp) Push

func (t TransformOp) Push(o *Ops) TransformStack

type TransformStack

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

func (TransformStack) Pop

func (t TransformStack) Pop()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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