63
GUI library for C?
(lemmy.dbzer0.com)
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Follow the wormhole through a path of communities !webdev@programming.dev
I've recently started a handful of projects exploring the rust gui ecosystem and the experience has been... disappointing.
The most mature native library I've seen is Druid, which is deprecated in favour of Xilem. Xilem is highly experimental.
Slint is somehow used by several industry partners, yet is incapable of rendering flowing text documents, and only just brought in text formatting (via Xilem's text library oddly enough).
Egui seems a bit more capable, but it has the usual downsides of immediate mode gui without any of the typical upsides (you can't intermingle gui elements with logic, the gui has to all go in one place).
Dioxus is reasonably capable but is absolutely webtech focused, which seems likely anathema to Op.
Iced I haven't used beyond hello world, and I didn't enjoy that experience.
AFAICT the most mature rust gui libraries are the rust bindings for C's GTK and C++'s Qt.
I also - somewhat controversially - disagree with "very well documented". Rust projects consistently have published API references - which is great! The actual quality of the API references is mixed. Actual documentation - such as intended usage, common patterns, design intent - are much more sparse. Of the GUI libraries I listed, only Dioxus and Slint come close.