swift-cross-ui icon indicating copy to clipboard operation
swift-cross-ui copied to clipboard

Support for other "backends"? (qt etc)

Open andrekandore opened this issue 3 years ago • 4 comments
trafficstars

is it outside of the goals of this project to support other backends such as qt or win32 etc? or is it strictly gtk for now?

andrekandore avatar Apr 23 '22 03:04 andrekandore

My current plan is to initially just support Gtk, but it shouldn't be too hard to allow additional backends to be added. What's the main reason that you might want to be able to choose between multiple backends?

I am hoping that eventually I will find the time to create a custom renderer for SwiftCrossUI using the cross platform WebGPU API or something similar (once it matures). In that case it would be useful to be able to easily add the custom renderer as an experimental backend while it is developed).

stackotter avatar Apr 23 '22 08:04 stackotter

Sorry, that had a bunch of typing mistakes, I fixed them now

stackotter avatar Apr 23 '22 08:04 stackotter

thanks for the quick reply!

but it shouldn't be too hard to allow additional backends to be added

nice!

What's the main reason that you might want to be able to choose between multiple backends?

basically i would like to be able to support kde users (myself included) with a more native experience, thats all (^^)

andrekandore avatar Apr 23 '22 22:04 andrekandore

basically i would like to be able to support kde users (myself included) with a more native experience, thats all (^^)

That seems like a good enough reason :) I’ll see what needs to be done to support custom backends when I next work on SwiftCrossUI. I probably won’t add a qt backend, but once support for other backends is added I’d gladly accept PRs adding new ones! I think it won’t be too hard to add new backends once I add an API for it

stackotter avatar Apr 23 '22 22:04 stackotter

Hi @andrekandore, I've finally returned to this project after a long break and I've been making some progress. For now I've decided to keep the project limited to just a Gtk backend (to keep things simple) but I don't have anything against supporting multiple backends per se (e.g. if someone PR'd QT support I'd be all for it).

Hopefully you'll still be able to make some cool stuff with the framework even while using the Gtk backend!

stackotter avatar Nov 12 '22 14:11 stackotter

Ive now implemented support for multiple backends! I’ve started working on an experimental Qt backend, and @stevapple is possible interested in implementing a native Windows backend (WinUI 3 or whatever it’s called). This could start getting pretty exciting :)

stackotter avatar Aug 22 '23 23:08 stackotter