mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 09:55:40 +00:00
ui/paint: rename the draw package
The draw package name clashes with the standard library draw package. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+2
-2
@@ -6,10 +6,10 @@ import (
|
||||
"image"
|
||||
|
||||
"gioui.org/ui"
|
||||
"gioui.org/ui/draw"
|
||||
"gioui.org/ui/gesture"
|
||||
"gioui.org/ui/input"
|
||||
"gioui.org/ui/pointer"
|
||||
"gioui.org/ui/paint"
|
||||
)
|
||||
|
||||
type scrollChild struct {
|
||||
@@ -230,7 +230,7 @@ func (l *List) Layout() Dimens {
|
||||
}
|
||||
var stack ui.StackOp
|
||||
stack.Push(ops)
|
||||
draw.RectClip(r).Add(ops)
|
||||
paint.RectClip(r).Add(ops)
|
||||
ui.TransformOp{}.Offset(toPointF(axisPoint(l.Axis, transPos, cross))).Add(ops)
|
||||
child.macro.Add(ops)
|
||||
stack.Pop()
|
||||
|
||||
Reference in New Issue
Block a user