Rui::Event - event base class
my $event = Rui::Event->new( name => 'someEventName', source => $self, ); my ($name, $source) = ($event->name, $event->source);
A descriptor of some named event fired by some source. All events have a name and a source object. The name of the event is used by listeners and listenables.
Before you fire an event, clone it so that each listener gets its own event, so it can do anything it wants with it without disturbing other listeners.
name - Scalar. Event name.
source - Any. Object that fired the event.