Crate relm [−] [src]
Asynchronous GUI library based on GTK+ and futures/tokio.
This library provides a Widget
trait that you can use to create asynchronous GUI components.
This is the trait you will need to implement for your application.
It helps you to implement MVC (Model, View, Controller) in an elegant way.
Installation
Add this to your Cargo.toml
:
[dependencies]
gtk = "^0.1.2"
relm = "^0.5.0"
relm-derive = "^0.1.2"
More info can be found in the readme.
Modules
gtk_ext |
This module contains methods to set the child properties of a |
Macros
connect |
Connect events to sending a message. |
impl_widget |
Dummy macro to be used with |
relm_widget |
Macro to be used as a stable alternative to the #[widget] attribute. |
Structs
Component |
Widget that was added by the |
Relm |
Handle connection of futures to send messages to the |
RemoteRelm |
Handle to the tokio event loop, to be used from the GTK+ thread. |
Traits
Container |
Trait to implement relm container widget. |
ContainerWidget |
Extension trait for GTK+ containers to add and remove relm |
DisplayVariant |
Format trait for enum variants. |
RelmContainer |
Trait for relm containers to add GTK+ and relm |
Widget |
Trait to implement to manage widget's events. |
Functions
create_component |
Create a new relm widget without adding it to an existing widget. This is useful when a relm widget is at the root of another relm widget. |
init_test |
Initialize a widget for a test. |
run |
Create the specified relm |