Documentation ¶
Index ¶
- Constants
- 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 int)
- 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
- type EncodedOp
- type Key
- type OpType
- type Ops
- type PC
- type Reader
- type Shape
- type StackID
- type StackKind
- type StateOp
Constants ¶
View Source
const ( TypeMacroLen = 1 + 4 + 4 TypeCallLen = 1 + 4 + 4 + 4 + 4 TypeDeferLen = 1 TypeTransformLen = 1 + 1 + 4*6 TypePopTransformLen = 1 TypePushOpacityLen = 1 + 4 TypePopOpacityLen = 1 TypeRedrawLen = 1 + 8 TypeImageLen = 1 TypePaintLen = 1 TypeColorLen = 1 + 4 TypeLinearGradientLen = 1 + 8*2 + 4*2 TypePassLen = 1 TypePopPassLen = 1 TypePointerInputLen = 1 + 1 + 1*2 + 2*4 + 2*4 TypeClipboardReadLen = 1 TypeClipboardWriteLen = 1 TypeSourceLen = 1 TypeTargetLen = 1 TypeOfferLen = 1 TypeKeyInputLen = 1 + 1 TypeKeyFocusLen = 1 + 1 TypeKeySoftKeyboardLen = 1 + 1 TypeSaveLen = 1 + 4 TypeLoadLen = 1 + 4 TypeAuxLen = 1 TypeClipLen = 1 + 4*4 + 1 + 1 TypePopClipLen = 1 TypeProfileLen = 1 TypeCursorLen = 2 TypePathLen = 8 + 1 TypeStrokeLen = 1 + 4 TypeSemanticLabelLen = 1 TypeSemanticDescLen = 1 TypeSemanticClassLen = 2 TypeSemanticSelectedLen = 2 TypeSemanticEnabledLen = 2 TypeSnippetLen = 1 + 4 + 4 TypeSelectionLen = 1 + 2*4 + 2*4 + 4 + 4 TypeActionInputLen = 1 + 1 )
Variables ¶
This section is empty.
Functions ¶
func BeginMulti ¶
func BeginMulti(o *Ops)
func DecodeCommand ¶
func DecodeOpacity ¶
func EncodeCommand ¶
func WriteMulti ¶
Types ¶
type Key ¶
type Key struct {
// contains filtered or unexported fields
}
Key is a unique key for a given op.
type OpType ¶
type OpType byte
const ( TypeMacro OpType = iota + firstOpIndex TypeCall TypeDefer TypeTransform TypePopTransform TypePushOpacity TypePopOpacity TypeInvalidate TypeImage TypePaint TypeColor TypeLinearGradient TypePass TypePopPass TypePointerInput TypeClipboardRead TypeClipboardWrite TypeSource TypeTarget TypeOffer TypeKeyInput TypeKeyFocus TypeKeySoftKeyboard TypeSave TypeLoad TypeAux TypeClip TypePopClip TypeProfile TypeCursor TypePath TypeStroke TypeSemanticLabel TypeSemanticDesc TypeSemanticClass TypeSemanticSelected TypeSemanticEnabled TypeSnippet TypeSelection TypeActionInput )
type PC ¶
type PC struct {
// contains filtered or unexported fields
}
PC is an instruction counter for an operation list.
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader parses an ops list.
Click to show internal directories.
Click to hide internal directories.