Class: Gtk::GestureDrag

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

Instance Method Summary collapse

Instance Method Details

#get_offset(x, y) ⇒ TrueClass

If the gesture is active, this function returns true and fills in x and y with the coordinates of the current point, as an offset to the starting drag point.

Parameters:

  • x (Float)

    X offset for the current point

  • y (Float)

    Y offset for the current point

Returns:

  • (TrueClass)

    true if the gesture is active

#get_start_point(x, y) ⇒ TrueClass

If the gesture is active, this function returns true and fills in x and y with the drag start coordinates, in window-relative coordinates.

Parameters:

  • x (Float)

    X coordinate for the drag start point

  • y (Float)

    Y coordinate for the drag start point

Returns:

  • (TrueClass)

    true if the gesture is active

#new(widget) ⇒ Gtk::Gesture

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

Parameters:

Returns: