A handler object
is a reusable object that defines how a graphical
object should respond when it is sent an event
object. A handler maps an event<-id
onto an action realised .by a code
object.
By default, handlers traps events anywhere on an object. Using the
handler<-region,
the handler can be active for a subregion of the object.
Bugs:
Handlers only handle single events and have no elegant way to represent status information. The are retained for backward compatibility reasons. New code should first look at the class gesture or class key_binding.
<-id
of the events this handler is sensitive to. When an event arrives, it is
tested using event->is_a,
given the value of this variable.fires. Arguments:
@receiver event <-master (normally event<-receiver).@arg1 The event.
->event.
It will forward handler<-message
iff event->is_a
succeeds for the argument event using handler<-event
and if no handler<-region
is specified or the argument event is inside the handler<-region.->event.