Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to compile with the latest version of Gio #1

Closed
rythmkraze opened this issue May 31, 2020 · 1 comment
Closed

Fails to compile with the latest version of Gio #1

rythmkraze opened this issue May 31, 2020 · 1 comment

Comments

@rythmkraze
Copy link

$ go run github.com/ajstarks/giocanvas/hello
go: finding module for package github.com/ajstarks/giocanvas/hello
go: found github.com/ajstarks/giocanvas/hello in github.com/ajstarks/giocanvas v0.0.0-20200531170401-8df5478cf848
go: finding module for package gioui.org/app
go: finding module for package gioui.org/op
go: finding module for package gioui.org/f32
go: finding module for package gioui.org/layout
go: finding module for package gioui.org/text
go: finding module for package gioui.org/font/gofont
go: finding module for package gioui.org/widget/material
go: finding module for package gioui.org/op/paint
go: finding module for package gioui.org/io/system
go: finding module for package gioui.org/op/clip
go: finding module for package gioui.org/unit
go: found gioui.org/app in gioui.org v0.0.0-20200531112915-23c2d44b8cfe
# github.com/ajstarks/giocanvas
../../go/pkg/mod/github.com/ajstarks/giocanvas@v0.0.0-20200531170401-8df5478cf848/giocanvas.go:218:12: cannot use c.Context (type *layout.Context) as type layout.Context in argument to l.Layout

Thank you so much for creating this library.

@ajstarks
Copy link
Owner

ajstarks commented May 31, 2020

Fixed with revision d6c5996. NewCanvas now does what the old context Reset code used to. Also for text operations, you must explicitly call gofont.Register() before any text operations, sadly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants