gioui.org: gioui.org/internal/ops Index | Files

package ops

import "gioui.org/internal/ops"

Index

Package Files

ops.go reader.go

Constants

const QuadSize = 4 * 2 * 3

func DecodeTransform Uses

func DecodeTransform(d []byte) (t f32.Affine2D)

func EncodeQuad Uses

func EncodeQuad(d []byte, q Quad)

type EncodedOp Uses

type EncodedOp struct {
    Key  Key
    Data []byte
    Refs []interface{}
}

EncodedOp represents an encoded op returned by Reader.

type Key Uses

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

Key is a unique key for a given op.

func (Key) SetTransform Uses

func (k Key) SetTransform(t f32.Affine2D) Key

type Quad Uses

type Quad struct {
    From, Ctrl, To f32.Point
}

func DecodeQuad Uses

func DecodeQuad(d []byte) (q Quad)

func (Quad) Transform Uses

func (q Quad) Transform(t f32.Affine2D) Quad

type Reader Uses

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

Reader parses an ops list.

func (*Reader) Decode Uses

func (r *Reader) Decode() (EncodedOp, bool)

func (*Reader) Reset Uses

func (r *Reader) Reset(ops *op.Ops)

Reset start reading from the op list.

Package ops imports 5 packages (graph) and is imported by 5 packages. Updated 2020-07-03. Refresh now. Tools for package owners.