op: add package op for operations

Extract operation types from package ui into package op.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-09-30 15:41:15 +02:00
parent eba1b3a95f
commit 8cf35a1f97
27 changed files with 225 additions and 227 deletions
+3 -3
View File
@@ -15,7 +15,7 @@ subsequent InputOp are active.
For example, to set up a rectangular hit area:
var ops ui.Ops
var ops op.Ops
var h *Handler = ...
r := image.Rectangle{...}
@@ -33,8 +33,8 @@ with the most recent node.
For example:
ops := new(ui.Ops)
var stack ui.StackOp
ops := new(op.Ops)
var stack op.StackOp
var h1, h2 *Handler
stack.Push(ops)