PanAction
Object Hierarchy:
Clutter.PanAction
Clutter.PanAction
Clutter.PanAction
Clutter.GestureAction
Clutter.GestureAction
Clutter.GestureAction->Clutter.PanAction
Clutter.Action
Clutter.Action
Clutter.Action->Clutter.GestureAction
Clutter.ActorMeta
Clutter.ActorMeta
Clutter.ActorMeta->Clutter.Action
GLib.InitiallyUnowned
GLib.InitiallyUnowned
GLib.InitiallyUnowned->Clutter.ActorMeta
GLib.Object
GLib.Object
GLib.Object->GLib.InitiallyUnowned
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:
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:
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
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref