Skip to content
master
Switch branches/tags
Go to file
Code

Files

Permalink
Failed to load latest commit information.

README.adoc

Mg

Minimal UI library based on relm (GTK+), written in Rust.

CI mg rust documentation blue mg mg

Installation

Add the following line to the dependencies section of your Cargo.toml:

mg = "0.0.1"
relm = "0.9.6"
relm-attributes = "0.9.0"
relm-derive = "0.9.2"

Usage

In the view! macro, use the Mg widget:

view! {
    Mg<AppCommand, NoSettings>((MODES, "examples/main.conf", None)) {
        // Place your main widget here.
        gtk::Box {
        }
        // Connect a signal to react to commands entered by the user.
        CustomCommand(command) => Command(command),
    }
}

About

Minimal UI library based on relm (GTK+), written in Rust.

Topics

Resources

License

Packages

No packages published

Languages