Sets our main struct and passes it to the parent class.
Returns a newly created gtk.Gesture that recognizes single and multiple presses.
This signal is emitted whenever a button or touch press happens.
This signal is emitted when a button or touch is released. n_press will report the number of press that is paired to this event, note that stopped may have been emitted between the press and its release, n_press will only start over at the next press.
This signal is emitted whenever any time/distance threshold has been exceeded.
If an area was set through Gesture.multiPressSetArea, this function will return TRUE and fill in rect with the press area. See Gesture.multiPressSetArea for more details on what the press area represents.
Get the main Gtk struct
the main Gtk struct as a void*
If rect is non-NULL, the press area will be checked to be confined within the rectangle, otherwise the button count will be reset so the press is seen as being the first one. If rect is NULL, the area will be reset to an unrestricted state.
the main Gtk struct
the main Gtk struct
Get the main Gtk struct
the main Gtk struct as a void*
Returns the button number gesture listens for, or 0 if gesture reacts to any button press.
Returns the button number currently interacting with gesture, or 0 if there is none.
Returns the event sequence currently interacting with gesture. This is only meaningful if Gesture.isActive returns TRUE.
Gets whether a gesture is exclusive. For more information, see Gesture.singleSetExclusive.
Returns TRUE if the gesture is only triggered by touch events.
Sets the button number gesture listens to. If non-0, every button press from a different button number will be ignored. Touch events implicitly match with button 1.
Sets whether gesture is exclusive. An exclusive gesture will only handle pointer and "pointer emulated" touch events, so at any given time, there is only one sequence able to interact with those.
If touch_only is TRUE, gesture will only handle events of type GDK_TOUCH_BEGIN, GDK_TOUCH_UPDATE or GDK_TOUCH_END If FALSE, mouse events will be handled too.
gtk.GestureMultiPress is a gtk.Gesture implementation able to recognize multiple clicks on a nearby zone, which can be listened for through the pressed signal. Whenever time or distance between clicks exceed the GTK+ defaults, stopped is emitted, and the click counter is reset.
Callers may also restrict the area that is considered valid for a >1 touch/button press through Gesture.multiPressSetArea, so any click happening outside that area is considered to be a first click of its own.