January 2018
Beginner to intermediate
454 pages
10h 8m
English
The code generated by the attribute is a normal Rust method that looks like:
fn view(relm: &Relm<Self>, model: Self::Model) -> Self { // This method does not actually exist, but relm directly create a window using the functions from the sys crates. let window = gtk::Window::new(); window.set_title("Rusic"); window.show(); connect!(relm, window, connect_delete_event(_, _), return (Some(Quit), Inhibit(false))); Win { model, window: window, } }