Gtk.GesturePan¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.GestureDrag (3), Gtk.GestureSingle (8), Gtk.Gesture (17), Gtk.EventController (13), GObject.Object (37)
- Structs:
class |
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Gtk.GestureSingle (3), Gtk.Gesture (1), Gtk.EventController (4)
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w/en |
Signals¶
- Inherited:
Name |
Short Description |
|---|---|
Emitted once a panning gesture along the expected axis is detected. |
Fields¶
- Inherited:
Class Details¶
- class Gtk.GesturePan(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Recognizes pan gestures.
These are drags that are locked to happen along one axis. The axis that a
GtkGesturePanhandles is defined at construct time, and can be changed through [method`Gtk`.GesturePan.set_orientation].When the gesture starts to be recognized,
GtkGesturePanwill attempt to determine as early as possible whether the sequence is moving in the expected direction, and denying the sequence if this does not happen.Once a panning gesture along the expected axis is recognized, the [signal`Gtk`.GesturePan::pan] signal will be emitted as input events are received, containing the offset in the given axis.
- classmethod new(orientation)[source]¶
- Parameters:
orientation (
Gtk.Orientation) – expected orientation- Returns:
a newly created
GtkGesturePan- Return type:
Returns a newly created
GtkGesturethat recognizes pan gestures.
- get_orientation()[source]¶
- Returns:
the expected orientation for pan gestures
- Return type:
Returns the orientation of the pan gestures that this self expects.
- set_orientation(orientation)[source]¶
- Parameters:
orientation (
Gtk.Orientation) – expected orientation
Sets the orientation to be expected on pan gestures.
Signal Details¶
- Gtk.GesturePan.signals.pan(gesture_pan, direction, offset)¶
- Signal Name:
pan- Flags:
- Parameters:
gesture_pan (
Gtk.GesturePan) – The object which received the signaldirection (
Gtk.PanDirection) – current direction of the pan gestureoffset (
float) – Offset along the gesture orientation
Emitted once a panning gesture along the expected axis is detected.
Property Details¶
- Gtk.GesturePan.props.orientation¶
- Name:
orientation- Type:
- Default Value:
- Flags:
The expected orientation of pan gestures.