New directory structure for C#
[platform/core/uifw/dali-toolkit.git] / plugins / dali-sharp / sharp / internal / Animation.cs
1 /** Copyright (c) 2017 Samsung Electronics Co., Ltd.
2 *
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 *
15 */
16 // This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts
17 //------------------------------------------------------------------------------
18 // <auto-generated />
19 //
20 // This file was automatically generated by SWIG (http://www.swig.org).
21 // Version 3.0.10
22 //
23 // Do not make changes to this file unless you know what you are doing--modify
24 // the SWIG interface file instead.
25 //------------------------------------------------------------------------------
26
27 namespace Dali {
28
29 using System;
30 using System.Runtime.InteropServices;
31
32 public class Animation : BaseHandle {
33   private global::System.Runtime.InteropServices.HandleRef swigCPtr;
34
35   internal Animation(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Animation_SWIGUpcast(cPtr), cMemoryOwn) {
36     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
37   }
38
39   internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Animation obj) {
40     return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
41   }
42
43   ~Animation() {
44     DisposeQueue.Instance.Add(this);
45   }
46
47   public override void Dispose() {
48     if (!Stage.IsInstalled()) {
49       DisposeQueue.Instance.Add(this);
50       return;
51     }
52
53     lock(this) {
54       if (swigCPtr.Handle != global::System.IntPtr.Zero) {
55         if (swigCMemOwn) {
56           swigCMemOwn = false;
57           NDalicPINVOKE.delete_Animation(swigCPtr);
58         }
59         swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
60       }
61       global::System.GC.SuppressFinalize(this);
62       base.Dispose();
63     }
64   }
65
66
67
68
69     private EventCallbackDelegateType1<IntPtr> _animationFinishedEventCallbackDelegate;
70     private event EventHandler _animationFinishedEventHandler;
71
72     /**
73       * @brief Event for Finished signal which can be used to subscribe/unsubscribe the event handler
74       * Finished signal is emitted when an Animation's animations have finished.
75       */
76     public event EventHandler Finished
77     {
78       add
79       {
80         lock(this)
81         {
82           _animationFinishedEventHandler += value;
83           _animationFinishedEventCallbackDelegate = OnFinished;
84           this.FinishedSignal().Connect(_animationFinishedEventCallbackDelegate);
85         }
86       }
87       remove
88       {
89         lock(this)
90         {
91           if (_animationFinishedEventHandler != null)
92           {
93             this.FinishedSignal().Disconnect(_animationFinishedEventCallbackDelegate);
94           }
95           _animationFinishedEventHandler -= value;
96         }
97       }
98     }
99
100     // Callback for Animation FinishedSignal
101     private void OnFinished(IntPtr data)
102     {
103       if (_animationFinishedEventHandler != null)
104       {
105         //here we send all data to user event handlers
106         _animationFinishedEventHandler(this, null);
107       }
108     }
109
110   public static Animation GetAnimationFromPtr(global::System.IntPtr cPtr) {
111     Animation ret = new Animation(cPtr, false);
112     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
113     return ret;
114   }
115
116   private float MilliSecondsToSeconds( int millisec )
117   {
118     return (float)millisec / 1000.0f;
119   }
120
121   private int SecondsToMilliSeconds( float sec )
122   {
123     return (int)( sec * 1000 );
124   }
125
126   public int Duration
127   {
128     set
129     {
130       SetDuration( MilliSecondsToSeconds( value ) );
131     }
132     get
133     {
134       return SecondsToMilliSeconds( GetDuration() );
135     }
136   }
137
138   public AlphaFunction DefaultAlphaFunction
139   {
140     set
141     {
142        SetDefaultAlphaFunction(value);
143     }
144     get
145     {
146        AlphaFunction ret = GetDefaultAlphaFunction();
147        return ret;
148     }
149   }
150
151   public Animation.State Status
152   {
153     get
154     {
155        return GetState();
156     }
157   }
158
159   public int LoopCount
160   {
161     set
162     {
163       SetLoopCount(value);
164     }
165     get
166     {
167       int ret = GetLoopCount();
168       return ret;
169     }
170   }
171
172   public bool Looping
173   {
174     set
175     {
176       SetLooping(value);
177     }
178     get
179     {
180       bool ret = IsLooping();
181       return ret;
182     }
183   }
184
185   public Animation.EndActions EndAction
186   {
187     set
188     {
189       SetEndAction(value);
190     }
191     get
192     {
193       return GetEndAction();
194     }
195   }
196
197   public void Stop(Animation.EndActions action) 
198   {
199     SetEndAction(action);
200     NDalicPINVOKE.Animation_Stop(swigCPtr);
201     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
202   }
203
204   public int StartTime { set; get; }
205   public int EndTime { set; get; }
206   public string TargetProperty { set; get; }
207   public object Destination { set; get; }
208   public Dali.AlphaFunction AlphaFunction { set; get; }
209
210
211   public void AnimateBy(Actor target)
212   {
213     string _str1 = TargetProperty.Substring(0, 1);
214     string _str2 = TargetProperty.Substring(1);
215     string _str = _str1.ToLower() + _str2;
216
217     dynamic obj = (object)Destination;
218
219     if( this.AlphaFunction != null )
220     {
221       if( this.StartTime == 0 && this.EndTime == 0 )
222       {
223         AnimateBy(new Property(target, _str), new Property.Value(obj), this.AlphaFunction );
224       }
225       else
226       {
227         Dali.TimePeriod time = new Dali.TimePeriod( MilliSecondsToSeconds( this.StartTime ), MilliSecondsToSeconds( this.EndTime - this.StartTime ) );
228         AnimateBy(new Property(target, _str), new Property.Value(obj), this.AlphaFunction, time );
229       }
230     }
231     else
232     {
233       if( this.StartTime == 0 && this.EndTime == 0 )
234       {
235         AnimateBy(new Property(target, _str), new Property.Value(obj) );
236       }
237       else
238       {
239         Dali.TimePeriod time = new Dali.TimePeriod( MilliSecondsToSeconds( this.StartTime ), MilliSecondsToSeconds( this.EndTime - this.StartTime ) );
240         AnimateBy(new Property(target, _str), new Property.Value(obj), time );
241       }
242     }
243   }
244
245   public void AnimateBy(Actor target, string propertyIndex)
246   {
247     string _str1 = propertyIndex.Substring(0, 1);
248     string _str2 = propertyIndex.Substring(1);
249     string _str = _str1.ToLower() + _str2;
250
251     dynamic obj = (object)Destination;
252
253     if( this.AlphaFunction != null )
254     {
255       if( this.StartTime == 0 && this.EndTime == 0 )
256       {
257         AnimateBy(new Property(target, _str), new Property.Value(obj), this.AlphaFunction );
258       }
259       else
260       {
261         Dali.TimePeriod time = new Dali.TimePeriod( MilliSecondsToSeconds( this.StartTime ), MilliSecondsToSeconds( this.EndTime - this.StartTime ) );
262         AnimateBy(new Property(target, _str), new Property.Value(obj), this.AlphaFunction, time );
263       }
264     }
265     else
266     {
267       if( this.StartTime == 0 && this.EndTime == 0 )
268       {
269         AnimateBy(new Property(target, _str), new Property.Value(obj) );
270       }
271       else
272       {
273         Dali.TimePeriod time = new Dali.TimePeriod( MilliSecondsToSeconds( this.StartTime ), MilliSecondsToSeconds( this.EndTime - this.StartTime ) );
274         AnimateBy(new Property(target, _str), new Property.Value(obj), time );
275       }
276     }
277   }
278
279   public void AnimateBy(Actor target, string propertyIndex, object relativeValue)
280   {
281     string _str1 = propertyIndex.Substring(0, 1);
282     string _str2 = propertyIndex.Substring(1);
283     string _str = _str1.ToLower() + _str2;
284
285     dynamic obj = (object)relativeValue;
286
287     if( this.AlphaFunction != null )
288     {
289       if( this.StartTime == 0 && this.EndTime == 0 )
290       {
291         AnimateBy(new Property(target, _str), new Property.Value(obj), this.AlphaFunction );
292       }
293       else
294       {
295         Dali.TimePeriod time = new Dali.TimePeriod( MilliSecondsToSeconds( this.StartTime ), MilliSecondsToSeconds( this.EndTime - this.StartTime ) );
296         AnimateBy(new Property(target, _str), new Property.Value(obj), this.AlphaFunction, time );
297       }
298     }
299     else
300     {
301       if( this.StartTime == 0 && this.EndTime == 0 )
302       {
303         AnimateBy(new Property(target, _str), new Property.Value(obj) );
304       }
305       else
306       {
307         Dali.TimePeriod time = new Dali.TimePeriod( MilliSecondsToSeconds( this.StartTime ), MilliSecondsToSeconds( this.EndTime - this.StartTime ) );
308         AnimateBy(new Property(target, _str), new Property.Value(obj), time );
309       }
310     }
311   }
312
313   public void AnimateTo(Actor target)
314   {
315     string _str1 = TargetProperty.Substring(0, 1);
316     string _str2 = TargetProperty.Substring(1);
317     string _str = _str1.ToLower() + _str2;
318
319     dynamic obj = (object)Destination;
320
321     if( this.AlphaFunction != null )
322     {
323       if( this.StartTime == 0 && this.EndTime == 0 )
324       {
325         AnimateTo(new Property(target, _str), new Property.Value(obj), this.AlphaFunction );
326       }
327       else
328       {
329         Dali.TimePeriod time = new Dali.TimePeriod( MilliSecondsToSeconds( this.StartTime ), MilliSecondsToSeconds( this.EndTime - this.StartTime ) );
330         AnimateTo(new Property(target, _str), new Property.Value(obj), this.AlphaFunction, time );
331       }
332     }
333     else
334     {
335       if( this.StartTime == 0 && this.EndTime == 0 )
336       {
337         AnimateTo(new Property(target, _str), new Property.Value(obj) );
338       }
339       else
340       {
341         Dali.TimePeriod time = new Dali.TimePeriod( MilliSecondsToSeconds( this.StartTime ), MilliSecondsToSeconds( this.EndTime - this.StartTime ) );
342         AnimateTo(new Property(target, _str), new Property.Value(obj), time );
343       }
344     }
345   }
346
347   public void AnimateTo(Actor target, string propertyIndex)
348   {
349     string _str1 = propertyIndex.Substring(0, 1);
350     string _str2 = propertyIndex.Substring(1);
351     string _str = _str1.ToLower() + _str2;
352
353     dynamic obj = (object)Destination;
354
355     if( this.AlphaFunction != null )
356     {
357       if( this.StartTime == 0 && this.EndTime == 0 )
358       {
359         AnimateTo(new Property(target, _str), new Property.Value(obj), this.AlphaFunction );
360       }
361       else
362       {
363         Dali.TimePeriod time = new Dali.TimePeriod( MilliSecondsToSeconds( this.StartTime ), MilliSecondsToSeconds( this.EndTime - this.StartTime ) );
364         AnimateTo(new Property(target, _str), new Property.Value(obj), this.AlphaFunction, time );
365       }
366     }
367     else
368     {
369       if( this.StartTime == 0 && this.EndTime == 0 )
370       {
371         AnimateTo(new Property(target, _str), new Property.Value(obj) );
372       }
373       else
374       {
375         Dali.TimePeriod time = new Dali.TimePeriod( MilliSecondsToSeconds( this.StartTime ), MilliSecondsToSeconds( this.EndTime - this.StartTime ) );
376         AnimateTo(new Property(target, _str), new Property.Value(obj), time );
377       }
378     }
379   }
380
381   public void AnimateTo(Actor target, string propertyIndex, object destinationValue)
382   {
383     string _str1 = propertyIndex.Substring(0, 1);
384     string _str2 = propertyIndex.Substring(1);
385     string _str = _str1.ToLower() + _str2;
386
387     dynamic obj = (object)destinationValue;
388
389     if( this.AlphaFunction != null )
390     {
391       if( this.StartTime == 0 && this.EndTime == 0 )
392       {
393         AnimateTo(new Property(target, _str), new Property.Value(obj), this.AlphaFunction );
394       }
395       else
396       {
397         Dali.TimePeriod time = new Dali.TimePeriod( MilliSecondsToSeconds( this.StartTime ), MilliSecondsToSeconds( this.EndTime - this.StartTime ) );
398         AnimateTo(new Property(target, _str), new Property.Value(obj), this.AlphaFunction, time );
399       }
400     }
401     else
402     {
403       if( this.StartTime == 0 && this.EndTime == 0 )
404       {
405         AnimateTo(new Property(target, _str), new Property.Value(obj) );
406       }
407       else
408       {
409         Dali.TimePeriod time = new Dali.TimePeriod( MilliSecondsToSeconds( this.StartTime ), MilliSecondsToSeconds( this.EndTime - this.StartTime ) );
410         AnimateTo(new Property(target, _str), new Property.Value(obj), time );
411       }
412     }
413   }
414
415   public void AnimateBetween(Actor target, KeyFrames keyFrames)
416   {
417     string _str1 = TargetProperty.Substring(0, 1);
418     string _str2 = TargetProperty.Substring(1);
419     string _str = _str1.ToLower() + _str2;
420
421
422     if( this.AlphaFunction != null )
423     {
424       if( this.StartTime == 0 && this.EndTime == 0 )
425       {
426         AnimateBetween(new Property(target, _str), keyFrames, this.AlphaFunction);
427       }
428       else
429       {
430         Dali.TimePeriod time = new Dali.TimePeriod( MilliSecondsToSeconds( this.StartTime ), MilliSecondsToSeconds( this.EndTime - this.StartTime ) );
431         AnimateBetween(new Property(target, _str), keyFrames, this.AlphaFunction, time);
432       }
433     }
434     else
435     {
436       if( this.StartTime == 0 && this.EndTime == 0 )
437       {
438         AnimateBetween(new Property(target, _str), keyFrames);
439       }
440       else
441       {
442         Dali.TimePeriod time = new Dali.TimePeriod( MilliSecondsToSeconds( this.StartTime ), MilliSecondsToSeconds( this.EndTime - this.StartTime ) );
443         AnimateBetween(new Property(target, _str), keyFrames, time);
444       }
445     }
446   }
447
448   public void AnimateBetween(Actor target, KeyFrames keyFrames, Animation.Interpolation interpolation)
449   {
450     string _str1 = TargetProperty.Substring(0, 1);
451     string _str2 = TargetProperty.Substring(1);
452     string _str = _str1.ToLower() + _str2;
453
454
455     if( this.AlphaFunction != null )
456     {
457       if( this.StartTime == 0 && this.EndTime == 0 )
458       {
459         AnimateBetween(new Property(target, _str), keyFrames, this.AlphaFunction, interpolation);
460       }
461       else
462       {
463         Dali.TimePeriod time = new Dali.TimePeriod( MilliSecondsToSeconds( this.StartTime ), MilliSecondsToSeconds( this.EndTime - this.StartTime ) );
464         AnimateBetween(new Property(target, _str), keyFrames, this.AlphaFunction, time, interpolation);
465       }
466     }
467     else
468     {
469       if( this.StartTime == 0 && this.EndTime == 0 )
470       {
471         AnimateBetween(new Property(target, _str), keyFrames, interpolation);
472       }
473       else
474       {
475         Dali.TimePeriod time = new Dali.TimePeriod( MilliSecondsToSeconds( this.StartTime ), MilliSecondsToSeconds( this.EndTime - this.StartTime ) );
476         AnimateBetween(new Property(target, _str), keyFrames, time, interpolation);
477       }
478     }
479   }
480
481
482   /**
483    * @brief Create an initialized Animation.
484    *
485    * The animation will not loop.
486    * The default end action is "Bake".
487    * The default Alpha function is linear.
488    * @since 1.0.0
489    * @param [in] durationmSeconds The duration in milli seconds (int).
490    * @return A handle to a newly allocated Dali resource.
491    * @pre DurationmSeconds must be greater than zero.
492    */
493   public Animation (int durationmSeconds) : this (NDalicPINVOKE.Animation_New((float)durationmSeconds/1000.0f), true) {
494     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
495   }
496
497   public Animation () : this (NDalicPINVOKE.Animation_New( 0.0f ), true ) {
498     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
499   }
500   
501
502   public Animation (float durationSeconds) : this (NDalicPINVOKE.Animation_New(durationSeconds), true) {
503       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
504
505   }
506   public static Animation DownCast(BaseHandle handle) {
507     Animation ret = new Animation(NDalicPINVOKE.Animation_DownCast(BaseHandle.getCPtr(handle)), true);
508     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
509     return ret;
510   }
511
512   public Animation(Animation handle) : this(NDalicPINVOKE.new_Animation__SWIG_1(Animation.getCPtr(handle)), true) {
513     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
514   }
515
516   public Animation Assign(Animation rhs) {
517     Animation ret = new Animation(NDalicPINVOKE.Animation_Assign(swigCPtr, Animation.getCPtr(rhs)), false);
518     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
519     return ret;
520   }
521
522   public void SetDuration(float seconds) {
523     NDalicPINVOKE.Animation_SetDuration(swigCPtr, seconds);
524     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
525   }
526
527   public float GetDuration() {
528     float ret = NDalicPINVOKE.Animation_GetDuration(swigCPtr);
529     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
530     return ret;
531   }
532
533   public void SetLooping(bool looping) {
534     NDalicPINVOKE.Animation_SetLooping(swigCPtr, looping);
535     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
536   }
537
538   public void SetLoopCount(int count) {
539     NDalicPINVOKE.Animation_SetLoopCount(swigCPtr, count);
540     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
541   }
542
543   public int GetLoopCount() {
544     int ret = NDalicPINVOKE.Animation_GetLoopCount(swigCPtr);
545     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
546     return ret;
547   }
548
549   public int GetCurrentLoop() {
550     int ret = NDalicPINVOKE.Animation_GetCurrentLoop(swigCPtr);
551     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
552     return ret;
553   }
554
555   public bool IsLooping() {
556     bool ret = NDalicPINVOKE.Animation_IsLooping(swigCPtr);
557     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
558     return ret;
559   }
560
561   public void SetEndAction(Animation.EndActions action) {
562     NDalicPINVOKE.Animation_SetEndAction(swigCPtr, (int)action);
563     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
564   }
565
566   public Animation.EndActions GetEndAction() {
567     Animation.EndActions ret = (Animation.EndActions)NDalicPINVOKE.Animation_GetEndAction(swigCPtr);
568     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
569     return ret;
570   }
571
572   public void SetDisconnectAction(Animation.EndActions disconnectAction) {
573     NDalicPINVOKE.Animation_SetDisconnectAction(swigCPtr, (int)disconnectAction);
574     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
575   }
576
577   public Animation.EndActions GetDisconnectAction() {
578     Animation.EndActions ret = (Animation.EndActions)NDalicPINVOKE.Animation_GetDisconnectAction(swigCPtr);
579     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
580     return ret;
581   }
582
583   public void SetDefaultAlphaFunction(AlphaFunction alpha) {
584     NDalicPINVOKE.Animation_SetDefaultAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
585     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
586   }
587
588   public AlphaFunction GetDefaultAlphaFunction() {
589     AlphaFunction ret = new AlphaFunction(NDalicPINVOKE.Animation_GetDefaultAlphaFunction(swigCPtr), true);
590     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
591     return ret;
592   }
593
594   public void SetCurrentProgress(float progress) {
595     NDalicPINVOKE.Animation_SetCurrentProgress(swigCPtr, progress);
596     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
597   }
598
599   public float GetCurrentProgress() {
600     float ret = NDalicPINVOKE.Animation_GetCurrentProgress(swigCPtr);
601     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
602     return ret;
603   }
604
605   public void SetSpeedFactor(float factor) {
606     NDalicPINVOKE.Animation_SetSpeedFactor(swigCPtr, factor);
607     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
608   }
609
610   public float GetSpeedFactor() {
611     float ret = NDalicPINVOKE.Animation_GetSpeedFactor(swigCPtr);
612     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
613     return ret;
614   }
615
616   public void SetPlayRange(Vector2 range) {
617     NDalicPINVOKE.Animation_SetPlayRange(swigCPtr, Vector2.getCPtr(range));
618     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
619   }
620
621   public Vector2 GetPlayRange() {
622     Vector2 ret = new Vector2(NDalicPINVOKE.Animation_GetPlayRange(swigCPtr), true);
623     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
624     return ret;
625   }
626
627   public void Play() {
628     NDalicPINVOKE.Animation_Play(swigCPtr);
629     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
630   }
631
632   public void PlayFrom(float progress) {
633     NDalicPINVOKE.Animation_PlayFrom(swigCPtr, progress);
634     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
635   }
636
637   public void Pause() {
638     NDalicPINVOKE.Animation_Pause(swigCPtr);
639     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
640   }
641
642   public Animation.State GetState() {
643     Animation.State ret = (Animation.State)NDalicPINVOKE.Animation_GetState(swigCPtr);
644     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
645     return ret;
646   }
647
648   public void Stop() {
649     NDalicPINVOKE.Animation_Stop(swigCPtr);
650     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
651   }
652
653   public void Clear() {
654     NDalicPINVOKE.Animation_Clear(swigCPtr);
655     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
656   }
657
658   public AnimationSignal FinishedSignal() {
659     AnimationSignal ret = new AnimationSignal(NDalicPINVOKE.Animation_FinishedSignal(swigCPtr), false);
660     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
661     return ret;
662   }
663
664   public void AnimateBy(Property target, Property.Value relativeValue) {
665     NDalicPINVOKE.Animation_AnimateBy__SWIG_0(swigCPtr, Property.getCPtr(target), Property.Value.getCPtr(relativeValue));
666     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
667   }
668
669   public void AnimateBy(Property target, Property.Value relativeValue, AlphaFunction alpha) {
670     NDalicPINVOKE.Animation_AnimateBy__SWIG_1(swigCPtr, Property.getCPtr(target), Property.Value.getCPtr(relativeValue), AlphaFunction.getCPtr(alpha));
671     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
672   }
673
674   public void AnimateBy(Property target, Property.Value relativeValue, TimePeriod period) {
675     NDalicPINVOKE.Animation_AnimateBy__SWIG_2(swigCPtr, Property.getCPtr(target), Property.Value.getCPtr(relativeValue), TimePeriod.getCPtr(period));
676     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
677   }
678
679   public void AnimateBy(Property target, Property.Value relativeValue, AlphaFunction alpha, TimePeriod period) {
680     NDalicPINVOKE.Animation_AnimateBy__SWIG_3(swigCPtr, Property.getCPtr(target), Property.Value.getCPtr(relativeValue), AlphaFunction.getCPtr(alpha), TimePeriod.getCPtr(period));
681     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
682   }
683
684   public void AnimateTo(Property target, Property.Value destinationValue) {
685     NDalicPINVOKE.Animation_AnimateTo__SWIG_0(swigCPtr, Property.getCPtr(target), Property.Value.getCPtr(destinationValue));
686     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
687   }
688
689   public void AnimateTo(Property target, Property.Value destinationValue, AlphaFunction alpha) {
690     NDalicPINVOKE.Animation_AnimateTo__SWIG_1(swigCPtr, Property.getCPtr(target), Property.Value.getCPtr(destinationValue), AlphaFunction.getCPtr(alpha));
691     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
692   }
693
694   public void AnimateTo(Property target, Property.Value destinationValue, TimePeriod period) {
695     NDalicPINVOKE.Animation_AnimateTo__SWIG_2(swigCPtr, Property.getCPtr(target), Property.Value.getCPtr(destinationValue), TimePeriod.getCPtr(period));
696     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
697   }
698
699   public void AnimateTo(Property target, Property.Value destinationValue, AlphaFunction alpha, TimePeriod period) {
700     NDalicPINVOKE.Animation_AnimateTo__SWIG_3(swigCPtr, Property.getCPtr(target), Property.Value.getCPtr(destinationValue), AlphaFunction.getCPtr(alpha), TimePeriod.getCPtr(period));
701     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
702   }
703
704   public void AnimateBetween(Property target, KeyFrames keyFrames) {
705     NDalicPINVOKE.Animation_AnimateBetween__SWIG_0(swigCPtr, Property.getCPtr(target), KeyFrames.getCPtr(keyFrames));
706     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
707   }
708
709   public void AnimateBetween(Property target, KeyFrames keyFrames, Animation.Interpolation interpolation) {
710     NDalicPINVOKE.Animation_AnimateBetween__SWIG_1(swigCPtr, Property.getCPtr(target), KeyFrames.getCPtr(keyFrames), (int)interpolation);
711     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
712   }
713
714   public void AnimateBetween(Property target, KeyFrames keyFrames, AlphaFunction alpha) {
715     NDalicPINVOKE.Animation_AnimateBetween__SWIG_2(swigCPtr, Property.getCPtr(target), KeyFrames.getCPtr(keyFrames), AlphaFunction.getCPtr(alpha));
716     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
717   }
718
719   public void AnimateBetween(Property target, KeyFrames keyFrames, AlphaFunction alpha, Animation.Interpolation interpolation) {
720     NDalicPINVOKE.Animation_AnimateBetween__SWIG_3(swigCPtr, Property.getCPtr(target), KeyFrames.getCPtr(keyFrames), AlphaFunction.getCPtr(alpha), (int)interpolation);
721     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
722   }
723
724   public void AnimateBetween(Property target, KeyFrames keyFrames, TimePeriod period) {
725     NDalicPINVOKE.Animation_AnimateBetween__SWIG_4(swigCPtr, Property.getCPtr(target), KeyFrames.getCPtr(keyFrames), TimePeriod.getCPtr(period));
726     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
727   }
728
729   public void AnimateBetween(Property target, KeyFrames keyFrames, TimePeriod period, Animation.Interpolation interpolation) {
730     NDalicPINVOKE.Animation_AnimateBetween__SWIG_5(swigCPtr, Property.getCPtr(target), KeyFrames.getCPtr(keyFrames), TimePeriod.getCPtr(period), (int)interpolation);
731     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
732   }
733
734   public void AnimateBetween(Property target, KeyFrames keyFrames, AlphaFunction alpha, TimePeriod period) {
735     NDalicPINVOKE.Animation_AnimateBetween__SWIG_6(swigCPtr, Property.getCPtr(target), KeyFrames.getCPtr(keyFrames), AlphaFunction.getCPtr(alpha), TimePeriod.getCPtr(period));
736     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
737   }
738
739   public void AnimateBetween(Property target, KeyFrames keyFrames, AlphaFunction alpha, TimePeriod period, Animation.Interpolation interpolation) {
740     NDalicPINVOKE.Animation_AnimateBetween__SWIG_7(swigCPtr, Property.getCPtr(target), KeyFrames.getCPtr(keyFrames), AlphaFunction.getCPtr(alpha), TimePeriod.getCPtr(period), (int)interpolation);
741     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
742   }
743
744   public void Animate(Actor actor, Path path, Vector3 forward) {
745     NDalicPINVOKE.Animation_Animate__SWIG_0(swigCPtr, Actor.getCPtr(actor), Path.getCPtr(path), Vector3.getCPtr(forward));
746     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
747   }
748
749   public void Animate(Actor actor, Path path, Vector3 forward, AlphaFunction alpha) {
750     NDalicPINVOKE.Animation_Animate__SWIG_1(swigCPtr, Actor.getCPtr(actor), Path.getCPtr(path), Vector3.getCPtr(forward), AlphaFunction.getCPtr(alpha));
751     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
752   }
753
754   public void Animate(Actor actor, Path path, Vector3 forward, TimePeriod period) {
755     NDalicPINVOKE.Animation_Animate__SWIG_2(swigCPtr, Actor.getCPtr(actor), Path.getCPtr(path), Vector3.getCPtr(forward), TimePeriod.getCPtr(period));
756     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
757   }
758
759   public void Animate(Actor actor, Path path, Vector3 forward, AlphaFunction alpha, TimePeriod period) {
760     NDalicPINVOKE.Animation_Animate__SWIG_3(swigCPtr, Actor.getCPtr(actor), Path.getCPtr(path), Vector3.getCPtr(forward), AlphaFunction.getCPtr(alpha), TimePeriod.getCPtr(period));
761     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
762   }
763
764   public void Show(Actor actor, float delaySeconds) {
765     NDalicPINVOKE.Animation_Show(swigCPtr, Actor.getCPtr(actor), delaySeconds);
766     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
767   }
768
769   public void Hide(Actor actor, float delaySeconds) {
770     NDalicPINVOKE.Animation_Hide(swigCPtr, Actor.getCPtr(actor), delaySeconds);
771     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
772   }
773
774   public enum EndActions {
775     Cancel,
776     Discard,
777     StopFinal
778   }
779
780   public enum Interpolation {
781     Linear,
782     Cubic
783   }
784
785   public enum State {
786     Stopped,
787     Playing,
788     Paused
789   }
790
791 }
792
793 }