mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 01:45:36 +00:00
op/paint: move paint package below the op package
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -17,7 +17,7 @@ import (
|
|||||||
"gioui.org/internal/opconst"
|
"gioui.org/internal/opconst"
|
||||||
"gioui.org/internal/ops"
|
"gioui.org/internal/ops"
|
||||||
"gioui.org/op"
|
"gioui.org/op"
|
||||||
"gioui.org/paint"
|
"gioui.org/op/paint"
|
||||||
"golang.org/x/image/draw"
|
"golang.org/x/image/draw"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Vendored
+2
-1
@@ -9,7 +9,8 @@ import (
|
|||||||
|
|
||||||
"gioui.org/app"
|
"gioui.org/app"
|
||||||
"gioui.org/f32"
|
"gioui.org/f32"
|
||||||
"gioui.org/paint"
|
"gioui.org/op"
|
||||||
|
"gioui.org/op/paint"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|||||||
+1
-1
@@ -8,7 +8,7 @@ import (
|
|||||||
"gioui.org/gesture"
|
"gioui.org/gesture"
|
||||||
"gioui.org/io/pointer"
|
"gioui.org/io/pointer"
|
||||||
"gioui.org/op"
|
"gioui.org/op"
|
||||||
"gioui.org/paint"
|
"gioui.org/op/paint"
|
||||||
)
|
)
|
||||||
|
|
||||||
type scrollChild struct {
|
type scrollChild struct {
|
||||||
|
|||||||
+1
-1
@@ -12,7 +12,7 @@ import (
|
|||||||
|
|
||||||
"gioui.org/f32"
|
"gioui.org/f32"
|
||||||
"gioui.org/op"
|
"gioui.org/op"
|
||||||
"gioui.org/paint"
|
"gioui.org/op/paint"
|
||||||
"gioui.org/text"
|
"gioui.org/text"
|
||||||
"gioui.org/ui"
|
"gioui.org/ui"
|
||||||
"golang.org/x/image/font"
|
"golang.org/x/image/font"
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ Drawing a colored square:
|
|||||||
|
|
||||||
import "gioui.org/ui"
|
import "gioui.org/ui"
|
||||||
import "gioui.org/app"
|
import "gioui.org/app"
|
||||||
import "gioui.org/paint"
|
import "gioui.org/op/paint"
|
||||||
|
|
||||||
var w app.Window
|
var w app.Window
|
||||||
ops := new(op.Ops)
|
ops := new(op.Ops)
|
||||||
|
|||||||
+1
-1
@@ -15,7 +15,7 @@ import (
|
|||||||
"gioui.org/io/pointer"
|
"gioui.org/io/pointer"
|
||||||
"gioui.org/layout"
|
"gioui.org/layout"
|
||||||
"gioui.org/op"
|
"gioui.org/op"
|
||||||
"gioui.org/paint"
|
"gioui.org/op/paint"
|
||||||
"gioui.org/ui"
|
"gioui.org/ui"
|
||||||
|
|
||||||
"golang.org/x/image/math/fixed"
|
"golang.org/x/image/math/fixed"
|
||||||
|
|||||||
+1
-1
@@ -11,7 +11,7 @@ import (
|
|||||||
"gioui.org/f32"
|
"gioui.org/f32"
|
||||||
"gioui.org/layout"
|
"gioui.org/layout"
|
||||||
"gioui.org/op"
|
"gioui.org/op"
|
||||||
"gioui.org/paint"
|
"gioui.org/op/paint"
|
||||||
|
|
||||||
"golang.org/x/image/math/fixed"
|
"golang.org/x/image/math/fixed"
|
||||||
)
|
)
|
||||||
|
|||||||
+2
-2
@@ -6,10 +6,10 @@ package widget
|
|||||||
import (
|
import (
|
||||||
"image"
|
"image"
|
||||||
|
|
||||||
"gioui.org/ui"
|
|
||||||
"gioui.org/f32"
|
"gioui.org/f32"
|
||||||
"gioui.org/layout"
|
"gioui.org/layout"
|
||||||
"gioui.org/paint"
|
"gioui.org/op/paint"
|
||||||
|
"gioui.org/ui"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Image is a widget that displays an image.
|
// Image is a widget that displays an image.
|
||||||
|
|||||||
Reference in New Issue
Block a user