update to latest gioui.org API, fix cross platform builds

This commit is contained in:
2025-12-03 08:28:59 +00:00
parent f6bd76b838
commit a10c3ad0fe
364 changed files with 363 additions and 63307 deletions

16
list.go
View File

@@ -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 {