[NUI] RiveAnimationView: refines the function and parameters name
authorTaehyub Kim <taehyub.kim@samsung.com>
Tue, 3 Aug 2021 09:40:54 +0000 (18:40 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Fri, 6 Aug 2021 04:49:25 +0000 (13:49 +0900)
src/Tizen.NUI/src/internal/Interop/Interop.RiveAnimationView.cs
src/Tizen.NUI/src/public/BaseComponents/RiveAnimationView.cs
test/Tizen.NUI.Samples/Tizen.NUI.Samples/Samples/RiveAnimationTest.cs

index 6729f3b..218697a 100755 (executable)
@@ -22,37 +22,37 @@ namespace Tizen.NUI
         internal static partial class RiveAnimationView
         {
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_RiveAnimationView_New__SWIG_0")]
-            public static extern global::System.IntPtr New(string jarg1);
+            public static extern global::System.IntPtr New(string url);
 
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_RiveAnimationView_EnableAnimation")]
-            public static extern void EnableAnimation(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, bool jarg3);
+            public static extern void EnableAnimation(global::System.Runtime.InteropServices.HandleRef handle, string animationName, bool on);
             
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_RiveAnimationView_SetShapeFillColor")]
-            public static extern void SetShapeFillColor(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, global::System.Runtime.InteropServices.HandleRef jarg3);
+            public static extern void SetShapeFillColor(global::System.Runtime.InteropServices.HandleRef handle, string shapeFillName, global::System.Runtime.InteropServices.HandleRef color);
 
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_RiveAnimationView_SetShapeStrokeColor")]
-            public static extern void SetShapeStrokeColor(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, global::System.Runtime.InteropServices.HandleRef jarg3);
+            public static extern void SetShapeStrokeColor(global::System.Runtime.InteropServices.HandleRef handle, string shapeStrokeName, global::System.Runtime.InteropServices.HandleRef color);
 
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_RiveAnimationView_SetNodeOpacity")]
-            public static extern void SetNodeOpacity(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, float jarg3);
+            public static extern void SetNodeOpacity(global::System.Runtime.InteropServices.HandleRef handle, string nodeOpacity, float opacity);
 
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_RiveAnimationView_SetNodeScale")]
-            public static extern void SetNodeScale(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, global::System.Runtime.InteropServices.HandleRef jarg3);
+            public static extern void SetNodeScale(global::System.Runtime.InteropServices.HandleRef handle, string nodeScale, global::System.Runtime.InteropServices.HandleRef scale);
 
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_RiveAnimationView_SetNodeRotation")]
-            public static extern void SetNodeRotation(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, global::System.Runtime.InteropServices.HandleRef jarg3);
+            public static extern void SetNodeRotation(global::System.Runtime.InteropServices.HandleRef handle, string nodeRotation, global::System.Runtime.InteropServices.HandleRef degree);
             
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_RiveAnimationView_SetNodePosition")]
-            public static extern void SetNodePosition(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, global::System.Runtime.InteropServices.HandleRef jarg3);
+            public static extern void SetNodePosition(global::System.Runtime.InteropServices.HandleRef handle, string nodeName, global::System.Runtime.InteropServices.HandleRef position);
 
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_RiveAnimationView_PlayAnimation")]
-            public static extern void PlayAnimation(global::System.Runtime.InteropServices.HandleRef jarg1);
+            public static extern void Play(global::System.Runtime.InteropServices.HandleRef handle);
             
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_RiveAnimationView_PauseAnimation")]
-            public static extern void PauseAnimation(global::System.Runtime.InteropServices.HandleRef jarg1);
+            public static extern void Pause(global::System.Runtime.InteropServices.HandleRef handle);
             
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_RiveAnimationView_StopAnimation")]
-            public static extern void StopAnimation(global::System.Runtime.InteropServices.HandleRef jarg1);
+            public static extern void Stop(global::System.Runtime.InteropServices.HandleRef handle);
         }
     }
 }
index 7afc4a3..4c22f51 100755 (executable)
@@ -62,27 +62,27 @@ namespace Tizen.NUI.BaseComponents
         /// Play animation.
         /// </summary>
         [EditorBrowsable(EditorBrowsableState.Never)]
-        public void PlayAnimation()
+        public void Play()
         {
-            Interop.RiveAnimationView.PlayAnimation(SwigCPtr);
+            Interop.RiveAnimationView.Play(SwigCPtr);
         }
 
         /// <summary>
         /// Pause animation.
         /// </summary>
         [EditorBrowsable(EditorBrowsableState.Never)]
-        public void PauseAnimation()
+        public void Pause()
         {
-            Interop.RiveAnimationView.PauseAnimation(SwigCPtr);
+            Interop.RiveAnimationView.Pause(SwigCPtr);
         }
 
         /// <summary>
         /// Stop animation.
         /// </summary>
         [EditorBrowsable(EditorBrowsableState.Never)]
-        public void StopAnimation()
+        public void Stop()
         {
-            Interop.RiveAnimationView.StopAnimation(SwigCPtr);
+            Interop.RiveAnimationView.Stop(SwigCPtr);
         }
 
         /// <summary>
index b141b39..dcf4711 100755 (executable)
@@ -36,7 +36,7 @@ namespace Tizen.NUI.Samples
             };
             playButton.Clicked += (object source, ClickedEventArgs args) =>
             {
-                rav.PlayAnimation();
+                rav.Play();
             };
 
             stopButton = new Button()
@@ -47,7 +47,7 @@ namespace Tizen.NUI.Samples
             };
             stopButton.Clicked += (object source, ClickedEventArgs args) =>
             {
-                rav.StopAnimation();
+                rav.Stop();
             };
 
             bounceButton = new Button()