![]() |
![]() |
![]() |
Clutter Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Signals |
struct ClutterTapAction;
struct ClutterTapActionClass;
ClutterAction * clutter_tap_action_new (void
);
GObject +----GInitiallyUnowned +----ClutterActorMeta +----ClutterAction +----ClutterGestureAction +----ClutterTapAction
ClutterTapAction is a sub-class of ClutterGestureAction that implements the logic for recognizing mouse clicks and touch tap gestures.
The simplest usage of ClutterTapAction consists in adding it to a ClutterActor with a child, setting it as reactive and connecting a callback for the "tap" signal, along the lines of the following code:
1 2 3 |
clutter_actor_add_action (actor, clutter_tap_action_new ()); clutter_actor_set_reactive (actor, TRUE); g_signal_connect (action, "tap", G_CALLBACK (on_tap_callback), NULL); |
struct ClutterTapAction;
The ClutterTapAction structure contains only private data and should be accessed using the provided API
Since 1.14
struct ClutterTapActionClass { gboolean (* tap) (ClutterTapAction *action, ClutterActor *actor); };
The ClutterTapActionClass structure contains only private data.
class handler for the "tap" signal |
ClutterAction * clutter_tap_action_new (void
);
Creates a new ClutterTapAction instance
Returns : |
the newly created ClutterTapAction |
Since 1.14
"tap"
signalvoid user_function (ClutterTapAction *action,
ClutterActor *actor,
gpointer user_data) : Run Last
The ::tap signal is emitted when the tap gesture is complete.
|
the ClutterTapAction that emitted the signal |
|
the ClutterActor attached to the action
|
|
user data set when the signal handler was connected. |
Since 1.14