Event.Register

You can mix this into child class to register some boilerplate. It includes the EventString member, a constructor, and implementations of the dynamic get data interfaces.

If you fail to do this, your event will probably not have full compatibility but it might still work for you.

More...
class Event
protected static
mixin template Register () {
enum string EventString;
}

Detailed Description

You can override the default EventString by simply providing your own in the form of enum string EventString = "some.name"; The default is the name of your class and its parent entity which provides some namespace protection against conflicts in other libraries while still being fairly easy to use.

If you provide your own constructor, it will override the default constructor provided here. A constructor must call super(EventString, passed_widget_target) at some point. The passed_widget_target must be the first argument to your constructor.

Meta

History

Added May 13, 2021.