#gtk #ui #line #add

nightly mg

Minimal UI library based on GTK+

28 releases

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

#52 in GUI

Download history 2/week @ 2019-01-31 2/week @ 2019-02-07 2/week @ 2019-02-21 56/week @ 2019-02-28 4/week @ 2019-03-07 5/week @ 2019-03-14 105/week @ 2019-03-21 31/week @ 2019-03-28 58/week @ 2019-04-04 35/week @ 2019-04-11 4/week @ 2019-04-18 34/week @ 2019-04-25 5/week @ 2019-05-02 56/week @ 2019-05-09

163 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

~13MB
~244K SLoC