jkvatne / gio-v

Widgets for gio
Other
31 stars 5 forks source link

compile error #1

Closed gedw99 closed 3 years ago

gedw99 commented 3 years ago

Wrapper the widgets in this way with options makes it quite nice to use gio. thanks for doing this.

I hit a compile error btw:


go run demo.go
go: downloading gioui.org v0.0.0-20210922165522-6665e0ef0fe6
# command-line-arguments
./demo.go:136:83: undefined: app.Pos
./demo.go:139:84: undefined: app.Maximized
./demo.go:142:83: undefined: app.Center
make: *** [run] Error 2

Not quite sure what the https://github.com/jkvatne/gio-v/blob/main/demo.go#L136 requires. Does it need to use Options maybe ?

jkvatne commented 3 years ago

The option functions app.Pos, app Maximized and app.Center is my own extensions to gio. They are found in jkvatne/gio. The plan is to submit a pull-request to get it into the main gio repository. Its just a few extra functions that is convenient on Windows PCs. For now, just coment out the ines 136,139 and 142, or use a replace command in go.mod.

gedw99 commented 3 years ago

hey @jkvatne

ah i missed that..