PanAction
Object Hierarchy:
Description:
[
CCode ( type_id =
"clutter_pan_action_get_type ()" ) ]
[
Version ( since =
"1.12" ) ]
public class PanAction :
GestureAction
The PanAction structure contains only private data and should be accessed using the provided API
Content:
Properties:
Creation methods:
Methods:
- public double get_acceleration_factor ()
Retrieves the initial acceleration factor for interpolated
pan events.
- public float get_constrained_motion_delta (uint point, out float delta_x, out float delta_y)
Retrieves the delta, in stage space, dependent on the current state of
the PanAction, and respecting the constraint specified by the
pan_axis property.
- public double get_deceleration ()
Retrieves the deceleration rate of interpolated
pan events.
- public bool get_interpolate ()
Checks if the action should emit
pan events even after releasing the pointer during a panning gesture, to
emulate some kind of kinetic inertia.
- public void get_interpolated_coords (out float interpolated_x, out float interpolated_y)
Retrieves the coordinates, in stage space, of the latest interpolated
event, analogous to get_motion_coords.
- public float get_interpolated_delta (out float delta_x, out float delta_y)
Retrieves the delta, in stage space, since the latest interpolated
event, analogous to get_motion_delta.
- public void get_motion_coords (uint point, out float motion_x, out float motion_y)
Retrieves the coordinates, in stage space, dependent on the current
state of the PanAction.
- public float get_motion_delta (uint point, out float delta_x, out float delta_y)
Retrieves the delta, in stage space, dependent on the current state of
the PanAction.
- public PanAxis get_pan_axis ()
- public void set_acceleration_factor (double factor)
Factor applied to the momentum velocity at the time of releasing the
pointer when generating interpolated pan events.
- public void set_deceleration (double rate)
Sets the deceleration rate of the interpolated
pan events generated after a pan gesture.
- public void set_interpolate (bool should_interpolate)
Sets whether the action should emit interpolated
pan events after the drag has ended, to emulate the gesture kinetic inertia.
- public void set_pan_axis (PanAxis axis)
Restricts the panning action to a specific axis
Signals:
Inherited Members:
All known members inherited from class Clutter.GestureAction
All known members inherited from class Clutter.ActorMeta
All known members inherited from class GLib.Object