update to latest gioui.org API, fix cross platform builds
This commit is contained in:
16
list.go
16
list.go
@@ -3,12 +3,12 @@ package gel
|
||||
import (
|
||||
"image"
|
||||
"time"
|
||||
|
||||
"github.com/p9c/p9/pkg/gel/gio/gesture"
|
||||
"github.com/p9c/p9/pkg/gel/gio/io/pointer"
|
||||
l "github.com/p9c/p9/pkg/gel/gio/layout"
|
||||
"github.com/p9c/p9/pkg/gel/gio/op"
|
||||
"github.com/p9c/p9/pkg/gel/gio/op/clip"
|
||||
|
||||
"gioui.org/gesture"
|
||||
"gioui.org/io/pointer"
|
||||
l "gioui.org/layout"
|
||||
"gioui.org/op"
|
||||
"gioui.org/op/clip"
|
||||
)
|
||||
|
||||
type scrollChild struct {
|
||||
@@ -36,7 +36,7 @@ type List struct {
|
||||
maxSize int
|
||||
children []scrollChild
|
||||
dir iterationDir
|
||||
|
||||
|
||||
// all below are additional fields to implement the scrollbar
|
||||
*Window
|
||||
// we store the constraints here instead of in the `cs` field
|
||||
@@ -335,7 +335,7 @@ func (li *List) layout(macro op.MacroOp) l.Dimensions {
|
||||
return l.Dimensions{Size: dims}
|
||||
}
|
||||
|
||||
// Everything below is extensions on the original from github.com/p9c/p9/pkg/gel/gio/layout
|
||||
// Everything below is extensions on the original from git.mleku.dev/mleku/prevara/gio/layout
|
||||
|
||||
// Position returns the current position of the scroller
|
||||
func (li *List) Position() Position {
|
||||
|
||||
Reference in New Issue
Block a user