Class: Gtk::GestureSingle

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

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 gtk_gesture_is_active() returns true.

Returns:

  • (Gdk::EventSequence)

    the current sequence

#exclusiveTrueClass

Gets whether a gesture is exclusive. For more information, see gtk_gesture_single_set_exclusive().

Returns:

  • (TrueClass)

    Whether the gesture is exclusive

#exclusive=(exclusive) ⇒ TrueClass

Whether the gesture is exclusive. Exclusive gestures only listen to pointer and pointer emulated events.

Parameters:

  • exclusive (TrueClass)

Returns:

  • (TrueClass)

    exclusive

  • (TrueClass)

    exclusive

#exclusive?TrueClass

Whether the gesture is exclusive. Exclusive gestures only listen to pointer and pointer emulated events.

Returns:

  • (TrueClass)

    exclusive

#touch_onlyTrueClass

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

Returns:

  • (TrueClass)

    true if the gesture only handles touch events

#touch_only=(touch_only) ⇒ TrueClass

Whether the gesture handles only touch events.

Parameters:

  • touch_only (TrueClass)

Returns:

  • (TrueClass)

    touch-only

  • (TrueClass)

    touch-only

#touch_only?TrueClass

Whether the gesture handles only touch events.

Returns:

  • (TrueClass)

    touch-only