Class GestureSwipe

All Implemented Interfaces:
PointerInterface

public class GestureSwipe extends GestureSingle
`GtkGestureSwipe` is a `GtkGesture` for swipe gestures.

After a press/move/.../move/release sequence happens, the
[signal@Gtk.GestureSwipe::swipe] signal will be emitted,
providing the velocity and directionality of the sequence
at the time it was lifted.

If the velocity is desired in intermediate points,
[method@Gtk.GestureSwipe.get_velocity] can be called in a
[signal@Gtk.Gesture::update] handler.

All velocities are reported in pixels/sec units.

https://docs.gtk.org/gtk4/class.GestureSwipe.html

  • Field Details

  • Constructor Details

    • GestureSwipe

      public GestureSwipe(PointerContainer pointer)
    • GestureSwipe

      public GestureSwipe()
      Returns a newly created `GtkGesture` that recognizes swipes.
  • Method Details