mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
all: rename clip.Path.End into clip.Path.Outline
Signed-off-by: Sebastien Binet <s@sbinet.org>
This commit is contained in:
committed by
Elias Naur
parent
ade248311c
commit
936eb52b7e
+2
-2
@@ -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
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user