Class: Gtk::GestureSwipe

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

Instance Method Summary collapse

Instance Method Details

#get_velocity(velocity_x, velocity_y) ⇒ TrueClass

If the gesture is recognized, this function returns true and fill in velocity_x and velocity_y with the recorded velocity, as per the last event(s) processed.

Parameters:

  • velocity_x (Float)

    return value for the velocity in the X axis, in pixels/sec

  • velocity_y (Float)

    return value for the velocity in the Y axis, in pixels/sec

Returns:

  • (TrueClass)

    whether velocity could be calculated

#new(widget) ⇒ Gtk::Gesture

Returns a newly created Gtk::Gesture that recognizes swipes.

Parameters:

Returns: