awesome-glib

Crates.ioawesome-glib
lib.rsawesome-glib
version0.5.0
sourcesrc
created_at2021-08-31 22:30:17.781387
updated_at2024-08-10 14:32:40.003646
descriptionBunch of macros to make a life of gtk/glib user easier
homepagehttps://github.com/andy128k/awesome-gtk/
repositoryhttps://github.com/andy128k/awesome-gtk/
max_upload_size
id445334
size39,783
Andrey Kutejko (andy128k)

documentation

https://docs.rs/awesome-glib

README

Awesome GLib

Build codecov Crates.io Docs.rs

Supplemental macros for glib/gio

Actions

TLDR;

struct MyWidget ...

#[awesome_glib::actions]
impl MyWidget {
    fn action1(&self) ...
    fn action2(&self) ...
}

impl ObjectImpl for MyWidgetPrivate {
    fn constructed(&self, obj: &Self::Type) {
        ...
        obj.register_actions(obj);
        ...
    }
}
Commit count: 19

cargo fmt