Change PositionUsesAnchorPoint property to PositionUsesPivotPoint
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Fri, 23 Jun 2017 12:05:53 +0000 (13:05 +0100)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Wed, 28 Jun 2017 14:33:30 +0000 (15:33 +0100)
Change-Id: Ie977eb336f07eae439df4a3da38afbac36280f45

22 files changed:
src/Tizen.NUI/src/internal/Alignment.cs
src/Tizen.NUI/src/internal/GaussianBlurView.cs
src/Tizen.NUI/src/internal/Model3dView.cs
src/Tizen.NUI/src/internal/PageTurnView.cs
src/Tizen.NUI/src/internal/Slider.cs
src/Tizen.NUI/src/public/BaseComponents/CustomView.cs
src/Tizen.NUI/src/public/BaseComponents/ImageView.cs
src/Tizen.NUI/src/public/BaseComponents/TextEditor.cs
src/Tizen.NUI/src/public/BaseComponents/TextField.cs
src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs
src/Tizen.NUI/src/public/BaseComponents/View.cs
src/Tizen.NUI/src/public/FlexContainer.cs
src/Tizen.NUI/src/public/NUIConstants.cs
src/Tizen.NUI/src/public/Position.cs
src/Tizen.NUI/src/public/ProgressBar.cs
src/Tizen.NUI/src/public/Scrollable.cs
src/Tizen.NUI/src/public/TableView.cs
src/Tizen.NUI/src/public/UIComponents/Button.cs
src/Tizen.NUI/src/public/UIComponents/Popup.cs
src/Tizen.NUI/src/public/UIComponents/ScrollBar.cs
src/Tizen.NUI/src/public/VideoView.cs
src/Tizen.NUI/src/public/ViewWrapper.cs

index e43fe34..5da5a92 100755 (executable)
@@ -36,8 +36,6 @@ namespace Tizen.NUI
         internal Alignment(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Alignment_SWIGUpcast(cPtr), cMemoryOwn)
         {
             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
-            // By default, we do not want the position to use the anchor point
-            PositionUsesAnchorPoint = false;
         }
 
         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Alignment obj)
index 4bde8c3..c2e77c5 100755 (executable)
@@ -40,8 +40,6 @@ namespace Tizen.NUI
         internal GaussianBlurView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.GaussianBlurView_SWIGUpcast(cPtr), cMemoryOwn)
         {
             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
-            // By default, we do not want the position to use the anchor point
-            PositionUsesAnchorPoint = false;
         }
 
         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(GaussianBlurView obj)
index 7c66870..cb6a581 100755 (executable)
@@ -36,8 +36,6 @@ namespace Tizen.NUI
         internal Model3dView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Model3dView_SWIGUpcast(cPtr), cMemoryOwn)
         {
             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
-            // By default, we do not want the position to use the anchor point
-            PositionUsesAnchorPoint = false;
         }
 
         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Model3dView obj)
index 61cbfd1..c94792a 100755 (executable)
@@ -22,8 +22,6 @@ namespace Tizen.NUI
         internal PageTurnView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.PageTurnView_SWIGUpcast(cPtr), cMemoryOwn)
         {
             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
-            // By default, we do not want the position to use the anchor point
-            PositionUsesAnchorPoint = false;
         }
 
         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PageTurnView obj)
index fad752c..8df9be4 100755 (executable)
@@ -41,8 +41,6 @@ namespace Tizen.NUI.UIComponents
         internal Slider(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Slider_SWIGUpcast(cPtr), cMemoryOwn)
         {
             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
-            // By default, we do not want the position to use the anchor point
-            PositionUsesAnchorPoint = false;
         }
 
         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Slider obj)
index 5bfe0a6..3f2d165 100755 (executable)
@@ -64,9 +64,6 @@ namespace Tizen.NUI.BaseComponents
             viewWrapperImpl.OnTap = new ViewWrapperImpl.OnTapDelegate(OnTap);
             viewWrapperImpl.OnLongPress = new ViewWrapperImpl.OnLongPressDelegate(OnLongPress);
 
