Exemple #1
0
        Wc.CompositionEasingFunction GetCompositionEasingFunction(Wd.CompositionEasingFunction obj)
        {
            switch (obj.Type)
            {
            case Wd.CompositionObjectType.LinearEasingFunction:
                return(GetLinearEasingFunction((Wd.LinearEasingFunction)obj));

            case Wd.CompositionObjectType.StepEasingFunction:
                return(GetStepEasingFunction((Wd.StepEasingFunction)obj));

            case Wd.CompositionObjectType.CubicBezierEasingFunction:
                return(GetCubicBezierEasingFunction((Wd.CubicBezierEasingFunction)obj));

            default:
                throw new InvalidOperationException();
            }
        }
 internal ValueKeyFrame(float progress, CompositionEasingFunction easing, T value)
     : base(progress, easing)
 {
     Value = value;
 }
Exemple #3
0
 private protected ExpressionKeyFrame(float progress, CompositionEasingFunction easing, Expression expression)
     : base(progress, easing)
 {
     Expression = expression;
 }
 internal ExpressionKeyFrame(float progress, CompositionEasingFunction easing, TExpression expression)
     : base(progress, easing, expression)
 {
     Expression = expression;
 }
Exemple #5
0
 private protected KeyFrame(float progress, CompositionEasingFunction easing)
 {
     Progress = progress;
     Easing   = easing;
 }