src/swipl-devel/packages/xpce/man/refmanual/md/gesture.md

class gesture {#class-gesture}

A gesture is a recogniser object for a sequence of events, starting with a (mouse-) button down event up to the corresponding up-event.

Class gesture itself takes care of detecting the appropriate down event that matches the specified modifier object. Next, it sets the event focus using window ->focus on the window on which the event occurred to itself and maintains this focus until the corresponding up-event is detected. As the execution of a specific gesture is often indicated to the user by using some cursor object, class gesture allows for the specification of a cursor during the execution of the event.

Class gesture itself is intended to act a a super-class over classes that handle particular gestures such as moving, resizing, linking graphicals, clicking, etc. The predefined subclasses are:

A gesture sends 4 types of messages to itself for which a sub-class of gesture must define appropriate behaviour

@see window-focus_recogniser @see class modifier @see window->focus @see class graphical @see class event @see class handler @see topic Gestures

Class variables {#class-gesture-classvars}

Instance variables {#class-gesture-instvars}

Send methods {#class-gesture-send}



Try the rswipl package in your browser

Any scripts or data that you put into this service are public.

rswipl documentation built on June 16, 2026, 5:07 p.m.