| Did you know ... | Search Documentation: |
| Send methods |
A modifier may be created by conversion from a name consisting of the
letters’s’(shift),’c’(control) and’m’(meta).
The empty name demands all modifier keys to be up. See modifier<-convert
for details.
The following tests whether the shift key of the current event is depressed (and the control- and meta-keys are not depressed).
send(@event, has_modifier, s).
<-convert |frame], x=[int], y=[int], button_mask=[int],
time=[int]->generate_event.
->generate_event->in_event_area).
If the argument is a window it checks whether the event is in the client area of the window.
Defaults: The default graphical is the event<-receiver.
->in ->in_event_area<-id
is at or below the specified node in @event_hierarchy.
This test is the common way to test the identity of events. It is used by handler objects. Note that class gesture provides a more advanced mechanism to deal with mouse events.
ASCII events (event<-id
is an integer) are organised as follows:
ascii
control
0..31|127
printable
32..126
meta
128..255
The demo tool Events displays @event-hierarchy.
-id ->recogniser->is_uploc_move event with one of the pointer-buttons depressed.->is_down.
->is_downIt may also be used to forward events to other graphicals. It performs the following steps:
<-receiver
to the argument graphical->event
to the argument graphical. Otherwise invoke recogniser->event
on the argument recogniser. The latter mechanism is used when a device->event
posts an event to its focus and
window<-focus_recogniser
is not @nil.<-window
has no window<-focus
and->is_down
event and<-window
invoke `window ->focus: graphical, @nil, @default, <-button`
-receiver ->generate_event ->event ->event ->focus