[NUI] VectorGraphics: Change api name Reset to ResetPath
authorJunsuChoi <jsuya.choi@samsung.com>
Wed, 14 Apr 2021 05:49:01 +0000 (14:49 +0900)
committerhuiyueun <35286162+huiyueun@users.noreply.github.com>
Tue, 20 Apr 2021 06:13:00 +0000 (15:13 +0900)
src/Tizen.NUI/src/internal/Interop/Interop.Shape.cs
src/Tizen.NUI/src/public/BaseComponents/VectorGraphcis/Shape.cs
test/Tizen.NUI.Samples/Tizen.NUI.Samples/Samples/CanvasViewSamsple.cs

index 71e89c5..1569227 100755 (executable)
@@ -45,8 +45,8 @@ namespace Tizen.NUI
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Shape_Close")]
             public static extern bool Close(global::System.Runtime.InteropServices.HandleRef jarg1);
 
-            [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Shape_Reset")]
-            public static extern bool Reset(global::System.Runtime.InteropServices.HandleRef jarg1);
+            [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Shape_ResetPath")]
+            public static extern bool ResetPath(global::System.Runtime.InteropServices.HandleRef jarg1);
 
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Shape_SetFillColor")]
             public static extern void SetFillColor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
index 4c7dd4a..e4a1474 100755 (executable)
@@ -369,9 +369,9 @@ namespace Tizen.NUI.BaseComponents.VectorGraphics
         /// </summary>
         /// <returns>True when it's successful. False otherwise.</returns>
         [EditorBrowsable(EditorBrowsableState.Never)]
-        public bool Reset()
+        public bool ResetPath()
         {
-            bool ret = Interop.Shape.Reset(BaseHandle.getCPtr(this));
+            bool ret = Interop.Shape.ResetPath(BaseHandle.getCPtr(this));
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
             return ret;
         }
index 8c5baaa..b107ae0 100644 (file)
@@ -184,13 +184,13 @@ namespace Tizen.NUI.Samples
 
         private bool onTick(object o, Timer.TickEventArgs e)
         {
-            roundedRectShape.Reset();
+            roundedRectShape.ResetPath();
             roundedRectShape.AddRect(-50.0f, -50.0f, 100.0f, 100.0f, (float)((count / 3.0f) % 30.0f), (float)((count / 3.0f) % 30.0f));
 
-            circleShape.Reset();
+            circleShape.ResetPath();
             circleShape.AddCircle(0.0f, 0.0f, (float)(count % 100.0f) + 20.0f, (float)(count % 100.0f) + 40.0f);
 
-            arcShape.Reset();
+            arcShape.ResetPath();
             arcShape.AddArc(0.0f, 0.0f, 80.0f, 0.0f, (float)(count % 180.0f), true);
             arcShape.AddArc(0.0f, 0.0f, 80.0f, (float)(count % 180.0f), (float)(count % 180.0f) / 2.0f, true);