[−][src]Derive Macro woab::WidgetsFromBuilder
#[derive(WidgetsFromBuilder)]
Represent a set of GTK widgets created by a GTK builder.
This needs to be a struct, where each field is a GTK type and its name must match the id of the
widgets in the Glade XML file. This derive implements a From<>k::Builder>
for the struct.
#[derive(woab::WidgetsFromBuilder)] struct MyAppWidgets { main_window: gtk::ApplicationWindow, some_button: gtk::Button, some_label: gtk::Label, }