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
+2 -2
View File
@@ -6,8 +6,8 @@ import (
"fmt"
"image"
"gioui.org/ui"
"gioui.org/layout"
"gioui.org/op"
"golang.org/x/image/math/fixed"
)
@@ -50,7 +50,7 @@ type Face interface {
// options.
Layout(s string, opts LayoutOptions) *Layout
// Path returns the ClipOp outline of a text recorded in a macro.
Path(s String) ui.MacroOp
Path(s String) op.MacroOp
}
type Alignment uint8