Derive Macro gui::derive::Handleable
source · #[derive(Handleable)]
{
// Attributes available to this derive:
#[gui]
}
Expand description
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, Message> for TestWidget {}