Class: Gtk::GestureMultiPress

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

Instance Method Summary collapse

Instance Method Details

#area=(rect) ⇒ nil

If rect is non-nil, the press area will be checked to be confined within the rectangle, otherwise the button count will be reset so the press is seen as being the first one. If rect is nil, the area will be reset to an unrestricted state.

Note: The rectangle is only used to determine whether any non-first click falls within the expected area. This is not akin to an input shape.

Parameters:

  • rect (Gdk::Rectangle)

    rectangle to receive coordinates on

Returns:

  • (nil)

#get_area(rect) ⇒ TrueClass

If an area was set through gtk_gesture_multi_press_set_area(), this function will return true and fill in rect with the press area. See gtk_gesture_multi_press_set_area() for more details on what the press area represents.

Parameters:

  • rect (Gdk::Rectangle)

    return location for the press area

Returns:

  • (TrueClass)

    true if rect was filled with the press area

#new(widget) ⇒ Gtk::Gesture

Returns a newly created Gtk::Gesture that recognizes single and multiple presses.

Parameters:

Returns: