Class

ClutterLongPressGesture

Description [src]

final class Clutter.LongPressGesture : Clutter.PressGesture
{
  /* No available fields */
}

A ClutterPressGesture subclass for recognizing long-press gestures.

Hierarchy

hierarchy this ClutterLongPressGesture ancestor_0 ClutterPressGesture ancestor_0--this ancestor_1 ClutterGesture ancestor_1--ancestor_0 ancestor_2 ClutterAction ancestor_2--ancestor_1 ancestor_3 ClutterActorMeta ancestor_3--ancestor_2 ancestor_4 GInitiallyUnowned ancestor_4--ancestor_3 ancestor_5 GObject ancestor_5--ancestor_4

Constructors

clutter_long_press_gesture_new

Creates a new ClutterLongPressGesture instance.

Instance methods

Methods inherited from ClutterPressGesture (12)
clutter_press_gesture_get_button

Retrieves the button that was pressed.

clutter_press_gesture_get_cancel_threshold

Gets the movement threshold in pixels that cancels the press gesture.

clutter_press_gesture_get_coords

Retrieves the coordinates of the press.

clutter_press_gesture_get_coords_abs

Retrieves the coordinates of the press in absolute coordinates.

clutter_press_gesture_get_long_press_duration_ms

Gets the minimum duration is milliseconds that’s necessary for a long press to recognize. A value of -1 means the default from ClutterSettings:long-press-duration is used.

clutter_press_gesture_get_n_presses

Retrieves the number of presses that happened on the gesture.

clutter_press_gesture_get_pressed

Gets whether the press gesture actor should be in the “pressed” state.

clutter_press_gesture_get_required_button

Gets the mouse button required for the press gesture to recognize.

clutter_press_gesture_get_state

Retrieves the modifier state of the press gesture.

clutter_press_gesture_set_cancel_threshold

Sets the movement threshold in pixels that cancels the press gesture.

clutter_press_gesture_set_long_press_duration_ms

Sets the minimum duration is milliseconds that’s necessary for a long press to recognize.

clutter_press_gesture_set_required_button

Sets the mouse button required for the press gesture to recognize. Pass 0 to allow any button. Touch input is always handled as a press of the primary button.

Methods inherited from ClutterGesture (14)
clutter_gesture_can_not_cancel

In case self and other_gesture are operating on the same points, calling this function will make sure that self does not cancel other_gesture when self moves to state RECOGNIZING.

clutter_gesture_cancel

Cancels the gesture by setting its state to CANCELLED.

clutter_gesture_get_n_points

Retrieves the number of active points the gesture currently has.

clutter_gesture_get_point_begin_coords

Retrieves the begin coordinates of the point with index point_index.

clutter_gesture_get_point_begin_coords_abs
No description available.

clutter_gesture_get_point_coords

Retrieves the latest coordinates of the point with index point_index.

clutter_gesture_get_point_coords_abs
No description available.

clutter_gesture_get_point_event

Retrieves the the latest event of the point with index point_index.

clutter_gesture_get_point_previous_coords

Retrieves the previous coordinates of the point with index point_index.

clutter_gesture_get_point_previous_coords_abs
No description available.

clutter_gesture_get_points

Retrieves an array of the currently active points of the gesture, the array is ordered in the order the points were added in (newest to oldest).

clutter_gesture_get_state

Gets the current state of the gesture.

clutter_gesture_reset_state_machine
No description available.

clutter_gesture_set_state

Sets the state of the gesture. This method is private to gesture implementations.

Methods inherited from ClutterAction (1)
clutter_action_get_phase
No description available.

Methods inherited from ClutterActorMeta (5)
clutter_actor_meta_get_actor

Retrieves a pointer to the ClutterActor that owns meta.

clutter_actor_meta_get_enabled

Retrieves whether meta is enabled.

clutter_actor_meta_get_name

Retrieves the name set using clutter_actor_meta_set_name().

clutter_actor_meta_set_enabled

Sets whether meta should be enabled or not.

clutter_actor_meta_set_name

Sets the name of meta.

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

Properties inherited from ClutterPressGesture (4)
Clutter.PressGesture:cancel-threshold

Threshold in pixels to cancel the gesture, use -1 to disable the threshold.

Clutter.PressGesture:long-press-duration-ms

The minimum duration of a press in milliseconds for it to be recognized as a long press gesture.

Clutter.PressGesture:pressed

Whether the clickable actor should be in “pressed” state.

Clutter.PressGesture:required-button

The mouse button required for the press gesture to recognize. Pass 0 to allow any button. Touch input is always handled as a press of the primary button.

Properties inherited from ClutterGesture (1)
Clutter.Gesture:state

The current state of the gesture.

Properties inherited from ClutterActorMeta (3)
Clutter.ActorMeta:actor

The ClutterActor attached to the ClutterActorMeta instance.

Clutter.ActorMeta:enabled

Whether or not the ClutterActorMeta is enabled.

Clutter.ActorMeta:name

The unique name to access the ClutterActorMeta.

Signals

Signals inherited from ClutterGesture (5)
ClutterGesture::cancel

The ::cancel signal is emitted when a continuous gesture got cancelled.

ClutterGesture::end

The ::end signal is emitted when a continuous gesture ends.

ClutterGesture::may-recognize

The ::may-recognize signal is emitted if the gesture might become active and move to RECOGNIZING. Its purpose is to allow the implementation or a user of a gesture to prohibit the gesture from starting when needed.

ClutterGesture::recognize

The ::recognize signal is emitted when the gesture recognizes.

ClutterGesture::should-handle-sequence

The ::should-handle-sequence signal is emitted when a sequence gets added to the gesture. Return FALSE to make the gesture ignore the sequence of events.

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct ClutterLongPressGestureClass {
  ClutterPressGestureClass parent_class;
  
}

No description available.

Class members
parent_class: ClutterPressGestureClass

No description available.