refaktor / rye-fyne

Fyne GUI library with Rye language.
https://ryelang.org
Apache License 2.0
14 stars 2 forks source link

gioui #9

Closed gedw99 closed 1 month ago

gedw99 commented 7 months ago

you got fine, webview and ebiten

the other one is GIOUI in the golang world.

gioui also has a web view btw: https://github.com/gioui-plugins/gio-plugins/tree/main/webviewer/demo

It can run on desktop and mobile.

refaktor commented 7 months ago

I looked at it. The main demo in a browser looks more like a proof of concept UI, but the showcase mobile apps look really good. Hard to think they werent made in native Android. But Cryptopower says on their Play store page that it was made in Gio and it's really nice and responsive.

Currently we can't focus on two frameworks at the same time. I could try to add support bor first stepst for gio, a window and a button for example, so then it there is interest anyone can extend it.

I haven't read much but it says the "immediate mode" gui, which usually means that you control the loop. Do you know, does it do any smart redrawing / looping just on events or it's a straight 60fps (for example) update / draw loop like with games?

gedw99 commented 7 months ago

It's a straight update / draw loop.

The thing I like with GIO is you have very high quality components and full Text, Font kerning and RTL and LTR. Plus the plugins for different things.

You can cross compile it from Mac to Linux and Windows, Mobile and Web. It's been very well manicured you might say.

gedw99 commented 7 months ago

@refaktor

If your curious just play with the MANY examples

gioui.org v0.6.0 is the latest version. gioui.org v0.5.0 is close to the same. they just bumped the version due to a bug pretty much.

If your on. Mac just "go run .". if windows or linux there are some minor dips for compile time.

Take your pick from:

https://github.com/gioui/gio/network/dependents

https://github.com/jonegil/gui-with-gio is a good one

https://github.com/gioui-plugins/gio-plugins is pretty cool too for basic learning

https://github.com/mirzakhany/chapar is impressive, but not finished.

refaktor commented 1 month ago

Just to let you know that we are trying to use Ryegen (binding generator that was already used for Fyne) to work with gioui too. It will be a separate repository if we manage to make it.

refaktor commented 1 month ago

We created Gioui bindings and first two examples work. There are still things to test and debug though.

More info: https://www.reddit.com/r/ryelang/comments/1fw224v/ryegioui_project_created/ Repo: https://github.com/refaktor/rye-gioui

With this I'm closing this issue.

gedw99 commented 1 month ago

Thanks @refaktor

I will def try it today and feedback !