GestureAction
Object Hierarchy:
Description:
[ CCode ( type_id = "clutter_gesture_action_get_type ()" ) ]
[ Version ( since = "1.8" ) ]
public class GestureAction : Action
[ Version ( since = "1.8" ) ]
public class GestureAction : Action
The GestureAction structure contains only private data and should be accessed using the provided API
All known sub-classes:
Namespace: Clutter
Package: clutter-1.0
Content:
Properties:
- public int n_touch_points { get; set; }
Number of touch points to trigger a gesture action.
- public float threshold_trigger_distance_x { get; construct; }
The horizontal trigger distance to be used by the action to either emit the gesture_begin signal or to emit the gesture_cancel signal.
- public float threshold_trigger_distance_y { get; construct; }
The vertical trigger distance to be used by the action to either emit the gesture_begin signal or to emit the gesture_cancel signal.
- public GestureTriggerEdge threshold_trigger_edge { get; construct; }
The trigger edge to be used by the action to either emit the gesture_begin signal or to emit the gesture_cancel signal.
Creation methods:
- public GestureAction ()
Creates a new GestureAction instance.
Methods:
- public void cancel ()
Cancel a GestureAction before it begins
- public virtual bool gesture_prepare (Actor actor)
- public unowned InputDevice get_device (uint point)
Retrieves the InputDevice of a touch point.
- public unowned Event get_last_event (uint point)
Retrieves a reference to the last Event for a touch point.
- public void get_motion_coords (uint point, out float motion_x, out float motion_y)
Retrieves the coordinates, in stage space, of the latest motion event during the dragging.
- public float get_motion_delta (uint point, out float delta_x, out float delta_y)
Retrieves the incremental delta since the last motion event during the dragging.
- public uint get_n_current_points ()
Retrieves the number of points currently active.
- public int get_n_touch_points ()
Retrieves the number of requested points to trigger the gesture.
- public void get_press_coords (uint point, out float press_x, out float press_y)
Retrieves the coordinates, in stage space, of the press event that started the dragging for a specific touch point.
- public void get_release_coords (uint point, out float release_x, out float release_y)
Retrieves the coordinates, in stage space, where the touch point was last released.
- public unowned EventSequence get_sequence (uint point)
Retrieves the EventSequence of a touch point.
- public void get_threshold_trigger_distance (out float x, out float y)
Retrieves the threshold trigger distance of the gesture this, as set using set_threshold_trigger_distance.
- public GestureTriggerEdge get_threshold_trigger_edge ()
Retrieves the edge trigger of the gesture this , as set using set_threshold_trigger_edge .
- public GestureTriggerEdge get_threshold_trigger_egde ()
Retrieves the edge trigger of the gesture this , as set using set_threshold_trigger_edge .
- public float get_velocity (uint point, out float velocity_x, out float velocity_y)
Retrieves the velocity, in stage pixels per millisecond, of the latest motion event during the dragging.
- public void set_n_touch_points (int nb_points)
Sets the number of points needed to trigger the gesture.
- public void set_threshold_trigger_distance (float x, float y)
Sets the threshold trigger distance for the gesture drag threshold, if any.
- public void set_threshold_trigger_edge (GestureTriggerEdge edge)
Sets the edge trigger for the gesture drag threshold, if any.
Signals:
- public virtual signal bool gesture_begin (Actor actor)
The gesture_begin signal is emitted when the Actor to which a GestureAction has been applied starts receiving a gesture.
- public virtual signal void gesture_cancel (Actor actor)
The gesture_cancel signal is emitted when the ongoing gesture gets cancelled from the gesture_progress signal handler.
- public virtual signal void gesture_end (Actor actor)
The gesture_end signal is emitted at the end of the gesture gesture, when the pointer's button is released
- public virtual signal bool gesture_progress (Actor actor)
The gesture_progress signal is emitted for each motion event after the gesture_begin signal has been emitted.
Inherited Members:
All known members inherited from class Clutter.ActorMeta
All known members inherited from class GLib.Object