[NUI] change SetPosition(...) as a hidden API for internal use only
authordongsug.song <dongsug.song@samsung.com>
Thu, 7 Apr 2022 02:33:13 +0000 (11:33 +0900)
committerJaehyun Cho <jaehyun0cho@gmail.com>
Wed, 20 Apr 2022 08:38:08 +0000 (17:38 +0900)
src/Tizen.NUI/src/public/BaseComponents/ViewInternal.cs
src/Tizen.NUI/src/public/BaseComponents/ViewPublicMethods.cs

index c05e499..adfc4cc 100755 (executable)
@@ -614,27 +614,6 @@ namespace Tizen.NUI.BaseComponents
             return ret;
         }
 
-        internal void SetPosition(float x, float y)
-        {
-            Interop.ActorInternal.SetPosition(SwigCPtr, x, y);
-            if (NDalicPINVOKE.SWIGPendingException.Pending)
-                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-        }
-
-        internal void SetPosition(float x, float y, float z)
-        {
-            Interop.ActorInternal.SetPosition(SwigCPtr, x, y, z);
-            if (NDalicPINVOKE.SWIGPendingException.Pending)
-                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-        }
-
-        internal void SetPosition(Vector3 position)
-        {
-            Interop.ActorInternal.SetPosition(SwigCPtr, Vector3.getCPtr(position));
-            if (NDalicPINVOKE.SWIGPendingException.Pending)
-                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-        }
-
         internal void SetX(float x)
         {
             Interop.ActorInternal.SetX(SwigCPtr, x);
index f78edcb..801ed1c 100755 (executable)
@@ -826,5 +826,57 @@ namespace Tizen.NUI.BaseComponents
 
         }
 
+        /// <summary>
+        /// Sets the position of the View.
+        /// The coordinates are relative to the View's parent.
+        /// The View's z position will be set to 0.0f.
+        /// </summary>
+        /// <param name="x">The new x position</param>
+        /// <param name="y">The new y position</param>
+        /// <remarks>
+        /// This is a hidden API(inhouse API) only for internal purpose.
+        /// </remarks>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public void SetPosition(float x, float y)
+        {
+            Interop.ActorInternal.SetPosition(SwigCPtr, x, y);
+            if (NDalicPINVOKE.SWIGPendingException.Pending)
+                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+        }
+
+        /// <summary>
+        /// Sets the position of the View.
+        /// The coordinates are relative to the View's parent.
+        /// </summary>
+        /// <param name="x">The new x position</param>
+        /// <param name="y">The new y position</param>
+        /// <param name="z">The new z position</param>
+        /// <remarks>
+        /// This is a hidden API(inhouse API) only for internal purpose.
+        /// </remarks>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public void SetPosition(float x, float y, float z)
+        {
+            Interop.ActorInternal.SetPosition(SwigCPtr, x, y, z);
+            if (NDalicPINVOKE.SWIGPendingException.Pending)
+                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+        }
+
+        /// <summary>
+        /// Sets the position of the View.
+        /// The coordinates are relative to the View's parent.
+        /// </summary>
+        /// <param name="position">The new position</param>
+        /// <remarks>
+        /// This is a hidden API(inhouse API) only for internal purpose.
+        /// </remarks>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public void SetPosition(Vector3 position)
+        {
+            Interop.ActorInternal.SetPosition(SwigCPtr, Vector3.getCPtr(position));
+            if (NDalicPINVOKE.SWIGPendingException.Pending)
+                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+        }
+
     }
 }