Пример #1
0
        public void Commit(Animatable owner, string name, uint rate = 16, uint length = 250, 
		                    Func<double, double> easing = null, Action<double, bool> finished = null, Func<bool> repeat = null)
        {
            owner.Animate (name, this, rate, length, easing, finished, repeat);
        }
Пример #2
0
 public static void Animate(this Animatable self, string name, Action <float> callback, uint rate = 16, uint length = 250,
                            Func <float, float> easing = null, Action <float, bool> finished = null, Func <bool> repeat = null)
 {
     self.Animate <float> (name, x => x, callback, rate, length, easing, finished, repeat);
 }
Пример #3
0
 public static void Animate(this Animatable self, string name, Action <double> callback, double start, double end, uint rate = 16, uint length = 250,
                            Func <double, double> easing = null, Action <double, bool> finished = null, Func <bool> repeat = null)
 {
     self.Animate <double> (name, Interpolate(start, end), callback, rate, length, easing, finished, repeat);
 }
Пример #4
0
 public void Commit(Animatable owner, string name, uint rate = 16, uint length       = 250,
                    Func <float, float> easing = null, Action <float, bool> finished = null, Func <bool> repeat = null)
 {
     owner.Animate(name, this, rate, length, easing, finished, repeat);
 }
Пример #5
0
 public static void Animate(this Animatable self, string name, Animation animation, uint rate = 16, uint length = 250,
                            Func <double, double> easing = null, Action <double, bool> finished = null, Func <bool> repeat = null)
 {
     self.Animate(name, animation.GetCallback(), rate, length, easing, finished, repeat);
 }