| Did you know ... | Search Documentation: |
| Get methods |
<-x
and area<-y
of the argument graphical.
Note that both event<-position
and event<-area_position
reuse the point object
in the slot -position.
Defaults: The default graphical is the event<-receiver
of the event.
-position <-position<-click_time, event->is_up, event<-multiclick
and class click_gesture.down event. See also event<-click_displacement,
event<-multiclick, event->is_up
and class click_gesture.<-display
on the associated event<-window.<-window.|frame|window] -> frame|window<-window
refers to the window in which the event occurred. If a window has the
event focus however,
event<-window
returns the window that has the focus rather than the window where the
pointer is.
get(Event, inside_sub_window, Frame)
will return the XPCE frame in which the event occurred.
get(Event, inside_sub_window, Frame, Window)
will return the window in which the event occurred, where Frame is the return value of the previous call. This call returns the actual window (not the window_decorator object) if the event occurred in a normal window. If the event occurred in a decoration (scroll_bar object, window-label) the window_decorator is returned.
This method is used by the Prolog defined class drag_and_drop_gesture
to locate the target for the drop operation which may be in another
window. See
$PCEHOME/prolog/lib/pce_drag_and_drop.pl.
<-id.
Otherwise it is a symbolic description of the depressed key. The
key-description is described with key_binding->function.master of an event is the master of its event<-receiver.
See‘visual
event<-master’for
details.Clicking is normally handled using a click_gesture object.
NOTE: When there are both recognisers for single- and double-click,
next step in a
multiclick sequence if it the down event is within 400 milliseconds of
previous down event and within 4 pixels displaced.
Bugs: These methods should read the corresponding X-resources.
<-id.
Backwards compatibility only.|frame|display] -> int|frame|display] -> int|frame|display] -> point
For device objects
(and windows), the returned position is relative to the origin (device<-offset)
of the device. For other graphicals it is relative to the area<-x
and area<-y
of the graphical's area. For a display
object it is relative to the top-left corner of the display. See also event<-area_position.
The returned value is also stored in the -position slot.
-position <-area_position <-convert