Class: Gtk::GestureSingle
- Inherits:
-
Gesture
- Object
- EventController
- Gesture
- Gtk::GestureSingle
- Defined in:
- (unknown)
Direct Known Subclasses
DragSource, GestureClick, GestureDrag, GestureLongPress, GestureStylus, GestureSwipe
Instance Method Summary collapse
-
#button ⇒ Integer
Mouse button number to listen to, or 0 to listen for any button.
-
#button=(button) ⇒ Integer
Mouse button number to listen to, or 0 to listen for any button.
-
#current_button ⇒ Integer
Returns the button number currently interacting with gesture, or 0 if there is none.
-
#current_sequence ⇒ Gdk::EventSequence
Returns the event sequence currently interacting with gesture.
-
#exclusive ⇒ Boolean
Gets whether a gesture is exclusive.
-
#exclusive=(exclusive) ⇒ Boolean
Whether the gesture is exclusive.
-
#exclusive? ⇒ Boolean
Whether the gesture is exclusive.
-
#touch_only ⇒ Boolean
Returns true if the gesture is only triggered by touch events.
-
#touch_only=(touch_only) ⇒ Boolean
Whether the gesture handles only touch events.
-
#touch_only? ⇒ Boolean
Whether the gesture handles only touch events.
Methods inherited from Gesture
#device, #get_bounding_box, #get_bounding_box_center, #get_last_event, #get_point, #get_sequence_state, #group, #handles_sequence, #is_active, #is_grouped_with, #is_recognized, #last_updated_sequence, #n_points, #n_points=, #sequences, #set_sequence_state, #state=, #ungroup
Methods inherited from EventController
#current_event, #current_event_device, #current_event_state, #current_event_time, #name, #name=, #propagation_limit, #propagation_limit=, #propagation_phase, #propagation_phase=, #reset, #static_name=, #widget, #widget=
Instance Method Details
#button ⇒ Integer
Mouse button number to listen to, or 0 to listen for any button.
#button=(button) ⇒ Integer
Mouse button number to listen to, or 0 to listen for any button.
#current_button ⇒ Integer
Returns the button number currently interacting with gesture, or 0 if there is none.
#current_sequence ⇒ Gdk::EventSequence
Returns the event sequence currently interacting with gesture.
This is only meaningful if [methodGtk.Gesture.is_active] returns true.
#exclusive ⇒ Boolean
Gets whether a gesture is exclusive.
For more information, see [methodGtk.GestureSingle.set_exclusive].
#exclusive=(exclusive) ⇒ Boolean
Whether the gesture is exclusive.
Exclusive gestures only listen to pointer and pointer emulated events.
#exclusive? ⇒ Boolean
Whether the gesture is exclusive.
Exclusive gestures only listen to pointer and pointer emulated events.
#touch_only ⇒ Boolean
Returns true if the gesture is only triggered by touch events.
#touch_only=(touch_only) ⇒ Boolean
Whether the gesture handles only touch events.
#touch_only? ⇒ Boolean
Whether the gesture handles only touch events.