From 0ade2b53a4a317d52911c1c198170fe40cda74d0 Mon Sep 17 00:00:00 2001 From: "xb.teng" Date: Tue, 8 Aug 2017 05:01:25 +0800 Subject: [PATCH] Add PlayAfter api for Animation Change-Id: I8f1b1421c0a42211ad131e4097b4007e26aa288b --- src/Tizen.NUI/src/internal/NDalicPINVOKE.cs | 4 ++++ src/Tizen.NUI/src/public/Animation.cs | 12 ++++++++++++ 2 files changed, 16 insertions(+) diff --git a/src/Tizen.NUI/src/internal/NDalicPINVOKE.cs b/src/Tizen.NUI/src/internal/NDalicPINVOKE.cs index e02e7f2..6e3640e 100755 --- a/src/Tizen.NUI/src/internal/NDalicPINVOKE.cs +++ b/src/Tizen.NUI/src/internal/NDalicPINVOKE.cs @@ -4493,6 +4493,7 @@ class NDalicPINVOKE { [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_TimePeriod_durationSeconds_get")] public static extern float TimePeriod_durationSeconds_get(global::System.Runtime.InteropServices.HandleRef jarg1); + //Animation Pinvoke [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_new_Animation__SWIG_0")] public static extern global::System.IntPtr new_Animation__SWIG_0(); @@ -4598,6 +4599,9 @@ class NDalicPINVOKE { [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_Animation_ProgressReachedSignal")] public static extern global::System.IntPtr Animation_ProgressReachedSignal(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_Animation_PlayAfter")] + public static extern void Animation_PlayAfter(global::System.Runtime.InteropServices.HandleRef jarg1, float jarg2); + [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_Animation_AnimateBy__SWIG_0")] public static extern void Animation_AnimateBy__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); diff --git a/src/Tizen.NUI/src/public/Animation.cs b/src/Tizen.NUI/src/public/Animation.cs index 208ba3b..ba4e606 100755 --- a/src/Tizen.NUI/src/public/Animation.cs +++ b/src/Tizen.NUI/src/public/Animation.cs @@ -927,6 +927,18 @@ namespace Tizen.NUI } /// + /// Play the animation after a given delay time.
+ /// The delay time is not included in the looping time.
+ /// When the delay time is negative value, it would treat as play immediately.
+ ///
+ /// The delay time + public void PlayAfter(int delayMilliseconds) + { + NDalicPINVOKE.Animation_PlayAfter(swigCPtr, MilliSecondsToSeconds(delayMilliseconds)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + /// /// Pauses the animation. /// public void Pause() -- 2.7.4