Add tag and document to Tizen.NUI.
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / Position.cs
index 112bbd3..dccf09e 100755 (executable)
  *
  */
 
+using System;
+
 namespace Tizen.NUI
 {
 
     /// <summary>
-    /// Position is a three dimensional vector.
+    /// Position is a three-dimensional vector.
     /// </summary>
     public class Position : global::System.IDisposable
     {
@@ -37,106 +39,148 @@ namespace Tizen.NUI
             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
         }
 
+        //A Flag to check who called Dispose(). (By User or DisposeQueue)
+        private bool isDisposeQueued = false;
+        //A Flat to check if it is already disposed.
+        protected bool disposed = false;
+
         ~Position()
         {
-            DisposeQueue.Instance.Add(this);
+            if(!isDisposeQueued)
+            {
+                isDisposeQueued = true;
+                DisposeQueue.Instance.Add(this);
+            }
         }
 
-        public virtual void Dispose()
+        public void Dispose()
         {
-            if (!Stage.IsInstalled())
+            //Throw excpetion if Dispose() is called in separate thread.
+            if (!Window.IsInstalled())
+            {
+                throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
+            }
+
+            if (isDisposeQueued)
+            {
+                Dispose(DisposeTypes.Implicit);
+            }
+            else
+            {
+                Dispose(DisposeTypes.Explicit);
+                System.GC.SuppressFinalize(this);
+            }
+        }
+
+        protected virtual void Dispose(DisposeTypes type)
+        {
+            if (disposed)
             {
-                DisposeQueue.Instance.Add(this);
                 return;
             }
 
-            lock (this)
+            if(type == DisposeTypes.Explicit)
             {
-                if (swigCPtr.Handle != global::System.IntPtr.Zero)
+                //Called by User
+                //Release your own managed resources here.
+                //You should release all of your own disposable objects here.
+            }
+
+            //Release your own unmanaged resources here.
+            //You should not access any managed member here except static instance.
+            //because the execution order of Finalizes is non-deterministic.
+
+            if (swigCPtr.Handle != global::System.IntPtr.Zero)
+            {
+                if (swigCMemOwn)
                 {
-                    if (swigCMemOwn)
-                    {
-                        swigCMemOwn = false;
-                        NDalicPINVOKE.delete_Vector3(swigCPtr);
-                    }
-                    swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+                    swigCMemOwn = false;
+                    NDalicPINVOKE.delete_Vector3(swigCPtr);
                 }
-                global::System.GC.SuppressFinalize(this);
+                swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
             }
+            disposed = true;
         }
 
 
         /// <summary>
-        /// Addition operator.
+        /// An addition operator.
         /// </summary>
-        /// <param name="arg1">Vector to add</param>
-        /// <param name="arg2">Vector to add</param>
-        /// <returns>A vector containing the result of the addition</returns>
+        /// <param name="arg1">The vector to add.</param>
+        /// <param name="arg2">The vector to add.</param>
+        /// <returns>The vector containing the result of the addition.</returns>
+        /// <since_tizen> 3 </since_tizen>
         public static Position operator +(Position arg1, Position arg2)
         {
             return arg1.Add(arg2);
         }
 
         /// <summary>
-        /// Subtraction operator.
+        /// The subtraction operator.
         /// </summary>
-        /// <param name="arg1">Vector to subtract</param>
-        /// <param name="arg2">Vector to subtract</param>
-        /// <returns>A vector containing the result of the subtraction</returns>
+        /// <param name="arg1">The vector to subtract.</param>
+        /// <param name="arg2">The vector to subtract.</param>
+        /// <returns>The vector containing the result of the subtraction.</returns>
+        /// <since_tizen> 3 </since_tizen>
         public static Position operator -(Position arg1, Position arg2)
         {
             return arg1.Subtract(arg2);
         }
 
         /// <summary>
-        /// Unary negation operator.
+        /// The unary negation operator.
         /// </summary>
-        /// <param name="arg1">Vector to netate</param>
-        /// <returns>A vector containg the negation</returns>
+        /// <param name="arg1">The vector to negate.</param>
+        /// <returns>The vector containg the negation.</returns>
+        /// <since_tizen> 3 </since_tizen>
         public static Position operator -(Position arg1)
         {
             return arg1.Subtract();
         }
 
         /// <summary>
-        /// Multiplication operator.
+        /// The multiplication operator.
         /// </summary>
-        /// <param name="arg1">The vector to multiply</param>
-        /// <param name="arg2">The vector to multiply</param>
-        /// <returns>A vector containing the result of the multiplication</returns>
+        /// <param name="arg1">The vector to multiply.</param>
+        /// <param name="arg2">The vector to multiply.</param>
+        /// <returns>The vector containing the result of the multiplication.</returns>
+        /// <since_tizen> 3 </since_tizen>
         public static Position operator *(Position arg1, Position arg2)
         {
             return arg1.Multiply(arg2);
         }
 
         /// <summary>
-        /// Multiplication operator.
+        /// The multiplication operator.
         /// </summary>
         /// <param name="arg1">The vector to multiply</param>
-        /// <param name="arg2">The float value to scale the vector</param>
-        /// <returns>A vector containing the result of the scaling</returns>
+        /// <param name="arg2">The float value to scale the vector.</param>
+        /// <returns>The vector containing the result of scaling.</returns>
+        /// <since_tizen> 3 </since_tizen>
         public static Position operator *(Position arg1, float arg2)
         {
             return arg1.Multiply(arg2);
         }
 
         /// <summary>
-        /// Division operator.
+        /// The division operator.
         /// </summary>
-        /// <param name="arg1">The vector to divide</param>
-        /// <param name="arg2">The vector to divide</param>
-        /// <returns>A vector containing the result of the division</returns>
+        /// <param name="arg1">The vector to divide.</param>
+        /// <param name="arg2">The vector to divide.</param>
+        /// <returns>The vector containing the result of the division.</returns>
+        /// <since_tizen> 3 </since_tizen>
         public static Position operator /(Position arg1, Position arg2)
         {
             return arg1.Divide(arg2);
         }
 
         /// <summary>
-        /// Division operator.
+        /// The division operator.
         /// </summary>
-        /// <param name="arg1">The vector to divide</param>
-        /// <param name="arg2">The float value to scale the vector by</param>
-        /// <returns>A vector containing the result of the scaling</returns>
+        /// <param name="arg1">The vector to divide.</param>
+        /// <param name="arg2">The float value to scale the vector by.</param>
+        /// <returns>The vector containing the result of scaling.</returns>
+        /// <since_tizen> 3 </since_tizen>
         public static Position operator /(Position arg1, float arg2)
         {
             return arg1.Divide(arg2);
@@ -144,10 +188,11 @@ namespace Tizen.NUI
 
 
         /// <summary>
-        /// Const array subscript operator overload. Should be 0, 1 or 2.
+        /// The const array subscript operator overload. Should be 0, 1, or 2.
         /// </summary>
-        /// <param name="index">Subscript index</param>
-        /// <returns>The float at the given index</returns>
+        /// <param name="index">The subscript index.</param>
+        /// <returns>The float at the given index.</returns>
+        /// <since_tizen> 3 </since_tizen>
         public float this[uint index]
         {
             get
@@ -156,8 +201,6 @@ namespace Tizen.NUI
             }
         }
 
-        /// <summary>
-        /// </summary>
         internal static Position GetPositionFromPtr(global::System.IntPtr cPtr)
         {
             Position ret = new Position(cPtr, false);
@@ -167,28 +210,31 @@ namespace Tizen.NUI
 
 
         /// <summary>
-        /// Constructor
+        /// The constructor.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public Position() : this(NDalicPINVOKE.new_Vector3__SWIG_0(), true)
         {
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
         }
 
         /// <summary>
-        /// Constructor
+        /// The constructor.
         /// </summary>
-        /// <param name="x">x component</param>
-        /// <param name="y">y component</param>
-        /// <param name="z">z component</param>
+        /// <param name="x">The x component.</param>
+        /// <param name="y">The y component.</param>
+        /// <param name="z">The z component.</param>
+        /// <since_tizen> 3 </since_tizen>
         public Position(float x, float y, float z) : this(NDalicPINVOKE.new_Vector3__SWIG_1(x, y, z), true)
         {
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
         }
 
         /// <summary>
-        /// Constructor
+        /// The constructor.
         /// </summary>
-        /// <param name="position2d">Position2D to create this vector from</param>
+        /// <param name="position2d">Position2D to create this vector from.</param>
+        /// <since_tizen> 3 </since_tizen>
         public Position(Position2D position2d) : this(NDalicPINVOKE.new_Vector3__SWIG_3(Position2D.getCPtr(position2d)), true)
         {
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
@@ -253,10 +299,11 @@ namespace Tizen.NUI
         }
 
         /// <summary>
-        /// Compare if rhs is equal to
+        /// Compares if rhs is equal to.
         /// </summary>
-        /// <param name="rhs">The vector to compare</param>
-        /// <returns>Returns true if the two vectors are equal, otherwise false</returns>
+        /// <param name="rhs">The vector to compare.</param>
+        /// <returns>Returns true if the two vectors are equal, otherwise false.</returns>
+        /// <since_tizen> 3 </since_tizen>
         public bool EqualTo(Position rhs)
         {
             bool ret = NDalicPINVOKE.Vector3_EqualTo(swigCPtr, Position.getCPtr(rhs));
@@ -265,10 +312,11 @@ namespace Tizen.NUI
         }
 
         /// <summary>
-        /// Compare if rhs is not equal to
+        /// Compares if rhs is not equal to.
         /// </summary>
-        /// <param name="rhs">The vector to compare</param>
-        /// <returns>Returns true if the two vectors are not equal, otherwise false</returns>
+        /// <param name="rhs">The vector to compare.</param>
+        /// <returns>Returns true if the two vectors are not equal, otherwise false.</returns>
+        /// <since_tizen> 3 </since_tizen>
         public bool NotEqualTo(Position rhs)
         {
             bool ret = NDalicPINVOKE.Vector3_NotEqualTo(swigCPtr, Position.getCPtr(rhs));
@@ -278,8 +326,9 @@ namespace Tizen.NUI
 
 
         /// <summary>
-        /// x component
+        /// The x component.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public float X
         {
             set
@@ -296,8 +345,9 @@ namespace Tizen.NUI
         }
 
         /// <summary>
-        /// y component
+        /// The y component.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public float Y
         {
             set
@@ -314,8 +364,9 @@ namespace Tizen.NUI
         }
 
         /// <summary>
-        /// z component
+        /// The z component.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public float Z
         {
             set
@@ -334,6 +385,7 @@ namespace Tizen.NUI
         /// <summary>
         /// ParentOrigin constants. It's 0.0.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public static float ParentOriginTop
         {
             get
@@ -347,6 +399,7 @@ namespace Tizen.NUI
         /// <summary>
         /// ParentOrigin constants. It's 1.0.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public static float ParentOriginBottom
         {
             get
@@ -360,6 +413,7 @@ namespace Tizen.NUI
         /// <summary>
         /// ParentOrigin constants. It's 0.0.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public static float ParentOriginLeft
         {
             get
@@ -373,6 +427,7 @@ namespace Tizen.NUI
         /// <summary>
         /// ParentOrigin constants. It's 1.0.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public static float ParentOriginRight
         {
             get
@@ -386,6 +441,7 @@ namespace Tizen.NUI
         /// <summary>
         /// ParentOrigin constants. It's 0.5.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public static float ParentOriginMiddle
         {
             get
@@ -397,8 +453,9 @@ namespace Tizen.NUI
         }
 
         /// <summary>
-        /// ParentOrigin constants: 0.0, 0.0, 0.5
+        /// ParentOrigin constants: 0.0, 0.0, 0.5.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public static Position ParentOriginTopLeft
         {
             get
@@ -411,8 +468,9 @@ namespace Tizen.NUI
         }
 
         /// <summary>
-        /// ParentOrigin constants: 0.5, 0.0, 0.5
+        /// ParentOrigin constants: 0.5, 0.0, 0.5.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public static Position ParentOriginTopCenter
         {
             get
@@ -425,8 +483,9 @@ namespace Tizen.NUI
         }
 
         /// <summary>
-        /// ParentOrigin constants: 1.0, 0.0, 0.5
+        /// ParentOrigin constants: 1.0, 0.0, 0.5.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public static Position ParentOriginTopRight
         {
             get
@@ -439,8 +498,9 @@ namespace Tizen.NUI
         }
 
         /// <summary>
-        /// ParentOrigin constants: 0.0, 0.5, 0.5
+        /// ParentOrigin constants: 0.0, 0.5, 0.5.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public static Position ParentOriginCenterLeft
         {
             get
@@ -455,6 +515,7 @@ namespace Tizen.NUI
         /// <summary>
         /// ParentOrigin constants: 0.0, 0.5, 0.5
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public static Position ParentOriginCenter
         {
             get
@@ -467,8 +528,9 @@ namespace Tizen.NUI
         }
 
         /// <summary>
-        /// ParentOrigin constants: 1.0, 0.5, 0.5
+        /// ParentOrigin constants: 1.0, 0.5, 0.5.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public static Position ParentOriginCenterRight
         {
             get
@@ -481,8 +543,9 @@ namespace Tizen.NUI
         }
 
         /// <summary>
-        /// ParentOrigin constants: 0.0f, 1.0f, 0.5f
+        /// ParentOrigin constants: 0.0f, 1.0f, 0.5f.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public static Position ParentOriginBottomLeft
         {
             get
@@ -495,8 +558,9 @@ namespace Tizen.NUI
         }
 
         /// <summary>
-        /// ParentOrigin constants: 0.5, 1.0, 0.5
+        /// ParentOrigin constants: 0.5, 1.0, 0.5.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public static Position ParentOriginBottomCenter
         {
             get
@@ -509,8 +573,9 @@ namespace Tizen.NUI
         }
 
         /// <summary>
-        /// ParentOrigin constants: 1.0, 1.0, 0.5
+        /// ParentOrigin constants: 1.0, 1.0, 0.5.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public static Position ParentOriginBottomRight
         {
             get
@@ -523,9 +588,10 @@ namespace Tizen.NUI
         }
 
         /// <summary>
-        /// AnchorPoint constants: 0.0
+        /// PivotPoint constants: 0.0.
         /// </summary>
-        public static float AnchorPointTop
+        /// <since_tizen> 4 </since_tizen>
+        public static float PivotPointTop
         {
             get
             {
@@ -536,9 +602,10 @@ namespace Tizen.NUI
         }
 
         /// <summary>
-        /// AnchorPoint constants: 1.0
+        /// PivotPoint constants: 1.0.
         /// </summary>
-        public static float AnchorPointBottom
+        /// <since_tizen> 4 </since_tizen>
+        public static float PivotPointBottom
         {
             get
             {
@@ -549,9 +616,10 @@ namespace Tizen.NUI
         }
 
         /// <summary>
-        /// AnchorPoint constants: 0.0
+        /// PivotPoint constants: 0.0.
         /// </summary>
-        public static float AnchorPointLeft
+        /// <since_tizen> 4 </since_tizen>
+        public static float PivotPointLeft
         {
             get
             {
@@ -562,9 +630,10 @@ namespace Tizen.NUI
         }
 
         /// <summary>
-        /// AnchorPoint constants: 1.0
+        /// PivotPoint constants: 1.0.
         /// </summary>
-        public static float AnchorPointRight
+        /// <since_tizen> 4 </since_tizen>
+        public static float PivotPointRight
         {
             get
             {
@@ -575,9 +644,10 @@ namespace Tizen.NUI
         }
 
         /// <summary>
-        /// AnchorPoint constants: 0.0
+        /// PivotPoint constants: 0.0.
         /// </summary>
-        public static float AnchorPointMiddle
+        /// <since_tizen> 4 </since_tizen>
+        public static float PivotPointMiddle
         {
             get
             {
@@ -588,9 +658,10 @@ namespace Tizen.NUI
         }
 
         /// <summary>
-        /// AnchorPoint constants: 0.0, 0.0, 0.5
+        /// PivotPoint constants: 0.0, 0.0, 0.5.
         /// </summary>
-        public static Position AnchorPointTopLeft
+        /// <since_tizen> 4 </since_tizen>
+        public static Position PivotPointTopLeft
         {
             get
             {
@@ -602,9 +673,10 @@ namespace Tizen.NUI
         }
 
         /// <summary>
-        /// AnchorPoint constants: 0.5, 0.0, 0.5
+        /// PivotPoint constants: 0.5, 0.0, 0.5.
         /// </summary>
-        public static Position AnchorPointTopCenter
+        /// <since_tizen> 4 </since_tizen>
+        public static Position PivotPointTopCenter
         {
             get
             {
@@ -616,9 +688,10 @@ namespace Tizen.NUI
         }
 
         /// <summary>
-        /// AnchorPoint constants: 1.0, 0.0, 0.5
+        /// PivotPoint constants: 1.0, 0.0, 0.5.
         /// </summary>
-        public static Position AnchorPointTopRight
+        /// <since_tizen> 4 </since_tizen>
+        public static Position PivotPointTopRight
         {
             get
             {
@@ -630,9 +703,10 @@ namespace Tizen.NUI
         }
 
         /// <summary>
-        /// AnchorPoint constants: 0.0, 0.5, 0.5
+        /// PivotPoint constants: 0.0, 0.5, 0.5.
         /// </summary>
-        public static Position AnchorPointCenterLeft
+        /// <since_tizen> 4 </since_tizen>
+        public static Position PivotPointCenterLeft
         {
             get
             {
@@ -644,9 +718,10 @@ namespace Tizen.NUI
         }
 
         /// <summary>
-        /// AnchorPoint constants: 0.5, 0.5, 0.5
+        /// PivotPoint constants: 0.5, 0.5, 0.5.
         /// </summary>
-        public static Position AnchorPointCenter
+        /// <since_tizen> 4 </since_tizen>
+        public static Position PivotPointCenter
         {
             get
             {
@@ -658,9 +733,10 @@ namespace Tizen.NUI
         }
 
         /// <summary>
-        /// AnchorPoint constants: 1.0, 0.5, 0.5
+        /// PivotPoint constants: 1.0, 0.5, 0.5.
         /// </summary>
-        public static Position AnchorPointCenterRight
+        /// <since_tizen> 4 </since_tizen>
+        public static Position PivotPointCenterRight
         {
             get
             {
@@ -672,9 +748,10 @@ namespace Tizen.NUI
         }
 
         /// <summary>
-        /// AnchorPoint constants: 0.0, 1.0, 0.5
+        /// PivotPoint constants: 0.0, 1.0, 0.5.
         /// </summary>
-        public static Position AnchorPointBottomLeft
+        /// <since_tizen> 4 </since_tizen>
+        public static Position PivotPointBottomLeft
         {
             get
             {
@@ -686,9 +763,10 @@ namespace Tizen.NUI
         }
 
         /// <summary>
-        /// AnchorPoint constants: 0.5, 1.0, 0.5
+        /// PivotPoint constants: 0.5, 1.0, 0.5
         /// </summary>
-        public static Position AnchorPointBottomCenter
+        /// <since_tizen> 4 </since_tizen>
+        public static Position PivotPointBottomCenter
         {
             get
             {
@@ -700,9 +778,10 @@ namespace Tizen.NUI
         }
 
         /// <summary>
-        /// AnchorPoint constants: 1.0, 1.0, 0.5
+        /// PivotPoint constants: 1.0, 1.0, 0.5.
         /// </summary>
-        public static Position AnchorPointBottomRight
+        /// <since_tizen> 4 </since_tizen>
+        public static Position PivotPointBottomRight
         {
             get
             {
@@ -714,8 +793,9 @@ namespace Tizen.NUI
         }
 
         /// <summary>
-        /// Constant ( 1.0f, 1.0f, 1.0f )
+        /// Constant ( 1.0f, 1.0f, 1.0f ).
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public static Position One
         {
             get
@@ -794,8 +874,9 @@ namespace Tizen.NUI
         }
 
         /// <summary>
-        /// Constant ( 0.0f, 0.0f, 0.0f )
+        /// Constant ( 0.0f, 0.0f, 0.0f ).
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public static Position Zero
         {
             get
@@ -808,171 +889,26 @@ namespace Tizen.NUI
         }
 
         /// <summary>
-        /// Convert a position instance to a vector3 instance.
+        /// Converts a position instance to a Vector3 instance.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public static implicit operator Vector3(Position Position)
         {
             return new Vector3(Position.X, Position.Y, Position.Z);
         }
 
         /// <summary>
-        /// Convert a vector3 instance to a position instance.
+        /// Converts a Vector3 instance to a position instance.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public static implicit operator Position(Vector3 vec)
         {
             return new Position(vec.X, vec.Y, vec.Z);
         }
 
-    }
 
-    /// <summary>
-    /// ParentOrigin constants.
-    /// </summary>
-    public struct ParentOrigin
-    {
-        public static float Top
-        {
-            get
-            {
-                float ret = NDalicPINVOKE.ParentOriginTop_get();
-                if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-                return ret;
-            }
-        }
-        public static float Bottom
-        {
-            get
-            {
-                float ret = NDalicPINVOKE.ParentOriginBottom_get();
-                if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-                return ret;
-            }
-        }
-        public static float Left
-        {
-            get
-            {
-                float ret = NDalicPINVOKE.ParentOriginLeft_get();
-                if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-                return ret;
-            }
-        }
-        public static float Right
-        {
-            get
-            {
-                float ret = NDalicPINVOKE.ParentOriginRight_get();
-                if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-                return ret;
-            }
-        }
-        public static float Middle
-        {
-            get
-            {
-                float ret = NDalicPINVOKE.ParentOriginMiddle_get();
-                if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-                return ret;
-            }
-        }
-        public static Position TopLeft
-        {
-            get
-            {
-                global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginTopLeft_get();
-                Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
-                if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-                return ret;
-            }
-        }
-        public static Position TopCenter
-        {
-            get
-            {
-                global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginTopCenter_get();
-                Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
-                if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-                return ret;
-            }
-        }
-        public static Position TopRight
-        {
-            get
-            {
-                global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginTopRight_get();
-                Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
-                if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-                return ret;
-            }
-        }
-        public static Position CenterLeft
-        {
-            get
-            {
-                global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginCenterLeft_get();
-                Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
-                if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-                return ret;
-            }
-        }
-        public static Position Center
-        {
-            get
-            {
-                global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginCenter_get();
-                Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
-                if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-                return ret;
-            }
-        }
-        public static Position CenterRight
-        {
-            get
-            {
-                global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginCenterRight_get();
-                Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
-                if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-                return ret;
-            }
-        }
-        public static Position BottomLeft
-        {
-            get
-            {
-                global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginBottomLeft_get();
-                Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
-                if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-                return ret;
-            }
-        }
-        public static Position BottomCenter
-        {
-            get
-            {
-                global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginBottomCenter_get();
-                Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
-                if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-                return ret;
-            }
-        }
-        public static Position BottomRight
-        {
-            get
-            {
-                global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginBottomRight_get();
-                Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
-                if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-                return ret;
-            }
-        }
-    }
-
-    /// <summary>
-    /// AnchorPoint constants.
-    /// </summary>
-    public struct AnchorPoint
-    {
-        public static float Top
+        [Obsolete("Please do not use! this will be deprecated")]
+        public static float AnchorPointTop
         {
             get
             {
@@ -981,7 +917,9 @@ namespace Tizen.NUI
                 return ret;
             }
         }
-        public static float Bottom
+
+        [Obsolete("Please do not use! this will be deprecated")]
+        public static float AnchorPointBottom
         {
             get
             {
@@ -990,7 +928,9 @@ namespace Tizen.NUI
                 return ret;
             }
         }
-        public static float Left
+
+        [Obsolete("Please do not use! this will be deprecated")]
+        public static float AnchorPointLeft
         {
             get
             {
@@ -999,7 +939,9 @@ namespace Tizen.NUI
                 return ret;
             }
         }
-        public static float Right
+
+        [Obsolete("Please do not use! this will be deprecated")]
+        public static float AnchorPointRight
         {
             get
             {
@@ -1008,7 +950,9 @@ namespace Tizen.NUI
                 return ret;
             }
         }
-        public static float Middle
+
+        [Obsolete("Please do not use! this will be deprecated")]
+        public static float AnchorPointMiddle
         {
             get
             {
@@ -1017,7 +961,9 @@ namespace Tizen.NUI
                 return ret;
             }
         }
-        public static Position TopLeft
+
+        [Obsolete("Please do not use! this will be deprecated")]
+        public static Position AnchorPointTopLeft
         {
             get
             {
@@ -1027,7 +973,9 @@ namespace Tizen.NUI
                 return ret;
             }
         }
-        public static Position TopCenter
+
+        [Obsolete("Please do not use! this will be deprecated")]
+        public static Position AnchorPointTopCenter
         {
             get
             {
@@ -1037,7 +985,9 @@ namespace Tizen.NUI
                 return ret;
             }
         }
-        public static Position TopRight
+
+        [Obsolete("Please do not use! this will be deprecated")]
+        public static Position AnchorPointTopRight
         {
             get
             {
@@ -1047,7 +997,9 @@ namespace Tizen.NUI
                 return ret;
             }
         }
-        public static Position CenterLeft
+
+        [Obsolete("Please do not use! this will be deprecated")]
+        public static Position AnchorPointCenterLeft
         {
             get
             {
@@ -1057,7 +1009,10 @@ namespace Tizen.NUI
                 return ret;
             }
         }
-        public static Position Center
+
+
+        [Obsolete("Please do not use! this will be deprecated")]
+        public static Position AnchorPointCenter
         {
             get
             {
@@ -1067,7 +1022,9 @@ namespace Tizen.NUI
                 return ret;
             }
         }
-        public static Position CenterRight
+
+        [Obsolete("Please do not use! this will be deprecated")]
+        public static Position AnchorPointCenterRight
         {
             get
             {
@@ -1077,7 +1034,9 @@ namespace Tizen.NUI
                 return ret;
             }
         }
-        public static Position BottomLeft
+
+        [Obsolete("Please do not use! this will be deprecated")]
+        public static Position AnchorPointBottomLeft
         {
             get
             {
@@ -1087,7 +1046,9 @@ namespace Tizen.NUI
                 return ret;
             }
         }
-        public static Position BottomCenter
+
+        [Obsolete("Please do not use! this will be deprecated")]
+        public static Position AnchorPointBottomCenter
         {
             get
             {
@@ -1097,7 +1058,9 @@ namespace Tizen.NUI
                 return ret;
             }
         }
-        public static Position BottomRight
+
+        [Obsolete("Please do not use! this will be deprecated")]
+        public static Position AnchorPointBottomRight
         {
             get
             {
@@ -1106,72 +1069,7 @@ namespace Tizen.NUI
                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
                 return ret;
             }
+        }
+
     }
-    }
-    /// <summary>
-    /// PositionAxis constants.
-    /// </summary>
-    public struct PositionAxis
-    {
-            public static Position X
-            {
-                get
-                {
-                    global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_XAXIS_get();
-                    Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
-                    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-                    return ret;
-                }
-            }
-            public static Position Y
-            {
-                get
-                {
-                    global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_YAXIS_get();
-                    Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
-                    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-                    return ret;
-                }
-            }
-            public static Position Z
-            {
-                get
-                {
-                    global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_ZAXIS_get();
-                    Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
-                    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-                    return ret;
-                }
-            }
-            public static Position NegativeX
-            {
-                get
-                {
-                    global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_NEGATIVE_XAXIS_get();
-                    Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
-                    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-                    return ret;
-                }
-            }
-            public static Position NegativeY
-            {
-                get
-                {
-                    global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_NEGATIVE_YAXIS_get();
-                    Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
-                    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-                    return ret;
-                }
-            }
-            public static Position NegativeZ
-            {
-                get
-                {
-                    global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_NEGATIVE_ZAXIS_get();
-                    Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
-                    if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-                    return ret;
-                }
-            }
-    }
-}
+}
\ No newline at end of file