gtkmm: Event Controllers and Gestures

These classes handle input events. More...

Classes

class Gtk::EventController
Self-contained handler of series of events. More...

class Gtk::Gesture
Abstract base class for gestures. More...

class Gtk::GestureDrag
Drag gesture. More...

class Gtk::GestureLongPress
"Press and Hold" gesture. More...

class Gtk::GestureMultiPress
Multipress gesture. More...

class Gtk::GesturePan
Pan gesture. More...

class Gtk::GestureRotate
Rotate gesture. More...

class Gtk::GestureSingle
Abstract base class for mouse/single-touch gestures. More...

class Gtk::GestureSwipe
Swipe gesture. More...

class Gtk::GestureZoom
Zoom gesture. More...

Detailed Description

These classes handle input events.

Event controllers are standalone objects that can perform specific actions upon received GdkEvents. These are tied to a Widget , and can be told of the event propagation phase at which they will manage the events.

Gestures are a set of specific controllers that are prepared to handle pointer and/or touch events. Each gestures implementation attempts to recognize specific actions out the received events, notifying of the state/progress accordingly to let the widget react to those. On multi-touch gestures, every interacting touch sequence will be tracked independently.

See The GTK+ Input Handling Model for more information about input events and gestures.

Since gtkmm 3.14: