PanAction
Object Hierarchy:
Description:
[ CCode ( type_id = "clutter_pan_action_get_type ()" ) ]
[ Version ( since = "1.12" ) ]
public class PanAction : GestureAction
[ Version ( since = "1.12" ) ]
public class PanAction : GestureAction
The PanAction structure contains only private data and should be accessed using the provided API
Namespace: Clutter
Package: clutter-1.0
Content:
Properties:
- public double acceleration_factor { get; set; }
The initial acceleration factor
- public double deceleration { get; set; }
The rate at which the interpolated panning will decelerate in
- public bool interpolate { get; set; }
Whether interpolated events emission is enabled.
- public PanAxis pan_axis { get; set; }
Constraints the panning action to the specified axis
Creation methods:
- public PanAction ()
Creates a new PanAction instance
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 ()
Retrieves the axis constraint set by set_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:
- public virtual signal bool pan (Actor actor, bool is_interpolated)
The pan signal is emitted to keep track of the motion during a pan gesture.
- public virtual signal void pan_stopped (Actor actor)
The pan_stopped signal is emitted at the end of the interpolation phase of the pan action, only when interpolate is set to
true
.
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