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
+1 -1
View File
@@ -23,7 +23,7 @@ The following example declares a handler ready for key input:
import gioui.org/io/key
ops := new(ui.Ops)
ops := new(op.Ops)
var h *Handler = ...
key.InputOp{Key: h}.Add(ops)