op/clip: split clip operations into its own package

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-11-09 19:05:03 +01:00
parent 560cf6054c
commit e864ac3fc3
14 changed files with 72 additions and 53 deletions
+2 -2
View File
@@ -3,7 +3,7 @@
package text
import (
"gioui.org/op/paint"
"gioui.org/op/clip"
"gioui.org/unit"
"golang.org/x/image/math/fixed"
)
@@ -61,7 +61,7 @@ type Font struct {
// Face implements text layout and shaping for a particular font.
type Face interface {
Layout(ppem fixed.Int26_6, str string, opts LayoutOptions) *Layout
Shape(ppem fixed.Int26_6, str String) paint.ClipOp
Shape(ppem fixed.Int26_6, str String) clip.Op
}
// Typeface identifies a particular typeface design. The empty