mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 17:35:36 +00:00
op: remove operation list argument from MacroOp.Add
The ability to invoke other operation lists belongs in the new CallOp. While we're here, make MacroOp.Add use a pointer receiver to match the other methods. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+2
-2
@@ -262,7 +262,7 @@ func (l *List) layout() Dimensions {
|
||||
stack.Push(ops)
|
||||
clip.Rect{Rect: toRectF(r)}.Op(ops).Add(ops)
|
||||
op.TransformOp{}.Offset(toPointF(axisPoint(l.Axis, pos, cross))).Add(ops)
|
||||
child.macro.Add(ops)
|
||||
child.macro.Add()
|
||||
stack.Pop()
|
||||
pos += childSize
|
||||
}
|
||||
@@ -276,7 +276,7 @@ func (l *List) layout() Dimensions {
|
||||
l.macro.Stop()
|
||||
pointer.Rect(image.Rectangle{Max: dims}).Add(ops)
|
||||
l.scroll.Add(ops)
|
||||
l.macro.Add(ops)
|
||||
l.macro.Add()
|
||||
return Dimensions{Size: dims}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user