grab_button(+ButtonGrab, +ModifiersMask, +GrabWindow, +OwnerEvents, +EventsMask, +PointerMode, +KeyboardMode, +WindowConfine, +Cursor)
This predicate establishes a passive grab on the pointer, activated when a specified button and set of modifiers are pressed while the pointer is in the grab window.
ButtonGrab is the pointer button to be grabbed, possible values are:
ModifiersMask is one of:
modifiers_mask/2is useful to translate between modifier specifications and bitmasks.
GrabWindow is the ProXL window to which events will be reported while the grab is in effect.
OwnerEvents is one of:
EventsMask is an integer bitmask specifying the events that are selected and should be reported to the client. The valid event mask names are:
event_list_mask/2 is useful to translate between
event mask names and integer bitmasks.
PointerMode controls further processing of pointer events:
allow_events/[1,2,3]or the pointer grab is released.
KeyboardMode controls further processing of keyboard events:
allow_events/[1,2,3]or the keyboard grab is released.
WindowConfine is the ProXL window to which the pointer will be
confined during the grab, or the atom
Cursor is the ProXL cursor to be displayed during the grab, or the atom