mjl- / duit

pure go, cross-platform, MIT-licensed ui toolkit for developers
MIT License
951 stars 38 forks source link

Extending #6

Closed ghost closed 3 years ago

ghost commented 6 years ago

This is awesome. The tab for mouse focus is a great way to solve a tough ux thing.

I am going to try to build a little bit with this.

It's using opengl under the hood or SDL ? I ask because I am trying to imagine how tough the Windows code will be :)

Anyway great stuff !!

Happy-Ferret commented 6 years ago

Not the maintainer (obviously), but from the looks of it it's neither using SDL nor OpenGL. Just Plan9 From Userspace's devdraw implementation, which renders either to X11 or MacOS Quartz.

ghost commented 6 years ago

thanks.

Was wondering about the x11 and quartz. Thats likely to be a real pain to port to Windows. Bit of a bummer... i saw something from BurntSushi about this that might help

https://github.com/BurntSushi/xgb

On Wed, 18 Apr 2018 at 13:32 Happy-Ferret notifications@github.com wrote:

Not the maintainer (obviously), but from the looks of it it's neither using SDL nor OpenGL. Just Plan9 From Userspace's devdraw implementation, which renders either to X11 or MacOS Quartz.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mjl-/duit/issues/6#issuecomment-382355987, or mute the thread https://github.com/notifications/unsubscribe-auth/ATuCwjHE6G4MAZX9Wwzwye7SopMp_peJks5tpyRDgaJpZM4TZqbo .

ghost commented 6 years ago

also i see that its needs plan 9. i dont see windows support there either.

Happy-Ferret commented 6 years ago

It really shouldn't be much of a pain, as per @mjl- 's own blog post.

You'd just need to replace 9fans.net/go/draw with something that talks to the native graphics subsystem of the respective OS. Alternatively, one could most likely also use whatever drawterm and Inferno are using under the hood, since both work under Windows.

And yea. It does need plan9port. That's where devdraw and the plumber originate from.

Lastly, it's worth noting that duit does work under Windows 10 already. Provided you use WSL (the Windows Subsystem for Linux) in combination with Xming.

mjl- commented 6 years ago

indeed, the plan is not to keep requiring x11 on windows.

Happy-Ferret commented 6 years ago

If anything, GNU/Linux should be more of a challenge. Given the fragmentation, in the future you'd either have to depend on XWayland, port it to native Wayland or to Arcan.

mjl- commented 3 years ago

closing old issue. just another note: i did try to get rid of devdraw quite some time ago. it seems possible on win32, x11, wayland, plan9. i didn't see a way to do it on macos (native libs and cgo seems required there). code wasn't finished.