[−][src]Derive Macro gui_derive::Handleable
#[derive(Handleable)] { // Attributes available to this derive: #[gui] }
Custom derive functionality for the gui::Handleable
trait.
Using this macro a default implementation of the gui::Handleable
trait can be created. This functionality is mostly used in quick
prototyping/testing scenarios, because most custom widgets will also
need a custom event handler.
This macro roughly expands to the following code:
impl gui::Handleable<Event> for TestWidget {}