vgtk
libui
Our great sponsors
vgtk | libui | |
---|---|---|
14 | 22 | |
1,038 | 10,590 | |
- | - | |
0.0 | 0.0 | |
about 2 years ago | over 1 year ago | |
Rust | C | |
GNU General Public License v3.0 or later | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
vgtk
-
Rust: State of GUI, December 2022 – KAS blog
A pretty fun Rust GUI experienc is vgtk[0], which is doing a bunch of macro magic to give a "we're coding in React" vibe to GTK+. I don't really have a specific thing I want to code in a native GUI at the moment but if I did I think this would be the most tempting for me.
-
Code bloat has become astronomical
a stateful GUI markup language is react. it is not yet the case that react-like code works for desktop, though there are cool examples like vgtk https://github.com/bodil/vgtk
-
A declarative desktop UI framework for Rust built on GTK and GTK-rs
from what i gather from https://github.com/bodil/vgtk/issues/78, you're better off using realm
I'm always curious to see these projects, because I've been experimenting with a React renderer for the GJS bindings for a while. It's frustrating because GTK "feels like" it's so close to being able to support a vdom/declarative paradigm, but the devil is in the details.
The simple use-cases like "Window > Box > Label" are easy to get going. The more complex widgets like Stack/Grid/TreeView ... aren't.
This project seems to have the same issue: https://github.com/bodil/vgtk/issues/40
This is made more difficult now GTK4 has removed the Container base class, so there's no longer a unified interface for adding children (although it had caveats in the first place).
I totally get the GTK view that (presumably) specific widgets are more intuitive with specific add/remove APIs (like the grid - one doesn't really "appendChild" to a grid).
It just feels like: if there was a consistent container API comparable to the web's appendChild approach, a vdom/declarative approach would require only a very light wrapper. Without it, I keep coming back to the idea of implementing wrapper widgets that expose that consistent API instead. And that's just not something I want to maintain - effectively duplicating each GTK widget for the purpose of making it fit into a tree model.
It's also a problem of trying to wrap richer functionality (pack_start and pack_end) into a simpler set (append only) of course.
So I don't know exactly what my point is :) Perhaps cautioning the reader that the simplicity of the approach comes with a catch.
-
Hacker News top posts: May 28, 2022
A declarative desktop UI framework for Rust built on GTK and GTK-rs\ (23 comments)
-
Newbie here. Just finished reading the book. What now?
Build your own To-do List Application in Rust: https://bodil.lol/vgtk/
-
Rust GUI: Introduction, a.k.a. the state of Rust GUI libraries (As of January 2021)
VGTK
libui
- BeeWare Toga v0.4.0 – A Python native, OS native GUI toolkit
-
Is there no simple GUI library for pure C?
What about https://github.com/andlabs/libui
-
Capy – Cross-platform library for making true native GUIs in Zig
Fantastic! This is similar to the C library `libui` since it also acts as a wrapper of native libraries of each platform.
If only there was a way to interface to these using some declarative minimal and highly opinionated programming language and paradigm...
-
Mathematical Patterns
For the GUI you will need a library or framework that interacts with your specifiv operating system and allows you to create windows and a canvas to which you can draw. You could give libui a chance.
-
libui-ng-sys: external FFI bindings for libui-ng
libui-ng is a cross-platform GUI library with native widgets written in C. It is based on an earlier, (currently) inactive project known as libui. While Rust bindings for libui have existed for years (see ui-sys and iui), there is no solution for the new libui-ng; libui-ng-sys aims to fill this role.
-
What GUI library should I start with after learning C?
libui
-
Not-gtk GUI Libs/frameworks for plain C
https://github.com/andlabs/libui is very nice, but unfortunately dead, if it serves your purpose consider using it, this is a fork under development https://github.com/libui-ng/libui-ng
-
Ask HN: Is there any cross platform non native GUI written in C that looks good?
https://github.com/andlabs/libui
Better yet, it has excellent DSLs that make it possible to build desktop apps in a way similar to HTML, but much better due to keeping all code dynamic in one language (no static/dynamic multi-language separation/mixing dissonance):
-
Usable cross-platform GUI?
Maybe a module that uses https://github.com/andlabs/libui or a light HTML renderer?
-
Electron Adventures: Episode 82: Glimmer DSL
LibUI is a "portable GUI library for C". It comes with so many disclaimers that it's an incomplete alpha version.
What are some alternatives?
imgui - Dear ImGui: Bloat-free Graphical User interface for C++ with minimal dependencies
nuklear - A single-header ANSI C immediate mode cross-platform GUI library
wxWidgets - Cross-Platform C++ GUI Library
nana - a modern C++ GUI library
GTK+ - Read-only mirror of https://gitlab.gnome.org/GNOME/gtk
ncurses - snapshots of ncurses - see http://invisible-island.net/ncurses/ncurses.faq.html (no pull requests are accepted)
NanoGUI - Minimalistic GUI library for OpenGL
FLTK - FLTK - Fast Light Tool Kit - https://github.com/fltk/fltk - cross platform GUI development
FINAL CUT - A text-based widget toolkit.
Duilib
webview - Tiny cross-platform webview library for C/C++. Uses WebKit (GTK/Cocoa) and Edge WebView2 (Windows).
Yue - A library for creating native cross-platform GUI apps