-            // By default, we do not want the position to use the anchor point
-            this.PositionUsesAnchorPoint = false;
-
             // Make sure CustomView is initialized.
             OnInitialize();
 
index ce3a7d4..e5ea920 100755 (executable)
@@ -40,8 +40,6 @@ namespace Tizen.NUI.BaseComponents
         internal ImageView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.ImageView_SWIGUpcast(cPtr), cMemoryOwn)
         {
             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
-            // By default, we do not want the position to use the anchor point
-            PositionUsesAnchorPoint = false;
         }
 
         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ImageView obj)
index 366d821..008211d 100755 (executable)
@@ -40,8 +40,6 @@ namespace Tizen.NUI.BaseComponents
         internal TextEditor(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.TextEditor_SWIGUpcast(cPtr), cMemoryOwn)
         {
             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
-            // By default, we do not want the position to use the anchor point
-            PositionUsesAnchorPoint = false;
         }
 
         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TextEditor obj)
index c898ac8..0c31cd9 100755 (executable)
@@ -40,8 +40,6 @@ namespace Tizen.NUI.BaseComponents
         internal TextField(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.TextField_SWIGUpcast(cPtr), cMemoryOwn)
         {
             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
-            // By default, we do not want the position to use the anchor point
-            PositionUsesAnchorPoint = false;
         }
 
         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TextField obj)
index 10d6acb..4cacebf 100755 (executable)
@@ -38,8 +38,6 @@ namespace Tizen.NUI.BaseComponents
         internal TextLabel(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.TextLabel_SWIGUpcast(cPtr), cMemoryOwn)
         {
             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
-            // By default, we do not want the position to use the anchor point
-            PositionUsesAnchorPoint = false;
         }
 
         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TextLabel obj)
index 698d0d2..71e85ce 100755 (executable)
@@ -30,6 +30,7 @@ namespace Tizen.NUI.BaseComponents
         internal View(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.View_SWIGUpcast(cPtr), cMemoryOwn)
         {
             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+            PositionUsesPivotPoint = false;
         }
 
         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(View obj)
@@ -801,7 +802,6 @@ namespace Tizen.NUI.BaseComponents
         /// </summary>
         public View() : this(NDalicPINVOKE.View_New(), true)
         {
-            PositionUsesAnchorPoint = false;
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
 
         }
@@ -1723,7 +1723,7 @@ namespace Tizen.NUI.BaseComponents
 
         /// <summary>
         /// Sets the position of the View for X and Y.<br>
-        /// By default, sets the position vector between the parent origin and anchor point(default).<br>
+        /// By default, sets the position vector between the parent origin and pivot point(default).<br>
         /// If Position inheritance if disabled, sets the world position.<br>
         /// </summary>
         public Position2D Position2D
@@ -1754,13 +1754,13 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// Determines whether the anchor point should be used to determine the position of the view.
+        /// Determines whether the pivot point should be used to determine the position of the view.
         /// This is true by default.
         /// </summary>
         /// <remarks>If false, then the top-left of the view is used for the position.
         /// Setting this to false will allow scaling or rotation around the anchor-point without affecting the view's position.
         /// </remarks>
