| Did you know ... | Search Documentation: |
| @receiver |
Receiver of event/message
The var object @receiver
refers to the object that is receiving an event. A new value of receiver
is pushed if a message is invoked from a gesture
object or handler
object. In this case,
@receiver
refers to the (graphical) object that received the event. See handler->event, @event
and constant<-receiver.
@receiver is commonly used to create reusable gestures. For example:
?- new(@clicked,
click_gesture(left, '', single,
message(@receiver,
clicked))).
If this recogniser
object is associated to a graphical
object, the object will receive a ->clicked
message when the user left-clicks the object.