Class: Gtk::GestureSingle

Inherits:
Gesture show all
Defined in:
(unknown)

Instance Method Summary collapse

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

#buttonInteger

Mouse button number to listen to, or 0 to listen for any button.

Returns:

  • (Integer)

    button

#button=(button) ⇒ Integer

Mouse button number to listen to, or 0 to listen for any button.

Parameters:

  • button (Integer)

Returns:

  • (Integer)

    button

  • (Integer)

    button

#current_buttonInteger

Returns the button number currently interacting with gesture, or 0 if there is none.

Returns:

  • (Integer)

    The current button number

#current_sequenceGdk::EventSequence

Returns the event sequence currently interacting with gesture.

This is only meaningful if [methodGtk.Gesture.is_active] returns true.

Returns:

  • (Gdk::EventSequence)

    the current sequence

#exclusiveBoolean

Gets whether a gesture is exclusive.

For more information, see [methodGtk.GestureSingle.set_exclusive].

Returns:

  • (Boolean)

    Whether the gesture is exclusive

#exclusive=(exclusive) ⇒ Boolean

Whether the gesture is exclusive.

Exclusive gestures only listen to pointer and pointer emulated events.

Parameters:

  • exclusive (Boolean)

Returns:

  • (Boolean)

    exclusive

  • (Boolean)

    exclusive

#exclusive?Boolean

Whether the gesture is exclusive.

Exclusive gestures only listen to pointer and pointer emulated events.

Returns:

  • (Boolean)

    exclusive

#touch_onlyBoolean

Returns true if the gesture is only triggered by touch events.

Returns:

  • (Boolean)

    true if the gesture only handles touch events

#touch_only=(touch_only) ⇒ Boolean

Whether the gesture handles only touch events.

Parameters:

  • touch_only (Boolean)

Returns:

  • (Boolean)

    touch-only

  • (Boolean)

    touch-only

#touch_only?Boolean

Whether the gesture handles only touch events.

Returns:

  • (Boolean)

    touch-only