-        public bool PositionUsesAnchorPoint
+        public bool PositionUsesPivotPoint
         {
             get
             {
@@ -2818,7 +2818,7 @@ namespace Tizen.NUI.BaseComponents
         /// <summary>
         /// Gets/Sets the anchor-point of an view.<br>
         /// This is expressed in unit coordinates, such that (0.0, 0.0, 0.5) is the top-left corner of the view, and (1.0, 1.0, 0.5) is the bottom-right corner.<br>
-        /// The default anchor point is AnchorPoint.Center (0.5, 0.5, 0.5).<br>
+        /// The default pivot point is PivotPoint.Center (0.5, 0.5, 0.5).<br>
         /// An view position is the distance between its parent-origin and this anchor-point.<br>
         /// An view's orientation is the rotation from its default orientation, the rotation is centered around its anchor-point.<br>
         /// <pre>The View has been initialized.</pre>
@@ -2915,7 +2915,7 @@ namespace Tizen.NUI.BaseComponents
 
         /// <summary>
         /// Gets/Sets the position of the View.<br>
-        /// By default, sets the position vector between the parent origin and anchor point(default).<br>
+        /// By default, sets the position vector between the parent origin and pivot point(default).<br>
         /// If Position inheritance if disabled, sets the world position.<br>
         /// </summary>
         public Position Position
@@ -3576,7 +3576,7 @@ namespace Tizen.NUI.BaseComponents
         /// <summary>
         /// Gets/Sets whether a child view inherits it's parent's position.<br>
         /// Default is to inherit.<br>
-        /// Switching this off means that using Position sets the view's world position, i.e. translates from the world origin(0,0,0) to the anchor point of the view.<br>
+        /// Switching this off means that using Position sets the view's world position, i.e. translates from the world origin(0,0,0) to the pivot point of the view.<br>
         /// </summary>
         public bool InheritPosition
         {
index e82bc4c..09b1985 100755 (executable)
@@ -41,8 +41,6 @@ namespace Tizen.NUI
         internal FlexContainer(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.FlexContainer_SWIGUpcast(cPtr), cMemoryOwn)
         {
             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
-            // By default, we do not want the position to use the anchor point
-            PositionUsesAnchorPoint = false;
         }
 
         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FlexContainer obj)
index cd559ae..2b63ffd 100755 (executable)
@@ -1072,7 +1072,7 @@ namespace Tizen.NUI
     }
 
     /// <summary>
-    /// AnchorPoint constants.
+    /// PivotPoint constants.
     /// </summary>
     public struct PivotPoint
     {
index cff3f9b..1c66e93 100755 (executable)
@@ -558,9 +558,9 @@ namespace Tizen.NUI
         }
 
         /// <summary>
-        /// AnchorPoint constants: 0.0
+        /// PivotPoint constants: 0.0
         /// </summary>
-        public static float AnchorPointTop
+        public static float PivotPointTop
         {
             get
             {
@@ -571,9 +571,9 @@ namespace Tizen.NUI
         }
 
         /// <summary>
-        /// AnchorPoint constants: 1.0
+        /// PivotPoint constants: 1.0
         /// </summary>
-        public static float AnchorPointBottom
+        public static float PivotPointBottom
         {
             get
             {
@@ -584,9 +584,9 @@ namespace Tizen.NUI
         }
 
         /// <summary>
-        /// AnchorPoint constants: 0.0
+        /// PivotPoint constants: 0.0
         /// </summary>
-        public static float AnchorPointLeft
+        public static float PivotPointLeft
         {
             get
             {
@@ -597,9 +597,9 @@ namespace Tizen.NUI
         }
 
         /// <summary>
-        /// AnchorPoint constants: 1.0
+        /// PivotPoint constants: 1.0
         /// </summary>
-        public static float AnchorPointRight
+        public static float PivotPointRight
         {
             get
             {
@@ -610,9 +610,9 @@ namespace Tizen.NUI
         }
 
         /// <summary>
-        /// AnchorPoint constants: 0.0
+        /// PivotPoint constants: 0.0
         /// </summary>
-        public static float AnchorPointMiddle
+        public static float PivotPointMiddle
         {
             get
             {
@@ -623,9 +623,9 @@ 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
+        public static Position PivotPointTopLeft
         {
             get
             {
@@ -637,9 +637,9 @@ 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
+        public static Position PivotPointTopCenter
         {
             get
             {
@@ -651,9 +651,9 @@ 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
+        public static Position PivotPointTopRight
         {
             get
             {
@@ -665,9 +665,9 @@ 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
+        public static Position PivotPointCenterLeft
         {
             get
             {
@@ -679,9 +679,9 @@ 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
+        public static Position PivotPointCenter
         {
             get
             {
@@ -693,9 +693,9 @@ 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
+        public static Position PivotPointCenterRight
         {
             get
             {
@@ -707,9 +707,9 @@ 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
+        public static Position PivotPointBottomLeft
         {
             get
             {
@@ -721,9 +721,9 @@ 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
+        public static Position PivotPointBottomCenter
         {
             get
             {
@@ -735,9 +735,9 @@ 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
+        public static Position PivotPointBottomRight
         {
             get
             {
index 913f913..5de2847 100755 (executable)
@@ -41,8 +41,6 @@ namespace Tizen.NUI.UIComponents
         internal ProgressBar(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.ProgressBar_SWIGUpcast(cPtr), cMemoryOwn)
         {
             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
-            // By default, we do not want the position to use the anchor point
-            PositionUsesAnchorPoint = false;
         }
 
         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ProgressBar obj)
index 57e8a9d..f464990 100755 (executable)
@@ -22,8 +22,6 @@ namespace Tizen.NUI
         internal Scrollable(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Scrollable_SWIGUpcast(cPtr), cMemoryOwn)
         {
             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
-            // By default, we do not want the position to use the anchor point
-            PositionUsesAnchorPoint = false;
         }
 
         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Scrollable obj)
@@ -485,4 +483,4 @@ namespace Tizen.NUI
 
     }
 
-}
\ No newline at end of file
+}
index 28f5aad..99ca7dd 100755 (executable)
@@ -42,8 +42,6 @@ namespace Tizen.NUI
         internal TableView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.TableView_SWIGUpcast(cPtr), cMemoryOwn)
         {
             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
-            // By default, we do not want the position to use the anchor point
-            PositionUsesAnchorPoint = false;
         }
 
         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TableView obj)
index 4559b03..313d2f9 100755 (executable)
@@ -43,8 +43,6 @@ namespace Tizen.NUI.UIComponents
         internal Button(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Button_SWIGUpcast(cPtr), cMemoryOwn)
         {
             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
-            // By default, we do not want the position to use the anchor point
-            PositionUsesAnchorPoint = false;
         }
 
         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Button obj)
index 72ad327..4d7a0e2 100755 (executable)
@@ -41,8 +41,6 @@ namespace Tizen.NUI.UIComponents
         internal Popup(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Popup_SWIGUpcast(cPtr), cMemoryOwn)
         {
             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
-            // By default, we do not want the position to use the anchor point
-            PositionUsesAnchorPoint = false;
         }
 
         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Popup obj)
index 828af76..bb6e19c 100755 (executable)
@@ -42,8 +42,6 @@ namespace Tizen.NUI.UIComponents
         internal ScrollBar(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.ScrollBar_SWIGUpcast(cPtr), cMemoryOwn)
         {
             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
-            // By default, we do not want the position to use the anchor point
-            PositionUsesAnchorPoint = false;
         }
 
         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ScrollBar obj)
index a5363ca..f50f417 100755 (executable)
@@ -41,8 +41,6 @@ namespace Tizen.NUI
         internal VideoView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.VideoView_SWIGUpcast(cPtr), cMemoryOwn)
         {
             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
-            // By default, we do not want the position to use the anchor point
-            PositionUsesAnchorPoint = false;
         }
 
         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(VideoView obj)
index deb1b85..f931357 100755 (executable)
@@ -27,8 +27,6 @@ namespace Tizen.NUI
         internal ViewWrapper(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicManualPINVOKE.ViewWrapper_SWIGUpcast(cPtr), cMemoryOwn)
         {
             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
-            // By default, we do not want the position to use the anchor point
-            PositionUsesAnchorPoint = false;
         }
 
         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ViewWrapper obj)