Versions in this module Expand all Collapse all v0 v0.0.1 Jan 21, 2024 Changes in this version + const TypeActionInputLen + const TypeAuxLen + const TypeCallLen + const TypeClipLen + const TypeClipboardReadLen + const TypeClipboardWriteLen + const TypeColorLen + const TypeCursorLen + const TypeDeferLen + const TypeImageLen + const TypeKeyFocusLen + const TypeKeyInputLen + const TypeKeySoftKeyboardLen + const TypeLinearGradientLen + const TypeLoadLen + const TypeMacroLen + const TypeOfferLen + const TypePaintLen + const TypePassLen + const TypePathLen + const TypePointerInputLen + const TypePopClipLen + const TypePopOpacityLen + const TypePopPassLen + const TypePopTransformLen + const TypeProfileLen + const TypePushOpacityLen + const TypeRedrawLen + const TypeSaveLen + const TypeSelectionLen + const TypeSemanticClassLen + const TypeSemanticDescLen + const TypeSemanticEnabledLen + const TypeSemanticLabelLen + const TypeSemanticSelectedLen + const TypeSnippetLen + const TypeSourceLen + const TypeStrokeLen + const TypeTargetLen + const TypeTransformLen + func AddCall(o *Ops, callOps *Ops, pc PC, end PC) + func BeginMulti(o *Ops) + func DecodeCommand(d []byte) scene.Command + func DecodeLoad(data []byte) int + func DecodeOpacity(data []byte) float32 + func DecodeSave(data []byte) int + func DecodeTransform(data []byte) (t f32.Affine2D, push bool) + func EncodeCommand(out []byte, cmd scene.Command) + func EndMulti(o *Ops) + func FillMacro(o *Ops, startPC PC) + func PopMacro(o *Ops, id StackID) + func PopOp(o *Ops, kind StackKind, sid StackID, macroID uint32) + func Reset(o *Ops) + func Write(o *Ops, n int) []byte + func Write1(o *Ops, n int, ref1 interface{}) []byte + func Write1String(o *Ops, n int, ref1 string) []byte + func Write2(o *Ops, n int, ref1, ref2 interface{}) []byte + func Write2String(o *Ops, n int, ref1 interface{}, ref2 string) []byte + func Write3(o *Ops, n int, ref1, ref2, ref3 interface{}) []byte + func WriteMulti(o *Ops, n int) []byte + type ClipOp struct + Bounds image.Rectangle + Outline bool + Shape Shape + func (op *ClipOp) Decode(data []byte) + type EncodedOp struct + Data []byte + Key Key + Refs []interface{} + type Key struct + type OpType byte + const TypeActionInput + const TypeAux + const TypeCall + const TypeClip + const TypeClipboardRead + const TypeClipboardWrite + const TypeColor + const TypeCursor + const TypeDefer + const TypeImage + const TypeInvalidate + const TypeKeyFocus + const TypeKeyInput + const TypeKeySoftKeyboard + const TypeLinearGradient + const TypeLoad + const TypeMacro + const TypeOffer + const TypePaint + const TypePass + const TypePath + const TypePointerInput + const TypePopClip + const TypePopOpacity + const TypePopPass + const TypePopTransform + const TypeProfile + const TypePushOpacity + const TypeSave + const TypeSelection + const TypeSemanticClass + const TypeSemanticDesc + const TypeSemanticEnabled + const TypeSemanticLabel + const TypeSemanticSelected + const TypeSnippet + const TypeSource + const TypeStroke + const TypeTarget + const TypeTransform + func (t OpType) NumRefs() uint32 + func (t OpType) Size() uint32 + func (t OpType) String() string + type Ops struct + type PC struct + func PCFor(o *Ops) PC + func (pc PC) Add(op OpType) PC + type Reader struct + func (r *Reader) Decode() (EncodedOp, bool) + func (r *Reader) Reset(ops *Ops) + func (r *Reader) ResetAt(ops *Ops, pc PC) + type Shape byte + const Ellipse + const Path + const Rect + type StackID struct + func PushMacro(o *Ops) StackID + func PushOp(o *Ops, kind StackKind) (StackID, uint32) + type StackKind uint8 + const ClipStack + const OpacityStack + const PassStack + const TransStack + type StateOp struct + func Save(o *Ops) StateOp + func (s StateOp) Load()