diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2012-07-19 21:55:35 -0400 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2012-07-19 22:13:24 -0400 |
commit | 12c75e9737152f91c440c935c0393f5ee9ef473f (patch) | |
tree | 7e44ac3a3d35f3454aa460d311f2a7c1c1699ae8 /clutter/clutter-enums.h | |
parent | 4546f844080672580c469d75168630b737419c17 (diff) | |
download | clutter-12c75e9737152f91c440c935c0393f5ee9ef473f.tar.gz |
timeline: Add cubic-bezier() progress functions
Another progress function from the CSS3 Transitions specification, using
a parametrices cubic bezier curve between (0, 0) and (1, 1) with two
control points.
(sadly, no ASCII art can approximate a cubic bezier, so no graph)
The cubic-bezier() progress function comes with a bunch of preset easing
modes: ease, ease-in, ease-out, and ease-in-out, that we can map to
enumeration values.
Diffstat (limited to 'clutter/clutter-enums.h')
-rw-r--r-- | clutter/clutter-enums.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/clutter/clutter-enums.h b/clutter/clutter-enums.h index 2df11a86b..c59c3cf7f 100644 --- a/clutter/clutter-enums.h +++ b/clutter/clutter-enums.h @@ -165,7 +165,17 @@ typedef enum { /*< prefix=CLUTTER_REQUEST >*/ * @CLUTTER_STEP_START: equivalent to %CLUTTER_STEPS with a number of steps * equal to 1, and a step mode of %CLUTTER_STEP_MODE_START. (Since 1.12) * @CLUTTER_STEP_END: equivalent to %CLUTTER_STEPS with a number of steps - * equal to 1, and a step mode of %CLUTTER_STEP_MODE_END. (Since: 1.12) + * equal to 1, and a step mode of %CLUTTER_STEP_MODE_END. (Since 1.12) + * @CLUTTER_CUBIC_BEZIER: cubic bezier between (0, 0) and (1, 1) with two + * control points; see clutter_timeline_set_cubic_bezier_progress(). (Since 1.12) + * @CLUTTER_EASE: equivalent to %CLUTTER_CUBIC_BEZIER with control points + * in (0.25, 0.1) and (0.25, 1.0). (Since 1.12) + * @CLUTTER_EASE_IN: equivalent to %CLUTTER_CUBIC_BEZIER with control points + * in (0.42, 0) and (1.0, 1.0). (Since 1.12) + * @CLUTTER_EASE_OUT: equivalent to %CLUTTER_CUBIC_BEZIER with control points + * in (0, 0) and (0.58, 1.0). (Since 1.12) + * @CLUTTER_EASE_IN_OUT: equivalent to %CLUTTER_CUBIC_BEZIER with control points + * in (0.42, 0) and (0.58, 1.0). (Since 1.12) * @CLUTTER_ANIMATION_LAST: last animation mode, used as a guard for * registered global alpha functions * @@ -244,6 +254,13 @@ typedef enum { CLUTTER_STEP_START, /* steps(1, start) */ CLUTTER_STEP_END, /* steps(1, end) */ + /* cubic bezier (see css3-transitions) */ + CLUTTER_CUBIC_BEZIER, + CLUTTER_EASE, + CLUTTER_EASE_IN, + CLUTTER_EASE_OUT, + CLUTTER_EASE_IN_OUT, + /* guard, before registered alpha functions */ CLUTTER_ANIMATION_LAST } ClutterAnimationMode; |