Class: Clutter::PanAction
- Inherits:
-
GestureAction
- Object
- GObject::InitiallyUnowned
- ActorMeta
- Action
- GestureAction
- Clutter::PanAction
- Defined in:
- (unknown)
Overview
The Clutter::PanActionClass structure contains only private data.
Instance Method Summary collapse
-
#acceleration_factor ⇒ Float
The initial acceleration factor.
-
#acceleration_factor=(acceleration_factor) ⇒ Float
The initial acceleration factor.
-
#deceleration ⇒ Float
The rate at which the interpolated panning will decelerate in.
-
#deceleration=(deceleration) ⇒ Float
The rate at which the interpolated panning will decelerate in.
-
#get_constrained_motion_delta(point, delta_x, delta_y) ⇒ Clutter::gfloat
Retrieves the delta, in stage space, dependent on the current state of the Clutter::PanAction, and respecting the constraint specified by the Clutter::PanAction:pan-axis property.
-
#get_interpolated_coords(interpolated_x, interpolated_y) ⇒ nil
Retrieves the coordinates, in stage space, of the latest interpolated event, analogous to clutter_gesture_action_get_motion_coords().
-
#get_interpolated_delta(delta_x, delta_y) ⇒ Clutter::gfloat
Retrieves the delta, in stage space, since the latest interpolated event, analogous to clutter_gesture_action_get_motion_delta().
-
#get_motion_coords(point, motion_x, motion_y) ⇒ nil
Retrieves the coordinates, in stage space, dependent on the current state of the Clutter::PanAction.
-
#get_motion_delta(point, delta_x, delta_y) ⇒ Clutter::gfloat
Retrieves the delta, in stage space, dependent on the current state of the Clutter::PanAction.
-
#initialize ⇒ Clutter::Action
constructor
Creates a new Clutter::PanAction instance.
-
#interpolate ⇒ Boolean
Checks if the action should emit ::pan events even after releasing the pointer during a panning gesture, to emulate some kind of kinetic inertia.
-
#interpolate=(interpolate) ⇒ Boolean
Whether interpolated events emission is enabled.
-
#interpolate? ⇒ Boolean
Whether interpolated events emission is enabled.
-
#pan_axis ⇒ Clutter::PanAxis
Constraints the panning action to the specified axis.
-
#pan_axis=(pan_axis) ⇒ Clutter::PanAxis
Constraints the panning action to the specified axis.
Methods inherited from GestureAction
#cancel, #get_device, #get_last_event, #get_press_coords, #get_release_coords, #get_sequence, #get_threshold_trigger_distance, #get_velocity, #n_current_points, #n_touch_points, #n_touch_points=, #set_threshold_trigger_distance, #threshold_trigger_distance_x, #threshold_trigger_distance_x=, #threshold_trigger_distance_y, #threshold_trigger_distance_y=, #threshold_trigger_edge, #threshold_trigger_edge=, #threshold_trigger_egde
Methods inherited from ActorMeta
#actor, #actor=, #enabled, #enabled=, #enabled?, #name, #name=
Constructor Details
#initialize ⇒ Clutter::Action
Creates a new Clutter::PanAction instance
Instance Method Details
#acceleration_factor ⇒ Float
The initial acceleration factor
The kinetic momentum measured at the time of releasing the pointer will be multiplied by the factor specified by this property before being used to generate interpolated ::pan events.
#acceleration_factor=(acceleration_factor) ⇒ Float
The initial acceleration factor
The kinetic momentum measured at the time of releasing the pointer will be multiplied by the factor specified by this property before being used to generate interpolated ::pan events.
#deceleration ⇒ Float
The rate at which the interpolated panning will decelerate in
Clutter::PanAction will emit interpolated ::pan events with decreasing scroll deltas, using the rate specified by this property.
#deceleration=(deceleration) ⇒ Float
The rate at which the interpolated panning will decelerate in
Clutter::PanAction will emit interpolated ::pan events with decreasing scroll deltas, using the rate specified by this property.
#get_constrained_motion_delta(point, delta_x, delta_y) ⇒ Clutter::gfloat
Retrieves the delta, in stage space, dependent on the current state of the Clutter::PanAction, and respecting the constraint specified by the Clutter::PanAction:pan-axis property.
#get_interpolated_coords(interpolated_x, interpolated_y) ⇒ nil
Retrieves the coordinates, in stage space, of the latest interpolated event, analogous to clutter_gesture_action_get_motion_coords().
#get_interpolated_delta(delta_x, delta_y) ⇒ Clutter::gfloat
Retrieves the delta, in stage space, since the latest interpolated event, analogous to clutter_gesture_action_get_motion_delta().
#get_motion_coords(point, motion_x, motion_y) ⇒ nil
Retrieves the coordinates, in stage space, dependent on the current state of the Clutter::PanAction. If it is inactive, both fields will be set to 0. If it is panning by user action, the values will be equivalent to those returned by clutter_gesture_action_get_motion_coords(). If it is interpolating with some form of kinetic scrolling, the values will be equivalent to those returned by clutter_pan_action_get_interpolated_coords(). This is a convenience method designed to be used in replacement "pan" signal handlers.
#get_motion_delta(point, delta_x, delta_y) ⇒ Clutter::gfloat
Retrieves the delta, in stage space, dependent on the current state of the Clutter::PanAction. If it is inactive, both fields will be set to 0. If it is panning by user action, the values will be equivalent to those returned by clutter_gesture_action_get_motion_delta(). If it is interpolating with some form of kinetic scrolling, the values will be equivalent to those returned by clutter_pan_action_get_interpolated_delta(). This is a convenience method designed to be used in replacement "pan" signal handlers.
#interpolate ⇒ Boolean
Checks if the action should emit ::pan events even after releasing the pointer during a panning gesture, to emulate some kind of kinetic inertia.
#interpolate=(interpolate) ⇒ Boolean
Whether interpolated events emission is enabled.
#interpolate? ⇒ Boolean
Whether interpolated events emission is enabled.
#pan_axis ⇒ Clutter::PanAxis
Constraints the panning action to the specified axis
#pan_axis=(pan_axis) ⇒ Clutter::PanAxis
Constraints the panning action to the specified axis