Class
ClutterPressGesture
Description [src]
abstract class Clutter.PressGesture : Clutter.Gesture
{
/* No available fields */
}
An abstract ClutterGesture
subclass building the base for recognizing press gestures.
Instance methods
clutter_press_gesture_get_cancel_threshold
Gets the movement threshold in pixels that cancels the press gesture.
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_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_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
clutter_gesture_get_point_coords
Retrieves the latest coordinates of the point with index point_index
.
clutter_gesture_get_point_coords_abs
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
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
clutter_gesture_set_state
Sets the state of the gesture. This method is private to gesture implementations.
Methods inherited from ClutterAction (1)
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
.
Properties
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: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)
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 ClutterPressGestureClass {
ClutterGestureClass parent_class;
void (* press) (
ClutterPressGesture* self
);
void (* release) (
ClutterPressGesture* self
);
void (* long_press) (
ClutterPressGesture* self
);
}
No description available.
Class members
parent_class: ClutterGestureClass
No description available.
press: void (* press) ( ClutterPressGesture* self )
No description available.
release: void (* release) ( ClutterPressGesture* self )
No description available.
long_press: void (* long_press) ( ClutterPressGesture* self )
No description available.