all: rename clip.Path.End into clip.Path.Outline

Signed-off-by: Sebastien Binet <s@sbinet.org>
This commit is contained in:
Sebastien Binet
2020-11-09 14:13:09 +00:00
committed by Elias Naur
parent ade248311c
commit 936eb52b7e
6 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -312,8 +312,8 @@ func (p *Path) approxCubeTo(splits int, maxDist float32, ctrl0, ctrl1, to f32.Po
return splits
}
// End the path and return a clip operation that represents it.
func (p *Path) End() Op {
// Outline closes the path and returns a clip operation that represents it.
func (p *Path) Outline() Op {
p.end()
c := p.macro.Stop()
return Op{
+2 -2
View File
@@ -36,7 +36,7 @@ func (rr RRect) Op(ops *op.Ops) Op {
p.Begin(ops)
p.Move(rr.Rect.Min)
roundRect(&p, rr.Rect.Size(), rr.SE, rr.SW, rr.NW, rr.NE)
return p.End()
return p.Outline()
}
// Add the rectangle clip.
@@ -73,7 +73,7 @@ func (b Border) Op(ops *op.Ops) Op {
p.Move(r.Min.Sub(end))
roundRectRev(&p, r.Size(), b.SE-w, b.SW-w, b.NW-w, b.NE-w)
return p.End()
return p.Outline()
}
// Add the border clip.