| Top |
| struct | ClutterSwipeAction |
| struct | ClutterSwipeActionClass |
| enum | ClutterSwipeDirection |
GObject
╰── GInitiallyUnowned
╰── ClutterActorMeta
╰── ClutterAction
╰── ClutterGestureAction
╰── ClutterSwipeAction
ClutterSwipeAction is a sub-class of ClutterGestureAction that implements the logic for recognizing swipe gestures.
ClutterAction *
clutter_swipe_action_new (void);
Creates a new ClutterSwipeAction instance
Since 1.8
struct ClutterSwipeAction;
The ClutterSwipeAction structure contains only private data and should be accessed using the provided API
Since 1.8
struct ClutterSwipeActionClass {
void (* swept) (ClutterSwipeAction *action,
ClutterActor *actor,
ClutterSwipeDirection direction);
gboolean (* swipe) (ClutterSwipeAction *action,
ClutterActor *actor,
ClutterSwipeDirection direction);
};
The ClutterSwipeActionClass structure contains only private data.
Since 1.8
“swept” signalvoid user_function (ClutterSwipeAction *action, ClutterActor *actor, ClutterSwipeDirection direction, gpointer user_data)
The ::swept signal is emitted when a swipe gesture is recognized on the attached actor.
ClutterSwipeAction::swept has been deprecated since version 1.14 and should not be used in newly-written code.
Use the ::swipe signal instead.
action |
the ClutterSwipeAction that emitted the signal |
|
actor |
the ClutterActor attached to the |
|
direction |
the main direction of the swipe gesture |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since 1.8
“swipe” signalgboolean user_function (ClutterSwipeAction *action, ClutterActor *actor, ClutterSwipeDirection direction, gpointer user_data)
The ::swipe signal is emitted when a swipe gesture is recognized on the attached actor.
action |
the ClutterSwipeAction that emitted the signal |
|
actor |
the ClutterActor attached to the |
|
direction |
the main direction of the swipe gesture |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since 1.14