gtk-rs
Gtk4-tutorial
Our great sponsors
gtk-rs | Gtk4-tutorial | |
---|---|---|
45 | 11 | |
510 | 522 | |
- | - | |
8.6 | 6.0 | |
about 2 months ago | 3 months ago | |
Rust | C | |
MIT License | - |
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.
gtk-rs
-
Counter App with GTK4 and Rust
gtk-rs
-
Rust GUI Development?
GTK: I have little - no experience with GTK, and from what i have read it is cross-platform similar to wxWidgets, however is an emulated UI system similar to Qt. As i have no experience with it i am not sure how well supported this library is as far as it's Rust - bindings are concerned gtk-rs
-
gtk-rs: can't get window ID with command inside connect_show or connect_realize
In a gtk-rs application, I'm running a xdotool command to get the id of the application's window. I'm running the command in a connect_show closure (after the window has been shown):
-
My (challenging) experience building a window switcher for Ubuntu
To build the UI, I used gtk-rs. My experience with this library was quite pleasant; it was easy to use and there were a lot of examples. However, it isn't as widely used as, say, React, so it was difficult to find answer on Stack Overflow (I come from a JavaScript/Typescript background).
-
x11rs can't access window created with gtk-rs
I'm using x11rb to interact with a window created with gtk-rs. window_id is the ID of the window created with gtk-rs. window_id_2 is the ID of the window created with x11rb (for testing purposes).
-
What GUI libs are out there and good to use?
I haven't used it yet, but gtk-rs looks pretty good too. I've used GTK in general, just not the Rust bindings so far. The tutorials seem nice and GTK is a good UI toolkit overall.
-
gtk-rs: triggering code after the window has been shown
I'm using gtk-rs. I want to trigger some code after the window has been shown (has displayed on the screen):
-
Adding ListBoxRow to ListBox from inside a closure
I'm using gtk-rs to add ListBoxRow items to a ListBox. The items are successfully added if I do it outside of input.connect_changed, a closure. But nothing is added if I do it from inside input.connect_changed:
-
Who "owns" Rust ?
For GTK, there's https://gtk-rs.org/
-
gtk-ks: Join the Effort to create GTK Bindings for Kotlin!
Out there there are already some open source projects trying to do this, but most of them are abandoned or in a very alpha stage. The most promising project so far seems to me git-kt. This project is trying to do something similar to what gtk-rs does for Rust, which is using GObject Introspection (GIR) files to generate Kotlin native bindings automatically.
Gtk4-tutorial
-
Trying to get started (noob)
What's going on? I googled some more and found out from here that I have to use G_APPLICATION_FLAGS_NONE because ubuntu uses an older version of Glib-2.0 and im getting even more confused, if im trying to learn gtk how do i know in advance what i should even learn and what isn't going to work on my machine?
- Is it worth to develop GNOME applications to learn/improve programming skills?
-
Learning GTK4 for ui development
try https://github.com/ToshioCP/Gtk4-tutorial/
-
Gtk4: How to implement an "Edit" menu with cut/copy/paste functions?
The problem is, how do you setup a top-level window "edit" menu that contextually supports these actions for whatever widget is focused. I honestly can't find any example. See this for example: https://github.com/ToshioCP/Gtk4-tutorial/blob/20b4a16175ae3f510151702c8a377b63547b13d8/src/menu3/menu3.c
-
Not-gtk GUI Libs/frameworks for plain C
have you tried this? https://github.com/ToshioCP/Gtk4-tutorial also https://github.com/frang75/nappgui is very interesting and promising.
- What is the preferred way to design gtk guis for gtk4.x ?
-
Embedding themes into application
I've been getting into GTK using ToshioCP's gtk4 tutorial but one thing that bothers me is the different looks on Windows. I've found some themes that could fix it, but I haven't figured out how I could embed my own theme + icons (.css file & subfolders with .SVG icons) into the application.
- Gtk4 Tutorial (mainly for beginners)
- Gtk4 Tutorial
-
Do you know any good recourses for learning GTK (and glib, gobject, gio)?
But after trying to follow along with the official documentation for glib I realized it's all a bit to complicated for me, and I'm really struggling to follow along with it (f*ck you ADHD). I then found a different tutorial that seems to be a bit more handholding and easier to follow along with, but my issue with that is that it doesn't cover glib and gobject, instead it just requires me to copy the code without understanding whenever any gobject related topics appear. I then found a book that fits my needs perfectly, but that is incomplete and as the book itself states it is far from finished, and from what I understand the creator gave up on it in 2019.
What are some alternatives?
iced - A cross-platform GUI library for Rust, inspired by Elm
glib-gtk-book - The GLib/GTK Development Platform – A Getting Started Guide
tauri - Build smaller, faster, and more secure desktop applications with a web frontend.
Relm4 - Build truly native applications with ease!
egui - egui: an easy-to-use immediate mode GUI in Rust that runs on both web and native
nappgui - Cross-Platform C SDK (precompiled)
fltk-rs - Rust bindings for the FLTK GUI library.
gtk-rs-core - Rust bindings for GNOME libraries
gtk4-rs - Rust bindings of GTK 4
Relm4 - An idiomatic GUI library inspired by Elm and based on gtk4-rs [Moved to: https://github.com/Relm4/Relm4]
Slint - Slint is a toolkit to efficiently develop fluid graphical user interfaces for any display: embedded devices and desktop applications. We support multiple programming languages, such as Rust, C++ or JavaScript. [Moved to: https://github.com/slint-ui/slint]
libui-ng - libui-ng: a portable GUI library for C. "libui for the next generation"