[−][src]Derive Macro woab::BuilderSignal
#[derive(BuilderSignal)]
Represent a GTK signal that originates from a GTK builder. See the corresponding trait.
Must be used to decorate an enum. Each signal one wants to handle should be a variant of the enum. Unit variants ignore the signal parameters, and tuple variants convert each parameter to its proper GTK type.
#[derive(woab::BuilderSignal)] enum MyAppSignal { SomeButtonClicked, // We don't need the parameter because it's just the button. OtherButtonClicked(gtk::Button), // Still just the button but we want it for some reason. }