[NUI] CanvasView: Change nameDrawableGroup::Clear() to RemoveAllDrawables()
authorJunsuChoi <jsuya.choi@samsung.com>
Mon, 2 Aug 2021 04:42:42 +0000 (13:42 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 3 Aug 2021 01:50:50 +0000 (10:50 +0900)
Since the method name of the same concept in CanvasView is used as
'RemoveAllDrawables', change it to maintain the concept.

src/Tizen.NUI/src/internal/Interop/Interop.DrawableGroup.cs
src/Tizen.NUI/src/public/BaseComponents/VectorGraphics/DrawableGroup.cs

index e70a6384059bb572fa163ca547beafaf467a5827..ae68e4025633db038a355e79188b0a872993afed 100755 (executable)
@@ -28,9 +28,9 @@ namespace Tizen.NUI
             [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)]
             public static extern bool AddDrawable(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
 
-            [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_DrawableGroup_Clear")]
+            [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_DrawableGroup_RemoveAllDrawables")]
             [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)]
-            public static extern bool Clear(global::System.Runtime.InteropServices.HandleRef jarg1);
+            public static extern bool RemoveAllDrawables(global::System.Runtime.InteropServices.HandleRef jarg1);
         }
     }
 }
index 5159d29d9366ad11f111af0712f5450e2f0ecbbd..3bffc92904b7aceee56935a6d096362f674f240c 100755 (executable)
@@ -69,9 +69,9 @@ namespace Tizen.NUI.BaseComponents.VectorGraphics
         /// </summary>
         /// <returns>True when it's successful. False otherwise.</returns>
         [EditorBrowsable(EditorBrowsableState.Never)]
-        public bool Clear()
+        public bool RemoveAllDrawables()
         {
-            bool ret = Interop.DrawableGroup.Clear(BaseHandle.getCPtr(this));
+            bool ret = Interop.DrawableGroup.RemoveAllDrawables(BaseHandle.getCPtr(this));
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
             if (ret)
             {