~eliasnaur/gio

ref: 1e38eec0abc1198e20d556f9f21345bf0114b211 gio/ui/internal/ops/ops.go -rw-r--r-- 1.2 KiB
1e38eec0Elias Naur ui: build paths as ops 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
package ops

type OpType byte

// Start at a high number for easier debugging.
const FirstOpIndex = 200

const (
	TypeBlockDef OpType = iota + FirstOpIndex
	TypeBlock
	TypeTransform
	TypeLayer
	TypeRedraw
	TypeImage
	TypeDraw
	TypeColor
	TypePointerHandler
	TypeKeyHandler
	TypeHideInput
	TypePush
	TypePop
	TypeAux
	TypeClip
)

const (
	TypeBlockDefLen       = 1 + 4 + 4
	TypeBlockLen          = 1 + 4 + 4 + 4
	TypeTransformLen      = 1 + 4*2
	TypeLayerLen          = 1
	TypeRedrawLen         = 1 + 8
	TypeImageLen          = 1 + 4*4
	TypeDrawLen           = 1 + 4*4
	TypeColorLen          = 1 + 4
	TypePointerHandlerLen = 1 + 1
	TypeKeyHandlerLen     = 1 + 1
	TypeHideInputLen      = 1
	TypePushLen           = 1
	TypePopLen            = 1
	TypeAuxLen            = 1 + 4
	TypeClipLen           = 1 + 4*4

	TypeBlockDefRefs       = 0
	TypeBlockRefs          = 1
	TypeTransformRefs      = 0
	TypeLayerRefs          = 0
	TypeRedrawRefs         = 0
	TypeImageRefs          = 1
	TypeDrawRefs           = 0
	TypeColorRefs          = 0
	TypePointerHandlerRefs = 2
	TypeKeyHandlerRefs     = 1
	TypeHideInputRefs      = 0
	TypePushRefs           = 0
	TypePopRefs            = 0
	TypeAuxRefs            = 0
	TypeClipRefs           = 0
)