[NUI] Remove build warnings
authorEunki Hong <eunkiki.hong@samsung.com>
Mon, 31 Mar 2025 14:23:31 +0000 (23:23 +0900)
committerJaehyun Cho <jaehyun0cho@gmail.com>
Tue, 1 Apr 2025 11:52:37 +0000 (20:52 +0900)
- Fix comments error at UIVector3
- Make Alignment's Padding getter and setter name as `GetAlignmentPaddng()` / `SetAlignmentPadding()`. (It was same name with `UIExtents GetPadding()`

Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
src/Tizen.NUI/src/devel/Lite/UIVector3.cs
src/Tizen.NUI/src/internal/Common/Alignment.cs
test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/internal/Common/TSAlignment.cs

index 9d1324c232f8b59e71433a96cbe7322dcf3a796b..04dfee18124c92bd4911d5ded231746620c2ae72 100644 (file)
@@ -105,7 +105,7 @@ namespace Tizen.NUI
         /// <summary>
         /// Converts the UIVector3 to Vector3 class implicitly.
         /// </summary>
-        /// <param name="uiVector2">A UIVector3 to be converted to Vector3</param>
+        /// <param name="uiVector3">A UIVector3 to be converted to Vector3</param>
         public static implicit operator Vector3(UIVector3 uiVector3)
         {
             return new Vector3(uiVector3.X, uiVector3.Y, uiVector3.Z);
index 972def5bfe353c3b34164426e61ebe035e11c402..b4233f1614519ad28ad58fe1f7b79dcdc59fcb50 100755 (executable)
@@ -166,13 +166,13 @@ namespace Tizen.NUI
             return ret;
         }
 
-        public void SetPadding(Alignment.Padding padding)
+        public void SetAlignmentPadding(Alignment.Padding padding)
         {
             Interop.Alignment.SetPadding(SwigCPtr, Alignment.Padding.getCPtr(padding));
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
         }
 
-        public Alignment.Padding GetPadding()
+        public Alignment.Padding GetAlignmentPadding()
         {
             Alignment.Padding ret = new Alignment.Padding(Interop.Alignment.GetPadding(SwigCPtr), false);
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
index 91ab79e7f59c9e4fd152acc014bc2f498559be4c..66d2e33c92dba7cc828b1fe657105a69b11eb1d3 100755 (executable)
@@ -194,29 +194,29 @@ namespace Tizen.NUI.Devel.Tests
 
         [Test]
         [Category("P1")]
-        [Description("Alignment SetPadding.")]
-        [Property("SPEC", "Tizen.NUI.Alignment.SetPadding M")]
+        [Description("Alignment SetAlignmentPadding.")]
+        [Property("SPEC", "Tizen.NUI.Alignment.SetAlignmentPadding M")]
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "MR")]
         [Property("AUTHOR", "guowei.wang@samsung.com")]
-        public void AlignmentSetPadding()
+        public void AlignmentSetAlignmentPadding()
         {
-            tlog.Debug(tag, $"AlignmentSetPadding START");
+            tlog.Debug(tag, $"AlignmentSetAlignmentPadding START");
 
             var testingTarget = new Alignment(Alignment.Type.HorizontalCenter);
             Assert.IsNotNull(testingTarget, "Can't create success object Alignment");
             Assert.IsInstanceOf<Alignment>(testingTarget, "Should be an instance of Alignment type.");
 
-            tlog.Debug(tag, "Alignment.Padding : " + testingTarget.GetPadding());
+            tlog.Debug(tag, "Alignment.Padding : " + testingTarget.GetAlignmentPadding());
 
             using (Alignment.Padding padding = new Alignment.Padding(1.0f, 2.0f, 3.0f, 4.0f))
             {
-                testingTarget.SetPadding(padding);
-                tlog.Debug(tag, "Alignment.Padding : " + testingTarget.GetPadding());
+                testingTarget.SetAlignmentPadding(padding);
+                tlog.Debug(tag, "Alignment.Padding : " + testingTarget.GetAlignmentPadding());
             }
 
             testingTarget.Dispose();
-            tlog.Debug(tag, $"AlignmentSetPadding END (OK)");
+            tlog.Debug(tag, $"AlignmentSetAlignmentPadding END (OK)");
         }
 
         [Test]