#gtk #ui

nightly mg

Minimal UI library based on GTK+

28 releases

new 0.11.0 Apr 15, 2019
0.10.0 Sep 12, 2018
0.9.5 Jun 8, 2018
0.8.1 Mar 31, 2018
0.0.4 Sep 17, 2016

#54 in GUI

Download history 465/week @ 2018-12-31 29/week @ 2019-01-07 2/week @ 2019-01-14 1/week @ 2019-01-21 2/week @ 2019-01-28 1/week @ 2019-02-04 2/week @ 2019-02-11 2/week @ 2019-02-18 29/week @ 2019-02-25 29/week @ 2019-03-04 5/week @ 2019-03-11 32/week @ 2019-03-18 103/week @ 2019-03-25 59/week @ 2019-04-01 8/week @ 2019-04-08

95 downloads per month
Used in 1 crate

MIT license

133KB
2.5K SLoC

= Mg

Minimal UI library based on https://github.com/antoyo/relm[relm] (GTK+), written in Rust.

image:https://img.shields.io/travis/antoyo/mg.svg[link="https://travis-ci.org/antoyo/mg"] image:https://img.shields.io/coveralls/antoyo/mg.svg[link="https://coveralls.io/github/antoyo/mg"] image:https://img.shields.io/crates/v/mg.svg[link="https://crates.io/crates/mg"] image:https://img.shields.io/badge/rust-documentation-blue.svg[link="https://antoyo.github.io/mg/mg/"] image:https://img.shields.io/crates/d/mg.svg[link="https://crates.io/crates/mg"] image:https://img.shields.io/crates/l/mg.svg[link="LICENSE"]

== Installation

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

[source,bash]

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:

[source,rust]

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), } }

Dependencies

~12MB
~235K SLoC